@bnsights/bbsf-utilities 1.0.69-beta.1 → 1.0.69-beta.19-2
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 +109 -3
- package/fesm2022/bnsights-bbsf-utilities.mjs +346 -3836
- package/fesm2022/bnsights-bbsf-utilities.mjs.map +1 -1
- 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 +15 -0
- package/lib/shared/services/request-handler.service.d.ts +2 -3
- package/lib/shared/services/translation-resolver.service.d.ts +4 -0
- package/package.json +11 -36
- package/public-api.d.ts +0 -2
- package/esm2022/auth/bnsights-bbsf-utilities-auth.mjs +0 -5
- package/esm2022/auth/public-api.mjs +0 -5
- package/esm2022/bnsights-bbsf-utilities.mjs +0 -5
- package/esm2022/http/bnsights-bbsf-utilities-http.mjs +0 -5
- package/esm2022/http/public-api.mjs +0 -8
- 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 -76
- 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 -57
- package/esm2022/translate/bnsights-bbsf-utilities-translate.mjs +0 -5
- package/esm2022/translate/public-api.mjs +0 -7
- package/esm2022/ui/bnsights-bbsf-utilities-ui.mjs +0 -5
- package/esm2022/ui/public-api.mjs +0 -8
- package/esm2022/word/bnsights-bbsf-utilities-word.mjs +0 -5
- package/esm2022/word/public-api.mjs +0 -6
- package/fesm2022/bnsights-bbsf-utilities-word.mjs +0 -10
- package/fesm2022/bnsights-bbsf-utilities-word.mjs.map +0 -1
- 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
- package/word/index.d.ts +0 -5
- package/word/public-api.d.ts +0 -2
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export default namespaces;
|
|
2
|
-
declare namespace namespaces {
|
|
3
|
-
let a: string;
|
|
4
|
-
let b: string;
|
|
5
|
-
let cdr: string;
|
|
6
|
-
let dc: string;
|
|
7
|
-
let dcmitype: string;
|
|
8
|
-
let dcterms: string;
|
|
9
|
-
let o: string;
|
|
10
|
-
let pic: string;
|
|
11
|
-
let r: string;
|
|
12
|
-
let v: string;
|
|
13
|
-
let ve: string;
|
|
14
|
-
let vt: string;
|
|
15
|
-
let w: string;
|
|
16
|
-
let w10: string;
|
|
17
|
-
let wp: string;
|
|
18
|
-
let wne: string;
|
|
19
|
-
let xsd: string;
|
|
20
|
-
let xsi: string;
|
|
21
|
-
let numbering: string;
|
|
22
|
-
let hyperlinks: string;
|
|
23
|
-
let images: string;
|
|
24
|
-
let styles: string;
|
|
25
|
-
let headers: string;
|
|
26
|
-
let footers: string;
|
|
27
|
-
let themes: string;
|
|
28
|
-
let coreProperties: string;
|
|
29
|
-
let officeDocumentRelation: string;
|
|
30
|
-
let corePropertiesRelation: string;
|
|
31
|
-
let settingsRelation: string;
|
|
32
|
-
let webSettingsRelation: string;
|
|
33
|
-
let sl: string;
|
|
34
|
-
let contentTypes: string;
|
|
35
|
-
let relationship: string;
|
|
36
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const contentTypesXML: "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">\n <Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" />\n <Default Extension=\"jpeg\" ContentType=\"image/jpeg\"/>\n <Default Extension=\"png\" ContentType=\"image/png\"/>\n <Default Extension=\"xml\" ContentType=\"application/xml\"/>\n <Override PartName=\"/_rels/.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/_rels/document.xml.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/_rels/footer1.xml.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/document.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\"/>\n <Override PartName=\"/word/styles.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml\"/>\n <Override PartName=\"/word/numbering.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml\"/>\n <Override PartName=\"/word/theme/theme1.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.theme+xml\"/>\n <Override PartName=\"/word/fontTable.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml\"/>\n <Override PartName=\"/docProps/core.xml\" ContentType=\"application/vnd.openxmlformats-package.core-properties+xml\"/>\n <Override PartName=\"/word/settings.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml\"/>\n <Override PartName=\"/word/webSettings.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml\"/>\n <Override PartName=\"/word/afchunk.mht\" ContentType=\"message/rfc822\"/>\n <Override PartName=\"/word/afchunkheader.mht\" ContentType=\"message/rfc822\"/>\n <Override PartName=\"/word/afchunkfooter.mht\" ContentType=\"message/rfc822\"/>\n </Types>\n";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function generateCoreXML(title?: string, subject?: string, creator?: string, keywords?: string[], description?: string, lastModifiedBy?: string, revision?: number, createdAt?: Date, modifiedAt?: Date): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const documentRelsXML: string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export function generateDocumentTemplate(width: any, height: any, orientation: any, margins: any): string;
|
|
2
|
-
export const generateDocumentTemplateHeader: string;
|
|
3
|
-
export const generateDocumentTemplateFooter: string;
|
|
4
|
-
export const generateDocumentTemplateFooterWithoutPaging: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const fontTableXML: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const genericRelsXML: "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\" Target=\"/word/afchunk.mht\" Id=\"htmlChunk\" />\n <Relationship Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\" Target=\"/word/afchunkheader.mht\" Id=\"htmlChunkHeader\" />\n <Relationship Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\" Target=\"/word/afchunkfooter.mht\" Id=\"htmlChunkFooter\" />\n </Relationships>\n";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { contentTypesXML } from "./content-types";
|
|
2
|
-
export { generateCoreXML } from "./core";
|
|
3
|
-
export { documentRelsXML } from "./document-rels";
|
|
4
|
-
export { relsXML } from "./rels";
|
|
5
|
-
export { generateNumberingXMLTemplate } from "./numbering";
|
|
6
|
-
export { generateStylesXML } from "./styles";
|
|
7
|
-
export { fontTableXML } from "./font-table";
|
|
8
|
-
export { generateThemeXML } from "./theme";
|
|
9
|
-
export { settingsXML } from "./settings";
|
|
10
|
-
export { webSettingsXML } from "./web-settings";
|
|
11
|
-
export { genericRelsXML } from "./generic-rels";
|
|
12
|
-
export { generateDocumentTemplate } from "./document.template";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function generateNumberingXMLTemplate(): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const relsXML: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const settingsXML: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function generateStylesXML(font?: string, fontSize?: number, complexScriptFontSize?: number): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function generateThemeXML(font?: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const webSettingsXML: string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export const rgbRegex: RegExp;
|
|
2
|
-
export const hslRegex: RegExp;
|
|
3
|
-
export const hexRegex: RegExp;
|
|
4
|
-
export const hex3Regex: RegExp;
|
|
5
|
-
export function rgbToHex(red: any, green: any, blue: any): string;
|
|
6
|
-
export function hslToHex(hue: any, saturation: any, luminosity: any): string;
|
|
7
|
-
export function hex3ToHex(red: any, green: any, blue: any): string;
|
|
@@ -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
|
-
}
|
package/word/index.d.ts
DELETED
package/word/public-api.d.ts
DELETED