docx 7.4.1 → 7.6.0

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 (303) hide show
  1. package/LICENSE +21 -21
  2. package/build/export/packer/image-replacer.d.ts +2 -2
  3. package/build/export/packer/numbering-replacer.d.ts +1 -1
  4. package/build/export/packer/packer.d.ts +4 -0
  5. package/build/file/core-properties/properties.d.ts +3 -3
  6. package/build/file/custom-properties/custom-properties.d.ts +1 -1
  7. package/build/file/document/body/section-properties/properties/columns.d.ts +1 -1
  8. package/build/file/drawing/text-wrap/wrap-square.d.ts +1 -1
  9. package/build/file/file.d.ts +3 -3
  10. package/build/file/footnotes/footnote/footnote.d.ts +1 -1
  11. package/build/file/footnotes/footnotes.d.ts +1 -1
  12. package/build/file/header.d.ts +1 -1
  13. package/build/file/numbering/abstract-numbering.d.ts +1 -1
  14. package/build/file/numbering/level.d.ts +2 -2
  15. package/build/file/numbering/numbering.d.ts +4 -4
  16. package/build/file/paragraph/formatting/tab-stop.d.ts +7 -2
  17. package/build/file/paragraph/links/bookmark.d.ts +2 -2
  18. package/build/file/paragraph/links/hyperlink.d.ts +5 -5
  19. package/build/file/paragraph/math/brackets/math-angled-brackets.d.ts +1 -1
  20. package/build/file/paragraph/math/brackets/math-curly-brackets.d.ts +1 -1
  21. package/build/file/paragraph/math/brackets/math-round-brackets.d.ts +1 -1
  22. package/build/file/paragraph/math/brackets/math-square-brackets.d.ts +1 -1
  23. package/build/file/paragraph/math/fraction/math-denominator.d.ts +1 -1
  24. package/build/file/paragraph/math/fraction/math-fraction.d.ts +2 -2
  25. package/build/file/paragraph/math/fraction/math-numerator.d.ts +1 -1
  26. package/build/file/paragraph/math/function/math-function-name.d.ts +1 -1
  27. package/build/file/paragraph/math/function/math-function.d.ts +2 -2
  28. package/build/file/paragraph/math/math-component.d.ts +2 -2
  29. package/build/file/paragraph/math/math.d.ts +1 -1
  30. package/build/file/paragraph/math/n-ary/index.d.ts +1 -0
  31. package/build/file/paragraph/math/n-ary/math-base.d.ts +1 -1
  32. package/build/file/paragraph/math/n-ary/math-integral.d.ts +10 -0
  33. package/build/file/paragraph/math/n-ary/math-sub-script.d.ts +1 -1
  34. package/build/file/paragraph/math/n-ary/math-sum.d.ts +3 -3
  35. package/build/file/paragraph/math/n-ary/math-super-script.d.ts +1 -1
  36. package/build/file/paragraph/math/radical/math-degree.d.ts +1 -1
  37. package/build/file/paragraph/math/radical/math-radical.d.ts +2 -2
  38. package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.d.ts +3 -3
  39. package/build/file/paragraph/math/script/sub-script/math-sub-script-function.d.ts +2 -2
  40. package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.d.ts +3 -3
  41. package/build/file/paragraph/math/script/super-script/math-super-script-function.d.ts +2 -2
  42. package/build/file/paragraph/paragraph.d.ts +1 -1
  43. package/build/file/paragraph/properties.d.ts +2 -6
  44. package/build/file/paragraph/run/comment-run.d.ts +1 -1
  45. package/build/file/paragraph/run/run.d.ts +1 -1
  46. package/build/file/styles/sample/default-style.d.ts +1 -102
  47. package/build/file/styles/styles.d.ts +3 -3
  48. package/build/file/table/grid.d.ts +1 -1
  49. package/build/file/table/table-cell/table-cell.d.ts +1 -1
  50. package/build/file/table/table-row/table-row.d.ts +2 -2
  51. package/build/file/table/table.d.ts +2 -2
  52. package/build/file/table-of-contents/table-of-contents-properties.d.ts +1 -1
  53. package/build/file/xml-components/default-attributes.d.ts +3 -3
  54. package/build/file/xml-components/imported-xml-component.d.ts +2 -2
  55. package/build/index.js +1 -1
  56. package/build/index.js.LICENSE.txt +0 -12
  57. package/build/util/values.d.ts +17 -17
  58. package/package.json +15 -8
  59. package/src/export/packer/image-replacer.ts +2 -2
  60. package/src/export/packer/next-compiler.spec.ts +2 -2
  61. package/src/export/packer/next-compiler.ts +8 -8
  62. package/src/export/packer/numbering-replacer.ts +1 -1
  63. package/src/export/packer/packer.spec.ts +65 -7
  64. package/src/export/packer/packer.ts +24 -0
  65. package/src/file/app-properties/app-properties.ts +1 -1
  66. package/src/file/border/border.ts +1 -1
  67. package/src/file/content-types/content-types.ts +1 -1
  68. package/src/file/content-types/default/default.ts +1 -1
  69. package/src/file/content-types/override/override.ts +1 -1
  70. package/src/file/core-properties/properties.ts +5 -5
  71. package/src/file/custom-properties/custom-properties.ts +4 -2
  72. package/src/file/custom-properties/custom-property.ts +2 -2
  73. package/src/file/document/body/body.ts +3 -1
  74. package/src/file/document/body/section-properties/properties/column.ts +1 -1
  75. package/src/file/document/body/section-properties/properties/columns.spec.ts +7 -0
  76. package/src/file/document/body/section-properties/properties/columns.ts +2 -2
  77. package/src/file/document/body/section-properties/properties/doc-grid.ts +1 -1
  78. package/src/file/document/body/section-properties/properties/header-footer-reference.ts +1 -1
  79. package/src/file/document/body/section-properties/properties/line-number.ts +1 -1
  80. package/src/file/document/body/section-properties/properties/page-borders.ts +1 -1
  81. package/src/file/document/body/section-properties/properties/page-margin.ts +1 -1
  82. package/src/file/document/body/section-properties/properties/page-number.ts +1 -1
  83. package/src/file/document/body/section-properties/properties/page-size.ts +1 -1
  84. package/src/file/document/body/section-properties/properties/page-text-direction.ts +1 -1
  85. package/src/file/document/body/section-properties/properties/section-type.ts +1 -1
  86. package/src/file/document/body/section-properties/section-properties.ts +1 -1
  87. package/src/file/document/document-background/document-background.ts +1 -1
  88. package/src/file/document/document.ts +1 -1
  89. package/src/file/document-wrapper.spec.ts +0 -2
  90. package/src/file/document-wrapper.ts +1 -1
  91. package/src/file/drawing/anchor/anchor.spec.ts +2 -3
  92. package/src/file/drawing/anchor/anchor.ts +1 -1
  93. package/src/file/drawing/doc-properties/doc-properties.ts +1 -1
  94. package/src/file/drawing/drawing.spec.ts +2 -3
  95. package/src/file/drawing/drawing.ts +1 -1
  96. package/src/file/drawing/effect-extent/effect-extent.ts +1 -1
  97. package/src/file/drawing/extent/extent.ts +1 -1
  98. package/src/file/drawing/floating/align.ts +1 -1
  99. package/src/file/drawing/floating/horizontal-position.ts +1 -1
  100. package/src/file/drawing/floating/position-offset.ts +1 -1
  101. package/src/file/drawing/floating/simple-pos.ts +1 -1
  102. package/src/file/drawing/floating/vertical-position.ts +1 -1
  103. package/src/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-locks.ts +1 -1
  104. package/src/file/drawing/graphic-frame/graphic-frame-properties.ts +1 -1
  105. package/src/file/drawing/inline/graphic/graphic-data/graphic-data.ts +1 -1
  106. package/src/file/drawing/inline/graphic/graphic-data/pic/blip/blip-fill.ts +1 -1
  107. package/src/file/drawing/inline/graphic/graphic-data/pic/blip/blip.ts +1 -1
  108. package/src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.ts +1 -1
  109. package/src/file/drawing/inline/graphic/graphic-data/pic/blip/stretch.ts +2 -2
  110. package/src/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/child-non-visual-pic-properties.ts +1 -1
  111. package/src/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/pic-locks/pic-locks.ts +1 -1
  112. package/src/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-pic-properties.ts +1 -1
  113. package/src/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-properties/non-visual-properties.ts +1 -1
  114. package/src/file/drawing/inline/graphic/graphic-data/pic/pic.ts +1 -1
  115. package/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/extents/extents.ts +1 -1
  116. package/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/form.ts +1 -1
  117. package/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off.ts +1 -1
  118. package/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.ts +1 -1
  119. package/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.ts +1 -1
  120. package/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/adjustment-values/adjustment-values.ts +1 -1
  121. package/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/preset-geometry.ts +1 -1
  122. package/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/shape-properties.ts +1 -1
  123. package/src/file/drawing/inline/graphic/graphic.ts +1 -1
  124. package/src/file/drawing/inline/inline.ts +1 -1
  125. package/src/file/drawing/text-wrap/wrap-none.ts +1 -1
  126. package/src/file/drawing/text-wrap/wrap-square.ts +3 -2
  127. package/src/file/drawing/text-wrap/wrap-tight.ts +1 -1
  128. package/src/file/drawing/text-wrap/wrap-top-and-bottom.ts +1 -1
  129. package/src/file/file.spec.ts +55 -2
  130. package/src/file/file.ts +18 -13
  131. package/src/file/footer/footer.ts +1 -1
  132. package/src/file/footer-wrapper.spec.ts +1 -1
  133. package/src/file/footer-wrapper.ts +1 -1
  134. package/src/file/footnotes/footnote/footnote.ts +2 -2
  135. package/src/file/footnotes/footnote/run/continuation-seperator-run.ts +1 -1
  136. package/src/file/footnotes/footnote/run/continuation-seperator.ts +1 -1
  137. package/src/file/footnotes/footnote/run/footnote-ref-run.ts +1 -1
  138. package/src/file/footnotes/footnote/run/footnote-ref.ts +1 -1
  139. package/src/file/footnotes/footnote/run/reference-run.ts +2 -2
  140. package/src/file/footnotes/footnote/run/seperator-run.ts +1 -1
  141. package/src/file/footnotes/footnote/run/seperator.ts +1 -1
  142. package/src/file/footnotes/footnotes.ts +2 -2
  143. package/src/file/footnotes-wrapper.spec.ts +0 -2
  144. package/src/file/footnotes-wrapper.ts +1 -1
  145. package/src/file/header/header.ts +1 -1
  146. package/src/file/header-wrapper.spec.ts +1 -1
  147. package/src/file/header-wrapper.ts +1 -1
  148. package/src/file/header.ts +11 -3
  149. package/src/file/media/media.spec.ts +4 -2
  150. package/src/file/media/media.ts +3 -1
  151. package/src/file/numbering/abstract-numbering.ts +1 -1
  152. package/src/file/numbering/level.spec.ts +40 -3
  153. package/src/file/numbering/level.ts +27 -8
  154. package/src/file/numbering/multi-level-type.ts +1 -1
  155. package/src/file/numbering/num.ts +4 -4
  156. package/src/file/numbering/numbering.spec.ts +2 -1
  157. package/src/file/numbering/numbering.ts +18 -18
  158. package/src/file/paragraph/formatting/alignment.ts +1 -1
  159. package/src/file/paragraph/formatting/border.ts +2 -2
  160. package/src/file/paragraph/formatting/break.ts +4 -4
  161. package/src/file/paragraph/formatting/indent.ts +1 -1
  162. package/src/file/paragraph/formatting/spacing.ts +1 -1
  163. package/src/file/paragraph/formatting/style.ts +1 -1
  164. package/src/file/paragraph/formatting/tab-stop.spec.ts +2 -2
  165. package/src/file/paragraph/formatting/tab-stop.ts +14 -5
  166. package/src/file/paragraph/formatting/unordered-list.ts +3 -3
  167. package/src/file/paragraph/frame/frame-properties.ts +1 -1
  168. package/src/file/paragraph/links/bookmark.ts +4 -4
  169. package/src/file/paragraph/links/hyperlink.ts +6 -4
  170. package/src/file/paragraph/links/outline-level.ts +1 -1
  171. package/src/file/paragraph/links/pageref-field-instruction.ts +1 -1
  172. package/src/file/paragraph/links/pageref.ts +1 -1
  173. package/src/file/paragraph/math/brackets/math-angled-brackets.ts +1 -1
  174. package/src/file/paragraph/math/brackets/math-beginning-character.ts +1 -1
  175. package/src/file/paragraph/math/brackets/math-bracket-properties.ts +1 -1
  176. package/src/file/paragraph/math/brackets/math-curly-brackets.ts +1 -1
  177. package/src/file/paragraph/math/brackets/math-ending-char.ts +1 -1
  178. package/src/file/paragraph/math/brackets/math-round-brackets.ts +1 -1
  179. package/src/file/paragraph/math/brackets/math-square-brackets.ts +1 -1
  180. package/src/file/paragraph/math/fraction/math-denominator.ts +1 -1
  181. package/src/file/paragraph/math/fraction/math-fraction.ts +3 -3
  182. package/src/file/paragraph/math/fraction/math-numerator.ts +1 -1
  183. package/src/file/paragraph/math/function/math-function-name.ts +1 -1
  184. package/src/file/paragraph/math/function/math-function-properties.ts +1 -1
  185. package/src/file/paragraph/math/function/math-function.ts +3 -3
  186. package/src/file/paragraph/math/math-component.ts +2 -1
  187. package/src/file/paragraph/math/math-run.ts +1 -1
  188. package/src/file/paragraph/math/math-text.ts +1 -1
  189. package/src/file/paragraph/math/math.ts +2 -2
  190. package/src/file/paragraph/math/n-ary/index.ts +1 -0
  191. package/src/file/paragraph/math/n-ary/math-accent-character.ts +1 -1
  192. package/src/file/paragraph/math/n-ary/math-base.ts +1 -1
  193. package/src/file/paragraph/math/n-ary/math-integral.spec.ts +116 -0
  194. package/src/file/paragraph/math/n-ary/math-integral.ts +31 -0
  195. package/src/file/paragraph/math/n-ary/math-limit-location.ts +1 -1
  196. package/src/file/paragraph/math/n-ary/math-n-ary-properties.ts +4 -2
  197. package/src/file/paragraph/math/n-ary/math-sub-script-hide.ts +1 -1
  198. package/src/file/paragraph/math/n-ary/math-sub-script.ts +1 -1
  199. package/src/file/paragraph/math/n-ary/math-sum.ts +4 -4
  200. package/src/file/paragraph/math/n-ary/math-super-script-hide.ts +1 -1
  201. package/src/file/paragraph/math/n-ary/math-super-script.ts +1 -1
  202. package/src/file/paragraph/math/radical/math-degree-hide.ts +1 -1
  203. package/src/file/paragraph/math/radical/math-degree.ts +1 -1
  204. package/src/file/paragraph/math/radical/math-radical-properties.ts +1 -1
  205. package/src/file/paragraph/math/radical/math-radical.ts +3 -3
  206. package/src/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.ts +1 -1
  207. package/src/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.ts +4 -4
  208. package/src/file/paragraph/math/script/sub-script/math-sub-script-function-properties.ts +1 -1
  209. package/src/file/paragraph/math/script/sub-script/math-sub-script-function.ts +3 -3
  210. package/src/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.ts +1 -1
  211. package/src/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.ts +4 -4
  212. package/src/file/paragraph/math/script/super-script/math-super-script-function-properties.ts +1 -1
  213. package/src/file/paragraph/math/script/super-script/math-super-script-function.ts +3 -3
  214. package/src/file/paragraph/paragraph.spec.ts +2 -6
  215. package/src/file/paragraph/paragraph.ts +2 -2
  216. package/src/file/paragraph/properties.spec.ts +1 -3
  217. package/src/file/paragraph/properties.ts +18 -18
  218. package/src/file/paragraph/run/break.ts +1 -1
  219. package/src/file/paragraph/run/comment-run.ts +6 -6
  220. package/src/file/paragraph/run/emphasis-mark.ts +2 -2
  221. package/src/file/paragraph/run/field.ts +3 -3
  222. package/src/file/paragraph/run/formatting.ts +4 -4
  223. package/src/file/paragraph/run/image-run.spec.ts +9 -9
  224. package/src/file/paragraph/run/image-run.ts +2 -1
  225. package/src/file/paragraph/run/page-number.ts +3 -3
  226. package/src/file/paragraph/run/properties.ts +2 -2
  227. package/src/file/paragraph/run/run-components/symbol.ts +1 -1
  228. package/src/file/paragraph/run/run-components/text.ts +1 -1
  229. package/src/file/paragraph/run/run-fonts.ts +5 -5
  230. package/src/file/paragraph/run/run.spec.ts +1 -3
  231. package/src/file/paragraph/run/run.ts +2 -2
  232. package/src/file/paragraph/run/script.ts +3 -3
  233. package/src/file/paragraph/run/sequential-identifier-instruction.ts +1 -1
  234. package/src/file/paragraph/run/sequential-identifier.ts +1 -1
  235. package/src/file/paragraph/run/simple-field.ts +2 -2
  236. package/src/file/paragraph/run/symbol-run.spec.ts +1 -3
  237. package/src/file/paragraph/run/symbol-run.ts +1 -1
  238. package/src/file/paragraph/run/tab.ts +1 -1
  239. package/src/file/paragraph/run/text-run.ts +1 -1
  240. package/src/file/paragraph/run/underline.ts +1 -1
  241. package/src/file/relationships/relationship/relationship.ts +1 -1
  242. package/src/file/relationships/relationships.ts +1 -1
  243. package/src/file/settings/compatibility-setting/compatibility-setting.ts +1 -1
  244. package/src/file/settings/compatibility.ts +1 -1
  245. package/src/file/settings/settings.ts +1 -1
  246. package/src/file/shading/shading.ts +1 -1
  247. package/src/file/styles/defaults/document-defaults.spec.ts +2 -2
  248. package/src/file/styles/defaults/document-defaults.ts +1 -1
  249. package/src/file/styles/defaults/paragraph-properties.ts +1 -1
  250. package/src/file/styles/defaults/run-properties.ts +1 -1
  251. package/src/file/styles/external-styles-factory.spec.ts +3 -3
  252. package/src/file/styles/external-styles-factory.ts +1 -0
  253. package/src/file/styles/latent-styles/exceptions.ts +1 -1
  254. package/src/file/styles/latent-styles/latent-styles.ts +1 -1
  255. package/src/file/styles/sample/default-style.ts +6 -6
  256. package/src/file/styles/style/character-style.ts +1 -1
  257. package/src/file/styles/style/components.ts +2 -2
  258. package/src/file/styles/style/default-styles.spec.ts +1 -2
  259. package/src/file/styles/style/default-styles.ts +14 -14
  260. package/src/file/styles/style/paragraph-style.ts +1 -1
  261. package/src/file/styles/style/style.ts +1 -1
  262. package/src/file/styles/styles.ts +4 -4
  263. package/src/file/table/grid.spec.ts +1 -2
  264. package/src/file/table/grid.ts +2 -2
  265. package/src/file/table/table-cell/table-cell-components.ts +4 -4
  266. package/src/file/table/table-cell/table-cell-properties.ts +1 -1
  267. package/src/file/table/table-cell/table-cell.ts +2 -2
  268. package/src/file/table/table-properties/table-borders.ts +1 -1
  269. package/src/file/table/table-properties/table-cell-margin.ts +4 -1
  270. package/src/file/table/table-properties/table-float-properties.ts +1 -1
  271. package/src/file/table/table-properties/table-layout.ts +1 -1
  272. package/src/file/table/table-properties/table-overlap.ts +1 -1
  273. package/src/file/table/table-properties/table-properties.ts +1 -1
  274. package/src/file/table/table-row/table-row-height.ts +1 -1
  275. package/src/file/table/table-row/table-row-properties.ts +1 -1
  276. package/src/file/table/table-row/table-row.ts +3 -3
  277. package/src/file/table/table-width.ts +1 -1
  278. package/src/file/table/table.ts +4 -3
  279. package/src/file/table-of-contents/alias.ts +1 -1
  280. package/src/file/table-of-contents/field-instruction.ts +1 -1
  281. package/src/file/table-of-contents/sdt-content.ts +1 -1
  282. package/src/file/table-of-contents/sdt-properties.ts +1 -1
  283. package/src/file/table-of-contents/table-of-contents-properties.ts +2 -2
  284. package/src/file/table-of-contents/table-of-contents.spec.ts +1 -3
  285. package/src/file/table-of-contents/table-of-contents.ts +1 -1
  286. package/src/file/track-revision/track-revision-components/deleted-page-number.ts +3 -3
  287. package/src/file/track-revision/track-revision-components/deleted-text-run.ts +2 -2
  288. package/src/file/track-revision/track-revision-components/deleted-text.ts +1 -1
  289. package/src/file/track-revision/track-revision-components/inserted-text-run.ts +1 -1
  290. package/src/file/vertical-align/vertical-align.ts +1 -1
  291. package/src/file/xml-components/base.ts +1 -1
  292. package/src/file/xml-components/default-attributes.ts +5 -4
  293. package/src/file/xml-components/imported-xml-component.spec.ts +3 -2
  294. package/src/file/xml-components/imported-xml-component.ts +13 -8
  295. package/src/file/xml-components/initializable-xml-component.ts +1 -1
  296. package/src/file/xml-components/simple-elements.ts +5 -5
  297. package/src/file/xml-components/xml-component.ts +4 -2
  298. package/src/import-dotx/import-dotx.ts +2 -0
  299. package/src/index.spec.ts +0 -1
  300. package/src/tests/utility.ts +1 -1
  301. package/src/util/convenience-functions.spec.ts +0 -2
  302. package/src/util/convenience-functions.ts +4 -12
  303. package/src/util/values.ts +29 -41
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 Dolan
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Dolan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  import { IMediaData, Media } from "../../file/media";
2
2
  export declare class ImageReplacer {
3
- replace(xmlData: string, mediaData: IMediaData[], offset: number): string;
4
- getMediaData(xmlData: string, media: Media): IMediaData[];
3
+ replace(xmlData: string, mediaData: readonly IMediaData[], offset: number): string;
4
+ getMediaData(xmlData: string, media: Media): readonly IMediaData[];
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ConcreteNumbering } from "../../file/numbering";
2
2
  export declare class NumberingReplacer {
3
- replace(xmlData: string, concreteNumberings: ConcreteNumbering[]): string;
3
+ replace(xmlData: string, concreteNumberings: readonly ConcreteNumbering[]): string;
4
4
  }
@@ -1,4 +1,6 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import { Stream } from "stream";
2
4
  import { File } from "../../file/file";
3
5
  export declare enum PrettifyType {
4
6
  NONE = "",
@@ -7,8 +9,10 @@ export declare enum PrettifyType {
7
9
  WITH_TAB = "\t"
8
10
  }
9
11
  export declare class Packer {
12
+ static toString(file: File, prettify?: boolean | PrettifyType): Promise<string>;
10
13
  static toBuffer(file: File, prettify?: boolean | PrettifyType): Promise<Buffer>;
11
14
  static toBase64String(file: File, prettify?: boolean | PrettifyType): Promise<string>;
12
15
  static toBlob(file: File, prettify?: boolean | PrettifyType): Promise<Blob>;
16
+ static toStream(file: File, prettify?: boolean | PrettifyType): Stream;
13
17
  private static readonly compiler;
14
18
  }
@@ -7,7 +7,7 @@ import { INumberingOptions } from "../numbering";
7
7
  import { Paragraph } from "../paragraph";
8
8
  import { IStylesOptions } from "../styles";
9
9
  export interface IPropertiesOptions {
10
- readonly sections: ISectionOptions[];
10
+ readonly sections: readonly ISectionOptions[];
11
11
  readonly title?: string;
12
12
  readonly subject?: string;
13
13
  readonly creator?: string;
@@ -21,7 +21,7 @@ export interface IPropertiesOptions {
21
21
  readonly comments?: ICommentsOptions;
22
22
  readonly footnotes?: {
23
23
  readonly [key: string]: {
24
- readonly children: Paragraph[];
24
+ readonly children: readonly Paragraph[];
25
25
  };
26
26
  };
27
27
  readonly background?: IDocumentBackgroundOptions;
@@ -30,7 +30,7 @@ export interface IPropertiesOptions {
30
30
  readonly updateFields?: boolean;
31
31
  };
32
32
  readonly compatabilityModeVersion?: number;
33
- readonly customProperties?: ICustomPropertyOptions[];
33
+ readonly customProperties?: readonly ICustomPropertyOptions[];
34
34
  readonly evenAndOddHeaderAndFooters?: boolean;
35
35
  }
36
36
  export declare class CoreProperties extends XmlComponent {
@@ -3,7 +3,7 @@ import { ICustomPropertyOptions } from "./custom-property";
3
3
  export declare class CustomProperties extends XmlComponent {
4
4
  private nextId;
5
5
  private readonly properties;
6
- constructor(properties: ICustomPropertyOptions[]);
6
+ constructor(properties: readonly ICustomPropertyOptions[]);
7
7
  prepForXml(context: IContext): IXmlableObject | undefined;
8
8
  addCustomProperty(property: ICustomPropertyOptions): void;
9
9
  }
@@ -5,7 +5,7 @@ export interface IColumnsAttributes {
5
5
  readonly count?: number;
6
6
  readonly separate?: boolean;
7
7
  readonly equalWidth?: boolean;
8
- readonly children?: Column[];
8
+ readonly children?: readonly Column[];
9
9
  }
10
10
  export declare class ColumnsAttributes extends XmlAttributeComponent<IColumnsAttributes> {
11
11
  protected readonly xmlKeys: {
@@ -1,6 +1,6 @@
1
1
  import { XmlComponent } from "../../../file/xml-components";
2
- import { ITextWrapping } from ".";
3
2
  import { IMargins } from "../floating";
3
+ import { ITextWrapping } from "./text-wrapping";
4
4
  export declare class WrapSquare extends XmlComponent {
5
5
  constructor(textWrapping: ITextWrapping, margins?: IMargins);
6
6
  }
@@ -30,7 +30,7 @@ export interface ISectionOptions {
30
30
  readonly even?: Footer;
31
31
  };
32
32
  readonly properties?: ISectionPropertiesOptions;
33
- readonly children: (Paragraph | Table | TableOfContents)[];
33
+ readonly children: readonly (Paragraph | Table | TableOfContents)[];
34
34
  }
35
35
  export declare class File {
36
36
  private currentRelationshipId;
@@ -61,8 +61,8 @@ export declare class File {
61
61
  get Numbering(): Numbering;
62
62
  get Media(): Media;
63
63
  get FileRelationships(): Relationships;
64
- get Headers(): HeaderWrapper[];
65
- get Footers(): FooterWrapper[];
64
+ get Headers(): readonly HeaderWrapper[];
65
+ get Footers(): readonly FooterWrapper[];
66
66
  get ContentTypes(): ContentTypes;
67
67
  get CustomProperties(): CustomProperties;
68
68
  get AppProperties(): AppProperties;
@@ -7,7 +7,7 @@ export declare enum FootnoteType {
7
7
  export interface IFootnoteOptions {
8
8
  readonly id: number;
9
9
  readonly type?: FootnoteType;
10
- readonly children: Paragraph[];
10
+ readonly children: readonly Paragraph[];
11
11
  }
12
12
  export declare class Footnote extends XmlComponent {
13
13
  constructor(options: IFootnoteOptions);
@@ -2,5 +2,5 @@ import { XmlComponent } from "../../file/xml-components";
2
2
  import { Paragraph } from "../paragraph";
3
3
  export declare class FootNotes extends XmlComponent {
4
4
  constructor();
5
- createFootNote(id: number, paragraph: Paragraph[]): void;
5
+ createFootNote(id: number, paragraph: readonly Paragraph[]): void;
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { Paragraph } from "./paragraph";
2
2
  import { Table } from "./table";
3
3
  export interface IHeaderOptions {
4
- readonly children: (Paragraph | Table)[];
4
+ readonly children: readonly (Paragraph | Table)[];
5
5
  }
6
6
  export declare class Header {
7
7
  readonly options: IHeaderOptions;
@@ -2,5 +2,5 @@ import { XmlComponent } from "../../file/xml-components";
2
2
  import { ILevelsOptions } from "./level";
3
3
  export declare class AbstractNumbering extends XmlComponent {
4
4
  readonly id: number;
5
- constructor(id: number, levelOptions: ILevelsOptions[]);
5
+ constructor(id: number, levelOptions: readonly ILevelsOptions[]);
6
6
  }
@@ -30,6 +30,7 @@ export interface ILevelsOptions {
30
30
  readonly alignment?: AlignmentType;
31
31
  readonly start?: number;
32
32
  readonly suffix?: LevelSuffix;
33
+ readonly isLegalNumberingStyle?: boolean;
33
34
  readonly style?: {
34
35
  readonly run?: IRunStylePropertiesOptions;
35
36
  readonly paragraph?: ILevelParagraphStylePropertiesOptions;
@@ -38,10 +39,9 @@ export interface ILevelsOptions {
38
39
  export declare class LevelBase extends XmlComponent {
39
40
  private readonly paragraphProperties;
40
41
  private readonly runProperties;
41
- constructor({ level, format, text, alignment, start, style, suffix }: ILevelsOptions);
42
+ constructor({ level, format, text, alignment, start, style, suffix, isLegalNumberingStyle, }: ILevelsOptions);
42
43
  }
43
44
  export declare class Level extends LevelBase {
44
- constructor(options: ILevelsOptions);
45
45
  }
46
46
  export declare class LevelForOverride extends LevelBase {
47
47
  }
@@ -2,8 +2,8 @@ import { IContext, IXmlableObject, XmlComponent } from "../../file/xml-component
2
2
  import { ILevelsOptions } from "./level";
3
3
  import { ConcreteNumbering } from "./num";
4
4
  export interface INumberingOptions {
5
- readonly config: {
6
- readonly levels: ILevelsOptions[];
5
+ readonly config: readonly {
6
+ readonly levels: readonly ILevelsOptions[];
7
7
  readonly reference: string;
8
8
  }[];
9
9
  }
@@ -14,6 +14,6 @@ export declare class Numbering extends XmlComponent {
14
14
  constructor(options: INumberingOptions);
15
15
  prepForXml(context: IContext): IXmlableObject | undefined;
16
16
  createConcreteNumberingInstance(reference: string, instance: number): void;
17
- get ConcreteNumbering(): ConcreteNumbering[];
18
- get ReferenceConfig(): object[];
17
+ get ConcreteNumbering(): readonly ConcreteNumbering[];
18
+ get ReferenceConfig(): readonly object[];
19
19
  }
@@ -1,6 +1,11 @@
1
1
  import { XmlAttributeComponent, XmlComponent } from "../../../file/xml-components";
2
+ export interface TabStopDefinition {
3
+ readonly type: TabStopType;
4
+ readonly position: number | TabStopPosition;
5
+ readonly leader?: LeaderType;
6
+ }
2
7
  export declare class TabStop extends XmlComponent {
3
- constructor(type: TabStopType, position: number, leader?: LeaderType);
8
+ constructor(tabDefinitions: readonly TabStopDefinition[]);
4
9
  }
5
10
  export declare enum TabStopType {
6
11
  LEFT = "left",
@@ -35,5 +40,5 @@ export declare class TabAttributes extends XmlAttributeComponent<{
35
40
  };
36
41
  }
37
42
  export declare class TabStopItem extends XmlComponent {
38
- constructor(value: TabStopType, position: string | number, leader?: LeaderType);
43
+ constructor({ type, position, leader }: TabStopDefinition);
39
44
  }
@@ -2,11 +2,11 @@ import { XmlComponent } from "../../../file/xml-components";
2
2
  import { ParagraphChild } from "../paragraph";
3
3
  export declare class Bookmark {
4
4
  readonly start: BookmarkStart;
5
- readonly children: ParagraphChild[];
5
+ readonly children: readonly ParagraphChild[];
6
6
  readonly end: BookmarkEnd;
7
7
  constructor(options: {
8
8
  readonly id: string;
9
- readonly children: ParagraphChild[];
9
+ readonly children: readonly ParagraphChild[];
10
10
  });
11
11
  }
12
12
  export declare class BookmarkStart extends XmlComponent {
@@ -6,21 +6,21 @@ export declare enum HyperlinkType {
6
6
  }
7
7
  export declare class ConcreteHyperlink extends XmlComponent {
8
8
  readonly linkId: string;
9
- constructor(children: ParagraphChild[], relationshipId: string, anchor?: string);
9
+ constructor(children: readonly ParagraphChild[], relationshipId: string, anchor?: string);
10
10
  }
11
11
  export declare class InternalHyperlink extends ConcreteHyperlink {
12
12
  constructor(options: {
13
- readonly children: ParagraphChild[];
13
+ readonly children: readonly ParagraphChild[];
14
14
  readonly anchor: string;
15
15
  });
16
16
  }
17
- export declare class ExternalHyperlink {
17
+ export declare class ExternalHyperlink extends XmlComponent {
18
18
  readonly options: {
19
- readonly children: ParagraphChild[];
19
+ readonly children: readonly ParagraphChild[];
20
20
  readonly link: string;
21
21
  };
22
22
  constructor(options: {
23
- readonly children: ParagraphChild[];
23
+ readonly children: readonly ParagraphChild[];
24
24
  readonly link: string;
25
25
  });
26
26
  }
@@ -2,6 +2,6 @@ import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathAngledBrackets extends XmlComponent {
4
4
  constructor(options: {
5
- readonly children: MathComponent[];
5
+ readonly children: readonly MathComponent[];
6
6
  });
7
7
  }
@@ -2,6 +2,6 @@ import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathCurlyBrackets extends XmlComponent {
4
4
  constructor(options: {
5
- readonly children: MathComponent[];
5
+ readonly children: readonly MathComponent[];
6
6
  });
7
7
  }
@@ -2,6 +2,6 @@ import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathRoundBrackets extends XmlComponent {
4
4
  constructor(options: {
5
- readonly children: MathComponent[];
5
+ readonly children: readonly MathComponent[];
6
6
  });
7
7
  }
@@ -2,6 +2,6 @@ import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathSquareBrackets extends XmlComponent {
4
4
  constructor(options: {
5
- readonly children: MathComponent[];
5
+ readonly children: readonly MathComponent[];
6
6
  });
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathDenominator extends XmlComponent {
4
- constructor(children: MathComponent[]);
4
+ constructor(children: readonly MathComponent[]);
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export interface IMathFractionOptions {
4
- readonly numerator: MathComponent[];
5
- readonly denominator: MathComponent[];
4
+ readonly numerator: readonly MathComponent[];
5
+ readonly denominator: readonly MathComponent[];
6
6
  }
7
7
  export declare class MathFraction extends XmlComponent {
8
8
  constructor(options: IMathFractionOptions);
@@ -1,5 +1,5 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathNumerator extends XmlComponent {
4
- constructor(children: MathComponent[]);
4
+ constructor(children: readonly MathComponent[]);
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathFunctionName extends XmlComponent {
4
- constructor(children: MathComponent[]);
4
+ constructor(children: readonly MathComponent[]);
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export interface IMathFunctionOptions {
4
- readonly children: MathComponent[];
5
- readonly name: MathComponent[];
4
+ readonly children: readonly MathComponent[];
5
+ readonly name: readonly MathComponent[];
6
6
  }
7
7
  export declare class MathFunction extends XmlComponent {
8
8
  constructor(options: IMathFunctionOptions);
@@ -2,8 +2,8 @@ import { MathAngledBrackets, MathCurlyBrackets, MathRoundBrackets, MathSquareBra
2
2
  import { MathFraction } from "./fraction";
3
3
  import { MathFunction } from "./function";
4
4
  import { MathRun } from "./math-run";
5
- import { MathSum } from "./n-ary";
5
+ import { MathSum, MathIntegral } from "./n-ary";
6
6
  import { MathRadical } from "./radical";
7
7
  import { MathSubScript, MathSubSuperScript, MathSuperScript } from "./script";
8
- export declare type MathComponent = MathRun | MathFraction | MathSum | MathSuperScript | MathSubScript | MathSubSuperScript | MathRadical | MathFunction | MathRoundBrackets | MathCurlyBrackets | MathAngledBrackets | MathSquareBrackets;
8
+ export declare type MathComponent = MathRun | MathFraction | MathSum | MathIntegral | MathSuperScript | MathSubScript | MathSubSuperScript | MathRadical | MathFunction | MathRoundBrackets | MathCurlyBrackets | MathAngledBrackets | MathSquareBrackets;
9
9
  export declare const WORKAROUND4 = "";
@@ -1,7 +1,7 @@
1
1
  import { XmlComponent } from "../../../file/xml-components";
2
2
  import { MathComponent } from "./math-component";
3
3
  export interface IMathOptions {
4
- readonly children: MathComponent[];
4
+ readonly children: readonly MathComponent[];
5
5
  }
6
6
  export declare class Math extends XmlComponent {
7
7
  constructor(options: IMathOptions);
@@ -4,4 +4,5 @@ export * from "./math-limit-location";
4
4
  export * from "./math-n-ary-properties";
5
5
  export * from "./math-sub-script";
6
6
  export * from "./math-sum";
7
+ export * from "./math-integral";
7
8
  export * from "./math-super-script";
@@ -1,5 +1,5 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathBase extends XmlComponent {
4
- constructor(children: MathComponent[]);
4
+ constructor(children: readonly MathComponent[]);
5
5
  }
@@ -0,0 +1,10 @@
1
+ import { XmlComponent } from "../../../../file/xml-components";
2
+ import { MathComponent } from "../math-component";
3
+ export interface IMathIntegralOptions {
4
+ readonly children: readonly MathComponent[];
5
+ readonly subScript?: readonly MathComponent[];
6
+ readonly superScript?: readonly MathComponent[];
7
+ }
8
+ export declare class MathIntegral extends XmlComponent {
9
+ constructor(options: IMathIntegralOptions);
10
+ }
@@ -1,5 +1,5 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathSubScriptElement extends XmlComponent {
4
- constructor(children: MathComponent[]);
4
+ constructor(children: readonly MathComponent[]);
5
5
  }
@@ -1,9 +1,9 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export interface IMathSumOptions {
4
- readonly children: MathComponent[];
5
- readonly subScript?: MathComponent[];
6
- readonly superScript?: MathComponent[];
4
+ readonly children: readonly MathComponent[];
5
+ readonly subScript?: readonly MathComponent[];
6
+ readonly superScript?: readonly MathComponent[];
7
7
  }
8
8
  export declare class MathSum extends XmlComponent {
9
9
  constructor(options: IMathSumOptions);
@@ -1,5 +1,5 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathSuperScriptElement extends XmlComponent {
4
- constructor(children: MathComponent[]);
4
+ constructor(children: readonly MathComponent[]);
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export declare class MathDegree extends XmlComponent {
4
- constructor(children?: MathComponent[]);
4
+ constructor(children?: readonly MathComponent[]);
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
2
  import { MathComponent } from "../math-component";
3
3
  export interface IMathRadicalOptions {
4
- readonly children: MathComponent[];
5
- readonly degree?: MathComponent[];
4
+ readonly children: readonly MathComponent[];
5
+ readonly degree?: readonly MathComponent[];
6
6
  }
7
7
  export declare class MathRadical extends XmlComponent {
8
8
  constructor(options: IMathRadicalOptions);
@@ -1,9 +1,9 @@
1
1
  import { XmlComponent } from "../../../../../file/xml-components";
2
2
  import { MathComponent } from "../../math-component";
3
3
  export interface IMathPreSubSuperScriptOptions {
4
- readonly children: MathComponent[];
5
- readonly subScript: MathComponent[];
6
- readonly superScript: MathComponent[];
4
+ readonly children: readonly MathComponent[];
5
+ readonly subScript: readonly MathComponent[];
6
+ readonly superScript: readonly MathComponent[];
7
7
  }
8
8
  export declare class MathPreSubSuperScript extends XmlComponent {
9
9
  constructor(options: IMathPreSubSuperScriptOptions);
@@ -1,8 +1,8 @@
1
1
  import { XmlComponent } from "../../../../../file/xml-components";
2
2
  import { MathComponent } from "../../math-component";
3
3
  export interface IMathSubScriptOptions {
4
- readonly children: MathComponent[];
5
- readonly subScript: MathComponent[];
4
+ readonly children: readonly MathComponent[];
5
+ readonly subScript: readonly MathComponent[];
6
6
  }
7
7
  export declare class MathSubScript extends XmlComponent {
8
8
  constructor(options: IMathSubScriptOptions);
@@ -1,9 +1,9 @@
1
1
  import { XmlComponent } from "../../../../../file/xml-components";
2
2
  import { MathComponent } from "../../math-component";
3
3
  export interface IMathSubSuperScriptOptions {
4
- readonly children: MathComponent[];
5
- readonly subScript: MathComponent[];
6
- readonly superScript: MathComponent[];
4
+ readonly children: readonly MathComponent[];
5
+ readonly subScript: readonly MathComponent[];
6
+ readonly superScript: readonly MathComponent[];
7
7
  }
8
8
  export declare class MathSubSuperScript extends XmlComponent {
9
9
  constructor(options: IMathSubSuperScriptOptions);
@@ -1,8 +1,8 @@
1
1
  import { XmlComponent } from "../../../../../file/xml-components";
2
2
  import { MathComponent } from "../../math-component";
3
3
  export interface IMathSuperScriptOptions {
4
- readonly children: MathComponent[];
5
- readonly superScript: MathComponent[];
4
+ readonly children: readonly MathComponent[];
5
+ readonly superScript: readonly MathComponent[];
6
6
  }
7
7
  export declare class MathSuperScript extends XmlComponent {
8
8
  constructor(options: IMathSuperScriptOptions);
@@ -10,7 +10,7 @@ import { Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments
10
10
  export declare type ParagraphChild = TextRun | ImageRun | SymbolRun | Bookmark | PageBreak | ColumnBreak | SequentialIdentifier | FootnoteReferenceRun | InternalHyperlink | ExternalHyperlink | InsertedTextRun | DeletedTextRun | Math | SimpleField | SimpleMailMergeField | Comments | Comment | CommentRangeStart | CommentRangeEnd | CommentReference;
11
11
  export interface IParagraphOptions extends IParagraphPropertiesOptions {
12
12
  readonly text?: string;
13
- readonly children?: ParagraphChild[];
13
+ readonly children?: readonly ParagraphChild[];
14
14
  }
15
15
  export declare class Paragraph extends XmlComponent {
16
16
  private readonly properties;
@@ -5,7 +5,7 @@ import { IBordersOptions } from "./formatting/border";
5
5
  import { IIndentAttributesProperties } from "./formatting/indent";
6
6
  import { ISpacingProperties } from "./formatting/spacing";
7
7
  import { HeadingLevel } from "./formatting/style";
8
- import { LeaderType, TabStopPosition, TabStopType } from "./formatting/tab-stop";
8
+ import { TabStopDefinition } from "./formatting/tab-stop";
9
9
  import { IFrameOptions } from "./frame/frame-properties";
10
10
  export interface ILevelParagraphStylePropertiesOptions {
11
11
  readonly alignment?: AlignmentType;
@@ -32,11 +32,7 @@ export interface IParagraphPropertiesOptions extends IParagraphStylePropertiesOp
32
32
  readonly heading?: HeadingLevel;
33
33
  readonly bidirectional?: boolean;
34
34
  readonly pageBreakBefore?: boolean;
35
- readonly tabStops?: {
36
- readonly position: number | TabStopPosition;
37
- readonly type: TabStopType;
38
- readonly leader?: LeaderType;
39
- }[];
35
+ readonly tabStops?: readonly TabStopDefinition[];
40
36
  readonly style?: string;
41
37
  readonly bullet?: {
42
38
  readonly level: number;
@@ -7,7 +7,7 @@ export interface ICommentOptions {
7
7
  readonly date?: Date;
8
8
  }
9
9
  export interface ICommentsOptions {
10
- readonly children: ICommentOptions[];
10
+ readonly children: readonly ICommentOptions[];
11
11
  }
12
12
  export declare class CommentRangeStart extends XmlComponent {
13
13
  constructor(id: number);
@@ -4,7 +4,7 @@ import { FieldInstruction } from "../../../file/table-of-contents/field-instruct
4
4
  import { Begin, End, Separate } from "./field";
5
5
  import { IRunPropertiesOptions, RunProperties } from "./properties";
6
6
  export interface IRunOptions extends IRunPropertiesOptions {
7
- readonly children?: (Begin | FieldInstruction | Separate | End | PageNumber | FootnoteReferenceRun | string)[];
7
+ readonly children?: readonly (Begin | FieldInstruction | Separate | End | PageNumber | FootnoteReferenceRun | string)[];
8
8
  readonly break?: number;
9
9
  readonly text?: string;
10
10
  }