@open-rlb/ng-app 3.1.27 → 3.1.29

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-rlb/ng-app",
3
- "version": "3.1.27",
3
+ "version": "3.1.29",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0",
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Provider, EnvironmentProviders, InjectionToken, EventEmitter, TransferState, Type, OnInit, TemplateRef, ViewContainerRef, PipeTransform, OnDestroy } from '@angular/core';
2
+ import { Provider, EnvironmentProviders, InjectionToken, EventEmitter, TransferState, Type, OnInit, PipeTransform, OnDestroy } from '@angular/core';
3
3
  import { OpenIdConfiguration, OidcSecurityService, LoginResponse } from 'angular-auth-oidc-client';
4
- import * as i22 from '@angular/router';
4
+ import * as i23 from '@angular/router';
5
5
  import { Routes, ActivatedRoute, Router, CanActivateFn, CanDeactivateFn } from '@angular/router';
6
6
  import * as _ngrx_store from '@ngrx/store';
7
7
  import { Store } from '@ngrx/store';
@@ -9,15 +9,15 @@ import * as rxjs from 'rxjs';
9
9
  import { Observable, OperatorFunction } from 'rxjs';
10
10
  import * as _open_rlb_ng_bootstrap from '@open-rlb/ng-bootstrap';
11
11
  import { SidebarNavigableItem, BreadcrumbItem, UniqueIdService, ModalService, ToastService, ModalType, IModal, ModalData, NavigableItem, IToast, ToastData } from '@open-rlb/ng-bootstrap';
12
- import * as i20 from '@ngx-translate/core';
12
+ import * as i21 from '@ngx-translate/core';
13
13
  import { TranslateService, TranslateLoader } from '@ngx-translate/core';
14
14
  import { SwUpdate } from '@angular/service-worker';
15
15
  import * as _open_rlb_ng_app from '@open-rlb/ng-app';
16
16
  import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
17
17
  import { BreakpointObserver } from '@angular/cdk/layout';
18
- import * as i19 from '@angular/forms';
18
+ import * as i20 from '@angular/forms';
19
19
  import { FormGroup } from '@angular/forms';
20
- import * as i18 from '@angular/common';
20
+ import * as i19 from '@angular/common';
21
21
  import { Location } from '@angular/common';
22
22
 
23
23
  declare abstract class AbstractSupportService {
@@ -397,10 +397,16 @@ declare class AppsService {
397
397
  readonly confAuth: AuthConfiguration | undefined;
398
398
  private readonly confAcl;
399
399
  private logger;
400
+ private aclStore;
400
401
  constructor(store: Store<BaseState>, activatedRoute: ActivatedRoute, router: Router, loggerService: AppLoggerService, confAuth: AuthConfiguration | undefined, confAcl: AclConfiguration | undefined);
401
402
  get currentDomain(): string;
402
403
  get apps(): AppInfo<any>[];
404
+ get currentAppAclInfo(): {
405
+ busId: any;
406
+ resId: any;
407
+ } | null;
403
408
  get currentApp(): AppInfo<any> | null;
409
+ checkPermissionInCurrentApp(action?: string): boolean;
404
410
  selectApp(app?: AppInfo, viewMode?: 'app' | 'settings', url?: string): void;
405
411
  private initAuthProviders;
406
412
  private initRouterListener;
@@ -433,7 +439,7 @@ declare class LanguageService {
433
439
  get browserLanguage(): string;
434
440
  translate(key: string | Array<string>, interpolateParams?: Object): any;
435
441
  translateAsync(key: string | Array<string>, interpolateParams?: Object): rxjs.Observable<any>;
436
- get languageChanged$(): rxjs.Observable<i20.LangChangeEvent>;
442
+ get languageChanged$(): rxjs.Observable<i21.LangChangeEvent>;
437
443
  getLanguageName(l: string): string;
438
444
  static ɵfac: i0.ɵɵFactoryDeclaration<LanguageService, [null, null, { optional: true; }]>;
439
445
  static ɵprov: i0.ɵɵInjectableDeclaration<LanguageService>;
@@ -457,7 +463,7 @@ declare class AppBreadcrumbService {
457
463
 
458
464
  declare const RLB_INIT_PROVIDER: InjectionToken<RlbInitProvider>;
459
465
  interface RlbInitProvider {
460
- finalizeApps(store: Store<BaseState>, acl: AclConfiguration): Promise<void>;
466
+ finalizeApps(resources: UserResource[], store: Store<BaseState>, acl: AclConfiguration | null): Promise<void>;
461
467
  }
462
468
 
463
469
  interface CacheItem<T> {
@@ -751,6 +757,22 @@ type ProjectConfiguration<T = {
751
757
  production: boolean;
752
758
  } & T;
753
759
 
760
+ declare class RlbRole {
761
+ private appsService;
762
+ private templateRef;
763
+ private viewContainer;
764
+ action: i0.InputSignal<string | undefined>;
765
+ constructor();
766
+ static ɵfac: i0.ɵɵFactoryDeclaration<RlbRole, never>;
767
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RlbRole, "[roles]", never, { "action": { "alias": "roles"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
768
+ }
769
+
770
+ declare const oauthGuard: CanActivateFn;
771
+
772
+ declare const permissionGuard: CanActivateFn;
773
+
774
+ declare const oauthPasswordGuard: CanActivateFn;
775
+
754
776
  declare class ParseJwtService {
755
777
  private _atob;
756
778
  parseJwt(token?: string): any;
@@ -803,25 +825,6 @@ declare class AuthenticationService {
803
825
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationService>;
804
826
  }
805
827
 
806
- declare class RlbRole implements OnInit {
807
- private readonly templateRef;
808
- private readonly viewContainer;
809
- private readonly authenticationService;
810
- private readonly parseJwtService;
811
- constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, authenticationService: AuthenticationService, parseJwtService: ParseJwtService);
812
- set roles(roles: string[] | string);
813
- private updateView;
814
- ngOnInit(): void;
815
- static ɵfac: i0.ɵɵFactoryDeclaration<RlbRole, never>;
816
- static ɵdir: i0.ɵɵDirectiveDeclaration<RlbRole, "[roles]", never, { "roles": { "alias": "roles"; "required": false; }; }, {}, never, never, false, never>;
817
- }
818
-
819
- declare const oauthGuard: CanActivateFn;
820
-
821
- declare const permissionGuard: CanActivateFn;
822
-
823
- declare const oauthPasswordGuard: CanActivateFn;
824
-
825
828
  interface Token {
826
829
  access_token: string | null;
827
830
  expires_in: number;
@@ -1228,7 +1231,7 @@ declare class TermsAndConditionsComponent {
1228
1231
 
1229
1232
  declare class RlbAppModule {
1230
1233
  static ɵfac: i0.ɵɵFactoryDeclaration<RlbAppModule, never>;
1231
- static ɵmod: i0.ɵɵNgModuleDeclaration<RlbAppModule, [typeof CmsContentComponent, typeof CookiesComponent, typeof NotFoundComponent, typeof PrivacyComponent, typeof SupportComponent, typeof TermsAndConditionsComponent, typeof CmsPipe, typeof AsMultiPipe, typeof AsSinglePipe, typeof LeftComponentPipe, typeof RightComponentPipe, typeof TruncatePipe, typeof AutolinkPipe, typeof BaseComponent, typeof CmsComponent, typeof ContentComponent, typeof AppTemplateComponent, typeof AppContainerComponent], [typeof i18.CommonModule, typeof i19.FormsModule, typeof i19.ReactiveFormsModule, typeof i20.TranslateModule, typeof _open_rlb_ng_bootstrap.RlbBootstrapModule, typeof i22.RouterModule], [typeof CmsPipe, typeof AsMultiPipe, typeof AsSinglePipe, typeof LeftComponentPipe, typeof RightComponentPipe, typeof TruncatePipe, typeof AutolinkPipe, typeof BaseComponent, typeof CmsComponent, typeof ContentComponent, typeof AppTemplateComponent, typeof AppContainerComponent, typeof i20.TranslateModule, typeof _open_rlb_ng_bootstrap.RlbBootstrapModule, typeof i22.RouterModule, typeof i19.FormsModule]>;
1234
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RlbAppModule, [typeof CmsContentComponent, typeof CookiesComponent, typeof NotFoundComponent, typeof PrivacyComponent, typeof SupportComponent, typeof TermsAndConditionsComponent, typeof CmsPipe, typeof AsMultiPipe, typeof AsSinglePipe, typeof LeftComponentPipe, typeof RightComponentPipe, typeof TruncatePipe, typeof AutolinkPipe, typeof BaseComponent, typeof CmsComponent, typeof ContentComponent, typeof AppTemplateComponent, typeof AppContainerComponent, typeof RlbRole], [typeof i19.CommonModule, typeof i20.FormsModule, typeof i20.ReactiveFormsModule, typeof i21.TranslateModule, typeof _open_rlb_ng_bootstrap.RlbBootstrapModule, typeof i23.RouterModule], [typeof CmsPipe, typeof AsMultiPipe, typeof AsSinglePipe, typeof LeftComponentPipe, typeof RightComponentPipe, typeof TruncatePipe, typeof AutolinkPipe, typeof BaseComponent, typeof CmsComponent, typeof ContentComponent, typeof AppTemplateComponent, typeof AppContainerComponent, typeof i21.TranslateModule, typeof _open_rlb_ng_bootstrap.RlbBootstrapModule, typeof i23.RouterModule, typeof i20.FormsModule, typeof RlbRole]>;
1232
1235
  static ɵinj: i0.ɵɵInjectorDeclaration<RlbAppModule>;
1233
1236
  }
1234
1237