@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.
- package/README.md +167 -2
- package/auth/index.d.ts +5 -0
- package/auth/public-api.d.ts +1 -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.mjs +369 -3842
- 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/bbsf-utilities.module.d.ts +22 -2
- package/lib/shared/authentication/auth.service.d.ts +0 -1
- package/lib/shared/models/index.d.ts +0 -1
- package/lib/shared/services/index.d.ts +0 -1
- package/lib/shared/services/language.service.d.ts +12 -0
- package/lib/shared/services/request-handler.service.d.ts +2 -3
- package/lib/shared/services/styles-bundle.service.d.ts +7 -1
- package/package.json +32 -25
- package/public-api.d.ts +14 -12
- 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/esm2022/bnsights-bbsf-utilities.mjs +0 -5
- package/esm2022/lib/bbsf-utilities.module.mjs +0 -63
- package/esm2022/lib/shared/authentication/auth.service.mjs +0 -260
- package/esm2022/lib/shared/authentication/index.mjs +0 -2
- package/esm2022/lib/shared/config/environment.mjs +0 -12
- package/esm2022/lib/shared/config/word/constants.mjs +0 -105
- package/esm2022/lib/shared/config/word/docx-document.mjs +0 -348
- package/esm2022/lib/shared/config/word/helpers/index.mjs +0 -4
- package/esm2022/lib/shared/config/word/helpers/render-document-file.mjs +0 -154
- package/esm2022/lib/shared/config/word/helpers/xml-builder.mjs +0 -1836
- package/esm2022/lib/shared/config/word/html-to-docx.mjs +0 -187
- package/esm2022/lib/shared/config/word/index.mjs +0 -50
- package/esm2022/lib/shared/config/word/namespaces.mjs +0 -37
- package/esm2022/lib/shared/config/word/schemas/content-types.mjs +0 -26
- package/esm2022/lib/shared/config/word/schemas/core.mjs +0 -27
- package/esm2022/lib/shared/config/word/schemas/document-rels.mjs +0 -16
- package/esm2022/lib/shared/config/word/schemas/document.template.mjs +0 -107
- package/esm2022/lib/shared/config/word/schemas/font-table.mjs +0 -40
- package/esm2022/lib/shared/config/word/schemas/generic-rels.mjs +0 -11
- package/esm2022/lib/shared/config/word/schemas/index.mjs +0 -13
- package/esm2022/lib/shared/config/word/schemas/numbering.mjs +0 -17
- package/esm2022/lib/shared/config/word/schemas/rels.mjs +0 -11
- package/esm2022/lib/shared/config/word/schemas/settings.mjs +0 -13
- package/esm2022/lib/shared/config/word/schemas/styles.mjs +0 -147
- package/esm2022/lib/shared/config/word/schemas/theme.mjs +0 -198
- package/esm2022/lib/shared/config/word/schemas/web-settings.mjs +0 -9
- package/esm2022/lib/shared/config/word/utils/color-conversion.mjs +0 -60
- package/esm2022/lib/shared/config/word/utils/list.mjs +0 -51
- package/esm2022/lib/shared/config/word/utils/unit-conversion.mjs +0 -30
- package/esm2022/lib/shared/config/word/utils/url.mjs +0 -7
- package/esm2022/lib/shared/config/word/utils/vnode.mjs +0 -3
- package/esm2022/lib/shared/config/word/word-work/templates/documentTemplate.mjs +0 -54
- package/esm2022/lib/shared/config/word/word-work/templates/index.mjs +0 -4
- package/esm2022/lib/shared/config/word/word-work/templates/mhtDocumentTemplate.mjs +0 -22
- package/esm2022/lib/shared/config/word/word-work/templates/mhtPartTemplate.mjs +0 -10
- package/esm2022/lib/shared/config/word/word-work/utils.mjs +0 -26
- package/esm2022/lib/shared/enums/authentication-modes-enums.mjs +0 -8
- package/esm2022/lib/shared/index.mjs +0 -4
- package/esm2022/lib/shared/models/UserModel.mjs +0 -3
- package/esm2022/lib/shared/models/area-model.mjs +0 -3
- package/esm2022/lib/shared/models/error-model.mjs +0 -3
- package/esm2022/lib/shared/models/index.mjs +0 -6
- package/esm2022/lib/shared/models/request-options-model.mjs +0 -11
- package/esm2022/lib/shared/models/speech-language.mjs +0 -3
- package/esm2022/lib/shared/models/word-document-model.mjs +0 -8
- package/esm2022/lib/shared/services/appearance-configuration.service.mjs +0 -35
- package/esm2022/lib/shared/services/configuration.service.mjs +0 -48
- package/esm2022/lib/shared/services/control-validation.service.mjs +0 -173
- package/esm2022/lib/shared/services/environment.service.mjs +0 -83
- package/esm2022/lib/shared/services/index.mjs +0 -15
- package/esm2022/lib/shared/services/language.service.mjs +0 -21
- package/esm2022/lib/shared/services/master-layout.service.mjs +0 -77
- package/esm2022/lib/shared/services/preload.service.mjs +0 -54
- package/esm2022/lib/shared/services/request-handler.service.mjs +0 -260
- package/esm2022/lib/shared/services/speech-recognition.service.mjs +0 -76
- package/esm2022/lib/shared/services/styles-bundle.service.mjs +0 -55
- package/esm2022/lib/shared/services/translate.service.mjs +0 -14
- package/esm2022/lib/shared/services/translation-resolver.service.mjs +0 -7
- package/esm2022/lib/shared/services/utility.service.mjs +0 -87
- package/esm2022/lib/shared/services/word-document.service.mjs +0 -38
- package/esm2022/public-api.mjs +0 -34
- package/lib/shared/config/word/constants.d.ts +0 -124
- package/lib/shared/config/word/docx-document.d.ts +0 -73
- package/lib/shared/config/word/helpers/index.d.ts +0 -1
- package/lib/shared/config/word/helpers/render-document-file.d.ts +0 -2
- package/lib/shared/config/word/helpers/xml-builder.d.ts +0 -16
- package/lib/shared/config/word/html-to-docx.d.ts +0 -1
- package/lib/shared/config/word/index.d.ts +0 -1
- package/lib/shared/config/word/namespaces.d.ts +0 -36
- package/lib/shared/config/word/schemas/content-types.d.ts +0 -1
- package/lib/shared/config/word/schemas/core.d.ts +0 -1
- package/lib/shared/config/word/schemas/document-rels.d.ts +0 -1
- package/lib/shared/config/word/schemas/document.template.d.ts +0 -4
- package/lib/shared/config/word/schemas/font-table.d.ts +0 -1
- package/lib/shared/config/word/schemas/generic-rels.d.ts +0 -1
- package/lib/shared/config/word/schemas/index.d.ts +0 -12
- package/lib/shared/config/word/schemas/numbering.d.ts +0 -1
- package/lib/shared/config/word/schemas/rels.d.ts +0 -1
- package/lib/shared/config/word/schemas/settings.d.ts +0 -1
- package/lib/shared/config/word/schemas/styles.d.ts +0 -1
- package/lib/shared/config/word/schemas/theme.d.ts +0 -1
- package/lib/shared/config/word/schemas/web-settings.d.ts +0 -1
- package/lib/shared/config/word/utils/color-conversion.d.ts +0 -7
- package/lib/shared/config/word/utils/list.d.ts +0 -6
- package/lib/shared/config/word/utils/unit-conversion.d.ts +0 -29
- package/lib/shared/config/word/utils/url.d.ts +0 -1
- package/lib/shared/config/word/utils/vnode.d.ts +0 -1
- package/lib/shared/config/word/word-work/templates/documentTemplate.d.ts +0 -12
- package/lib/shared/config/word/word-work/templates/index.d.ts +0 -3
- package/lib/shared/config/word/word-work/templates/mhtDocumentTemplate.d.ts +0 -1
- package/lib/shared/config/word/word-work/templates/mhtPartTemplate.d.ts +0 -1
- package/lib/shared/config/word/word-work/utils.d.ts +0 -1
- package/lib/shared/models/word-document-model.d.ts +0 -16
- 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 +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
|
-
}
|