abstract-document 16.0.18 → 16.0.19
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-xml/abstract-doc-of-xml/abstract-doc-of-xml.d.ts +1 -6
- package/lib/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.d.ts.map +1 -1
- package/lib/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.js +1 -5
- package/lib/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.js.map +1 -1
- package/lib/abstract-document-xml/xsd-template/custom-elements.d.ts +3 -3
- package/lib/abstract-document-xml/xsd-template/custom-elements.d.ts.map +1 -1
- package/lib/abstract-document-xml/xsd-template/custom-elements.js +6 -6
- package/lib/abstract-document-xml/xsd-template/elements.d.ts +1 -1
- package/lib/abstract-document-xml/xsd-template/elements.d.ts.map +1 -1
- package/lib/abstract-document-xml/xsd-template/elements.js +2 -2
- package/lib/abstract-document-xml/xsd-template/xsd-template.d.ts +2 -2
- package/lib/abstract-document-xml/xsd-template/xsd-template.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.ts +4 -14
- package/src/abstract-document-xml/xsd-template/custom-elements.ts +6 -6
- package/src/abstract-document-xml/xsd-template/elements.ts +2 -2
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { AbstractDoc } from "../../abstract-document/index.js";
|
|
2
|
-
export declare function abstractDocXml(template: string, data: any, partials: Record<string, string>, rendered?: "Mustache" | "Handlebars"): readonly [AbstractDoc.AbstractDoc,
|
|
3
|
-
export type ImageProps = {
|
|
4
|
-
readonly src: string;
|
|
5
|
-
readonly width: number | undefined;
|
|
6
|
-
readonly height: number | undefined;
|
|
7
|
-
};
|
|
2
|
+
export declare function abstractDocXml(template: string, data: any, partials: Record<string, string>, rendered?: "Mustache" | "Handlebars"): readonly [AbstractDoc.AbstractDoc, imageUrls: Record<string, true>, fontFamilies: Record<string, true>];
|
|
8
3
|
//# sourceMappingURL=abstract-doc-of-xml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-doc-of-xml.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAI/D,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,GAAG,EACT,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,QAAQ,GAAE,UAAU,GAAG,YAA2B,GACjD,SAAS,CAAC,WAAW,CAAC,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"abstract-doc-of-xml.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAI/D,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,GAAG,EACT,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,QAAQ,GAAE,UAAU,GAAG,YAA2B,GACjD,SAAS,CAAC,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAKzG"}
|
|
@@ -96,11 +96,7 @@ function abstractDocXmlRecursive(creators, xmlElement, onlyChildren = false) {
|
|
|
96
96
|
function extractImageFontsStyleNames(xmlElement, styleNames = {}, images = {}, fonts = {}) {
|
|
97
97
|
xmlElement.forEach((item) => {
|
|
98
98
|
if (item.tagName.startsWith("Image") && item.attributes?.src) {
|
|
99
|
-
images[item.attributes.src] =
|
|
100
|
-
src: item.attributes.src,
|
|
101
|
-
height: item.attributes.height ? Number(item.attributes.height) : undefined,
|
|
102
|
-
width: item.attributes.width ? Number(item.attributes.width) : undefined,
|
|
103
|
-
};
|
|
99
|
+
images[item.attributes.src] = true;
|
|
104
100
|
}
|
|
105
101
|
else if (item.attributes?.fontFamily) {
|
|
106
102
|
fonts[item.attributes.fontFamily] = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-doc-of-xml.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.ts"],"names":[],"mappings":"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
|
|
1
|
+
{"version":3,"file":"abstract-doc-of-xml.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,10 +4,10 @@ export declare const textCell = "<xs:complexType name=\"TextCell\">\n\t<xs:annot
|
|
|
4
4
|
export declare const textCellElement = "<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />";
|
|
5
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=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" 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\" />\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>";
|
|
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\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\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\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" 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>";
|
|
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\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" 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\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>";
|
|
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\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" 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,mqCAsBF,CAAC;AACnB,eAAO,MAAM,cAAc,6EAAuE,CAAC;AAEnG,eAAO,MAAM,QAAQ,qoCAsBH,CAAC;AACnB,eAAO,MAAM,eAAe,+FAAuF,CAAC;AAEpH,eAAO,MAAM,aAAa,u3BAiBR,CAAC;AACnB,eAAO,MAAM,oBAAoB,yFAAmF,CAAC;AAErH,eAAO,MAAM,QAAQ,
|
|
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,mqCAsBF,CAAC;AACnB,eAAO,MAAM,cAAc,6EAAuE,CAAC;AAEnG,eAAO,MAAM,QAAQ,qoCAsBH,CAAC;AACnB,eAAO,MAAM,eAAe,+FAAuF,CAAC;AAEpH,eAAO,MAAM,aAAa,u3BAiBR,CAAC;AACnB,eAAO,MAAM,oBAAoB,yFAAmF,CAAC;AAErH,eAAO,MAAM,QAAQ,u5BAgBH,CAAC;AACnB,eAAO,MAAM,eAAe,+EAAyE,CAAC;AAEtG,eAAO,MAAM,SAAS,o3BAgBJ,CAAC;AACnB,eAAO,MAAM,gBAAgB,iGAAyF,CAAC;AAEvH,eAAO,MAAM,cAAc,omBAWT,CAAC;AACnB,eAAO,MAAM,qBAAqB,2FAAqF,CAAC"}
|
|
@@ -77,8 +77,8 @@ exports.imageRow = `<xs:complexType name="ImageRow">
|
|
|
77
77
|
<xs:attribute name="columnSpan" type="xs:string" />
|
|
78
78
|
<xs:attribute name="rowSpan" type="xs:string" />
|
|
79
79
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
80
|
-
<xs:attribute name="width" type="xs:decimal" />
|
|
81
|
-
<xs:attribute name="height" type="xs:decimal" />
|
|
80
|
+
<xs:attribute name="width" type="xs:decimal" use="required" />
|
|
81
|
+
<xs:attribute name="height" type="xs:decimal" use="required" />
|
|
82
82
|
<xs:choice minOccurs="0" maxOccurs="1">
|
|
83
83
|
<xs:element name="cellStyle" type="TableCellStyle" />
|
|
84
84
|
</xs:choice>
|
|
@@ -95,8 +95,8 @@ exports.imageCell = `<xs:complexType name="ImageCell">
|
|
|
95
95
|
<xs:attribute name="columnSpan" type="xs:string" />
|
|
96
96
|
<xs:attribute name="rowSpan" type="xs:string" />
|
|
97
97
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
98
|
-
<xs:attribute name="width" type="xs:decimal" />
|
|
99
|
-
<xs:attribute name="height" type="xs:decimal" />
|
|
98
|
+
<xs:attribute name="width" type="xs:decimal" use="required" />
|
|
99
|
+
<xs:attribute name="height" type="xs:decimal" use="required" />
|
|
100
100
|
<xs:choice minOccurs="0" maxOccurs="1">
|
|
101
101
|
<xs:element name="style" type="TableCellStyle" />
|
|
102
102
|
</xs:choice>
|
|
@@ -111,8 +111,8 @@ exports.imageParagraph = `<xs:complexType name="ImageParagraph">
|
|
|
111
111
|
</xs:annotation>
|
|
112
112
|
<xs:attribute name="styleNames" type="xs:string" />
|
|
113
113
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
114
|
-
<xs:attribute name="width" type="xs:decimal" />
|
|
115
|
-
<xs:attribute name="height" type="xs:decimal" />
|
|
114
|
+
<xs:attribute name="width" type="xs:decimal" use="required" />
|
|
115
|
+
<xs:attribute name="height" type="xs:decimal" use="required" />
|
|
116
116
|
<xs:choice minOccurs="0" maxOccurs="1">
|
|
117
117
|
<xs:element name="style" type="ParagraphStyle" />
|
|
118
118
|
</xs:choice>
|
|
@@ -14,6 +14,6 @@ export declare const tocSeparator = "<xs:complexType name=\"TocSeperator\">\n\t<
|
|
|
14
14
|
export declare const linkTarget = "<xs:complexType name=\"LinkTarget\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" />\n</xs:complexType>";
|
|
15
15
|
export declare const textRun = "<xs:complexType name=\"TextRun\">\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=\"styleName\" 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>";
|
|
16
16
|
export declare const textField = "<xs:complexType name=\"TextField\">\n\t<xs:sequence>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"styleName\" 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=\"fieldType\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Date\" />\n\t\t\t\t<xs:enumeration value=\"PageNumber\" />\n\t\t\t\t<xs:enumeration value=\"TotalPages\" />\n\t\t\t\t<xs:enumeration value=\"PageNumberOf\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>";
|
|
17
|
-
export declare const image = "<xs:complexType name=\"Image\">\n <xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n <xs:attribute name=\"width\" type=\"xs:decimal\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" />\n</xs:complexType>";
|
|
17
|
+
export declare const image = "<xs:complexType name=\"Image\">\n <xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n <xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n</xs:complexType>";
|
|
18
18
|
export declare const pageBreak = "<xs:complexType name=\"PageBreak\" />";
|
|
19
19
|
//# sourceMappingURL=elements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/elements.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,uSAOV,CAAC;AAEf,eAAO,MAAM,OAAO,iuBAWF,CAAC;AAEnB,eAAO,MAAM,IAAI,6YASC,CAAC;AAEnB,eAAO,MAAM,cAAc,6oBAUT,CAAC;AAEnB,eAAO,MAAM,KAAK,isBAWA,CAAC;AAEnB,eAAO,MAAM,KAAK,6uCAsBA,CAAC;AAEnB,eAAO,MAAM,UAAU,qYAQL,CAAC;AAEnB,eAAO,MAAM,QAAQ,qZAMH,CAAC;AAEnB,eAAO,MAAM,SAAS,2vCAkBJ,CAAC;AAEnB,eAAO,MAAM,QAAQ,qLAGH,CAAC;AAEnB,eAAO,MAAM,SAAS,qpCAeJ,CAAC;AAEnB,eAAO,MAAM,SAAS,sjBAWJ,CAAC;AAEnB,eAAO,MAAM,YAAY,qHAEP,CAAC;AAEnB,eAAO,MAAM,UAAU,iHAEL,CAAC;AAEnB,eAAO,MAAM,OAAO,slBAWF,CAAC;AAEnB,eAAO,MAAM,SAAS,i5BAqBJ,CAAC;AAEnB,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/elements.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,uSAOV,CAAC;AAEf,eAAO,MAAM,OAAO,iuBAWF,CAAC;AAEnB,eAAO,MAAM,IAAI,6YASC,CAAC;AAEnB,eAAO,MAAM,cAAc,6oBAUT,CAAC;AAEnB,eAAO,MAAM,KAAK,isBAWA,CAAC;AAEnB,eAAO,MAAM,KAAK,6uCAsBA,CAAC;AAEnB,eAAO,MAAM,UAAU,qYAQL,CAAC;AAEnB,eAAO,MAAM,QAAQ,qZAMH,CAAC;AAEnB,eAAO,MAAM,SAAS,2vCAkBJ,CAAC;AAEnB,eAAO,MAAM,QAAQ,qLAGH,CAAC;AAEnB,eAAO,MAAM,SAAS,qpCAeJ,CAAC;AAEnB,eAAO,MAAM,SAAS,sjBAWJ,CAAC;AAEnB,eAAO,MAAM,YAAY,qHAEP,CAAC;AAEnB,eAAO,MAAM,UAAU,iHAEL,CAAC;AAEnB,eAAO,MAAM,OAAO,slBAWF,CAAC;AAEnB,eAAO,MAAM,SAAS,i5BAqBJ,CAAC;AAEnB,eAAO,MAAM,KAAK,+RAIA,CAAC;AAEnB,eAAO,MAAM,SAAS,0CAAwC,CAAC"}
|
|
@@ -220,8 +220,8 @@ exports.textField = `<xs:complexType name="TextField">
|
|
|
220
220
|
</xs:complexType>`;
|
|
221
221
|
exports.image = `<xs:complexType name="Image">
|
|
222
222
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
223
|
-
<xs:attribute name="width" type="xs:decimal" />
|
|
224
|
-
<xs:attribute name="height" type="xs:decimal" />
|
|
223
|
+
<xs:attribute name="width" type="xs:decimal" use="required" />
|
|
224
|
+
<xs:attribute name="height" type="xs:decimal" use="required" />
|
|
225
225
|
</xs:complexType>`;
|
|
226
226
|
exports.pageBreak = `<xs:complexType name="PageBreak" />`;
|
|
227
227
|
//# sourceMappingURL=elements.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const xsd = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n <xs:complexType name=\"LayoutFoundation\">\n\t<xs:attribute name=\"top\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"bottom\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"left\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"right\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"SectionElement\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"page\">\n\t<xs:annotation>\n\t\t<xs:documentation>Define header and footer.</xs:documentation>\n\t</xs:annotation>\n\t<xs:all>\n\t\t<xs:element name=\"style\" type=\"MasterPageStyle\" />\n\t\t<xs:element name=\"header\" type=\"SectionElement\" minOccurs=\"0\" />\n\t\t<xs:element name=\"footer\" type=\"SectionElement\" minOccurs=\"0\"/>\n\t</xs:all>\n</xs:complexType>\n<xs:complexType name=\"PageBreak\" />\n<xs:complexType name=\"Image\">\n <xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n <xs:attribute name=\"width\" type=\"xs:decimal\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"TextField\">\n\t<xs:sequence>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"styleName\" 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=\"fieldType\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Date\" />\n\t\t\t\t<xs:enumeration value=\"PageNumber\" />\n\t\t\t\t<xs:enumeration value=\"TotalPages\" />\n\t\t\t\t<xs:enumeration value=\"PageNumberOf\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TextRun\">\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=\"styleName\" 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>\n<xs:complexType name=\"HyperLink\">\n\t<xs:choice>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" minOccurs=\"0\"/>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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\" />\n</xs:complexType>\n<xs:complexType name=\"TocSeperator\">\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"LinkTarget\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" />\n</xs:complexType>\n<xs:simpleType name=\"Position\">\n\t<xs:annotation>\n\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t</xs:annotation>\n\t<xs:restriction base=\"xs:string\">\n\t\t<xs:enumeration value=\"absolute\" />\n\t\t<xs:enumeration value=\"relative\" />\n\t</xs:restriction>\n</xs:simpleType>\n<xs:complexType name=\"MasterPageStyle\">\n\t<xs:all>\n\t\t<xs:element name=\"headerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"footerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"contentMargins\" type=\"LayoutFoundation\" />\n\t</xs:all>\n\t<xs:attribute name=\"paperSize\" use=\"required\">\n\t\t<xs:simpleType>\n\t\t<xs:annotation>\n\t\t<xs:documentation>PaperSize possible values \"A4\" | \"Letter\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"A4\" />\n\t\t\t\t<xs:enumeration value=\"Letter\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"orientation\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Portrait\" />\n\t\t\t\t<xs:enumeration value=\"Landscape\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"noTopBottomMargin\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"Group\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"style\" type=\"GroupStyle\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"keepTogether\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"GroupStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Group style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Text style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"left\" />\n\t\t\t\t<xs:enumeration value=\"center\" />\n\t\t\t\t<xs:enumeration value=\"right\" />\n\t\t\t\t<xs:enumeration value=\"justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"ParagraphStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Paragraph style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" minOccurs=\"0\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Start\" | \"Center\" | \"End\" | \"Justify\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Left\" | \"Center\" | \"Right\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Left\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"Right\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Paragraph\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TextRun\" type=\"TextRun\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TextField\" type=\"TextField\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t\t<xs:element name=\"Image\" type=\"Image\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"HyperLink\" type=\"HyperLink\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"LinkTarget\" type=\"LinkTarget\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TocSeperator\" type=\"TocSeperator\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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</xs:complexType>\n<xs:complexType name=\"Markdown\">\n\t<xs:attribute name=\"keepTogetherSections\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TableCellStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table cell style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borders\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"padding\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Padding \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Vertical alignment possible values \"Top\" | \"Middle\" | \"Bottom\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableRow\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TableCell\" type=\"TableCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageCell\" type=\"ImageCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"headerRows\">\n\t<xs:sequence>\n\t\t<xs:choice minOccurs=\"1\" maxOccurs=\"unbounded\">\n\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\"/>\n\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t</xs:choice>\n\t</xs:sequence>\n</xs:complexType>\n<xs:complexType name=\"Table\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"headerRows\" type=\"headerRows\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"style\" type=\"TableStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:sequence>\n\t\t\t<xs:choice minOccurs=\"1\">\n\t\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t\t</xs:choice>\n\t\t</xs:sequence>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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=\"columnWidths\" type=\"xs:string\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>ColumnWidths of table. Seperated by ,. Eg. \"100,399,200\". Need atleast one columnWidth. Use \"inf\" to automatically adjust width: \"100,Inf\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableCell\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n\t<xs:attribute name=\"rowSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"styleName\" 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</xs:complexType>\n<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=\"textStyle\" 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>\n<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=\"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=\"textStyle\" 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>\n<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=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" 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>\n<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>\n<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=\"style\" 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>\n<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=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n <xs:complexType name=\"StyleNames\">\n\t<xs:sequence>\n\t\t<xs:element name=\"StyleName\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:sequence>\n</xs:complexType>\n <xs:complexType name=\"StyleName\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"type\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>The type of style used. One of: \"GroupStyle\", \"TableStyle\", \"TableCellStyle\", \"ParagraphStyle\", \"TextStyle\", </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"GroupStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableCellStyle\" />\n\t\t\t\t<xs:enumeration value=\"ParagraphStyle\" />\n\t\t\t\t<xs:enumeration value=\"TextStyle\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" />\n\t<xs:attribute name=\"position\" type=\"Position\"/>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" />\n\t<xs:attribute name=\"borders\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" />\n\t<xs:attribute name=\"padding\" type=\"xs:string\" />\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"left\" />\n\t\t\t\t<xs:enumeration value=\"center\" />\n\t\t\t\t<xs:enumeration value=\"right\" />\n\t\t\t\t<xs:enumeration value=\"justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n <xs:element name=\"AbstractDoc\">\n <xs:complexType>\n\t\t<xs:sequence>\n\t\t\t\t<xs:element name=\"StyleNames\" type=\"StyleNames\" minOccurs=\"0\"></xs:element>\n\t\t\t\t<xs:element name=\"Section\" type=\"Section\"></xs:element>\n\t\t</xs:sequence>\n\t</xs:complexType>\n</xs:element>\n</xs:schema>";
|
|
2
|
-
export declare const xsdPartial = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n <xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n <xs:complexType name=\"LayoutFoundation\">\n\t<xs:attribute name=\"top\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"bottom\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"left\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"right\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"SectionElement\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"page\">\n\t<xs:annotation>\n\t\t<xs:documentation>Define header and footer.</xs:documentation>\n\t</xs:annotation>\n\t<xs:all>\n\t\t<xs:element name=\"style\" type=\"MasterPageStyle\" />\n\t\t<xs:element name=\"header\" type=\"SectionElement\" minOccurs=\"0\" />\n\t\t<xs:element name=\"footer\" type=\"SectionElement\" minOccurs=\"0\"/>\n\t</xs:all>\n</xs:complexType>\n<xs:complexType name=\"PageBreak\" />\n<xs:complexType name=\"Image\">\n <xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n <xs:attribute name=\"width\" type=\"xs:decimal\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"TextField\">\n\t<xs:sequence>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"styleName\" 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=\"fieldType\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Date\" />\n\t\t\t\t<xs:enumeration value=\"PageNumber\" />\n\t\t\t\t<xs:enumeration value=\"TotalPages\" />\n\t\t\t\t<xs:enumeration value=\"PageNumberOf\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TextRun\">\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=\"styleName\" 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>\n<xs:complexType name=\"HyperLink\">\n\t<xs:choice>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" minOccurs=\"0\"/>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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\" />\n</xs:complexType>\n<xs:complexType name=\"TocSeperator\">\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"LinkTarget\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" />\n</xs:complexType>\n<xs:simpleType name=\"Position\">\n\t<xs:annotation>\n\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t</xs:annotation>\n\t<xs:restriction base=\"xs:string\">\n\t\t<xs:enumeration value=\"absolute\" />\n\t\t<xs:enumeration value=\"relative\" />\n\t</xs:restriction>\n</xs:simpleType>\n<xs:complexType name=\"MasterPageStyle\">\n\t<xs:all>\n\t\t<xs:element name=\"headerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"footerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"contentMargins\" type=\"LayoutFoundation\" />\n\t</xs:all>\n\t<xs:attribute name=\"paperSize\" use=\"required\">\n\t\t<xs:simpleType>\n\t\t<xs:annotation>\n\t\t<xs:documentation>PaperSize possible values \"A4\" | \"Letter\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"A4\" />\n\t\t\t\t<xs:enumeration value=\"Letter\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"orientation\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Portrait\" />\n\t\t\t\t<xs:enumeration value=\"Landscape\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"noTopBottomMargin\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"Group\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"style\" type=\"GroupStyle\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"keepTogether\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"GroupStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Group style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Text style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"left\" />\n\t\t\t\t<xs:enumeration value=\"center\" />\n\t\t\t\t<xs:enumeration value=\"right\" />\n\t\t\t\t<xs:enumeration value=\"justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"ParagraphStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Paragraph style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" minOccurs=\"0\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Start\" | \"Center\" | \"End\" | \"Justify\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Left\" | \"Center\" | \"Right\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Left\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"Right\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Paragraph\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TextRun\" type=\"TextRun\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TextField\" type=\"TextField\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t\t<xs:element name=\"Image\" type=\"Image\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"HyperLink\" type=\"HyperLink\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"LinkTarget\" type=\"LinkTarget\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TocSeperator\" type=\"TocSeperator\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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</xs:complexType>\n<xs:complexType name=\"Markdown\">\n\t<xs:attribute name=\"keepTogetherSections\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TableCellStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table cell style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borders\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"padding\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Padding \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Vertical alignment possible values \"Top\" | \"Middle\" | \"Bottom\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableRow\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TableCell\" type=\"TableCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageCell\" type=\"ImageCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"headerRows\">\n\t<xs:sequence>\n\t\t<xs:choice minOccurs=\"1\" maxOccurs=\"unbounded\">\n\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\"/>\n\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t</xs:choice>\n\t</xs:sequence>\n</xs:complexType>\n<xs:complexType name=\"Table\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"headerRows\" type=\"headerRows\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"style\" type=\"TableStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:sequence>\n\t\t\t<xs:choice minOccurs=\"1\">\n\t\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t\t</xs:choice>\n\t\t</xs:sequence>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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=\"columnWidths\" type=\"xs:string\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>ColumnWidths of table. Seperated by ,. Eg. \"100,399,200\". Need atleast one columnWidth. Use \"inf\" to automatically adjust width: \"100,Inf\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableCell\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n\t<xs:attribute name=\"rowSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"styleName\" 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</xs:complexType>\n<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=\"textStyle\" 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>\n<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=\"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=\"textStyle\" 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>\n<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=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" 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>\n<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>\n<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=\"style\" 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>\n<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=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n <xs:element name=\"Table\" type=\"Table\" />\n <xs:element name=\"Group\" type=\"Group\" />\n <xs:element name=\"PageBreak\" type=\"PageBreak\" />\n <xs:element name=\"Paragraph\" type=\"Paragraph\" />\n <xs:element name=\"Markdown\" type=\"Markdown\" />\n</xs:schema>";
|
|
1
|
+
export declare const xsd = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n <xs:complexType name=\"LayoutFoundation\">\n\t<xs:attribute name=\"top\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"bottom\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"left\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"right\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"SectionElement\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"page\">\n\t<xs:annotation>\n\t\t<xs:documentation>Define header and footer.</xs:documentation>\n\t</xs:annotation>\n\t<xs:all>\n\t\t<xs:element name=\"style\" type=\"MasterPageStyle\" />\n\t\t<xs:element name=\"header\" type=\"SectionElement\" minOccurs=\"0\" />\n\t\t<xs:element name=\"footer\" type=\"SectionElement\" minOccurs=\"0\"/>\n\t</xs:all>\n</xs:complexType>\n<xs:complexType name=\"PageBreak\" />\n<xs:complexType name=\"Image\">\n <xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n <xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextField\">\n\t<xs:sequence>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"styleName\" 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=\"fieldType\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Date\" />\n\t\t\t\t<xs:enumeration value=\"PageNumber\" />\n\t\t\t\t<xs:enumeration value=\"TotalPages\" />\n\t\t\t\t<xs:enumeration value=\"PageNumberOf\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TextRun\">\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=\"styleName\" 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>\n<xs:complexType name=\"HyperLink\">\n\t<xs:choice>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" minOccurs=\"0\"/>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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\" />\n</xs:complexType>\n<xs:complexType name=\"TocSeperator\">\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"LinkTarget\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" />\n</xs:complexType>\n<xs:simpleType name=\"Position\">\n\t<xs:annotation>\n\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t</xs:annotation>\n\t<xs:restriction base=\"xs:string\">\n\t\t<xs:enumeration value=\"absolute\" />\n\t\t<xs:enumeration value=\"relative\" />\n\t</xs:restriction>\n</xs:simpleType>\n<xs:complexType name=\"MasterPageStyle\">\n\t<xs:all>\n\t\t<xs:element name=\"headerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"footerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"contentMargins\" type=\"LayoutFoundation\" />\n\t</xs:all>\n\t<xs:attribute name=\"paperSize\" use=\"required\">\n\t\t<xs:simpleType>\n\t\t<xs:annotation>\n\t\t<xs:documentation>PaperSize possible values \"A4\" | \"Letter\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"A4\" />\n\t\t\t\t<xs:enumeration value=\"Letter\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"orientation\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Portrait\" />\n\t\t\t\t<xs:enumeration value=\"Landscape\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"noTopBottomMargin\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"Group\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"style\" type=\"GroupStyle\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"keepTogether\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"GroupStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Group style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Text style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"left\" />\n\t\t\t\t<xs:enumeration value=\"center\" />\n\t\t\t\t<xs:enumeration value=\"right\" />\n\t\t\t\t<xs:enumeration value=\"justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"ParagraphStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Paragraph style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" minOccurs=\"0\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Start\" | \"Center\" | \"End\" | \"Justify\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Left\" | \"Center\" | \"Right\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Left\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"Right\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Paragraph\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TextRun\" type=\"TextRun\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TextField\" type=\"TextField\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t\t<xs:element name=\"Image\" type=\"Image\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"HyperLink\" type=\"HyperLink\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"LinkTarget\" type=\"LinkTarget\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TocSeperator\" type=\"TocSeperator\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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</xs:complexType>\n<xs:complexType name=\"Markdown\">\n\t<xs:attribute name=\"keepTogetherSections\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TableCellStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table cell style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borders\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"padding\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Padding \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Vertical alignment possible values \"Top\" | \"Middle\" | \"Bottom\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableRow\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TableCell\" type=\"TableCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageCell\" type=\"ImageCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"headerRows\">\n\t<xs:sequence>\n\t\t<xs:choice minOccurs=\"1\" maxOccurs=\"unbounded\">\n\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\"/>\n\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t</xs:choice>\n\t</xs:sequence>\n</xs:complexType>\n<xs:complexType name=\"Table\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"headerRows\" type=\"headerRows\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"style\" type=\"TableStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:sequence>\n\t\t\t<xs:choice minOccurs=\"1\">\n\t\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t\t</xs:choice>\n\t\t</xs:sequence>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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=\"columnWidths\" type=\"xs:string\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>ColumnWidths of table. Seperated by ,. Eg. \"100,399,200\". Need atleast one columnWidth. Use \"inf\" to automatically adjust width: \"100,Inf\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableCell\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n\t<xs:attribute name=\"rowSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"styleName\" 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</xs:complexType>\n<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=\"textStyle\" 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>\n<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=\"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=\"textStyle\" 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>\n<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=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" 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>\n<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\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\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>\n<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\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" 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>\n<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\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n <xs:complexType name=\"StyleNames\">\n\t<xs:sequence>\n\t\t<xs:element name=\"StyleName\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:sequence>\n</xs:complexType>\n <xs:complexType name=\"StyleName\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"type\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>The type of style used. One of: \"GroupStyle\", \"TableStyle\", \"TableCellStyle\", \"ParagraphStyle\", \"TextStyle\", </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"GroupStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableCellStyle\" />\n\t\t\t\t<xs:enumeration value=\"ParagraphStyle\" />\n\t\t\t\t<xs:enumeration value=\"TextStyle\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" />\n\t<xs:attribute name=\"position\" type=\"Position\"/>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" />\n\t<xs:attribute name=\"borders\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" />\n\t<xs:attribute name=\"padding\" type=\"xs:string\" />\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"left\" />\n\t\t\t\t<xs:enumeration value=\"center\" />\n\t\t\t\t<xs:enumeration value=\"right\" />\n\t\t\t\t<xs:enumeration value=\"justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n <xs:element name=\"AbstractDoc\">\n <xs:complexType>\n\t\t<xs:sequence>\n\t\t\t\t<xs:element name=\"StyleNames\" type=\"StyleNames\" minOccurs=\"0\"></xs:element>\n\t\t\t\t<xs:element name=\"Section\" type=\"Section\"></xs:element>\n\t\t</xs:sequence>\n\t</xs:complexType>\n</xs:element>\n</xs:schema>";
|
|
2
|
+
export declare const xsdPartial = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n <xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n <xs:complexType name=\"LayoutFoundation\">\n\t<xs:attribute name=\"top\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"bottom\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"left\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"right\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"SectionElement\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"page\">\n\t<xs:annotation>\n\t\t<xs:documentation>Define header and footer.</xs:documentation>\n\t</xs:annotation>\n\t<xs:all>\n\t\t<xs:element name=\"style\" type=\"MasterPageStyle\" />\n\t\t<xs:element name=\"header\" type=\"SectionElement\" minOccurs=\"0\" />\n\t\t<xs:element name=\"footer\" type=\"SectionElement\" minOccurs=\"0\"/>\n\t</xs:all>\n</xs:complexType>\n<xs:complexType name=\"PageBreak\" />\n<xs:complexType name=\"Image\">\n <xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n <xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextField\">\n\t<xs:sequence>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"styleName\" 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=\"fieldType\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Date\" />\n\t\t\t\t<xs:enumeration value=\"PageNumber\" />\n\t\t\t\t<xs:enumeration value=\"TotalPages\" />\n\t\t\t\t<xs:enumeration value=\"PageNumberOf\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TextRun\">\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=\"styleName\" 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>\n<xs:complexType name=\"HyperLink\">\n\t<xs:choice>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" minOccurs=\"0\"/>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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\" />\n</xs:complexType>\n<xs:complexType name=\"TocSeperator\">\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"LinkTarget\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" />\n</xs:complexType>\n<xs:simpleType name=\"Position\">\n\t<xs:annotation>\n\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t</xs:annotation>\n\t<xs:restriction base=\"xs:string\">\n\t\t<xs:enumeration value=\"absolute\" />\n\t\t<xs:enumeration value=\"relative\" />\n\t</xs:restriction>\n</xs:simpleType>\n<xs:complexType name=\"MasterPageStyle\">\n\t<xs:all>\n\t\t<xs:element name=\"headerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"footerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"contentMargins\" type=\"LayoutFoundation\" />\n\t</xs:all>\n\t<xs:attribute name=\"paperSize\" use=\"required\">\n\t\t<xs:simpleType>\n\t\t<xs:annotation>\n\t\t<xs:documentation>PaperSize possible values \"A4\" | \"Letter\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"A4\" />\n\t\t\t\t<xs:enumeration value=\"Letter\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"orientation\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Portrait\" />\n\t\t\t\t<xs:enumeration value=\"Landscape\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"noTopBottomMargin\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"Group\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"style\" type=\"GroupStyle\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"keepTogether\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"GroupStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Group style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Text style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"left\" />\n\t\t\t\t<xs:enumeration value=\"center\" />\n\t\t\t\t<xs:enumeration value=\"right\" />\n\t\t\t\t<xs:enumeration value=\"justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"ParagraphStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Paragraph style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" minOccurs=\"0\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Start\" | \"Center\" | \"End\" | \"Justify\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Left\" | \"Center\" | \"Right\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Left\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"Right\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Paragraph\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TextRun\" type=\"TextRun\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TextField\" type=\"TextField\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t\t<xs:element name=\"Image\" type=\"Image\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"HyperLink\" type=\"HyperLink\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"LinkTarget\" type=\"LinkTarget\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TocSeperator\" type=\"TocSeperator\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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</xs:complexType>\n<xs:complexType name=\"Markdown\">\n\t<xs:attribute name=\"keepTogetherSections\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TableCellStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table cell style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borders\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"padding\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Padding \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Vertical alignment possible values \"Top\" | \"Middle\" | \"Bottom\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableRow\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TableCell\" type=\"TableCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageCell\" type=\"ImageCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"headerRows\">\n\t<xs:sequence>\n\t\t<xs:choice minOccurs=\"1\" maxOccurs=\"unbounded\">\n\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\"/>\n\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t</xs:choice>\n\t</xs:sequence>\n</xs:complexType>\n<xs:complexType name=\"Table\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"headerRows\" type=\"headerRows\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"style\" type=\"TableStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:sequence>\n\t\t\t<xs:choice minOccurs=\"1\">\n\t\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t\t</xs:choice>\n\t\t</xs:sequence>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" 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=\"columnWidths\" type=\"xs:string\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>ColumnWidths of table. Seperated by ,. Eg. \"100,399,200\". Need atleast one columnWidth. Use \"inf\" to automatically adjust width: \"100,Inf\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableCell\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n\t<xs:attribute name=\"rowSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"styleName\" 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</xs:complexType>\n<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=\"textStyle\" 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>\n<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=\"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=\"textStyle\" 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>\n<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=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" 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>\n<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\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\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>\n<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\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" 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>\n<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\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n <xs:element name=\"Table\" type=\"Table\" />\n <xs:element name=\"Group\" type=\"Group\" />\n <xs:element name=\"PageBreak\" type=\"PageBreak\" />\n <xs:element name=\"Paragraph\" type=\"Paragraph\" />\n <xs:element name=\"Markdown\" type=\"Markdown\" />\n</xs:schema>";
|
|
3
3
|
export declare const parsedXsd: readonly import("handlebars-xml").XmlElement[];
|
|
4
4
|
export declare const parsedXsdPartial: readonly import("handlebars-xml").XmlElement[];
|
|
5
5
|
//# sourceMappingURL=xsd-template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xsd-template.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/xsd-template.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"xsd-template.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/xsd-template.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,GAAG,w90BAMH,CAAC;AAEd,eAAO,MAAM,UAAU,i6vBASV,CAAC;AAEd,eAAO,MAAM,SAAS,gDAAgB,CAAC;AAEvC,eAAO,MAAM,gBAAgB,gDAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abstract-document",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.19",
|
|
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",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"vite": "^6.0.1",
|
|
49
49
|
"vitest": "^2.1.6"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "003da33ecc58eef09064296a5b81221286f2b85f"
|
|
52
52
|
}
|
|
@@ -7,7 +7,7 @@ export function abstractDocXml(
|
|
|
7
7
|
data: any,
|
|
8
8
|
partials: Record<string, string>,
|
|
9
9
|
rendered: "Mustache" | "Handlebars" = "Handlebars"
|
|
10
|
-
): readonly [AbstractDoc.AbstractDoc,
|
|
10
|
+
): readonly [AbstractDoc.AbstractDoc, imageUrls: Record<string, true>, fontFamilies: Record<string, true>] {
|
|
11
11
|
const xml =
|
|
12
12
|
rendered === "Mustache" ? parseMustacheXml(template, data, partials) : parseHandlebarsXml(template, data, partials);
|
|
13
13
|
const [imageUrls, fontFamilies, styleNames] = extractImageFontsStyleNames(xml);
|
|
@@ -104,25 +104,15 @@ function abstractDocXmlRecursive(
|
|
|
104
104
|
return obj;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
export type ImageProps = {
|
|
108
|
-
readonly src: string;
|
|
109
|
-
readonly width: number | undefined;
|
|
110
|
-
readonly height: number | undefined;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
107
|
function extractImageFontsStyleNames(
|
|
114
108
|
xmlElement: ReadonlyArray<XmlElement>,
|
|
115
109
|
styleNames: Record<string, string> = {},
|
|
116
|
-
images: Record<string,
|
|
110
|
+
images: Record<string, true> = {},
|
|
117
111
|
fonts: Record<string, true> = {}
|
|
118
|
-
): readonly [
|
|
112
|
+
): readonly [imageUrls: Record<string, true>, fontFamilies: Record<string, true>, styleNames: Record<string, string>] {
|
|
119
113
|
xmlElement.forEach((item) => {
|
|
120
114
|
if (item.tagName.startsWith("Image") && item.attributes?.src) {
|
|
121
|
-
images[item.attributes.src as string] =
|
|
122
|
-
src: item.attributes.src as string,
|
|
123
|
-
height: item.attributes.height ? Number(item.attributes.height) : undefined,
|
|
124
|
-
width: item.attributes.width ? Number(item.attributes.width) : undefined,
|
|
125
|
-
};
|
|
115
|
+
images[item.attributes.src as string] = true;
|
|
126
116
|
} else if (item.attributes?.fontFamily) {
|
|
127
117
|
fonts[item.attributes.fontFamily as string] = true;
|
|
128
118
|
if (item.tagName === "StyleName" && item.attributes.name && item.attributes.type) {
|
|
@@ -77,8 +77,8 @@ export const imageRow = `<xs:complexType name="ImageRow">
|
|
|
77
77
|
<xs:attribute name="columnSpan" type="xs:string" />
|
|
78
78
|
<xs:attribute name="rowSpan" type="xs:string" />
|
|
79
79
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
80
|
-
<xs:attribute name="width" type="xs:decimal" />
|
|
81
|
-
<xs:attribute name="height" type="xs:decimal" />
|
|
80
|
+
<xs:attribute name="width" type="xs:decimal" use="required" />
|
|
81
|
+
<xs:attribute name="height" type="xs:decimal" use="required" />
|
|
82
82
|
<xs:choice minOccurs="0" maxOccurs="1">
|
|
83
83
|
<xs:element name="cellStyle" type="TableCellStyle" />
|
|
84
84
|
</xs:choice>
|
|
@@ -96,8 +96,8 @@ export const imageCell = `<xs:complexType name="ImageCell">
|
|
|
96
96
|
<xs:attribute name="columnSpan" type="xs:string" />
|
|
97
97
|
<xs:attribute name="rowSpan" type="xs:string" />
|
|
98
98
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
99
|
-
<xs:attribute name="width" type="xs:decimal" />
|
|
100
|
-
<xs:attribute name="height" type="xs:decimal" />
|
|
99
|
+
<xs:attribute name="width" type="xs:decimal" use="required" />
|
|
100
|
+
<xs:attribute name="height" type="xs:decimal" use="required" />
|
|
101
101
|
<xs:choice minOccurs="0" maxOccurs="1">
|
|
102
102
|
<xs:element name="style" type="TableCellStyle" />
|
|
103
103
|
</xs:choice>
|
|
@@ -113,8 +113,8 @@ export const imageParagraph = `<xs:complexType name="ImageParagraph">
|
|
|
113
113
|
</xs:annotation>
|
|
114
114
|
<xs:attribute name="styleNames" type="xs:string" />
|
|
115
115
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
116
|
-
<xs:attribute name="width" type="xs:decimal" />
|
|
117
|
-
<xs:attribute name="height" type="xs:decimal" />
|
|
116
|
+
<xs:attribute name="width" type="xs:decimal" use="required" />
|
|
117
|
+
<xs:attribute name="height" type="xs:decimal" use="required" />
|
|
118
118
|
<xs:choice minOccurs="0" maxOccurs="1">
|
|
119
119
|
<xs:element name="style" type="ParagraphStyle" />
|
|
120
120
|
</xs:choice>
|
|
@@ -201,8 +201,8 @@ export const textField = `<xs:complexType name="TextField">
|
|
|
201
201
|
|
|
202
202
|
export const image = `<xs:complexType name="Image">
|
|
203
203
|
<xs:attribute name="src" type="xs:string" use="required" />
|
|
204
|
-
<xs:attribute name="width" type="xs:decimal" />
|
|
205
|
-
<xs:attribute name="height" type="xs:decimal" />
|
|
204
|
+
<xs:attribute name="width" type="xs:decimal" use="required" />
|
|
205
|
+
<xs:attribute name="height" type="xs:decimal" use="required" />
|
|
206
206
|
</xs:complexType>`;
|
|
207
207
|
|
|
208
208
|
export const pageBreak = `<xs:complexType name="PageBreak" />`;
|