abstract-document 6.3.1 → 6.5.1

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 (175) hide show
  1. package/CHANGELOG.md +25 -7
  2. package/lib/abstract-document/section-elements/table.d.ts +2 -0
  3. package/lib/abstract-document/section-elements/table.d.ts.map +1 -1
  4. package/lib/abstract-document/section-elements/table.js +2 -2
  5. package/lib/abstract-document/section-elements/table.js.map +1 -1
  6. package/lib/abstract-document-exporters/__tests__/{docx2/test-defs/table-of-content-separator.d.ts → pdf/test-defs/page-break-table-with-header.d.ts} +1 -1
  7. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header.d.ts.map +1 -0
  8. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header.js +1529 -0
  9. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header.js.map +1 -0
  10. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/{group.d.ts → page-break-table-with-header2.d.ts} +1 -1
  11. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header2.d.ts.map +1 -0
  12. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header2.js +783 -0
  13. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header2.js.map +1 -0
  14. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-bottom.d.ts +3 -0
  15. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-bottom.d.ts.map +1 -0
  16. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-bottom.js +423 -0
  17. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-bottom.js.map +1 -0
  18. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top-single-table.d.ts +3 -0
  19. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top-single-table.d.ts.map +1 -0
  20. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top-single-table.js +331 -0
  21. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top-single-table.js.map +1 -0
  22. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/{simple-table.d.ts → page-break-table-with-margin-top.d.ts} +1 -1
  23. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top.d.ts.map +1 -0
  24. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top.js +423 -0
  25. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top.js.map +1 -0
  26. package/lib/abstract-document-exporters/__tests__/{docx2/test-defs/simple-table copy.d.ts → pdf/test-defs/simple-table-with-header.d.ts} +1 -1
  27. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-with-header.d.ts.map +1 -0
  28. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-with-header.js +460 -0
  29. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-with-header.js.map +1 -0
  30. package/lib/{abstract-document/__tests__/markdown/test-defs/markdown.d.ts → abstract-document-exporters/__tests__/pdf/test-defs/single-figure.d.ts} +1 -1
  31. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/single-figure.d.ts.map +1 -0
  32. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/single-figure.js +238 -0
  33. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/single-figure.js.map +1 -0
  34. package/lib/abstract-document-exporters/docx2/render-image.js +2 -2
  35. package/lib/abstract-document-exporters/docx2/render-image.js.map +1 -1
  36. package/lib/abstract-document-exporters/pdf/font.d.ts +2 -1
  37. package/lib/abstract-document-exporters/pdf/font.d.ts.map +1 -1
  38. package/lib/abstract-document-exporters/pdf/font.js +16 -12
  39. package/lib/abstract-document-exporters/pdf/font.js.map +1 -1
  40. package/lib/abstract-document-exporters/pdf/measure.js +4 -3
  41. package/lib/abstract-document-exporters/pdf/measure.js.map +1 -1
  42. package/lib/abstract-document-exporters/pdf/paginate.js +46 -29
  43. package/lib/abstract-document-exporters/pdf/paginate.js.map +1 -1
  44. package/lib/abstract-document-exporters/pdf/pre-process.js +8 -0
  45. package/lib/abstract-document-exporters/pdf/pre-process.js.map +1 -1
  46. package/lib/abstract-document-exporters/pdf/render-image.js +4 -3
  47. package/lib/abstract-document-exporters/pdf/render-image.js.map +1 -1
  48. package/lib/abstract-document-exporters/pdf/render.js +7 -8
  49. package/lib/abstract-document-exporters/pdf/render.js.map +1 -1
  50. package/package.json +3 -3
  51. package/src/abstract-document/section-elements/table.ts +6 -11
  52. package/src/abstract-document-exporters/__tests__/docx2/tmp/Group.docx +0 -0
  53. 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
  54. 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
  55. 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
  56. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple images.docx +0 -0
  57. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple tables.docx +0 -0
  58. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Center alignment.docx +0 -0
  59. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with End alignment.docx +0 -0
  60. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment that linebreaks.docx +0 -0
  61. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment.docx +0 -0
  62. package/src/abstract-document-exporters/__tests__/docx2/tmp/Page numbering.docx +0 -0
  63. 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
  64. package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table without rows.docx +0 -0
  65. package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table.docx +0 -0
  66. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single hyperlink.docx +0 -0
  67. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single image.docx +0 -0
  68. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment that linebreaks.docx +0 -0
  69. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment.docx +0 -0
  70. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment that linebreaks.docx +0 -0
  71. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment.docx +0 -0
  72. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment that linebreaks.docx +0 -0
  73. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment.docx +0 -0
  74. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun.docx +0 -0
  75. package/src/abstract-document-exporters/__tests__/docx2/tmp/hello.docx +0 -0
  76. package/src/abstract-document-exporters/__tests__/docx2/tmp/world.docx +0 -0
  77. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header.tsx +1555 -0
  78. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header2.tsx +824 -0
  79. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-bottom.tsx +455 -0
  80. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top-single-table.tsx +354 -0
  81. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top.tsx +455 -0
  82. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-with-header.tsx +482 -0
  83. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-figure.tsx +323 -0
  84. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Paragraphs.pdf +2 -2
  85. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Tables.pdf +2 -2
  86. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group too big for one page.pdf +2 -2
  87. package/src/abstract-document-exporters/__tests__/pdf/tmp/Header and footer.pdf +2 -2
  88. package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal linktarget.pdf +2 -2
  89. package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal.pdf +2 -2
  90. package/src/abstract-document-exporters/__tests__/pdf/tmp/Margins header body footer.pdf +2 -2
  91. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun.pdf +2 -2
  92. 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
  93. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images overflow.pdf +0 -0
  94. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images.pdf +0 -0
  95. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Center alignment.pdf +2 -2
  96. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with End alignment.pdf +2 -2
  97. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment that linebreaks.pdf +2 -2
  98. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment.pdf +2 -2
  99. package/src/abstract-document-exporters/__tests__/pdf/tmp/Page numbering.pdf +2 -2
  100. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table row that doesnt fit page.pdf +2 -2
  101. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table single row.pdf +2 -2
  102. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with group.pdf +2 -2
  103. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header 2.pdf +676 -0
  104. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header.pdf +3833 -0
  105. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin bottom.pdf +404 -0
  106. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top single table.pdf +336 -0
  107. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top.pdf +404 -0
  108. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin.pdf +404 -0
  109. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan multipages.pdf +2 -2
  110. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan.pdf +2 -2
  111. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all auto.pdf +2 -2
  112. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all fix.pdf +2 -2
  113. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table background.pdf +2 -2
  114. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of image.pdf +0 -0
  115. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of text.pdf +2 -2
  116. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table center alignment.pdf +2 -2
  117. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table colSpan and rowSpan.pdf +2 -2
  118. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table mix auto fix.pdf +2 -2
  119. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table padding.pdf +2 -2
  120. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table right alignment.pdf +2 -2
  121. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table row alignment.pdf +2 -2
  122. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell with wrapping.pdf +2 -2
  123. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell.pdf +2 -2
  124. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with default colored borders.pdf +2 -2
  125. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with header.pdf +409 -0
  126. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with multi colored borders.pdf +2 -2
  127. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with single colored borders.pdf +2 -2
  128. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single date.pdf +14 -14
  129. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single figure.pdf +204 -0
  130. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink centered.pdf +2 -2
  131. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink right aligned.pdf +2 -2
  132. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink.pdf +2 -2
  133. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color hex.pdf +2 -2
  134. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color name.pdf +2 -2
  135. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color url.pdf +2 -2
  136. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image.pdf +0 -0
  137. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment that linebreaks.pdf +2 -2
  138. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment.pdf +2 -2
  139. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment that linebreaks.pdf +2 -2
  140. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment.pdf +2 -2
  141. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Justify alignment.pdf +2 -2
  142. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment that linebreaks.pdf +2 -2
  143. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment.pdf +2 -2
  144. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with super and subscripts.pdf +2 -2
  145. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun.pdf +2 -2
  146. package/src/abstract-document-exporters/__tests__/pdf/tmp/Table of content separator.pdf +2 -2
  147. package/src/abstract-document-exporters/__tests__/pdf/tmp/hello.pdf +2 -2
  148. package/src/abstract-document-exporters/__tests__/pdf/tmp/world.pdf +2 -2
  149. package/src/abstract-document-exporters/docx2/render-image.ts +2 -2
  150. package/src/abstract-document-exporters/pdf/font.ts +18 -9
  151. package/src/abstract-document-exporters/pdf/measure.ts +5 -5
  152. package/src/abstract-document-exporters/pdf/paginate.ts +88 -38
  153. package/src/abstract-document-exporters/pdf/pre-process.ts +8 -0
  154. package/src/abstract-document-exporters/pdf/render-image.ts +10 -4
  155. package/src/abstract-document-exporters/pdf/render.ts +8 -9
  156. package/lib/abstract-document/__tests__/markdown/test-defs/markdown.d.ts.map +0 -1
  157. package/lib/abstract-document/__tests__/markdown/test-defs/markdown.js +0 -14
  158. package/lib/abstract-document/__tests__/markdown/test-defs/markdown.js.map +0 -1
  159. package/lib/abstract-document/primitives/layout-foundation.js copy.map +0 -1
  160. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/simple-table copy.d.ts.map +0 -1
  161. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/simple-table copy.js +0 -195
  162. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/simple-table copy.js.map +0 -1
  163. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/table-of-content-separator.d.ts.map +0 -1
  164. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/table-of-content-separator.js +0 -18
  165. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/table-of-content-separator.js.map +0 -1
  166. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/group.d.ts.map +0 -1
  167. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/group.js +0 -83
  168. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/group.js.map +0 -1
  169. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table.d.ts.map +0 -1
  170. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table.js +0 -104
  171. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table.js.map +0 -1
  172. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/single-date.d.ts +0 -1
  173. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/single-date.d.ts.map +0 -1
  174. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/single-date.js +0 -70
  175. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/single-date.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,25 +2,43 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
- ## [Unreleased](https://github.com/dividab/property/compare/abstract-document@6.0.1...master)
5
+ ## [Unreleased](https://github.com/dividab/abstract-visuals/compare/abstract-document@6.5.0...master)
6
6
 
7
7
  ### Added
8
8
 
9
9
  ### Changed
10
10
 
11
+ ### Removed
12
+
13
+ ## [v6.5.1](https://github.com/dividab/abstract-visuals/compare/abstract-document@6.4.0...abstract-document@6.5.1) - 2022-01-05
14
+
15
+ ### Added
16
+
17
+ - Added italic and mediumBold as options for texts in abstract image
18
+
19
+ ### Changed
20
+
21
+ - Fixed bold text rendering for abstract image texts
22
+
23
+ ## [v6.4.0](https://github.com/dividab/abstract-visuals/compare/abstract-document@6.0.1...abstract-document@6.4.0) - 2021-11-24
24
+
25
+ ### Added
26
+
27
+ - Add feature to allow setting border colors of cells separately
28
+ - Add table cell parameter "rowSpan" to allow setting the number of rows a cell should span
29
+ - Allow tables to be split and continue on the next page if they overflow a page
30
+ - Add support for repeatable headers for tables
31
+
32
+ ### Changed
33
+
11
34
  - Catch-up of the changelog.
12
35
  - Parsing svg colors to lower case to work with Svg-To-PdfKit.
13
36
  - Splitting tables if they are directly after each other.
14
37
  - Fix crash when tables has no rows
15
38
  - Fix table layout when using Infinity on column widths
16
- - Add feature to allow setting border colors of cells separately
17
39
  - Fix cell border widths not setting properly
18
- - Add table cell parameter "rowSpan" to allow setting the number of rows a cell should span
19
- - Allow tables to be split and continue on the next page if they overflow a page
20
-
21
- ### Removed
22
40
 
23
- ## [v6.0.1](https://github.com/dividab/property/compare/abstract-document@6.0.0...abstract-document@6.0.1) - 2021-09-02
41
+ ## [v6.0.1](https://github.com/dividab/abstract-visuals/compare/abstract-document@6.0.0...abstract-document@6.0.1) - 2021-09-02
24
42
 
25
43
  ### Added
26
44
 
@@ -6,11 +6,13 @@ export declare type Table = Resources & {
6
6
  readonly columnWidths: ReadonlyArray<number>;
7
7
  readonly styleName: string;
8
8
  readonly style: TableStyle.TableStyle;
9
+ readonly headerRows: ReadonlyArray<TableRow.TableRow>;
9
10
  readonly children: ReadonlyArray<TableRow.TableRow>;
10
11
  };
11
12
  export declare type TableProps = Resources & {
12
13
  readonly columnWidths: ReadonlyArray<number>;
13
14
  readonly styleName?: string;
15
+ readonly headerRows?: ReadonlyArray<TableRow.TableRow>;
14
16
  readonly style?: TableStyle.TableStyle;
15
17
  };
16
18
  export declare function create(props: TableProps, children?: ReadonlyArray<TableRow.TableRow>): Table;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/section-elements/table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AAEpD,oBAAY,KAAK,GAAG,SAAS,GAAG;IAC9B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;CACrD,CAAC;AAEF,oBAAY,UAAU,GAAG,SAAS,GAAG;IACnC,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;CACxC,CAAC;AAEF,wBAAgB,MAAM,CACpB,KAAK,EAAE,UAAU,EACjB,QAAQ,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAC1C,KAAK,CAeP"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/abstract-document/section-elements/table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AAEpD,oBAAY,KAAK,GAAG,SAAS,GAAG;IAC9B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtD,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;CACrD,CAAC;AAEF,oBAAY,UAAU,GAAG,SAAS,GAAG;IACnC,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;CACxC,CAAC;AAEF,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,KAAK,CAW5F"}
@@ -33,10 +33,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
33
33
  exports.create = void 0;
34
34
  const TableStyle = __importStar(require("../styles/table-style"));
35
35
  function create(props, children) {
36
- const { columnWidths, styleName = "", style = TableStyle.create() } = props, rest = __rest(props, ["columnWidths", "styleName", "style"]);
36
+ const { columnWidths, styleName = "", headerRows, style = TableStyle.create() } = props, rest = __rest(props, ["columnWidths", "styleName", "headerRows", "style"]);
37
37
  return Object.assign({ type: "Table", columnWidths,
38
38
  styleName,
39
- style, children: children || [] }, rest);
39
+ style, headerRows: headerRows || [], children: children || [] }, rest);
40
40
  }
41
41
  exports.create = create;
42
42
  //# sourceMappingURL=table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","sourceRoot":"","sources":["../../../src/abstract-document/section-elements/table.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kEAAoD;AAgBpD,SAAgB,MAAM,CACpB,KAAiB,EACjB,QAA2C;IAE3C,MAAM,EACJ,YAAY,EACZ,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,UAAU,CAAC,MAAM,EAAE,KAEzB,KAAK,EADJ,IAAI,UACL,KAAK,EALH,sCAKL,CAAQ,CAAC;IACV,uBACE,IAAI,EAAE,OAAO,EACb,YAAY;QACZ,SAAS;QACT,KAAK,EACL,QAAQ,EAAE,QAAQ,IAAI,EAAE,IACrB,IAAI,EACP;AACJ,CAAC;AAlBD,wBAkBC"}
1
+ {"version":3,"file":"table.js","sourceRoot":"","sources":["../../../src/abstract-document/section-elements/table.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kEAAoD;AAkBpD,SAAgB,MAAM,CAAC,KAAiB,EAAE,QAA2C;IACnF,MAAM,EAAE,YAAY,EAAE,SAAS,GAAG,EAAE,EAAE,UAAU,EAAE,KAAK,GAAG,UAAU,CAAC,MAAM,EAAE,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAA1F,oDAAkF,CAAQ,CAAC;IACjG,uBACE,IAAI,EAAE,OAAO,EACb,YAAY;QACZ,SAAS;QACT,KAAK,EACL,UAAU,EAAE,UAAU,IAAI,EAAE,EAC5B,QAAQ,EAAE,QAAQ,IAAI,EAAE,IACrB,IAAI,EACP;AACJ,CAAC;AAXD,wBAWC"}
@@ -1,3 +1,3 @@
1
1
  import { ExportTestDef } from "../export-test-def";
2
2
  export declare const test: ExportTestDef;
3
- //# sourceMappingURL=table-of-content-separator.d.ts.map
3
+ //# sourceMappingURL=page-break-table-with-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-break-table-with-header.d.ts","sourceRoot":"","sources":["../../../../../src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAoFnD,eAAO,MAAM,IAAI,EAAE,aA47ClB,CAAC"}