@open-rlb/ng-app 3.0.14 → 3.0.16

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Type, InjectionToken, Provider, EnvironmentProviders, EventEmitter, TransferState, OnInit, TemplateRef, ViewContainerRef, PipeTransform, OnDestroy } from '@angular/core';
2
+ import { Provider, EnvironmentProviders, InjectionToken, EventEmitter, TransferState, Type, OnInit, TemplateRef, ViewContainerRef, PipeTransform, OnDestroy } from '@angular/core';
3
3
  import { OpenIdConfiguration, OidcSecurityService, LoginResponse } from 'angular-auth-oidc-client';
4
4
  import * as i22 from '@angular/router';
5
5
  import { Routes, ActivatedRoute, Router, CanActivateFn, CanDeactivateFn } from '@angular/router';
@@ -20,88 +20,11 @@ import { FormGroup } from '@angular/forms';
20
20
  import * as i18 from '@angular/common';
21
21
  import { Location } from '@angular/common';
22
22
 
23
- declare const RLB_CFG = "rlb.options";
24
- declare const RLB_CFG_CMS: InjectionToken<CmsConfiguration>;
25
- declare const RLB_CFG_I18N: InjectionToken<InternationalizationConfiguration>;
26
- declare const RLB_CFG_PAGES: InjectionToken<PagesConfiguration>;
27
- declare const RLB_CFG_ENV: InjectionToken<EnvironmentConfiguration>;
28
- declare const RLB_CFG_AUTH: InjectionToken<AuthConfiguration>;
29
- declare const RLB_APP_NAVCOMP: InjectionToken<NavbarComponents>;
30
- interface ProviderConfiguration extends OpenIdConfiguration {
31
- configId: string;
32
- domains?: string[];
33
- roleClaim?: (data: any) => string | string[];
34
- }
35
- interface NavbarComponents {
36
- left: {
37
- component: Type<any>;
38
- name: string;
39
- }[];
40
- right: {
41
- component: Type<any>;
42
- name: string;
43
- }[];
44
- }
45
- interface CmsConfiguration {
46
- endpoint: string;
47
- chacheDuration: number;
48
- useAppLanguage: boolean;
49
- contentLanguages: string[];
50
- markdown: 'ignore' | 'html' | 'text';
51
- }
52
- interface AuthConfiguration {
53
- protocol: 'oauth';
54
- storage: 'cookies' | 'localStorage' | 'sessionStorage';
55
- interceptor?: 'oauth-code-all' | 'oauth-code-ep' | 'none';
56
- allowedUrls: string[];
57
- providers: ProviderConfiguration[];
58
- }
59
- interface InternationalizationConfiguration {
60
- availableLangs: string[];
61
- defaultLanguage: string;
62
- useLanguageBrowser: boolean;
63
- storeSelectedLanguage: boolean;
64
- cookieStoreName: string;
65
- }
66
- interface PagesConfiguration {
67
- [key: string]: {
68
- path: string;
69
- };
70
- }
71
- interface EnvironmentConfiguration {
72
- appLogo: string;
73
- appTitle: string;
74
- navbarDisabled?: boolean;
75
- baseUrl: string;
76
- ssr: boolean;
77
- phone: boolean;
78
- errorDialogName?: string;
79
- errorDialogSize?: 'sm' | 'lg' | 'xl' | 'md';
80
- errorToastName?: string;
81
- errorToastContainer?: string;
82
- pwaUpdateEnabled?: boolean;
83
- }
84
- interface Endpoint {
85
- baseUrl: string;
86
- healthPath: string;
87
- auth?: boolean;
88
- wss?: boolean;
89
- }
90
- interface IConfiguration {
91
- environment?: EnvironmentConfiguration;
92
- cms?: CmsConfiguration;
93
- auth?: AuthConfiguration;
94
- i18n?: InternationalizationConfiguration;
95
- pages?: PagesConfiguration;
96
- endpoints?: {
97
- [key: string]: Endpoint;
98
- };
23
+ declare abstract class AbstractSupportService {
24
+ abstract sendSupport(data: any): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSupportService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<AbstractSupportService>;
99
27
  }
100
- type ProjectConfiguration<T = {
101
- [k: string]: any;
102
- }> = IConfiguration & {
103
- production: boolean;
104
- } & T;
105
28
 
106
29
  type AppViewMode = 'app' | 'settings';
107
30
  interface AppInfoData {
@@ -133,12 +56,6 @@ interface AppDescriber<T = any> {
133
56
  providers?: (Provider | EnvironmentProviders)[];
134
57
  }
135
58
 
136
- declare abstract class AbstractSupportService {
137
- abstract sendSupport(data: any): void;
138
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSupportService, never>;
139
- static ɵprov: i0.ɵɵInjectableDeclaration<AbstractSupportService>;
140
- }
141
-
142
59
  declare const appContextFeatureKey = "app";
143
60
  type AppTheme = 'light' | 'dark';
144
61
  type PageTemplate = 'app' | 'basic' | 'cms' | 'content';
@@ -414,7 +331,7 @@ type LoggerContext = {
414
331
  declare class AppLoggerService {
415
332
  private currentLevel;
416
333
  private timestamps;
417
- constructor();
334
+ constructor(environment?: EnvironmentConfiguration);
418
335
  setLogLevel(level: LogLevel): void;
419
336
  getLogLevel(): LogLevel;
420
337
  enableTimestamps(enabled: boolean): void;
@@ -686,6 +603,90 @@ declare class UtilsService {
686
603
  static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
687
604
  }
688
605
 
606
+ declare const RLB_CFG = "rlb.options";
607
+ declare const RLB_CFG_CMS: InjectionToken<CmsConfiguration>;
608
+ declare const RLB_CFG_I18N: InjectionToken<InternationalizationConfiguration>;
609
+ declare const RLB_CFG_PAGES: InjectionToken<PagesConfiguration>;
610
+ declare const RLB_CFG_ENV: InjectionToken<EnvironmentConfiguration>;
611
+ declare const RLB_CFG_AUTH: InjectionToken<AuthConfiguration>;
612
+ declare const RLB_APP_NAVCOMP: InjectionToken<NavbarComponents>;
613
+ interface ProviderConfiguration extends OpenIdConfiguration {
614
+ configId: string;
615
+ domains?: string[];
616
+ roleClaim?: (data: any) => string | string[];
617
+ }
618
+ interface NavbarComponents {
619
+ left: {
620
+ component: Type<any>;
621
+ name: string;
622
+ }[];
623
+ right: {
624
+ component: Type<any>;
625
+ name: string;
626
+ }[];
627
+ }
628
+ interface CmsConfiguration {
629
+ endpoint: string;
630
+ chacheDuration: number;
631
+ useAppLanguage: boolean;
632
+ contentLanguages: string[];
633
+ markdown: 'ignore' | 'html' | 'text';
634
+ }
635
+ interface AuthConfiguration {
636
+ protocol: 'oauth';
637
+ storage: 'cookies' | 'localStorage' | 'sessionStorage';
638
+ interceptor?: 'oauth-code-all' | 'oauth-code-ep' | 'none';
639
+ allowedUrls: string[];
640
+ providers: ProviderConfiguration[];
641
+ }
642
+ interface InternationalizationConfiguration {
643
+ availableLangs: string[];
644
+ defaultLanguage: string;
645
+ useLanguageBrowser: boolean;
646
+ storeSelectedLanguage: boolean;
647
+ cookieStoreName: string;
648
+ }
649
+ interface PagesConfiguration {
650
+ [key: string]: {
651
+ path: string;
652
+ };
653
+ }
654
+ interface EnvironmentConfiguration {
655
+ appLogo: string;
656
+ appTitle: string;
657
+ navbarDisabled?: boolean;
658
+ baseUrl: string;
659
+ ssr: boolean;
660
+ phone: boolean;
661
+ errorDialogName?: string;
662
+ errorDialogSize?: 'sm' | 'lg' | 'xl' | 'md';
663
+ errorToastName?: string;
664
+ errorToastContainer?: string;
665
+ pwaUpdateEnabled?: boolean;
666
+ logLevel?: LogLevel;
667
+ }
668
+ interface Endpoint {
669
+ baseUrl: string;
670
+ healthPath: string;
671
+ auth?: boolean;
672
+ wss?: boolean;
673
+ }
674
+ interface IConfiguration {
675
+ environment?: EnvironmentConfiguration;
676
+ cms?: CmsConfiguration;
677
+ auth?: AuthConfiguration;
678
+ i18n?: InternationalizationConfiguration;
679
+ pages?: PagesConfiguration;
680
+ endpoints?: {
681
+ [key: string]: Endpoint;
682
+ };
683
+ }
684
+ type ProjectConfiguration<T = {
685
+ [k: string]: any;
686
+ }> = IConfiguration & {
687
+ production: boolean;
688
+ } & T;
689
+
689
690
  declare class ParseJwtService {
690
691
  private _atob;
691
692
  parseJwt(token?: string): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-rlb/ng-app",
3
- "version": "3.0.14",
3
+ "version": "3.0.16",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",