@bnsights/bbsf-utilities 1.0.42 → 1.0.44

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 (126) hide show
  1. package/README.md +87 -66
  2. package/bnsights-bbsf-utilities-1.0.44.tgz +0 -0
  3. package/{esm2020 → esm2022}/bnsights-bbsf-utilities.mjs +4 -4
  4. package/{esm2020 → esm2022}/lib/bbsf-utilities.module.mjs +59 -59
  5. package/esm2022/lib/shared/authentication/auth.service.mjs +211 -0
  6. package/{esm2020 → esm2022}/lib/shared/authentication/index.mjs +1 -1
  7. package/{esm2020 → esm2022}/lib/shared/config/environment.mjs +11 -11
  8. package/{esm2020 → esm2022}/lib/shared/config/word/constants.mjs +104 -104
  9. package/{esm2020 → esm2022}/lib/shared/config/word/docx-document.mjs +347 -347
  10. package/{esm2020 → esm2022}/lib/shared/config/word/helpers/index.mjs +3 -3
  11. package/{esm2020 → esm2022}/lib/shared/config/word/helpers/render-document-file.mjs +153 -153
  12. package/{esm2020 → esm2022}/lib/shared/config/word/helpers/xml-builder.mjs +1835 -1835
  13. package/{esm2020 → esm2022}/lib/shared/config/word/html-to-docx.mjs +186 -186
  14. package/{esm2020 → esm2022}/lib/shared/config/word/index.mjs +49 -49
  15. package/{esm2020 → esm2022}/lib/shared/config/word/namespaces.mjs +36 -36
  16. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/content-types.mjs +2 -2
  17. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/core.mjs +6 -6
  18. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/document-rels.mjs +3 -3
  19. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/document.template.mjs +17 -17
  20. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/font-table.mjs +3 -3
  21. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/generic-rels.mjs +2 -2
  22. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/index.mjs +12 -12
  23. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/numbering.mjs +3 -3
  24. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/rels.mjs +3 -3
  25. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/settings.mjs +3 -3
  26. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/styles.mjs +4 -4
  27. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/theme.mjs +3 -3
  28. package/{esm2020 → esm2022}/lib/shared/config/word/schemas/web-settings.mjs +3 -3
  29. package/{esm2020 → esm2022}/lib/shared/config/word/utils/color-conversion.mjs +59 -59
  30. package/{esm2020 → esm2022}/lib/shared/config/word/utils/list.mjs +50 -50
  31. package/{esm2020 → esm2022}/lib/shared/config/word/utils/unit-conversion.mjs +29 -29
  32. package/{esm2020 → esm2022}/lib/shared/config/word/utils/url.mjs +6 -6
  33. package/{esm2020 → esm2022}/lib/shared/config/word/utils/vnode.mjs +2 -2
  34. package/{esm2020 → esm2022}/lib/shared/config/word/word-work/templates/documentTemplate.mjs +12 -12
  35. package/{esm2020 → esm2022}/lib/shared/config/word/word-work/templates/index.mjs +3 -3
  36. package/{esm2020 → esm2022}/lib/shared/config/word/word-work/templates/mhtDocumentTemplate.mjs +4 -4
  37. package/{esm2020 → esm2022}/lib/shared/config/word/word-work/templates/mhtPartTemplate.mjs +3 -3
  38. package/{esm2020 → esm2022}/lib/shared/config/word/word-work/utils.mjs +25 -25
  39. package/{esm2020 → esm2022}/lib/shared/enums/authentication-modes-enums.mjs +7 -7
  40. package/{esm2020 → esm2022}/lib/shared/index.mjs +3 -3
  41. package/{esm2020 → esm2022}/lib/shared/models/UserModel.mjs +2 -2
  42. package/{esm2020 → esm2022}/lib/shared/models/area-model.mjs +2 -2
  43. package/{esm2020 → esm2022}/lib/shared/models/error-model.mjs +2 -2
  44. package/{esm2020 → esm2022}/lib/shared/models/index.mjs +4 -4
  45. package/{esm2020 → esm2022}/lib/shared/models/request-options-model.mjs +10 -10
  46. package/{esm2020 → esm2022}/lib/shared/models/word-document-model.mjs +7 -7
  47. package/{esm2020 → esm2022}/lib/shared/services/appearance-configuration.service.mjs +35 -35
  48. package/esm2022/lib/shared/services/configuration.service.mjs +24 -0
  49. package/{esm2020 → esm2022}/lib/shared/services/control-validation.service.mjs +173 -173
  50. package/esm2022/lib/shared/services/environment.service.mjs +75 -0
  51. package/{esm2020 → esm2022}/lib/shared/services/index.mjs +11 -11
  52. package/{esm2020 → esm2022}/lib/shared/services/master-layout.service.mjs +72 -72
  53. package/{esm2020 → esm2022}/lib/shared/services/request-handler.service.mjs +219 -199
  54. package/{esm2020 → esm2022}/lib/shared/services/styles-bundle.service.mjs +55 -55
  55. package/{esm2020 → esm2022}/lib/shared/services/translate.service.mjs +14 -14
  56. package/{esm2020 → esm2022}/lib/shared/services/translation-resolver.service.mjs +6 -6
  57. package/{esm2020 → esm2022}/lib/shared/services/utility.service.mjs +87 -87
  58. package/{esm2020 → esm2022}/lib/shared/services/word-document.service.mjs +38 -38
  59. package/{esm2020 → esm2022}/public-api.mjs +29 -29
  60. package/{fesm2020 → fesm2022}/bnsights-bbsf-utilities.mjs +3856 -3836
  61. package/fesm2022/bnsights-bbsf-utilities.mjs.map +1 -0
  62. package/index.d.ts +5 -5
  63. package/lib/bbsf-utilities.module.d.ts +10 -10
  64. package/lib/shared/authentication/auth.service.d.ts +52 -52
  65. package/lib/shared/authentication/index.d.ts +1 -1
  66. package/lib/shared/config/environment.d.ts +1 -1
  67. package/lib/shared/config/word/constants.d.ts +124 -124
  68. package/lib/shared/config/word/docx-document.d.ts +73 -73
  69. package/lib/shared/config/word/helpers/index.d.ts +1 -1
  70. package/lib/shared/config/word/helpers/render-document-file.d.ts +2 -2
  71. package/lib/shared/config/word/helpers/xml-builder.d.ts +16 -16
  72. package/lib/shared/config/word/html-to-docx.d.ts +1 -1
  73. package/lib/shared/config/word/index.d.ts +1 -1
  74. package/lib/shared/config/word/namespaces.d.ts +36 -36
  75. package/lib/shared/config/word/schemas/content-types.d.ts +1 -1
  76. package/lib/shared/config/word/schemas/core.d.ts +1 -1
  77. package/lib/shared/config/word/schemas/document-rels.d.ts +1 -1
  78. package/lib/shared/config/word/schemas/document.template.d.ts +4 -4
  79. package/lib/shared/config/word/schemas/font-table.d.ts +1 -1
  80. package/lib/shared/config/word/schemas/generic-rels.d.ts +1 -1
  81. package/lib/shared/config/word/schemas/index.d.ts +12 -12
  82. package/lib/shared/config/word/schemas/numbering.d.ts +1 -1
  83. package/lib/shared/config/word/schemas/rels.d.ts +1 -1
  84. package/lib/shared/config/word/schemas/settings.d.ts +1 -1
  85. package/lib/shared/config/word/schemas/styles.d.ts +1 -1
  86. package/lib/shared/config/word/schemas/theme.d.ts +1 -1
  87. package/lib/shared/config/word/schemas/web-settings.d.ts +1 -1
  88. package/lib/shared/config/word/utils/color-conversion.d.ts +7 -7
  89. package/lib/shared/config/word/utils/list.d.ts +6 -6
  90. package/lib/shared/config/word/utils/unit-conversion.d.ts +29 -29
  91. package/lib/shared/config/word/utils/url.d.ts +1 -1
  92. package/lib/shared/config/word/utils/vnode.d.ts +1 -1
  93. package/lib/shared/config/word/word-work/templates/documentTemplate.d.ts +12 -12
  94. package/lib/shared/config/word/word-work/templates/index.d.ts +3 -3
  95. package/lib/shared/config/word/word-work/templates/mhtDocumentTemplate.d.ts +1 -1
  96. package/lib/shared/config/word/word-work/templates/mhtPartTemplate.d.ts +1 -1
  97. package/lib/shared/config/word/word-work/utils.d.ts +1 -1
  98. package/lib/shared/enums/authentication-modes-enums.d.ts +6 -6
  99. package/lib/shared/index.d.ts +3 -3
  100. package/lib/shared/models/UserModel.d.ts +6 -6
  101. package/lib/shared/models/area-model.d.ts +4 -4
  102. package/lib/shared/models/error-model.d.ts +5 -5
  103. package/lib/shared/models/index.d.ts +4 -4
  104. package/lib/shared/models/request-options-model.d.ts +11 -11
  105. package/lib/shared/models/word-document-model.d.ts +16 -16
  106. package/lib/shared/services/appearance-configuration.service.d.ts +14 -14
  107. package/lib/shared/services/configuration.service.d.ts +10 -10
  108. package/lib/shared/services/control-validation.service.d.ts +23 -23
  109. package/lib/shared/services/environment.service.d.ts +25 -25
  110. package/lib/shared/services/index.d.ts +11 -11
  111. package/lib/shared/services/master-layout.service.d.ts +24 -24
  112. package/lib/shared/services/request-handler.service.d.ts +35 -33
  113. package/lib/shared/services/styles-bundle.service.d.ts +12 -12
  114. package/lib/shared/services/translate.service.d.ts +6 -6
  115. package/lib/shared/services/translation-resolver.service.d.ts +2 -2
  116. package/lib/shared/services/utility.service.d.ts +23 -23
  117. package/lib/shared/services/word-document.service.d.ts +8 -8
  118. package/package.json +28 -29
  119. package/public-api.d.ts +17 -17
  120. package/bnsights-bbsf-utilities-1.0.42.tgz +0 -0
  121. package/esm2020/lib/shared/authentication/auth.service.mjs +0 -211
  122. package/esm2020/lib/shared/services/configuration.service.mjs +0 -24
  123. package/esm2020/lib/shared/services/environment.service.mjs +0 -75
  124. package/fesm2015/bnsights-bbsf-utilities.mjs +0 -4555
  125. package/fesm2015/bnsights-bbsf-utilities.mjs.map +0 -1
  126. package/fesm2020/bnsights-bbsf-utilities.mjs.map +0 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bnsights/bbsf-utilities" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@bnsights/bbsf-utilities" />
5
+ export * from './public-api';
@@ -1,10 +1,10 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "@angular/router";
4
- import * as i3 from "ng-block-ui";
5
- import * as i4 from "ngx-toastr";
6
- export declare class BBSFUtilitiesModule {
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.ToastrModule], never>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<BBSFUtilitiesModule>;
10
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/router";
4
+ import * as i3 from "ng-block-ui";
5
+ import * as i4 from "ngx-toastr";
6
+ export declare class BBSFUtilitiesModule {
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.ToastrModule], never>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<BBSFUtilitiesModule>;
10
+ }
@@ -1,52 +1,52 @@
1
- /// <reference types="node" />
2
- import { HttpClient } from '@angular/common/http';
3
- import { Injector } from '@angular/core';
4
- import { Router } from '@angular/router';
5
- import { BBSFTranslateService, EnvironmentService } from '../services';
6
- import { User } from '../models/UserModel';
7
- import { CookieService } from 'ngx-cookie-service';
8
- import { UtilityService } from '../services/utility.service';
9
- import * as i0 from "@angular/core";
10
- export declare class AuthService {
11
- private injector;
12
- private http;
13
- private environmentService;
14
- private translateService;
15
- private router;
16
- private cookieService;
17
- private utilityService;
18
- redirectUrl: string;
19
- static user: User | null;
20
- user: User | null;
21
- static UserClaims: any;
22
- private jwtHelper;
23
- private isAuthenticatedSubject;
24
- isAuthenticate$: import("rxjs").Observable<boolean>;
25
- static timers: any[];
26
- static seconds: number;
27
- constructor(injector: Injector, http: HttpClient, environmentService: EnvironmentService, translateService: BBSFTranslateService, router: Router, cookieService: CookieService, utilityService: UtilityService);
28
- private hasToken;
29
- getUserManager(): User;
30
- getUser(): void;
31
- storUser(User: any): void;
32
- getCurrentUser(): User;
33
- isAuthenticated(): Promise<boolean>;
34
- isUserInRole(allowedPermission: number[]): boolean;
35
- authorizationHeaderValue(): string;
36
- name(): string;
37
- setUrl(url: any): void;
38
- getUrl(): string;
39
- signOut(): void;
40
- logout(): import("rxjs").Observable<Object>;
41
- clearUserSessionClaims(): import("rxjs").Observable<Object>;
42
- handleAccessToken(response: any): Promise<void>;
43
- handleAccessTokenWithoutLanguage(response: any): void;
44
- updateLanguage(): Promise<void>;
45
- checkRefreshToken(): NodeJS.Timeout;
46
- setTokenSeconds(): void;
47
- refresh(): void;
48
- loginWithUAEPass(): void;
49
- logoutFromUAEPass(): void;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
51
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
52
- }
1
+ /// <reference types="node" />
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Injector } from '@angular/core';
4
+ import { Router } from '@angular/router';
5
+ import { BBSFTranslateService, EnvironmentService } from '../services';
6
+ import { User } from '../models/UserModel';
7
+ import { CookieService } from 'ngx-cookie-service';
8
+ import { UtilityService } from '../services/utility.service';
9
+ import * as i0 from "@angular/core";
10
+ export declare class AuthService {
11
+ private injector;
12
+ private http;
13
+ private environmentService;
14
+ private translateService;
15
+ private router;
16
+ private cookieService;
17
+ private utilityService;
18
+ redirectUrl: string;
19
+ static user: User | null;
20
+ user: User | null;
21
+ static UserClaims: any;
22
+ private jwtHelper;
23
+ private isAuthenticatedSubject;
24
+ isAuthenticate$: import("rxjs").Observable<boolean>;
25
+ static timers: any[];
26
+ static seconds: number;
27
+ constructor(injector: Injector, http: HttpClient, environmentService: EnvironmentService, translateService: BBSFTranslateService, router: Router, cookieService: CookieService, utilityService: UtilityService);
28
+ private hasToken;
29
+ getUserManager(): User;
30
+ getUser(): void;
31
+ storUser(User: any): void;
32
+ getCurrentUser(): User;
33
+ isAuthenticated(): Promise<boolean>;
34
+ isUserInRole(allowedPermission: number[]): boolean;
35
+ authorizationHeaderValue(): string;
36
+ name(): string;
37
+ setUrl(url: any): void;
38
+ getUrl(): string;
39
+ signOut(): void;
40
+ logout(): import("rxjs").Observable<Object>;
41
+ clearUserSessionClaims(): import("rxjs").Observable<Object>;
42
+ handleAccessToken(response: any): Promise<void>;
43
+ handleAccessTokenWithoutLanguage(response: any): void;
44
+ updateLanguage(): Promise<void>;
45
+ checkRefreshToken(): NodeJS.Timeout;
46
+ setTokenSeconds(): void;
47
+ refresh(): void;
48
+ loginWithUAEPass(): void;
49
+ logoutFromUAEPass(): void;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
51
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
52
+ }
@@ -1 +1 @@
1
- export * from './auth.service';
1
+ export * from './auth.service';
@@ -1 +1 @@
1
- export declare const environment: any;
1
+ export declare const environment: any;
@@ -1,124 +1,124 @@
1
- export namespace defaultDocumentOptions {
2
- export { defaultOrientation as orientation };
3
- export const margins: any;
4
- export const title: string;
5
- export const subject: string;
6
- export { applicationName as creator };
7
- export const keywords: string[];
8
- export const description: string;
9
- export { applicationName as lastModifiedBy };
10
- export const revision: number;
11
- export const createdAt: Date;
12
- export const modifiedAt: Date;
13
- export const headerType: string;
14
- export const header: boolean;
15
- export const footerType: string;
16
- export const footer: boolean;
17
- export { defaultFont as font };
18
- export { defaultFontSize as fontSize };
19
- export { defaultFontSize as complexScriptFontSize };
20
- export namespace table {
21
- namespace row {
22
- const cantSplit: boolean;
23
- }
24
- }
25
- export namespace pageSize {
26
- export { landscapeHeight as width };
27
- export { landscapeWidth as height };
28
- }
29
- export const pageNumber: boolean;
30
- export const skipFirstHeaderFooter: boolean;
31
- export const lineNumber: boolean;
32
- export namespace lineNumberOptions {
33
- const countBy: number;
34
- const start: number;
35
- const restart: string;
36
- }
37
- export namespace numbering {
38
- const defaultOrderedListStyleType: string;
39
- }
40
- }
41
- export const defaultHTMLString: "<p></p>";
42
- export const relsFolderName: "_rels";
43
- export const headerFileName: "header1";
44
- export const footerFileName: "footer1";
45
- export const themeFileName: "theme1";
46
- export const documentFileName: "document";
47
- export const headerType: "header";
48
- export const footerType: "footer";
49
- export const themeType: "theme";
50
- export const internalRelationship: "Internal";
51
- export const wordFolder: "word";
52
- export const themeFolder: "theme";
53
- export namespace landscapeMargins {
54
- export const top: number;
55
- export const right: number;
56
- export const bottom: number;
57
- export const left: number;
58
- const header_1: number;
59
- export { header_1 as header };
60
- const footer_1: number;
61
- export { footer_1 as footer };
62
- export const gutter: number;
63
- }
64
- export namespace portraitMargins {
65
- const top_1: number;
66
- export { top_1 as top };
67
- const right_1: number;
68
- export { right_1 as right };
69
- const bottom_1: number;
70
- export { bottom_1 as bottom };
71
- const left_1: number;
72
- export { left_1 as left };
73
- const header_2: number;
74
- export { header_2 as header };
75
- const footer_2: number;
76
- export { footer_2 as footer };
77
- const gutter_1: number;
78
- export { gutter_1 as gutter };
79
- }
80
- export const defaultOrientation: "portrait";
81
- export const landscapeWidth: 15840;
82
- export const landscapeHeight: 12240;
83
- export const applicationName: "html-to-docx";
84
- export const defaultFont: "Times New Roman";
85
- export const defaultFontSize: 22;
86
- export const hyperlinkType: "hyperlink";
87
- export const imageType: "image";
88
- export namespace paragraphBordersObject {
89
- export namespace top_2 {
90
- const size: number;
91
- const spacing: number;
92
- const color: string;
93
- }
94
- export { top_2 as top };
95
- export namespace left_2 {
96
- const size_1: number;
97
- export { size_1 as size };
98
- const spacing_1: number;
99
- export { spacing_1 as spacing };
100
- const color_1: string;
101
- export { color_1 as color };
102
- }
103
- export { left_2 as left };
104
- export namespace bottom_2 {
105
- const size_2: number;
106
- export { size_2 as size };
107
- const spacing_2: number;
108
- export { spacing_2 as spacing };
109
- const color_2: string;
110
- export { color_2 as color };
111
- }
112
- export { bottom_2 as bottom };
113
- export namespace right_2 {
114
- const size_3: number;
115
- export { size_3 as size };
116
- const spacing_3: number;
117
- export { spacing_3 as spacing };
118
- const color_3: string;
119
- export { color_3 as color };
120
- }
121
- export { right_2 as right };
122
- }
123
- export const colorlessColors: string[];
124
- export const verticalAlignValues: string[];
1
+ export namespace defaultDocumentOptions {
2
+ export { defaultOrientation as orientation };
3
+ export let margins: any;
4
+ export let title: string;
5
+ export let subject: string;
6
+ export { applicationName as creator };
7
+ export let keywords: string[];
8
+ export let description: string;
9
+ export { applicationName as lastModifiedBy };
10
+ export let revision: number;
11
+ export let createdAt: Date;
12
+ export let modifiedAt: Date;
13
+ export let headerType: string;
14
+ export let header: boolean;
15
+ export let footerType: string;
16
+ export let footer: boolean;
17
+ export { defaultFont as font };
18
+ export { defaultFontSize as fontSize };
19
+ export { defaultFontSize as complexScriptFontSize };
20
+ export namespace table {
21
+ namespace row {
22
+ let cantSplit: boolean;
23
+ }
24
+ }
25
+ export namespace pageSize {
26
+ export { landscapeHeight as width };
27
+ export { landscapeWidth as height };
28
+ }
29
+ export let pageNumber: boolean;
30
+ export let skipFirstHeaderFooter: boolean;
31
+ export let lineNumber: boolean;
32
+ export namespace lineNumberOptions {
33
+ let countBy: number;
34
+ let start: number;
35
+ let restart: string;
36
+ }
37
+ export namespace numbering {
38
+ let defaultOrderedListStyleType: string;
39
+ }
40
+ }
41
+ export const defaultHTMLString: "<p></p>";
42
+ export const relsFolderName: "_rels";
43
+ export const headerFileName: "header1";
44
+ export const footerFileName: "footer1";
45
+ export const themeFileName: "theme1";
46
+ export const documentFileName: "document";
47
+ export const headerType: "header";
48
+ export const footerType: "footer";
49
+ export const themeType: "theme";
50
+ export const internalRelationship: "Internal";
51
+ export const wordFolder: "word";
52
+ export const themeFolder: "theme";
53
+ export namespace landscapeMargins {
54
+ export let top: number;
55
+ export let right: number;
56
+ export let bottom: number;
57
+ export let left: number;
58
+ let header_1: number;
59
+ export { header_1 as header };
60
+ let footer_1: number;
61
+ export { footer_1 as footer };
62
+ export let gutter: number;
63
+ }
64
+ export namespace portraitMargins {
65
+ let top_1: number;
66
+ export { top_1 as top };
67
+ let right_1: number;
68
+ export { right_1 as right };
69
+ let bottom_1: number;
70
+ export { bottom_1 as bottom };
71
+ let left_1: number;
72
+ export { left_1 as left };
73
+ let header_2: number;
74
+ export { header_2 as header };
75
+ let footer_2: number;
76
+ export { footer_2 as footer };
77
+ let gutter_1: number;
78
+ export { gutter_1 as gutter };
79
+ }
80
+ export const defaultOrientation: "portrait";
81
+ export const landscapeWidth: 15840;
82
+ export const landscapeHeight: 12240;
83
+ export const applicationName: "html-to-docx";
84
+ export const defaultFont: "Times New Roman";
85
+ export const defaultFontSize: 22;
86
+ export const hyperlinkType: "hyperlink";
87
+ export const imageType: "image";
88
+ export namespace paragraphBordersObject {
89
+ export namespace top_2 {
90
+ let size: number;
91
+ let spacing: number;
92
+ let color: string;
93
+ }
94
+ export { top_2 as top };
95
+ export namespace left_2 {
96
+ let size_1: number;
97
+ export { size_1 as size };
98
+ let spacing_1: number;
99
+ export { spacing_1 as spacing };
100
+ let color_1: string;
101
+ export { color_1 as color };
102
+ }
103
+ export { left_2 as left };
104
+ export namespace bottom_2 {
105
+ let size_2: number;
106
+ export { size_2 as size };
107
+ let spacing_2: number;
108
+ export { spacing_2 as spacing };
109
+ let color_2: string;
110
+ export { color_2 as color };
111
+ }
112
+ export { bottom_2 as bottom };
113
+ export namespace right_2 {
114
+ let size_3: number;
115
+ export { size_3 as size };
116
+ let spacing_3: number;
117
+ export { spacing_3 as spacing };
118
+ let color_3: string;
119
+ export { color_3 as color };
120
+ }
121
+ export { right_2 as right };
122
+ }
123
+ export const colorlessColors: string[];
124
+ export const verticalAlignValues: string[];
@@ -1,73 +1,73 @@
1
- export class DocxDocument {
2
- constructor(properties: any);
3
- zip: any;
4
- htmlString: any;
5
- orientation: any;
6
- pageSize: any;
7
- width: any;
8
- height: any;
9
- margins: any;
10
- availableDocumentSpace: number;
11
- title: any;
12
- subject: any;
13
- creator: any;
14
- keywords: any;
15
- description: any;
16
- lastModifiedBy: any;
17
- revision: any;
18
- createdAt: any;
19
- modifiedAt: any;
20
- headerType: any;
21
- header: any;
22
- footerType: any;
23
- footer: any;
24
- font: any;
25
- fontSize: any;
26
- complexScriptFontSize: any;
27
- tableRowCantSplit: any;
28
- pageNumber: any;
29
- skipFirstHeaderFooter: any;
30
- lineNumber: any;
31
- lastNumberingId: number;
32
- lastMediaId: number;
33
- lastHeaderId: number;
34
- lastFooterId: number;
35
- stylesObjects: any[];
36
- numberingObjects: any[];
37
- relationshipFilename: string;
38
- relationships: {
39
- fileName: string;
40
- lastRelsId: number;
41
- rels: any[];
42
- }[];
43
- mediaFiles: any[];
44
- headerObjects: any[];
45
- footerObjects: any[];
46
- documentXML: any;
47
- generateContentTypesXML(): string;
48
- generateDocumentXML(): string;
49
- generateCoreXML(): string;
50
- generateSettingsXML(): string;
51
- generateWebSettingsXML(): string;
52
- generateStylesXML(): string;
53
- generateFontTableXML(): string;
54
- generateThemeXML(): string;
55
- generateNumberingXML(): string;
56
- generateRelsXML(): {
57
- fileName: string;
58
- xmlString: string;
59
- }[];
60
- createMediaFile(base64String: any): {
61
- id: number;
62
- fileContent: any;
63
- fileNameWithExtension: string;
64
- };
65
- createDocumentRelationships(fileName: string, type: any, target: any, targetMode?: string): number;
66
- generateHeaderXML(vTree: any): any;
67
- generateFooterXML(vTree: any): any;
68
- generateSectionXML: any;
69
- ListStyleBuilder: ListStyleBuilder;
70
- appendRelationships(xmlFragment: any, relationships: any): void;
71
- createNumbering(type: any, properties: any): number;
72
- }
73
- import { ListStyleBuilder } from "./utils/list";
1
+ export class DocxDocument {
2
+ constructor(properties: any);
3
+ zip: any;
4
+ htmlString: any;
5
+ orientation: any;
6
+ pageSize: any;
7
+ width: any;
8
+ height: any;
9
+ margins: any;
10
+ availableDocumentSpace: number;
11
+ title: any;
12
+ subject: any;
13
+ creator: any;
14
+ keywords: any;
15
+ description: any;
16
+ lastModifiedBy: any;
17
+ revision: any;
18
+ createdAt: any;
19
+ modifiedAt: any;
20
+ headerType: any;
21
+ header: any;
22
+ footerType: any;
23
+ footer: any;
24
+ font: any;
25
+ fontSize: any;
26
+ complexScriptFontSize: any;
27
+ tableRowCantSplit: any;
28
+ pageNumber: any;
29
+ skipFirstHeaderFooter: any;
30
+ lineNumber: any;
31
+ lastNumberingId: number;
32
+ lastMediaId: number;
33
+ lastHeaderId: number;
34
+ lastFooterId: number;
35
+ stylesObjects: any[];
36
+ numberingObjects: any[];
37
+ relationshipFilename: string;
38
+ relationships: {
39
+ fileName: string;
40
+ lastRelsId: number;
41
+ rels: any[];
42
+ }[];
43
+ mediaFiles: any[];
44
+ headerObjects: any[];
45
+ footerObjects: any[];
46
+ documentXML: any;
47
+ generateContentTypesXML(): string;
48
+ generateDocumentXML(): string;
49
+ generateCoreXML(): string;
50
+ generateSettingsXML(): string;
51
+ generateWebSettingsXML(): string;
52
+ generateStylesXML(): string;
53
+ generateFontTableXML(): string;
54
+ generateThemeXML(): string;
55
+ generateNumberingXML(): string;
56
+ generateRelsXML(): {
57
+ fileName: string;
58
+ xmlString: string;
59
+ }[];
60
+ createMediaFile(base64String: any): {
61
+ id: number;
62
+ fileContent: any;
63
+ fileNameWithExtension: string;
64
+ };
65
+ createDocumentRelationships(fileName: string, type: any, target: any, targetMode?: string): number;
66
+ generateHeaderXML(vTree: any): any;
67
+ generateFooterXML(vTree: any): any;
68
+ generateSectionXML: any;
69
+ ListStyleBuilder: ListStyleBuilder;
70
+ appendRelationships(xmlFragment: any, relationships: any): void;
71
+ createNumbering(type: any, properties: any): number;
72
+ }
73
+ import { ListStyleBuilder } from './utils/list';
@@ -1 +1 @@
1
- export { renderDocumentFile, convertVTreeToXML } from "./render-document-file";
1
+ export { renderDocumentFile, convertVTreeToXML } from "./render-document-file";
@@ -1,2 +1,2 @@
1
- export function convertVTreeToXML(docxDocumentInstance: any, vTree: any, xmlFragment: any): Promise<any>;
2
- export function renderDocumentFile(docxDocumentInstance: any): Promise<any>;
1
+ export function convertVTreeToXML(docxDocumentInstance: any, vTree: any, xmlFragment: any): Promise<any>;
2
+ export function renderDocumentFile(docxDocumentInstance: any): Promise<any>;
@@ -1,16 +1,16 @@
1
- export function buildParagraph(vNode: any, attributes: any, docxDocumentInstance: any): Promise<import("xmlbuilder2/lib/interfaces").XMLBuilder>;
2
- export function buildTable(vNode: any, attributes: any, docxDocumentInstance: any): Promise<import("xmlbuilder2/lib/interfaces").XMLBuilder>;
3
- export function buildNumberingInstances(): import("xmlbuilder2/lib/interfaces").XMLBuilder;
4
- export function buildLineBreak(type?: string): import("xmlbuilder2/lib/interfaces").XMLBuilder;
5
- export function buildIndentation({ left, right }: {
6
- left: any;
7
- right: any;
8
- }): import("xmlbuilder2/lib/interfaces").XMLBuilder;
9
- export function buildTextElement(text: any): import("xmlbuilder2/lib/interfaces").XMLBuilder;
10
- export function buildBold(): import("xmlbuilder2/lib/interfaces").XMLBuilder;
11
- export function buildItalics(): import("xmlbuilder2/lib/interfaces").XMLBuilder;
12
- export function buildUnderline(type?: string): import("xmlbuilder2/lib/interfaces").XMLBuilder;
13
- export function buildDrawing(inlineOrAnchored: boolean, graphicType: any, attributes: any): import("xmlbuilder2/lib/interfaces").XMLBuilder;
14
- export function fixupLineHeight(lineHeight: any, fontSize: any): number;
15
- export function buildImage(docxDocumentInstance: any, vNode: any, maximumWidth?: any): Promise<any>;
16
- export function buildList(vNode: any, docxDocumentInstance: any, xmlFragment: any): Promise<any[]>;
1
+ export function buildParagraph(vNode: any, attributes: any, docxDocumentInstance: any): Promise<import("xmlbuilder2/lib/interfaces").XMLBuilder>;
2
+ export function buildTable(vNode: any, attributes: any, docxDocumentInstance: any): Promise<import("xmlbuilder2/lib/interfaces").XMLBuilder>;
3
+ export function buildNumberingInstances(): import("xmlbuilder2/lib/interfaces").XMLBuilder;
4
+ export function buildLineBreak(type?: string): import("xmlbuilder2/lib/interfaces").XMLBuilder;
5
+ export function buildIndentation({ left, right }: {
6
+ left: any;
7
+ right: any;
8
+ }): import("xmlbuilder2/lib/interfaces").XMLBuilder;
9
+ export function buildTextElement(text: any): import("xmlbuilder2/lib/interfaces").XMLBuilder;
10
+ export function buildBold(): import("xmlbuilder2/lib/interfaces").XMLBuilder;
11
+ export function buildItalics(): import("xmlbuilder2/lib/interfaces").XMLBuilder;
12
+ export function buildUnderline(type?: string): import("xmlbuilder2/lib/interfaces").XMLBuilder;
13
+ export function buildDrawing(inlineOrAnchored: boolean, graphicType: any, attributes: any): import("xmlbuilder2/lib/interfaces").XMLBuilder;
14
+ export function fixupLineHeight(lineHeight: any, fontSize: any): number;
15
+ export function buildImage(docxDocumentInstance: any, vNode: any, maximumWidth?: any): Promise<any>;
16
+ export function buildList(vNode: any, docxDocumentInstance: any, xmlFragment: any): Promise<any[]>;
@@ -1 +1 @@
1
- export function addFilesToContainer(zip: any, htmlString: any, suppliedDocumentOptions: any, headerHTMLString: any, footerHTMLString: any): Promise<any>;
1
+ export function addFilesToContainer(zip: any, htmlString: any, suppliedDocumentOptions: any, headerHTMLString: any, footerHTMLString: any): Promise<any>;
@@ -1 +1 @@
1
- export function generateContainer(htmlString: any, headerHTMLString: any, documentOptions: {}, footerHTMLString: any): Promise<Buffer | Blob>;
1
+ export function generateContainer(htmlString: any, headerHTMLString: any, documentOptions: {}, footerHTMLString: any): Promise<Buffer | Blob>;