@colijnit/catalog 258.1.2 → 258.1.3

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.
@@ -57,8 +57,8 @@ class Version {
57
57
  constructor() {
58
58
  this.name = "@colijnit/catalog";
59
59
  this.description = "iOne Catalog module based on Angular 12";
60
- this.symVer = "258.1.2";
61
- this.publishDate = "30-5-2025 08:21:52";
60
+ this.symVer = "258.1.3";
61
+ this.publishDate = "3-6-2025 08:42:59";
62
62
  }
63
63
  }
64
64
 
@@ -371,9 +371,34 @@ CatalogRootService.decorators = [
371
371
  },] }
372
372
  ];
373
373
 
374
+ class CatalogExternalSourcesService {
375
+ constructor() {
376
+ this.connectorsExternalSources = [];
377
+ }
378
+ addConnector(connector) {
379
+ this.connectorsExternalSources.push(connector);
380
+ }
381
+ logOutExternalSources() {
382
+ let len = this.connectorsExternalSources.length;
383
+ for (let i = 0; i < len; i++) {
384
+ let conn = this.connectorsExternalSources[i];
385
+ conn.logOut();
386
+ conn.destroy();
387
+ }
388
+ this.connectorsExternalSources.length = 0;
389
+ }
390
+ }
391
+ CatalogExternalSourcesService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogExternalSourcesService_Factory() { return new CatalogExternalSourcesService(); }, token: CatalogExternalSourcesService, providedIn: "root" });
392
+ CatalogExternalSourcesService.decorators = [
393
+ { type: Injectable, args: [{
394
+ providedIn: 'root'
395
+ },] }
396
+ ];
397
+
374
398
  class CatalogConnectorAdapterService {
375
- constructor(_catalogRootService) {
399
+ constructor(_catalogRootService, _catalogExternalSourcesService) {
376
400
  this._catalogRootService = _catalogRootService;
401
+ this._catalogExternalSourcesService = _catalogExternalSourcesService;
377
402
  this.controllerInitialized = new BehaviorSubject(false);
378
403
  this.connectorOptions = {};
379
404
  this._boFactory = new BusinessObjectFactory();
@@ -385,9 +410,8 @@ class CatalogConnectorAdapterService {
385
410
  }
386
411
  ngOnDestroy() {
387
412
  if (this.connector) {
388
- this.connector.logOut();
389
413
  this.connector.showLoader.unsubscribe();
390
- this.connector.destroy();
414
+ // this.connector.destroy();
391
415
  }
392
416
  }
393
417
  initConnector(settings, forceReload) {
@@ -409,6 +433,9 @@ class CatalogConnectorAdapterService {
409
433
  this.connector.showLoader.subscribe(showLoader => this.onShowLoaderChange(showLoader));
410
434
  this._initialized = true;
411
435
  this._initializing = false;
436
+ if (this.connectorOptions.externalSourceId) {
437
+ this._catalogExternalSourcesService.addConnector(this.connector);
438
+ }
412
439
  this.controllerInitialized.next(true);
413
440
  }
414
441
  }
@@ -1190,14 +1217,15 @@ class CatalogConnectorAdapterService {
1190
1217
  this._shouldShowLoader = showLoader;
1191
1218
  }
1192
1219
  }
1193
- CatalogConnectorAdapterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogConnectorAdapterService_Factory() { return new CatalogConnectorAdapterService(i0.ɵɵinject(CatalogRootService)); }, token: CatalogConnectorAdapterService, providedIn: "root" });
1220
+ CatalogConnectorAdapterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogConnectorAdapterService_Factory() { return new CatalogConnectorAdapterService(i0.ɵɵinject(CatalogRootService), i0.ɵɵinject(CatalogExternalSourcesService)); }, token: CatalogConnectorAdapterService, providedIn: "root" });
1194
1221
  CatalogConnectorAdapterService.decorators = [
1195
1222
  { type: Injectable, args: [{
1196
1223
  providedIn: 'root'
1197
1224
  },] }
1198
1225
  ];
1199
1226
  CatalogConnectorAdapterService.ctorParameters = () => [
1200
- { type: CatalogRootService }
1227
+ { type: CatalogRootService },
1228
+ { type: CatalogExternalSourcesService }
1201
1229
  ];
1202
1230
 
1203
1231
  // Class represents a value that is to be loaded only once, lazily, by its .loadFunction, despite how many times or how fast its getValue() is called.
@@ -7157,5 +7185,5 @@ CatalogNavigationService.ctorParameters = () => [
7157
7185
  * Generated bundle index. Do not edit.
7158
7186
  */
7159
7187
 
7160
- export { CatalogArticleListModule, CatalogArticleTileModule, CatalogBusinessObjectCacheManagerService, CatalogCategoriesModule, CatalogConnectorAdapterService, CatalogConnectorService, CatalogDictionaryService, CatalogEventService, CatalogExternalSourceModule, CatalogExternalSourcesModule, CatalogFilterModule, CatalogFilterService, CatalogImageService, CatalogNavigationModule, CatalogNavigationService, CatalogOptionsService, CatalogScreenConfigurationService, CatalogSearchHeaderModule, CatalogSearchModule, CatalogSearchResultListModule, CatalogSearchResultTileModule, CatalogSearchService, CatalogSelectMultipleCacheService, CatalogSelectMultipleParameterizedCacheService, CatalogSelectSingleCacheService, CatalogSelectSingleParameterizedCacheService, CatalogService, CatalogSettingsService, CatalogStockComparisonListModule, CatalogStockComparisonService, CatalogStockComparisonTileModule, CatalogStockOverviewListModule, CatalogStockOverviewTileModule, CatalogStockService, CatalogStockTransferService, CatalogWarehouseTransfersListModule, CatalogWarehouseTransfersTileModule, StockView, Version, CatalogFilterCategoriesModule as ɵa, CatalogPipeModule as ɵb, VisibilityObserverDirective as ɵba, CatalogSearchResultTileComponent as ɵbb, CatalogSearchBaseComponent as ɵbc, CatalogArticleListComponent as ɵbd, CatalogSearchResultListComponent as ɵbe, CatalogSearchResultGridModule as ɵbf, CatalogSearchResultGridComponent as ɵbg, CatalogSearchComponent as ɵbh, CatalogExternalSourceComponent as ɵbi, CatalogStockOverviewTileComponent as ɵbj, CatalogStockOverviewListComponent as ɵbk, CatalogStockComparisonTileComponent as ɵbl, CatalogStockComparisonListComponent as ɵbm, CatalogWarehouseTransfersTileComponent as ɵbn, CatalogWarehouseTransfersListComponent as ɵbo, CatalogLocalizePipe as ɵc, CatalogFilterCategoriesComponent as ɵd, CatalogFilterContentGeneralModule as ɵe, CatalogFilterItemModule as ɵf, CatalogFilterItemComponent as ɵg, CatalogRootService as ɵh, CacheField as ɵi, CatalogFilterContentGeneralComponent as ɵj, IconCacheService as ɵk, CatalogFilterContentPurchaseModule as ɵl, CatalogFilterContentPurchaseComponent as ɵm, CatalogFilterContentLogisticsModule as ɵn, CatalogFilterContentLogisticsComponent as ɵo, CatalogFilterComponent as ɵp, ResponsiveTextModule as ɵq, ResponsiveTextComponent as ɵr, CatalogCategoriesComponent as ɵs, CatalogExternalSourcesComponent as ɵt, CatalogNavigationComponent as ɵu, CatalogSearchHeaderComponent as ɵv, CatalogArticleTileComponent as ɵw, ArticleBaseComponent as ɵx, VisibilityObserverModule as ɵy, VisibilityObserverMasterDirective as ɵz };
7188
+ export { CatalogArticleListModule, CatalogArticleTileModule, CatalogBusinessObjectCacheManagerService, CatalogCategoriesModule, CatalogConnectorAdapterService, CatalogConnectorService, CatalogDictionaryService, CatalogEventService, CatalogExternalSourceModule, CatalogExternalSourcesModule, CatalogExternalSourcesService, CatalogFilterModule, CatalogFilterService, CatalogImageService, CatalogNavigationModule, CatalogNavigationService, CatalogOptionsService, CatalogScreenConfigurationService, CatalogSearchHeaderModule, CatalogSearchModule, CatalogSearchResultListModule, CatalogSearchResultTileModule, CatalogSearchService, CatalogSelectMultipleCacheService, CatalogSelectMultipleParameterizedCacheService, CatalogSelectSingleCacheService, CatalogSelectSingleParameterizedCacheService, CatalogService, CatalogSettingsService, CatalogStockComparisonListModule, CatalogStockComparisonService, CatalogStockComparisonTileModule, CatalogStockOverviewListModule, CatalogStockOverviewTileModule, CatalogStockService, CatalogStockTransferService, CatalogWarehouseTransfersListModule, CatalogWarehouseTransfersTileModule, StockView, Version, CatalogFilterCategoriesModule as ɵa, CatalogPipeModule as ɵb, VisibilityObserverDirective as ɵba, CatalogSearchResultTileComponent as ɵbb, CatalogSearchBaseComponent as ɵbc, CatalogArticleListComponent as ɵbd, CatalogSearchResultListComponent as ɵbe, CatalogSearchResultGridModule as ɵbf, CatalogSearchResultGridComponent as ɵbg, CatalogSearchComponent as ɵbh, CatalogExternalSourceComponent as ɵbi, CatalogStockOverviewTileComponent as ɵbj, CatalogStockOverviewListComponent as ɵbk, CatalogStockComparisonTileComponent as ɵbl, CatalogStockComparisonListComponent as ɵbm, CatalogWarehouseTransfersTileComponent as ɵbn, CatalogWarehouseTransfersListComponent as ɵbo, CatalogLocalizePipe as ɵc, CatalogFilterCategoriesComponent as ɵd, CatalogFilterContentGeneralModule as ɵe, CatalogFilterItemModule as ɵf, CatalogFilterItemComponent as ɵg, CatalogRootService as ɵh, CacheField as ɵi, CatalogFilterContentGeneralComponent as ɵj, IconCacheService as ɵk, CatalogFilterContentPurchaseModule as ɵl, CatalogFilterContentPurchaseComponent as ɵm, CatalogFilterContentLogisticsModule as ɵn, CatalogFilterContentLogisticsComponent as ɵo, CatalogFilterComponent as ɵp, ResponsiveTextModule as ɵq, ResponsiveTextComponent as ɵr, CatalogCategoriesComponent as ɵs, CatalogExternalSourcesComponent as ɵt, CatalogNavigationComponent as ɵu, CatalogSearchHeaderComponent as ɵv, CatalogArticleTileComponent as ɵw, ArticleBaseComponent as ɵx, VisibilityObserverModule as ɵy, VisibilityObserverMasterDirective as ɵz };
7161
7189
  //# sourceMappingURL=colijnit-catalog.js.map