@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.
- package/README.md +71 -2
- package/auth/index.d.ts +5 -0
- package/auth/public-api.d.ts +1 -0
- package/esm2022/auth/bnsights-bbsf-utilities-auth.mjs +5 -0
- package/esm2022/auth/public-api.mjs +5 -0
- package/esm2022/http/bnsights-bbsf-utilities-http.mjs +5 -0
- package/esm2022/http/public-api.mjs +8 -0
- package/esm2022/lib/shared/services/preload.service.mjs +1 -4
- package/esm2022/lib/shared/services/request-handler.service.mjs +39 -45
- package/esm2022/lib/shared/services/styles-bundle.service.mjs +27 -6
- package/esm2022/public-api.mjs +40 -17
- package/esm2022/translate/bnsights-bbsf-utilities-translate.mjs +5 -0
- package/esm2022/translate/public-api.mjs +7 -0
- package/esm2022/ui/bnsights-bbsf-utilities-ui.mjs +5 -0
- package/esm2022/ui/public-api.mjs +8 -0
- package/esm2022/word/bnsights-bbsf-utilities-word.mjs +5 -0
- package/esm2022/word/public-api.mjs +6 -0
- package/fesm2022/bnsights-bbsf-utilities-auth.mjs +10 -0
- package/fesm2022/bnsights-bbsf-utilities-auth.mjs.map +1 -0
- package/fesm2022/bnsights-bbsf-utilities-http.mjs +10 -0
- package/fesm2022/bnsights-bbsf-utilities-http.mjs.map +1 -0
- package/fesm2022/bnsights-bbsf-utilities-translate.mjs +10 -0
- package/fesm2022/bnsights-bbsf-utilities-translate.mjs.map +1 -0
- package/fesm2022/bnsights-bbsf-utilities-ui.mjs +10 -0
- package/fesm2022/bnsights-bbsf-utilities-ui.mjs.map +1 -0
- package/fesm2022/bnsights-bbsf-utilities-word.mjs +10 -0
- package/fesm2022/bnsights-bbsf-utilities-word.mjs.map +1 -0
- package/fesm2022/bnsights-bbsf-utilities.mjs +75 -55
- package/fesm2022/bnsights-bbsf-utilities.mjs.map +1 -1
- package/http/index.d.ts +5 -0
- package/http/public-api.d.ts +4 -0
- package/lib/shared/services/request-handler.service.d.ts +1 -2
- package/lib/shared/services/styles-bundle.service.d.ts +7 -1
- package/package.json +36 -4
- package/public-api.d.ts +15 -11
- package/translate/index.d.ts +5 -0
- package/translate/public-api.d.ts +3 -0
- package/ui/index.d.ts +5 -0
- package/ui/public-api.d.ts +4 -0
- package/word/index.d.ts +5 -0
- package/word/public-api.d.ts +2 -0
package/esm2022/public-api.mjs
CHANGED
|
@@ -1,34 +1,57 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Public API Surface of @bnsights/bbsf-utilities
|
|
3
|
+
*
|
|
4
|
+
* This is the CORE entry point with minimal dependencies.
|
|
5
|
+
*
|
|
6
|
+
* For feature-specific services, use secondary entry points:
|
|
7
|
+
* - @bnsights/bbsf-utilities/auth - Authentication services
|
|
8
|
+
* - @bnsights/bbsf-utilities/word - Word document generation
|
|
9
|
+
* - @bnsights/bbsf-utilities/translate - Translation services
|
|
10
|
+
* - @bnsights/bbsf-utilities/ui - UI services (BlockUI, Toastr, etc.)
|
|
11
|
+
* - @bnsights/bbsf-utilities/http - HTTP request handling
|
|
3
12
|
*/
|
|
4
|
-
//Module
|
|
13
|
+
//Module (Note: for backward compatibility - contains ALL providers)
|
|
5
14
|
export * from './lib/bbsf-utilities.module';
|
|
6
|
-
//#region
|
|
7
|
-
export * from './lib/shared/services/utility.service';
|
|
15
|
+
//#region Core Services (minimal dependencies)
|
|
8
16
|
export * from './lib/shared/services/environment.service';
|
|
9
|
-
export * from './lib/shared/services/request-handler.service';
|
|
10
17
|
export * from './lib/shared/services/styles-bundle.service';
|
|
11
|
-
export * from './lib/shared/services/translate.service';
|
|
12
|
-
export * from './lib/shared/services/control-validation.service';
|
|
13
|
-
export * from './lib/shared/services/master-layout.service';
|
|
14
|
-
export * from './lib/shared/services/translation-resolver.service';
|
|
15
18
|
export * from './lib/shared/services/appearance-configuration.service';
|
|
16
19
|
export * from './lib/shared/services/configuration.service';
|
|
17
|
-
export * from './lib/shared/services/word-document.service';
|
|
18
|
-
export * from './lib/shared/authentication/auth.service';
|
|
19
|
-
export * from './lib/shared/services/language.service';
|
|
20
|
-
export * from './lib/shared/services/speech-recognition.service';
|
|
21
|
-
export * from './lib/shared/services/preload.service';
|
|
22
20
|
//#endregion
|
|
23
21
|
//#region config
|
|
24
22
|
export * from './lib/shared/config/environment';
|
|
25
23
|
//#endregion
|
|
26
24
|
//#region models
|
|
27
|
-
export * from './lib/shared/models/
|
|
28
|
-
export * from './lib/shared/models/
|
|
29
|
-
export * from './lib/shared/models/
|
|
25
|
+
export * from './lib/shared/models/area-model';
|
|
26
|
+
export * from './lib/shared/models/error-model';
|
|
27
|
+
export * from './lib/shared/models/UserModel';
|
|
30
28
|
//#endregion
|
|
31
29
|
//#region export enums
|
|
32
30
|
export * from './lib/shared/enums/authentication-modes-enums';
|
|
33
31
|
//#endregion
|
|
34
|
-
|
|
32
|
+
/*
|
|
33
|
+
* DEPRECATED EXPORTS (for backward compatibility)
|
|
34
|
+
* Please migrate to secondary entry points for these:
|
|
35
|
+
*/
|
|
36
|
+
// Use @bnsights/bbsf-utilities/ui instead
|
|
37
|
+
export * from './lib/shared/services/utility.service';
|
|
38
|
+
export * from './lib/shared/services/control-validation.service';
|
|
39
|
+
export * from './lib/shared/services/speech-recognition.service';
|
|
40
|
+
// Use @bnsights/bbsf-utilities/translate instead
|
|
41
|
+
export * from './lib/shared/services/translate.service';
|
|
42
|
+
export * from './lib/shared/services/translation-resolver.service';
|
|
43
|
+
export { TranslationResolverService } from './lib/shared/services/translation-resolver.service';
|
|
44
|
+
export * from './lib/shared/services/language.service';
|
|
45
|
+
// Use @bnsights/bbsf-utilities/http instead
|
|
46
|
+
export * from './lib/shared/services/request-handler.service';
|
|
47
|
+
export * from './lib/shared/services/master-layout.service';
|
|
48
|
+
export * from './lib/shared/services/preload.service';
|
|
49
|
+
export * from './lib/shared/models/request-options-model';
|
|
50
|
+
// Use @bnsights/bbsf-utilities/word instead
|
|
51
|
+
export * from './lib/shared/services/word-document.service';
|
|
52
|
+
export * from './lib/shared/models/word-document-model';
|
|
53
|
+
// Use @bnsights/bbsf-utilities/auth instead
|
|
54
|
+
export * from './lib/shared/authentication/auth.service';
|
|
55
|
+
// Re-export speech-language model
|
|
56
|
+
export * from './lib/shared/models/speech-language';
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2Jic2YtdXRpbGl0aWVzL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7OztHQVdHO0FBRUgsb0VBQW9FO0FBQ3BFLGNBQWMsNkJBQTZCLENBQUM7QUFFNUMsOENBQThDO0FBRTlDLGNBQWMsMkNBQTJDLENBQUM7QUFDMUQsY0FBYyw2Q0FBNkMsQ0FBQztBQUM1RCxjQUFjLHdEQUF3RCxDQUFDO0FBQ3ZFLGNBQWMsNkNBQTZDLENBQUM7QUFFNUQsWUFBWTtBQUVaLGdCQUFnQjtBQUNoQixjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELFlBQVk7QUFFWixpQkFBaUI7QUFDakIsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsK0JBQStCLENBQUM7QUFDOUMsWUFBWTtBQUVaLHNCQUFzQjtBQUN0QixjQUFjLCtDQUErQyxDQUFDO0FBQzlELFlBQVk7QUFFWjs7O0dBR0c7QUFFSCwwQ0FBMEM7QUFDMUMsY0FBYyx1Q0FBdUMsQ0FBQztBQUN0RCxjQUFjLGtEQUFrRCxDQUFDO0FBQ2pFLGNBQWMsa0RBQWtELENBQUM7QUFFakUsaURBQWlEO0FBQ2pELGNBQWMseUNBQXlDLENBQUM7QUFDeEQsY0FBYyxvREFBb0QsQ0FBQ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.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm5zaWdodHMtYmJzZi11dGlsaXRpZXMtdHJhbnNsYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYmJzZi11dGlsaXRpZXMvdHJhbnNsYXRlL2Juc2lnaHRzLWJic2YtdXRpbGl0aWVzLXRyYW5zbGF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of @bnsights/bbsf-utilities/translate
|
|
3
|
+
*/
|
|
4
|
+
export { BBSFTranslateService } from '@bnsights/bbsf-utilities';
|
|
5
|
+
export { TranslationResolverService } from '@bnsights/bbsf-utilities';
|
|
6
|
+
export { LanguageService } from '@bnsights/bbsf-utilities';
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Jic2YtdXRpbGl0aWVzL3RyYW5zbGF0ZS9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDaEUsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDdEUsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBibnNpZ2h0cy9iYnNmLXV0aWxpdGllcy90cmFuc2xhdGVcclxuICovXHJcblxyXG5leHBvcnQgeyBCQlNGVHJhbnNsYXRlU2VydmljZSB9IGZyb20gJ0BibnNpZ2h0cy9iYnNmLXV0aWxpdGllcyc7XHJcbmV4cG9ydCB7IFRyYW5zbGF0aW9uUmVzb2x2ZXJTZXJ2aWNlIH0gZnJvbSAnQGJuc2lnaHRzL2Jic2YtdXRpbGl0aWVzJztcclxuZXhwb3J0IHsgTGFuZ3VhZ2VTZXJ2aWNlIH0gZnJvbSAnQGJuc2lnaHRzL2Jic2YtdXRpbGl0aWVzJztcclxuXHJcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm5zaWdodHMtYmJzZi11dGlsaXRpZXMtdWkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9iYnNmLXV0aWxpdGllcy91aS9ibnNpZ2h0cy1iYnNmLXV0aWxpdGllcy11aS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of @bnsights/bbsf-utilities/ui
|
|
3
|
+
*/
|
|
4
|
+
export { UtilityService } from '@bnsights/bbsf-utilities';
|
|
5
|
+
export { ControlValidationService } from '@bnsights/bbsf-utilities';
|
|
6
|
+
export { SpeechRecognitionService } from '@bnsights/bbsf-utilities';
|
|
7
|
+
export { LanguageDTO } from '@bnsights/bbsf-utilities';
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Jic2YtdXRpbGl0aWVzL3VpL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDMUQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDcEUsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDcEUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBibnNpZ2h0cy9iYnNmLXV0aWxpdGllcy91aVxyXG4gKi9cclxuXHJcbmV4cG9ydCB7IFV0aWxpdHlTZXJ2aWNlIH0gZnJvbSAnQGJuc2lnaHRzL2Jic2YtdXRpbGl0aWVzJztcclxuZXhwb3J0IHsgQ29udHJvbFZhbGlkYXRpb25TZXJ2aWNlIH0gZnJvbSAnQGJuc2lnaHRzL2Jic2YtdXRpbGl0aWVzJztcclxuZXhwb3J0IHsgU3BlZWNoUmVjb2duaXRpb25TZXJ2aWNlIH0gZnJvbSAnQGJuc2lnaHRzL2Jic2YtdXRpbGl0aWVzJztcclxuZXhwb3J0IHsgTGFuZ3VhZ2VEVE8gfSBmcm9tICdAYm5zaWdodHMvYmJzZi11dGlsaXRpZXMnO1xyXG5cclxuIl19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm5zaWdodHMtYmJzZi11dGlsaXRpZXMtd29yZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Jic2YtdXRpbGl0aWVzL3dvcmQvYm5zaWdodHMtYmJzZi11dGlsaXRpZXMtd29yZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of @bnsights/bbsf-utilities/word
|
|
3
|
+
*/
|
|
4
|
+
export { WordDocumentService } from '@bnsights/bbsf-utilities';
|
|
5
|
+
export { WordDocumentModel } from '@bnsights/bbsf-utilities';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Jic2YtdXRpbGl0aWVzL3dvcmQvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQy9ELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBibnNpZ2h0cy9iYnNmLXV0aWxpdGllcy93b3JkXHJcbiAqL1xyXG5cclxuZXhwb3J0IHsgV29yZERvY3VtZW50U2VydmljZSB9IGZyb20gJ0BibnNpZ2h0cy9iYnNmLXV0aWxpdGllcyc7XHJcbmV4cG9ydCB7IFdvcmREb2N1bWVudE1vZGVsIH0gZnJvbSAnQGJuc2lnaHRzL2Jic2YtdXRpbGl0aWVzJztcclxuXHJcbiJdfQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bnsights-bbsf-utilities-auth.mjs","sources":["../../../projects/bbsf-utilities/auth/public-api.ts","../../../projects/bbsf-utilities/auth/bnsights-bbsf-utilities-auth.ts"],"sourcesContent":["/*\r\n * Public API Surface of @bnsights/bbsf-utilities/auth\r\n */\r\n\r\nexport { AuthService } from '@bnsights/bbsf-utilities';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG;;ACFH;;AAEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { FileLoaderService, MasterLayoutService, RequestHandlerService, RequestOptionsModel } from '@bnsights/bbsf-utilities';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Public API Surface of @bnsights/bbsf-utilities/http
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Generated bundle index. Do not edit.
|
|
9
|
+
*/
|
|
10
|
+
//# sourceMappingURL=bnsights-bbsf-utilities-http.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bnsights-bbsf-utilities-http.mjs","sources":["../../../projects/bbsf-utilities/http/public-api.ts","../../../projects/bbsf-utilities/http/bnsights-bbsf-utilities-http.ts"],"sourcesContent":["/*\r\n * Public API Surface of @bnsights/bbsf-utilities/http\r\n */\r\n\r\nexport { RequestHandlerService } from '@bnsights/bbsf-utilities';\r\nexport { FileLoaderService } from '@bnsights/bbsf-utilities';\r\nexport { MasterLayoutService } from '@bnsights/bbsf-utilities';\r\nexport { RequestOptionsModel } from '@bnsights/bbsf-utilities';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG;;ACFH;;AAEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { BBSFTranslateService, LanguageService, TranslationResolverService } from '@bnsights/bbsf-utilities';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Public API Surface of @bnsights/bbsf-utilities/translate
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Generated bundle index. Do not edit.
|
|
9
|
+
*/
|
|
10
|
+
//# sourceMappingURL=bnsights-bbsf-utilities-translate.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bnsights-bbsf-utilities-translate.mjs","sources":["../../../projects/bbsf-utilities/translate/public-api.ts","../../../projects/bbsf-utilities/translate/bnsights-bbsf-utilities-translate.ts"],"sourcesContent":["/*\r\n * Public API Surface of @bnsights/bbsf-utilities/translate\r\n */\r\n\r\nexport { BBSFTranslateService } from '@bnsights/bbsf-utilities';\r\nexport { TranslationResolverService } from '@bnsights/bbsf-utilities';\r\nexport { LanguageService } from '@bnsights/bbsf-utilities';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG;;ACFH;;AAEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { ControlValidationService, LanguageDTO, SpeechRecognitionService, UtilityService } from '@bnsights/bbsf-utilities';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Public API Surface of @bnsights/bbsf-utilities/ui
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Generated bundle index. Do not edit.
|
|
9
|
+
*/
|
|
10
|
+
//# sourceMappingURL=bnsights-bbsf-utilities-ui.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bnsights-bbsf-utilities-ui.mjs","sources":["../../../projects/bbsf-utilities/ui/public-api.ts","../../../projects/bbsf-utilities/ui/bnsights-bbsf-utilities-ui.ts"],"sourcesContent":["/*\r\n * Public API Surface of @bnsights/bbsf-utilities/ui\r\n */\r\n\r\nexport { UtilityService } from '@bnsights/bbsf-utilities';\r\nexport { ControlValidationService } from '@bnsights/bbsf-utilities';\r\nexport { SpeechRecognitionService } from '@bnsights/bbsf-utilities';\r\nexport { LanguageDTO } from '@bnsights/bbsf-utilities';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG;;ACFH;;AAEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { WordDocumentModel, WordDocumentService } from '@bnsights/bbsf-utilities';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Public API Surface of @bnsights/bbsf-utilities/word
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Generated bundle index. Do not edit.
|
|
9
|
+
*/
|
|
10
|
+
//# sourceMappingURL=bnsights-bbsf-utilities-word.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bnsights-bbsf-utilities-word.mjs","sources":["../../../projects/bbsf-utilities/word/public-api.ts","../../../projects/bbsf-utilities/word/bnsights-bbsf-utilities-word.ts"],"sourcesContent":["/*\r\n * Public API Surface of @bnsights/bbsf-utilities/word\r\n */\r\n\r\nexport { WordDocumentService } from '@bnsights/bbsf-utilities';\r\nexport { WordDocumentModel } from '@bnsights/bbsf-utilities';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG;;ACFH;;AAEG"}
|
|
@@ -484,7 +484,6 @@ class RequestHandlerService {
|
|
|
484
484
|
this.utilityService = utilityService;
|
|
485
485
|
this.bbsfTranslateService = bbsfTranslateService;
|
|
486
486
|
this.router = router;
|
|
487
|
-
this.requestOptions = new RequestOptionsModel();
|
|
488
487
|
this.currentLanguage = "";
|
|
489
488
|
this.onDestroy$ = new Subject();
|
|
490
489
|
//using localStorage to avoid call getCurrentLanguage() because it is not all to use async in constructor
|
|
@@ -503,23 +502,22 @@ class RequestHandlerService {
|
|
|
503
502
|
if (!this.isOnline()) {
|
|
504
503
|
const errorCode = 504; // Custom error code for internet disconnection
|
|
505
504
|
const errorMessage = 'Internet connection is disconnected.';
|
|
506
|
-
var error = new HttpErrorResponse({ error: { Message: errorMessage }, status:
|
|
505
|
+
var error = new HttpErrorResponse({ error: { Message: errorMessage }, status: errorCode });
|
|
507
506
|
this.handleError(error);
|
|
508
507
|
return;
|
|
509
508
|
}
|
|
510
|
-
|
|
511
|
-
this.requestOptions = requestOptions;
|
|
509
|
+
const currentRequestOptions = requestOptions || new RequestOptionsModel();
|
|
512
510
|
let headers = this.getHeaders();
|
|
513
|
-
if (!
|
|
511
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
514
512
|
this.utilityService.startBlockUI();
|
|
515
513
|
return this.http.get(this.environmentService.getApiUrl() + Url, { headers: headers, params: params }).pipe(takeUntil(this.onDestroy$), tap((result) => {
|
|
516
|
-
if (!
|
|
514
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
517
515
|
this.utilityService.stopBlockUI();
|
|
518
516
|
}, error => {
|
|
519
|
-
if (!
|
|
517
|
+
if (!currentRequestOptions.disableErrorHandler)
|
|
520
518
|
this.handleError(error);
|
|
521
519
|
}), map((data) => {
|
|
522
|
-
if (
|
|
520
|
+
if (currentRequestOptions.castResponsetoClass)
|
|
523
521
|
return plainToClass(responseType, data, { excludeExtraneousValues: true });
|
|
524
522
|
else
|
|
525
523
|
return data;
|
|
@@ -533,19 +531,18 @@ class RequestHandlerService {
|
|
|
533
531
|
this.handleError(error);
|
|
534
532
|
return;
|
|
535
533
|
}
|
|
536
|
-
|
|
537
|
-
this.requestOptions = requestOptions;
|
|
534
|
+
const currentRequestOptions = requestOptions || new RequestOptionsModel();
|
|
538
535
|
let headers = this.getHeaders();
|
|
539
|
-
if (!
|
|
536
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
540
537
|
this.utilityService.startBlockUI();
|
|
541
|
-
return this.http.post(this.environmentService.getApiUrl() + Url, model, { headers: headers, params: params, responseType:
|
|
542
|
-
if (!
|
|
538
|
+
return this.http.post(this.environmentService.getApiUrl() + Url, model, { headers: headers, params: params, responseType: currentRequestOptions.responseType }).pipe(takeUntil(this.onDestroy$), tap((result) => {
|
|
539
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
543
540
|
this.utilityService.stopBlockUI();
|
|
544
541
|
}, error => {
|
|
545
|
-
if (!
|
|
542
|
+
if (!currentRequestOptions.disableErrorHandler)
|
|
546
543
|
this.handleError(error);
|
|
547
544
|
}), map((data) => {
|
|
548
|
-
if (
|
|
545
|
+
if (currentRequestOptions.castResponsetoClass)
|
|
549
546
|
return plainToClass(responseType, data, { excludeExtraneousValues: true });
|
|
550
547
|
else
|
|
551
548
|
return data;
|
|
@@ -559,19 +556,18 @@ class RequestHandlerService {
|
|
|
559
556
|
this.handleError(error);
|
|
560
557
|
return;
|
|
561
558
|
}
|
|
562
|
-
|
|
563
|
-
this.requestOptions = requestOptions;
|
|
559
|
+
const currentRequestOptions = requestOptions || new RequestOptionsModel();
|
|
564
560
|
let headers = this.getHeaders();
|
|
565
|
-
if (!
|
|
561
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
566
562
|
this.utilityService.startBlockUI();
|
|
567
563
|
return this.http.delete(this.environmentService.getApiUrl() + Url + `/${deletedId}`, { headers: headers, params: params }).pipe(takeUntil(this.onDestroy$), tap((result) => {
|
|
568
|
-
if (!
|
|
564
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
569
565
|
this.utilityService.stopBlockUI();
|
|
570
566
|
}, error => {
|
|
571
|
-
if (!
|
|
567
|
+
if (!currentRequestOptions.disableErrorHandler)
|
|
572
568
|
this.handleError(error);
|
|
573
569
|
}), map((data) => {
|
|
574
|
-
if (
|
|
570
|
+
if (currentRequestOptions.castResponsetoClass)
|
|
575
571
|
return plainToClass(responseType, data, { excludeExtraneousValues: true });
|
|
576
572
|
else
|
|
577
573
|
return data;
|
|
@@ -585,19 +581,18 @@ class RequestHandlerService {
|
|
|
585
581
|
this.handleError(error);
|
|
586
582
|
return;
|
|
587
583
|
}
|
|
588
|
-
|
|
589
|
-
this.requestOptions = requestOptions;
|
|
584
|
+
const currentRequestOptions = requestOptions || new RequestOptionsModel();
|
|
590
585
|
let headers = this.getHeaders();
|
|
591
|
-
if (!
|
|
586
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
592
587
|
this.utilityService.startBlockUI();
|
|
593
|
-
return this.http.put(this.environmentService.getApiUrl() + Url, model, { headers: headers, params: params, responseType:
|
|
594
|
-
if (!
|
|
588
|
+
return this.http.put(this.environmentService.getApiUrl() + Url, model, { headers: headers, params: params, responseType: currentRequestOptions.responseType }).pipe(takeUntil(this.onDestroy$), tap((result) => {
|
|
589
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
595
590
|
this.utilityService.stopBlockUI();
|
|
596
591
|
}, error => {
|
|
597
|
-
if (!
|
|
592
|
+
if (!currentRequestOptions.disableErrorHandler)
|
|
598
593
|
this.handleError(error);
|
|
599
594
|
}), map((data) => {
|
|
600
|
-
if (
|
|
595
|
+
if (currentRequestOptions.castResponsetoClass)
|
|
601
596
|
return plainToClass(responseType, data, { excludeExtraneousValues: true });
|
|
602
597
|
else
|
|
603
598
|
return data;
|
|
@@ -611,8 +606,7 @@ class RequestHandlerService {
|
|
|
611
606
|
this.handleError(error);
|
|
612
607
|
return;
|
|
613
608
|
}
|
|
614
|
-
|
|
615
|
-
this.requestOptions = requestOptions;
|
|
609
|
+
const currentRequestOptions = requestOptions || new RequestOptionsModel();
|
|
616
610
|
let headers = new HttpHeaders({
|
|
617
611
|
'Content-Type': 'application/json',
|
|
618
612
|
'Authorization': this.authService.authorizationHeaderValue(),
|
|
@@ -620,16 +614,16 @@ class RequestHandlerService {
|
|
|
620
614
|
this.currentLanguage = localStorage.getItem('language');
|
|
621
615
|
headers = headers.set('Accept-Language', this.currentLanguage.toString());
|
|
622
616
|
headers = headers.set('ignore-cookies', 'true');
|
|
623
|
-
if (!
|
|
617
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
624
618
|
this.utilityService.startBlockUI();
|
|
625
|
-
return this.http.patch(this.environmentService.getApiUrl() + Url, model, { headers: headers, params: params, responseType:
|
|
626
|
-
if (!
|
|
619
|
+
return this.http.patch(this.environmentService.getApiUrl() + Url, model, { headers: headers, params: params, responseType: currentRequestOptions.responseType }).pipe(takeUntil(this.onDestroy$), tap((result) => {
|
|
620
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
627
621
|
this.utilityService.stopBlockUI();
|
|
628
622
|
}, error => {
|
|
629
|
-
if (!
|
|
623
|
+
if (!currentRequestOptions.disableErrorHandler)
|
|
630
624
|
this.handleError(error);
|
|
631
625
|
}), map((data) => {
|
|
632
|
-
if (
|
|
626
|
+
if (currentRequestOptions.castResponsetoClass)
|
|
633
627
|
return plainToClass(responseType, data, { excludeExtraneousValues: true });
|
|
634
628
|
else
|
|
635
629
|
return data;
|
|
@@ -643,20 +637,19 @@ class RequestHandlerService {
|
|
|
643
637
|
this.handleError(error);
|
|
644
638
|
return;
|
|
645
639
|
}
|
|
646
|
-
|
|
647
|
-
this.requestOptions = requestOptions;
|
|
640
|
+
const currentRequestOptions = requestOptions || new RequestOptionsModel();
|
|
648
641
|
let headers = this.getHeaders();
|
|
649
|
-
if (!
|
|
642
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
650
643
|
this.utilityService.startBlockUI();
|
|
651
|
-
return this.http.get(this.environmentService.getApiUrl() + Url, { headers: headers, params: params, responseType:
|
|
652
|
-
if (!
|
|
644
|
+
return this.http.get(this.environmentService.getApiUrl() + Url, { headers: headers, params: params, responseType: currentRequestOptions.responseType }).pipe(takeUntil(this.onDestroy$), tap((result) => {
|
|
645
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
653
646
|
this.utilityService.stopBlockUI();
|
|
654
647
|
}, error => {
|
|
655
|
-
if (!
|
|
648
|
+
if (!currentRequestOptions.disableErrorHandler)
|
|
656
649
|
this.handleError(error);
|
|
657
650
|
}));
|
|
658
651
|
}
|
|
659
|
-
Upload(Url, model) {
|
|
652
|
+
Upload(Url, model, requestOptions) {
|
|
660
653
|
if (!this.isOnline()) {
|
|
661
654
|
const errorCode = 504; // Custom error code for internet disconnection
|
|
662
655
|
const errorMessage = 'Internet connection is disconnected.';
|
|
@@ -664,12 +657,13 @@ class RequestHandlerService {
|
|
|
664
657
|
this.handleError(error);
|
|
665
658
|
return;
|
|
666
659
|
}
|
|
660
|
+
const currentRequestOptions = requestOptions || new RequestOptionsModel();
|
|
667
661
|
let headers = this.getHeadersUpdated();
|
|
668
662
|
return this.http.post(this.environmentService.getApiUrl() + Url, model, { headers: headers, reportProgress: true, observe: 'events' }).pipe(takeUntil(this.onDestroy$), tap((result) => {
|
|
669
|
-
if (!
|
|
663
|
+
if (!currentRequestOptions.disableBlockUI)
|
|
670
664
|
this.utilityService.stopBlockUI();
|
|
671
665
|
}, error => {
|
|
672
|
-
if (!
|
|
666
|
+
if (!currentRequestOptions.disableErrorHandler)
|
|
673
667
|
this.handleError(error);
|
|
674
668
|
}));
|
|
675
669
|
}
|
|
@@ -757,17 +751,38 @@ class StylesBundleService {
|
|
|
757
751
|
loadStyleBundle(styleName) {
|
|
758
752
|
const head = this.document.getElementsByTagName('head')[0];
|
|
759
753
|
let themeLink = this.document.getElementById('client-theme');
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
754
|
+
let shouldRemoveOld = false;
|
|
755
|
+
if (themeLink) {
|
|
756
|
+
// ✅ Check if current CSS already loaded (by exact filename)
|
|
757
|
+
const currentFileName = this.getFileName(themeLink.href);
|
|
758
|
+
const requestedFileName = this.getFileName(styleName);
|
|
759
|
+
if (currentFileName === requestedFileName) {
|
|
760
|
+
return; // Same CSS already loaded
|
|
761
|
+
}
|
|
762
|
+
else {
|
|
763
|
+
shouldRemoveOld = true; // Mark for removal after new CSS is added
|
|
764
|
+
}
|
|
765
765
|
}
|
|
766
|
+
// ✅ Add new CSS first (prevents FOUC)
|
|
766
767
|
const style = this.document.createElement('link');
|
|
767
768
|
style.id = 'client-theme';
|
|
768
769
|
style.rel = 'stylesheet';
|
|
769
770
|
style.href = `${styleName}`;
|
|
770
771
|
head.appendChild(style);
|
|
772
|
+
// ✅ Remove old CSS after new one is added (smooth transition)
|
|
773
|
+
if (shouldRemoveOld && themeLink) {
|
|
774
|
+
themeLink.remove();
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Extract filename from full path
|
|
779
|
+
* @param path Full path or just filename
|
|
780
|
+
* @returns The filename only
|
|
781
|
+
*/
|
|
782
|
+
getFileName(path) {
|
|
783
|
+
// Extract just the filename from full path
|
|
784
|
+
const parts = path.split('/');
|
|
785
|
+
return parts[parts.length - 1];
|
|
771
786
|
}
|
|
772
787
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StylesBundleService, deps: [{ token: DOCUMENT }, { token: BBSFTranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
773
788
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StylesBundleService, providedIn: 'root' }); }
|
|
@@ -4549,16 +4564,13 @@ class FileLoaderService {
|
|
|
4549
4564
|
});
|
|
4550
4565
|
}
|
|
4551
4566
|
async preloadTranslations() {
|
|
4552
|
-
console.log('Starting to preload translation files...');
|
|
4553
4567
|
try {
|
|
4554
4568
|
const requests = this.availableLanguages.map(async (lang) => {
|
|
4555
4569
|
const translations = await lastValueFrom(this.http.get(`/assets/i18n/${lang}.json`));
|
|
4556
|
-
console.log(`Loaded ${lang} translations:`, translations);
|
|
4557
4570
|
this.translate.setTranslation(lang, translations, true);
|
|
4558
4571
|
});
|
|
4559
4572
|
await Promise.all(requests);
|
|
4560
4573
|
this.translate.use('en'); // Set default language manually
|
|
4561
|
-
console.log('All translations preloaded.');
|
|
4562
4574
|
}
|
|
4563
4575
|
catch (error) {
|
|
4564
4576
|
console.error('Error preloading translations:', error);
|
|
@@ -4876,13 +4888,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
4876
4888
|
|
|
4877
4889
|
/*
|
|
4878
4890
|
* Public API Surface of @bnsights/bbsf-utilities
|
|
4891
|
+
*
|
|
4892
|
+
* This is the CORE entry point with minimal dependencies.
|
|
4893
|
+
*
|
|
4894
|
+
* For feature-specific services, use secondary entry points:
|
|
4895
|
+
* - @bnsights/bbsf-utilities/auth - Authentication services
|
|
4896
|
+
* - @bnsights/bbsf-utilities/word - Word document generation
|
|
4897
|
+
* - @bnsights/bbsf-utilities/translate - Translation services
|
|
4898
|
+
* - @bnsights/bbsf-utilities/ui - UI services (BlockUI, Toastr, etc.)
|
|
4899
|
+
* - @bnsights/bbsf-utilities/http - HTTP request handling
|
|
4879
4900
|
*/
|
|
4880
|
-
//Module
|
|
4881
|
-
//#endregion
|
|
4901
|
+
//Module (Note: for backward compatibility - contains ALL providers)
|
|
4882
4902
|
|
|
4883
4903
|
/**
|
|
4884
4904
|
* Generated bundle index. Do not edit.
|
|
4885
4905
|
*/
|
|
4886
4906
|
|
|
4887
|
-
export { AppearanceConfigurationService, AuthService, AuthenticationModes, BBSFTranslateService, BBSFUtilitiesModule, ConfigurationService, ControlValidationService, DocumentOptionsModel, EnvironmentService, FileLoaderService, LanguageDTO, LanguageService, MasterLayoutService, RequestHandlerService, RequestOptionsModel, SpeechRecognitionService, StylesBundleService, TranslationResolverService, UtilityService, WordDocumentModel, WordDocumentService, environment };
|
|
4907
|
+
export { AppearanceConfigurationService, AreaModel, AuthService, AuthenticationModes, BBSFTranslateService, BBSFUtilitiesModule, ConfigurationService, ControlValidationService, DocumentOptionsModel, EnvironmentService, ErrorModel, FileLoaderService, LanguageDTO, LanguageService, MasterLayoutService, RequestHandlerService, RequestOptionsModel, SpeechRecognitionService, StylesBundleService, TranslationResolverService, User, UtilityService, WordDocumentModel, WordDocumentService, environment };
|
|
4888
4908
|
//# sourceMappingURL=bnsights-bbsf-utilities.mjs.map
|