@bnsights/bbsf-utilities 1.0.67 → 1.0.69-beta.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 (41) hide show
  1. package/README.md +71 -2
  2. package/auth/index.d.ts +5 -0
  3. package/auth/public-api.d.ts +1 -0
  4. package/esm2022/auth/bnsights-bbsf-utilities-auth.mjs +5 -0
  5. package/esm2022/auth/public-api.mjs +5 -0
  6. package/esm2022/http/bnsights-bbsf-utilities-http.mjs +5 -0
  7. package/esm2022/http/public-api.mjs +8 -0
  8. package/esm2022/lib/shared/services/preload.service.mjs +1 -4
  9. package/esm2022/lib/shared/services/request-handler.service.mjs +39 -45
  10. package/esm2022/lib/shared/services/styles-bundle.service.mjs +27 -6
  11. package/esm2022/public-api.mjs +40 -17
  12. package/esm2022/translate/bnsights-bbsf-utilities-translate.mjs +5 -0
  13. package/esm2022/translate/public-api.mjs +7 -0
  14. package/esm2022/ui/bnsights-bbsf-utilities-ui.mjs +5 -0
  15. package/esm2022/ui/public-api.mjs +8 -0
  16. package/esm2022/word/bnsights-bbsf-utilities-word.mjs +5 -0
  17. package/esm2022/word/public-api.mjs +6 -0
  18. package/fesm2022/bnsights-bbsf-utilities-auth.mjs +10 -0
  19. package/fesm2022/bnsights-bbsf-utilities-auth.mjs.map +1 -0
  20. package/fesm2022/bnsights-bbsf-utilities-http.mjs +10 -0
  21. package/fesm2022/bnsights-bbsf-utilities-http.mjs.map +1 -0
  22. package/fesm2022/bnsights-bbsf-utilities-translate.mjs +10 -0
  23. package/fesm2022/bnsights-bbsf-utilities-translate.mjs.map +1 -0
  24. package/fesm2022/bnsights-bbsf-utilities-ui.mjs +10 -0
  25. package/fesm2022/bnsights-bbsf-utilities-ui.mjs.map +1 -0
  26. package/fesm2022/bnsights-bbsf-utilities-word.mjs +10 -0
  27. package/fesm2022/bnsights-bbsf-utilities-word.mjs.map +1 -0
  28. package/fesm2022/bnsights-bbsf-utilities.mjs +75 -55
  29. package/fesm2022/bnsights-bbsf-utilities.mjs.map +1 -1
  30. package/http/index.d.ts +5 -0
  31. package/http/public-api.d.ts +4 -0
  32. package/lib/shared/services/request-handler.service.d.ts +1 -2
  33. package/lib/shared/services/styles-bundle.service.d.ts +7 -1
  34. package/package.json +36 -4
  35. package/public-api.d.ts +15 -11
  36. package/translate/index.d.ts +5 -0
  37. package/translate/public-api.d.ts +3 -0
  38. package/ui/index.d.ts +5 -0
  39. package/ui/public-api.d.ts +4 -0
  40. package/word/index.d.ts +5 -0
  41. package/word/public-api.d.ts +2 -0
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@bnsights/bbsf-utilities/http" />
5
+ export * from './public-api';
@@ -0,0 +1,4 @@
1
+ export { RequestHandlerService } from '@bnsights/bbsf-utilities';
2
+ export { FileLoaderService } from '@bnsights/bbsf-utilities';
3
+ export { MasterLayoutService } from '@bnsights/bbsf-utilities';
4
+ export { RequestOptionsModel } from '@bnsights/bbsf-utilities';
@@ -13,7 +13,6 @@ export declare class RequestHandlerService implements OnDestroy {
13
13
  private utilityService;
14
14
  private bbsfTranslateService;
15
15
  private router;
16
- private requestOptions;
17
16
  private currentLanguage;
18
17
  onDestroy$: Subject<void>;
19
18
  constructor(http: HttpClient, authService: AuthService, environmentService: EnvironmentService, utilityService: UtilityService, bbsfTranslateService: BBSFTranslateService, router: Router);
@@ -24,7 +23,7 @@ export declare class RequestHandlerService implements OnDestroy {
24
23
  put<T>(Url: string, model?: any, params?: HttpParams, responseType?: new () => T, requestOptions?: RequestOptionsModel): Observable<T>;
25
24
  patch<T>(Url: string, model?: any, responseType?: new () => T, params?: HttpParams, requestOptions?: RequestOptionsModel): Observable<T>;
26
25
  download<T>(Url: string, params?: HttpParams, requestOptions?: RequestOptionsModel): Observable<T>;
27
- Upload<T>(Url: string, model?: any): Observable<any>;
26
+ Upload<T>(Url: string, model?: any, requestOptions?: RequestOptionsModel): Observable<any>;
28
27
  destroyHandler(): void;
29
28
  ngOnDestroy(): void;
30
29
  private handleError;
@@ -6,7 +6,13 @@ export declare class StylesBundleService {
6
6
  constructor(document: Document, translateService: BBSFTranslateService);
7
7
  loadThemes(lang: string, bundleEnglishName: string, bundleArabicName: string): void;
8
8
  loadThemesColor(theme: string, bundleDarkName: string, bundleLightName: string): void;
9
- loadStyleBundle(styleName: string): void;
9
+ private loadStyleBundle;
10
+ /**
11
+ * Extract filename from full path
12
+ * @param path Full path or just filename
13
+ * @returns The filename only
14
+ */
15
+ private getFileName;
10
16
  static ɵfac: i0.ɵɵFactoryDeclaration<StylesBundleService, never>;
11
17
  static ɵprov: i0.ɵɵInjectableDeclaration<StylesBundleService>;
12
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bnsights/bbsf-utilities",
3
- "version": "1.0.67",
3
+ "version": "1.0.69-beta.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^17.0.5",
6
6
  "@angular/cdk": "^17.0.2",
@@ -12,6 +12,11 @@
12
12
  "@angular/router": "^17.0.5"
13
13
  },
14
14
  "dependencies": {
15
+ "lodash": "^4.17.21",
16
+ "nanoid": "^5.0.4",
17
+ "tslib": "^2.6.2"
18
+ },
19
+ "optionalDependencies": {
15
20
  "@auth0/angular-jwt": "^5.2.0",
16
21
  "color-name": "^2.0.0",
17
22
  "escape-html": "^1.0.3",
@@ -19,7 +24,6 @@
19
24
  "image-size": "^1.0.2",
20
25
  "image-to-base64": "^2.2.0",
21
26
  "jszip": "^3.10.1",
22
- "lodash": "^4.17.21",
23
27
  "mime-types": "^2.1.35",
24
28
  "ngx-cookie-service": "17.0.0",
25
29
  "virtual-dom": "^2.1.1",
@@ -28,8 +32,6 @@
28
32
  "ngx-toastr": "^18.0.0",
29
33
  "oidc-client": "^1.11.5",
30
34
  "class-transformer": "^0.5.1",
31
- "nanoid": "^5.0.4",
32
- "tslib": "^2.6.2",
33
35
  "@ngx-translate/core": "^15.0.0"
34
36
  },
35
37
  "module": "fesm2022/bnsights-bbsf-utilities.mjs",
@@ -43,6 +45,36 @@
43
45
  "esm2022": "./esm2022/bnsights-bbsf-utilities.mjs",
44
46
  "esm": "./esm2022/bnsights-bbsf-utilities.mjs",
45
47
  "default": "./fesm2022/bnsights-bbsf-utilities.mjs"
48
+ },
49
+ "./auth": {
50
+ "types": "./auth/index.d.ts",
51
+ "esm2022": "./esm2022/auth/bnsights-bbsf-utilities-auth.mjs",
52
+ "esm": "./esm2022/auth/bnsights-bbsf-utilities-auth.mjs",
53
+ "default": "./fesm2022/bnsights-bbsf-utilities-auth.mjs"
54
+ },
55
+ "./http": {
56
+ "types": "./http/index.d.ts",
57
+ "esm2022": "./esm2022/http/bnsights-bbsf-utilities-http.mjs",
58
+ "esm": "./esm2022/http/bnsights-bbsf-utilities-http.mjs",
59
+ "default": "./fesm2022/bnsights-bbsf-utilities-http.mjs"
60
+ },
61
+ "./ui": {
62
+ "types": "./ui/index.d.ts",
63
+ "esm2022": "./esm2022/ui/bnsights-bbsf-utilities-ui.mjs",
64
+ "esm": "./esm2022/ui/bnsights-bbsf-utilities-ui.mjs",
65
+ "default": "./fesm2022/bnsights-bbsf-utilities-ui.mjs"
66
+ },
67
+ "./translate": {
68
+ "types": "./translate/index.d.ts",
69
+ "esm2022": "./esm2022/translate/bnsights-bbsf-utilities-translate.mjs",
70
+ "esm": "./esm2022/translate/bnsights-bbsf-utilities-translate.mjs",
71
+ "default": "./fesm2022/bnsights-bbsf-utilities-translate.mjs"
72
+ },
73
+ "./word": {
74
+ "types": "./word/index.d.ts",
75
+ "esm2022": "./esm2022/word/bnsights-bbsf-utilities-word.mjs",
76
+ "esm": "./esm2022/word/bnsights-bbsf-utilities-word.mjs",
77
+ "default": "./fesm2022/bnsights-bbsf-utilities-word.mjs"
46
78
  }
47
79
  },
48
80
  "sideEffects": false
package/public-api.d.ts CHANGED
@@ -1,21 +1,25 @@
1
1
  export * from './lib/bbsf-utilities.module';
2
- export * from './lib/shared/services/utility.service';
3
2
  export * from './lib/shared/services/environment.service';
4
- export * from './lib/shared/services/request-handler.service';
5
3
  export * from './lib/shared/services/styles-bundle.service';
6
- export * from './lib/shared/services/translate.service';
7
- export * from './lib/shared/services/control-validation.service';
8
- export * from './lib/shared/services/master-layout.service';
9
- export * from './lib/shared/services/translation-resolver.service';
10
4
  export * from './lib/shared/services/appearance-configuration.service';
11
5
  export * from './lib/shared/services/configuration.service';
12
- export * from './lib/shared/services/word-document.service';
13
- export * from './lib/shared/authentication/auth.service';
14
- export * from './lib/shared/services/language.service';
6
+ export * from './lib/shared/config/environment';
7
+ export * from './lib/shared/models/area-model';
8
+ export * from './lib/shared/models/error-model';
9
+ export * from './lib/shared/models/UserModel';
10
+ export * from './lib/shared/enums/authentication-modes-enums';
11
+ export * from './lib/shared/services/utility.service';
12
+ export * from './lib/shared/services/control-validation.service';
15
13
  export * from './lib/shared/services/speech-recognition.service';
14
+ export * from './lib/shared/services/translate.service';
15
+ export * from './lib/shared/services/translation-resolver.service';
16
+ export { TranslationResolverService } from './lib/shared/services/translation-resolver.service';
17
+ export * from './lib/shared/services/language.service';
18
+ export * from './lib/shared/services/request-handler.service';
19
+ export * from './lib/shared/services/master-layout.service';
16
20
  export * from './lib/shared/services/preload.service';
17
- export * from './lib/shared/config/environment';
18
21
  export * from './lib/shared/models/request-options-model';
22
+ export * from './lib/shared/services/word-document.service';
19
23
  export * from './lib/shared/models/word-document-model';
24
+ export * from './lib/shared/authentication/auth.service';
20
25
  export * from './lib/shared/models/speech-language';
21
- export * from './lib/shared/enums/authentication-modes-enums';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@bnsights/bbsf-utilities/translate" />
5
+ export * from './public-api';
@@ -0,0 +1,3 @@
1
+ export { BBSFTranslateService } from '@bnsights/bbsf-utilities';
2
+ export { TranslationResolverService } from '@bnsights/bbsf-utilities';
3
+ export { LanguageService } from '@bnsights/bbsf-utilities';
package/ui/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@bnsights/bbsf-utilities/ui" />
5
+ export * from './public-api';
@@ -0,0 +1,4 @@
1
+ export { UtilityService } from '@bnsights/bbsf-utilities';
2
+ export { ControlValidationService } from '@bnsights/bbsf-utilities';
3
+ export { SpeechRecognitionService } from '@bnsights/bbsf-utilities';
4
+ export { LanguageDTO } from '@bnsights/bbsf-utilities';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@bnsights/bbsf-utilities/word" />
5
+ export * from './public-api';
@@ -0,0 +1,2 @@
1
+ export { WordDocumentService } from '@bnsights/bbsf-utilities';
2
+ export { WordDocumentModel } from '@bnsights/bbsf-utilities';