@bnsights/bbsf-utilities 1.0.69-beta.2 → 1.0.69-beta.3

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 (83) hide show
  1. package/esm2022/lib/shared/models/index.mjs +1 -2
  2. package/esm2022/lib/shared/services/index.mjs +1 -2
  3. package/esm2022/public-api.mjs +3 -5
  4. package/fesm2022/bnsights-bbsf-utilities.mjs +1 -64
  5. package/fesm2022/bnsights-bbsf-utilities.mjs.map +1 -1
  6. package/lib/shared/models/index.d.ts +0 -1
  7. package/lib/shared/services/index.d.ts +0 -1
  8. package/package.json +1 -16
  9. package/public-api.d.ts +0 -2
  10. package/esm2022/lib/shared/config/word/constants.mjs +0 -105
  11. package/esm2022/lib/shared/config/word/docx-document.mjs +0 -348
  12. package/esm2022/lib/shared/config/word/helpers/index.mjs +0 -4
  13. package/esm2022/lib/shared/config/word/helpers/render-document-file.mjs +0 -154
  14. package/esm2022/lib/shared/config/word/helpers/xml-builder.mjs +0 -1836
  15. package/esm2022/lib/shared/config/word/html-to-docx.mjs +0 -187
  16. package/esm2022/lib/shared/config/word/index.mjs +0 -50
  17. package/esm2022/lib/shared/config/word/namespaces.mjs +0 -37
  18. package/esm2022/lib/shared/config/word/schemas/content-types.mjs +0 -26
  19. package/esm2022/lib/shared/config/word/schemas/core.mjs +0 -27
  20. package/esm2022/lib/shared/config/word/schemas/document-rels.mjs +0 -16
  21. package/esm2022/lib/shared/config/word/schemas/document.template.mjs +0 -107
  22. package/esm2022/lib/shared/config/word/schemas/font-table.mjs +0 -40
  23. package/esm2022/lib/shared/config/word/schemas/generic-rels.mjs +0 -11
  24. package/esm2022/lib/shared/config/word/schemas/index.mjs +0 -13
  25. package/esm2022/lib/shared/config/word/schemas/numbering.mjs +0 -17
  26. package/esm2022/lib/shared/config/word/schemas/rels.mjs +0 -11
  27. package/esm2022/lib/shared/config/word/schemas/settings.mjs +0 -13
  28. package/esm2022/lib/shared/config/word/schemas/styles.mjs +0 -147
  29. package/esm2022/lib/shared/config/word/schemas/theme.mjs +0 -198
  30. package/esm2022/lib/shared/config/word/schemas/web-settings.mjs +0 -9
  31. package/esm2022/lib/shared/config/word/utils/color-conversion.mjs +0 -60
  32. package/esm2022/lib/shared/config/word/utils/list.mjs +0 -51
  33. package/esm2022/lib/shared/config/word/utils/unit-conversion.mjs +0 -30
  34. package/esm2022/lib/shared/config/word/utils/url.mjs +0 -7
  35. package/esm2022/lib/shared/config/word/utils/vnode.mjs +0 -3
  36. package/esm2022/lib/shared/config/word/word-work/templates/documentTemplate.mjs +0 -54
  37. package/esm2022/lib/shared/config/word/word-work/templates/index.mjs +0 -4
  38. package/esm2022/lib/shared/config/word/word-work/templates/mhtDocumentTemplate.mjs +0 -22
  39. package/esm2022/lib/shared/config/word/word-work/templates/mhtPartTemplate.mjs +0 -10
  40. package/esm2022/lib/shared/config/word/word-work/utils.mjs +0 -26
  41. package/esm2022/lib/shared/models/word-document-model.mjs +0 -8
  42. package/esm2022/lib/shared/services/word-document.service.mjs +0 -57
  43. package/esm2022/word/bnsights-bbsf-utilities-word.mjs +0 -5
  44. package/esm2022/word/public-api.mjs +0 -9
  45. package/fesm2022/bnsights-bbsf-utilities-index-C3Twnewr.mjs +0 -3536
  46. package/fesm2022/bnsights-bbsf-utilities-index-C3Twnewr.mjs.map +0 -1
  47. package/fesm2022/bnsights-bbsf-utilities-word.mjs +0 -13
  48. package/fesm2022/bnsights-bbsf-utilities-word.mjs.map +0 -1
  49. package/lib/shared/config/word/constants.d.ts +0 -124
  50. package/lib/shared/config/word/docx-document.d.ts +0 -73
  51. package/lib/shared/config/word/helpers/index.d.ts +0 -1
  52. package/lib/shared/config/word/helpers/render-document-file.d.ts +0 -2
  53. package/lib/shared/config/word/helpers/xml-builder.d.ts +0 -16
  54. package/lib/shared/config/word/html-to-docx.d.ts +0 -1
  55. package/lib/shared/config/word/index.d.ts +0 -1
  56. package/lib/shared/config/word/namespaces.d.ts +0 -36
  57. package/lib/shared/config/word/schemas/content-types.d.ts +0 -1
  58. package/lib/shared/config/word/schemas/core.d.ts +0 -1
  59. package/lib/shared/config/word/schemas/document-rels.d.ts +0 -1
  60. package/lib/shared/config/word/schemas/document.template.d.ts +0 -4
  61. package/lib/shared/config/word/schemas/font-table.d.ts +0 -1
  62. package/lib/shared/config/word/schemas/generic-rels.d.ts +0 -1
  63. package/lib/shared/config/word/schemas/index.d.ts +0 -12
  64. package/lib/shared/config/word/schemas/numbering.d.ts +0 -1
  65. package/lib/shared/config/word/schemas/rels.d.ts +0 -1
  66. package/lib/shared/config/word/schemas/settings.d.ts +0 -1
  67. package/lib/shared/config/word/schemas/styles.d.ts +0 -1
  68. package/lib/shared/config/word/schemas/theme.d.ts +0 -1
  69. package/lib/shared/config/word/schemas/web-settings.d.ts +0 -1
  70. package/lib/shared/config/word/utils/color-conversion.d.ts +0 -7
  71. package/lib/shared/config/word/utils/list.d.ts +0 -6
  72. package/lib/shared/config/word/utils/unit-conversion.d.ts +0 -29
  73. package/lib/shared/config/word/utils/url.d.ts +0 -1
  74. package/lib/shared/config/word/utils/vnode.d.ts +0 -1
  75. package/lib/shared/config/word/word-work/templates/documentTemplate.d.ts +0 -12
  76. package/lib/shared/config/word/word-work/templates/index.d.ts +0 -3
  77. package/lib/shared/config/word/word-work/templates/mhtDocumentTemplate.d.ts +0 -1
  78. package/lib/shared/config/word/word-work/templates/mhtPartTemplate.d.ts +0 -1
  79. package/lib/shared/config/word/word-work/utils.d.ts +0 -1
  80. package/lib/shared/models/word-document-model.d.ts +0 -16
  81. package/lib/shared/services/word-document.service.d.ts +0 -25
  82. package/word/index.d.ts +0 -5
  83. package/word/public-api.d.ts +0 -2
@@ -1,13 +0,0 @@
1
- export { WordDocumentModel, WordDocumentService } from '@bnsights/bbsf-utilities';
2
-
3
- /*
4
- * Public API Surface of @bnsights/bbsf-utilities/word
5
- *
6
- * IMPORTANT: Use this entry point instead of @bnsights/bbsf-utilities
7
- * to avoid bundling ~8MB of word generation dependencies (xmlbuilder2, jszip, etc.)
8
- */
9
-
10
- /**
11
- * Generated bundle index. Do not edit.
12
- */
13
- //# sourceMappingURL=bnsights-bbsf-utilities-word.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bnsights-bbsf-utilities-word.mjs","sources":["../../../projects/bbsf-utilities/word/public-api.ts","../../../projects/bbsf-utilities/word/bnsights-bbsf-utilities-word.ts"],"sourcesContent":["/*\r\n * Public API Surface of @bnsights/bbsf-utilities/word\r\n * \r\n * IMPORTANT: Use this entry point instead of @bnsights/bbsf-utilities\r\n * to avoid bundling ~8MB of word generation dependencies (xmlbuilder2, jszip, etc.)\r\n */\r\n\r\nexport { WordDocumentService } from '@bnsights/bbsf-utilities';\r\nexport { WordDocumentModel } from '@bnsights/bbsf-utilities';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;;AAKG;;ACLH;;AAEG"}
@@ -1,124 +0,0 @@
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 +0,0 @@
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 +0,0 @@
1
- export { renderDocumentFile, convertVTreeToXML } from "./render-document-file";
@@ -1,2 +0,0 @@
1
- export function convertVTreeToXML(docxDocumentInstance: any, vTree: any, xmlFragment: any): Promise<any>;
2
- export function renderDocumentFile(docxDocumentInstance: any): Promise<any>;
@@ -1,16 +0,0 @@
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 +0,0 @@
1
- export function addFilesToContainer(zip: any, htmlString: any, suppliedDocumentOptions: any, headerHTMLString: any, footerHTMLString: any): Promise<any>;
@@ -1 +0,0 @@
1
- export function generateContainer(htmlString: any, headerHTMLString: any, documentOptions: {}, footerHTMLString: any): Promise<Buffer | Blob>;
@@ -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,6 +0,0 @@
1
- export class ListStyleBuilder {
2
- constructor(defaults: any);
3
- defaults: any;
4
- getListStyleType(listType: any): any;
5
- getListPrefixSuffix(style: any, lvl: any): string;
6
- }
@@ -1,29 +0,0 @@
1
- export const pixelRegex: RegExp;
2
- export const percentageRegex: RegExp;
3
- export const pointRegex: RegExp;
4
- export const cmRegex: RegExp;
5
- export const inchRegex: RegExp;
6
- export function pixelToEMU(pixelValue: any): number;
7
- export function EMUToPixel(EMUValue: any): number;
8
- export function TWIPToEMU(TWIPValue: any): number;
9
- export function EMUToTWIP(EMUValue: any): number;
10
- export function pointToTWIP(pointValue: any): number;
11
- export function TWIPToPoint(TWIPValue: any): number;
12
- export function pointToHIP(pointValue: any): number;
13
- export function HIPToPoint(HIPValue: any): number;
14
- export function HIPToTWIP(HIPValue: any): number;
15
- export function TWIPToHIP(TWIPValue: any): number;
16
- export function pixelToTWIP(pixelValue: any): number;
17
- export function TWIPToPixel(TWIPValue: any): number;
18
- export function pixelToHIP(pixelValue: any): number;
19
- export function HIPToPixel(HIPValue: any): number;
20
- export function inchToPoint(inchValue: any): number;
21
- export function inchToTWIP(inchValue: any): number;
22
- export function cmToInch(cmValue: any): number;
23
- export function cmToTWIP(cmValue: any): number;
24
- export function pixelToPoint(pixelValue: any): number;
25
- export function pointToPixel(pointValue: any): number;
26
- export function EIPToPoint(EIPValue: any): number;
27
- export function pointToEIP(PointValue: any): number;
28
- export function pixelToEIP(pixelValue: any): number;
29
- export function EIPToPixel(EIPValue: any): number;
@@ -1 +0,0 @@
1
- export function isValidUrl(urlString: any): boolean;
@@ -1 +0,0 @@
1
- export function vNodeHasChildren(vNode: any): any;
@@ -1,12 +0,0 @@
1
- export declare const defaultMargins: {
2
- top: number;
3
- right: number;
4
- bottom: number;
5
- left: number;
6
- header: number;
7
- footer: number;
8
- gutter: number;
9
- };
10
- export type Margins = typeof defaultMargins;
11
- export type Orient = 'landscape' | 'portrait';
12
- export declare const documentTemplate: (width: number, height: number, orient: string, margins: Margins) => string;
@@ -1,3 +0,0 @@
1
- export * from './documentTemplate';
2
- export * from './mhtDocumentTemplate';
3
- export * from './mhtPartTemplate';
@@ -1 +0,0 @@
1
- export declare const mhtDocumentTemplate: (htmlSource: string, contentParts: string) => string;
@@ -1 +0,0 @@
1
- export declare const mhtPartTemplate: (contentType: string, contentEncoding: string, contentLocation: string, encodedContent: string) => string;
@@ -1 +0,0 @@
1
- export declare function getMHTdocument(htmlSource: string): string;
@@ -1,16 +0,0 @@
1
- export declare class WordDocumentModel {
2
- header: string;
3
- footer: string;
4
- body: string;
5
- options: DocumentOptionsModel;
6
- }
7
- export declare class DocumentOptionsModel {
8
- pageHeight: number;
9
- pageWidth: number;
10
- top: number;
11
- bottom: number;
12
- left: number;
13
- right: number;
14
- isLandscape: boolean;
15
- showPaging: boolean;
16
- }
@@ -1,25 +0,0 @@
1
- /// <reference types="node" />
2
- import { WordDocumentModel } from '../models';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Word Document Service
6
- *
7
- * Uses dynamic imports to avoid bundling word generation dependencies (~8 MB)
8
- * unless the service is actually used.
9
- *
10
- * Dependencies (loaded on-demand):
11
- * - xmlbuilder2
12
- * - jszip
13
- * - html-to-vdom
14
- * - virtual-dom
15
- * - image-size
16
- * - image-to-base64
17
- * - color-name
18
- * - escape-html
19
- * - mime-types
20
- */
21
- export declare class WordDocumentService {
22
- generateWordByteFile(model: WordDocumentModel): Promise<Buffer | Blob>;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<WordDocumentService, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<WordDocumentService>;
25
- }
package/word/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bnsights/bbsf-utilities/word" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export { WordDocumentService } from '@bnsights/bbsf-utilities';
2
- export { WordDocumentModel } from '@bnsights/bbsf-utilities';