@onecx/angular-integration-interface 5.51.0 → 5.52.0

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.
Files changed (27) hide show
  1. package/esm2022/lib/services/app-config-service.mjs +3 -3
  2. package/esm2022/lib/services/app-state.service.mjs +65 -29
  3. package/esm2022/lib/services/configuration.service.mjs +12 -6
  4. package/esm2022/lib/services/initialize-module-guard.service.mjs +3 -3
  5. package/esm2022/lib/services/portal-message.service.mjs +12 -6
  6. package/esm2022/lib/services/remote-components.service.mjs +11 -7
  7. package/esm2022/lib/services/shell-capability.service.mjs +3 -3
  8. package/esm2022/lib/services/theme.service.mjs +12 -6
  9. package/esm2022/lib/services/user.service.mjs +12 -5
  10. package/esm2022/lib/services/workspace.service.mjs +3 -3
  11. package/esm2022/mocks/app-config-service-mock.mjs +3 -3
  12. package/esm2022/mocks/app-state-service-mock.mjs +3 -3
  13. package/esm2022/mocks/configuration-service-mock.mjs +3 -3
  14. package/esm2022/mocks/portal-message-service-mock.mjs +3 -3
  15. package/esm2022/mocks/remote-components-service-mock.mjs +3 -3
  16. package/esm2022/mocks/shell-capability-service-mock.mjs +3 -3
  17. package/esm2022/mocks/user-service-mock.mjs +3 -3
  18. package/fesm2022/onecx-angular-integration-interface-mocks.mjs +21 -21
  19. package/fesm2022/onecx-angular-integration-interface.mjs +131 -66
  20. package/fesm2022/onecx-angular-integration-interface.mjs.map +1 -1
  21. package/lib/services/app-state.service.d.ts +21 -7
  22. package/lib/services/configuration.service.d.ts +3 -1
  23. package/lib/services/portal-message.service.d.ts +3 -1
  24. package/lib/services/remote-components.service.d.ts +3 -1
  25. package/lib/services/theme.service.d.ts +3 -1
  26. package/lib/services/user.service.d.ts +4 -2
  27. package/package.json +6 -2
@@ -9,10 +9,10 @@ export class RemoteComponentsServiceMock {
9
9
  constructor() {
10
10
  this.remoteComponents$ = new FakeTopic();
11
11
  }
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoteComponentsServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
13
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoteComponentsServiceMock, providedIn: 'root' }); }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoteComponentsServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
13
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoteComponentsServiceMock, providedIn: 'root' }); }
14
14
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoteComponentsServiceMock, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoteComponentsServiceMock, decorators: [{
16
16
  type: Injectable,
17
17
  args: [{ providedIn: 'root' }]
18
18
  }] });
@@ -12,10 +12,10 @@ export class ShellCapabilityServiceMock {
12
12
  hasCapability(capability) {
13
13
  return ShellCapabilityServiceMock.capabilities?.includes(capability) ?? false;
14
14
  }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShellCapabilityServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
16
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShellCapabilityServiceMock }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShellCapabilityServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
16
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShellCapabilityServiceMock }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShellCapabilityServiceMock, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShellCapabilityServiceMock, decorators: [{
19
19
  type: Injectable
20
20
  }] });
21
21
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hlbGwtY2FwYWJpbGl0eS1zZXJ2aWNlLW1vY2suanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItaW50ZWdyYXRpb24taW50ZXJmYWNlL21vY2tzL3NoZWxsLWNhcGFiaWxpdHktc2VydmljZS1tb2NrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUE7QUFDMUMsT0FBTyxFQUFjLHNCQUFzQixFQUFFLE1BQU0sc0NBQXNDLENBQUE7O0FBRXpGLE1BQU0sVUFBVSxpQ0FBaUM7SUFDL0MsT0FBTyxDQUFDLDBCQUEwQixFQUFFLEVBQUUsT0FBTyxFQUFFLHNCQUFzQixFQUFFLFdBQVcsRUFBRSwwQkFBMEIsRUFBRSxDQUFDLENBQUE7QUFDbkgsQ0FBQztBQUdELE1BQU0sT0FBTywwQkFBMEI7YUFDOUIsaUJBQVksR0FBaUIsRUFBRSxBQUFuQixDQUFtQjtJQUV0QyxNQUFNLENBQUMsZUFBZSxDQUFDLFlBQTBCO1FBQy9DLDBCQUEwQixDQUFDLFlBQVksR0FBRyxZQUFZLENBQUE7SUFDeEQsQ0FBQztJQUVELGFBQWEsQ0FBQyxVQUFzQjtRQUNsQyxPQUFPLDBCQUEwQixDQUFDLFlBQVksRUFBRSxRQUFRLENBQUMsVUFBVSxDQUFDLElBQUksS0FBSyxDQUFBO0lBQy9FLENBQUM7K0dBVFUsMEJBQTBCO21IQUExQiwwQkFBMEI7OzRGQUExQiwwQkFBMEI7a0JBRHRDLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSdcbmltcG9ydCB7IENhcGFiaWxpdHksIFNoZWxsQ2FwYWJpbGl0eVNlcnZpY2UgfSBmcm9tICdAb25lY3gvYW5ndWxhci1pbnRlZ3JhdGlvbi1pbnRlcmZhY2UnXG5cbmV4cG9ydCBmdW5jdGlvbiBwcm92aWRlU2hlbGxDYXBhYmlsaXR5U2VydmljZU1vY2soKSB7XG4gIHJldHVybiBbU2hlbGxDYXBhYmlsaXR5U2VydmljZU1vY2ssIHsgcHJvdmlkZTogU2hlbGxDYXBhYmlsaXR5U2VydmljZSwgdXNlRXhpc3Rpbmc6IFNoZWxsQ2FwYWJpbGl0eVNlcnZpY2VNb2NrIH1dXG59XG5cbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBTaGVsbENhcGFiaWxpdHlTZXJ2aWNlTW9jayB7XG4gIHN0YXRpYyBjYXBhYmlsaXRpZXM6IENhcGFiaWxpdHlbXSA9IFtdXG5cbiAgc3RhdGljIHNldENhcGFiaWxpdGllcyhjYXBhYmlsaXRpZXM6IENhcGFiaWxpdHlbXSk6IHZvaWQge1xuICAgIFNoZWxsQ2FwYWJpbGl0eVNlcnZpY2VNb2NrLmNhcGFiaWxpdGllcyA9IGNhcGFiaWxpdGllc1xuICB9XG5cbiAgaGFzQ2FwYWJpbGl0eShjYXBhYmlsaXR5OiBDYXBhYmlsaXR5KTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIFNoZWxsQ2FwYWJpbGl0eVNlcnZpY2VNb2NrLmNhcGFiaWxpdGllcz8uaW5jbHVkZXMoY2FwYWJpbGl0eSkgPz8gZmFsc2VcbiAgfVxufVxuIl19
@@ -31,10 +31,10 @@ export class UserServiceMock {
31
31
  get isInitialized() {
32
32
  return Promise.resolve();
33
33
  }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
35
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UserServiceMock, providedIn: 'root' }); }
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
35
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserServiceMock, providedIn: 'root' }); }
36
36
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UserServiceMock, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserServiceMock, decorators: [{
38
38
  type: Injectable,
39
39
  args: [{ providedIn: 'root' }]
40
40
  }] });
@@ -28,10 +28,10 @@ class AppConfigServiceMock {
28
28
  getConfig() {
29
29
  return this.config$.getValue();
30
30
  }
31
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppConfigServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
32
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppConfigServiceMock }); }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppConfigServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
32
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppConfigServiceMock }); }
33
33
  }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppConfigServiceMock, decorators: [{
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppConfigServiceMock, decorators: [{
35
35
  type: Injectable
36
36
  }] });
37
37
 
@@ -100,10 +100,10 @@ class AppStateServiceMock {
100
100
  });
101
101
  this.isAuthenticated$ = new FakeTopic(null);
102
102
  }
103
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppStateServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
104
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppStateServiceMock }); }
103
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppStateServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
104
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppStateServiceMock }); }
105
105
  }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppStateServiceMock, decorators: [{
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppStateServiceMock, decorators: [{
107
107
  type: Injectable
108
108
  }] });
109
109
 
@@ -141,10 +141,10 @@ class ConfigurationServiceMock {
141
141
  getConfig() {
142
142
  return this.config$.getValue();
143
143
  }
144
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
145
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationServiceMock, providedIn: 'root' }); }
144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
145
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationServiceMock, providedIn: 'root' }); }
146
146
  }
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationServiceMock, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationServiceMock, decorators: [{
148
148
  type: Injectable,
149
149
  args: [{ providedIn: 'root' }]
150
150
  }], ctorParameters: () => [] });
@@ -175,10 +175,10 @@ class PortalMessageServiceMock {
175
175
  severity: severity,
176
176
  });
177
177
  }
178
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PortalMessageServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
179
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PortalMessageServiceMock, providedIn: 'any' }); }
178
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PortalMessageServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
179
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PortalMessageServiceMock, providedIn: 'any' }); }
180
180
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PortalMessageServiceMock, decorators: [{
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PortalMessageServiceMock, decorators: [{
182
182
  type: Injectable,
183
183
  args: [{ providedIn: 'any' }]
184
184
  }] });
@@ -190,10 +190,10 @@ class RemoteComponentsServiceMock {
190
190
  constructor() {
191
191
  this.remoteComponents$ = new FakeTopic();
192
192
  }
193
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoteComponentsServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
194
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoteComponentsServiceMock, providedIn: 'root' }); }
193
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoteComponentsServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
194
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoteComponentsServiceMock, providedIn: 'root' }); }
195
195
  }
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoteComponentsServiceMock, decorators: [{
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoteComponentsServiceMock, decorators: [{
197
197
  type: Injectable,
198
198
  args: [{ providedIn: 'root' }]
199
199
  }] });
@@ -209,10 +209,10 @@ class ShellCapabilityServiceMock {
209
209
  hasCapability(capability) {
210
210
  return ShellCapabilityServiceMock.capabilities?.includes(capability) ?? false;
211
211
  }
212
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShellCapabilityServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
213
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShellCapabilityServiceMock }); }
212
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShellCapabilityServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
213
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShellCapabilityServiceMock }); }
214
214
  }
215
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShellCapabilityServiceMock, decorators: [{
215
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShellCapabilityServiceMock, decorators: [{
216
216
  type: Injectable
217
217
  }] });
218
218
 
@@ -244,10 +244,10 @@ class UserServiceMock {
244
244
  get isInitialized() {
245
245
  return Promise.resolve();
246
246
  }
247
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
248
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UserServiceMock, providedIn: 'root' }); }
247
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
248
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserServiceMock, providedIn: 'root' }); }
249
249
  }
250
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UserServiceMock, decorators: [{
250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserServiceMock, decorators: [{
251
251
  type: Injectable,
252
252
  args: [{ providedIn: 'root' }]
253
253
  }] });
@@ -3,7 +3,7 @@ import * as i1 from '@angular/common/http';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Injectable, InjectionToken, Optional, Inject } from '@angular/core';
5
5
  import { BehaviorSubject, firstValueFrom, map, skip, merge, filter, combineLatest, of, first, mergeMap, from, zip, tap, isObservable } from 'rxjs';
6
- import { GlobalErrorTopic, GlobalLoadingTopic, CurrentMfeTopic, CurrentLocationTopic, CurrentPageTopic, CurrentWorkspaceTopic, IsAuthenticatedTopic, ConfigurationTopic, UserProfileTopic, PermissionsTopic, MessageTopic, CurrentThemeTopic, RemoteComponentsTopic } from '@onecx/integration-interface';
6
+ import { GlobalErrorTopic, GlobalLoadingTopic, CurrentMfeTopic, CurrentLocationTopic, CurrentPageTopic, CurrentWorkspaceTopic, IsAuthenticatedTopic, ConfigurationTopic, PermissionsTopic, UserProfileTopic, MessageTopic, CurrentThemeTopic, RemoteComponentsTopic } from '@onecx/integration-interface';
7
7
  import { getNormalizedBrowserLocales } from '@onecx/accelerator';
8
8
  import * as i1$1 from '@ngx-translate/core';
9
9
 
@@ -37,29 +37,59 @@ class AppConfigService {
37
37
  getConfig() {
38
38
  return this.config$.getValue();
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppConfigService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
41
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppConfigService }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppConfigService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
41
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppConfigService }); }
42
42
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppConfigService, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppConfigService, decorators: [{
44
44
  type: Injectable
45
45
  }], ctorParameters: () => [{ type: i1.HttpClient }] });
46
46
 
47
47
  class AppStateService {
48
- constructor() {
49
- this.globalError$ = new GlobalErrorTopic();
50
- this.globalLoading$ = new GlobalLoadingTopic();
51
- this.currentMfe$ = new CurrentMfeTopic();
52
- this.currentLocation$ = new CurrentLocationTopic();
53
- /**
54
- * This topic will only fire when pageInfo.path matches document.location.pathname,
55
- * if not it will fire undefined.
56
- */
57
- this.currentPage$ = new CurrentPageTopic();
58
- this.currentWorkspace$ = new CurrentWorkspaceTopic();
59
- /**
60
- * This Topic is initialized as soon as the authentication is done
61
- */
62
- this.isAuthenticated$ = new IsAuthenticatedTopic();
48
+ get globalError$() {
49
+ this._globalError$ ??= new GlobalErrorTopic();
50
+ return this._globalError$;
51
+ }
52
+ set globalError$(value) {
53
+ this._globalError$ = value;
54
+ }
55
+ get globalLoading$() {
56
+ this._globalLoading$ ??= new GlobalLoadingTopic();
57
+ return this._globalLoading$;
58
+ }
59
+ set globalLoading$(value) {
60
+ this._globalLoading$ = value;
61
+ }
62
+ get currentMfe$() {
63
+ this._currentMfe$ ??= new CurrentMfeTopic();
64
+ return this._currentMfe$;
65
+ }
66
+ set currentMfe$(value) {
67
+ this._currentMfe$ = value;
68
+ }
69
+ get currentLocation$() {
70
+ this._currentLocation$ ??= new CurrentLocationTopic();
71
+ return this._currentLocation$;
72
+ }
73
+ set currentLocation$(value) {
74
+ this._currentLocation$ = value;
75
+ }
76
+ /**
77
+ * This topic will only fire when pageInfo.path matches document.location.pathname,
78
+ * if not it will fire undefined.
79
+ */
80
+ get currentPage$() {
81
+ this._currentPage$ ??= new CurrentPageTopic();
82
+ return this._currentPage$;
83
+ }
84
+ set currentPage$(value) {
85
+ this._currentPage$ = value;
86
+ }
87
+ get currentWorkspace$() {
88
+ this._currentWorkspace$ ??= new CurrentWorkspaceTopic();
89
+ return this._currentWorkspace$;
90
+ }
91
+ set currentWorkspace$(value) {
92
+ this._currentWorkspace$ = value;
63
93
  }
64
94
  /**
65
95
  * @deprecated Will be replaced by currentWorkspace$
@@ -68,22 +98,28 @@ class AppStateService {
68
98
  return this.currentWorkspace$;
69
99
  }
70
100
  set currentPortal$(value) {
71
- this.currentWorkspace$ = value;
101
+ this._currentWorkspace$ = value;
102
+ }
103
+ get isAuthenticated$() {
104
+ this._isAuthenticated$ ??= new IsAuthenticatedTopic();
105
+ return this._isAuthenticated$;
106
+ }
107
+ set isAuthenticated$(value) {
108
+ this._isAuthenticated$ = value;
72
109
  }
73
110
  ngOnDestroy() {
74
- this.globalError$.destroy();
75
- this.globalLoading$.destroy();
76
- this.currentMfe$.destroy();
77
- this.currentPage$.destroy();
78
- this.currentPortal$.destroy();
79
- this.currentLocation$.destroy();
80
- this.currentWorkspace$.destroy();
81
- this.isAuthenticated$.destroy();
82
- }
83
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
84
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppStateService, providedIn: 'root' }); }
111
+ this._globalError$?.destroy();
112
+ this._globalLoading$?.destroy();
113
+ this._currentMfe$?.destroy();
114
+ this._currentPage$?.destroy();
115
+ this._currentLocation$?.destroy();
116
+ this._currentWorkspace$?.destroy();
117
+ this._isAuthenticated$?.destroy();
118
+ }
119
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
120
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppStateService, providedIn: 'root' }); }
85
121
  }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AppStateService, decorators: [{
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AppStateService, decorators: [{
87
123
  type: Injectable,
88
124
  args: [{ providedIn: 'root' }]
89
125
  }] });
@@ -130,13 +166,19 @@ var CONFIG_KEY;
130
166
  })(CONFIG_KEY || (CONFIG_KEY = {}));
131
167
 
132
168
  class ConfigurationService {
169
+ get config$() {
170
+ this._config$ ??= new ConfigurationTopic();
171
+ return this._config$;
172
+ }
173
+ set config$(value) {
174
+ this._config$ = value;
175
+ }
133
176
  constructor(http, defaultConfig) {
134
177
  this.http = http;
135
178
  this.defaultConfig = defaultConfig;
136
- this.config$ = new ConfigurationTopic();
137
179
  }
138
180
  ngOnDestroy() {
139
- this.config$.destroy();
181
+ this._config$?.destroy();
140
182
  }
141
183
  init() {
142
184
  return new Promise((resolve, reject) => {
@@ -185,10 +227,10 @@ class ConfigurationService {
185
227
  getConfig() {
186
228
  return this.config$.getValue();
187
229
  }
188
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.HttpClient }, { token: APP_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
189
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationService, providedIn: 'root' }); }
230
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.HttpClient }, { token: APP_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
231
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationService, providedIn: 'root' }); }
190
232
  }
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationService, decorators: [{
233
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationService, decorators: [{
192
234
  type: Injectable,
193
235
  args: [{ providedIn: 'root' }]
194
236
  }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
@@ -202,11 +244,17 @@ const API_PREFIX = 'portal-api';
202
244
  const DEFAULT_LANG = 'en';
203
245
 
204
246
  class UserService {
247
+ get permissionsTopic$() {
248
+ this._permissionsTopic$ ??= new PermissionsTopic();
249
+ return this._permissionsTopic$;
250
+ }
251
+ set permissionsTopic$(value) {
252
+ this._permissionsTopic$ = value;
253
+ }
205
254
  constructor() {
206
255
  this.profile$ = new UserProfileTopic();
207
256
  this.permissions$ = new BehaviorSubject([]);
208
257
  this.lang$ = new BehaviorSubject(this.determineLanguage() ?? DEFAULT_LANG);
209
- this.permissionsTopic$ = new PermissionsTopic();
210
258
  this.profile$
211
259
  .pipe(map((profile) => {
212
260
  let locales = profile.settings?.locales;
@@ -231,6 +279,7 @@ class UserService {
231
279
  }
232
280
  ngOnDestroy() {
233
281
  this.profile$.destroy();
282
+ this._permissionsTopic$?.destroy();
234
283
  }
235
284
  useOldLangSetting(profile) {
236
285
  return profile.accountSettings?.localeAndTimeSettings?.locale ?? this.determineLanguage() ?? DEFAULT_LANG;
@@ -297,10 +346,10 @@ class UserService {
297
346
  // eslint-disable-next-line @typescript-eslint/no-empty-function
298
347
  ]).then(() => { });
299
348
  }
300
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
301
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UserService, providedIn: 'root' }); }
349
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
350
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserService, providedIn: 'root' }); }
302
351
  }
303
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UserService, decorators: [{
352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserService, decorators: [{
304
353
  type: Injectable,
305
354
  args: [{ providedIn: 'root' }]
306
355
  }], ctorParameters: () => [] });
@@ -308,7 +357,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
308
357
  class PortalMessageService {
309
358
  constructor(translateService) {
310
359
  this.translateService = translateService;
311
- this.message$ = new MessageTopic();
360
+ }
361
+ get message$() {
362
+ this._message$ ??= new MessageTopic();
363
+ return this._message$;
364
+ }
365
+ set message$(value) {
366
+ this._message$ = value;
312
367
  }
313
368
  success(msg) {
314
369
  this.addTranslated('success', msg);
@@ -338,23 +393,29 @@ class PortalMessageService {
338
393
  });
339
394
  }
340
395
  ngOnDestroy() {
341
- this.message$.destroy();
396
+ this._message$?.destroy();
342
397
  }
343
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PortalMessageService, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
344
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PortalMessageService, providedIn: 'any' }); }
398
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PortalMessageService, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
399
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PortalMessageService, providedIn: 'any' }); }
345
400
  }
346
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PortalMessageService, decorators: [{
401
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PortalMessageService, decorators: [{
347
402
  type: Injectable,
348
403
  args: [{ providedIn: 'any' }]
349
404
  }], ctorParameters: () => [{ type: i1$1.TranslateService }] });
350
405
 
351
406
  const defaultThemeServerUrl = 'http://portal-theme-management:8080';
352
407
  class ThemeService {
408
+ get currentTheme$() {
409
+ this._currentTheme$ ??= new CurrentThemeTopic();
410
+ return this._currentTheme$;
411
+ }
412
+ set currentTheme$(value) {
413
+ this._currentTheme$ = value;
414
+ }
353
415
  constructor(configService, http) {
354
416
  this.configService = configService;
355
417
  this.http = http;
356
418
  this.baseUrlV1 = './portal-api';
357
- this.currentTheme$ = new CurrentThemeTopic();
358
419
  }
359
420
  getThemeHref(themeId) {
360
421
  const themeServerUrl = this.configService.getProperty(CONFIG_KEY.TKIT_PORTAL_THEME_SERVER_URL) || defaultThemeServerUrl;
@@ -377,27 +438,31 @@ class ThemeService {
377
438
  }
378
439
  }
379
440
  ngOnDestroy() {
380
- this.currentTheme$.destroy();
441
+ this._currentTheme$?.destroy();
381
442
  }
382
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThemeService, deps: [{ token: ConfigurationService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
383
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThemeService, providedIn: 'root' }); }
443
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThemeService, deps: [{ token: ConfigurationService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
444
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThemeService, providedIn: 'root' }); }
384
445
  }
385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThemeService, decorators: [{
446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThemeService, decorators: [{
386
447
  type: Injectable,
387
448
  args: [{ providedIn: 'root' }]
388
449
  }], ctorParameters: () => [{ type: ConfigurationService }, { type: i1.HttpClient }] });
389
450
 
390
451
  class RemoteComponentsService {
391
- constructor() {
392
- this.remoteComponents$ = new RemoteComponentsTopic();
452
+ get remoteComponents$() {
453
+ this._remoteComponents$ ??= new RemoteComponentsTopic();
454
+ return this._remoteComponents$;
455
+ }
456
+ set remoteComponents$(value) {
457
+ this._remoteComponents$ = value;
393
458
  }
394
459
  ngOnDestroy() {
395
- this.remoteComponents$.destroy();
460
+ this._remoteComponents$?.destroy();
396
461
  }
397
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoteComponentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
398
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoteComponentsService, providedIn: 'root' }); }
462
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoteComponentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
463
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoteComponentsService, providedIn: 'root' }); }
399
464
  }
400
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoteComponentsService, decorators: [{
465
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoteComponentsService, decorators: [{
401
466
  type: Injectable,
402
467
  args: [{ providedIn: 'root' }]
403
468
  }] });
@@ -443,10 +508,10 @@ class InitializeModuleGuard {
443
508
  }
444
509
  return from(Promise.resolve(canActivateResult));
445
510
  }
446
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InitializeModuleGuard, deps: [{ token: i1$1.TranslateService }, { token: ConfigurationService }, { token: AppStateService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
447
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InitializeModuleGuard, providedIn: 'any' }); }
511
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InitializeModuleGuard, deps: [{ token: i1$1.TranslateService }, { token: ConfigurationService }, { token: AppStateService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
512
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InitializeModuleGuard, providedIn: 'any' }); }
448
513
  }
449
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InitializeModuleGuard, decorators: [{
514
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InitializeModuleGuard, decorators: [{
450
515
  type: Injectable,
451
516
  args: [{ providedIn: 'any' }]
452
517
  }], ctorParameters: () => [{ type: i1$1.TranslateService }, { type: ConfigurationService }, { type: AppStateService }, { type: UserService }] });
@@ -581,10 +646,10 @@ class WorkspaceService {
581
646
  return String(value);
582
647
  }
583
648
  }
584
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: WorkspaceService, deps: [{ token: AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
585
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: WorkspaceService, providedIn: 'root' }); }
649
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WorkspaceService, deps: [{ token: AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
650
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WorkspaceService, providedIn: 'root' }); }
586
651
  }
587
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: WorkspaceService, decorators: [{
652
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WorkspaceService, decorators: [{
588
653
  type: Injectable,
589
654
  args: [{
590
655
  providedIn: 'root',
@@ -604,10 +669,10 @@ class ShellCapabilityService {
604
669
  hasCapability(capability) {
605
670
  return window['onecx-shell-capabilities']?.includes(capability) ?? false;
606
671
  }
607
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShellCapabilityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
608
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShellCapabilityService, providedIn: 'root' }); }
672
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShellCapabilityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
673
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShellCapabilityService, providedIn: 'root' }); }
609
674
  }
610
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShellCapabilityService, decorators: [{
675
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShellCapabilityService, decorators: [{
611
676
  type: Injectable,
612
677
  args: [{ providedIn: 'root' }]
613
678
  }] });