@colijnit/catalog 12.1.42 → 12.1.44

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.
Files changed (19) hide show
  1. package/bundles/colijnit-catalog.umd.js +37 -16
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog.metadata.json +1 -1
  4. package/esm2015/lib/catalog-version.js +3 -3
  5. package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +22 -3
  6. package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +1 -1
  7. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +45 -1
  8. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +4 -2
  9. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +2 -71
  10. package/esm2015/lib/service/catalog-connector.service.js +1 -1
  11. package/esm2015/lib/service/catalog.service.js +1 -1
  12. package/fesm2015/colijnit-catalog.js +69 -75
  13. package/fesm2015/colijnit-catalog.js.map +1 -1
  14. package/lib/component/catalog-article-tile/style/_layout.scss +2 -0
  15. package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +10 -3
  16. package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +1 -0
  17. package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +0 -1
  18. package/lib/service/catalog-connector.service.d.ts +2 -2
  19. package/package.json +1 -1
@@ -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.42";
34
- this.publishDate = "4-9-2023 09:00:11";
33
+ this.symVer = "12.1.44";
34
+ this.publishDate = "22-9-2023 10:21:10";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -3315,6 +3315,15 @@
3315
3315
  CatalogFilterContentGeneralComponent.prototype.ngOnDestroy = function () {
3316
3316
  this._subs.forEach(function (s) { return s.unsubscribe(); });
3317
3317
  };
3318
+ CatalogFilterContentGeneralComponent.prototype.handleAllChanged = function (value) {
3319
+ this.catalogSearchService.searchRequest["doSync"] = value ? "J" : "N";
3320
+ this.catalogSearchService.searchRequest["showRegularArticles"] = value;
3321
+ this.catalogSearchService.searchRequest["showConfiguredArticles"] = value;
3322
+ this.catalogSearchService.searchRequest["showConfigurableArticles"] = value;
3323
+ this.catalogSearchService.searchRequest["showCompositionArticles"] = value;
3324
+ this.catalogSearchService.searchRequest["showCustomizedArticles"] = value;
3325
+ this.catalogSearchService.searchRequest["showInactiveArticles"] = value;
3326
+ };
3318
3327
  CatalogFilterContentGeneralComponent.prototype._setCollections = function () {
3319
3328
  this._setStoreGroups();
3320
3329
  this._setInOutCollection();
@@ -3380,7 +3389,7 @@
3380
3389
  CatalogFilterContentGeneralComponent.decorators = [
3381
3390
  { type: i0.Component, args: [{
3382
3391
  selector: 'co-catalog-filter-content-general',
3383
- 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-filter-item [placeholder]=\"'PRICE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"100000\"\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'LENGTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.length\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'WIDTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.width\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'HEIGHT' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.height\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'DEPTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'RETAIL_FORMULA' | localize\"\n [expanded]=\"true\"\n [collection]=\"storeGroupCollection\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n > \n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'IN_OUT_COLLECTION' | localize\"\n [expanded]=\"true\"\n [collection]=\"inOutCollectionCollection\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'ARTICLE_TYPE' | localize\"\n [expanded]=\"true\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PUBLISH_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SELL_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\" \n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_SALES' | localize\"\n [expanded]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'CATEGORY' | localize\"\n [expanded]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\" \n [showLessLabel]=\"'Bekijk minder...'\"\n [showMoreLabel]=\"'Bekijk meer...'\"\n [searchPlaceholder]=\"'Zoeken...'\"\n [expanded]=true\n [initialLimit]=5 \n ></co-filter-item> <!--(collectionChange)=\"handleCollectionChange(filter.filterName, $event)\"-->\n </div>\n </div>\n </div> \n </div>\n "
3392
+ 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-filter-item [placeholder]=\"'PRICE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"100000\"\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'LENGTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.length\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'WIDTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.width\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'HEIGHT' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.height\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'DEPTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'ARTICLE_TYPE'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL' | localize\"></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-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'AUTOMATICALLY_UPDATE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.CheckboxToText\"\n [(model)]=\"catalogSearchService.searchRequest.doSync\">\n </co-filter-item> \n </div> \n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'RETAIL_FORMULA' | localize\"\n [expanded]=\"true\"\n [collection]=\"storeGroupCollection\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n > \n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'IN_OUT_COLLECTION' | localize\"\n [expanded]=\"true\"\n [collection]=\"inOutCollectionCollection\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'ARTICLE_TYPE' | localize\"\n [expanded]=\"true\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PUBLISH_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SELL_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\" \n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_SALES' | localize\"\n [expanded]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'CATEGORY' | localize\"\n [expanded]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\" \n [showLessLabel]=\"'Bekijk minder...'\"\n [showMoreLabel]=\"'Bekijk meer...'\"\n [searchPlaceholder]=\"'Zoeken...'\"\n [expanded]=true\n [initialLimit]=5 \n ></co-filter-item> <!--(collectionChange)=\"handleCollectionChange(filter.filterName, $event)\"-->\n </div>\n </div>\n </div> \n </div>\n "
3384
3393
  },] }
3385
3394
  ];
3386
3395
  CatalogFilterContentGeneralComponent.ctorParameters = function () { return [
@@ -3407,7 +3416,8 @@
3407
3416
  corecomponents_v12.InputTextModule,
3408
3417
  corecomponents_v12.ButtonModule,
3409
3418
  corecomponents_v12.IconModule,
3410
- PipeModule
3419
+ PipeModule,
3420
+ corecomponents.InputCheckboxModule
3411
3421
  ],
3412
3422
  declarations: [
3413
3423
  CatalogFilterContentGeneralComponent
@@ -3522,21 +3532,12 @@
3522
3532
  };
3523
3533
  CatalogFilterContentLogisticsComponent.prototype.ngOnInit = function () {
3524
3534
  };
3525
- CatalogFilterContentLogisticsComponent.prototype.handleAllChanged = function (value) {
3526
- this.catalogSearchService.searchRequest["doSync"] = value ? "J" : "N";
3527
- this.catalogSearchService.searchRequest["showRegularArticles"] = value;
3528
- this.catalogSearchService.searchRequest["showConfiguredArticles"] = value;
3529
- this.catalogSearchService.searchRequest["showConfigurableArticles"] = value;
3530
- this.catalogSearchService.searchRequest["showCompositionArticles"] = value;
3531
- this.catalogSearchService.searchRequest["showCustomizedArticles"] = value;
3532
- this.catalogSearchService.searchRequest["showInactiveArticles"] = value;
3533
- };
3534
3535
  return CatalogFilterContentLogisticsComponent;
3535
3536
  }());
3536
3537
  CatalogFilterContentLogisticsComponent.decorators = [
3537
3538
  { type: i0.Component, args: [{
3538
3539
  selector: 'co-catalog-filter-content-logistics',
3539
- template: "\n <div class=\"catalog-filter-content-logistics-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n \n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SERIALNUMBER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.serialNumber\">\n </co-filter-item> \n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'BATCH_NUMBER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.batchNumber\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'MUTATION_DATE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.DateField\"\n [(model)]=\"catalogSearchService.searchRequest.dateModified\">\n </co-filter-item>\n </div>\n\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'ALL'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL' | localize\"></co-input-checkbox>\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'AUTOMATICALLY_UPDATE'\"\n [expanded]=\"true\"\n [mode]=\"modes.CheckboxToText\"\n [(model)]=\"catalogSearchService.searchRequest.doSync\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SHOW_REGULAR_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showRegularArticles\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SHOW_CONFIGURED_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showConfiguredArticles\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'BASE_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showConfigurableArticles\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'COMPOSITION_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showCompositionArticles\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SHOW_CUSTOMIZED_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showCustomizedArticles\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SHOW_INACTIVE_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showInactiveArticles\">\n </co-filter-item>\n </div>\n </div>\n </div> \n </div>\n "
3540
+ template: "\n <div class=\"catalog-filter-content-logistics-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n \n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SERIALNUMBER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.serialNumber\">\n </co-filter-item> \n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'BATCH_NUMBER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.batchNumber\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'MUTATION_DATE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.DateField\"\n [(model)]=\"catalogSearchService.searchRequest.dateModified\">\n </co-filter-item>\n </div> \n </div>\n </div> \n </div>\n "
3540
3541
  },] }
3541
3542
  ];
3542
3543
  CatalogFilterContentLogisticsComponent.ctorParameters = function () { return [
@@ -4850,16 +4851,20 @@
4850
4851
  ];
4851
4852
 
4852
4853
  var CatalogExternalSourceComponent = /** @class */ (function () {
4853
- function CatalogExternalSourceComponent(_sanitizer, _catalogConnectorService) {
4854
+ function CatalogExternalSourceComponent(_sanitizer, _catalogConnectorService, _appEventService) {
4854
4855
  this._sanitizer = _sanitizer;
4855
4856
  this._catalogConnectorService = _catalogConnectorService;
4857
+ this._appEventService = _appEventService;
4856
4858
  this.showFilter = true;
4857
4859
  this.showNavigation = true;
4858
4860
  this.articleClick = new i0.EventEmitter();
4861
+ this.addArticleClick = new i0.EventEmitter();
4862
+ this.iFrameFeedbackReceived = new i0.EventEmitter();
4859
4863
  this.showClass = true;
4860
4864
  this.showCatalog = false;
4861
4865
  this.loaded = false;
4862
4866
  this.externalSettings = {};
4867
+ this._subs = [];
4863
4868
  }
4864
4869
  Object.defineProperty(CatalogExternalSourceComponent.prototype, "externalSource", {
4865
4870
  get: function () {
@@ -4873,14 +4878,26 @@
4873
4878
  enumerable: false,
4874
4879
  configurable: true
4875
4880
  });
4881
+ CatalogExternalSourceComponent.prototype.ngOnInit = function () {
4882
+ var _this = this;
4883
+ this._subs.push(this._appEventService.addArticleButtonClick.subscribe(function (json) {
4884
+ _this.addArticleClick.next(json);
4885
+ }));
4886
+ };
4876
4887
  CatalogExternalSourceComponent.prototype.handleArticleClick = function (article) {
4877
4888
  if (article && this.externalSettings) {
4878
4889
  this.articleClick.emit({ article: article, settings: { name: this.name, settings: this.externalSettings } });
4879
4890
  }
4880
4891
  };
4892
+ CatalogExternalSourceComponent.prototype.receiveMessage = function (event) {
4893
+ //if(event.origin === this.externalSource.url) {
4894
+ this.iFrameFeedbackReceived.emit(event.data);
4895
+ //}
4896
+ };
4881
4897
  CatalogExternalSourceComponent.prototype._prepareExternalSource = function () {
4882
4898
  return __awaiter(this, void 0, void 0, function () {
4883
4899
  var bundleSettings;
4900
+ var _this = this;
4884
4901
  return __generator(this, function (_a) {
4885
4902
  switch (_a.label) {
4886
4903
  case 0:
@@ -4908,6 +4925,7 @@
4908
4925
  this.externalUrl = this.externalSource.url;
4909
4926
  this.safeUrl = this._sanitizer.bypassSecurityTrustResourceUrl(this.externalUrl);
4910
4927
  this.showCatalog = false;
4928
+ window.addEventListener("message", function (event) { _this.receiveMessage(event); });
4911
4929
  _a.label = 3;
4912
4930
  case 3:
4913
4931
  this.loaded = true;
@@ -4927,7 +4945,8 @@
4927
4945
  ];
4928
4946
  CatalogExternalSourceComponent.ctorParameters = function () { return [
4929
4947
  { type: i1.DomSanitizer },
4930
- { type: CatalogConnectorService }
4948
+ { type: CatalogConnectorService },
4949
+ { type: CatalogEventService }
4931
4950
  ]; };
4932
4951
  CatalogExternalSourceComponent.propDecorators = {
4933
4952
  externalSource: [{ type: i0.Input }],
@@ -4939,6 +4958,8 @@
4939
4958
  options: [{ type: i0.Input }],
4940
4959
  name: [{ type: i0.Input }],
4941
4960
  articleClick: [{ type: i0.Output }],
4961
+ addArticleClick: [{ type: i0.Output }],
4962
+ iFrameFeedbackReceived: [{ type: i0.Output }],
4942
4963
  showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-external-source',] }]
4943
4964
  };
4944
4965