abstract-document 6.12.3 → 6.12.5

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 (145) hide show
  1. package/lib/abstract-document/atoms/image.d.ts.map +1 -1
  2. package/lib/abstract-document/atoms/image.js.map +1 -1
  3. package/lib/abstract-document/atoms/text-field.d.ts.map +1 -1
  4. package/lib/abstract-document/atoms/text-field.js +1 -8
  5. package/lib/abstract-document/atoms/text-field.js.map +1 -1
  6. package/lib/abstract-document/primitives/image-resource.d.ts.map +1 -1
  7. package/lib/abstract-document/primitives/image-resource.js +1 -5
  8. package/lib/abstract-document/primitives/image-resource.js.map +1 -1
  9. package/lib/abstract-document-xml/abstract-doc-of-xml/creator.d.ts.map +1 -1
  10. package/lib/abstract-document-xml/abstract-doc-of-xml/creator.js +36 -27
  11. package/lib/abstract-document-xml/abstract-doc-of-xml/creator.js.map +1 -1
  12. package/lib/abstract-document-xml/abstract-doc-of-xml/custom-elements.d.ts.map +1 -1
  13. package/lib/abstract-document-xml/abstract-doc-of-xml/custom-elements.js +10 -4
  14. package/lib/abstract-document-xml/abstract-doc-of-xml/custom-elements.js.map +1 -1
  15. package/lib/abstract-document-xml/xsd-template/custom-elements.d.ts +6 -6
  16. package/lib/abstract-document-xml/xsd-template/custom-elements.d.ts.map +1 -1
  17. package/lib/abstract-document-xml/xsd-template/custom-elements.js +36 -6
  18. package/lib/abstract-document-xml/xsd-template/custom-elements.js.map +1 -1
  19. package/lib/abstract-document-xml/xsd-template/elements.d.ts +1 -1
  20. package/lib/abstract-document-xml/xsd-template/elements.d.ts.map +1 -1
  21. package/lib/abstract-document-xml/xsd-template/elements.js +2 -2
  22. package/package.json +2 -2
  23. package/src/abstract-document/atoms/image.ts +1 -4
  24. package/src/abstract-document/atoms/text-field.ts +2 -14
  25. package/src/abstract-document/primitives/image-resource.ts +2 -10
  26. package/src/abstract-document-exporters/__tests__/docx2/tmp/Group.docx +0 -0
  27. 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
  28. 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
  29. 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
  30. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple images.docx +0 -0
  31. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple tables.docx +0 -0
  32. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Center alignment.docx +0 -0
  33. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with End alignment.docx +0 -0
  34. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment that linebreaks.docx +0 -0
  35. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment.docx +0 -0
  36. package/src/abstract-document-exporters/__tests__/docx2/tmp/Page numbering.docx +0 -0
  37. 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
  38. package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table without rows.docx +0 -0
  39. package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table.docx +0 -0
  40. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single hyperlink.docx +0 -0
  41. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single image.docx +0 -0
  42. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment that linebreaks.docx +0 -0
  43. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment.docx +0 -0
  44. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment that linebreaks.docx +0 -0
  45. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment.docx +0 -0
  46. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment that linebreaks.docx +0 -0
  47. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment.docx +0 -0
  48. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun.docx +0 -0
  49. package/src/abstract-document-exporters/__tests__/docx2/tmp/hello with Arial font.docx +0 -0
  50. package/src/abstract-document-exporters/__tests__/docx2/tmp/hello.docx +0 -0
  51. package/src/abstract-document-exporters/__tests__/docx2/tmp/letter-dimensions.docx +0 -0
  52. package/src/abstract-document-exporters/__tests__/docx2/tmp/page-orientation-landscape.docx +0 -0
  53. package/src/abstract-document-exporters/__tests__/docx2/tmp/page-orientation-portrait.docx +0 -0
  54. package/src/abstract-document-exporters/__tests__/docx2/tmp/tocSeparator.docx +0 -0
  55. package/src/abstract-document-exporters/__tests__/docx2/tmp/world.docx +0 -0
  56. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position group.pdf +2 -2
  57. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position header and footer.pdf +2 -2
  58. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position paragraph.pdf +2 -2
  59. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position section in group.pdf +2 -2
  60. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position section in table.pdf +2 -2
  61. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position table.pdf +2 -2
  62. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Paragraphs.pdf +2 -2
  63. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Tables.pdf +2 -2
  64. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group no keeptogether.pdf +2 -2
  65. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group too big for one page.pdf +2 -2
  66. package/src/abstract-document-exporters/__tests__/pdf/tmp/Header and footer.pdf +2 -2
  67. package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal linktarget.pdf +2 -2
  68. package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal.pdf +2 -2
  69. package/src/abstract-document-exporters/__tests__/pdf/tmp/Manual line break.pdf +2 -2
  70. package/src/abstract-document-exporters/__tests__/pdf/tmp/Manual line breaks empty lines.pdf +2 -2
  71. package/src/abstract-document-exporters/__tests__/pdf/tmp/Margins header body footer.pdf +2 -2
  72. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun no underline.pdf +2 -2
  73. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun with underline.pdf +2 -2
  74. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun.pdf +2 -2
  75. 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
  76. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images overflow.pdf +0 -0
  77. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images.pdf +0 -0
  78. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Center alignment.pdf +2 -2
  79. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with End alignment.pdf +2 -2
  80. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment that linebreaks.pdf +2 -2
  81. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment.pdf +2 -2
  82. package/src/abstract-document-exporters/__tests__/pdf/tmp/Page numbering.pdf +2 -2
  83. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table row that doesnt fit page.pdf +2 -2
  84. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table single row.pdf +2 -2
  85. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with group.pdf +2 -2
  86. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header 2.pdf +2 -2
  87. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header.pdf +2 -2
  88. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin bottom.pdf +2 -2
  89. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top single table.pdf +2 -2
  90. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top.pdf +2 -2
  91. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan multipages.pdf +2 -2
  92. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan.pdf +2 -2
  93. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all auto.pdf +2 -2
  94. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all fix.pdf +2 -2
  95. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table background.pdf +2 -2
  96. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of image.pdf +0 -0
  97. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of text.pdf +2 -2
  98. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table center alignment.pdf +2 -2
  99. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table colSpan and rowSpan.pdf +2 -2
  100. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table minimal row height.pdf +2 -2
  101. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table mix auto fix.pdf +2 -2
  102. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table padding.pdf +2 -2
  103. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table right alignment.pdf +2 -2
  104. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table row alignment.pdf +2 -2
  105. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell with wrapping.pdf +2 -2
  106. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell.pdf +2 -2
  107. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with default colored borders.pdf +2 -2
  108. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with header.pdf +2 -2
  109. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with multi colored borders.pdf +2 -2
  110. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with single colored borders.pdf +2 -2
  111. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single date.pdf +2 -2
  112. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single figure.pdf +2 -2
  113. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink centered.pdf +2 -2
  114. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink no underline.pdf +2 -2
  115. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink right aligned.pdf +2 -2
  116. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink.pdf +2 -2
  117. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image from URL.pdf +0 -0
  118. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color hex.pdf +2 -2
  119. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color name.pdf +2 -2
  120. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color url.pdf +2 -2
  121. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg dasharray.pdf +2 -2
  122. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image.pdf +0 -0
  123. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline alphabetic.pdf +2 -2
  124. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline bottom.pdf +2 -2
  125. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline hanging.pdf +2 -2
  126. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline middle.pdf +2 -2
  127. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline top.pdf +2 -2
  128. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment that linebreaks.pdf +2 -2
  129. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment.pdf +2 -2
  130. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment that linebreaks.pdf +2 -2
  131. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment.pdf +2 -2
  132. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Justify alignment.pdf +2 -2
  133. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment that linebreaks.pdf +2 -2
  134. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment.pdf +2 -2
  135. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with super and subscripts.pdf +2 -2
  136. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun.pdf +2 -2
  137. package/src/abstract-document-exporters/__tests__/pdf/tmp/Table of content separator.pdf +2 -2
  138. package/src/abstract-document-exporters/__tests__/pdf/tmp/hello with roman font.pdf +2 -2
  139. package/src/abstract-document-exporters/__tests__/pdf/tmp/hello.pdf +2 -2
  140. package/src/abstract-document-exporters/__tests__/pdf/tmp/pagebreak.pdf +2 -2
  141. package/src/abstract-document-exporters/__tests__/pdf/tmp/world.pdf +2 -2
  142. package/src/abstract-document-xml/abstract-doc-of-xml/creator.ts +37 -25
  143. package/src/abstract-document-xml/abstract-doc-of-xml/custom-elements.tsx +11 -9
  144. package/src/abstract-document-xml/xsd-template/custom-elements.ts +36 -6
  145. package/src/abstract-document-xml/xsd-template/elements.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/atoms/image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,CAK/C"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/atoms/image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,CAE/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/abstract-document/atoms/image.ts"],"names":[],"mappings":";;;AAeA,SAAgB,MAAM,CAAC,KAAiB;IACtC,uBACE,IAAI,EAAE,OAAO,IACV,KAAK,EACR;AACJ,CAAC;AALD,wBAKC"}
1
+ {"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/abstract-document/atoms/image.ts"],"names":[],"mappings":";;;AAeA,SAAgB,MAAM,CAAC,KAAiB;IACtC,uBAAS,IAAI,EAAE,OAAO,IAAK,KAAK,EAAG;AACrC,CAAC;AAFD,wBAEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/atoms/text-field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAElD,oBAAY,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,cAAc,CAAC;AAE9E,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAevD"}
1
+ {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/atoms/text-field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAElD,oBAAY,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,cAAc,CAAC;AAE9E,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAGvD"}
@@ -23,14 +23,7 @@ exports.create = void 0;
23
23
  const TextStyle = __importStar(require("../styles/text-style"));
24
24
  function create(props) {
25
25
  const { styleName = "", fieldType, style = TextStyle.create(), target = "" } = props;
26
- return {
27
- type: "TextField",
28
- styleName,
29
- fieldType,
30
- style,
31
- target,
32
- text: ""
33
- };
26
+ return { type: "TextField", styleName, fieldType, style, target, text: "" };
34
27
  }
35
28
  exports.create = create;
36
29
  //# sourceMappingURL=text-field.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../../src/abstract-document/atoms/text-field.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAkD;AAoBlD,SAAgB,MAAM,CAAC,KAAqB;IAC1C,MAAM,EACJ,SAAS,GAAG,EAAE,EACd,SAAS,EACT,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,EAC1B,MAAM,GAAG,EAAE,EACZ,GAAG,KAAK,CAAC;IACV,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,SAAS;QACT,SAAS;QACT,KAAK;QACL,MAAM;QACN,IAAI,EAAE,EAAE;KACT,CAAC;AACJ,CAAC;AAfD,wBAeC"}
1
+ {"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../../src/abstract-document/atoms/text-field.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAkD;AAoBlD,SAAgB,MAAM,CAAC,KAAqB;IAC1C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,SAAS,EAAE,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IACrF,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AAC9E,CAAC;AAHD,wBAGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"image-resource.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/primitives/image-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,oBAAY,IAAI,GAAG,MAAM,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,MAAM,CAAC,EACrB,EAAE,EACF,aAAa,EACb,WAAiB,EAClB,EAAE,kBAAkB,GAAG,aAAa,CAMpC"}
1
+ {"version":3,"file":"image-resource.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/primitives/image-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,oBAAY,IAAI,GAAG,MAAM,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,MAAM,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,WAAiB,EAAE,EAAE,kBAAkB,GAAG,aAAa,CAElG"}
@@ -2,11 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.create = void 0;
4
4
  function create({ id, abstractImage, renderScale = 1.0 }) {
5
- return {
6
- id,
7
- abstractImage,
8
- renderScale
9
- };
5
+ return { id, abstractImage, renderScale };
10
6
  }
11
7
  exports.create = create;
12
8
  //# sourceMappingURL=image-resource.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-resource.js","sourceRoot":"","sources":["../../../src/abstract-document/primitives/image-resource.ts"],"names":[],"mappings":";;;AAgBA,SAAgB,MAAM,CAAC,EACrB,EAAE,EACF,aAAa,EACb,WAAW,GAAG,GAAG,EACE;IACnB,OAAO;QACL,EAAE;QACF,aAAa;QACb,WAAW;KACZ,CAAC;AACJ,CAAC;AAVD,wBAUC"}
1
+ {"version":3,"file":"image-resource.js","sourceRoot":"","sources":["../../../src/abstract-document/primitives/image-resource.ts"],"names":[],"mappings":";;;AAgBA,SAAgB,MAAM,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,WAAW,GAAG,GAAG,EAAsB;IACjF,OAAO,EAAE,EAAE,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC;AAC5C,CAAC;AAFD,wBAEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"creator.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/creator.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,IAAI,EAcJ,KAAK,EACL,aAAa,IAAI,eAAe,EAChC,SAAS,EACV,MAAM,+BAA+B,CAAC;AAgBvC,oBAAY,WAAW,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC;AAE1G,oBAAY,aAAa,GAAG,eAAe,CAAC,aAAa,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAElH,oBAAY,YAAY,GAAG;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,CACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EACrC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC/B,MAAM,CAAC,MAAM,EAAE,WAAW,CA+C9B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CA4KrD,CAAC"}
1
+ {"version":3,"file":"creator.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/creator.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,IAAI,EAcJ,KAAK,EACL,aAAa,IAAI,eAAe,EAChC,SAAS,EACV,MAAM,+BAA+B,CAAC;AAgBvC,oBAAY,WAAW,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC;AAE1G,oBAAY,aAAa,GAAG,eAAe,CAAC,aAAa,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAElH,oBAAY,YAAY,GAAG;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,CACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EACrC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC/B,MAAM,CAAC,MAAM,EAAE,WAAW,CAqC9B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CA4KrD,CAAC"}
@@ -11,41 +11,29 @@ const creators = (images, fonts, styleNames) => {
11
11
  }
12
12
  return index_1.AbstractDoc.create(props, children);
13
13
  },
14
- Paragraph: (props, children) => index_1.Paragraph.create(props, children),
15
14
  Section: (props, children) => index_1.Section.create(props, children),
16
- TextRun: (props) => index_1.TextRun.create(props),
15
+ Paragraph: (props, children) => index_1.Paragraph.create(props, children),
17
16
  TextRow: (props) => (0, custom_elements_1.TextRow)(props, styleNames),
18
17
  TextCell: (props) => (0, custom_elements_1.TextCell)(props, styleNames),
19
18
  TextParagraph: (props) => (0, custom_elements_1.TextParagraph)(props, styleNames),
20
- ImageRow: (props) => (0, custom_elements_1.ImageRow)(props, styleNames),
21
- ImageCell: (props) => (0, custom_elements_1.ImageCell)(props, styleNames),
22
- ImageParagraph: (props) => (0, custom_elements_1.ImageParagraph)(props, styleNames),
19
+ TextRun: (props) => index_1.TextRun.create(props),
20
+ ImageRow: (props) => {
21
+ mutateImageProps(images, props);
22
+ return (0, custom_elements_1.ImageRow)(props, styleNames);
23
+ },
24
+ ImageCell: (props) => {
25
+ return (0, custom_elements_1.ImageCell)(props, styleNames);
26
+ },
27
+ ImageParagraph: (props) => {
28
+ return (0, custom_elements_1.ImageParagraph)(props, styleNames);
29
+ },
30
+ Image: (props) => {
31
+ return index_1.Image.create(props);
32
+ },
23
33
  Table: (props, children) => index_1.Table.create(props, children),
24
34
  TableRow: (props, children) => index_1.TableRow.create(props, children),
25
35
  TableCell: (props, children) => index_1.TableCell.create(props, children),
26
36
  TextField: (props) => index_1.TextField.create(props),
27
- Image: (props) => {
28
- var _a;
29
- const image = images[(_a = props.src) !== null && _a !== void 0 ? _a : ""];
30
- if (image) {
31
- if (image.width && image.height) {
32
- props.width = image.width;
33
- props.height = image.height;
34
- }
35
- else {
36
- const scaleX = props.width / image.abstractImage.size.width;
37
- const scaleY = props.height / image.abstractImage.size.height;
38
- if (scaleX < scaleY) {
39
- props.height = props.height * (scaleX / scaleY);
40
- }
41
- else {
42
- props.width = props.width * (scaleY / scaleX);
43
- }
44
- }
45
- props.imageResource = images[props.src];
46
- }
47
- return index_1.Image.create(props);
48
- },
49
37
  Group: (props, children) => index_1.Group.create(props, children),
50
38
  PageBreak: () => index_1.PageBreak.create(),
51
39
  Markdown: (props) => index_1.Markdown.create(props),
@@ -217,4 +205,25 @@ exports.propsCreators = {
217
205
  return borderColors;
218
206
  },
219
207
  };
208
+ function mutateImageProps(images, props) {
209
+ var _a;
210
+ const image = images[(_a = props.src) !== null && _a !== void 0 ? _a : ""];
211
+ if (image) {
212
+ if (image.width && image.height) {
213
+ props.width = image.width;
214
+ props.height = image.height;
215
+ }
216
+ else {
217
+ const scaleX = props.width / image.abstractImage.size.width;
218
+ const scaleY = props.height / image.abstractImage.size.height;
219
+ if (scaleX < scaleY) {
220
+ props.height = props.height * (scaleX / scaleY);
221
+ }
222
+ else {
223
+ props.width = props.width * (scaleY / scaleX);
224
+ }
225
+ }
226
+ props.imageResource = images[props.src];
227
+ }
228
+ }
220
229
  //# sourceMappingURL=creator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"creator.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/creator.ts"],"names":[],"mappings":";;;AAAA,yDAqBuC;AACvC,uDAa2B;AAYpB,MAAM,QAAQ,GAIc,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;IAC/D,OAAO;QACL,WAAW,EAAE,CAAC,KAAK,EAAE,QAAwC,EAAE,EAAE;YAC/D,IAAI,KAAK,EAAE;gBACT,KAAK,CAAC,KAAK,GAAG,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,SAAS,CAAC;aAClC;YACD,OAAO,mBAAW,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAC7C,CAAC;QACD,SAAS,EAAE,CAAC,KAAK,EAAE,QAAkC,EAAE,EAAE,CAAC,iBAAS,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC;QAC3F,OAAO,EAAE,CAAC,KAAK,EAAE,QAAsD,EAAE,EAAE,CAAC,eAAO,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC;QAC3G,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,eAAO,CAAC,MAAM,CAAC,KAAwC,CAAC;QAC5E,OAAO,EAAE,CAAC,KAAmB,EAAE,EAAE,CAAC,IAAA,yBAAO,EAAC,KAAK,EAAE,UAAU,CAAC;QAC5D,QAAQ,EAAE,CAAC,KAAoB,EAAE,EAAE,CAAC,IAAA,0BAAQ,EAAC,KAAK,EAAE,UAAU,CAAC;QAC/D,aAAa,EAAE,CAAC,KAAyB,E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C,CAAC;oBACrC,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;oBACvC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;oBACxC,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;oBAC5B,MAAM;gBACR;oBACE,MAAM;aACT;QACH,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,YAAY,EAAE,CAAC,KAAwC,EAAW,EAAE;QAClE,MAAM,YAAY,GAA4B,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QAC3F,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,KAAK,EAAE,EAAE;YAC5D,QAAQ,KAAK,EAAE;gBACb,KAAK,CAAC;oBACJ,YAAY,CAAC,GAAG,GAAG,IAAI,CAAC;oBACxB,MAAM;gBACR,KAAK,CAAC;oBACJ,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC;oBAC1B,MAAM;gBACR,KAAK,CAAC;oBACJ,YAAY,CAAC,MAAM,GAAG,IAAI,CAAC;oBAC3B,MAAM;gBACR,KAAK,CAAC;oBACJ,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;oBACzB,MAAM;gBACR;oBACE,MAAM;aACT;QACH,CAAC,CAAC,CAAC;QACH,OAAO,YAAY,CAAC;IACtB,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"creator.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/creator.ts"],"names":[],"mappings":";;;AAEA,yDAqBuC;AACvC,uDAa2B;AAYpB,MAAM,QAAQ,GAIc,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;IAC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CAAC,CAAC;IAClD,IAAI,KAAK,EAAE;QACT,IAAI,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,EAAE;YAC/B,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YAC1B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;SAC7B;aAAM;YACL,MAAM,MAAM,GAAI,KAAK,CAAC,KAAgB,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC;YACxE,MAAM,MAAM,GAAI,KAAK,CAAC,MAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;YAC1E,IAAI,MAAM,GAAG,MAAM,EAAE;gBACnB,KAAK,CAAC,MAAM,GAAI,KAAK,CAAC,MAAiB,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;aAC7D;iBAAM;gBACL,KAAK,CAAC,KAAK,GAAI,KAAK,CAAC,KAAgB,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;aAC3D;SACF;QAED,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,GAAa,CAAC,CAAC;KACnD;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"custom-elements.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/custom-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,cAAc,EACd,cAAc,EACd,aAAa,EAEb,SAAS,EACT,SAAS,EACT,QAAQ,EAET,MAAM,+BAA+B,CAAC;AAEvC,aAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7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KpH;AAED,oBAAY,aAAa,GAAG,cAAc,GAAG,EAAE,CAAC;AAEhD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAEzG;AAED,oBAAY,cAAc,GAAG;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC;IACnD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B,GAAG,mBAAmB,CAAC;AAExB,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,SAAS,CAS5G;AAED,oBAAY,mBAAmB,GAAG;IAChC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,aAAa,GAAG,SAAS,CAAC;IACxD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC;IACxD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,mBAAmB,EAC1B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACrC,SAAS,CAAC,SAAS,GAAG,SAAS,CAQjC"}
@@ -49,16 +49,22 @@ function ImageCell(props, styleNameTypes) {
49
49
  const { image, width, height, paragraphStyle, cellStyle, columnSpan, rowSpan } = props;
50
50
  const styleNames = extractStyleNames(props.styleNames, styleNameTypes);
51
51
  const imageElement = image && index_1.Image.create({ imageResource: image, width, height });
52
- const paragraph = imageElement && index_1.Paragraph.create({ style: paragraphStyle, styleName: styleNames.ParagraphStyle }, [imageElement]);
53
- return index_1.TableCell.create({ columnSpan, rowSpan, style: cellStyle, styleName: styleNames.TableCellStyle }, paragraph && [paragraph]);
52
+ const pararaphProps = { style: paragraphStyle, styleName: styleNames.ParagraphStyle };
53
+ const paragraph = imageElement
54
+ ? index_1.Paragraph.create(pararaphProps, [imageElement])
55
+ : index_1.Paragraph.create(pararaphProps, [ImageMissing]);
56
+ return index_1.TableCell.create({ columnSpan, rowSpan, style: cellStyle, styleName: styleNames.TableCellStyle }, [paragraph]);
54
57
  }
55
58
  exports.ImageCell = ImageCell;
56
59
  function ImageParagraph(props, styleNameTypes) {
57
60
  const { image, width, height, paragraphStyle } = props;
58
61
  const styleNames = extractStyleNames(props.styleNames, styleNameTypes);
59
62
  const imageElement = image && index_1.Image.create({ imageResource: image, width, height });
60
- const paragraph = imageElement && index_1.Paragraph.create({ style: paragraphStyle, styleName: styleNames.ParagraphStyle }, [imageElement]);
61
- return paragraph;
63
+ const pararaphProps = { style: paragraphStyle, styleName: styleNames.ParagraphStyle };
64
+ return imageElement
65
+ ? index_1.Paragraph.create(pararaphProps, [imageElement])
66
+ : index_1.Paragraph.create(pararaphProps, [ImageMissing]);
62
67
  }
63
68
  exports.ImageParagraph = ImageParagraph;
69
+ const ImageMissing = index_1.TextRun.create({ text: "Image missing" });
64
70
  //# sourceMappingURL=custom-elements.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-elements.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/custom-elements.tsx"],"names":[],"mappings":";;;AAAA,yDAUuC;AAUvC,MAAM,cAAc,GAA4B;IAC9C,cAAc,EAAE,IAAI;IACpB,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;CACjB,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAA8B,EAC9B,cAAsC;IAEtC,MAAM,KAAK,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,CAA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E,UAAU,CAAC,cAAc,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IACpH,OAAO,iBAAS,CAAC,MAAM,CACrB,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,EAC/E,SAAS,IAAI,CAAC,SAAS,CAAC,CACzB,CAAC;AACJ,CAAC;AAVD,8BAUC;AAUD,SAAgB,cAAc,CAC5B,KAA0B,EAC1B,cAAsC;IAEtC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IACvD,MAAM,UAAU,GAAG,iBAAiB,CAAC,KAAK,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACvE,MAAM,YAAY,GAAG,KAAK,IAAI,aAAK,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACpF,MAAM,SAAS,GACb,YAAY,IAAI,iBAAS,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IACpH,OAAO,SAAS,CAAC;AACnB,CAAC;AAVD,wCAUC"}
1
+ {"version":3,"file":"custom-elements.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/abstract-doc-of-xml/custom-elements.tsx"],"names":[],"mappings":";;;AAAA,yDAUuC;AAUvC,MAAM,cAAc,GAA4B;IAC9C,cAAc,EAAE,IAAI;IACpB,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;CACjB,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAA8B,EAC9B,cAAsC;IAEtC,MAAM,KAAK,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,C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AC5B,CAAC,CAAC,iBAAS,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,YAAY,CAAC,CAAC;QACjD,CAAC,CAAC,iBAAS,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IACpD,OAAO,iBAAS,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;AACxH,CAAC;AATD,8BASC;AAUD,SAAgB,cAAc,CAC5B,KAA0B,EAC1B,cAAsC;IAEtC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IACvD,MAAM,UAAU,GAAG,iBAAiB,CAAC,KAAK,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACvE,MAAM,YAAY,GAAG,KAAK,IAAI,aAAK,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACpF,MAAM,aAAa,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,CAAC;IACtF,OAAO,YAAY;QACjB,CAAC,CAAC,iBAAS,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,YAAY,CAAC,CAAC;QACjD,CAAC,CAAC,iBAAS,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;AACtD,CAAC;AAXD,wCAWC;AAED,MAAM,YAAY,GAAG,eAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC"}
@@ -1,13 +1,13 @@
1
- export declare const textRow = "<xs:complexType name=\"TextRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
1
+ export declare const textRow = "<xs:complexType name=\"TextRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
2
2
  export declare const textRowElement = "<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />";
3
- export declare const textCell = "<xs:complexType name=\"TextCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
3
+ export declare const textCell = "<xs:complexType name=\"TextCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
4
4
  export declare const textCellElement = "<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />";
5
- export declare const textParagraph = "<xs:complexType name=\"TextParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
5
+ export declare const textParagraph = "<xs:complexType name=\"TextParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>";
6
6
  export declare const textParagraphElement = "<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />";
7
- export declare const imageRow = "<xs:complexType name=\"ImageRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<Image src text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\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\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>";
8
8
  export declare const imageRowElement = "<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />";
9
- export declare const imageCell = "<xs:complexType name=\"ImageCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<ImageCell> \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\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\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>";
10
10
  export declare const imageCellElement = "<xs:element name=\"ImageCell\" type=\"ImageCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />";
11
- export declare const imageParagraph = "<xs:complexType name=\"ImageParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\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\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>";
12
12
  export declare const imageParagraphElement = "<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />";
13
13
  //# sourceMappingURL=custom-elements.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-elements.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/custom-elements.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,85BAgBF,CAAC;AACnB,eAAO,MAAM,cAAc,6EAAuE,CAAC;AAEnG,eAAO,MAAM,QAAQ,o4BAgBH,CAAC;AACnB,eAAO,MAAM,eAAe,+FAAuF,CAAC;AAEpH,eAAO,MAAM,aAAa,yvBAcR,CAAC;AACnB,eAAO,MAAM,oBAAoB,yFAAmF,CAAC;AAErH,eAAO,MAAM,QAAQ,spBAUH,CAAC;AACnB,eAAO,MAAM,eAAe,+EAAyE,CAAC;AAEtG,eAAO,MAAM,SAAS,unBAUJ,CAAC;AACnB,eAAO,MAAM,gBAAgB,iGAAyF,CAAC;AAEvH,eAAO,MAAM,cAAc,0eAQT,CAAC;AACnB,eAAO,MAAM,qBAAqB,2FAAqF,CAAC"}
1
+ {"version":3,"file":"custom-elements.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/custom-elements.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,+pCAsBF,CAAC;AACnB,eAAO,MAAM,cAAc,6EAAuE,CAAC;AAEnG,eAAO,MAAM,QAAQ,qoCAsBH,CAAC;AACnB,eAAO,MAAM,eAAe,+FAAuF,CAAC;AAEpH,eAAO,MAAM,aAAa,43BAiBR,CAAC;AACnB,eAAO,MAAM,oBAAoB,yFAAmF,CAAC;AAErH,eAAO,MAAM,QAAQ,q3BAgBH,CAAC;AACnB,eAAO,MAAM,eAAe,+EAAyE,CAAC;AAEtG,eAAO,MAAM,SAAS,s1BAgBJ,CAAC;AACnB,eAAO,MAAM,gBAAgB,iGAAyF,CAAC;AAEvH,eAAO,MAAM,cAAc,2kBAWT,CAAC;AACnB,eAAO,MAAM,qBAAqB,2FAAqF,CAAC"}
@@ -6,6 +6,12 @@ exports.textRow = `<xs:complexType name="TextRow">
6
6
  <xs:annotation>
7
7
  <xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<TextRun text="..." /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>
8
8
  </xs:annotation>
9
+ <xs:choice minOccurs="0" maxOccurs="1">
10
+ <xs:element name="cellStyle" type="TableCellStyle" />
11
+ </xs:choice>
12
+ <xs:choice minOccurs="0" maxOccurs="1">
13
+ <xs:element name="paragraphStyle" type="ParagraphStyle" />
14
+ </xs:choice>
9
15
  <xs:choice minOccurs="0" maxOccurs="1">
10
16
  <xs:element name="style" type="TextStyle" />
11
17
  </xs:choice>
@@ -24,6 +30,12 @@ exports.textCell = `<xs:complexType name="TextCell">
24
30
  <xs:annotation>
25
31
  <xs:documentation>Shortcut to create a \\<TableCell> \\<Paragraph> \\<TextRun text="..." /> \\</Paragraph> \\</TableCell></xs:documentation>
26
32
  </xs:annotation>
33
+ <xs:choice minOccurs="0" maxOccurs="1">
34
+ <xs:element name="cellStyle" type="TableCellStyle" />
35
+ </xs:choice>
36
+ <xs:choice minOccurs="0" maxOccurs="1">
37
+ <xs:element name="paragraphStyle" type="ParagraphStyle" />
38
+ </xs:choice>
27
39
  <xs:choice minOccurs="0" maxOccurs="1">
28
40
  <xs:element name="style" type="TextStyle" />
29
41
  </xs:choice>
@@ -42,6 +54,9 @@ exports.textParagraph = `<xs:complexType name="TextParagraph">
42
54
  <xs:annotation>
43
55
  <xs:documentation>Shortcut to create \\<Paragraph> \\<TextRun text="..." /> \\</Paragraph></xs:documentation>
44
56
  </xs:annotation>
57
+ <xs:choice minOccurs="0" maxOccurs="1">
58
+ <xs:element name="paragraphStyle" type="ParagraphStyle" />
59
+ </xs:choice>
45
60
  <xs:choice minOccurs="0" maxOccurs="1">
46
61
  <xs:element name="style" type="TextStyle" />
47
62
  </xs:choice>
@@ -62,8 +77,14 @@ exports.imageRow = `<xs:complexType name="ImageRow">
62
77
  <xs:attribute name="columnSpan" type="xs:string" />
63
78
  <xs:attribute name="rowSpan" type="xs:string" />
64
79
  <xs:attribute name="src" type="xs:string" use="required" />
65
- <xs:attribute name="width" type="xs:decimal" use="required" />
66
- <xs:attribute name="height" type="xs:decimal" use="required" />
80
+ <xs:attribute name="width" type="xs:decimal" />
81
+ <xs:attribute name="height" type="xs:decimal" />
82
+ <xs:choice minOccurs="0" maxOccurs="1">
83
+ <xs:element name="cellStyle" type="TableCellStyle" />
84
+ </xs:choice>
85
+ <xs:choice minOccurs="0" maxOccurs="1">
86
+ <xs:element name="paragraphStyle" type="ParagraphStyle" />
87
+ </xs:choice>
67
88
  </xs:complexType>`;
68
89
  exports.imageRowElement = `<xs:element name="ImageRow" type="ImageRow" maxOccurs="unbounded" />`;
69
90
  exports.imageCell = `<xs:complexType name="ImageCell">
@@ -74,8 +95,14 @@ exports.imageCell = `<xs:complexType name="ImageCell">
74
95
  <xs:attribute name="columnSpan" type="xs:string" />
75
96
  <xs:attribute name="rowSpan" type="xs:string" />
76
97
  <xs:attribute name="src" type="xs:string" use="required" />
77
- <xs:attribute name="width" type="xs:decimal" use="required" />
78
- <xs:attribute name="height" type="xs:decimal" use="required" />
98
+ <xs:attribute name="width" type="xs:decimal" />
99
+ <xs:attribute name="height" type="xs:decimal" />
100
+ <xs:choice minOccurs="0" maxOccurs="1">
101
+ <xs:element name="cellStyle" type="TableCellStyle" />
102
+ </xs:choice>
103
+ <xs:choice minOccurs="0" maxOccurs="1">
104
+ <xs:element name="paragraphStyle" type="ParagraphStyle" />
105
+ </xs:choice>
79
106
  </xs:complexType>`;
80
107
  exports.imageCellElement = `<xs:element name="ImageCell" type="ImageCell" minOccurs="0" maxOccurs="unbounded" />`;
81
108
  exports.imageParagraph = `<xs:complexType name="ImageParagraph">
@@ -84,8 +111,11 @@ exports.imageParagraph = `<xs:complexType name="ImageParagraph">
84
111
  </xs:annotation>
85
112
  <xs:attribute name="styleNames" type="xs:string" />
86
113
  <xs:attribute name="src" type="xs:string" use="required" />
87
- <xs:attribute name="width" type="xs:decimal" use="required" />
88
- <xs:attribute name="height" type="xs:decimal" use="required" />
114
+ <xs:attribute name="width" type="xs:decimal" />
115
+ <xs:attribute name="height" type="xs:decimal" />
116
+ <xs:choice minOccurs="0" maxOccurs="1">
117
+ <xs:element name="paragraphStyle" type="ParagraphStyle" />
118
+ </xs:choice>
89
119
  </xs:complexType>`;
90
120
  exports.imageParagraphElement = `<xs:element name="ImageParagraph" type="ImageParagraph" maxOccurs="unbounded" />`;
91
121
  //# sourceMappingURL=custom-elements.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-elements.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/custom-elements.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AACzB,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;kBAgBL,CAAC;AACN,QAAA,cAAc,GAAG,oEAAoE,CAAC;AAEtF,QAAA,QAAQ,GAAG;;;;;;;;;;;;;;;;kBAgBN,CAAC;AACN,QAAA,eAAe,GAAG,oFAAoF,CAAC;AAEvG,QAAA,aAAa,GAAG;;;;;;;;;;;;;;kBAcX,CAAC;AACN,QAAA,oBAAoB,GAAG,gFAAgF,CAAC;AAExG,QAAA,QAAQ,GAAG;;;;;;;;;;kBAUN,CAAC;AACN,QAAA,eAAe,GAAG,sEAAsE,CAAC;AAEzF,QAAA,SAAS,GAAG;;;;;;;;;;kBAUP,CAAC;AACN,QAAA,gBAAgB,GAAG,sFAAsF,CAAC;AAE1G,QAAA,cAAc,GAAG;;;;;;;;kBAQZ,CAAC;AACN,QAAA,qBAAqB,GAAG,kFAAkF,CAAC"}
1
+ {"version":3,"file":"custom-elements.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/custom-elements.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AACzB,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;kBAsBL,CAAC;AACN,QAAA,cAAc,GAAG,oEAAoE,CAAC;AAEtF,QAAA,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;kBAsBN,CAAC;AACN,QAAA,eAAe,GAAG,oFAAoF,CAAC;AAEvG,QAAA,aAAa,GAAG;;;;;;;;;;;;;;;;;kBAiBX,CAAC;AACN,QAAA,oBAAoB,GAAG,gFAAgF,CAAC;AAExG,QAAA,QAAQ,GAAG;;;;;;;;;;;;;;;;kBAgBN,CAAC;AACN,QAAA,eAAe,GAAG,sEAAsE,CAAC;AAEzF,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;kBAgBP,CAAC;AACN,QAAA,gBAAgB,GAAG,sFAAsF,CAAC;AAE1G,QAAA,cAAc,GAAG;;;;;;;;;;;kBAWZ,CAAC;AACN,QAAA,qBAAqB,GAAG,kFAAkF,CAAC"}
@@ -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\" use=\"required\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\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>";
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,QAWF,CAAC;AAEnB,eAAO,MAAM,IAAI,6YASC,CAAC;AAEnB,eAAO,MAAM,cAAc,QAUT,CAAC;AAEnB,eAAO,MAAM,KAAK,QAWA,CAAC;AAEnB,eAAO,MAAM,KAAK,QAsBA,CAAC;AAEnB,eAAO,MAAM,UAAU,QAQL,CAAC;AAEnB,eAAO,MAAM,QAAQ,QAMH,CAAC;AAEnB,eAAO,MAAM,SAAS,QAkBJ,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"}
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,QAWF,CAAC;AAEnB,eAAO,MAAM,IAAI,6YASC,CAAC;AAEnB,eAAO,MAAM,cAAc,QAUT,CAAC;AAEnB,eAAO,MAAM,KAAK,QAWA,CAAC;AAEnB,eAAO,MAAM,KAAK,QAsBA,CAAC;AAEnB,eAAO,MAAM,UAAU,QAQL,CAAC;AAEnB,eAAO,MAAM,QAAQ,QAMH,CAAC;AAEnB,eAAO,MAAM,SAAS,QAkBJ,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,6PAIA,CAAC;AAEnB,eAAO,MAAM,SAAS,0CAAwC,CAAC"}
@@ -206,8 +206,8 @@ exports.textField = `<xs:complexType name="TextField">
206
206
  </xs:complexType>`;
207
207
  exports.image = `<xs:complexType name="Image">
208
208
  <xs:attribute name="src" type="xs:string" use="required" />
209
- <xs:attribute name="width" type="xs:decimal" use="required" />
210
- <xs:attribute name="height" type="xs:decimal" use="required" />
209
+ <xs:attribute name="width" type="xs:decimal" />
210
+ <xs:attribute name="height" type="xs:decimal" />
211
211
  </xs:complexType>`;
212
212
  exports.pageBreak = `<xs:complexType name="PageBreak" />`;
213
213
  //# sourceMappingURL=elements.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abstract-document",
3
- "version": "6.12.3",
3
+ "version": "6.12.5",
4
4
  "description": "Dynamically create documents using code or JSX and render to any format",
5
5
  "repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-document",
6
6
  "main": "lib/index.js",
@@ -40,5 +40,5 @@
40
40
  "jszip": "^3.10.1",
41
41
  "pdf2json": "2.0.1"
42
42
  },
43
- "gitHead": "61adc448052be945843ccf550967a29dc4276411"
43
+ "gitHead": "e4891b3e4b5d5ecb1f90674286492267b76d80b9"
44
44
  }
@@ -14,8 +14,5 @@ export interface ImageProps {
14
14
  }
15
15
 
16
16
  export function create(props: ImageProps): Image {
17
- return {
18
- type: "Image",
19
- ...props
20
- };
17
+ return { type: "Image", ...props };
21
18
  }
@@ -19,18 +19,6 @@ export interface TextFieldProps {
19
19
  }
20
20
 
21
21
  export function create(props: TextFieldProps): TextField {
22
- const {
23
- styleName = "",
24
- fieldType,
25
- style = TextStyle.create(),
26
- target = ""
27
- } = props;
28
- return {
29
- type: "TextField",
30
- styleName,
31
- fieldType,
32
- style,
33
- target,
34
- text: ""
35
- };
22
+ const { styleName = "", fieldType, style = TextStyle.create(), target = "" } = props;
23
+ return { type: "TextField", styleName, fieldType, style, target, text: "" };
36
24
  }
@@ -14,14 +14,6 @@ export interface ImageResourceProps {
14
14
  readonly renderScale?: number;
15
15
  }
16
16
 
17
- export function create({
18
- id,
19
- abstractImage,
20
- renderScale = 1.0
21
- }: ImageResourceProps): ImageResource {
22
- return {
23
- id,
24
- abstractImage,
25
- renderScale
26
- };
17
+ export function create({ id, abstractImage, renderScale = 1.0 }: ImageResourceProps): ImageResource {
18
+ return { id, abstractImage, renderScale };
27
19
  }