@colijnit/catalog 255.1.15 → 255.1.17

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 = "255.1.15";
34
- this.publishDate = "29-11-2024 17:08:34";
33
+ this.symVer = "255.1.17";
34
+ this.publishDate = "4-12-2024 17:48:23";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -3381,6 +3381,7 @@
3381
3381
  _this.onResetFilters = new rxjs.Subject();
3382
3382
  _this.activeStockViewSubject = new rxjs.BehaviorSubject(undefined);
3383
3383
  _this.activeStockView = _this.activeStockViewSubject.asObservable();
3384
+ _this._readonly = false;
3384
3385
  _this._currentPage = 1;
3385
3386
  _this._filterText = [];
3386
3387
  _this.minMillisBetweenArticleSearches = 400;
@@ -4785,9 +4786,25 @@
4785
4786
  this.externalSourceViewModels.length = 0;
4786
4787
  if (!this.isStandalone) {
4787
4788
  this._catalogConnectorService.getAvailabeCatalogsForLoggedInUser().then(function (result) {
4789
+ var e_1, _a;
4788
4790
  if (result['validationResult']['success'] === true) {
4789
4791
  if (result['resultObject']['availableCatalogs']) {
4790
- _this.loadCatalogs(result['resultObject']['availableCatalogs']).then(function (result) { });
4792
+ var availableCatalogs = [];
4793
+ try {
4794
+ for (var _b = __values(result['resultObject']['availableCatalogs']), _c = _b.next(); !_c.done; _c = _b.next()) {
4795
+ var availableCatalog = _c.value;
4796
+ var instance = Object.assign(new catalogDefinition_bo.CatalogDefinition(), availableCatalog);
4797
+ availableCatalogs.push(instance);
4798
+ }
4799
+ }
4800
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4801
+ finally {
4802
+ try {
4803
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4804
+ }
4805
+ finally { if (e_1) throw e_1.error; }
4806
+ }
4807
+ _this.loadCatalogs(availableCatalogs).then(function (result) { });
4791
4808
  }
4792
4809
  if (result['resultObject']['unavailableCatalogs']) {
4793
4810
  _this.loadUnavailableCatalogs(result['resultObject']['unavailableCatalogs']);