@colijnit/catalog 12.1.50 → 12.1.51

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.50";
34
- this.publishDate = "19-10-2023 12:13:28";
33
+ this.symVer = "12.1.51";
34
+ this.publishDate = "27-10-2023 12:09:46";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -5032,6 +5032,7 @@
5032
5032
  this.iFrameFeedbackReceived = new i0.EventEmitter();
5033
5033
  this.showClass = true;
5034
5034
  this.showCatalog = false;
5035
+ this.vadainCounter = 0;
5035
5036
  this.loaded = false;
5036
5037
  this.externalSettings = {};
5037
5038
  this._subs = [];
@@ -5098,6 +5099,14 @@
5098
5099
  'PASSWORD': this.password
5099
5100
  }, '*');
5100
5101
  }
5102
+ if (this.externalOrderNr && this.vadainCounter === 1) {
5103
+ event.target.contentWindow.postMessage({
5104
+ 'EDIT_ORDER': true,
5105
+ 'ORDER_ID': this.externalOrderNr
5106
+ }, '*');
5107
+ this.externalOrderNr = null;
5108
+ }
5109
+ this.vadainCounter++;
5101
5110
  };
5102
5111
  CatalogExternalSourceComponent.prototype._prepareExternalSource = function () {
5103
5112
  return __awaiter(this, void 0, void 0, function () {
@@ -5132,9 +5141,7 @@
5132
5141
  if (this._externalSource.type === externalCatalogTypes_enum.ExternalCatalogTypes.Vadain) {
5133
5142
  this.username = this._externalCatalogStartupInfo.username;
5134
5143
  this.password = this._externalCatalogStartupInfo.password;
5135
- }
5136
- else if (this._externalSource.type == externalCatalogTypes_enum.ExternalCatalogTypes.Woontotaal) {
5137
- this.externalUrl += "?token=" + this._externalCatalogStartupInfo.token + "&isEmbedded=true";
5144
+ this.externalOrderNr = this._externalCatalogStartupInfo.orderId;
5138
5145
  }
5139
5146
  }
5140
5147
  else {