@bnsights/bbsf-utilities 1.0.69 → 1.2.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 (122) hide show
  1. package/README.md +167 -2
  2. package/auth/index.d.ts +5 -0
  3. package/auth/public-api.d.ts +1 -0
  4. package/fesm2022/bnsights-bbsf-utilities-auth.mjs +10 -0
  5. package/fesm2022/bnsights-bbsf-utilities-auth.mjs.map +1 -0
  6. package/fesm2022/bnsights-bbsf-utilities-http.mjs +10 -0
  7. package/fesm2022/bnsights-bbsf-utilities-http.mjs.map +1 -0
  8. package/fesm2022/bnsights-bbsf-utilities-translate.mjs +10 -0
  9. package/fesm2022/bnsights-bbsf-utilities-translate.mjs.map +1 -0
  10. package/fesm2022/bnsights-bbsf-utilities-ui.mjs +10 -0
  11. package/fesm2022/bnsights-bbsf-utilities-ui.mjs.map +1 -0
  12. package/fesm2022/bnsights-bbsf-utilities.mjs +369 -3842
  13. package/fesm2022/bnsights-bbsf-utilities.mjs.map +1 -1
  14. package/http/index.d.ts +5 -0
  15. package/http/public-api.d.ts +4 -0
  16. package/lib/bbsf-utilities.module.d.ts +22 -2
  17. package/lib/shared/authentication/auth.service.d.ts +0 -1
  18. package/lib/shared/models/index.d.ts +0 -1
  19. package/lib/shared/services/index.d.ts +0 -1
  20. package/lib/shared/services/language.service.d.ts +12 -0
  21. package/lib/shared/services/request-handler.service.d.ts +2 -3
  22. package/lib/shared/services/styles-bundle.service.d.ts +7 -1
  23. package/package.json +32 -25
  24. package/public-api.d.ts +14 -12
  25. package/translate/index.d.ts +5 -0
  26. package/translate/public-api.d.ts +3 -0
  27. package/ui/index.d.ts +5 -0
  28. package/ui/public-api.d.ts +4 -0
  29. package/esm2022/bnsights-bbsf-utilities.mjs +0 -5
  30. package/esm2022/lib/bbsf-utilities.module.mjs +0 -63
  31. package/esm2022/lib/shared/authentication/auth.service.mjs +0 -260
  32. package/esm2022/lib/shared/authentication/index.mjs +0 -2
  33. package/esm2022/lib/shared/config/environment.mjs +0 -12
  34. package/esm2022/lib/shared/config/word/constants.mjs +0 -105
  35. package/esm2022/lib/shared/config/word/docx-document.mjs +0 -348
  36. package/esm2022/lib/shared/config/word/helpers/index.mjs +0 -4
  37. package/esm2022/lib/shared/config/word/helpers/render-document-file.mjs +0 -154
  38. package/esm2022/lib/shared/config/word/helpers/xml-builder.mjs +0 -1836
  39. package/esm2022/lib/shared/config/word/html-to-docx.mjs +0 -187
  40. package/esm2022/lib/shared/config/word/index.mjs +0 -50
  41. package/esm2022/lib/shared/config/word/namespaces.mjs +0 -37
  42. package/esm2022/lib/shared/config/word/schemas/content-types.mjs +0 -26
  43. package/esm2022/lib/shared/config/word/schemas/core.mjs +0 -27
  44. package/esm2022/lib/shared/config/word/schemas/document-rels.mjs +0 -16
  45. package/esm2022/lib/shared/config/word/schemas/document.template.mjs +0 -107
  46. package/esm2022/lib/shared/config/word/schemas/font-table.mjs +0 -40
  47. package/esm2022/lib/shared/config/word/schemas/generic-rels.mjs +0 -11
  48. package/esm2022/lib/shared/config/word/schemas/index.mjs +0 -13
  49. package/esm2022/lib/shared/config/word/schemas/numbering.mjs +0 -17
  50. package/esm2022/lib/shared/config/word/schemas/rels.mjs +0 -11
  51. package/esm2022/lib/shared/config/word/schemas/settings.mjs +0 -13
  52. package/esm2022/lib/shared/config/word/schemas/styles.mjs +0 -147
  53. package/esm2022/lib/shared/config/word/schemas/theme.mjs +0 -198
  54. package/esm2022/lib/shared/config/word/schemas/web-settings.mjs +0 -9
  55. package/esm2022/lib/shared/config/word/utils/color-conversion.mjs +0 -60
  56. package/esm2022/lib/shared/config/word/utils/list.mjs +0 -51
  57. package/esm2022/lib/shared/config/word/utils/unit-conversion.mjs +0 -30
  58. package/esm2022/lib/shared/config/word/utils/url.mjs +0 -7
  59. package/esm2022/lib/shared/config/word/utils/vnode.mjs +0 -3
  60. package/esm2022/lib/shared/config/word/word-work/templates/documentTemplate.mjs +0 -54
  61. package/esm2022/lib/shared/config/word/word-work/templates/index.mjs +0 -4
  62. package/esm2022/lib/shared/config/word/word-work/templates/mhtDocumentTemplate.mjs +0 -22
  63. package/esm2022/lib/shared/config/word/word-work/templates/mhtPartTemplate.mjs +0 -10
  64. package/esm2022/lib/shared/config/word/word-work/utils.mjs +0 -26
  65. package/esm2022/lib/shared/enums/authentication-modes-enums.mjs +0 -8
  66. package/esm2022/lib/shared/index.mjs +0 -4
  67. package/esm2022/lib/shared/models/UserModel.mjs +0 -3
  68. package/esm2022/lib/shared/models/area-model.mjs +0 -3
  69. package/esm2022/lib/shared/models/error-model.mjs +0 -3
  70. package/esm2022/lib/shared/models/index.mjs +0 -6
  71. package/esm2022/lib/shared/models/request-options-model.mjs +0 -11
  72. package/esm2022/lib/shared/models/speech-language.mjs +0 -3
  73. package/esm2022/lib/shared/models/word-document-model.mjs +0 -8
  74. package/esm2022/lib/shared/services/appearance-configuration.service.mjs +0 -35
  75. package/esm2022/lib/shared/services/configuration.service.mjs +0 -48
  76. package/esm2022/lib/shared/services/control-validation.service.mjs +0 -173
  77. package/esm2022/lib/shared/services/environment.service.mjs +0 -83
  78. package/esm2022/lib/shared/services/index.mjs +0 -15
  79. package/esm2022/lib/shared/services/language.service.mjs +0 -21
  80. package/esm2022/lib/shared/services/master-layout.service.mjs +0 -77
  81. package/esm2022/lib/shared/services/preload.service.mjs +0 -54
  82. package/esm2022/lib/shared/services/request-handler.service.mjs +0 -260
  83. package/esm2022/lib/shared/services/speech-recognition.service.mjs +0 -76
  84. package/esm2022/lib/shared/services/styles-bundle.service.mjs +0 -55
  85. package/esm2022/lib/shared/services/translate.service.mjs +0 -14
  86. package/esm2022/lib/shared/services/translation-resolver.service.mjs +0 -7
  87. package/esm2022/lib/shared/services/utility.service.mjs +0 -87
  88. package/esm2022/lib/shared/services/word-document.service.mjs +0 -38
  89. package/esm2022/public-api.mjs +0 -34
  90. package/lib/shared/config/word/constants.d.ts +0 -124
  91. package/lib/shared/config/word/docx-document.d.ts +0 -73
  92. package/lib/shared/config/word/helpers/index.d.ts +0 -1
  93. package/lib/shared/config/word/helpers/render-document-file.d.ts +0 -2
  94. package/lib/shared/config/word/helpers/xml-builder.d.ts +0 -16
  95. package/lib/shared/config/word/html-to-docx.d.ts +0 -1
  96. package/lib/shared/config/word/index.d.ts +0 -1
  97. package/lib/shared/config/word/namespaces.d.ts +0 -36
  98. package/lib/shared/config/word/schemas/content-types.d.ts +0 -1
  99. package/lib/shared/config/word/schemas/core.d.ts +0 -1
  100. package/lib/shared/config/word/schemas/document-rels.d.ts +0 -1
  101. package/lib/shared/config/word/schemas/document.template.d.ts +0 -4
  102. package/lib/shared/config/word/schemas/font-table.d.ts +0 -1
  103. package/lib/shared/config/word/schemas/generic-rels.d.ts +0 -1
  104. package/lib/shared/config/word/schemas/index.d.ts +0 -12
  105. package/lib/shared/config/word/schemas/numbering.d.ts +0 -1
  106. package/lib/shared/config/word/schemas/rels.d.ts +0 -1
  107. package/lib/shared/config/word/schemas/settings.d.ts +0 -1
  108. package/lib/shared/config/word/schemas/styles.d.ts +0 -1
  109. package/lib/shared/config/word/schemas/theme.d.ts +0 -1
  110. package/lib/shared/config/word/schemas/web-settings.d.ts +0 -1
  111. package/lib/shared/config/word/utils/color-conversion.d.ts +0 -7
  112. package/lib/shared/config/word/utils/list.d.ts +0 -6
  113. package/lib/shared/config/word/utils/unit-conversion.d.ts +0 -29
  114. package/lib/shared/config/word/utils/url.d.ts +0 -1
  115. package/lib/shared/config/word/utils/vnode.d.ts +0 -1
  116. package/lib/shared/config/word/word-work/templates/documentTemplate.d.ts +0 -12
  117. package/lib/shared/config/word/word-work/templates/index.d.ts +0 -3
  118. package/lib/shared/config/word/word-work/templates/mhtDocumentTemplate.d.ts +0 -1
  119. package/lib/shared/config/word/word-work/templates/mhtPartTemplate.d.ts +0 -1
  120. package/lib/shared/config/word/word-work/utils.d.ts +0 -1
  121. package/lib/shared/models/word-document-model.d.ts +0 -16
  122. package/lib/shared/services/word-document.service.d.ts +0 -8
@@ -1,29 +0,0 @@
1
- export const pixelRegex: RegExp;
2
- export const percentageRegex: RegExp;
3
- export const pointRegex: RegExp;
4
- export const cmRegex: RegExp;
5
- export const inchRegex: RegExp;
6
- export function pixelToEMU(pixelValue: any): number;
7
- export function EMUToPixel(EMUValue: any): number;
8
- export function TWIPToEMU(TWIPValue: any): number;
9
- export function EMUToTWIP(EMUValue: any): number;
10
- export function pointToTWIP(pointValue: any): number;
11
- export function TWIPToPoint(TWIPValue: any): number;
12
- export function pointToHIP(pointValue: any): number;
13
- export function HIPToPoint(HIPValue: any): number;
14
- export function HIPToTWIP(HIPValue: any): number;
15
- export function TWIPToHIP(TWIPValue: any): number;
16
- export function pixelToTWIP(pixelValue: any): number;
17
- export function TWIPToPixel(TWIPValue: any): number;
18
- export function pixelToHIP(pixelValue: any): number;
19
- export function HIPToPixel(HIPValue: any): number;
20
- export function inchToPoint(inchValue: any): number;
21
- export function inchToTWIP(inchValue: any): number;
22
- export function cmToInch(cmValue: any): number;
23
- export function cmToTWIP(cmValue: any): number;
24
- export function pixelToPoint(pixelValue: any): number;
25
- export function pointToPixel(pointValue: any): number;
26
- export function EIPToPoint(EIPValue: any): number;
27
- export function pointToEIP(PointValue: any): number;
28
- export function pixelToEIP(pixelValue: any): number;
29
- export function EIPToPixel(EIPValue: any): number;
@@ -1 +0,0 @@
1
- export function isValidUrl(urlString: any): boolean;
@@ -1 +0,0 @@
1
- export function vNodeHasChildren(vNode: any): any;
@@ -1,12 +0,0 @@
1
- export declare const defaultMargins: {
2
- top: number;
3
- right: number;
4
- bottom: number;
5
- left: number;
6
- header: number;
7
- footer: number;
8
- gutter: number;
9
- };
10
- export type Margins = typeof defaultMargins;
11
- export type Orient = 'landscape' | 'portrait';
12
- export declare const documentTemplate: (width: number, height: number, orient: string, margins: Margins) => string;
@@ -1,3 +0,0 @@
1
- export * from './documentTemplate';
2
- export * from './mhtDocumentTemplate';
3
- export * from './mhtPartTemplate';
@@ -1 +0,0 @@
1
- export declare const mhtDocumentTemplate: (htmlSource: string, contentParts: string) => string;
@@ -1 +0,0 @@
1
- export declare const mhtPartTemplate: (contentType: string, contentEncoding: string, contentLocation: string, encodedContent: string) => string;
@@ -1 +0,0 @@
1
- export declare function getMHTdocument(htmlSource: string): string;
@@ -1,16 +0,0 @@
1
- export declare class WordDocumentModel {
2
- header: string;
3
- footer: string;
4
- body: string;
5
- options: DocumentOptionsModel;
6
- }
7
- export declare class DocumentOptionsModel {
8
- pageHeight: number;
9
- pageWidth: number;
10
- top: number;
11
- bottom: number;
12
- left: number;
13
- right: number;
14
- isLandscape: boolean;
15
- showPaging: boolean;
16
- }
@@ -1,8 +0,0 @@
1
- /// <reference types="node" />
2
- import { WordDocumentModel } from '../models';
3
- import * as i0 from "@angular/core";
4
- export declare class WordDocumentService {
5
- generateWordByteFile(model: WordDocumentModel): Promise<Buffer | Blob>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<WordDocumentService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<WordDocumentService>;
8
- }