@colijnit/catalog 12.1.56 → 12.1.58
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 +24 -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-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +10 -3
- 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 +85 -77
- 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-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +2 -0
- 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.58";
|
|
53
|
+
this.publishDate = "11-1-2024 17:11:47";
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -2469,6 +2469,7 @@ class CatalogFilterContentGeneralComponent {
|
|
|
2469
2469
|
this._setPriceList();
|
|
2470
2470
|
this._setCategories();
|
|
2471
2471
|
this._setColors();
|
|
2472
|
+
this._setDoSyncValues();
|
|
2472
2473
|
}
|
|
2473
2474
|
_setStoreGroups() {
|
|
2474
2475
|
this._catalogConnectorService.getStoreGroups().then((storeGroups) => {
|
|
@@ -2490,6 +2491,11 @@ class CatalogFilterContentGeneralComponent {
|
|
|
2490
2491
|
this.categoryCollection = this.filterService.createFilterSelectionsCollection(categories, "categoryCode", "description");
|
|
2491
2492
|
});
|
|
2492
2493
|
}
|
|
2494
|
+
_setDoSyncValues() {
|
|
2495
|
+
this._catalogConnectorService.getDomainCollection(DomainName.YesNo).then((doSyncValues) => {
|
|
2496
|
+
this.doSyncCollection = this.filterService.createFilterSelectionsCollection(doSyncValues, "code", "description");
|
|
2497
|
+
});
|
|
2498
|
+
}
|
|
2493
2499
|
_setColors() {
|
|
2494
2500
|
this._catalogConnectorService.getColors().then((colors) => {
|
|
2495
2501
|
this.colorCollection = this.filterService.createFilterSelectionsCollection(colors, "colorCode", "description");
|
|
@@ -2624,8 +2630,9 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2624
2630
|
</div>
|
|
2625
2631
|
<div class="filter-item-wrapper">
|
|
2626
2632
|
<co-catalog-filter-item [placeholder]="'AUTOMATICALLY_UPDATE'"
|
|
2627
|
-
|
|
2628
|
-
|
|
2633
|
+
[collection]="doSyncCollection"
|
|
2634
|
+
[mode]="modes.Filterlist"
|
|
2635
|
+
[(model)]="catalogSearchService.searchRequest.doSync"
|
|
2629
2636
|
>
|
|
2630
2637
|
</co-catalog-filter-item>
|
|
2631
2638
|
</div>
|
|
@@ -3796,6 +3803,11 @@ class CatalogSearchBaseComponent {
|
|
|
3796
3803
|
constructor(catalogSearchService) {
|
|
3797
3804
|
this.catalogSearchService = catalogSearchService;
|
|
3798
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();
|
|
3799
3811
|
this.elements = [];
|
|
3800
3812
|
}
|
|
3801
3813
|
onPreviousClick() {
|
|
@@ -3823,7 +3835,12 @@ CatalogSearchBaseComponent.ctorParameters = () => [
|
|
|
3823
3835
|
{ type: CatalogSearchService }
|
|
3824
3836
|
];
|
|
3825
3837
|
CatalogSearchBaseComponent.propDecorators = {
|
|
3826
|
-
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 }]
|
|
3827
3844
|
};
|
|
3828
3845
|
|
|
3829
3846
|
class ArticleBaseComponent {
|
|
@@ -4081,12 +4098,6 @@ CatalogArticleTileComponent.propDecorators = {
|
|
|
4081
4098
|
class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent {
|
|
4082
4099
|
constructor() {
|
|
4083
4100
|
super(...arguments);
|
|
4084
|
-
this.createFrozenArticle = true;
|
|
4085
|
-
this.onLookAtArticleButtonClick = new EventEmitter();
|
|
4086
|
-
this.onArButtonClick = new EventEmitter();
|
|
4087
|
-
this.onAddArticleButtonClick = new EventEmitter();
|
|
4088
|
-
this.onArticleClick = new EventEmitter();
|
|
4089
|
-
this.onStockDetailsClick = new EventEmitter();
|
|
4090
4101
|
this.showClass = true;
|
|
4091
4102
|
this.smallScrollbar = true;
|
|
4092
4103
|
}
|
|
@@ -4137,12 +4148,6 @@ CatalogSearchResultTileComponent.decorators = [
|
|
|
4137
4148
|
];
|
|
4138
4149
|
CatalogSearchResultTileComponent.propDecorators = {
|
|
4139
4150
|
viewChildren: [{ type: ViewChildren, args: [CatalogArticleTileComponent, { read: ElementRef },] }],
|
|
4140
|
-
createFrozenArticle: [{ type: Input }],
|
|
4141
|
-
onLookAtArticleButtonClick: [{ type: Output }],
|
|
4142
|
-
onArButtonClick: [{ type: Output }],
|
|
4143
|
-
onAddArticleButtonClick: [{ type: Output }],
|
|
4144
|
-
onArticleClick: [{ type: Output }],
|
|
4145
|
-
onStockDetailsClick: [{ type: Output }],
|
|
4146
4151
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
4147
4152
|
smallScrollbar: [{ type: HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
4148
4153
|
};
|
|
@@ -4315,71 +4320,69 @@ CatalogArticleListComponent.decorators = [
|
|
|
4315
4320
|
{ type: Component, args: [{
|
|
4316
4321
|
selector: 'co-catalog-article-list',
|
|
4317
4322
|
template: `
|
|
4318
|
-
<div class="
|
|
4319
|
-
<div class="
|
|
4320
|
-
<div class="
|
|
4321
|
-
<
|
|
4322
|
-
|
|
4323
|
-
<co-icon class="no-image" [iconData]="iconCache.getIcon(icons.Camera)"></co-icon>
|
|
4324
|
-
<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>
|
|
4325
4328
|
</div>
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
></co-icon>
|
|
4333
|
-
</div>
|
|
4334
|
-
</div>
|
|
4335
|
-
<div class="description-wrapper">
|
|
4336
|
-
<div class="main">
|
|
4337
|
-
<div class="main-top">
|
|
4338
|
-
<div *ngIf="!!turnover" class="turnover" [innerText]="removeHtmlTags(turnover)"></div>
|
|
4339
|
-
<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>
|
|
4340
4335
|
</div>
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
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>
|
|
4352
4355
|
</div>
|
|
4353
4356
|
</div>
|
|
4354
4357
|
</div>
|
|
4355
4358
|
</div>
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
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>
|
|
4378
4385
|
</div>
|
|
4379
|
-
<div *ngIf="stock_available" (click)="handleStockDetailsButtonClick($event)" class="stock"
|
|
4380
|
-
[innerText]="stock_available"></div>
|
|
4381
|
-
<div *ngIf="!stock_available" (click)="handleStockDetailsButtonClick($event)" class="stock not-in-stock"
|
|
4382
|
-
[innerText]="'Niet op voorraad'"></div>
|
|
4383
4386
|
</div>
|
|
4384
4387
|
</div>
|
|
4385
4388
|
`,
|
|
@@ -4413,6 +4416,11 @@ CatalogSearchResultListComponent.decorators = [
|
|
|
4413
4416
|
[createFrozenArticle]="createFrozenArticle"
|
|
4414
4417
|
[showing]="intersection.isIntersecting"
|
|
4415
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)"
|
|
4416
4424
|
>
|
|
4417
4425
|
</co-catalog-article-list>
|
|
4418
4426
|
</ng-container>
|
|
@@ -4445,7 +4453,7 @@ CatalogArticleListModule.decorators = [
|
|
|
4445
4453
|
{ type: NgModule, args: [{
|
|
4446
4454
|
imports: [
|
|
4447
4455
|
CommonModule,
|
|
4448
|
-
ImageModule
|
|
4456
|
+
ImageModule,
|
|
4449
4457
|
IconModule$1,
|
|
4450
4458
|
CatalogFilterModule,
|
|
4451
4459
|
PriceDisplayPipeModule,
|