@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.
@@ -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.57";
34
- this.publishDate = "12/20/2023, 4:16:00 PM";
33
+ this.symVer = "12.1.59";
34
+ this.publishDate = "19-1-2024 18:12:29";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -4473,6 +4473,11 @@
4473
4473
  function CatalogSearchBaseComponent(catalogSearchService) {
4474
4474
  this.catalogSearchService = catalogSearchService;
4475
4475
  this.createFrozenArticle = true;
4476
+ this.onLookAtArticleButtonClick = new i0.EventEmitter();
4477
+ this.onArButtonClick = new i0.EventEmitter();
4478
+ this.onAddArticleButtonClick = new i0.EventEmitter();
4479
+ this.onArticleClick = new i0.EventEmitter();
4480
+ this.onStockDetailsClick = new i0.EventEmitter();
4476
4481
  this.elements = [];
4477
4482
  }
4478
4483
  CatalogSearchBaseComponent.prototype.onPreviousClick = function () {
@@ -4501,7 +4506,12 @@
4501
4506
  { type: CatalogSearchService }
4502
4507
  ]; };
4503
4508
  CatalogSearchBaseComponent.propDecorators = {
4504
- createFrozenArticle: [{ type: i0.Input }]
4509
+ createFrozenArticle: [{ type: i0.Input }],
4510
+ onLookAtArticleButtonClick: [{ type: i0.Output }],
4511
+ onArButtonClick: [{ type: i0.Output }],
4512
+ onAddArticleButtonClick: [{ type: i0.Output }],
4513
+ onArticleClick: [{ type: i0.Output }],
4514
+ onStockDetailsClick: [{ type: i0.Output }]
4505
4515
  };
4506
4516
 
4507
4517
  var ArticleBaseComponent = /** @class */ (function () {
@@ -4734,12 +4744,6 @@
4734
4744
  __extends(CatalogSearchResultTileComponent, _super);
4735
4745
  function CatalogSearchResultTileComponent() {
4736
4746
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
4737
- _this.createFrozenArticle = true;
4738
- _this.onLookAtArticleButtonClick = new i0.EventEmitter();
4739
- _this.onArButtonClick = new i0.EventEmitter();
4740
- _this.onAddArticleButtonClick = new i0.EventEmitter();
4741
- _this.onArticleClick = new i0.EventEmitter();
4742
- _this.onStockDetailsClick = new i0.EventEmitter();
4743
4747
  _this.showClass = true;
4744
4748
  _this.smallScrollbar = true;
4745
4749
  return _this;
@@ -4764,12 +4768,6 @@
4764
4768
  ];
4765
4769
  CatalogSearchResultTileComponent.propDecorators = {
4766
4770
  viewChildren: [{ type: i0.ViewChildren, args: [CatalogArticleTileComponent, { read: i0.ElementRef },] }],
4767
- createFrozenArticle: [{ type: i0.Input }],
4768
- onLookAtArticleButtonClick: [{ type: i0.Output }],
4769
- onArButtonClick: [{ type: i0.Output }],
4770
- onAddArticleButtonClick: [{ type: i0.Output }],
4771
- onArticleClick: [{ type: i0.Output }],
4772
- onStockDetailsClick: [{ type: i0.Output }],
4773
4771
  showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-result-tile',] }],
4774
4772
  smallScrollbar: [{ type: i0.HostBinding, args: ['class.co-small-scrollbar',] }]
4775
4773
  };
@@ -4970,7 +4968,7 @@
4970
4968
  CatalogArticleListComponent.decorators = [
4971
4969
  { type: i0.Component, args: [{
4972
4970
  selector: 'co-catalog-article-list',
4973
- template: "\n <div class=\"card-wrapper\">\n <div class=\"left\">\n <div class=\"image\">\n <co-image *ngIf=\"article && article.imageData\" [source]=\"article.imageData\"></co-image>\n <div class=\"no-image-wrapper\" *ngIf=\"!article || !article.imageData\">\n <co-icon class=\"no-image\" [iconData]=\"iconCache.getIcon(icons.Camera)\"></co-icon>\n <span [textContent]=\"'NO_IMAGE' | localize\"></span>\n </div>\n </div>\n <div class=\"button-wrapper\">\n <co-icon *ngIf=\"threeD\" [iconData]=\"iconCache.getIcon(icons.ThreeD)\" class=\"pointer\"></co-icon>\n <co-icon *ngIf=\"threeD && options.showARButton\" class=\"pointer\"\n [iconData]=\"iconCache.getIcon(icons.Ar)\"\n (click)=\"handleArButtonClick($event)\"\n ></co-icon>\n </div>\n </div>\n <div class=\"description-wrapper\">\n <div class=\"main\">\n <div class=\"main-top\">\n <div *ngIf=\"!!turnover\" class=\"turnover\" [innerText]=\"removeHtmlTags(turnover)\"></div>\n <div *ngIf=\"!!name\" class=\"description\" [innerText]=\"removeHtmlTags(name)\"></div>\n </div>\n <div class=\"main-bottom\">\n <div class=\"main-bottom-left\">\n <div *ngIf=\"!!article?.articleNumber\" class=\"sku\">\n <span [innerText]=\"'sku' | localize\"></span>:\n <span [innerText]=\"article.articleNumber\"></span>\n </div>\n <div class=\"description\">\n <span class=\"label\" [innerText]=\"'description' | localize\"></span>\n <span class=\"text\" *ngIf=\"!!article?.description\"\n [innerText]=\"removeHtmlTags(article.description)\"></span>\n <span class=\"text\" *ngIf=\"!!added_description\" [innerText]=\"removeHtmlTags(added_description)\"></span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"right\">\n <div *ngIf=\"!!article?.price\" class=\"price\" [innerText]=\"article?.price | priceDisplay:valutaSymbol\"></div>\n <div *ngIf=\"options.showAddArticleButton\" class=\"on-article-buttons\">\n <co-button *ngIf=\"!configurable\"\n [label]=\"options.addArticleButtonText\"\n class=\"open-icon action pointer\"\n (onClick)=\"handleAddArticleButtonClick($event)\"\n [iconData]=\"iconCache.getIcon(icons.AddToCartDrop)\">\n </co-button>\n <co-button *ngIf=\"configurable\"\n [label]=\"options.lookAtArticleButtonText\"\n class=\"open-icon action pointer\"\n (onClick)=\"handleLookAtArticleButtonClick($event)\"\n [iconData]=\"iconCache.getIcon(icons.MagicWand)\">\n </co-button>\n <!--co-button\n [label]=\"options.stockButtonText\"\n class=\"open-icon action pointer stock\"\n (onClick)=\"handleStockDetailsButtonClick($event)\"\n [iconData]=\"iconCache.getIcon(icons.Truck)\">\n </co-button-->\n </div>\n <div *ngIf=\"stock_available\" (click)=\"handleStockDetailsButtonClick($event)\" class=\"stock\"\n [innerText]=\"stock_available\"></div>\n <div *ngIf=\"!stock_available\" (click)=\"handleStockDetailsButtonClick($event)\" class=\"stock not-in-stock\"\n [innerText]=\"'Niet op voorraad'\"></div>\n </div>\n </div>\n ",
4971
+ template: "\n <div class=\"article-list-wrapper\">\n <div class=\"card-wrapper\">\n <div class=\"left\">\n <div class=\"image\">\n <co-image class=\"co-image\" [source]=\"article.imageData\"></co-image>\n </div>\n <div class=\"button-wrapper\">\n <co-icon *ngIf=\"threeD\" [iconData]=\"iconCache.getIcon(icons.ThreeD)\" class=\"pointer\"></co-icon>\n <co-icon *ngIf=\"threeD && options.showARButton\" class=\"pointer\"\n [iconData]=\"iconCache.getIcon(icons.Ar)\"\n (click)=\"handleArButtonClick($event)\"\n ></co-icon>\n </div>\n </div>\n <div class=\"description-wrapper\">\n <div class=\"main\">\n <div class=\"main-top\">\n <div *ngIf=\"!!turnover\" class=\"turnover\" [innerText]=\"removeHtmlTags(turnover)\"></div>\n <div *ngIf=\"!!name\" class=\"name\" [innerText]=\"removeHtmlTags(name)\"></div>\n </div>\n <div class=\"main-bottom\">\n <div class=\"main-bottom-left\">\n <div class=\"description\">\n <span class=\"label\" [innerText]=\"'DESCRIPTION' | localize\"></span>\n <span class=\"text\" *ngIf=\"!!article?.description\"\n [innerText]=\"removeHtmlTags(article.description)\"></span>\n <span class=\"text added\" *ngIf=\"!!added_description\" [innerText]=\"removeHtmlTags(added_description)\"></span>\n <div *ngIf=\"!!article?.articleNumber\" class=\"sku\">\n <span [innerText]=\"'sku' | localize\"></span>:\n <span [innerText]=\"article.articleNumber\"></span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"right\">\n <div class=\"stock-wrapper\">\n <div [innerText]=\"stockLabel | localize\" [class.in-stock]=\"inStock\" (click)=\"handleStockDetailsButtonClick($event)\"></div>\n <div [innerText]=\"deliveryTimeLabel\"></div>\n </div>\n <div *ngIf=\"!!article?.price\" class=\"price\" [innerText]=\"article?.price | priceDisplay:valutaSymbol\"></div>\n <div *ngIf=\"options.showAddArticleButton\" class=\"on-article-buttons\">\n <co-button *ngIf=\"!configurable\"\n [label]=\"options.addArticleButtonText\"\n class=\"open-icon action pointer\"\n (onClick)=\"handleAddArticleButtonClick($event)\"\n [iconData]=\"iconCache.getIcon(icons.AddToCartDrop)\">\n </co-button>\n <co-button *ngIf=\"configurable\"\n [label]=\"options.lookAtArticleButtonText\"\n class=\"open-icon action pointer\"\n (onClick)=\"handleLookAtArticleButtonClick($event)\"\n [iconData]=\"iconCache.getIcon(icons.MagicWand)\">\n </co-button>\n <!--co-button\n [label]=\"options.stockButtonText\"\n class=\"open-icon action pointer stock\"\n (onClick)=\"handleStockDetailsButtonClick($event)\"\n [iconData]=\"iconCache.getIcon(icons.Truck)\">\n </co-button-->\n </div>\n </div>\n </div>\n </div>\n ",
4974
4972
  encapsulation: i0.ViewEncapsulation.None
4975
4973
  },] }
4976
4974
  ];
@@ -5000,7 +4998,7 @@
5000
4998
  CatalogSearchResultListComponent.decorators = [
5001
4999
  { type: i0.Component, args: [{
5002
5000
  selector: 'co-catalog-search-result-list',
5003
- 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 ",
5001
+ 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 (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-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 ",
5004
5002
  encapsulation: i0.ViewEncapsulation.None
5005
5003
  },] }
5006
5004
  ];
@@ -5018,7 +5016,7 @@
5018
5016
  { type: i0.NgModule, args: [{
5019
5017
  imports: [
5020
5018
  common.CommonModule,
5021
- corecomponents.ImageModule,
5019
+ corecomponents_v12.ImageModule,
5022
5020
  corecomponents.IconModule,
5023
5021
  CatalogFilterModule,
5024
5022
  corecomponents.PriceDisplayPipeModule,
@@ -5161,7 +5159,7 @@
5161
5159
  var _this = this;
5162
5160
  this._subs.push(this._appEventService.addArticleButtonClick.subscribe(function (article) {
5163
5161
  if (!(article instanceof articleExtended_bo.ArticleExtended)) {
5164
- _this.addArticleClick.next(article);
5162
+ _this.addArticleClick.next({ quantity: 1, article: article });
5165
5163
  }
5166
5164
  }));
5167
5165
  };