@c8y/ngx-components 1023.14.142 → 1023.14.143

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.
@@ -36092,12 +36092,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
36092
36092
  }], ctorParameters: () => [{ type: OptionsService }, { type: PreviewService }, { type: Permissions }] });
36093
36093
 
36094
36094
  class PreviewFeatureShowNotification {
36095
- constructor(previewService, permissions, appState) {
36095
+ constructor(previewService, permissions, appState, options) {
36096
36096
  this.previewService = previewService;
36097
36097
  this.permissions = permissions;
36098
36098
  this.appState = appState;
36099
- this.shouldShowNotification$ = this.appState.currentUser.pipe(switchMap$1(user => {
36100
- if (!user) {
36099
+ this.options = options;
36100
+ this.shouldShowNotification$ = combineLatest([
36101
+ this.appState.currentUser,
36102
+ this.options.get$('hidePreviewFeature')
36103
+ ]).pipe(switchMap$1(([user, hidePreviewFeature]) => {
36104
+ if (!user || hidePreviewFeature) {
36101
36105
  return of(false);
36102
36106
  }
36103
36107
  const hasAdminRole = this.permissions.hasRole(Permissions.ROLE_TENANT_MANAGEMENT_ADMIN);
@@ -36107,13 +36111,13 @@ class PreviewFeatureShowNotification {
36107
36111
  return this.previewService.hasUnseenFeatures$;
36108
36112
  }));
36109
36113
  }
36110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PreviewFeatureShowNotification, deps: [{ token: PreviewService }, { token: Permissions }, { token: AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
36114
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PreviewFeatureShowNotification, deps: [{ token: PreviewService }, { token: Permissions }, { token: AppStateService }, { token: OptionsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
36111
36115
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PreviewFeatureShowNotification, providedIn: 'root' }); }
36112
36116
  }
36113
36117
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PreviewFeatureShowNotification, decorators: [{
36114
36118
  type: Injectable,
36115
36119
  args: [{ providedIn: 'root' }]
36116
- }], ctorParameters: () => [{ type: PreviewService }, { type: Permissions }, { type: AppStateService }] });
36120
+ }], ctorParameters: () => [{ type: PreviewService }, { type: Permissions }, { type: AppStateService }, { type: OptionsService }] });
36117
36121
 
36118
36122
  class PluginLoadedPipe {
36119
36123
  constructor(pluginsResolve) {