abstract-document 6.9.6 → 6.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +2 -2
  3. package/lib/abstract-document/table/text-row.d.ts +1 -0
  4. package/lib/abstract-document/table/text-row.d.ts.map +1 -0
  5. package/lib/abstract-document/table/text-row.js +1 -0
  6. package/lib/abstract-document/table/text-row.js.map +1 -0
  7. package/lib/abstract-document-xml/__tests__/export-test-def.d.ts +13 -0
  8. package/lib/abstract-document-xml/__tests__/export-test-def.d.ts.map +1 -0
  9. package/lib/abstract-document-xml/__tests__/export-test-def.js +3 -0
  10. package/lib/abstract-document-xml/__tests__/export-test-def.js.map +1 -0
  11. package/lib/abstract-document-xml/__tests__/export.test.d.ts +3 -0
  12. package/lib/abstract-document-xml/__tests__/export.test.d.ts.map +1 -0
  13. package/lib/abstract-document-xml/__tests__/export.test.js +41 -0
  14. package/lib/abstract-document-xml/__tests__/export.test.js.map +1 -0
  15. package/lib/abstract-document-xml/__tests__/test-defs/simple-document.d.ts +3 -0
  16. package/lib/abstract-document-xml/__tests__/test-defs/simple-document.d.ts.map +1 -0
  17. package/lib/abstract-document-xml/__tests__/test-defs/simple-document.js +198 -0
  18. package/lib/abstract-document-xml/__tests__/test-defs/simple-document.js.map +1 -0
  19. package/lib/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.d.ts +5 -0
  20. package/lib/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.d.ts.map +1 -0
  21. package/lib/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.js +94 -0
  22. package/lib/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.js.map +1 -0
  23. package/lib/abstract-document-xml/abstract-doc-of-xml/creator.d.ts +14 -0
  24. package/lib/abstract-document-xml/abstract-doc-of-xml/creator.d.ts.map +1 -0
  25. package/lib/abstract-document-xml/abstract-doc-of-xml/creator.js +218 -0
  26. package/lib/abstract-document-xml/abstract-doc-of-xml/creator.js.map +1 -0
  27. package/lib/abstract-document-xml/abstract-doc-of-xml/custom-elements.d.ts +38 -0
  28. package/lib/abstract-document-xml/abstract-doc-of-xml/custom-elements.d.ts.map +1 -0
  29. package/lib/abstract-document-xml/abstract-doc-of-xml/custom-elements.js +59 -0
  30. package/lib/abstract-document-xml/abstract-doc-of-xml/custom-elements.js.map +1 -0
  31. package/lib/abstract-document-xml/abstract-doc-of-xml/index.d.ts +3 -0
  32. package/lib/abstract-document-xml/abstract-doc-of-xml/index.d.ts.map +1 -0
  33. package/lib/abstract-document-xml/abstract-doc-of-xml/index.js +17 -0
  34. package/lib/abstract-document-xml/abstract-doc-of-xml/index.js.map +1 -0
  35. package/lib/abstract-document-xml/index.d.ts +4 -0
  36. package/lib/abstract-document-xml/index.d.ts.map +1 -0
  37. package/lib/abstract-document-xml/index.js +16 -0
  38. package/lib/abstract-document-xml/index.js.map +1 -0
  39. package/lib/abstract-document-xml/parse-xml/index.d.ts +3 -0
  40. package/lib/abstract-document-xml/parse-xml/index.d.ts.map +1 -0
  41. package/lib/abstract-document-xml/parse-xml/index.js +15 -0
  42. package/lib/abstract-document-xml/parse-xml/index.js.map +1 -0
  43. package/lib/abstract-document-xml/parse-xml/parse-xml.d.ts +12 -0
  44. package/lib/abstract-document-xml/parse-xml/parse-xml.d.ts.map +1 -0
  45. package/lib/abstract-document-xml/parse-xml/parse-xml.js +83 -0
  46. package/lib/abstract-document-xml/parse-xml/parse-xml.js.map +1 -0
  47. package/lib/abstract-document-xml/parse-xml/validation.d.ts +21 -0
  48. package/lib/abstract-document-xml/parse-xml/validation.d.ts.map +1 -0
  49. package/lib/abstract-document-xml/parse-xml/validation.js +205 -0
  50. package/lib/abstract-document-xml/parse-xml/validation.js.map +1 -0
  51. package/lib/abstract-document-xml/xsd-template/custom-elements.d.ts +7 -0
  52. package/lib/abstract-document-xml/xsd-template/custom-elements.d.ts.map +1 -0
  53. package/lib/abstract-document-xml/xsd-template/custom-elements.js +57 -0
  54. package/lib/abstract-document-xml/xsd-template/custom-elements.js.map +1 -0
  55. package/lib/abstract-document-xml/xsd-template/elements.d.ts +19 -0
  56. package/lib/abstract-document-xml/xsd-template/elements.d.ts.map +1 -0
  57. package/lib/abstract-document-xml/xsd-template/elements.js +187 -0
  58. package/lib/abstract-document-xml/xsd-template/elements.js.map +1 -0
  59. package/lib/abstract-document-xml/xsd-template/index.d.ts +2 -0
  60. package/lib/abstract-document-xml/xsd-template/index.d.ts.map +1 -0
  61. package/lib/abstract-document-xml/xsd-template/index.js +14 -0
  62. package/lib/abstract-document-xml/xsd-template/index.js.map +1 -0
  63. package/lib/abstract-document-xml/xsd-template/styles.d.ts +11 -0
  64. package/lib/abstract-document-xml/xsd-template/styles.d.ts.map +1 -0
  65. package/lib/abstract-document-xml/xsd-template/styles.js +279 -0
  66. package/lib/abstract-document-xml/xsd-template/styles.js.map +1 -0
  67. package/lib/abstract-document-xml/xsd-template/xsd-template.d.ts +3 -0
  68. package/lib/abstract-document-xml/xsd-template/xsd-template.d.ts.map +1 -0
  69. package/lib/abstract-document-xml/xsd-template/xsd-template.js +71 -0
  70. package/lib/abstract-document-xml/xsd-template/xsd-template.js.map +1 -0
  71. package/lib/index.d.ts +2 -1
  72. package/lib/index.d.ts.map +1 -1
  73. package/lib/index.js +3 -1
  74. package/lib/index.js.map +1 -1
  75. package/package.json +4 -3
  76. package/src/abstract-document/table/text-row.ts +0 -0
  77. package/src/abstract-document-exporters/__tests__/docx2/tmp/Group.docx +0 -0
  78. package/src/abstract-document-exporters/__tests__/docx2/tmp/Header and footer.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Header → footer.docx +0 -0
  79. package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed hyperlink and textrun.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed hyperlink → textrun.docx +0 -0
  80. package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed textrun and images.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed textrun → images.docx +0 -0
  81. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple images.docx +0 -0
  82. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple tables.docx +0 -0
  83. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Center alignment.docx +0 -0
  84. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with End alignment.docx +0 -0
  85. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment that linebreaks.docx +0 -0
  86. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment.docx +0 -0
  87. package/src/abstract-document-exporters/__tests__/docx2/tmp/Page numbering.docx +0 -0
  88. package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table colSpan and rowSpan.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table colSpan → rowSpan.docx +0 -0
  89. package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table without rows.docx +0 -0
  90. package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table.docx +0 -0
  91. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single hyperlink.docx +0 -0
  92. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single image.docx +0 -0
  93. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment that linebreaks.docx +0 -0
  94. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment.docx +0 -0
  95. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment that linebreaks.docx +0 -0
  96. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment.docx +0 -0
  97. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment that linebreaks.docx +0 -0
  98. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment.docx +0 -0
  99. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun.docx +0 -0
  100. package/src/abstract-document-exporters/__tests__/docx2/tmp/hello with Arial font.docx +0 -0
  101. package/src/abstract-document-exporters/__tests__/docx2/tmp/hello.docx +0 -0
  102. package/src/abstract-document-exporters/__tests__/docx2/tmp/letter-dimensions.docx +0 -0
  103. package/src/abstract-document-exporters/__tests__/docx2/tmp/page-orientation-landscape.docx +0 -0
  104. package/src/abstract-document-exporters/__tests__/docx2/tmp/page-orientation-portrait.docx +0 -0
  105. package/src/abstract-document-exporters/__tests__/docx2/tmp/tocSeparator.docx +0 -0
  106. package/src/abstract-document-exporters/__tests__/docx2/tmp/world.docx +0 -0
  107. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position group.pdf +2 -2
  108. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position header and footer.pdf +2 -2
  109. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position paragraph.pdf +2 -2
  110. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position section in group.pdf +2 -2
  111. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position section in table.pdf +2 -2
  112. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position table.pdf +2 -2
  113. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Paragraphs.pdf +2 -2
  114. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Tables.pdf +2 -2
  115. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group no keeptogether.pdf +2 -2
  116. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group too big for one page.pdf +2 -2
  117. package/src/abstract-document-exporters/__tests__/pdf/tmp/Header and footer.pdf +2 -2
  118. package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal linktarget.pdf +2 -2
  119. package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal.pdf +2 -2
  120. package/src/abstract-document-exporters/__tests__/pdf/tmp/Margins header body footer.pdf +2 -2
  121. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun no underline.pdf +2 -2
  122. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun with underline.pdf +2 -2
  123. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun.pdf +2 -2
  124. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed textrun and images.pdf and b/package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed textrun → images.pdf +0 -0
  125. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images overflow.pdf +0 -0
  126. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images.pdf +0 -0
  127. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Center alignment.pdf +2 -2
  128. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with End alignment.pdf +2 -2
  129. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment that linebreaks.pdf +2 -2
  130. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment.pdf +2 -2
  131. package/src/abstract-document-exporters/__tests__/pdf/tmp/Page numbering.pdf +2 -2
  132. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table row that doesnt fit page.pdf +2 -2
  133. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table single row.pdf +2 -2
  134. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with group.pdf +2 -2
  135. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header 2.pdf +2 -2
  136. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header.pdf +2 -2
  137. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin bottom.pdf +2 -2
  138. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top single table.pdf +2 -2
  139. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top.pdf +2 -2
  140. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan multipages.pdf +2 -2
  141. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan.pdf +2 -2
  142. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all auto.pdf +2 -2
  143. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all fix.pdf +2 -2
  144. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table background.pdf +2 -2
  145. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of image.pdf +0 -0
  146. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of text.pdf +2 -2
  147. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table center alignment.pdf +2 -2
  148. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table colSpan and rowSpan.pdf +2 -2
  149. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table minimal row height.pdf +2 -2
  150. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table mix auto fix.pdf +2 -2
  151. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table padding.pdf +2 -2
  152. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table right alignment.pdf +2 -2
  153. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table row alignment.pdf +2 -2
  154. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell with wrapping.pdf +2 -2
  155. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell.pdf +2 -2
  156. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with default colored borders.pdf +2 -2
  157. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with header.pdf +2 -2
  158. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with multi colored borders.pdf +2 -2
  159. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with single colored borders.pdf +2 -2
  160. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single date.pdf +14 -14
  161. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single figure.pdf +2 -2
  162. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink centered.pdf +2 -2
  163. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink no underline.pdf +2 -2
  164. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink right aligned.pdf +2 -2
  165. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink.pdf +2 -2
  166. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image from URL.pdf +0 -0
  167. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color hex.pdf +2 -2
  168. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color name.pdf +2 -2
  169. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color url.pdf +2 -2
  170. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg dasharray.pdf +2 -2
  171. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image.pdf +0 -0
  172. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline alphabetic.pdf +2 -2
  173. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline bottom.pdf +2 -2
  174. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline hanging.pdf +2 -2
  175. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline middle.pdf +2 -2
  176. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline top.pdf +2 -2
  177. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment that linebreaks.pdf +2 -2
  178. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment.pdf +2 -2
  179. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment that linebreaks.pdf +2 -2
  180. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment.pdf +2 -2
  181. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Justify alignment.pdf +2 -2
  182. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment that linebreaks.pdf +2 -2
  183. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment.pdf +2 -2
  184. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with super and subscripts.pdf +2 -2
  185. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun.pdf +2 -2
  186. package/src/abstract-document-exporters/__tests__/pdf/tmp/Table of content separator.pdf +2 -2
  187. package/src/abstract-document-exporters/__tests__/pdf/tmp/hello with roman font.pdf +2 -2
  188. package/src/abstract-document-exporters/__tests__/pdf/tmp/hello.pdf +2 -2
  189. package/src/abstract-document-exporters/__tests__/pdf/tmp/pagebreak.pdf +2 -2
  190. package/src/abstract-document-exporters/__tests__/pdf/tmp/world.pdf +2 -2
  191. package/src/abstract-document-xml/__tests__/export-test-def.ts +12 -0
  192. package/src/abstract-document-xml/__tests__/export.test.tsx +43 -0
  193. package/src/abstract-document-xml/__tests__/test-defs/simple-document.tsx +196 -0
  194. package/src/abstract-document-xml/abstract-doc-of-xml/abstract-doc-of-xml.ts +96 -0
  195. package/src/abstract-document-xml/abstract-doc-of-xml/creator.ts +267 -0
  196. package/src/abstract-document-xml/abstract-doc-of-xml/custom-elements.tsx +110 -0
  197. package/src/abstract-document-xml/abstract-doc-of-xml/index.ts +2 -0
  198. package/src/abstract-document-xml/index.ts +3 -0
  199. package/src/abstract-document-xml/parse-xml/index.ts +2 -0
  200. package/src/abstract-document-xml/parse-xml/parse-xml.ts +95 -0
  201. package/src/abstract-document-xml/parse-xml/validation.ts +280 -0
  202. package/src/abstract-document-xml/xsd-template/custom-elements.ts +56 -0
  203. package/src/abstract-document-xml/xsd-template/elements.ts +201 -0
  204. package/src/abstract-document-xml/xsd-template/index.ts +1 -0
  205. package/src/abstract-document-xml/xsd-template/styles.ts +284 -0
  206. package/src/abstract-document-xml/xsd-template/xsd-template.ts +51 -0
  207. package/src/index.ts +2 -1
  208. package/src/abstract-document-exporters/__tests__/docx2/tmp/Table of content separator.docx +0 -0
  209. package/src/abstract-document-exporters/__tests__/pdf/tmp/Empty Paragraph.pdf +0 -91
  210. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group.pdf +0 -123
  211. package/src/abstract-document-exporters/__tests__/pdf/tmp/Named destination.pdf +0 -1761
  212. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin.pdf +0 -404
  213. package/src/abstract-document-exporters/__tests__/pdf/tmp/Paragraph numbering.pdf +0 -143
  214. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table.pdf +0 -133
  215. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with default alignment.pdf +0 -113
@@ -0,0 +1,201 @@
1
+ import { textCellElement, textParagraphElement, textRowElement } from "./custom-elements";
2
+
3
+ export const abstractDoc = `<xs:element name="AbstractDoc">
4
+ <xs:complexType>
5
+ <xs:sequence>
6
+ <xs:element name="StyleNames" type="StyleNames" minOccurs="0"></xs:element>
7
+ <xs:element name="Section" type="Section"></xs:element>
8
+ </xs:sequence>
9
+ </xs:complexType>
10
+ </xs:element>`;
11
+
12
+ export const section = `<xs:complexType name="Section">
13
+ <xs:choice maxOccurs="unbounded">
14
+ <xs:element name="Table" type="Table" minOccurs="0" />
15
+ <xs:element name="Group" type="Group" minOccurs="0" />
16
+ <xs:element name="PageBreak" type="PageBreak" minOccurs="0" />
17
+ <xs:element name="Paragraph" type="Paragraph" minOccurs="0" />
18
+ ${textParagraphElement}
19
+ <xs:element name="Markdown" type="Markdown" minOccurs="0" />
20
+ <xs:element name="page" type="page" minOccurs="0" maxOccurs="1"></xs:element>
21
+ </xs:choice>
22
+ </xs:complexType>`;
23
+
24
+ export const page = `<xs:complexType name="page">
25
+ <xs:annotation>
26
+ <xs:documentation>Define header and footer.</xs:documentation>
27
+ </xs:annotation>
28
+ <xs:all>
29
+ <xs:element name="style" type="MasterPageStyle" />
30
+ <xs:element name="header" type="SectionElement" minOccurs="0" />
31
+ <xs:element name="footer" type="SectionElement" minOccurs="0"/>
32
+ </xs:all>
33
+ </xs:complexType>`;
34
+
35
+ export const sectionElement = `<xs:complexType name="SectionElement">
36
+ <xs:choice maxOccurs="unbounded">
37
+ <xs:element name="Table" type="Table" minOccurs="0" />
38
+ <xs:element name="Group" type="Group" minOccurs="0" />
39
+ <xs:element name="PageBreak" type="PageBreak" minOccurs="0" />
40
+ <xs:element name="Paragraph" type="Paragraph" minOccurs="0" />
41
+ ${textParagraphElement}
42
+ <xs:element name="Markdown" type="Markdown" minOccurs="0" />
43
+ </xs:choice>
44
+ </xs:complexType>`;
45
+
46
+ export const group = `<xs:complexType name="Group">
47
+ <xs:choice maxOccurs="unbounded">
48
+ <xs:element name="Table" type="Table" minOccurs="0" />
49
+ <xs:element name="Group" type="Group" minOccurs="0" />
50
+ <xs:element name="PageBreak" type="PageBreak" minOccurs="0" />
51
+ <xs:element name="Paragraph" type="Paragraph" minOccurs="0" />
52
+ ${textParagraphElement}
53
+ <xs:element name="style" type="GroupStyle" minOccurs="0" />
54
+ </xs:choice>
55
+ <xs:attribute name="keepTogether" type="xs:boolean" />
56
+ </xs:complexType>`;
57
+
58
+ export const table = `<xs:complexType name="Table">
59
+ <xs:choice maxOccurs="unbounded">
60
+ <xs:element name="headerRows" type="headerRows" minOccurs="0" maxOccurs="1" />
61
+ <xs:element name="style" type="TableStyle" minOccurs="0" maxOccurs="1" />
62
+ <xs:sequence>
63
+ <xs:choice minOccurs="1">
64
+ <xs:element name="TableRow" type="TableRow" maxOccurs="unbounded" />
65
+ ${textRowElement}
66
+ </xs:choice>
67
+ </xs:sequence>
68
+ </xs:choice>
69
+ <xs:attribute name="styleName" type="xs:string" >
70
+ <xs:annotation>
71
+ <xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name="..." /> \\</StyleNames> \\</AbstractDoc></xs:documentation>
72
+ </xs:annotation>
73
+ </xs:attribute>
74
+ <xs:attribute name="columnWidths" type="xs:string" use="required">
75
+ <xs:annotation>
76
+ <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>
77
+ </xs:annotation>
78
+ </xs:attribute>
79
+ </xs:complexType>`;
80
+
81
+ export const headerRows = `<xs:complexType name="headerRows">
82
+ <xs:sequence>
83
+ <xs:choice minOccurs="1" maxOccurs="unbounded">
84
+ <xs:element name="TableRow" type="TableRow"/>
85
+ ${textRowElement}
86
+ </xs:choice>
87
+ </xs:sequence>
88
+ </xs:complexType>`;
89
+
90
+ export const tableRow = `<xs:complexType name="TableRow">
91
+ <xs:choice maxOccurs="unbounded">
92
+ <xs:element name="TableCell" type="TableCell" minOccurs="0" maxOccurs="unbounded" />
93
+ ${textCellElement}
94
+ </xs:choice>
95
+ </xs:complexType>`;
96
+
97
+ export const tableCell = `<xs:complexType name="TableCell">
98
+ <xs:choice maxOccurs="unbounded">
99
+ <xs:element name="style" type="TableCellStyle" minOccurs="0" maxOccurs="1" />
100
+ <xs:element name="Table" type="Table" minOccurs="0" maxOccurs="unbounded" />
101
+ <xs:element name="Group" type="Group" minOccurs="0" maxOccurs="unbounded" />
102
+ <xs:element name="PageBreak" type="PageBreak" minOccurs="0" maxOccurs="unbounded" />
103
+ <xs:element name="Paragraph" type="Paragraph" minOccurs="0" maxOccurs="unbounded" />
104
+ ${textParagraphElement}
105
+ <xs:element name="Markdown" type="Markdown" minOccurs="0" maxOccurs="unbounded" />
106
+ </xs:choice>
107
+ <xs:attribute name="rowSpan" type="xs:integer" />
108
+ <xs:attribute name="columnSpan" type="xs:integer" />
109
+ <xs:attribute name="styleName" type="xs:string" >
110
+ <xs:annotation>
111
+ <xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name="..." /> \\</StyleNames> \\</AbstractDoc></xs:documentation>
112
+ </xs:annotation>
113
+ </xs:attribute>
114
+ </xs:complexType>`;
115
+
116
+ export const markdown = `<xs:complexType name="Markdown">
117
+ <xs:attribute name="keepTogetherSections" type="xs:boolean" />
118
+ <xs:attribute name="text" type="xs:string" />
119
+ </xs:complexType>`;
120
+
121
+ export const paragraph = `<xs:complexType name="Paragraph">
122
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
123
+ <xs:element name="TextRun" type="TextRun" minOccurs="0" maxOccurs="unbounded"></xs:element>
124
+ <xs:element name="TextField" type="TextField" minOccurs="0" maxOccurs="1"></xs:element>
125
+ <xs:element name="Image" type="Image" minOccurs="0" maxOccurs="unbounded"></xs:element>
126
+ <xs:element name="HyperLink" type="HyperLink" minOccurs="0" maxOccurs="unbounded"></xs:element>
127
+ <xs:element name="LinkTarget" type="LinkTarget" minOccurs="0" maxOccurs="unbounded"></xs:element>
128
+ <xs:element name="TocSeperator" type="TocSeperator" minOccurs="0" maxOccurs="unbounded"></xs:element>
129
+ <xs:element name="style" type="ParagraphStyle" minOccurs="0" maxOccurs="1"></xs:element>
130
+ </xs:choice>
131
+ <xs:attribute name="styleName" type="xs:string" >
132
+ <xs:annotation>
133
+ <xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name="..." /> \\</StyleNames> \\</AbstractDoc></xs:documentation>
134
+ </xs:annotation>
135
+ </xs:attribute>
136
+ </xs:complexType>`;
137
+
138
+ export const hyperLink = `<xs:complexType name="HyperLink">
139
+ <xs:choice>
140
+ <xs:element name="style" type="TextStyle" minOccurs="0"/>
141
+ </xs:choice>
142
+ <xs:attribute name="styleName" type="xs:string" >
143
+ <xs:annotation>
144
+ <xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name="..." /> \\</StyleNames> \\</AbstractDoc></xs:documentation>
145
+ </xs:annotation>
146
+ </xs:attribute>
147
+ <xs:attribute name="target" type="xs:string" />
148
+ <xs:attribute name="text" type="xs:string" />
149
+ </xs:complexType>`;
150
+
151
+ export const tocSeparator = `<xs:complexType name="TocSeperator">
152
+ <xs:attribute name="width" type="xs:decimal" />
153
+ </xs:complexType>`;
154
+
155
+ export const linkTarget = `<xs:complexType name="LinkTarget">
156
+ <xs:attribute name="name" type="xs:string" />
157
+ </xs:complexType>`;
158
+
159
+ export const textRun = `<xs:complexType name="TextRun">
160
+ <xs:choice minOccurs="0" maxOccurs="1">
161
+ <xs:element name="style" type="TextStyle" />
162
+ </xs:choice>
163
+ <xs:attribute name="styleName" type="xs:string" >
164
+ <xs:annotation>
165
+ <xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name="..." /> \\</StyleNames> \\</AbstractDoc></xs:documentation>
166
+ </xs:annotation>
167
+ </xs:attribute>
168
+ <xs:attribute name="target" type="xs:string" />
169
+ <xs:attribute name="text" type="xs:string" use="required" />
170
+ </xs:complexType>`;
171
+
172
+ export const textField = `<xs:complexType name="TextField">
173
+ <xs:sequence>
174
+ <xs:element name="style" type="TextStyle" />
175
+ </xs:sequence>
176
+ <xs:attribute name="styleName" type="xs:string">
177
+ <xs:annotation>
178
+ <xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name="..." /> \\</StyleNames> \\</AbstractDoc></xs:documentation>
179
+ </xs:annotation>
180
+ </xs:attribute>
181
+ <xs:attribute name="fieldType">
182
+ <xs:simpleType>
183
+ <xs:restriction base="xs:string">
184
+ <xs:enumeration value="Date" />
185
+ <xs:enumeration value="PageNumber" />
186
+ <xs:enumeration value="TotalPages" />
187
+ <xs:enumeration value="PageNumberOf" />
188
+ </xs:restriction>
189
+ </xs:simpleType>
190
+ </xs:attribute>
191
+ <xs:attribute name="target" type="xs:string" />
192
+ <xs:attribute name="text" type="xs:string" />
193
+ </xs:complexType>`;
194
+
195
+ export const image = `<xs:complexType name="Image">
196
+ <xs:attribute name="src" type="xs:string" use="required" />
197
+ <xs:attribute name="width" type="xs:decimal" use="required" />
198
+ <xs:attribute name="height" type="xs:decimal" use="required" />
199
+ </xs:complexType>`;
200
+
201
+ export const pageBreak = `<xs:complexType name="PageBreak" />`;
@@ -0,0 +1 @@
1
+ export * from "./xsd-template";
@@ -0,0 +1,284 @@
1
+ export const StyleNames = `<xs:complexType name="StyleNames">
2
+ <xs:sequence>
3
+ <xs:element name="StyleName" minOccurs="0" maxOccurs="unbounded" />
4
+ </xs:sequence>
5
+ </xs:complexType>`;
6
+
7
+ export const StyleName = `<xs:complexType name="StyleName">
8
+ <xs:attribute name="name" type="xs:string" use="required" />
9
+ <xs:attribute name="type" use="required">
10
+ <xs:annotation>
11
+ <xs:documentation>The type of style used. One of: "GroupStyle", "TableStyle", "TableCellStyle", "ParagraphStyle", "TextStyle", </xs:documentation>
12
+ </xs:annotation>
13
+ <xs:simpleType>
14
+ <xs:restriction base="xs:string">
15
+ <xs:enumeration value="GroupStyle" />
16
+ <xs:enumeration value="TableStyle" />
17
+ <xs:enumeration value="TableCellStyle" />
18
+ <xs:enumeration value="ParagraphStyle" />
19
+ <xs:enumeration value="TextStyle" />
20
+ </xs:restriction>
21
+ </xs:simpleType>
22
+ </xs:attribute>
23
+ <xs:attribute name="margins" type="xs:string" />
24
+ <xs:attribute name="position" type="Position"/>
25
+ <xs:attribute name="background" type="xs:string" />
26
+ <xs:attribute name="border" type="xs:string" />
27
+ <xs:attribute name="borders" type="xs:string" />
28
+ <xs:attribute name="borderColor" type="xs:string" />
29
+ <xs:attribute name="borderColors" type="xs:string" />
30
+ <xs:attribute name="padding" type="xs:string" />
31
+ <xs:attribute name="verticalAlignment">
32
+ <xs:simpleType>
33
+ <xs:restriction base="xs:string">
34
+ <xs:enumeration value="Top" />
35
+ <xs:enumeration value="Middle" />
36
+ <xs:enumeration value="Bottom" />
37
+ </xs:restriction>
38
+ </xs:simpleType>
39
+ </xs:attribute>
40
+ <xs:attribute name="underline" type="xs:boolean" />
41
+ <xs:attribute name="superScript" type="xs:boolean" />
42
+ <xs:attribute name="subScript" type="xs:boolean" />
43
+ <xs:attribute name="italic" type="xs:boolean" />
44
+ <xs:attribute name="lineBreak" type="xs:boolean" />
45
+ <xs:attribute name="mediumBold" type="xs:boolean" />
46
+ <xs:attribute name="bold" type="xs:boolean" />
47
+ <xs:attribute name="fontScale" type="xs:decimal" />
48
+ <xs:attribute name="fontSize" type="xs:decimal" />
49
+ <xs:attribute name="lineGap" type="xs:decimal" />
50
+ <xs:attribute name="verticalPosition" type="xs:decimal" />
51
+ <xs:attribute name="indent" type="xs:decimal" />
52
+ <xs:attribute name="color" type="xs:string" />
53
+ <xs:attribute name="fontFamily" type="xs:string" />
54
+ <xs:attribute name="alignment">
55
+ <xs:simpleType>
56
+ <xs:restriction base="xs:string">
57
+ <xs:enumeration value="left" />
58
+ <xs:enumeration value="center" />
59
+ <xs:enumeration value="right" />
60
+ <xs:enumeration value="justify" />
61
+ </xs:restriction>
62
+ </xs:simpleType>
63
+ </xs:attribute>
64
+ <xs:attribute name="baseline">
65
+ <xs:simpleType>
66
+ <xs:restriction base="xs:string">
67
+ <xs:enumeration value="top" />
68
+ <xs:enumeration value="bottom" />
69
+ <xs:enumeration value="middle" />
70
+ <xs:enumeration value="alphabetic" />
71
+ <xs:enumeration value="hanging" />
72
+ </xs:restriction>
73
+ </xs:simpleType>
74
+ </xs:attribute>
75
+ </xs:complexType>`;
76
+
77
+ export const groupStyle = `<xs:complexType name="GroupStyle">
78
+ <xs:annotation>
79
+ <xs:documentation>Group style</xs:documentation>
80
+ </xs:annotation>
81
+ <xs:attribute name="position" type="Position">
82
+ <xs:annotation>
83
+ <xs:documentation>Alignment possible values "absolute" | "relative" </xs:documentation>
84
+ </xs:annotation>
85
+ </xs:attribute>
86
+ <xs:attribute name="margins" type="xs:string" >
87
+ <xs:annotation>
88
+ <xs:documentation>Margin "top right bottom left"</xs:documentation>
89
+ </xs:annotation>
90
+ </xs:attribute>
91
+ </xs:complexType>`;
92
+
93
+ export const tableCellStyle = `<xs:complexType name="TableCellStyle">
94
+ <xs:annotation>
95
+ <xs:documentation>Table cell style</xs:documentation>
96
+ </xs:annotation>
97
+ <xs:attribute name="background" type="xs:string" />
98
+ <xs:attribute name="border" type="xs:string" >
99
+ <xs:annotation>
100
+ <xs:documentation>Border "top right bottom left"</xs:documentation>
101
+ </xs:annotation>
102
+ </xs:attribute>
103
+ <xs:attribute name="borders" type="xs:string" >
104
+ <xs:annotation>
105
+ <xs:documentation>Border "top right bottom left"</xs:documentation>
106
+ </xs:annotation>
107
+ </xs:attribute>
108
+ <xs:attribute name="borderColor" type="xs:string" >
109
+ <xs:annotation>
110
+ <xs:documentation>Bordercolor "top right bottom left"</xs:documentation>
111
+ </xs:annotation>
112
+ </xs:attribute>
113
+ <xs:attribute name="borderColors" type="xs:string" >
114
+ <xs:annotation>
115
+ <xs:documentation>Bordercolor "top right bottom left"</xs:documentation>
116
+ </xs:annotation>
117
+ </xs:attribute>
118
+ <xs:attribute name="padding" type="xs:string" >
119
+ <xs:annotation>
120
+ <xs:documentation>Padding "top right bottom left"</xs:documentation>
121
+ </xs:annotation>
122
+ </xs:attribute>
123
+ <xs:attribute name="verticalAlignment">
124
+ <xs:annotation>
125
+ <xs:documentation>Vertical alignment possible values "Top" | "Middle" | "Bottom" </xs:documentation>
126
+ </xs:annotation>
127
+ <xs:simpleType>
128
+ <xs:restriction base="xs:string">
129
+ <xs:enumeration value="Top" />
130
+ <xs:enumeration value="Middle" />
131
+ <xs:enumeration value="Bottom" />
132
+ </xs:restriction>
133
+ </xs:simpleType>
134
+ </xs:attribute>
135
+ </xs:complexType>`;
136
+
137
+ export const tableStyle = `<xs:complexType name="TableStyle">
138
+ <xs:annotation>
139
+ <xs:documentation>Table style</xs:documentation>
140
+ </xs:annotation>
141
+ <xs:sequence>
142
+ <xs:element name="cellStyle" type="TableCellStyle" minOccurs="0" maxOccurs="1" />
143
+ </xs:sequence>
144
+ <xs:attribute name="position" type="Position">
145
+ <xs:annotation>
146
+ <xs:documentation>Alignment possible values "absolute" | "relative" </xs:documentation>
147
+ </xs:annotation>
148
+ </xs:attribute>
149
+ <xs:attribute name="margins" type="xs:string" >
150
+ <xs:annotation>
151
+ <xs:documentation>Margin "top right bottom left"</xs:documentation>
152
+ </xs:annotation>
153
+ </xs:attribute>
154
+ <xs:attribute name="alignment">
155
+ <xs:annotation>
156
+ <xs:documentation>Alignment possible values "Left" | "Center" | "Right" </xs:documentation>
157
+ </xs:annotation>
158
+ <xs:simpleType>
159
+ <xs:restriction base="xs:string">
160
+ <xs:enumeration value="Left" />
161
+ <xs:enumeration value="Center" />
162
+ <xs:enumeration value="Right" />
163
+ </xs:restriction>
164
+ </xs:simpleType>
165
+ </xs:attribute>
166
+ </xs:complexType>`;
167
+
168
+ export const paragraphStyle = `<xs:complexType name="ParagraphStyle">
169
+ <xs:annotation>
170
+ <xs:documentation>Paragraph style</xs:documentation>
171
+ </xs:annotation>
172
+ <xs:sequence>
173
+ <xs:element name="textStyle" type="TextStyle" minOccurs="0" />
174
+ </xs:sequence>
175
+ <xs:attribute name="position" type="Position">
176
+ <xs:annotation>
177
+ <xs:documentation>Alignment possible values "absolute" | "relative" </xs:documentation>
178
+ </xs:annotation>
179
+ </xs:attribute>
180
+ <xs:attribute name="margins" type="xs:string" >
181
+ <xs:annotation>
182
+ <xs:documentation>Margin "top right bottom left"</xs:documentation>
183
+ </xs:annotation>
184
+ </xs:attribute>
185
+ <xs:attribute name="alignment">
186
+ <xs:annotation>
187
+ <xs:documentation>Alignment possible values "Start" | "Center" | "End" | "Justify" </xs:documentation>
188
+ </xs:annotation>
189
+ <xs:simpleType>
190
+ <xs:restriction base="xs:string">
191
+ <xs:enumeration value="Start" />
192
+ <xs:enumeration value="Center" />
193
+ <xs:enumeration value="End" />
194
+ <xs:enumeration value="Justify" />
195
+ </xs:restriction>
196
+ </xs:simpleType>
197
+ </xs:attribute>
198
+ </xs:complexType>`;
199
+
200
+ export const textStyle = `<xs:complexType name="TextStyle">
201
+ <xs:annotation>
202
+ <xs:documentation>Text style</xs:documentation>
203
+ </xs:annotation>
204
+ <xs:attribute name="underline" type="xs:boolean" />
205
+ <xs:attribute name="superScript" type="xs:boolean" />
206
+ <xs:attribute name="subScript" type="xs:boolean" />
207
+ <xs:attribute name="italic" type="xs:boolean" />
208
+ <xs:attribute name="lineBreak" type="xs:boolean" />
209
+ <xs:attribute name="mediumBold" type="xs:boolean" />
210
+ <xs:attribute name="bold" type="xs:boolean" />
211
+ <xs:attribute name="fontScale" type="xs:decimal" />
212
+ <xs:attribute name="fontSize" type="xs:decimal" />
213
+ <xs:attribute name="lineGap" type="xs:decimal" />
214
+ <xs:attribute name="verticalPosition" type="xs:decimal" />
215
+ <xs:attribute name="indent" type="xs:decimal" />
216
+ <xs:attribute name="color" type="xs:string" />
217
+ <xs:attribute name="fontFamily" type="xs:string" />
218
+ <xs:attribute name="alignment">
219
+ <xs:simpleType>
220
+ <xs:restriction base="xs:string">
221
+ <xs:enumeration value="left" />
222
+ <xs:enumeration value="center" />
223
+ <xs:enumeration value="right" />
224
+ <xs:enumeration value="justify" />
225
+ </xs:restriction>
226
+ </xs:simpleType>
227
+ </xs:attribute>
228
+ <xs:attribute name="baseline">
229
+ <xs:simpleType>
230
+ <xs:restriction base="xs:string">
231
+ <xs:enumeration value="top" />
232
+ <xs:enumeration value="bottom" />
233
+ <xs:enumeration value="middle" />
234
+ <xs:enumeration value="alphabetic" />
235
+ <xs:enumeration value="hanging" />
236
+ </xs:restriction>
237
+ </xs:simpleType>
238
+ </xs:attribute>
239
+ </xs:complexType>`;
240
+
241
+ export const masterPageStyle = `<xs:complexType name="MasterPageStyle">
242
+ <xs:all>
243
+ <xs:element name="headerMargins" type="LayoutFoundation" />
244
+ <xs:element name="footerMargins" type="LayoutFoundation" />
245
+ <xs:element name="contentMargins" type="LayoutFoundation" />
246
+ </xs:all>
247
+ <xs:attribute name="paperSize" use="required">
248
+ <xs:simpleType>
249
+ <xs:annotation>
250
+ <xs:documentation>PaperSize possible values "A4" | "Letter" </xs:documentation>
251
+ </xs:annotation>
252
+ <xs:restriction base="xs:string">
253
+ <xs:enumeration value="A4" />
254
+ <xs:enumeration value="Letter" />
255
+ </xs:restriction>
256
+ </xs:simpleType>
257
+ </xs:attribute>
258
+ <xs:attribute name="orientation">
259
+ <xs:simpleType>
260
+ <xs:restriction base="xs:string">
261
+ <xs:enumeration value="Portrait" />
262
+ <xs:enumeration value="Landscape" />
263
+ </xs:restriction>
264
+ </xs:simpleType>
265
+ </xs:attribute>
266
+ <xs:attribute name="noTopBottomMargin" type="xs:boolean" />
267
+ </xs:complexType>`;
268
+
269
+ export const position = `<xs:simpleType name="Position">
270
+ <xs:annotation>
271
+ <xs:documentation>Alignment possible values "absolute" | "relative" </xs:documentation>
272
+ </xs:annotation>
273
+ <xs:restriction base="xs:string">
274
+ <xs:enumeration value="absolute" />
275
+ <xs:enumeration value="relative" />
276
+ </xs:restriction>
277
+ </xs:simpleType>`;
278
+
279
+ export const layoutFoundation = `<xs:complexType name="LayoutFoundation">
280
+ <xs:attribute name="top" type="xs:decimal" />
281
+ <xs:attribute name="bottom" type="xs:decimal" />
282
+ <xs:attribute name="left" type="xs:decimal" />
283
+ <xs:attribute name="right" type="xs:decimal" />
284
+ </xs:complexType>`;
@@ -0,0 +1,51 @@
1
+ import * as Elements from "./elements";
2
+ import * as Styles from "./styles";
3
+ import * as CustomElements from "./custom-elements";
4
+
5
+ const commonParts = `${Styles.layoutFoundation}
6
+ ${Elements.section}
7
+ ${Elements.sectionElement}
8
+ ${Elements.page}
9
+ ${Elements.pageBreak}
10
+ ${Elements.image}
11
+ ${Elements.textField}
12
+ ${Elements.textRun}
13
+ ${Elements.hyperLink}
14
+ ${Elements.tocSeparator}
15
+ ${Elements.linkTarget}
16
+ ${Styles.position}
17
+ ${Styles.masterPageStyle}
18
+ ${Elements.group}
19
+ ${Styles.groupStyle}
20
+ ${Styles.textStyle}
21
+ ${Styles.paragraphStyle}
22
+ ${Styles.tableStyle}
23
+ ${Elements.paragraph}
24
+ ${Elements.markdown}
25
+ ${Styles.tableCellStyle}
26
+ ${Elements.tableRow}
27
+ ${Elements.headerRows}
28
+ ${Elements.table}
29
+ ${Elements.tableCell}
30
+ ${CustomElements.textParagraph}
31
+ ${CustomElements.textCell}
32
+ ${CustomElements.textRow}`;
33
+
34
+ export const xsd = `<?xml version="1.0" encoding="UTF-8"?>
35
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
36
+ ${commonParts}
37
+ ${Styles.StyleNames}
38
+ ${Styles.StyleName}
39
+ ${Elements.abstractDoc}
40
+ </xs:schema>`;
41
+
42
+ export const xsdPartial = `<?xml version="1.0" encoding="UTF-8"?>
43
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
44
+ ${Elements.section}
45
+ ${commonParts}
46
+ <xs:element name="Table" type="Table" />
47
+ <xs:element name="Group" type="Group" />
48
+ <xs:element name="PageBreak" type="PageBreak" />
49
+ <xs:element name="Paragraph" type="Paragraph" />
50
+ <xs:element name="Markdown" type="Markdown" />
51
+ </xs:schema>`;
package/src/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as AbstractDoc from "./abstract-document/index";
2
2
  import * as AbstractDocExporters from "./abstract-document-exporters/index";
3
3
  import * as AbstractDocJsx from "./abstract-document-jsx/index";
4
+ import * as AbstractDocXml from "./abstract-document-xml/index";
4
5
 
5
- export { AbstractDoc, AbstractDocExporters, AbstractDocJsx };
6
+ export { AbstractDoc, AbstractDocExporters, AbstractDocJsx, AbstractDocXml };
@@ -1,91 +0,0 @@
1
- %PDF-1.3
2
- %����
3
- 7 0 obj
4
- <<
5
- /Type /Page
6
- /Parent 1 0 R
7
- /MediaBox [0 0 595 842]
8
- /Contents 5 0 R
9
- /Resources 6 0 R
10
- >>
11
- endobj
12
- 6 0 obj
13
- <<
14
- /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
15
- >>
16
- endobj
17
- 5 0 obj
18
- <<
19
- /Length 18
20
- >>
21
- stream
22
- 1 0 0 -1 0 842 cm
23
-
24
- endstream
25
- endobj
26
- 9 0 obj
27
- (PDFKit)
28
- endobj
29
- 10 0 obj
30
- (PDFKit)
31
- endobj
32
- 11 0 obj
33
- (D:20211026062206Z)
34
- endobj
35
- 8 0 obj
36
- <<
37
- /Producer 9 0 R
38
- /Creator 10 0 R
39
- /CreationDate 11 0 R
40
- >>
41
- endobj
42
- 4 0 obj
43
- <<
44
- >>
45
- endobj
46
- 3 0 obj
47
- <<
48
- /Type /Catalog
49
- /Pages 1 0 R
50
- /Names 2 0 R
51
- >>
52
- endobj
53
- 1 0 obj
54
- <<
55
- /Type /Pages
56
- /Count 1
57
- /Kids [7 0 R]
58
- >>
59
- endobj
60
- 2 0 obj
61
- <<
62
- /Dests <<
63
- /Names [
64
- ]
65
- >>
66
- >>
67
- endobj
68
- xref
69
- 0 12
70
- 0000000000 65535 f
71
- 0000000496 00000 n
72
- 0000000553 00000 n
73
- 0000000434 00000 n
74
- 0000000413 00000 n
75
- 0000000186 00000 n
76
- 0000000119 00000 n
77
- 0000000015 00000 n
78
- 0000000339 00000 n
79
- 0000000254 00000 n
80
- 0000000278 00000 n
81
- 0000000303 00000 n
82
- trailer
83
- <<
84
- /Size 12
85
- /Root 3 0 R
86
- /Info 8 0 R
87
- /ID [<6733d8a6f151630250c0080ac1f4ae9a> <6733d8a6f151630250c0080ac1f4ae9a>]
88
- >>
89
- startxref
90
- 600
91
- %%EOF