@colijnit/catalog 12.1.55 → 12.1.57

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.55";
34
- this.publishDate = "15-12-2023 12:08:44";
33
+ this.symVer = "12.1.57";
34
+ this.publishDate = "12/20/2023, 4:16:00 PM";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -468,27 +468,34 @@
468
468
  }
469
469
  JsonUtils.ReadJsonFile = function (filePath) {
470
470
  return __awaiter(this, void 0, void 0, function () {
471
- var response, e_1;
471
+ var response, json, e_1, e_2;
472
472
  return __generator(this, function (_a) {
473
473
  switch (_a.label) {
474
474
  case 0:
475
- _a.trys.push([0, 2, , 3]);
475
+ _a.trys.push([0, 6, , 7]);
476
476
  return [4 /*yield*/, fetch(filePath)];
477
477
  case 1:
478
478
  response = _a.sent();
479
- if (!response.ok) {
480
- console.error('Error getting translation:', response.statusText);
481
- return [2 /*return*/, ''];
482
- }
483
- else {
484
- return [2 /*return*/, response.json()];
485
- }
486
- return [3 /*break*/, 3];
479
+ if (!!response.ok) return [3 /*break*/, 2];
480
+ console.error('Error getting json file:', response.statusText);
481
+ return [2 /*return*/, ''];
487
482
  case 2:
483
+ _a.trys.push([2, 4, , 5]);
484
+ return [4 /*yield*/, response.json().catch(function () {
485
+ return null;
486
+ })];
487
+ case 3:
488
+ json = _a.sent();
489
+ return [2 /*return*/, json];
490
+ case 4:
488
491
  e_1 = _a.sent();
489
- console.error('Error getting translation:', e_1.message);
492
+ return [2 /*return*/, null];
493
+ case 5: return [3 /*break*/, 7];
494
+ case 6:
495
+ e_2 = _a.sent();
496
+ console.error('Error getting json file:', e_2.message);
490
497
  return [2 /*return*/, ''];
491
- case 3: return [2 /*return*/];
498
+ case 7: return [2 /*return*/];
492
499
  }
493
500
  });
494
501
  });
@@ -3425,6 +3432,7 @@
3425
3432
  this._setPriceList();
3426
3433
  this._setCategories();
3427
3434
  this._setColors();
3435
+ this._setDoSyncValues();
3428
3436
  };
3429
3437
  CatalogFilterContentGeneralComponent.prototype._setStoreGroups = function () {
3430
3438
  var _this = this;
@@ -3450,6 +3458,12 @@
3450
3458
  _this.categoryCollection = _this.filterService.createFilterSelectionsCollection(categories, "categoryCode", "description");
3451
3459
  });
3452
3460
  };
3461
+ CatalogFilterContentGeneralComponent.prototype._setDoSyncValues = function () {
3462
+ var _this = this;
3463
+ this._catalogConnectorService.getDomainCollection(domainName_enum.DomainName.YesNo).then(function (doSyncValues) {
3464
+ _this.doSyncCollection = _this.filterService.createFilterSelectionsCollection(doSyncValues, "code", "description");
3465
+ });
3466
+ };
3453
3467
  CatalogFilterContentGeneralComponent.prototype._setColors = function () {
3454
3468
  var _this = this;
3455
3469
  this._catalogConnectorService.getColors().then(function (colors) {
@@ -3488,7 +3502,7 @@
3488
3502
  CatalogFilterContentGeneralComponent.decorators = [
3489
3503
  { type: i0.Component, args: [{
3490
3504
  selector: 'co-catalog-filter-content-general',
3491
- template: "\n <div class=\"catalog-filter-content-general-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PRICE'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=100000\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'LENGTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.length\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'WIDTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.width\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'HEIGHT'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.height\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'DEPTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'COLOR'\"\n [(model)]=\"catalogSearchService.searchRequest.colourCodes\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [collection]=\"colorCollection\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\"> \n <co-catalog-filter-item\n [placeholder]=\"'ARTICLE_TYPE'\"\n [customContent]=\"true\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL'\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_REGULAR_ARTICLES' | localize\" \n [(model)]=\"catalogSearchService.searchRequest.showRegularArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CONFIGURED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfiguredArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'BASE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfigurableArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'COMPOSITION_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCompositionArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CUSTOMIZED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCustomizedArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_INACTIVE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showInactiveArticles\"></co-input-checkbox>\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'AUTOMATICALLY_UPDATE'\"\n [mode]=\"modes.CheckboxToText\"\n [(model)]=\"catalogSearchService.searchRequest.doSync\"\n >\n </co-catalog-filter-item> \n </div> \n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'RETAIL_FORMULA'\"\n [collection]=\"storeGroupCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n > \n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'IN_OUT_COLLECTION'\"\n [collection]=\"inOutCollectionCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLE_TYPE'\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PUBLISH_VIA'\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'SELL_VIA'\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PRICELIST_SALES'\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'CATEGORY'\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-catalog-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\"\n [mode]=\"modes.Filterlist\"\n [initialLimit]=5\n ></co-catalog-filter-item> \n </div> \n </div>\n </div> \n </div>\n "
3505
+ template: "\n <div class=\"catalog-filter-content-general-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLENR'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.articleNumber\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'BARCODE'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.barcode\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PRICE'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=100000\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'LENGTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.length\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'WIDTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.width\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'HEIGHT'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.height\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'DEPTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'COLOR'\"\n [(model)]=\"catalogSearchService.searchRequest.colourCodes\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [collection]=\"colorCollection\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\"> \n <co-catalog-filter-item\n [placeholder]=\"'ARTICLE_TYPE'\"\n [customContent]=\"true\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL'\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_REGULAR_ARTICLES' | localize\" \n [(model)]=\"catalogSearchService.searchRequest.showRegularArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CONFIGURED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfiguredArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'BASE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfigurableArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'COMPOSITION_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCompositionArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CUSTOMIZED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCustomizedArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_INACTIVE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showInactiveArticles\"></co-input-checkbox>\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'AUTOMATICALLY_UPDATE'\"\n [collection]=\"doSyncCollection\"\n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.doSync\"\n >\n </co-catalog-filter-item> \n </div> \n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'RETAIL_FORMULA'\"\n [collection]=\"storeGroupCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n > \n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'IN_OUT_COLLECTION'\"\n [collection]=\"inOutCollectionCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLE_TYPE'\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PUBLISH_VIA'\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'SELL_VIA'\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PRICELIST_SALES'\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'CATEGORY'\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-catalog-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\"\n [mode]=\"modes.Filterlist\"\n [initialLimit]=5\n ></co-catalog-filter-item> \n </div> \n </div>\n </div> \n </div>\n "
3492
3506
  },] }
3493
3507
  ];
3494
3508
  CatalogFilterContentGeneralComponent.ctorParameters = function () { return [
@@ -4491,7 +4505,7 @@
4491
4505
  };
4492
4506
 
4493
4507
  var ArticleBaseComponent = /** @class */ (function () {
4494
- function ArticleBaseComponent(iconCache, catalogService, options, _iOne, _changeDetector, _appEventService, _imageService, _settingsService) {
4508
+ function ArticleBaseComponent(iconCache, catalogService, options, _iOne, _changeDetector, _appEventService, _imageService, _settingsService, _dictionaryService) {
4495
4509
  this.iconCache = iconCache;
4496
4510
  this.catalogService = catalogService;
4497
4511
  this.options = options;
@@ -4500,6 +4514,7 @@
4500
4514
  this._appEventService = _appEventService;
4501
4515
  this._imageService = _imageService;
4502
4516
  this._settingsService = _settingsService;
4517
+ this._dictionaryService = _dictionaryService;
4503
4518
  this.icons = IconEnum;
4504
4519
  this.createFrozenArticle = true;
4505
4520
  this.isSelected = false;
@@ -4519,6 +4534,7 @@
4519
4534
  this.configurable = false;
4520
4535
  this.threeD = false;
4521
4536
  this.valutaSymbol = '€';
4537
+ this.deliveryTimeLabel = ' ';
4522
4538
  this.inStock = false;
4523
4539
  }
4524
4540
  Object.defineProperty(ArticleBaseComponent.prototype, "article", {
@@ -4649,6 +4665,10 @@
4649
4665
  }
4650
4666
  });
4651
4667
  }
4668
+ if (this._article.totalDeliveryDays !== null && this._article.totalDeliveryDays !== undefined && this._article.totalDeliveryDays !== 0) {
4669
+ this.deliveryTimeLabel = this._dictionaryService.get('DELIVERY_TIME_PERIOD') + ' ' + this._article.totalDeliveryDays
4670
+ + ' ' + this._dictionaryService.get('DAYS', false);
4671
+ }
4652
4672
  };
4653
4673
  return ArticleBaseComponent;
4654
4674
  }());
@@ -4663,7 +4683,8 @@
4663
4683
  { type: i0.ChangeDetectorRef },
4664
4684
  { type: CatalogEventService },
4665
4685
  { type: CatalogImageService },
4666
- { type: CatalogSettingsService }
4686
+ { type: CatalogSettingsService },
4687
+ { type: DictionaryService }
4667
4688
  ]; };
4668
4689
  ArticleBaseComponent.propDecorators = {
4669
4690
  article: [{ type: i0.Input }],
@@ -4701,7 +4722,7 @@
4701
4722
  CatalogArticleTileComponent.decorators = [
4702
4723
  { type: i0.Component, args: [{
4703
4724
  selector: 'co-catalog-article-tile',
4704
- template: "\n <div class=\"article-tile-wrapper\">\n <div class=\"card-wrapper\">\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 <!--\n <div class=\"main\">\n -->\n <div class=\"main-top\">\n <div *ngIf=\"!!turnover\" class=\"turnover\" [innerText]=\"removeHtmlTags(turnover)\"></div>\n <div class=\"name\" [innerText]=\"removeHtmlTags(article.name)\"></div>\n <div class=\"description\" [innerText]=\"removeHtmlTags(article.description)\"></div>\n </div>\n <div class=\"main-bottom\">\n <div class=\"main-bottom-left\">\n <div *ngIf=\"!!article?.price\" class=\"price\" [innerText]=\"article?.price | priceDisplay:valutaSymbol\"></div>\n <div *ngIf=\"!!article?.articleNumber\" class=\"sku\">\n <span [innerText]=\"'sku' | localize\"></span>:\n <span [innerText]=\"article.articleNumber\"></span>\n </div>\n <div [innerText]=\"stockLabel | localize\" [class.in-stock]=\"inStock\" (click)=\"handleStockDetailsButtonClick($event)\"></div>\n </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 ",
4725
+ template: "\n <div class=\"article-tile-wrapper\">\n <div class=\"card-wrapper\">\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 <!--\n <div class=\"main\">\n -->\n <div class=\"main-top\">\n <div *ngIf=\"!!turnover\" class=\"turnover\" [innerText]=\"removeHtmlTags(turnover)\"></div>\n <div class=\"name\" [innerText]=\"removeHtmlTags(article.name)\"></div>\n <div class=\"description\" [innerText]=\"removeHtmlTags(article.description)\"></div>\n </div>\n <div class=\"main-bottom\">\n <div class=\"main-bottom-left\">\n <div *ngIf=\"!!article?.price\" class=\"price\" [innerText]=\"article?.price | priceDisplay:valutaSymbol\"></div>\n <div *ngIf=\"!!article?.articleNumber\" class=\"sku\">\n <span [innerText]=\"'sku' | localize\"></span>:\n <span [innerText]=\"article.articleNumber\"></span>\n </div>\n <div [innerText]=\"stockLabel | localize\" [class.in-stock]=\"inStock\" (click)=\"handleStockDetailsButtonClick($event)\"></div>\n <div [innerText]=\"deliveryTimeLabel\"></div>\n </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 ",
4705
4726
  encapsulation: i0.ViewEncapsulation.None
4706
4727
  },] }
4707
4728
  ];