@colijnit/catalog 12.1.52 → 12.1.53
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 +29 -11
- 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 +6 -2
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +6 -3
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +11 -5
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.component.js +2 -1
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +5 -2
- package/esm2015/lib/service/catalog-event.service.js +1 -1
- package/fesm2015/colijnit-catalog.js +36 -12
- 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 +1 -0
- package/lib/component/catalog-search/catalog-search.component.d.ts +2 -1
- package/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.d.ts +2 -1
- package/lib/service/catalog-event.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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.53";
|
|
53
|
+
this.publishDate = "30-11-2023 11:19:44";
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -3507,6 +3507,7 @@ class CatalogSearchComponent {
|
|
|
3507
3507
|
this._catalogEventService = _catalogEventService;
|
|
3508
3508
|
this.iconCacheService = iconCacheService;
|
|
3509
3509
|
this.icons = IconEnum;
|
|
3510
|
+
this.createFrozenArticle = true;
|
|
3510
3511
|
this.showNavigation = false;
|
|
3511
3512
|
this.showLandingPage = false;
|
|
3512
3513
|
this.showFilter = false;
|
|
@@ -3539,8 +3540,8 @@ class CatalogSearchComponent {
|
|
|
3539
3540
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3540
3541
|
yield this._settingsService.initializeSettings();
|
|
3541
3542
|
this._catalogService.init(this._settings);
|
|
3542
|
-
this._subs.push(this._catalogEventService.addArticleButtonClick.subscribe((
|
|
3543
|
-
this.onAddArticleButtonClick.emit(
|
|
3543
|
+
this._subs.push(this._catalogEventService.addArticleButtonClick.subscribe((article) => {
|
|
3544
|
+
this.onAddArticleButtonClick.emit(article);
|
|
3544
3545
|
}), this._catalogEventService.arButtonClick.subscribe((article) => {
|
|
3545
3546
|
this.onArButtonClick.emit(article);
|
|
3546
3547
|
}), this._catalogEventService.articleClick.subscribe((article) => {
|
|
@@ -3619,10 +3620,14 @@ CatalogSearchComponent.decorators = [
|
|
|
3619
3620
|
(turnoverGroupClick)="handleTurnoverGroupClick($event)"></co-catalog-categories>
|
|
3620
3621
|
<div class="search-content">
|
|
3621
3622
|
<ng-container *ngIf="mode === 'tile'">
|
|
3622
|
-
<co-catalog-search-result-tile
|
|
3623
|
+
<co-catalog-search-result-tile
|
|
3624
|
+
[createFrozenArticle]="createFrozenArticle"
|
|
3625
|
+
></co-catalog-search-result-tile>
|
|
3623
3626
|
</ng-container>
|
|
3624
3627
|
<ng-container *ngIf="mode === 'list'">
|
|
3625
|
-
<co-catalog-search-result-list
|
|
3628
|
+
<co-catalog-search-result-list
|
|
3629
|
+
[createFrozenArticle]="createFrozenArticle"
|
|
3630
|
+
></co-catalog-search-result-list>
|
|
3626
3631
|
</ng-container>
|
|
3627
3632
|
<ng-container *ngIf="mode === 'grid'">
|
|
3628
3633
|
<!--
|
|
@@ -3671,6 +3676,7 @@ CatalogSearchComponent.propDecorators = {
|
|
|
3671
3676
|
title: [{ type: Input }],
|
|
3672
3677
|
subTitle: [{ type: Input }],
|
|
3673
3678
|
searchPlaceholder: [{ type: Input }],
|
|
3679
|
+
createFrozenArticle: [{ type: Input }],
|
|
3674
3680
|
showNavigation: [{ type: Input }],
|
|
3675
3681
|
showLandingPage: [{ type: Input }],
|
|
3676
3682
|
showFilter: [{ type: Input }],
|
|
@@ -3749,6 +3755,7 @@ CatalogSearchHeaderModule.decorators = [
|
|
|
3749
3755
|
class CatalogSearchBaseComponent {
|
|
3750
3756
|
constructor(catalogSearchService) {
|
|
3751
3757
|
this.catalogSearchService = catalogSearchService;
|
|
3758
|
+
this.createFrozenArticle = true;
|
|
3752
3759
|
}
|
|
3753
3760
|
onPreviousClick() {
|
|
3754
3761
|
this.catalogSearchService.currentPage -= 1;
|
|
@@ -3765,11 +3772,15 @@ CatalogSearchBaseComponent.decorators = [
|
|
|
3765
3772
|
];
|
|
3766
3773
|
CatalogSearchBaseComponent.ctorParameters = () => [
|
|
3767
3774
|
{ type: CatalogSearchService }
|
|
3768
|
-
];
|
|
3775
|
+
];
|
|
3776
|
+
CatalogSearchBaseComponent.propDecorators = {
|
|
3777
|
+
createFrozenArticle: [{ type: Input }]
|
|
3778
|
+
};
|
|
3769
3779
|
|
|
3770
3780
|
class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent {
|
|
3771
3781
|
constructor() {
|
|
3772
3782
|
super(...arguments);
|
|
3783
|
+
this.createFrozenArticle = true;
|
|
3773
3784
|
this.onLookAtArticleButtonClick = new EventEmitter();
|
|
3774
3785
|
this.onArButtonClick = new EventEmitter();
|
|
3775
3786
|
this.onAddArticleButtonClick = new EventEmitter();
|
|
@@ -3789,6 +3800,7 @@ CatalogSearchResultTileComponent.decorators = [
|
|
|
3789
3800
|
visibilityObserver
|
|
3790
3801
|
#intersection="intersection"
|
|
3791
3802
|
[observerEnabled]="!article.imageData"
|
|
3803
|
+
[createFrozenArticle]="createFrozenArticle"
|
|
3792
3804
|
[showing]="intersection.isIntersecting"
|
|
3793
3805
|
[article]="article"
|
|
3794
3806
|
(onArticleClick)="onArticleClick.emit($event)"
|
|
@@ -3818,6 +3830,7 @@ CatalogSearchResultTileComponent.decorators = [
|
|
|
3818
3830
|
},] }
|
|
3819
3831
|
];
|
|
3820
3832
|
CatalogSearchResultTileComponent.propDecorators = {
|
|
3833
|
+
createFrozenArticle: [{ type: Input }],
|
|
3821
3834
|
onLookAtArticleButtonClick: [{ type: Output }],
|
|
3822
3835
|
onArButtonClick: [{ type: Output }],
|
|
3823
3836
|
onAddArticleButtonClick: [{ type: Output }],
|
|
@@ -3838,6 +3851,7 @@ class ArticleBaseComponent {
|
|
|
3838
3851
|
this._imageService = _imageService;
|
|
3839
3852
|
this._settingsService = _settingsService;
|
|
3840
3853
|
this.icons = IconEnum;
|
|
3854
|
+
this.createFrozenArticle = true;
|
|
3841
3855
|
this.isSelected = false;
|
|
3842
3856
|
this.isSmallModus = false;
|
|
3843
3857
|
this.hasMagnifierButton = false;
|
|
@@ -3892,9 +3906,15 @@ class ArticleBaseComponent {
|
|
|
3892
3906
|
handleAddArticleButtonClick(event) {
|
|
3893
3907
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3894
3908
|
event.stopPropagation();
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3909
|
+
if (this.createFrozenArticle) {
|
|
3910
|
+
const json = yield this._getJSONFromArticleObject(this.article);
|
|
3911
|
+
this._appEventService.addArticleButtonClick.next(json);
|
|
3912
|
+
this.onAddArticleButtonClick.emit(json);
|
|
3913
|
+
}
|
|
3914
|
+
else {
|
|
3915
|
+
this._appEventService.addArticleButtonClick.next(this.article);
|
|
3916
|
+
this.onAddArticleButtonClick.emit(this.article);
|
|
3917
|
+
}
|
|
3898
3918
|
});
|
|
3899
3919
|
}
|
|
3900
3920
|
handleStockDetailsButtonClick(event) {
|
|
@@ -3974,6 +3994,7 @@ ArticleBaseComponent.propDecorators = {
|
|
|
3974
3994
|
article: [{ type: Input }],
|
|
3975
3995
|
showing: [{ type: Input }],
|
|
3976
3996
|
imageData: [{ type: Input }],
|
|
3997
|
+
createFrozenArticle: [{ type: Input }],
|
|
3977
3998
|
price: [{ type: Input }],
|
|
3978
3999
|
isSelected: [{ type: Input }],
|
|
3979
4000
|
isSmallModus: [{ type: Input }, { type: HostBinding, args: ['class.small-modus',] }],
|
|
@@ -4237,6 +4258,7 @@ CatalogSearchResultListComponent.decorators = [
|
|
|
4237
4258
|
visibilityObserver
|
|
4238
4259
|
#intersection="intersection"
|
|
4239
4260
|
[observerEnabled]="!article.imageData"
|
|
4261
|
+
[createFrozenArticle]="createFrozenArticle"
|
|
4240
4262
|
[showing]="intersection.isIntersecting"
|
|
4241
4263
|
[article]="article"
|
|
4242
4264
|
>
|
|
@@ -4476,8 +4498,10 @@ class CatalogExternalSourceComponent {
|
|
|
4476
4498
|
return this._externalCatalogStartupInfo;
|
|
4477
4499
|
}
|
|
4478
4500
|
ngOnInit() {
|
|
4479
|
-
this._subs.push(this._appEventService.addArticleButtonClick.subscribe((
|
|
4480
|
-
|
|
4501
|
+
this._subs.push(this._appEventService.addArticleButtonClick.subscribe((article) => {
|
|
4502
|
+
if (!(article instanceof ArticleExtended)) {
|
|
4503
|
+
this.addArticleClick.next(article);
|
|
4504
|
+
}
|
|
4481
4505
|
}));
|
|
4482
4506
|
}
|
|
4483
4507
|
handleArticleClick(article) {
|