@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.
- package/README.md +87 -66
- package/bnsights-bbsf-utilities-1.0.44.tgz +0 -0
- package/{esm2020 → esm2022}/bnsights-bbsf-utilities.mjs +4 -4
- package/{esm2020 → esm2022}/lib/bbsf-utilities.module.mjs +59 -59
- package/esm2022/lib/shared/authentication/auth.service.mjs +211 -0
- package/{esm2020 → esm2022}/lib/shared/authentication/index.mjs +1 -1
- package/{esm2020 → esm2022}/lib/shared/config/environment.mjs +11 -11
- package/{esm2020 → esm2022}/lib/shared/config/word/constants.mjs +104 -104
- package/{esm2020 → esm2022}/lib/shared/config/word/docx-document.mjs +347 -347
- package/{esm2020 → esm2022}/lib/shared/config/word/helpers/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/config/word/helpers/render-document-file.mjs +153 -153
- package/{esm2020 → esm2022}/lib/shared/config/word/helpers/xml-builder.mjs +1835 -1835
- package/{esm2020 → esm2022}/lib/shared/config/word/html-to-docx.mjs +186 -186
- package/{esm2020 → esm2022}/lib/shared/config/word/index.mjs +49 -49
- package/{esm2020 → esm2022}/lib/shared/config/word/namespaces.mjs +36 -36
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/content-types.mjs +2 -2
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/core.mjs +6 -6
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/document-rels.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/document.template.mjs +17 -17
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/font-table.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/generic-rels.mjs +2 -2
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/index.mjs +12 -12
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/numbering.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/rels.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/settings.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/styles.mjs +4 -4
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/theme.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/config/word/schemas/web-settings.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/config/word/utils/color-conversion.mjs +59 -59
- package/{esm2020 → esm2022}/lib/shared/config/word/utils/list.mjs +50 -50
- package/{esm2020 → esm2022}/lib/shared/config/word/utils/unit-conversion.mjs +29 -29
- package/{esm2020 → esm2022}/lib/shared/config/word/utils/url.mjs +6 -6
- package/{esm2020 → esm2022}/lib/shared/config/word/utils/vnode.mjs +2 -2
- package/{esm2020 → esm2022}/lib/shared/config/word/word-work/templates/documentTemplate.mjs +12 -12
- package/{esm2020 → esm2022}/lib/shared/config/word/word-work/templates/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/config/word/word-work/templates/mhtDocumentTemplate.mjs +4 -4
- package/{esm2020 → esm2022}/lib/shared/config/word/word-work/templates/mhtPartTemplate.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/config/word/word-work/utils.mjs +25 -25
- package/{esm2020 → esm2022}/lib/shared/enums/authentication-modes-enums.mjs +7 -7
- package/{esm2020 → esm2022}/lib/shared/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/shared/models/UserModel.mjs +2 -2
- package/{esm2020 → esm2022}/lib/shared/models/area-model.mjs +2 -2
- package/{esm2020 → esm2022}/lib/shared/models/error-model.mjs +2 -2
- package/{esm2020 → esm2022}/lib/shared/models/index.mjs +4 -4
- package/{esm2020 → esm2022}/lib/shared/models/request-options-model.mjs +10 -10
- package/{esm2020 → esm2022}/lib/shared/models/word-document-model.mjs +7 -7
- package/{esm2020 → esm2022}/lib/shared/services/appearance-configuration.service.mjs +35 -35
- package/esm2022/lib/shared/services/configuration.service.mjs +24 -0
- package/{esm2020 → esm2022}/lib/shared/services/control-validation.service.mjs +173 -173
- package/esm2022/lib/shared/services/environment.service.mjs +75 -0
- package/{esm2020 → esm2022}/lib/shared/services/index.mjs +11 -11
- package/{esm2020 → esm2022}/lib/shared/services/master-layout.service.mjs +72 -72
- package/{esm2020 → esm2022}/lib/shared/services/request-handler.service.mjs +219 -199
- package/{esm2020 → esm2022}/lib/shared/services/styles-bundle.service.mjs +55 -55
- package/{esm2020 → esm2022}/lib/shared/services/translate.service.mjs +14 -14
- package/{esm2020 → esm2022}/lib/shared/services/translation-resolver.service.mjs +6 -6
- package/{esm2020 → esm2022}/lib/shared/services/utility.service.mjs +87 -87
- package/{esm2020 → esm2022}/lib/shared/services/word-document.service.mjs +38 -38
- package/{esm2020 → esm2022}/public-api.mjs +29 -29
- package/{fesm2020 → fesm2022}/bnsights-bbsf-utilities.mjs +3856 -3836
- package/fesm2022/bnsights-bbsf-utilities.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/bbsf-utilities.module.d.ts +10 -10
- package/lib/shared/authentication/auth.service.d.ts +52 -52
- package/lib/shared/authentication/index.d.ts +1 -1
- package/lib/shared/config/environment.d.ts +1 -1
- package/lib/shared/config/word/constants.d.ts +124 -124
- package/lib/shared/config/word/docx-document.d.ts +73 -73
- package/lib/shared/config/word/helpers/index.d.ts +1 -1
- package/lib/shared/config/word/helpers/render-document-file.d.ts +2 -2
- package/lib/shared/config/word/helpers/xml-builder.d.ts +16 -16
- package/lib/shared/config/word/html-to-docx.d.ts +1 -1
- package/lib/shared/config/word/index.d.ts +1 -1
- package/lib/shared/config/word/namespaces.d.ts +36 -36
- package/lib/shared/config/word/schemas/content-types.d.ts +1 -1
- package/lib/shared/config/word/schemas/core.d.ts +1 -1
- package/lib/shared/config/word/schemas/document-rels.d.ts +1 -1
- package/lib/shared/config/word/schemas/document.template.d.ts +4 -4
- package/lib/shared/config/word/schemas/font-table.d.ts +1 -1
- package/lib/shared/config/word/schemas/generic-rels.d.ts +1 -1
- package/lib/shared/config/word/schemas/index.d.ts +12 -12
- package/lib/shared/config/word/schemas/numbering.d.ts +1 -1
- package/lib/shared/config/word/schemas/rels.d.ts +1 -1
- package/lib/shared/config/word/schemas/settings.d.ts +1 -1
- package/lib/shared/config/word/schemas/styles.d.ts +1 -1
- package/lib/shared/config/word/schemas/theme.d.ts +1 -1
- package/lib/shared/config/word/schemas/web-settings.d.ts +1 -1
- package/lib/shared/config/word/utils/color-conversion.d.ts +7 -7
- package/lib/shared/config/word/utils/list.d.ts +6 -6
- package/lib/shared/config/word/utils/unit-conversion.d.ts +29 -29
- package/lib/shared/config/word/utils/url.d.ts +1 -1
- package/lib/shared/config/word/utils/vnode.d.ts +1 -1
- package/lib/shared/config/word/word-work/templates/documentTemplate.d.ts +12 -12
- package/lib/shared/config/word/word-work/templates/index.d.ts +3 -3
- package/lib/shared/config/word/word-work/templates/mhtDocumentTemplate.d.ts +1 -1
- package/lib/shared/config/word/word-work/templates/mhtPartTemplate.d.ts +1 -1
- package/lib/shared/config/word/word-work/utils.d.ts +1 -1
- package/lib/shared/enums/authentication-modes-enums.d.ts +6 -6
- package/lib/shared/index.d.ts +3 -3
- package/lib/shared/models/UserModel.d.ts +6 -6
- package/lib/shared/models/area-model.d.ts +4 -4
- package/lib/shared/models/error-model.d.ts +5 -5
- package/lib/shared/models/index.d.ts +4 -4
- package/lib/shared/models/request-options-model.d.ts +11 -11
- package/lib/shared/models/word-document-model.d.ts +16 -16
- package/lib/shared/services/appearance-configuration.service.d.ts +14 -14
- package/lib/shared/services/configuration.service.d.ts +10 -10
- package/lib/shared/services/control-validation.service.d.ts +23 -23
- package/lib/shared/services/environment.service.d.ts +25 -25
- package/lib/shared/services/index.d.ts +11 -11
- package/lib/shared/services/master-layout.service.d.ts +24 -24
- package/lib/shared/services/request-handler.service.d.ts +35 -33
- package/lib/shared/services/styles-bundle.service.d.ts +12 -12
- package/lib/shared/services/translate.service.d.ts +6 -6
- package/lib/shared/services/translation-resolver.service.d.ts +2 -2
- package/lib/shared/services/utility.service.d.ts +23 -23
- package/lib/shared/services/word-document.service.d.ts +8 -8
- package/package.json +28 -29
- package/public-api.d.ts +17 -17
- package/bnsights-bbsf-utilities-1.0.42.tgz +0 -0
- package/esm2020/lib/shared/authentication/auth.service.mjs +0 -211
- package/esm2020/lib/shared/services/configuration.service.mjs +0 -24
- package/esm2020/lib/shared/services/environment.service.mjs +0 -75
- package/fesm2015/bnsights-bbsf-utilities.mjs +0 -4555
- package/fesm2015/bnsights-bbsf-utilities.mjs.map +0 -1
- 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
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export { applicationName as creator };
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export { applicationName as lastModifiedBy };
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export { defaultFont as font };
|
|
18
|
-
export { defaultFontSize as fontSize };
|
|
19
|
-
export { defaultFontSize as complexScriptFontSize };
|
|
20
|
-
export namespace table {
|
|
21
|
-
namespace row {
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export namespace pageSize {
|
|
26
|
-
export { landscapeHeight as width };
|
|
27
|
-
export { landscapeWidth as height };
|
|
28
|
-
}
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export namespace lineNumberOptions {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
export namespace numbering {
|
|
38
|
-
|
|
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
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
export { header_1 as header };
|
|
60
|
-
|
|
61
|
-
export { footer_1 as footer };
|
|
62
|
-
export
|
|
63
|
-
}
|
|
64
|
-
export namespace portraitMargins {
|
|
65
|
-
|
|
66
|
-
export { top_1 as top };
|
|
67
|
-
|
|
68
|
-
export { right_1 as right };
|
|
69
|
-
|
|
70
|
-
export { bottom_1 as bottom };
|
|
71
|
-
|
|
72
|
-
export { left_1 as left };
|
|
73
|
-
|
|
74
|
-
export { header_2 as header };
|
|
75
|
-
|
|
76
|
-
export { footer_2 as footer };
|
|
77
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
export { top_2 as top };
|
|
95
|
-
export namespace left_2 {
|
|
96
|
-
|
|
97
|
-
export { size_1 as size };
|
|
98
|
-
|
|
99
|
-
export { spacing_1 as spacing };
|
|
100
|
-
|
|
101
|
-
export { color_1 as color };
|
|
102
|
-
}
|
|
103
|
-
export { left_2 as left };
|
|
104
|
-
export namespace bottom_2 {
|
|
105
|
-
|
|
106
|
-
export { size_2 as size };
|
|
107
|
-
|
|
108
|
-
export { spacing_2 as spacing };
|
|
109
|
-
|
|
110
|
-
export { color_2 as color };
|
|
111
|
-
}
|
|
112
|
-
export { bottom_2 as bottom };
|
|
113
|
-
export namespace right_2 {
|
|
114
|
-
|
|
115
|
-
export { size_3 as size };
|
|
116
|
-
|
|
117
|
-
export { spacing_3 as spacing };
|
|
118
|
-
|
|
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
|
|
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>;
|