@colijnit/catalog 256.1.8 → 256.1.10

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