@colijnit/catalog 12.1.57 → 12.1.59
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 +17 -19
- 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 +13 -3
- package/esm2015/lib/component/catalog-article-list/catalog-article-list.component.js +57 -59
- package/esm2015/lib/component/catalog-article-list/catalog-article-list.module.js +3 -2
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +2 -2
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.component.js +6 -1
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +2 -14
- package/fesm2015/colijnit-catalog.js +77 -76
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/base/catalog-search-base.component.d.ts +7 -1
- package/lib/component/catalog-article-list/style/_layout.scss +169 -427
- package/lib/component/catalog-article-list/style/_material-definition.scss +35 -2
- package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +4 -1
- package/lib/component/catalog-search-result-list/style/_layout.scss +10 -0
- package/lib/component/catalog-search-result-list/style/_material-definition.scss +2 -0
- package/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.d.ts +0 -8
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ import { PagingParameters } from '@colijnit/ioneconnector/build/model/paging-par
|
|
|
39
39
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
40
40
|
import * as i1 from '@angular/platform-browser';
|
|
41
41
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
42
|
-
import { InputCheckboxModule, SliderComponent, IconModule as IconModule$1, CheckboxSelectModule, PriceDisplayPipeModule, ButtonModule as ButtonModule$1
|
|
42
|
+
import { InputCheckboxModule, SliderComponent, IconModule as IconModule$1, CheckboxSelectModule, PriceDisplayPipeModule, ButtonModule as ButtonModule$1 } from '@colijnit/corecomponents';
|
|
43
43
|
import { DomainName } from '@colijnit/mainapi/build/enum/domain-name.enum';
|
|
44
44
|
import { FilterItemMode } from '@colijnit/corecomponents_v12/';
|
|
45
45
|
import { ExternalCatalogTypes } from '@colijnit/transactionapi/build/enum/external-catalog-types.enum';
|
|
@@ -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.59";
|
|
53
|
+
this.publishDate = "19-1-2024 18:12:29";
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -3803,6 +3803,11 @@ class CatalogSearchBaseComponent {
|
|
|
3803
3803
|
constructor(catalogSearchService) {
|
|
3804
3804
|
this.catalogSearchService = catalogSearchService;
|
|
3805
3805
|
this.createFrozenArticle = true;
|
|
3806
|
+
this.onLookAtArticleButtonClick = new EventEmitter();
|
|
3807
|
+
this.onArButtonClick = new EventEmitter();
|
|
3808
|
+
this.onAddArticleButtonClick = new EventEmitter();
|
|
3809
|
+
this.onArticleClick = new EventEmitter();
|
|
3810
|
+
this.onStockDetailsClick = new EventEmitter();
|
|
3806
3811
|
this.elements = [];
|
|
3807
3812
|
}
|
|
3808
3813
|
onPreviousClick() {
|
|
@@ -3830,7 +3835,12 @@ CatalogSearchBaseComponent.ctorParameters = () => [
|
|
|
3830
3835
|
{ type: CatalogSearchService }
|
|
3831
3836
|
];
|
|
3832
3837
|
CatalogSearchBaseComponent.propDecorators = {
|
|
3833
|
-
createFrozenArticle: [{ type: Input }]
|
|
3838
|
+
createFrozenArticle: [{ type: Input }],
|
|
3839
|
+
onLookAtArticleButtonClick: [{ type: Output }],
|
|
3840
|
+
onArButtonClick: [{ type: Output }],
|
|
3841
|
+
onAddArticleButtonClick: [{ type: Output }],
|
|
3842
|
+
onArticleClick: [{ type: Output }],
|
|
3843
|
+
onStockDetailsClick: [{ type: Output }]
|
|
3834
3844
|
};
|
|
3835
3845
|
|
|
3836
3846
|
class ArticleBaseComponent {
|
|
@@ -4088,12 +4098,6 @@ CatalogArticleTileComponent.propDecorators = {
|
|
|
4088
4098
|
class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent {
|
|
4089
4099
|
constructor() {
|
|
4090
4100
|
super(...arguments);
|
|
4091
|
-
this.createFrozenArticle = true;
|
|
4092
|
-
this.onLookAtArticleButtonClick = new EventEmitter();
|
|
4093
|
-
this.onArButtonClick = new EventEmitter();
|
|
4094
|
-
this.onAddArticleButtonClick = new EventEmitter();
|
|
4095
|
-
this.onArticleClick = new EventEmitter();
|
|
4096
|
-
this.onStockDetailsClick = new EventEmitter();
|
|
4097
4101
|
this.showClass = true;
|
|
4098
4102
|
this.smallScrollbar = true;
|
|
4099
4103
|
}
|
|
@@ -4144,12 +4148,6 @@ CatalogSearchResultTileComponent.decorators = [
|
|
|
4144
4148
|
];
|
|
4145
4149
|
CatalogSearchResultTileComponent.propDecorators = {
|
|
4146
4150
|
viewChildren: [{ type: ViewChildren, args: [CatalogArticleTileComponent, { read: ElementRef },] }],
|
|
4147
|
-
createFrozenArticle: [{ type: Input }],
|
|
4148
|
-
onLookAtArticleButtonClick: [{ type: Output }],
|
|
4149
|
-
onArButtonClick: [{ type: Output }],
|
|
4150
|
-
onAddArticleButtonClick: [{ type: Output }],
|
|
4151
|
-
onArticleClick: [{ type: Output }],
|
|
4152
|
-
onStockDetailsClick: [{ type: Output }],
|
|
4153
4151
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
4154
4152
|
smallScrollbar: [{ type: HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
4155
4153
|
};
|
|
@@ -4322,71 +4320,69 @@ CatalogArticleListComponent.decorators = [
|
|
|
4322
4320
|
{ type: Component, args: [{
|
|
4323
4321
|
selector: 'co-catalog-article-list',
|
|
4324
4322
|
template: `
|
|
4325
|
-
<div class="
|
|
4326
|
-
<div class="
|
|
4327
|
-
<div class="
|
|
4328
|
-
<
|
|
4329
|
-
|
|
4330
|
-
<co-icon class="no-image" [iconData]="iconCache.getIcon(icons.Camera)"></co-icon>
|
|
4331
|
-
<span [textContent]="'NO_IMAGE' | localize"></span>
|
|
4323
|
+
<div class="article-list-wrapper">
|
|
4324
|
+
<div class="card-wrapper">
|
|
4325
|
+
<div class="left">
|
|
4326
|
+
<div class="image">
|
|
4327
|
+
<co-image class="co-image" [source]="article.imageData"></co-image>
|
|
4332
4328
|
</div>
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
></co-icon>
|
|
4340
|
-
</div>
|
|
4341
|
-
</div>
|
|
4342
|
-
<div class="description-wrapper">
|
|
4343
|
-
<div class="main">
|
|
4344
|
-
<div class="main-top">
|
|
4345
|
-
<div *ngIf="!!turnover" class="turnover" [innerText]="removeHtmlTags(turnover)"></div>
|
|
4346
|
-
<div *ngIf="!!name" class="description" [innerText]="removeHtmlTags(name)"></div>
|
|
4329
|
+
<div class="button-wrapper">
|
|
4330
|
+
<co-icon *ngIf="threeD" [iconData]="iconCache.getIcon(icons.ThreeD)" class="pointer"></co-icon>
|
|
4331
|
+
<co-icon *ngIf="threeD && options.showARButton" class="pointer"
|
|
4332
|
+
[iconData]="iconCache.getIcon(icons.Ar)"
|
|
4333
|
+
(click)="handleArButtonClick($event)"
|
|
4334
|
+
></co-icon>
|
|
4347
4335
|
</div>
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4336
|
+
</div>
|
|
4337
|
+
<div class="description-wrapper">
|
|
4338
|
+
<div class="main">
|
|
4339
|
+
<div class="main-top">
|
|
4340
|
+
<div *ngIf="!!turnover" class="turnover" [innerText]="removeHtmlTags(turnover)"></div>
|
|
4341
|
+
<div *ngIf="!!name" class="name" [innerText]="removeHtmlTags(name)"></div>
|
|
4342
|
+
</div>
|
|
4343
|
+
<div class="main-bottom">
|
|
4344
|
+
<div class="main-bottom-left">
|
|
4345
|
+
<div class="description">
|
|
4346
|
+
<span class="label" [innerText]="'DESCRIPTION' | localize"></span>
|
|
4347
|
+
<span class="text" *ngIf="!!article?.description"
|
|
4348
|
+
[innerText]="removeHtmlTags(article.description)"></span>
|
|
4349
|
+
<span class="text added" *ngIf="!!added_description" [innerText]="removeHtmlTags(added_description)"></span>
|
|
4350
|
+
<div *ngIf="!!article?.articleNumber" class="sku">
|
|
4351
|
+
<span [innerText]="'sku' | localize"></span>:
|
|
4352
|
+
<span [innerText]="article.articleNumber"></span>
|
|
4353
|
+
</div>
|
|
4354
|
+
</div>
|
|
4359
4355
|
</div>
|
|
4360
4356
|
</div>
|
|
4361
4357
|
</div>
|
|
4362
4358
|
</div>
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4359
|
+
<div class="right">
|
|
4360
|
+
<div class="stock-wrapper">
|
|
4361
|
+
<div [innerText]="stockLabel | localize" [class.in-stock]="inStock" (click)="handleStockDetailsButtonClick($event)"></div>
|
|
4362
|
+
<div [innerText]="deliveryTimeLabel"></div>
|
|
4363
|
+
</div>
|
|
4364
|
+
<div *ngIf="!!article?.price" class="price" [innerText]="article?.price | priceDisplay:valutaSymbol"></div>
|
|
4365
|
+
<div *ngIf="options.showAddArticleButton" class="on-article-buttons">
|
|
4366
|
+
<co-button *ngIf="!configurable"
|
|
4367
|
+
[label]="options.addArticleButtonText"
|
|
4368
|
+
class="open-icon action pointer"
|
|
4369
|
+
(onClick)="handleAddArticleButtonClick($event)"
|
|
4370
|
+
[iconData]="iconCache.getIcon(icons.AddToCartDrop)">
|
|
4371
|
+
</co-button>
|
|
4372
|
+
<co-button *ngIf="configurable"
|
|
4373
|
+
[label]="options.lookAtArticleButtonText"
|
|
4374
|
+
class="open-icon action pointer"
|
|
4375
|
+
(onClick)="handleLookAtArticleButtonClick($event)"
|
|
4376
|
+
[iconData]="iconCache.getIcon(icons.MagicWand)">
|
|
4377
|
+
</co-button>
|
|
4378
|
+
<!--co-button
|
|
4379
|
+
[label]="options.stockButtonText"
|
|
4380
|
+
class="open-icon action pointer stock"
|
|
4381
|
+
(onClick)="handleStockDetailsButtonClick($event)"
|
|
4382
|
+
[iconData]="iconCache.getIcon(icons.Truck)">
|
|
4383
|
+
</co-button-->
|
|
4384
|
+
</div>
|
|
4385
4385
|
</div>
|
|
4386
|
-
<div *ngIf="stock_available" (click)="handleStockDetailsButtonClick($event)" class="stock"
|
|
4387
|
-
[innerText]="stock_available"></div>
|
|
4388
|
-
<div *ngIf="!stock_available" (click)="handleStockDetailsButtonClick($event)" class="stock not-in-stock"
|
|
4389
|
-
[innerText]="'Niet op voorraad'"></div>
|
|
4390
4386
|
</div>
|
|
4391
4387
|
</div>
|
|
4392
4388
|
`,
|
|
@@ -4420,6 +4416,11 @@ CatalogSearchResultListComponent.decorators = [
|
|
|
4420
4416
|
[createFrozenArticle]="createFrozenArticle"
|
|
4421
4417
|
[showing]="intersection.isIntersecting"
|
|
4422
4418
|
[article]="article"
|
|
4419
|
+
(onArticleClick)="onArticleClick.emit($event)"
|
|
4420
|
+
(onAddArticleButtonClick)="onAddArticleButtonClick.emit($event)"
|
|
4421
|
+
(onArButtonClick)="onArButtonClick.emit($event)"
|
|
4422
|
+
(onLookAtArticleButtonClick)="onLookAtArticleButtonClick.emit($event)"
|
|
4423
|
+
(onStockDetailsClick)="onStockDetailsClick.emit($event)"
|
|
4423
4424
|
>
|
|
4424
4425
|
</co-catalog-article-list>
|
|
4425
4426
|
</ng-container>
|
|
@@ -4452,7 +4453,7 @@ CatalogArticleListModule.decorators = [
|
|
|
4452
4453
|
{ type: NgModule, args: [{
|
|
4453
4454
|
imports: [
|
|
4454
4455
|
CommonModule,
|
|
4455
|
-
ImageModule
|
|
4456
|
+
ImageModule,
|
|
4456
4457
|
IconModule$1,
|
|
4457
4458
|
CatalogFilterModule,
|
|
4458
4459
|
PriceDisplayPipeModule,
|
|
@@ -4576,7 +4577,7 @@ class CatalogExternalSourceComponent {
|
|
|
4576
4577
|
ngOnInit() {
|
|
4577
4578
|
this._subs.push(this._appEventService.addArticleButtonClick.subscribe((article) => {
|
|
4578
4579
|
if (!(article instanceof ArticleExtended)) {
|
|
4579
|
-
this.addArticleClick.next(article);
|
|
4580
|
+
this.addArticleClick.next({ quantity: 1, article: article });
|
|
4580
4581
|
}
|
|
4581
4582
|
}));
|
|
4582
4583
|
}
|