@bnsights/bbsf-utilities 1.0.65 → 1.0.67

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 (25) hide show
  1. package/README.md +31 -2
  2. package/esm2022/lib/bbsf-utilities.module.mjs +39 -12
  3. package/esm2022/lib/shared/authentication/auth.service.mjs +46 -22
  4. package/esm2022/lib/shared/services/appearance-configuration.service.mjs +4 -4
  5. package/esm2022/lib/shared/services/configuration.service.mjs +15 -9
  6. package/esm2022/lib/shared/services/control-validation.service.mjs +4 -4
  7. package/esm2022/lib/shared/services/environment.service.mjs +8 -4
  8. package/esm2022/lib/shared/services/language.service.mjs +4 -4
  9. package/esm2022/lib/shared/services/master-layout.service.mjs +5 -5
  10. package/esm2022/lib/shared/services/preload.service.mjs +4 -4
  11. package/esm2022/lib/shared/services/request-handler.service.mjs +10 -13
  12. package/esm2022/lib/shared/services/speech-recognition.service.mjs +4 -4
  13. package/esm2022/lib/shared/services/styles-bundle.service.mjs +4 -4
  14. package/esm2022/lib/shared/services/translate.service.mjs +4 -4
  15. package/esm2022/lib/shared/services/utility.service.mjs +4 -4
  16. package/esm2022/lib/shared/services/word-document.service.mjs +4 -4
  17. package/fesm2022/bnsights-bbsf-utilities.mjs +443 -386
  18. package/fesm2022/bnsights-bbsf-utilities.mjs.map +1 -1
  19. package/lib/bbsf-utilities.module.d.ts +2 -2
  20. package/lib/shared/authentication/auth.service.d.ts +5 -1
  21. package/lib/shared/services/configuration.service.d.ts +5 -3
  22. package/lib/shared/services/environment.service.d.ts +1 -0
  23. package/lib/shared/services/request-handler.service.d.ts +3 -2
  24. package/package.json +16 -16
  25. package/bnsights-bbsf-utilities-1.0.65.tgz +0 -0
@@ -2,9 +2,9 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "@angular/common";
3
3
  import * as i2 from "@angular/router";
4
4
  import * as i3 from "ng-block-ui";
5
- import * as i4 from "@angular/common/http";
5
+ import * as i4 from "ngx-toastr";
6
6
  export declare class BBSFUtilitiesModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<BBSFUtilitiesModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<BBSFUtilitiesModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.BlockUIModule, typeof i4.HttpClientModule], never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BBSFUtilitiesModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.BlockUIModule, typeof i4.ToastrModule], never>;
9
9
  static ɵinj: i0.ɵɵInjectorDeclaration<BBSFUtilitiesModule>;
10
10
  }
@@ -17,7 +17,8 @@ export declare class AuthService {
17
17
  private utilityService;
18
18
  redirectUrl: string;
19
19
  static user: User | null;
20
- user: User | null;
20
+ _user: User | null;
21
+ private get user();
21
22
  static UserClaims: any;
22
23
  private jwtHelper;
23
24
  private isAuthenticatedSubject;
@@ -25,6 +26,8 @@ export declare class AuthService {
25
26
  static timers: any[];
26
27
  static seconds: number;
27
28
  constructor(injector: Injector, http: HttpClient, environmentService: EnvironmentService, translateService: BBSFTranslateService, router: Router, cookieService: CookieService, utilityService: UtilityService);
29
+ private _TOKEN_KEY;
30
+ get TOKEN_KEY(): string;
28
31
  private hasToken;
29
32
  getUserManager(): User;
30
33
  getUser(): void;
@@ -32,6 +35,7 @@ export declare class AuthService {
32
35
  getCurrentUser(): User;
33
36
  isAuthenticated(): boolean;
34
37
  isUserInRole(allowedPermission: any): any;
38
+ isUserPermissionSetsInRoles(allowedPermission: number[]): boolean;
35
39
  authorizationHeaderValue(): string;
36
40
  name(): string;
37
41
  setUrl(url: any): void;
@@ -1,12 +1,14 @@
1
1
  import { HttpClient } from "@angular/common/http";
2
- import { AuthService } from "../authentication";
2
+ import { Injector } from "@angular/core";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ConfigurationService {
5
5
  private httpClient;
6
- private authService;
6
+ private injector;
7
7
  static JsonData: any[];
8
8
  private currentUserProfile;
9
- constructor(httpClient: HttpClient, authService: AuthService);
9
+ private _authService;
10
+ constructor(httpClient: HttpClient, injector: Injector);
11
+ private get authService();
10
12
  getConfigurationValue(key: string): any;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
12
14
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
@@ -21,6 +21,7 @@ export declare class EnvironmentService {
21
21
  getUAEPassLogoutEndPoint(): string;
22
22
  getIsEnableWindowsAuthentication(): boolean;
23
23
  getAllowMultiTenancy(): boolean;
24
+ getCookieName(): any;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentService, never>;
25
26
  static ɵprov: i0.ɵɵInjectableDeclaration<EnvironmentService>;
26
27
  }
@@ -1,5 +1,6 @@
1
1
  import { HttpClient, HttpHeaders, HttpParams } from "@angular/common/http";
2
2
  import { OnDestroy } from '@angular/core';
3
+ import { Router } from '@angular/router';
3
4
  import { Observable, Subject } from 'rxjs';
4
5
  import { BBSFTranslateService, EnvironmentService, UtilityService } from ".";
5
6
  import { AuthService } from '../authentication/auth.service';
@@ -11,11 +12,11 @@ export declare class RequestHandlerService implements OnDestroy {
11
12
  private environmentService;
12
13
  private utilityService;
13
14
  private bbsfTranslateService;
15
+ private router;
14
16
  private requestOptions;
15
17
  private currentLanguage;
16
18
  onDestroy$: Subject<void>;
17
- private router;
18
- constructor(http: HttpClient, authService: AuthService, environmentService: EnvironmentService, utilityService: UtilityService, bbsfTranslateService: BBSFTranslateService);
19
+ constructor(http: HttpClient, authService: AuthService, environmentService: EnvironmentService, utilityService: UtilityService, bbsfTranslateService: BBSFTranslateService, router: Router);
19
20
  private isOnline;
20
21
  get<T>(Url: string, params?: HttpParams, responseType?: new () => T, requestOptions?: RequestOptionsModel): Observable<T>;
21
22
  post<T>(Url: string, model?: any, responseType?: new () => T, params?: HttpParams, requestOptions?: RequestOptionsModel): Observable<T>;
package/package.json CHANGED
@@ -1,20 +1,18 @@
1
1
  {
2
2
  "name": "@bnsights/bbsf-utilities",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "peerDependencies": {
5
- "@angular/animations": "^19.0.0",
6
- "@angular/cdk": "^19.0.0",
7
- "@angular/common": "^19.0.0",
8
- "@angular/compiler": "^19.0.0",
9
- "@angular/core": "^19.0.0",
10
- "@angular/forms": "^19.0.0",
11
- "@angular/localize": "^19.0.0",
12
- "@angular/router": "^19.0.0"
5
+ "@angular/animations": "^17.0.5",
6
+ "@angular/cdk": "^17.0.2",
7
+ "@angular/common": "^17.0.5",
8
+ "@angular/compiler": "^17.0.5",
9
+ "@angular/core": "^17.0.5",
10
+ "@angular/forms": "^17.0.5",
11
+ "@angular/localize": "^17.0.5",
12
+ "@angular/router": "^17.0.5"
13
13
  },
14
14
  "dependencies": {
15
15
  "@auth0/angular-jwt": "^5.2.0",
16
- "@ngx-translate/core": "^15.0.0",
17
- "class-transformer": "^0.5.1",
18
16
  "color-name": "^2.0.0",
19
17
  "escape-html": "^1.0.3",
20
18
  "html-to-vdom": "^0.7.0",
@@ -23,14 +21,16 @@
23
21
  "jszip": "^3.10.1",
24
22
  "lodash": "^4.17.21",
25
23
  "mime-types": "^2.1.35",
26
- "nanoid": "^5.0.4",
24
+ "ngx-cookie-service": "17.0.0",
25
+ "virtual-dom": "^2.1.1",
26
+ "xmlbuilder2": "3.1.1",
27
27
  "ng-block-ui": "^4.0.1",
28
- "ngx-cookie-service": "^19.0.0",
29
- "ngx-toastr": "^19.0.0",
28
+ "ngx-toastr": "^18.0.0",
30
29
  "oidc-client": "^1.11.5",
30
+ "class-transformer": "^0.5.1",
31
+ "nanoid": "^5.0.4",
31
32
  "tslib": "^2.6.2",
32
- "virtual-dom": "^2.1.1",
33
- "xmlbuilder2": "3.1.1"
33
+ "@ngx-translate/core": "^15.0.0"
34
34
  },
35
35
  "module": "fesm2022/bnsights-bbsf-utilities.mjs",
36
36
  "typings": "index.d.ts",
Binary file