abstract-document 6.12.3 → 6.12.4
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/lib/abstract-document/atoms/image.d.ts.map +1 -1
- package/lib/abstract-document/atoms/image.js.map +1 -1
- package/lib/abstract-document/atoms/text-field.d.ts.map +1 -1
- package/lib/abstract-document/atoms/text-field.js +1 -8
- package/lib/abstract-document/atoms/text-field.js.map +1 -1
- package/lib/abstract-document/primitives/image-resource.d.ts.map +1 -1
- package/lib/abstract-document/primitives/image-resource.js +1 -5
- package/lib/abstract-document/primitives/image-resource.js.map +1 -1
- package/lib/abstract-document-xml/abstract-doc-of-xml/creator.d.ts.map +1 -1
- package/lib/abstract-document-xml/abstract-doc-of-xml/creator.js +29 -27
- package/lib/abstract-document-xml/abstract-doc-of-xml/creator.js.map +1 -1
- package/lib/abstract-document-xml/abstract-doc-of-xml/custom-elements.d.ts.map +1 -1
- package/lib/abstract-document-xml/abstract-doc-of-xml/custom-elements.js +10 -4
- package/lib/abstract-document-xml/abstract-doc-of-xml/custom-elements.js.map +1 -1
- package/lib/abstract-document-xml/xsd-template/custom-elements.d.ts +6 -6
- package/lib/abstract-document-xml/xsd-template/custom-elements.d.ts.map +1 -1
- package/lib/abstract-document-xml/xsd-template/custom-elements.js +36 -6
- package/lib/abstract-document-xml/xsd-template/custom-elements.js.map +1 -1
- package/package.json +2 -2
- package/src/abstract-document/atoms/image.ts +1 -4
- package/src/abstract-document/atoms/text-field.ts +2 -14
- package/src/abstract-document/primitives/image-resource.ts +2 -10
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Group.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Header and footer.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Header → footer.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed hyperlink and textrun.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed hyperlink → textrun.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed textrun and images.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed textrun → images.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple images.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple tables.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Center alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with End alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment that linebreaks.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Page numbering.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table colSpan and rowSpan.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table colSpan → rowSpan.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table without rows.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single hyperlink.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single image.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment that linebreaks.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment that linebreaks.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment that linebreaks.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/hello with Arial font.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/hello.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/letter-dimensions.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/page-orientation-landscape.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/page-orientation-portrait.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/tocSeparator.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/world.docx +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position group.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position header and footer.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position paragraph.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position section in group.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position section in table.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position table.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Paragraphs.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Tables.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Group no keeptogether.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Group too big for one page.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Header and footer.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal linktarget.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Manual line break.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Manual line breaks empty lines.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Margins header body footer.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun no underline.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun with underline.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed textrun and images.pdf and b/package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed textrun → images.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images overflow.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Center alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with End alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment that linebreaks.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Page numbering.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table row that doesnt fit page.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table single row.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with group.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header 2.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin bottom.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top single table.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan multipages.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all auto.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all fix.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table background.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of image.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of text.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table center alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table colSpan and rowSpan.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table minimal row height.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table mix auto fix.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table padding.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table right alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table row alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell with wrapping.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with default colored borders.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with header.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with multi colored borders.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with single colored borders.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single date.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single figure.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink centered.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink no underline.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink right aligned.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image from URL.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color hex.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color name.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color url.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg dasharray.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline alphabetic.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline bottom.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline hanging.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline middle.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline top.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment that linebreaks.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment that linebreaks.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Justify alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment that linebreaks.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with super and subscripts.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Table of content separator.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/hello with roman font.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/hello.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/pagebreak.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/world.pdf +2 -2
- package/src/abstract-document-xml/abstract-doc-of-xml/creator.ts +30 -25
- package/src/abstract-document-xml/abstract-doc-of-xml/custom-elements.tsx +11 -9
- package/src/abstract-document-xml/xsd-template/custom-elements.ts +36 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/atoms/image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/atoms/image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,CAE/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/abstract-document/atoms/image.ts"],"names":[],"mappings":";;;AAeA,SAAgB,MAAM,CAAC,KAAiB;IACtC,
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/abstract-document/atoms/image.ts"],"names":[],"mappings":";;;AAeA,SAAgB,MAAM,CAAC,KAAiB;IACtC,uBAAS,IAAI,EAAE,OAAO,IAAK,KAAK,EAAG;AACrC,CAAC;AAFD,wBAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/atoms/text-field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAElD,oBAAY,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,cAAc,CAAC;AAE9E,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC;IACpC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0;
|
|
|
23
23
|
const TextStyle = __importStar(require("../styles/text-style"));
|
|
24
24
|
function create(props) {
|
|
25
25
|
const { styleName = "", fieldType, style = TextStyle.create(), target = "" } = props;
|
|
26
|
-
return {
|
|
27
|
-
type: "TextField",
|
|
28
|
-
styleName,
|
|
29
|
-
fieldType,
|
|
30
|
-
style,
|
|
31
|
-
target,
|
|
32
|
-
text: ""
|
|
33
|
-
};
|
|
26
|
+
return { type: "TextField", styleName, fieldType, style, target, text: "" };
|
|
34
27
|
}
|
|
35
28
|
exports.create = create;
|
|
36
29
|
//# sourceMappingURL=text-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../../src/abstract-document/atoms/text-field.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAkD;AAoBlD,SAAgB,MAAM,CAAC,KAAqB;IAC1C,MAAM,
|
|
1
|
+
{"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../../src/abstract-document/atoms/text-field.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAkD;AAoBlD,SAAgB,MAAM,CAAC,KAAqB;IAC1C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,SAAS,EAAE,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IACrF,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AAC9E,CAAC;AAHD,wBAGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-resource.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/primitives/image-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,oBAAY,IAAI,GAAG,MAAM,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"image-resource.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/primitives/image-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,oBAAY,IAAI,GAAG,MAAM,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,MAAM,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,WAAiB,EAAE,EAAE,kBAAkB,GAAG,aAAa,CAElG"}
|
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.create = void 0;
|
|
4
4
|
function create({ id, abstractImage, renderScale = 1.0 }) {
|
|
5
|
-
return {
|
|
6
|
-
id,
|
|
7
|
-
abstractImage,
|
|
8
|
-
renderScale
|
|
9
|
-
};
|
|
5
|
+
return { id, abstractImage, renderScale };
|
|
10
6
|
}
|
|
11
7
|
exports.create = create;
|
|
12
8
|
//# sourceMappingURL=image-resource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-resource.js","sourceRoot":"","sources":["../../../src/abstract-document/primitives/image-resource.ts"],"names":[],"mappings":";;;AAgBA,SAAgB,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"image-resource.js","sourceRoot":"","sources":["../../../src/abstract-document/primitives/image-resource.ts"],"names":[],"mappings":";;;AAgBA,SAAgB,MAAM,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,WAAW,GAAG,GAAG,EAAsB;IACjF,OAAO,EAAE,EAAE,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC;AAC5C,CAAC;AAFD,wBAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creator.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/creator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"creator.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/creator.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,IAAI,EAcJ,KAAK,EACL,aAAa,IAAI,eAAe,EAChC,SAAS,EACV,MAAM,+BAA+B,CAAC;AAgBvC,oBAAY,WAAW,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC;AAE1G,oBAAY,aAAa,GAAG,eAAe,CAAC,aAAa,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAElH,oBAAY,YAAY,GAAG;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,CACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EACrC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC/B,MAAM,CAAC,MAAM,EAAE,WAAW,CA6B9B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CA4KrD,CAAC"}
|
|
@@ -11,41 +11,20 @@ const creators = (images, fonts, styleNames) => {
|
|
|
11
11
|
}
|
|
12
12
|
return index_1.AbstractDoc.create(props, children);
|
|
13
13
|
},
|
|
14
|
-
Paragraph: (props, children) => index_1.Paragraph.create(props, children),
|
|
15
14
|
Section: (props, children) => index_1.Section.create(props, children),
|
|
16
|
-
|
|
15
|
+
Paragraph: (props, children) => index_1.Paragraph.create(props, children),
|
|
17
16
|
TextRow: (props) => (0, custom_elements_1.TextRow)(props, styleNames),
|
|
18
17
|
TextCell: (props) => (0, custom_elements_1.TextCell)(props, styleNames),
|
|
19
18
|
TextParagraph: (props) => (0, custom_elements_1.TextParagraph)(props, styleNames),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
TextRun: (props) => index_1.TextRun.create(props),
|
|
20
|
+
ImageRow: (props) => (0, custom_elements_1.ImageRow)(imageProps(images, props), styleNames),
|
|
21
|
+
ImageCell: (props) => (0, custom_elements_1.ImageCell)(imageProps(images, props), styleNames),
|
|
22
|
+
ImageParagraph: (props) => (0, custom_elements_1.ImageParagraph)(imageProps(images, props), styleNames),
|
|
23
|
+
Image: (props) => index_1.Image.create(imageProps(images, props)),
|
|
23
24
|
Table: (props, children) => index_1.Table.create(props, children),
|
|
24
25
|
TableRow: (props, children) => index_1.TableRow.create(props, children),
|
|
25
26
|
TableCell: (props, children) => index_1.TableCell.create(props, children),
|
|
26
27
|
TextField: (props) => index_1.TextField.create(props),
|
|
27
|
-
Image: (props) => {
|
|
28
|
-
var _a;
|
|
29
|
-
const image = images[(_a = props.src) !== null && _a !== void 0 ? _a : ""];
|
|
30
|
-
if (image) {
|
|
31
|
-
if (image.width && image.height) {
|
|
32
|
-
props.width = image.width;
|
|
33
|
-
props.height = image.height;
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
const scaleX = props.width / image.abstractImage.size.width;
|
|
37
|
-
const scaleY = props.height / image.abstractImage.size.height;
|
|
38
|
-
if (scaleX < scaleY) {
|
|
39
|
-
props.height = props.height * (scaleX / scaleY);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
props.width = props.width * (scaleY / scaleX);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
props.imageResource = images[props.src];
|
|
46
|
-
}
|
|
47
|
-
return index_1.Image.create(props);
|
|
48
|
-
},
|
|
49
28
|
Group: (props, children) => index_1.Group.create(props, children),
|
|
50
29
|
PageBreak: () => index_1.PageBreak.create(),
|
|
51
30
|
Markdown: (props) => index_1.Markdown.create(props),
|
|
@@ -217,4 +196,27 @@ exports.propsCreators = {
|
|
|
217
196
|
return borderColors;
|
|
218
197
|
},
|
|
219
198
|
};
|
|
199
|
+
function imageProps(images, props) {
|
|
200
|
+
var _a;
|
|
201
|
+
const newProps = Object.assign(Object.assign({}, props), { width: props.width, height: props.height, imageResource: props.src });
|
|
202
|
+
const image = images[(_a = props.src) !== null && _a !== void 0 ? _a : ""];
|
|
203
|
+
if (image) {
|
|
204
|
+
if (image.width && image.height) {
|
|
205
|
+
newProps.width = image.width;
|
|
206
|
+
newProps.height = image.height;
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
const scaleX = props.width / image.abstractImage.size.width;
|
|
210
|
+
const scaleY = props.height / image.abstractImage.size.height;
|
|
211
|
+
if (scaleX < scaleY) {
|
|
212
|
+
newProps.height = props.height * (scaleX / scaleY);
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
newProps.width = props.width * (scaleY / scaleX);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
newProps.imageResource = props.src;
|
|
219
|
+
}
|
|
220
|
+
return newProps;
|
|
221
|
+
}
|
|
220
222
|
//# sourceMappingURL=creator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creator.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/creator.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"creator.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/creator.ts"],"names":[],"mappings":";;;AAEA,yDAqBuC;AACvC,uDAa2B;AAYpB,MAAM,QAAQ,GAIc,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;IAC/D,OAAO;QACL,WAAW,EAAE,CAAC,KAAK,EAAE,QAAwC,EAAE,EAAE;YAC/D,IAAI,KAAK,EAAE;gBACT,KAAK,CAAC,KAAK,GAAG,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,SAAS,CAAC;aAClC;YACD,OAAO,mBAAW,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,EAAE,CAAC,KAAK,EAAE,QAAsD,EAAE,EAAE,CAAC,eAAO,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC;QAC3G,SAAS,EAAE,CAAC,KAAK,EAAE,QAAkC,EAAE,EAAE,CAAC,iBAAS,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC;QAC3F,OAAO,EAAE,CAAC,KAAmB,EAAE,EAAE,CAAC,IAAA,yBAAO,EAAC,KAAK,EAAE,UAAU,CAAC;QAC5D,QAAQ,EAAE,CAAC,KAAoB,EAAE,EAAE,CAAC,IAAA,0BAAQ,EAAC,KAAK,EAAE,UAAU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AC,SAAS,GAAG,SAAS,CAQjC"}
|
|
@@ -49,16 +49,22 @@ function ImageCell(props, styleNameTypes) {
|
|
|
49
49
|
const { image, width, height, paragraphStyle, cellStyle, columnSpan, rowSpan } = props;
|
|
50
50
|
const styleNames = extractStyleNames(props.styleNames, styleNameTypes);
|
|
51
51
|
const imageElement = image && index_1.Image.create({ imageResource: image, width, height });
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const pararaphProps = { style: paragraphStyle, styleName: styleNames.ParagraphStyle };
|
|
53
|
+
const paragraph = imageElement
|
|
54
|
+
? index_1.Paragraph.create(pararaphProps, [imageElement])
|
|
55
|
+
: index_1.Paragraph.create(pararaphProps, [ImageMissing]);
|
|
56
|
+
return index_1.TableCell.create({ columnSpan, rowSpan, style: cellStyle, styleName: styleNames.TableCellStyle }, [paragraph]);
|
|
54
57
|
}
|
|
55
58
|
exports.ImageCell = ImageCell;
|
|
56
59
|
function ImageParagraph(props, styleNameTypes) {
|
|
57
60
|
const { image, width, height, paragraphStyle } = props;
|
|
58
61
|
const styleNames = extractStyleNames(props.styleNames, styleNameTypes);
|
|
59
62
|
const imageElement = image && index_1.Image.create({ imageResource: image, width, height });
|
|
60
|
-
const
|
|
61
|
-
return
|
|
63
|
+
const pararaphProps = { style: paragraphStyle, styleName: styleNames.ParagraphStyle };
|
|
64
|
+
return imageElement
|
|
65
|
+
? index_1.Paragraph.create(pararaphProps, [imageElement])
|
|
66
|
+
: index_1.Paragraph.create(pararaphProps, [ImageMissing]);
|
|
62
67
|
}
|
|
63
68
|
exports.ImageParagraph = ImageParagraph;
|
|
69
|
+
const ImageMissing = index_1.TextRun.create({ text: "Image missing" });
|
|
64
70
|
//# sourceMappingURL=custom-elements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-elements.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/custom-elements.tsx"],"names":[],"mappings":";;;AAAA,yDAUuC;AAUvC,MAAM,cAA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,EAAE,cAAc,CAAC,CAAC;IACvE,MAAM,YAAY,GAAG,KAAK,IAAI,aAAK,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACpF,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"custom-elements.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/custom-elements.tsx"],"names":[],"mappings":";;;AAAA,yDAUuC;AAUvC,MAAM,cAAc,GAA4B;IAC9C,cAAc,EAAE,IAAI;IACpB,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;CACjB,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAA8B,EAC9B,cAAsC;IAEtC,MAAM,KAAK,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE5C,IAAI,cAAc,GAAG,EAAE,CAAC;IAExB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5B,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,IAAI,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE;YAChC,cAAc,mCAAQ,cAAc,KAAE,CAAC,IAAI,CAAC,EAAE,OAAO,GAAE,CAAC;SACzD;KACF;IACD,OAAO,cAAc,CAAC;AACxB,CAAC;AAhBD,8CAgBC;AAID,SAAgB,OAAO,CAAC,KAAmB,EAAE,cAAsC;IACjF,OAAO,gBAAQ,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAFD,0BAEC;AASD,SAAgB,QAAQ,CAAC,KAAoB,EAAE,cAAsC;IACnF,MAAM,EAAE,IAAI,EAAE,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E,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACpF,MAAM,aAAa,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,CAAC;IACtF,OAAO,YAAY;QACjB,CAAC,CAAC,iBAAS,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,YAAY,CAAC,CAAC;QACjD,CAAC,CAAC,iBAAS,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;AACtD,CAAC;AAXD,wCAWC;AAED,MAAM,YAAY,GAAG,eAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare const textRow = "<xs:complexType name=\"TextRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
|
|
1
|
+
export declare const textRow = "<xs:complexType name=\"TextRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
|
|
2
2
|
export declare const textRowElement = "<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />";
|
|
3
|
-
export declare const textCell = "<xs:complexType name=\"TextCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
|
|
3
|
+
export declare const textCell = "<xs:complexType name=\"TextCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
|
|
4
4
|
export declare const textCellElement = "<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />";
|
|
5
|
-
export declare const textParagraph = "<xs:complexType name=\"TextParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
|
|
5
|
+
export declare const textParagraph = "<xs:complexType name=\"TextParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
|
|
6
6
|
export declare const textParagraphElement = "<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />";
|
|
7
|
-
export declare const imageRow = "<xs:complexType name=\"ImageRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<Image src text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\"
|
|
7
|
+
export declare const imageRow = "<xs:complexType name=\"ImageRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<Image src text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>";
|
|
8
8
|
export declare const imageRowElement = "<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />";
|
|
9
|
-
export declare const imageCell = "<xs:complexType name=\"ImageCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<ImageCell> \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\"
|
|
9
|
+
export declare const imageCell = "<xs:complexType name=\"ImageCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<ImageCell> \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>";
|
|
10
10
|
export declare const imageCellElement = "<xs:element name=\"ImageCell\" type=\"ImageCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />";
|
|
11
|
-
export declare const imageParagraph = "<xs:complexType name=\"ImageParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\"
|
|
11
|
+
export declare const imageParagraph = "<xs:complexType name=\"ImageParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>";
|
|
12
12
|
export declare const imageParagraphElement = "<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />";
|
|
13
13
|
//# sourceMappingURL=custom-elements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-elements.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/custom-elements.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"custom-elements.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/custom-elements.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,+pCAsBF,CAAC;AACnB,eAAO,MAAM,cAAc,6EAAuE,CAAC;AAEnG,eAAO,MAAM,QAAQ,qoCAsBH,CAAC;AACnB,eAAO,MAAM,eAAe,+FAAuF,CAAC;AAEpH,eAAO,MAAM,aAAa,43BAiBR,CAAC;AACnB,eAAO,MAAM,oBAAoB,yFAAmF,CAAC;AAErH,eAAO,MAAM,QAAQ,q3BAgBH,CAAC;AACnB,eAAO,MAAM,eAAe,+EAAyE,CAAC;AAEtG,eAAO,MAAM,SAAS,s1BAgBJ,CAAC;AACnB,eAAO,MAAM,gBAAgB,iGAAyF,CAAC;AAEvH,eAAO,MAAM,cAAc,2kBAWT,CAAC;AACnB,eAAO,MAAM,qBAAqB,2FAAqF,CAAC"}
|
|
@@ -6,6 +6,12 @@ exports.textRow = `<xs:complexType name="TextRow">
|
|
|
6
6
|
<xs:annotation>
|
|
7
7
|
<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<TextRun text="..." /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>
|
|
8
8
|
</xs:annotation>
|
|
9
|
+
<xs:choice minOccurs="0" maxOccurs="1">
|
|
10
|
+
<xs:element name="cellStyle" type="TableCellStyle" />
|
|
11
|
+
</xs:choice>
|
|
12
|
+
<xs:choice minOccurs="0" maxOccurs="1">
|
|
13
|
+
<xs:element name="paragraphStyle" type="ParagraphStyle" />
|
|
14
|
+
</xs:choice>
|
|
9
15
|
<xs:choice minOccurs="0" maxOccurs="1">
|
|
10
16
|
<xs:element name="style" type="TextStyle" />
|
|
11
17
|
</xs:choice>
|
|
@@ -24,6 +30,12 @@ exports.textCell = `<xs:complexType name="TextCell">
|
|
|
24
30
|
<xs:annotation>
|
|
25
31
|
<xs:documentation>Shortcut to create a \\<TableCell> \\<Paragraph> \\<TextRun text="..." /> \\</Paragraph> \\</TableCell></xs:documentation>
|
|
26
32
|
</xs:annotation>
|
|
33
|
+
<xs:choice minOccurs="0" maxOccurs="1">
|
|
34
|
+
<xs:element name="cellStyle" type="TableCellStyle" />
|
|
35
|
+
</xs:choice>
|
|
36
|
+
<xs:choice minOccurs="0" maxOccurs="1">
|
|
37
|
+
<xs:element name="paragraphStyle" type="ParagraphStyle" />
|
|
38
|
+
</xs:choice>
|
|
27
39
|
<xs:choice minOccurs="0" maxOccurs="1">
|
|
28
40
|
<xs:element name="style" type="TextStyle" />
|
|
29
41
|
</xs:choice>
|
|
@@ -42,6 +54,9 @@ exports.textParagraph = `<xs:complexType name="TextParagraph">
|
|
|
42
54
|
<xs:annotation>
|
|
43
55
|
<xs:documentation>Shortcut to create \\<Paragraph> \\<TextRun text="..." /> \\</Paragraph></xs:documentation>
|
|
44
56
|
</xs:annotation>
|
|
57
|
+
<xs:choice minOccurs="0" maxOccurs="1">
|
|
58
|
+
<xs:element name="paragraphStyle" type="ParagraphStyle" />
|
|
59
|
+
</xs:choice>
|
|
45
60
|
<xs:choice minOccurs="0" maxOccurs="1">
|
|
46
61
|
<xs:element name="style" type="TextStyle" />
|
|
47
62
|
</xs:choice>
|
|
@@ -62,8 +77,14 @@ exports.imageRow = `<xs:complexType name="ImageRow">
|
|
|
62
77
|
<xs:attribute name="columnSpan" type="xs:string" />
|
|
63
78
|
<xs:attribute name="rowSpan" type="xs:string" />
|
|
64
79
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
65
|
-
<xs:attribute name="width" type="xs:decimal"
|
|
66
|
-
<xs:attribute name="height" type="xs:decimal"
|
|
80
|
+
<xs:attribute name="width" type="xs:decimal" />
|
|
81
|
+
<xs:attribute name="height" type="xs:decimal" />
|
|
82
|
+
<xs:choice minOccurs="0" maxOccurs="1">
|
|
83
|
+
<xs:element name="cellStyle" type="TableCellStyle" />
|
|
84
|
+
</xs:choice>
|
|
85
|
+
<xs:choice minOccurs="0" maxOccurs="1">
|
|
86
|
+
<xs:element name="paragraphStyle" type="ParagraphStyle" />
|
|
87
|
+
</xs:choice>
|
|
67
88
|
</xs:complexType>`;
|
|
68
89
|
exports.imageRowElement = `<xs:element name="ImageRow" type="ImageRow" maxOccurs="unbounded" />`;
|
|
69
90
|
exports.imageCell = `<xs:complexType name="ImageCell">
|
|
@@ -74,8 +95,14 @@ exports.imageCell = `<xs:complexType name="ImageCell">
|
|
|
74
95
|
<xs:attribute name="columnSpan" type="xs:string" />
|
|
75
96
|
<xs:attribute name="rowSpan" type="xs:string" />
|
|
76
97
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
77
|
-
<xs:attribute name="width" type="xs:decimal"
|
|
78
|
-
<xs:attribute name="height" type="xs:decimal"
|
|
98
|
+
<xs:attribute name="width" type="xs:decimal" />
|
|
99
|
+
<xs:attribute name="height" type="xs:decimal" />
|
|
100
|
+
<xs:choice minOccurs="0" maxOccurs="1">
|
|
101
|
+
<xs:element name="cellStyle" type="TableCellStyle" />
|
|
102
|
+
</xs:choice>
|
|
103
|
+
<xs:choice minOccurs="0" maxOccurs="1">
|
|
104
|
+
<xs:element name="paragraphStyle" type="ParagraphStyle" />
|
|
105
|
+
</xs:choice>
|
|
79
106
|
</xs:complexType>`;
|
|
80
107
|
exports.imageCellElement = `<xs:element name="ImageCell" type="ImageCell" minOccurs="0" maxOccurs="unbounded" />`;
|
|
81
108
|
exports.imageParagraph = `<xs:complexType name="ImageParagraph">
|
|
@@ -84,8 +111,11 @@ exports.imageParagraph = `<xs:complexType name="ImageParagraph">
|
|
|
84
111
|
</xs:annotation>
|
|
85
112
|
<xs:attribute name="styleNames" type="xs:string" />
|
|
86
113
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
87
|
-
<xs:attribute name="width" type="xs:decimal"
|
|
88
|
-
<xs:attribute name="height" type="xs:decimal"
|
|
114
|
+
<xs:attribute name="width" type="xs:decimal" />
|
|
115
|
+
<xs:attribute name="height" type="xs:decimal" />
|
|
116
|
+
<xs:choice minOccurs="0" maxOccurs="1">
|
|
117
|
+
<xs:element name="paragraphStyle" type="ParagraphStyle" />
|
|
118
|
+
</xs:choice>
|
|
89
119
|
</xs:complexType>`;
|
|
90
120
|
exports.imageParagraphElement = `<xs:element name="ImageParagraph" type="ImageParagraph" maxOccurs="unbounded" />`;
|
|
91
121
|
//# sourceMappingURL=custom-elements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-elements.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/custom-elements.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AACzB,QAAA,OAAO,GAAG
|
|
1
|
+
{"version":3,"file":"custom-elements.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/custom-elements.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AACzB,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;kBAsBL,CAAC;AACN,QAAA,cAAc,GAAG,oEAAoE,CAAC;AAEtF,QAAA,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;kBAsBN,CAAC;AACN,QAAA,eAAe,GAAG,oFAAoF,CAAC;AAEvG,QAAA,aAAa,GAAG;;;;;;;;;;;;;;;;;kBAiBX,CAAC;AACN,QAAA,oBAAoB,GAAG,gFAAgF,CAAC;AAExG,QAAA,QAAQ,GAAG;;;;;;;;;;;;;;;;kBAgBN,CAAC;AACN,QAAA,eAAe,GAAG,sEAAsE,CAAC;AAEzF,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;kBAgBP,CAAC;AACN,QAAA,gBAAgB,GAAG,sFAAsF,CAAC;AAE1G,QAAA,cAAc,GAAG;;;;;;;;;;;kBAWZ,CAAC;AACN,QAAA,qBAAqB,GAAG,kFAAkF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abstract-document",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.4",
|
|
4
4
|
"description": "Dynamically create documents using code or JSX and render to any format",
|
|
5
5
|
"repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-document",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"jszip": "^3.10.1",
|
|
41
41
|
"pdf2json": "2.0.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b9f791d809bfd9b80c25852c7a52fc40a4bae868"
|
|
44
44
|
}
|
|
@@ -19,18 +19,6 @@ export interface TextFieldProps {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export function create(props: TextFieldProps): TextField {
|
|
22
|
-
const {
|
|
23
|
-
|
|
24
|
-
fieldType,
|
|
25
|
-
style = TextStyle.create(),
|
|
26
|
-
target = ""
|
|
27
|
-
} = props;
|
|
28
|
-
return {
|
|
29
|
-
type: "TextField",
|
|
30
|
-
styleName,
|
|
31
|
-
fieldType,
|
|
32
|
-
style,
|
|
33
|
-
target,
|
|
34
|
-
text: ""
|
|
35
|
-
};
|
|
22
|
+
const { styleName = "", fieldType, style = TextStyle.create(), target = "" } = props;
|
|
23
|
+
return { type: "TextField", styleName, fieldType, style, target, text: "" };
|
|
36
24
|
}
|
|
@@ -14,14 +14,6 @@ export interface ImageResourceProps {
|
|
|
14
14
|
readonly renderScale?: number;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export function create({
|
|
18
|
-
id,
|
|
19
|
-
abstractImage,
|
|
20
|
-
renderScale = 1.0
|
|
21
|
-
}: ImageResourceProps): ImageResource {
|
|
22
|
-
return {
|
|
23
|
-
id,
|
|
24
|
-
abstractImage,
|
|
25
|
-
renderScale
|
|
26
|
-
};
|
|
17
|
+
export function create({ id, abstractImage, renderScale = 1.0 }: ImageResourceProps): ImageResource {
|
|
18
|
+
return { id, abstractImage, renderScale };
|
|
27
19
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with End alignment.docx
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment.docx
CHANGED
|
Binary file
|
|
Binary file
|
package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment.docx
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -53,7 +53,7 @@ endobj
|
|
|
53
53
|
(PDFKit)
|
|
54
54
|
endobj
|
|
55
55
|
12 0 obj
|
|
56
|
-
(D:
|
|
56
|
+
(D:20231008110938Z)
|
|
57
57
|
endobj
|
|
58
58
|
9 0 obj
|
|
59
59
|
<<
|
|
@@ -116,7 +116,7 @@ trailer
|
|
|
116
116
|
/Size 13
|
|
117
117
|
/Root 3 0 R
|
|
118
118
|
/Info 9 0 R
|
|
119
|
-
/ID [<
|
|
119
|
+
/ID [<27069d2d133cf6f6768bf37ff305953c> <27069d2d133cf6f6768bf37ff305953c>]
|
|
120
120
|
>>
|
|
121
121
|
startxref
|
|
122
122
|
1104
|
package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position header and footer.pdf
CHANGED
|
@@ -103,7 +103,7 @@ endobj
|
|
|
103
103
|
(PDFKit)
|
|
104
104
|
endobj
|
|
105
105
|
12 0 obj
|
|
106
|
-
(D:
|
|
106
|
+
(D:20231008110938Z)
|
|
107
107
|
endobj
|
|
108
108
|
9 0 obj
|
|
109
109
|
<<
|
|
@@ -166,7 +166,7 @@ trailer
|
|
|
166
166
|
/Size 13
|
|
167
167
|
/Root 3 0 R
|
|
168
168
|
/Info 9 0 R
|
|
169
|
-
/ID [<
|
|
169
|
+
/ID [<8cf0bf8f0dbef036298f2985556d7a45> <8cf0bf8f0dbef036298f2985556d7a45>]
|
|
170
170
|
>>
|
|
171
171
|
startxref
|
|
172
172
|
1492
|