docx 8.6.0 → 9.0.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.
- package/build/index.d.ts +2997 -5
- package/package.json +3 -3
- package/build/export/formatter.d.ts +0 -4
- package/build/export/formatter.spec.d.ts +0 -1
- package/build/export/index.d.ts +0 -1
- package/build/export/packer/image-replacer.d.ts +0 -5
- package/build/export/packer/image-replacer.spec.d.ts +0 -1
- package/build/export/packer/next-compiler.d.ts +0 -11
- package/build/export/packer/next-compiler.spec.d.ts +0 -1
- package/build/export/packer/numbering-replacer.d.ts +0 -4
- package/build/export/packer/packer.d.ts +0 -18
- package/build/export/packer/packer.spec.d.ts +0 -1
- package/build/file/app-properties/app-properties-attributes.d.ts +0 -10
- package/build/file/app-properties/app-properties.d.ts +0 -4
- package/build/file/border/border.d.ts +0 -39
- package/build/file/border/border.spec.d.ts +0 -1
- package/build/file/border/index.d.ts +0 -1
- package/build/file/checkbox/checkbox-symbol.d.ts +0 -4
- package/build/file/checkbox/checkbox-util.d.ts +0 -17
- package/build/file/checkbox/checkbox-util.spec.d.ts +0 -1
- package/build/file/checkbox/checkbox.d.ts +0 -8
- package/build/file/checkbox/checkbox.spec.d.ts +0 -1
- package/build/file/checkbox/index.d.ts +0 -3
- package/build/file/content-types/content-types-attributes.d.ts +0 -8
- package/build/file/content-types/content-types.d.ts +0 -6
- package/build/file/content-types/content-types.spec.d.ts +0 -1
- package/build/file/content-types/default/default-attributes.d.ts +0 -10
- package/build/file/content-types/default/default.d.ts +0 -4
- package/build/file/content-types/override/override-attributes.d.ts +0 -10
- package/build/file/content-types/override/override.d.ts +0 -4
- package/build/file/core-properties/index.d.ts +0 -1
- package/build/file/core-properties/properties.d.ts +0 -43
- package/build/file/core-properties/properties.spec.d.ts +0 -1
- package/build/file/custom-properties/custom-properties-attributes.d.ts +0 -10
- package/build/file/custom-properties/custom-properties.d.ts +0 -9
- package/build/file/custom-properties/custom-properties.spec.d.ts +0 -1
- package/build/file/custom-properties/custom-property-attributes.d.ts +0 -12
- package/build/file/custom-properties/custom-property.d.ts +0 -11
- package/build/file/custom-properties/index.d.ts +0 -2
- package/build/file/document/body/body.d.ts +0 -10
- package/build/file/document/body/body.spec.d.ts +0 -1
- package/build/file/document/body/index.d.ts +0 -2
- package/build/file/document/body/section-properties/index.d.ts +0 -2
- package/build/file/document/body/section-properties/properties/column.d.ts +0 -10
- package/build/file/document/body/section-properties/properties/columns.d.ts +0 -13
- package/build/file/document/body/section-properties/properties/columns.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/doc-grid.d.ts +0 -22
- package/build/file/document/body/section-properties/properties/doc-grid.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/header-footer-reference.d.ts +0 -17
- package/build/file/document/body/section-properties/properties/header-footer-reference.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/index.d.ts +0 -12
- package/build/file/document/body/section-properties/properties/line-number.d.ts +0 -14
- package/build/file/document/body/section-properties/properties/page-borders.d.ts +0 -30
- package/build/file/document/body/section-properties/properties/page-borders.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/page-margin.d.ts +0 -14
- package/build/file/document/body/section-properties/properties/page-number.d.ts +0 -24
- package/build/file/document/body/section-properties/properties/page-size.d.ts +0 -14
- package/build/file/document/body/section-properties/properties/page-size.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/page-text-direction.d.ts +0 -8
- package/build/file/document/body/section-properties/properties/page-text-direction.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/section-type.d.ts +0 -18
- package/build/file/document/body/section-properties/properties/section-type.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/section-properties.d.ts +0 -53
- package/build/file/document/body/section-properties/section-properties.spec.d.ts +0 -1
- package/build/file/document/document-attributes.d.ts +0 -85
- package/build/file/document/document-background/document-background.d.ts +0 -23
- package/build/file/document/document-background/document-background.spec.d.ts +0 -1
- package/build/file/document/document-background/index.d.ts +0 -1
- package/build/file/document/document.d.ts +0 -15
- package/build/file/document/document.spec.d.ts +0 -1
- package/build/file/document/index.d.ts +0 -4
- package/build/file/document-wrapper.d.ts +0 -17
- package/build/file/document-wrapper.spec.d.ts +0 -1
- package/build/file/drawing/anchor/anchor-attributes.d.ts +0 -24
- package/build/file/drawing/anchor/anchor.d.ts +0 -10
- package/build/file/drawing/anchor/anchor.spec.d.ts +0 -1
- package/build/file/drawing/anchor/index.d.ts +0 -2
- package/build/file/drawing/doc-properties/doc-properties-children.d.ts +0 -3
- package/build/file/drawing/doc-properties/doc-properties-children.spec.d.ts +0 -1
- package/build/file/drawing/doc-properties/doc-properties.d.ts +0 -11
- package/build/file/drawing/drawing.d.ts +0 -19
- package/build/file/drawing/drawing.spec.d.ts +0 -1
- package/build/file/drawing/effect-extent/effect-extent.d.ts +0 -8
- package/build/file/drawing/extent/extent-attributes.d.ts +0 -10
- package/build/file/drawing/extent/extent.d.ts +0 -5
- package/build/file/drawing/floating/align.d.ts +0 -5
- package/build/file/drawing/floating/align.spec.d.ts +0 -1
- package/build/file/drawing/floating/floating-position.d.ts +0 -49
- package/build/file/drawing/floating/horizontal-position.d.ts +0 -5
- package/build/file/drawing/floating/horizontal-position.spec.d.ts +0 -1
- package/build/file/drawing/floating/index.d.ts +0 -4
- package/build/file/drawing/floating/position-offset.d.ts +0 -4
- package/build/file/drawing/floating/position-offset.spec.d.ts +0 -1
- package/build/file/drawing/floating/simple-pos.d.ts +0 -4
- package/build/file/drawing/floating/simple-pos.spec.d.ts +0 -1
- package/build/file/drawing/floating/vertical-position.d.ts +0 -5
- package/build/file/drawing/floating/vertical-position.spec.d.ts +0 -1
- package/build/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-lock-attributes.d.ts +0 -10
- package/build/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-locks.d.ts +0 -4
- package/build/file/drawing/graphic-frame/graphic-frame-properties.d.ts +0 -4
- package/build/file/drawing/index.d.ts +0 -3
- package/build/file/drawing/inline/graphic/graphic-data/graphic-data-attribute.d.ts +0 -8
- package/build/file/drawing/inline/graphic/graphic-data/graphic-data.d.ts +0 -11
- package/build/file/drawing/inline/graphic/graphic-data/index.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/blip/blip-extentions.d.ts +0 -3
- package/build/file/drawing/inline/graphic/graphic-data/pic/blip/blip-fill.d.ts +0 -5
- package/build/file/drawing/inline/graphic/graphic-data/pic/blip/blip.d.ts +0 -3
- package/build/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/blip/stretch.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/index.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/child-non-visual-pic-properties.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/pic-locks/pic-locks-attributes.d.ts +0 -10
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/pic-locks/pic-locks.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-pic-properties.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-properties/non-visual-properties-attributes.d.ts +0 -12
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-properties/non-visual-properties.d.ts +0 -5
- package/build/file/drawing/inline/graphic/graphic-data/pic/pic-attributes.d.ts +0 -8
- package/build/file/drawing/inline/graphic/graphic-data/pic/pic.d.ts +0 -10
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/extents/extents-attributes.d.ts +0 -10
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/extents/extents.d.ts +0 -5
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/form.d.ts +0 -17
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/index.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off-attributes.d.ts +0 -10
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form.spec.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.d.ts +0 -2
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.spec.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts +0 -42
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.spec.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/rgb-color.d.ts +0 -6
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/scheme-color.d.ts +0 -25
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts +0 -12
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.spec.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/adjustment-values/adjustment-values.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/preset-geometry-attributes.d.ts +0 -8
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/preset-geometry.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/shape-properties-attributes.d.ts +0 -8
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/shape-properties.d.ts +0 -10
- package/build/file/drawing/inline/graphic/graphic.d.ts +0 -11
- package/build/file/drawing/inline/graphic/index.d.ts +0 -1
- package/build/file/drawing/inline/index.d.ts +0 -1
- package/build/file/drawing/inline/inline.d.ts +0 -12
- package/build/file/drawing/inline/inline.spec.d.ts +0 -1
- package/build/file/drawing/text-wrap/index.d.ts +0 -5
- package/build/file/drawing/text-wrap/text-wrapping.d.ts +0 -18
- package/build/file/drawing/text-wrap/wrap-none.d.ts +0 -4
- package/build/file/drawing/text-wrap/wrap-square.d.ts +0 -6
- package/build/file/drawing/text-wrap/wrap-tight.d.ts +0 -5
- package/build/file/drawing/text-wrap/wrap-top-and-bottom.d.ts +0 -5
- package/build/file/file-child.d.ts +0 -4
- package/build/file/file.d.ts +0 -72
- package/build/file/file.spec.d.ts +0 -1
- package/build/file/fonts/create-regular-font.d.ts +0 -8
- package/build/file/fonts/font-table.d.ts +0 -10
- package/build/file/fonts/font-wrapper.d.ts +0 -16
- package/build/file/fonts/font.d.ts +0 -49
- package/build/file/fonts/font.spec.d.ts +0 -1
- package/build/file/fonts/index.d.ts +0 -1
- package/build/file/fonts/obfuscate-ttf-to-odttf.d.ts +0 -2
- package/build/file/fonts/obsfuscate-ttf-to-odtts.spec.d.ts +0 -1
- package/build/file/footer/footer-attributes.d.ts +0 -50
- package/build/file/footer/footer.d.ts +0 -9
- package/build/file/footer/footer.spec.d.ts +0 -1
- package/build/file/footer/index.d.ts +0 -1
- package/build/file/footer-wrapper.d.ts +0 -23
- package/build/file/footer-wrapper.spec.d.ts +0 -1
- package/build/file/footnotes/footnote/footnote-attributes.d.ts +0 -10
- package/build/file/footnotes/footnote/footnote.d.ts +0 -14
- package/build/file/footnotes/footnote/footnote.spec.d.ts +0 -1
- package/build/file/footnotes/footnote/index.d.ts +0 -1
- package/build/file/footnotes/footnote/run/continuation-seperator-run.d.ts +0 -4
- package/build/file/footnotes/footnote/run/continuation-seperator.d.ts +0 -4
- package/build/file/footnotes/footnote/run/footnote-ref-run.d.ts +0 -4
- package/build/file/footnotes/footnote/run/footnote-ref.d.ts +0 -4
- package/build/file/footnotes/footnote/run/index.d.ts +0 -1
- package/build/file/footnotes/footnote/run/reference-run.d.ts +0 -15
- package/build/file/footnotes/footnote/run/seperator-run.d.ts +0 -4
- package/build/file/footnotes/footnote/run/seperator.d.ts +0 -4
- package/build/file/footnotes/footnotes-attributes.d.ts +0 -40
- package/build/file/footnotes/footnotes.d.ts +0 -6
- package/build/file/footnotes/index.d.ts +0 -2
- package/build/file/footnotes-wrapper.d.ts +0 -10
- package/build/file/footnotes-wrapper.spec.d.ts +0 -1
- package/build/file/header/header-attributes.d.ts +0 -72
- package/build/file/header/header.d.ts +0 -9
- package/build/file/header/header.spec.d.ts +0 -1
- package/build/file/header/index.d.ts +0 -1
- package/build/file/header-wrapper.d.ts +0 -23
- package/build/file/header-wrapper.spec.d.ts +0 -1
- package/build/file/header.d.ts +0 -13
- package/build/file/index.d.ts +0 -22
- package/build/file/media/data.d.ts +0 -31
- package/build/file/media/index.d.ts +0 -2
- package/build/file/media/media.d.ts +0 -16
- package/build/file/media/media.spec.d.ts +0 -1
- package/build/file/numbering/abstract-numbering.d.ts +0 -6
- package/build/file/numbering/abstract-numbering.spec.d.ts +0 -1
- package/build/file/numbering/concrete-numbering.spec.d.ts +0 -1
- package/build/file/numbering/index.d.ts +0 -4
- package/build/file/numbering/level.d.ts +0 -96
- package/build/file/numbering/level.spec.d.ts +0 -1
- package/build/file/numbering/multi-level-type.d.ts +0 -4
- package/build/file/numbering/num.d.ts +0 -22
- package/build/file/numbering/numbering.d.ts +0 -21
- package/build/file/numbering/numbering.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/alignment.d.ts +0 -26
- package/build/file/paragraph/formatting/alignment.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/border.d.ts +0 -14
- package/build/file/paragraph/formatting/border.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/break.d.ts +0 -11
- package/build/file/paragraph/formatting/break.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/indent.d.ts +0 -13
- package/build/file/paragraph/formatting/indent.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/index.d.ts +0 -8
- package/build/file/paragraph/formatting/spacing.d.ts +0 -18
- package/build/file/paragraph/formatting/spacing.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/style.d.ts +0 -13
- package/build/file/paragraph/formatting/style.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/tab-stop.d.ts +0 -44
- package/build/file/paragraph/formatting/tab-stop.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/unordered-list.d.ts +0 -4
- package/build/file/paragraph/formatting/unordered-list.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/word-wrap.d.ts +0 -11
- package/build/file/paragraph/formatting/word-wrap.spec.d.ts +0 -1
- package/build/file/paragraph/frame/frame-properties.d.ts +0 -55
- package/build/file/paragraph/frame/frame-properties.spec.d.ts +0 -1
- package/build/file/paragraph/frame/index.d.ts +0 -1
- package/build/file/paragraph/index.d.ts +0 -7
- package/build/file/paragraph/links/bookmark-attributes.d.ts +0 -17
- package/build/file/paragraph/links/bookmark.d.ts +0 -18
- package/build/file/paragraph/links/bookmark.spec.d.ts +0 -1
- package/build/file/paragraph/links/hyperlink-attributes.d.ts +0 -13
- package/build/file/paragraph/links/hyperlink.d.ts +0 -26
- package/build/file/paragraph/links/hyperlink.spec.d.ts +0 -1
- package/build/file/paragraph/links/index.d.ts +0 -4
- package/build/file/paragraph/links/outline-level.d.ts +0 -5
- package/build/file/paragraph/links/outline-level.spec.d.ts +0 -1
- package/build/file/paragraph/links/pageref-field-instruction.d.ts +0 -5
- package/build/file/paragraph/links/pageref-field-instruction.spec.d.ts +0 -1
- package/build/file/paragraph/links/pageref.d.ts +0 -8
- package/build/file/paragraph/links/pageref.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/index.d.ts +0 -4
- package/build/file/paragraph/math/brackets/math-angled-brackets.d.ts +0 -7
- package/build/file/paragraph/math/brackets/math-angled-brackets.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-beginning-character.d.ts +0 -4
- package/build/file/paragraph/math/brackets/math-beginning-character.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-bracket-properties.d.ts +0 -7
- package/build/file/paragraph/math/brackets/math-bracket-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-curly-brackets.d.ts +0 -7
- package/build/file/paragraph/math/brackets/math-curly-brackets.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-ending-char.d.ts +0 -4
- package/build/file/paragraph/math/brackets/math-ending-character.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-round-brackets.d.ts +0 -7
- package/build/file/paragraph/math/brackets/math-round-brackets.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-square-brackets.d.ts +0 -7
- package/build/file/paragraph/math/brackets/math-square-brackets.spec.d.ts +0 -1
- package/build/file/paragraph/math/fraction/index.d.ts +0 -3
- package/build/file/paragraph/math/fraction/math-denominator.d.ts +0 -5
- package/build/file/paragraph/math/fraction/math-denominator.spec.d.ts +0 -1
- package/build/file/paragraph/math/fraction/math-fraction.d.ts +0 -9
- package/build/file/paragraph/math/fraction/math-fraction.spec.d.ts +0 -1
- package/build/file/paragraph/math/fraction/math-numerator.d.ts +0 -5
- package/build/file/paragraph/math/fraction/math-numerator.spec.d.ts +0 -1
- package/build/file/paragraph/math/function/index.d.ts +0 -3
- package/build/file/paragraph/math/function/math-function-name.d.ts +0 -5
- package/build/file/paragraph/math/function/math-function-name.spec.d.ts +0 -1
- package/build/file/paragraph/math/function/math-function-properties.d.ts +0 -4
- package/build/file/paragraph/math/function/math-function-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/function/math-function.d.ts +0 -9
- package/build/file/paragraph/math/function/math-function.spec.d.ts +0 -1
- package/build/file/paragraph/math/index.d.ts +0 -9
- package/build/file/paragraph/math/math-component.d.ts +0 -9
- package/build/file/paragraph/math/math-run.d.ts +0 -4
- package/build/file/paragraph/math/math-run.spec.d.ts +0 -1
- package/build/file/paragraph/math/math-text.d.ts +0 -4
- package/build/file/paragraph/math/math-text.spec.d.ts +0 -1
- package/build/file/paragraph/math/math.d.ts +0 -8
- package/build/file/paragraph/math/math.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/index.d.ts +0 -11
- package/build/file/paragraph/math/n-ary/math-accent-character.d.ts +0 -4
- package/build/file/paragraph/math/n-ary/math-accent-character.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-base.d.ts +0 -5
- package/build/file/paragraph/math/n-ary/math-base.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-integral.d.ts +0 -10
- package/build/file/paragraph/math/n-ary/math-integral.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-limit-location.d.ts +0 -4
- package/build/file/paragraph/math/n-ary/math-limit-location.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-limit-lower.d.ts +0 -9
- package/build/file/paragraph/math/n-ary/math-limit-lower.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-limit-upper.d.ts +0 -9
- package/build/file/paragraph/math/n-ary/math-limit-upper.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-limit.d.ts +0 -5
- package/build/file/paragraph/math/n-ary/math-limit.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-n-ary-properties.d.ts +0 -4
- package/build/file/paragraph/math/n-ary/math-n-ary-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-sub-script-hide.d.ts +0 -4
- package/build/file/paragraph/math/n-ary/math-sub-script-hide.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-sub-script.d.ts +0 -5
- package/build/file/paragraph/math/n-ary/math-sub-script.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-sum.d.ts +0 -10
- package/build/file/paragraph/math/n-ary/math-sum.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-super-script-hide.d.ts +0 -4
- package/build/file/paragraph/math/n-ary/math-super-script-hide.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-super-script.d.ts +0 -5
- package/build/file/paragraph/math/n-ary/math-super-script.spec.d.ts +0 -1
- package/build/file/paragraph/math/radical/index.d.ts +0 -3
- package/build/file/paragraph/math/radical/math-degree-hide.d.ts +0 -4
- package/build/file/paragraph/math/radical/math-degree-hide.spec.d.ts +0 -1
- package/build/file/paragraph/math/radical/math-degree.d.ts +0 -5
- package/build/file/paragraph/math/radical/math-degree.spec.d.ts +0 -1
- package/build/file/paragraph/math/radical/math-radical-properties.d.ts +0 -4
- package/build/file/paragraph/math/radical/math-radical-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/radical/math-radical.d.ts +0 -9
- package/build/file/paragraph/math/radical/math-radical.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/index.d.ts +0 -4
- package/build/file/paragraph/math/script/pre-sub-super-script/index.d.ts +0 -2
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.d.ts +0 -4
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.d.ts +0 -10
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/sub-script/index.d.ts +0 -2
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function-properties.d.ts +0 -4
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function.d.ts +0 -9
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/sub-super-script/index.d.ts +0 -2
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.d.ts +0 -4
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.d.ts +0 -10
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/super-script/index.d.ts +0 -2
- package/build/file/paragraph/math/script/super-script/math-super-script-function-properties.d.ts +0 -4
- package/build/file/paragraph/math/script/super-script/math-super-script-function-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/super-script/math-super-script-function.d.ts +0 -9
- package/build/file/paragraph/math/script/super-script/math-super-script-function.spec.d.ts +0 -1
- package/build/file/paragraph/paragraph.d.ts +0 -22
- package/build/file/paragraph/paragraph.spec.d.ts +0 -1
- package/build/file/paragraph/properties.d.ts +0 -56
- package/build/file/paragraph/properties.spec.d.ts +0 -1
- package/build/file/paragraph/run/break.d.ts +0 -4
- package/build/file/paragraph/run/break.spec.d.ts +0 -1
- package/build/file/paragraph/run/comment-run.d.ts +0 -27
- package/build/file/paragraph/run/comment-run.spec.d.ts +0 -1
- package/build/file/paragraph/run/emphasis-mark.d.ts +0 -13
- package/build/file/paragraph/run/emphasis-mark.spec.d.ts +0 -1
- package/build/file/paragraph/run/empty-children.d.ts +0 -52
- package/build/file/paragraph/run/empty-children.spec.d.ts +0 -1
- package/build/file/paragraph/run/field.d.ts +0 -10
- package/build/file/paragraph/run/formatting.d.ts +0 -14
- package/build/file/paragraph/run/formatting.spec.d.ts +0 -1
- package/build/file/paragraph/run/image-run.d.ts +0 -31
- package/build/file/paragraph/run/image-run.spec.d.ts +0 -1
- package/build/file/paragraph/run/index.d.ts +0 -13
- package/build/file/paragraph/run/language.d.ts +0 -7
- package/build/file/paragraph/run/language.spec.d.ts +0 -1
- package/build/file/paragraph/run/page-number.d.ts +0 -13
- package/build/file/paragraph/run/page-number.spec.d.ts +0 -1
- package/build/file/paragraph/run/positional-tab.d.ts +0 -25
- package/build/file/paragraph/run/positional-tab.spec.d.ts +0 -1
- package/build/file/paragraph/run/properties.d.ts +0 -96
- package/build/file/paragraph/run/run-components/symbol.d.ts +0 -4
- package/build/file/paragraph/run/run-components/symbol.spec.d.ts +0 -1
- package/build/file/paragraph/run/run-components/text.d.ts +0 -10
- package/build/file/paragraph/run/run-components/text.spec.d.ts +0 -1
- package/build/file/paragraph/run/run-fonts.d.ts +0 -12
- package/build/file/paragraph/run/run-fonts.spec.d.ts +0 -1
- package/build/file/paragraph/run/run.d.ts +0 -23
- package/build/file/paragraph/run/run.spec.d.ts +0 -1
- package/build/file/paragraph/run/script.d.ts +0 -10
- package/build/file/paragraph/run/script.spec.d.ts +0 -1
- package/build/file/paragraph/run/sequential-identifier-instruction.d.ts +0 -4
- package/build/file/paragraph/run/sequential-identifier.d.ts +0 -4
- package/build/file/paragraph/run/sequential-identifier.spec.d.ts +0 -1
- package/build/file/paragraph/run/simple-field.d.ts +0 -7
- package/build/file/paragraph/run/simple-field.spec.d.ts +0 -1
- package/build/file/paragraph/run/symbol-run.d.ts +0 -8
- package/build/file/paragraph/run/symbol-run.spec.d.ts +0 -1
- package/build/file/paragraph/run/text-attributes.d.ts +0 -9
- package/build/file/paragraph/run/text-run.d.ts +0 -4
- package/build/file/paragraph/run/text-run.spec.d.ts +0 -1
- package/build/file/paragraph/run/underline.d.ts +0 -24
- package/build/file/paragraph/run/underline.spec.d.ts +0 -1
- package/build/file/relationships/attributes.d.ts +0 -8
- package/build/file/relationships/index.d.ts +0 -1
- package/build/file/relationships/relationship/relationship-attributes.d.ts +0 -14
- package/build/file/relationships/relationship/relationship.d.ts +0 -8
- package/build/file/relationships/relationships.d.ts +0 -7
- package/build/file/relationships/relationships.spec.d.ts +0 -1
- package/build/file/settings/compatibility-setting/compatibility-setting.d.ts +0 -15
- package/build/file/settings/compatibility-setting/compatibility-setting.spec.d.ts +0 -1
- package/build/file/settings/compatibility.d.ts +0 -72
- package/build/file/settings/compatibility.spec.d.ts +0 -1
- package/build/file/settings/index.d.ts +0 -1
- package/build/file/settings/settings.d.ts +0 -52
- package/build/file/settings/settings.spec.d.ts +0 -1
- package/build/file/shading/index.d.ts +0 -1
- package/build/file/shading/shading.d.ts +0 -48
- package/build/file/shading/shading.spec.d.ts +0 -1
- package/build/file/shared/alignment.d.ts +0 -14
- package/build/file/shared/index.d.ts +0 -3
- package/build/file/shared/number-format.d.ts +0 -64
- package/build/file/shared/space-type.d.ts +0 -4
- package/build/file/styles/defaults/document-defaults.d.ts +0 -12
- package/build/file/styles/defaults/document-defaults.spec.d.ts +0 -1
- package/build/file/styles/defaults/index.d.ts +0 -3
- package/build/file/styles/defaults/paragraph-properties.d.ts +0 -5
- package/build/file/styles/defaults/run-properties.d.ts +0 -5
- package/build/file/styles/external-styles-factory.d.ts +0 -4
- package/build/file/styles/external-styles-factory.spec.d.ts +0 -1
- package/build/file/styles/factory.d.ts +0 -22
- package/build/file/styles/index.d.ts +0 -4
- package/build/file/styles/latent-styles/exceptions.d.ts +0 -20
- package/build/file/styles/latent-styles/exceptions.spec.d.ts +0 -1
- package/build/file/styles/latent-styles/index.d.ts +0 -1
- package/build/file/styles/latent-styles/latent-styles.d.ts +0 -5
- package/build/file/styles/latent-styles/latent-styles.spec.d.ts +0 -1
- package/build/file/styles/sample/default-style.d.ts +0 -1
- package/build/file/styles/sample/default-style.spec.d.ts +0 -1
- package/build/file/styles/sample/index.d.ts +0 -1
- package/build/file/styles/style/character-style.d.ts +0 -12
- package/build/file/styles/style/character-style.spec.d.ts +0 -1
- package/build/file/styles/style/components.d.ts +0 -11
- package/build/file/styles/style/components.spec.d.ts +0 -1
- package/build/file/styles/style/default-styles.d.ts +0 -44
- package/build/file/styles/style/default-styles.spec.d.ts +0 -1
- package/build/file/styles/style/index.d.ts +0 -4
- package/build/file/styles/style/paragraph-style.d.ts +0 -14
- package/build/file/styles/style/paragraph-style.spec.d.ts +0 -1
- package/build/file/styles/style/style.d.ts +0 -20
- package/build/file/styles/style/style.spec.d.ts +0 -1
- package/build/file/styles/styles.d.ts +0 -15
- package/build/file/styles/styles.spec.d.ts +0 -1
- package/build/file/table/grid.d.ts +0 -8
- package/build/file/table/grid.spec.d.ts +0 -1
- package/build/file/table/index.d.ts +0 -5
- package/build/file/table/table-cell/index.d.ts +0 -2
- package/build/file/table/table-cell/table-cell-components.d.ts +0 -31
- package/build/file/table/table-cell/table-cell-properties.d.ts +0 -20
- package/build/file/table/table-cell/table-cell-properties.spec.d.ts +0 -1
- package/build/file/table/table-cell/table-cell.d.ts +0 -12
- package/build/file/table/table-cell/table-cell.spec.d.ts +0 -1
- package/build/file/table/table-properties/index.d.ts +0 -4
- package/build/file/table/table-properties/table-borders.d.ts +0 -45
- package/build/file/table/table-properties/table-borders.spec.d.ts +0 -1
- package/build/file/table/table-properties/table-cell-margin.d.ts +0 -16
- package/build/file/table/table-properties/table-cell-margin.spec.d.ts +0 -1
- package/build/file/table/table-properties/table-float-properties.d.ts +0 -42
- package/build/file/table/table-properties/table-float-properties.spec.d.ts +0 -1
- package/build/file/table/table-properties/table-layout.d.ts +0 -8
- package/build/file/table/table-properties/table-properties.d.ts +0 -23
- package/build/file/table/table-properties/table-properties.spec.d.ts +0 -1
- package/build/file/table/table-row/index.d.ts +0 -3
- package/build/file/table/table-row/table-row-height.d.ts +0 -19
- package/build/file/table/table-row/table-row-properties.d.ts +0 -14
- package/build/file/table/table-row/table-row-properties.spec.d.ts +0 -1
- package/build/file/table/table-row/table-row.d.ts +0 -16
- package/build/file/table/table-row/table-row.spec.d.ts +0 -1
- package/build/file/table/table-width.d.ts +0 -15
- package/build/file/table/table.d.ts +0 -23
- package/build/file/table/table.spec.d.ts +0 -1
- package/build/file/table-of-contents/field-instruction.d.ts +0 -6
- package/build/file/table-of-contents/index.d.ts +0 -2
- package/build/file/table-of-contents/sdt-content.d.ts +0 -4
- package/build/file/table-of-contents/sdt-properties.d.ts +0 -4
- package/build/file/table-of-contents/table-of-contents-properties.d.ts +0 -23
- package/build/file/table-of-contents/table-of-contents.d.ts +0 -5
- package/build/file/table-of-contents/table-of-contents.spec.d.ts +0 -1
- package/build/file/track-revision/index.d.ts +0 -2
- package/build/file/track-revision/track-revision-components/deleted-page-number.d.ts +0 -10
- package/build/file/track-revision/track-revision-components/deleted-page-number.spec.d.ts +0 -1
- package/build/file/track-revision/track-revision-components/deleted-text-run.d.ts +0 -13
- package/build/file/track-revision/track-revision-components/deleted-text-run.spec.d.ts +0 -1
- package/build/file/track-revision/track-revision-components/deleted-text.d.ts +0 -4
- package/build/file/track-revision/track-revision-components/deleted-text.spec.d.ts +0 -1
- package/build/file/track-revision/track-revision-components/inserted-text-run.d.ts +0 -9
- package/build/file/track-revision/track-revision-components/inserted-text-run.spec.d.ts +0 -1
- package/build/file/track-revision/track-revision.d.ts +0 -13
- package/build/file/vertical-align/index.d.ts +0 -1
- package/build/file/vertical-align/vertical-align.d.ts +0 -16
- package/build/file/xml-components/attribute.spec.d.ts +0 -1
- package/build/file/xml-components/attributes.d.ts +0 -46
- package/build/file/xml-components/base.d.ts +0 -13
- package/build/file/xml-components/default-attributes.d.ts +0 -25
- package/build/file/xml-components/imported-xml-component.d.ts +0 -14
- package/build/file/xml-components/imported-xml-component.spec.d.ts +0 -1
- package/build/file/xml-components/index.d.ts +0 -8
- package/build/file/xml-components/initializable-xml-component.d.ts +0 -4
- package/build/file/xml-components/simple-elements.d.ts +0 -30
- package/build/file/xml-components/simple-elements.spec.d.ts +0 -1
- package/build/file/xml-components/xml-component.d.ts +0 -12
- package/build/file/xml-components/xml-component.spec.d.ts +0 -1
- package/build/file/xml-components/xmlable-object.d.ts +0 -7
- package/build/index.spec.d.ts +0 -1
- package/build/patcher/content-types-manager.d.ts +0 -2
- package/build/patcher/content-types-manager.spec.d.ts +0 -1
- package/build/patcher/from-docx.d.ts +0 -40
- package/build/patcher/from-docx.spec.d.ts +0 -1
- package/build/patcher/index.d.ts +0 -2
- package/build/patcher/paragraph-split-inject.d.ts +0 -6
- package/build/patcher/paragraph-split-inject.spec.d.ts +0 -1
- package/build/patcher/paragraph-token-replacer.d.ts +0 -8
- package/build/patcher/paragraph-token-replacer.spec.d.ts +0 -1
- package/build/patcher/patch-detector.d.ts +0 -6
- package/build/patcher/patch-detector.spec.d.ts +0 -1
- package/build/patcher/relationship-manager.d.ts +0 -4
- package/build/patcher/relationship-manager.spec.d.ts +0 -1
- package/build/patcher/replacer.d.ts +0 -10
- package/build/patcher/replacer.spec.d.ts +0 -80
- package/build/patcher/run-renderer.d.ts +0 -22
- package/build/patcher/run-renderer.spec.d.ts +0 -1
- package/build/patcher/traverser.d.ts +0 -9
- package/build/patcher/traverser.spec.d.ts +0 -1
- package/build/patcher/util.d.ts +0 -5
- package/build/patcher/util.spec.d.ts +0 -1
- package/build/tests/utility.d.ts +0 -3
- package/build/util/convenience-functions.d.ts +0 -10
- package/build/util/convenience-functions.spec.d.ts +0 -1
- package/build/util/index.d.ts +0 -2
- package/build/util/values.d.ts +0 -20
- package/build/util/values.spec.d.ts +0 -1
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,2997 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import { Element as Element_2 } from 'xml-js';
|
|
4
|
+
import { Stream } from 'stream';
|
|
5
|
+
|
|
6
|
+
export declare class AbstractNumbering extends XmlComponent {
|
|
7
|
+
readonly id: number;
|
|
8
|
+
constructor(id: number, levelOptions: readonly ILevelsOptions[]);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare const abstractNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
12
|
+
|
|
13
|
+
export declare class Alignment extends XmlComponent {
|
|
14
|
+
constructor(type: (typeof AlignmentType)[keyof typeof AlignmentType]);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare class AlignmentAttributes extends XmlAttributeComponent<{
|
|
18
|
+
readonly val: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
19
|
+
}> {
|
|
20
|
+
protected readonly xmlKeys: {
|
|
21
|
+
val: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare const AlignmentType: {
|
|
26
|
+
readonly START: "start";
|
|
27
|
+
readonly CENTER: "center";
|
|
28
|
+
readonly END: "end";
|
|
29
|
+
readonly BOTH: "both";
|
|
30
|
+
readonly MEDIUM_KASHIDA: "mediumKashida";
|
|
31
|
+
readonly DISTRIBUTE: "distribute";
|
|
32
|
+
readonly NUM_TAB: "numTab";
|
|
33
|
+
readonly HIGH_KASHIDA: "highKashida";
|
|
34
|
+
readonly LOW_KASHIDA: "lowKashida";
|
|
35
|
+
readonly THAI_DISTRIBUTE: "thaiDistribute";
|
|
36
|
+
readonly LEFT: "left";
|
|
37
|
+
readonly RIGHT: "right";
|
|
38
|
+
readonly JUSTIFIED: "both";
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export declare class AnnotationReference extends EmptyElement {
|
|
42
|
+
constructor();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare class AppProperties extends XmlComponent {
|
|
46
|
+
constructor();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export declare type AttributeData = {
|
|
50
|
+
readonly [key: string]: boolean | number | string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export declare type AttributeMap<T> = {
|
|
54
|
+
readonly [P in keyof T]: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export declare type AttributePayload<T> = {
|
|
58
|
+
readonly [P in keyof T]: {
|
|
59
|
+
readonly key: string;
|
|
60
|
+
readonly value: T[P];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export declare class Attributes extends XmlAttributeComponent<{
|
|
65
|
+
readonly val?: string | number | boolean;
|
|
66
|
+
readonly color?: string;
|
|
67
|
+
readonly fill?: string;
|
|
68
|
+
readonly space?: string;
|
|
69
|
+
readonly sz?: string;
|
|
70
|
+
readonly type?: string;
|
|
71
|
+
readonly rsidR?: string;
|
|
72
|
+
readonly rsidRPr?: string;
|
|
73
|
+
readonly rsidSect?: string;
|
|
74
|
+
readonly w?: string;
|
|
75
|
+
readonly h?: string;
|
|
76
|
+
readonly top?: string;
|
|
77
|
+
readonly right?: string;
|
|
78
|
+
readonly bottom?: string;
|
|
79
|
+
readonly left?: string;
|
|
80
|
+
readonly header?: string;
|
|
81
|
+
readonly footer?: string;
|
|
82
|
+
readonly gutter?: string;
|
|
83
|
+
readonly linePitch?: string;
|
|
84
|
+
readonly pos?: string | number;
|
|
85
|
+
}> {
|
|
86
|
+
protected readonly xmlKeys: {
|
|
87
|
+
val: string;
|
|
88
|
+
color: string;
|
|
89
|
+
fill: string;
|
|
90
|
+
space: string;
|
|
91
|
+
sz: string;
|
|
92
|
+
type: string;
|
|
93
|
+
rsidR: string;
|
|
94
|
+
rsidRPr: string;
|
|
95
|
+
rsidSect: string;
|
|
96
|
+
w: string;
|
|
97
|
+
h: string;
|
|
98
|
+
top: string;
|
|
99
|
+
right: string;
|
|
100
|
+
bottom: string;
|
|
101
|
+
left: string;
|
|
102
|
+
header: string;
|
|
103
|
+
footer: string;
|
|
104
|
+
gutter: string;
|
|
105
|
+
linePitch: string;
|
|
106
|
+
pos: string;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export declare abstract class BaseEmphasisMark extends XmlComponent {
|
|
111
|
+
protected constructor(emphasisMarkType: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export declare abstract class BaseXmlComponent {
|
|
115
|
+
protected readonly rootKey: string;
|
|
116
|
+
constructor(rootKey: string);
|
|
117
|
+
abstract prepForXml(context: IContext): IXmlableObject | undefined;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare class Begin extends XmlComponent {
|
|
121
|
+
constructor(dirty?: boolean);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare class Body_2 extends XmlComponent {
|
|
125
|
+
private readonly sections;
|
|
126
|
+
constructor();
|
|
127
|
+
addSection(options: ISectionPropertiesOptions): void;
|
|
128
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
129
|
+
push(component: XmlComponent): void;
|
|
130
|
+
private createSectionParagraph;
|
|
131
|
+
}
|
|
132
|
+
export { Body_2 as Body }
|
|
133
|
+
|
|
134
|
+
export declare class Bookmark {
|
|
135
|
+
private readonly bookmarkUniqueNumericId;
|
|
136
|
+
readonly start: BookmarkStart;
|
|
137
|
+
readonly children: readonly ParagraphChild[];
|
|
138
|
+
readonly end: BookmarkEnd;
|
|
139
|
+
constructor(options: {
|
|
140
|
+
readonly id: string;
|
|
141
|
+
readonly children: readonly ParagraphChild[];
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export declare class BookmarkEnd extends XmlComponent {
|
|
146
|
+
constructor(linkId: number);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export declare class BookmarkStart extends XmlComponent {
|
|
150
|
+
constructor(id: string, linkId: number);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
154
|
+
|
|
155
|
+
export declare class Border extends IgnoreIfEmptyXmlComponent {
|
|
156
|
+
constructor(options: IBordersOptions);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export declare class BorderElement extends XmlComponent {
|
|
160
|
+
constructor(elementName: string, { color, size, space, style }: IBorderOptions);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export declare const BorderStyle: {
|
|
164
|
+
readonly SINGLE: "single";
|
|
165
|
+
readonly DASH_DOT_STROKED: "dashDotStroked";
|
|
166
|
+
readonly DASHED: "dashed";
|
|
167
|
+
readonly DASH_SMALL_GAP: "dashSmallGap";
|
|
168
|
+
readonly DOT_DASH: "dotDash";
|
|
169
|
+
readonly DOT_DOT_DASH: "dotDotDash";
|
|
170
|
+
readonly DOTTED: "dotted";
|
|
171
|
+
readonly DOUBLE: "double";
|
|
172
|
+
readonly DOUBLE_WAVE: "doubleWave";
|
|
173
|
+
readonly INSET: "inset";
|
|
174
|
+
readonly NIL: "nil";
|
|
175
|
+
readonly NONE: "none";
|
|
176
|
+
readonly OUTSET: "outset";
|
|
177
|
+
readonly THICK: "thick";
|
|
178
|
+
readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
|
|
179
|
+
readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
|
|
180
|
+
readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
|
|
181
|
+
readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
|
|
182
|
+
readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
|
|
183
|
+
readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
|
|
184
|
+
readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
|
|
185
|
+
readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
|
|
186
|
+
readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
|
|
187
|
+
readonly THREE_D_EMBOSS: "threeDEmboss";
|
|
188
|
+
readonly THREE_D_ENGRAVE: "threeDEngrave";
|
|
189
|
+
readonly TRIPLE: "triple";
|
|
190
|
+
readonly WAVE: "wave";
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
declare class Break extends XmlComponent {
|
|
194
|
+
constructor();
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export declare class BuilderElement<T extends AttributeData> extends XmlComponent {
|
|
198
|
+
constructor({ name, attributes, children, }: {
|
|
199
|
+
readonly name: string;
|
|
200
|
+
readonly attributes?: AttributePayload<T>;
|
|
201
|
+
readonly children?: readonly XmlComponent[];
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export declare class CarriageReturn extends EmptyElement {
|
|
206
|
+
constructor();
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export declare const CharacterSet: {
|
|
210
|
+
readonly ANSI: "00";
|
|
211
|
+
readonly DEFAULT: "01";
|
|
212
|
+
readonly SYMBOL: "02";
|
|
213
|
+
readonly MAC: "4D";
|
|
214
|
+
readonly JIS: "80";
|
|
215
|
+
readonly HANGUL: "81";
|
|
216
|
+
readonly JOHAB: "82";
|
|
217
|
+
readonly GB_2312: "86";
|
|
218
|
+
readonly CHINESEBIG5: "88";
|
|
219
|
+
readonly GREEK: "A1";
|
|
220
|
+
readonly TURKISH: "A2";
|
|
221
|
+
readonly VIETNAMESE: "A3";
|
|
222
|
+
readonly HEBREW: "B1";
|
|
223
|
+
readonly ARABIC: "B2";
|
|
224
|
+
readonly BALTIC: "BA";
|
|
225
|
+
readonly RUSSIAN: "CC";
|
|
226
|
+
readonly THAI: "DE";
|
|
227
|
+
readonly EASTEUROPE: "EE";
|
|
228
|
+
readonly OEM: "FF";
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export declare class CheckBox extends XmlComponent {
|
|
232
|
+
private readonly DEFAULT_UNCHECKED_SYMBOL;
|
|
233
|
+
private readonly DEFAULT_CHECKED_SYMBOL;
|
|
234
|
+
private readonly DEFAULT_FONT;
|
|
235
|
+
constructor(options?: ICheckboxSymbolOptions);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export declare class CheckBoxSymbolElement extends XmlComponent {
|
|
239
|
+
constructor(name: string, val: string, font?: string);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export declare class CheckBoxUtil extends XmlComponent {
|
|
243
|
+
private readonly DEFAULT_UNCHECKED_SYMBOL;
|
|
244
|
+
private readonly DEFAULT_CHECKED_SYMBOL;
|
|
245
|
+
private readonly DEFAULT_FONT;
|
|
246
|
+
constructor(options?: ICheckboxSymbolOptions);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export declare class Column extends XmlComponent {
|
|
250
|
+
constructor({ width, space }: IColumnAttributes);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export declare class ColumnBreak extends Run {
|
|
254
|
+
constructor();
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export declare class Columns extends XmlComponent {
|
|
258
|
+
constructor({ space, count, separate, equalWidth, children }: IColumnsAttributes);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
declare class Comment_2 extends XmlComponent {
|
|
262
|
+
constructor({ id, initials, author, date, children }: ICommentOptions);
|
|
263
|
+
}
|
|
264
|
+
export { Comment_2 as Comment }
|
|
265
|
+
|
|
266
|
+
export declare class CommentRangeEnd extends XmlComponent {
|
|
267
|
+
constructor(id: number);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export declare class CommentRangeStart extends XmlComponent {
|
|
271
|
+
constructor(id: number);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export declare class CommentReference extends XmlComponent {
|
|
275
|
+
constructor(id: number);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export declare class Comments extends XmlComponent {
|
|
279
|
+
constructor({ children }: ICommentsOptions);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
declare const CompoundLine: {
|
|
283
|
+
readonly SINGLE: "sng";
|
|
284
|
+
readonly DOUBLE: "dbl";
|
|
285
|
+
readonly THICK_THIN: "thickThin";
|
|
286
|
+
readonly THIN_THICK: "thinThick";
|
|
287
|
+
readonly TRI: "tri";
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
export declare class ConcreteHyperlink extends XmlComponent {
|
|
291
|
+
readonly linkId: string;
|
|
292
|
+
constructor(children: readonly ParagraphChild[], relationshipId: string, anchor?: string);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export declare class ConcreteNumbering extends XmlComponent {
|
|
296
|
+
readonly numId: number;
|
|
297
|
+
readonly reference: string;
|
|
298
|
+
readonly instance: number;
|
|
299
|
+
constructor(options: IConcreteNumberingOptions);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export declare const concreteNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
303
|
+
|
|
304
|
+
declare class ContentTypes extends XmlComponent {
|
|
305
|
+
constructor();
|
|
306
|
+
addFooter(index: number): void;
|
|
307
|
+
addHeader(index: number): void;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export declare class ContinuationSeparator extends EmptyElement {
|
|
311
|
+
constructor();
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export declare const convertInchesToTwip: (inches: number) => number;
|
|
315
|
+
|
|
316
|
+
export declare const convertMillimetersToTwip: (millimeters: number) => number;
|
|
317
|
+
|
|
318
|
+
export declare const convertToXmlComponent: (element: Element_2) => ImportedXmlComponent | string | undefined;
|
|
319
|
+
|
|
320
|
+
declare type CoreImageOptions = {
|
|
321
|
+
readonly transformation: IMediaTransformation;
|
|
322
|
+
readonly floating?: IFloating;
|
|
323
|
+
readonly altText?: DocPropertiesOptions;
|
|
324
|
+
readonly outline?: OutlineOptions;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
declare type CoreMediaData = {
|
|
328
|
+
readonly fileName: string;
|
|
329
|
+
readonly transformation: IMediaDataTransformation;
|
|
330
|
+
readonly data: Buffer | Uint8Array | ArrayBuffer;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
declare class CoreProperties extends XmlComponent {
|
|
334
|
+
constructor(options: Omit<IPropertiesOptions, "sections">);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
|
|
338
|
+
|
|
339
|
+
export declare const createLineNumberType: ({ countBy, start, restart, distance }: ILineNumberAttributes) => XmlComponent;
|
|
340
|
+
|
|
341
|
+
export declare const createStringElement: (name: string, value: string) => XmlComponent;
|
|
342
|
+
|
|
343
|
+
declare class CustomProperties extends XmlComponent {
|
|
344
|
+
private nextId;
|
|
345
|
+
private readonly properties;
|
|
346
|
+
constructor(properties: readonly ICustomPropertyOptions[]);
|
|
347
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
348
|
+
addCustomProperty(property: ICustomPropertyOptions): void;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export declare const dateTimeValue: (val: Date) => string;
|
|
352
|
+
|
|
353
|
+
export declare class DayLong extends EmptyElement {
|
|
354
|
+
constructor();
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export declare class DayShort extends EmptyElement {
|
|
358
|
+
constructor();
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export declare const decimalNumber: (val: number) => number;
|
|
362
|
+
|
|
363
|
+
export declare class DeletedTextRun extends XmlComponent {
|
|
364
|
+
protected readonly deletedTextRunWrapper: DeletedTextRunWrapper;
|
|
365
|
+
constructor(options: IDeletedRunOptions);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
declare class DeletedTextRunWrapper extends XmlComponent {
|
|
369
|
+
constructor(options: IRunOptions);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export declare class DocGridAttributes extends XmlAttributeComponent<IDocGridAttributesProperties> {
|
|
373
|
+
protected readonly xmlKeys: {
|
|
374
|
+
type: string;
|
|
375
|
+
linePitch: string;
|
|
376
|
+
charSpace: string;
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
declare interface DocPropertiesOptions {
|
|
381
|
+
readonly name: string;
|
|
382
|
+
readonly description: string;
|
|
383
|
+
readonly title: string;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
387
|
+
|
|
388
|
+
declare class Document_2 extends XmlComponent {
|
|
389
|
+
private readonly body;
|
|
390
|
+
constructor(options: IDocumentOptions);
|
|
391
|
+
add(item: Paragraph | Table | TableOfContents | ConcreteHyperlink): Document_2;
|
|
392
|
+
get Body(): Body_2;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export declare class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {
|
|
396
|
+
protected readonly xmlKeys: {
|
|
397
|
+
wpc: string;
|
|
398
|
+
mc: string;
|
|
399
|
+
o: string;
|
|
400
|
+
r: string;
|
|
401
|
+
m: string;
|
|
402
|
+
v: string;
|
|
403
|
+
wp14: string;
|
|
404
|
+
wp: string;
|
|
405
|
+
w10: string;
|
|
406
|
+
w: string;
|
|
407
|
+
w14: string;
|
|
408
|
+
w15: string;
|
|
409
|
+
wpg: string;
|
|
410
|
+
wpi: string;
|
|
411
|
+
wne: string;
|
|
412
|
+
wps: string;
|
|
413
|
+
Ignorable: string;
|
|
414
|
+
cp: string;
|
|
415
|
+
dc: string;
|
|
416
|
+
dcterms: string;
|
|
417
|
+
dcmitype: string;
|
|
418
|
+
xsi: string;
|
|
419
|
+
type: string;
|
|
420
|
+
cx: string;
|
|
421
|
+
cx1: string;
|
|
422
|
+
cx2: string;
|
|
423
|
+
cx3: string;
|
|
424
|
+
cx4: string;
|
|
425
|
+
cx5: string;
|
|
426
|
+
cx6: string;
|
|
427
|
+
cx7: string;
|
|
428
|
+
cx8: string;
|
|
429
|
+
aink: string;
|
|
430
|
+
am3d: string;
|
|
431
|
+
w16cex: string;
|
|
432
|
+
w16cid: string;
|
|
433
|
+
w16: string;
|
|
434
|
+
w16sdtdh: string;
|
|
435
|
+
w16se: string;
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export declare class DocumentBackground extends XmlComponent {
|
|
440
|
+
constructor(options: IDocumentBackgroundOptions);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export declare class DocumentBackgroundAttributes extends XmlAttributeComponent<{
|
|
444
|
+
readonly color?: string;
|
|
445
|
+
readonly themeColor?: string;
|
|
446
|
+
readonly themeShade?: string;
|
|
447
|
+
readonly themeTint?: string;
|
|
448
|
+
}> {
|
|
449
|
+
protected readonly xmlKeys: {
|
|
450
|
+
color: string;
|
|
451
|
+
themeColor: string;
|
|
452
|
+
themeShade: string;
|
|
453
|
+
themeTint: string;
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export declare class DocumentDefaults extends XmlComponent {
|
|
458
|
+
private readonly runPropertiesDefaults;
|
|
459
|
+
private readonly paragraphPropertiesDefaults;
|
|
460
|
+
constructor(options: IDocumentDefaultsOptions);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export declare class DocumentGrid extends XmlComponent {
|
|
464
|
+
constructor(linePitch: number, charSpace?: number, type?: (typeof DocumentGridType)[keyof typeof DocumentGridType]);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export declare const DocumentGridType: {
|
|
468
|
+
readonly DEFAULT: "default";
|
|
469
|
+
readonly LINES: "lines";
|
|
470
|
+
readonly LINES_AND_CHARS: "linesAndChars";
|
|
471
|
+
readonly SNAP_TO_CHARS: "snapToChars";
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
declare class DocumentWrapper implements IViewWrapper {
|
|
475
|
+
private readonly document;
|
|
476
|
+
private readonly relationships;
|
|
477
|
+
constructor(options: IDocumentOptions);
|
|
478
|
+
get View(): Document_2;
|
|
479
|
+
get Relationships(): Relationships;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
export declare class DotEmphasisMark extends BaseEmphasisMark {
|
|
483
|
+
constructor();
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export declare class Drawing extends XmlComponent {
|
|
487
|
+
constructor(imageData: IMediaData, drawingOptions?: IDrawingOptions);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export declare const DropCapType: {
|
|
491
|
+
readonly NONE: "none";
|
|
492
|
+
readonly DROP: "drop";
|
|
493
|
+
readonly MARGIN: "margin";
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
export declare const eighthPointMeasureValue: (val: number) => number;
|
|
497
|
+
|
|
498
|
+
export declare class EmphasisMark extends BaseEmphasisMark {
|
|
499
|
+
constructor(emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export declare const EmphasisMarkType: {
|
|
503
|
+
readonly DOT: "dot";
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
export declare const EMPTY_OBJECT: {};
|
|
507
|
+
|
|
508
|
+
export declare class EmptyElement extends XmlComponent {
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
declare class End extends XmlComponent {
|
|
512
|
+
constructor(dirty?: boolean);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export declare class EndnoteReference extends EmptyElement {
|
|
516
|
+
constructor();
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export declare class ExternalHyperlink extends XmlComponent {
|
|
520
|
+
readonly options: {
|
|
521
|
+
readonly children: readonly ParagraphChild[];
|
|
522
|
+
readonly link: string;
|
|
523
|
+
};
|
|
524
|
+
constructor(options: {
|
|
525
|
+
readonly children: readonly ParagraphChild[];
|
|
526
|
+
readonly link: string;
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
declare class FieldInstruction extends XmlComponent {
|
|
531
|
+
private readonly properties;
|
|
532
|
+
constructor(properties?: ITableOfContentsOptions);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
declare class File_2 {
|
|
536
|
+
private currentRelationshipId;
|
|
537
|
+
private readonly documentWrapper;
|
|
538
|
+
private readonly headers;
|
|
539
|
+
private readonly footers;
|
|
540
|
+
private readonly coreProperties;
|
|
541
|
+
private readonly numbering;
|
|
542
|
+
private readonly media;
|
|
543
|
+
private readonly fileRelationships;
|
|
544
|
+
private readonly footnotesWrapper;
|
|
545
|
+
private readonly settings;
|
|
546
|
+
private readonly contentTypes;
|
|
547
|
+
private readonly customProperties;
|
|
548
|
+
private readonly appProperties;
|
|
549
|
+
private readonly styles;
|
|
550
|
+
private readonly comments;
|
|
551
|
+
private readonly fontWrapper;
|
|
552
|
+
constructor(options: IPropertiesOptions);
|
|
553
|
+
private addSection;
|
|
554
|
+
private createHeader;
|
|
555
|
+
private createFooter;
|
|
556
|
+
private addHeaderToDocument;
|
|
557
|
+
private addFooterToDocument;
|
|
558
|
+
private addDefaultRelationships;
|
|
559
|
+
get Document(): DocumentWrapper;
|
|
560
|
+
get Styles(): Styles;
|
|
561
|
+
get CoreProperties(): CoreProperties;
|
|
562
|
+
get Numbering(): Numbering;
|
|
563
|
+
get Media(): Media;
|
|
564
|
+
get FileRelationships(): Relationships;
|
|
565
|
+
get Headers(): readonly HeaderWrapper[];
|
|
566
|
+
get Footers(): readonly FooterWrapper[];
|
|
567
|
+
get ContentTypes(): ContentTypes;
|
|
568
|
+
get CustomProperties(): CustomProperties;
|
|
569
|
+
get AppProperties(): AppProperties;
|
|
570
|
+
get FootNotes(): FootnotesWrapper;
|
|
571
|
+
get Settings(): Settings;
|
|
572
|
+
get Comments(): Comments;
|
|
573
|
+
get FontTable(): FontWrapper;
|
|
574
|
+
}
|
|
575
|
+
export { File_2 as Document }
|
|
576
|
+
export { File_2 as File }
|
|
577
|
+
|
|
578
|
+
export declare class FileChild extends XmlComponent {
|
|
579
|
+
readonly fileChild: symbol;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
declare type FilePatch = {
|
|
583
|
+
readonly type: typeof PatchType.DOCUMENT;
|
|
584
|
+
readonly children: readonly FileChild[];
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
declare type FontOptions = {
|
|
588
|
+
readonly name: string;
|
|
589
|
+
readonly data: Buffer;
|
|
590
|
+
readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
declare type FontOptionsWithKey = FontOptions & {
|
|
594
|
+
readonly fontKey: string;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
declare class FontWrapper implements IViewWrapper {
|
|
598
|
+
readonly options: readonly FontOptions[];
|
|
599
|
+
private readonly fontTable;
|
|
600
|
+
private readonly relationships;
|
|
601
|
+
readonly fontOptionsWithKey: readonly FontOptionsWithKey[];
|
|
602
|
+
constructor(options: readonly FontOptions[]);
|
|
603
|
+
get View(): XmlComponent;
|
|
604
|
+
get Relationships(): Relationships;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export declare class Footer {
|
|
608
|
+
readonly options: IHeaderOptions;
|
|
609
|
+
constructor(options?: IHeaderOptions);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
declare class Footer_2 extends InitializableXmlComponent {
|
|
613
|
+
private readonly refId;
|
|
614
|
+
constructor(referenceNumber: number, initContent?: XmlComponent);
|
|
615
|
+
get ReferenceId(): number;
|
|
616
|
+
add(item: Paragraph | Table): void;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
export declare class FooterWrapper implements IViewWrapper {
|
|
620
|
+
private readonly media;
|
|
621
|
+
private readonly footer;
|
|
622
|
+
private readonly relationships;
|
|
623
|
+
constructor(media: Media, referenceId: number, initContent?: XmlComponent);
|
|
624
|
+
add(item: Paragraph | Table): void;
|
|
625
|
+
addChildElement(childElement: XmlComponent): void;
|
|
626
|
+
get View(): Footer_2;
|
|
627
|
+
get Relationships(): Relationships;
|
|
628
|
+
get Media(): Media;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export declare class FootnoteReference extends XmlComponent {
|
|
632
|
+
constructor(id: number);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export declare class FootnoteReferenceElement extends EmptyElement {
|
|
636
|
+
constructor();
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
export declare class FootnoteReferenceRun extends Run {
|
|
640
|
+
constructor(id: number);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
export declare class FootNoteReferenceRunAttributes extends XmlAttributeComponent<{
|
|
644
|
+
readonly id: number;
|
|
645
|
+
}> {
|
|
646
|
+
protected readonly xmlKeys: {
|
|
647
|
+
id: string;
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
export declare class FootNotes extends XmlComponent {
|
|
652
|
+
constructor();
|
|
653
|
+
createFootNote(id: number, paragraph: readonly Paragraph[]): void;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare class FootnotesWrapper implements IViewWrapper {
|
|
657
|
+
private readonly footnotess;
|
|
658
|
+
private readonly relationships;
|
|
659
|
+
constructor();
|
|
660
|
+
get View(): FootNotes;
|
|
661
|
+
get Relationships(): Relationships;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export declare const FrameAnchorType: {
|
|
665
|
+
readonly MARGIN: "margin";
|
|
666
|
+
readonly PAGE: "page";
|
|
667
|
+
readonly TEXT: "text";
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
export declare const FrameWrap: {
|
|
671
|
+
readonly AROUND: "around";
|
|
672
|
+
readonly AUTO: "auto";
|
|
673
|
+
readonly NONE: "none";
|
|
674
|
+
readonly NOT_BESIDE: "notBeside";
|
|
675
|
+
readonly THROUGH: "through";
|
|
676
|
+
readonly TIGHT: "tight";
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
export declare class GridSpan extends XmlComponent {
|
|
680
|
+
constructor(value: number);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export declare class Header {
|
|
684
|
+
readonly options: IHeaderOptions;
|
|
685
|
+
constructor(options?: IHeaderOptions);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
declare class Header_2 extends InitializableXmlComponent {
|
|
689
|
+
private readonly refId;
|
|
690
|
+
constructor(referenceNumber: number, initContent?: XmlComponent);
|
|
691
|
+
get ReferenceId(): number;
|
|
692
|
+
add(item: Paragraph | Table): void;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export declare class HeaderFooterReference extends XmlComponent {
|
|
696
|
+
constructor(type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions);
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export declare const HeaderFooterReferenceType: {
|
|
700
|
+
readonly DEFAULT: "default";
|
|
701
|
+
readonly FIRST: "first";
|
|
702
|
+
readonly EVEN: "even";
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
export declare const HeaderFooterType: {
|
|
706
|
+
readonly HEADER: "w:headerReference";
|
|
707
|
+
readonly FOOTER: "w:footerReference";
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
export declare class HeaderWrapper implements IViewWrapper {
|
|
711
|
+
private readonly media;
|
|
712
|
+
private readonly header;
|
|
713
|
+
private readonly relationships;
|
|
714
|
+
constructor(media: Media, referenceId: number, initContent?: XmlComponent);
|
|
715
|
+
add(item: Paragraph | Table): HeaderWrapper;
|
|
716
|
+
addChildElement(childElement: XmlComponent | string): void;
|
|
717
|
+
get View(): Header_2;
|
|
718
|
+
get Relationships(): Relationships;
|
|
719
|
+
get Media(): Media;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
export declare const HeadingLevel: {
|
|
723
|
+
readonly HEADING_1: "Heading1";
|
|
724
|
+
readonly HEADING_2: "Heading2";
|
|
725
|
+
readonly HEADING_3: "Heading3";
|
|
726
|
+
readonly HEADING_4: "Heading4";
|
|
727
|
+
readonly HEADING_5: "Heading5";
|
|
728
|
+
readonly HEADING_6: "Heading6";
|
|
729
|
+
readonly TITLE: "Title";
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
export declare const HeightRule: {
|
|
733
|
+
readonly AUTO: "auto";
|
|
734
|
+
readonly ATLEAST: "atLeast";
|
|
735
|
+
readonly EXACT: "exact";
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
export declare const hexColorValue: (val: string) => string;
|
|
739
|
+
|
|
740
|
+
export declare const HighlightColor: {
|
|
741
|
+
readonly BLACK: "black";
|
|
742
|
+
readonly BLUE: "blue";
|
|
743
|
+
readonly CYAN: "cyan";
|
|
744
|
+
readonly DARK_BLUE: "darkBlue";
|
|
745
|
+
readonly DARK_CYAN: "darkCyan";
|
|
746
|
+
readonly DARK_GRAY: "darkGray";
|
|
747
|
+
readonly DARK_GREEN: "darkGreen";
|
|
748
|
+
readonly DARK_MAGENTA: "darkMagenta";
|
|
749
|
+
readonly DARK_RED: "darkRed";
|
|
750
|
+
readonly DARK_YELLOW: "darkYellow";
|
|
751
|
+
readonly GREEN: "green";
|
|
752
|
+
readonly LIGHT_GRAY: "lightGray";
|
|
753
|
+
readonly MAGENTA: "magenta";
|
|
754
|
+
readonly NONE: "none";
|
|
755
|
+
readonly RED: "red";
|
|
756
|
+
readonly WHITE: "white";
|
|
757
|
+
readonly YELLOW: "yellow";
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
export declare class HorizontalPosition extends XmlComponent {
|
|
761
|
+
constructor(horizontalPosition: IHorizontalPositionOptions);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
export declare const HorizontalPositionAlign: {
|
|
765
|
+
readonly CENTER: "center";
|
|
766
|
+
readonly INSIDE: "inside";
|
|
767
|
+
readonly LEFT: "left";
|
|
768
|
+
readonly OUTSIDE: "outside";
|
|
769
|
+
readonly RIGHT: "right";
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
export declare const HorizontalPositionRelativeFrom: {
|
|
773
|
+
readonly CHARACTER: "character";
|
|
774
|
+
readonly COLUMN: "column";
|
|
775
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
776
|
+
readonly LEFT_MARGIN: "leftMargin";
|
|
777
|
+
readonly MARGIN: "margin";
|
|
778
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
779
|
+
readonly PAGE: "page";
|
|
780
|
+
readonly RIGHT_MARGIN: "rightMargin";
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
export declare class HpsMeasureElement extends XmlComponent {
|
|
784
|
+
constructor(name: string, val: number | PositiveUniversalMeasure);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
export declare const hpsMeasureValue: (val: PositiveUniversalMeasure | number) => string | number;
|
|
788
|
+
|
|
789
|
+
export declare const HyperlinkType: {
|
|
790
|
+
readonly INTERNAL: "INTERNAL";
|
|
791
|
+
readonly EXTERNAL: "EXTERNAL";
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
export declare interface IAlignmentFrameOptions extends IBaseFrameOptions {
|
|
795
|
+
readonly type: "alignment";
|
|
796
|
+
readonly alignment: {
|
|
797
|
+
readonly x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
798
|
+
readonly y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export declare interface IBaseCharacterStyleOptions extends IStyleOptions {
|
|
803
|
+
readonly run?: IRunStylePropertiesOptions;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
declare interface IBaseFrameOptions {
|
|
807
|
+
readonly anchorLock?: boolean;
|
|
808
|
+
readonly dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
|
|
809
|
+
readonly width: number;
|
|
810
|
+
readonly height: number;
|
|
811
|
+
readonly wrap?: (typeof FrameWrap)[keyof typeof FrameWrap];
|
|
812
|
+
readonly lines?: number;
|
|
813
|
+
readonly anchor: {
|
|
814
|
+
readonly horizontal: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
815
|
+
readonly vertical: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
816
|
+
};
|
|
817
|
+
readonly space?: {
|
|
818
|
+
readonly horizontal: number;
|
|
819
|
+
readonly vertical: number;
|
|
820
|
+
};
|
|
821
|
+
readonly rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
export declare interface IBaseParagraphStyleOptions extends IStyleOptions {
|
|
825
|
+
readonly paragraph?: IParagraphStylePropertiesOptions;
|
|
826
|
+
readonly run?: IRunStylePropertiesOptions;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
export declare interface IBorderOptions {
|
|
830
|
+
readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
831
|
+
readonly color?: string;
|
|
832
|
+
readonly size?: number;
|
|
833
|
+
readonly space?: number;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
export declare interface IBordersOptions {
|
|
837
|
+
readonly top?: IBorderOptions;
|
|
838
|
+
readonly bottom?: IBorderOptions;
|
|
839
|
+
readonly left?: IBorderOptions;
|
|
840
|
+
readonly right?: IBorderOptions;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
declare interface IChangedAttributesProperties {
|
|
844
|
+
readonly id: number;
|
|
845
|
+
readonly author: string;
|
|
846
|
+
readonly date: string;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
export declare interface ICharacterStyleOptions extends IBaseCharacterStyleOptions {
|
|
850
|
+
readonly id: string;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export declare interface ICheckboxSymbolOptions {
|
|
854
|
+
readonly alias?: string;
|
|
855
|
+
readonly checked?: boolean;
|
|
856
|
+
readonly checkedState?: ICheckboxSymbolProperties;
|
|
857
|
+
readonly uncheckedState?: ICheckboxSymbolProperties;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export declare interface ICheckboxSymbolProperties {
|
|
861
|
+
readonly value?: string;
|
|
862
|
+
readonly font?: string;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
declare type IColumnAttributes = {
|
|
866
|
+
readonly width: number | PositiveUniversalMeasure;
|
|
867
|
+
readonly space?: number | PositiveUniversalMeasure;
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
export declare type IColumnsAttributes = {
|
|
871
|
+
readonly space?: number | PositiveUniversalMeasure;
|
|
872
|
+
readonly count?: number;
|
|
873
|
+
readonly separate?: boolean;
|
|
874
|
+
readonly equalWidth?: boolean;
|
|
875
|
+
readonly children?: readonly Column[];
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
export declare interface ICommentOptions {
|
|
879
|
+
readonly id: number;
|
|
880
|
+
readonly children: readonly FileChild[];
|
|
881
|
+
readonly initials?: string;
|
|
882
|
+
readonly author?: string;
|
|
883
|
+
readonly date?: Date;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export declare interface ICommentsOptions {
|
|
887
|
+
readonly children: readonly ICommentOptions[];
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
declare interface ICompatibilityOptions {
|
|
891
|
+
readonly version?: number;
|
|
892
|
+
readonly useSingleBorderforContiguousCells?: boolean;
|
|
893
|
+
readonly wordPerfectJustification?: boolean;
|
|
894
|
+
readonly noTabStopForHangingIndent?: boolean;
|
|
895
|
+
readonly noLeading?: boolean;
|
|
896
|
+
readonly spaceForUnderline?: boolean;
|
|
897
|
+
readonly noColumnBalance?: boolean;
|
|
898
|
+
readonly balanceSingleByteDoubleByteWidth?: boolean;
|
|
899
|
+
readonly noExtraLineSpacing?: boolean;
|
|
900
|
+
readonly doNotLeaveBackslashAlone?: boolean;
|
|
901
|
+
readonly underlineTrailingSpaces?: boolean;
|
|
902
|
+
readonly doNotExpandShiftReturn?: boolean;
|
|
903
|
+
readonly spacingInWholePoints?: boolean;
|
|
904
|
+
readonly lineWrapLikeWord6?: boolean;
|
|
905
|
+
readonly printBodyTextBeforeHeader?: boolean;
|
|
906
|
+
readonly printColorsBlack?: boolean;
|
|
907
|
+
readonly spaceWidth?: boolean;
|
|
908
|
+
readonly showBreaksInFrames?: boolean;
|
|
909
|
+
readonly subFontBySize?: boolean;
|
|
910
|
+
readonly suppressBottomSpacing?: boolean;
|
|
911
|
+
readonly suppressTopSpacing?: boolean;
|
|
912
|
+
readonly suppressSpacingAtTopOfPage?: boolean;
|
|
913
|
+
readonly suppressTopSpacingWP?: boolean;
|
|
914
|
+
readonly suppressSpBfAfterPgBrk?: boolean;
|
|
915
|
+
readonly swapBordersFacingPages?: boolean;
|
|
916
|
+
readonly convertMailMergeEsc?: boolean;
|
|
917
|
+
readonly truncateFontHeightsLikeWP6?: boolean;
|
|
918
|
+
readonly macWordSmallCaps?: boolean;
|
|
919
|
+
readonly usePrinterMetrics?: boolean;
|
|
920
|
+
readonly doNotSuppressParagraphBorders?: boolean;
|
|
921
|
+
readonly wrapTrailSpaces?: boolean;
|
|
922
|
+
readonly footnoteLayoutLikeWW8?: boolean;
|
|
923
|
+
readonly shapeLayoutLikeWW8?: boolean;
|
|
924
|
+
readonly alignTablesRowByRow?: boolean;
|
|
925
|
+
readonly forgetLastTabAlignment?: boolean;
|
|
926
|
+
readonly adjustLineHeightInTable?: boolean;
|
|
927
|
+
readonly autoSpaceLikeWord95?: boolean;
|
|
928
|
+
readonly noSpaceRaiseLower?: boolean;
|
|
929
|
+
readonly doNotUseHTMLParagraphAutoSpacing?: boolean;
|
|
930
|
+
readonly layoutRawTableWidth?: boolean;
|
|
931
|
+
readonly layoutTableRowsApart?: boolean;
|
|
932
|
+
readonly useWord97LineBreakRules?: boolean;
|
|
933
|
+
readonly doNotBreakWrappedTables?: boolean;
|
|
934
|
+
readonly doNotSnapToGridInCell?: boolean;
|
|
935
|
+
readonly selectFieldWithFirstOrLastCharacter?: boolean;
|
|
936
|
+
readonly applyBreakingRules?: boolean;
|
|
937
|
+
readonly doNotWrapTextWithPunctuation?: boolean;
|
|
938
|
+
readonly doNotUseEastAsianBreakRules?: boolean;
|
|
939
|
+
readonly useWord2002TableStyleRules?: boolean;
|
|
940
|
+
readonly growAutofit?: boolean;
|
|
941
|
+
readonly useFELayout?: boolean;
|
|
942
|
+
readonly useNormalStyleForList?: boolean;
|
|
943
|
+
readonly doNotUseIndentAsNumberingTabStop?: boolean;
|
|
944
|
+
readonly useAlternateEastAsianLineBreakRules?: boolean;
|
|
945
|
+
readonly allowSpaceOfSameStyleInTable?: boolean;
|
|
946
|
+
readonly doNotSuppressIndentation?: boolean;
|
|
947
|
+
readonly doNotAutofitConstrainedTables?: boolean;
|
|
948
|
+
readonly autofitToFirstFixedWidthCell?: boolean;
|
|
949
|
+
readonly underlineTabInNumberingList?: boolean;
|
|
950
|
+
readonly displayHangulFixedWidth?: boolean;
|
|
951
|
+
readonly splitPgBreakAndParaMark?: boolean;
|
|
952
|
+
readonly doNotVerticallyAlignCellWithSp?: boolean;
|
|
953
|
+
readonly doNotBreakConstrainedForcedTable?: boolean;
|
|
954
|
+
readonly ignoreVerticalAlignmentInTextboxes?: boolean;
|
|
955
|
+
readonly useAnsiKerningPairs?: boolean;
|
|
956
|
+
readonly cachedColumnBalance?: boolean;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
export declare interface IConcreteNumberingOptions {
|
|
960
|
+
readonly numId: number;
|
|
961
|
+
readonly abstractNumId: number;
|
|
962
|
+
readonly reference: string;
|
|
963
|
+
readonly instance: number;
|
|
964
|
+
readonly overrideLevels?: readonly IOverrideLevel[];
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
export declare interface IContext {
|
|
968
|
+
readonly file: File_2;
|
|
969
|
+
readonly viewWrapper: IViewWrapper;
|
|
970
|
+
readonly stack: IXmlableObject[];
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
declare interface ICustomPropertyOptions {
|
|
974
|
+
readonly name: string;
|
|
975
|
+
readonly value: string;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
declare interface IDefaultStylesOptions {
|
|
979
|
+
readonly document?: IDocumentDefaultsOptions;
|
|
980
|
+
readonly title?: IBaseParagraphStyleOptions;
|
|
981
|
+
readonly heading1?: IBaseParagraphStyleOptions;
|
|
982
|
+
readonly heading2?: IBaseParagraphStyleOptions;
|
|
983
|
+
readonly heading3?: IBaseParagraphStyleOptions;
|
|
984
|
+
readonly heading4?: IBaseParagraphStyleOptions;
|
|
985
|
+
readonly heading5?: IBaseParagraphStyleOptions;
|
|
986
|
+
readonly heading6?: IBaseParagraphStyleOptions;
|
|
987
|
+
readonly strong?: IBaseParagraphStyleOptions;
|
|
988
|
+
readonly listParagraph?: IBaseParagraphStyleOptions;
|
|
989
|
+
readonly hyperlink?: IBaseCharacterStyleOptions;
|
|
990
|
+
readonly footnoteReference?: IBaseCharacterStyleOptions;
|
|
991
|
+
readonly footnoteText?: IBaseParagraphStyleOptions;
|
|
992
|
+
readonly footnoteTextChar?: IBaseCharacterStyleOptions;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
declare interface IDeletedRunOptions extends IRunOptions, IChangedAttributesProperties {
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
export declare type IDistance = {
|
|
999
|
+
readonly distT?: number;
|
|
1000
|
+
readonly distB?: number;
|
|
1001
|
+
readonly distL?: number;
|
|
1002
|
+
readonly distR?: number;
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
export declare interface IDocGridAttributesProperties {
|
|
1006
|
+
readonly type?: (typeof DocumentGridType)[keyof typeof DocumentGridType];
|
|
1007
|
+
readonly linePitch?: number;
|
|
1008
|
+
readonly charSpace?: number;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
export declare interface IDocumentAttributesProperties {
|
|
1012
|
+
readonly wpc?: string;
|
|
1013
|
+
readonly mc?: string;
|
|
1014
|
+
readonly o?: string;
|
|
1015
|
+
readonly r?: string;
|
|
1016
|
+
readonly m?: string;
|
|
1017
|
+
readonly v?: string;
|
|
1018
|
+
readonly wp14?: string;
|
|
1019
|
+
readonly wp?: string;
|
|
1020
|
+
readonly w10?: string;
|
|
1021
|
+
readonly w?: string;
|
|
1022
|
+
readonly w14?: string;
|
|
1023
|
+
readonly w15?: string;
|
|
1024
|
+
readonly wpg?: string;
|
|
1025
|
+
readonly wpi?: string;
|
|
1026
|
+
readonly wne?: string;
|
|
1027
|
+
readonly wps?: string;
|
|
1028
|
+
readonly Ignorable?: string;
|
|
1029
|
+
readonly cp?: string;
|
|
1030
|
+
readonly dc?: string;
|
|
1031
|
+
readonly dcterms?: string;
|
|
1032
|
+
readonly dcmitype?: string;
|
|
1033
|
+
readonly xsi?: string;
|
|
1034
|
+
readonly type?: string;
|
|
1035
|
+
readonly cx?: string;
|
|
1036
|
+
readonly cx1?: string;
|
|
1037
|
+
readonly cx2?: string;
|
|
1038
|
+
readonly cx3?: string;
|
|
1039
|
+
readonly cx4?: string;
|
|
1040
|
+
readonly cx5?: string;
|
|
1041
|
+
readonly cx6?: string;
|
|
1042
|
+
readonly cx7?: string;
|
|
1043
|
+
readonly cx8?: string;
|
|
1044
|
+
readonly aink?: string;
|
|
1045
|
+
readonly am3d?: string;
|
|
1046
|
+
readonly w16cex?: string;
|
|
1047
|
+
readonly w16cid?: string;
|
|
1048
|
+
readonly w16?: string;
|
|
1049
|
+
readonly w16sdtdh?: string;
|
|
1050
|
+
readonly w16se?: string;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export declare interface IDocumentBackgroundOptions {
|
|
1054
|
+
readonly color?: string;
|
|
1055
|
+
readonly themeColor?: string;
|
|
1056
|
+
readonly themeShade?: string;
|
|
1057
|
+
readonly themeTint?: string;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
export declare interface IDocumentDefaultsOptions {
|
|
1061
|
+
readonly paragraph?: IParagraphStylePropertiesOptions;
|
|
1062
|
+
readonly run?: IRunStylePropertiesOptions;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export declare interface IDocumentFooter {
|
|
1066
|
+
readonly footer: FooterWrapper;
|
|
1067
|
+
readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
export declare interface IDocumentHeader {
|
|
1071
|
+
readonly header: HeaderWrapper;
|
|
1072
|
+
readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
export declare interface IDocumentOptions {
|
|
1076
|
+
readonly background?: IDocumentBackgroundOptions;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
export declare interface IDrawingOptions {
|
|
1080
|
+
readonly floating?: IFloating;
|
|
1081
|
+
readonly docProperties?: DocPropertiesOptions;
|
|
1082
|
+
readonly outline?: OutlineOptions;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
export declare interface IFloating {
|
|
1086
|
+
readonly horizontalPosition: IHorizontalPositionOptions;
|
|
1087
|
+
readonly verticalPosition: IVerticalPositionOptions;
|
|
1088
|
+
readonly allowOverlap?: boolean;
|
|
1089
|
+
readonly lockAnchor?: boolean;
|
|
1090
|
+
readonly behindDocument?: boolean;
|
|
1091
|
+
readonly layoutInCell?: boolean;
|
|
1092
|
+
readonly margins?: IMargins;
|
|
1093
|
+
readonly wrap?: ITextWrapping;
|
|
1094
|
+
readonly zIndex?: number;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
export declare interface IFontAttributesProperties {
|
|
1098
|
+
readonly ascii?: string;
|
|
1099
|
+
readonly cs?: string;
|
|
1100
|
+
readonly eastAsia?: string;
|
|
1101
|
+
readonly hAnsi?: string;
|
|
1102
|
+
readonly hint?: string;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
declare interface IFontOptions {
|
|
1106
|
+
readonly name: string;
|
|
1107
|
+
readonly hint?: string;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export declare type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
|
|
1111
|
+
|
|
1112
|
+
export declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
|
|
1113
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
export declare interface IHeaderFooterGroup<T> {
|
|
1117
|
+
readonly default?: T;
|
|
1118
|
+
readonly first?: T;
|
|
1119
|
+
readonly even?: T;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
export declare interface IHeaderFooterOptions {
|
|
1123
|
+
readonly type?: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
|
1124
|
+
readonly id?: number;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
export declare interface IHeaderOptions {
|
|
1128
|
+
readonly children: readonly (Paragraph | Table)[];
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
export declare interface IHorizontalPositionOptions {
|
|
1132
|
+
readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
1133
|
+
readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
1134
|
+
readonly offset?: number;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
export declare type IImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
|
|
1138
|
+
|
|
1139
|
+
export declare interface IIndentAttributesProperties {
|
|
1140
|
+
readonly start?: number | UniversalMeasure;
|
|
1141
|
+
readonly end?: number | UniversalMeasure;
|
|
1142
|
+
readonly left?: number | UniversalMeasure;
|
|
1143
|
+
readonly right?: number | UniversalMeasure;
|
|
1144
|
+
readonly hanging?: number | PositiveUniversalMeasure;
|
|
1145
|
+
readonly firstLine?: number | PositiveUniversalMeasure;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
declare interface IInsertedRunOptions extends IChangedAttributesProperties, IRunOptions {
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
declare interface ILanguageOptions {
|
|
1152
|
+
readonly value?: string;
|
|
1153
|
+
readonly eastAsia?: string;
|
|
1154
|
+
readonly bidirectional?: string;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
export declare interface ILevelParagraphStylePropertiesOptions {
|
|
1158
|
+
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1159
|
+
readonly thematicBreak?: boolean;
|
|
1160
|
+
readonly contextualSpacing?: boolean;
|
|
1161
|
+
readonly rightTabStop?: number;
|
|
1162
|
+
readonly leftTabStop?: number;
|
|
1163
|
+
readonly indent?: IIndentAttributesProperties;
|
|
1164
|
+
readonly spacing?: ISpacingProperties;
|
|
1165
|
+
readonly keepNext?: boolean;
|
|
1166
|
+
readonly keepLines?: boolean;
|
|
1167
|
+
readonly outlineLevel?: number;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
export declare interface ILevelsOptions {
|
|
1171
|
+
readonly level: number;
|
|
1172
|
+
readonly format?: (typeof LevelFormat)[keyof typeof LevelFormat];
|
|
1173
|
+
readonly text?: string;
|
|
1174
|
+
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1175
|
+
readonly start?: number;
|
|
1176
|
+
readonly suffix?: (typeof LevelSuffix)[keyof typeof LevelSuffix];
|
|
1177
|
+
readonly isLegalNumberingStyle?: boolean;
|
|
1178
|
+
readonly style?: {
|
|
1179
|
+
readonly run?: IRunStylePropertiesOptions;
|
|
1180
|
+
readonly paragraph?: ILevelParagraphStylePropertiesOptions;
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
export declare type ILineNumberAttributes = {
|
|
1185
|
+
readonly countBy?: number;
|
|
1186
|
+
readonly start?: number;
|
|
1187
|
+
readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
|
|
1188
|
+
readonly distance?: number | PositiveUniversalMeasure;
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1191
|
+
export declare class ImageRun extends Run {
|
|
1192
|
+
private readonly key;
|
|
1193
|
+
private readonly fallbackKey;
|
|
1194
|
+
private readonly imageData;
|
|
1195
|
+
constructor(options: IImageOptions);
|
|
1196
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
export declare interface IMargins {
|
|
1200
|
+
readonly left?: number;
|
|
1201
|
+
readonly bottom?: number;
|
|
1202
|
+
readonly top?: number;
|
|
1203
|
+
readonly right?: number;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
export declare interface IMathFractionOptions {
|
|
1207
|
+
readonly numerator: readonly MathComponent[];
|
|
1208
|
+
readonly denominator: readonly MathComponent[];
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
export declare interface IMathFunctionOptions {
|
|
1212
|
+
readonly children: readonly MathComponent[];
|
|
1213
|
+
readonly name: readonly MathComponent[];
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
export declare interface IMathIntegralOptions {
|
|
1217
|
+
readonly children: readonly MathComponent[];
|
|
1218
|
+
readonly subScript?: readonly MathComponent[];
|
|
1219
|
+
readonly superScript?: readonly MathComponent[];
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
export declare interface IMathLimitLowerOptions {
|
|
1223
|
+
readonly children: readonly MathComponent[];
|
|
1224
|
+
readonly limit: readonly MathComponent[];
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
export declare interface IMathLimitUpperOptions {
|
|
1228
|
+
readonly children: readonly MathComponent[];
|
|
1229
|
+
readonly limit: readonly MathComponent[];
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
export declare interface IMathOptions {
|
|
1233
|
+
readonly children: readonly MathComponent[];
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
export declare interface IMathPreSubSuperScriptOptions {
|
|
1237
|
+
readonly children: readonly MathComponent[];
|
|
1238
|
+
readonly subScript: readonly MathComponent[];
|
|
1239
|
+
readonly superScript: readonly MathComponent[];
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
export declare interface IMathRadicalOptions {
|
|
1243
|
+
readonly children: readonly MathComponent[];
|
|
1244
|
+
readonly degree?: readonly MathComponent[];
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
export declare interface IMathSubScriptOptions {
|
|
1248
|
+
readonly children: readonly MathComponent[];
|
|
1249
|
+
readonly subScript: readonly MathComponent[];
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
export declare interface IMathSubSuperScriptOptions {
|
|
1253
|
+
readonly children: readonly MathComponent[];
|
|
1254
|
+
readonly subScript: readonly MathComponent[];
|
|
1255
|
+
readonly superScript: readonly MathComponent[];
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
export declare interface IMathSumOptions {
|
|
1259
|
+
readonly children: readonly MathComponent[];
|
|
1260
|
+
readonly subScript?: readonly MathComponent[];
|
|
1261
|
+
readonly superScript?: readonly MathComponent[];
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
export declare interface IMathSuperScriptOptions {
|
|
1265
|
+
readonly children: readonly MathComponent[];
|
|
1266
|
+
readonly superScript: readonly MathComponent[];
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
export declare type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
1270
|
+
|
|
1271
|
+
export declare interface IMediaDataTransformation {
|
|
1272
|
+
readonly pixels: {
|
|
1273
|
+
readonly x: number;
|
|
1274
|
+
readonly y: number;
|
|
1275
|
+
};
|
|
1276
|
+
readonly emus: {
|
|
1277
|
+
readonly x: number;
|
|
1278
|
+
readonly y: number;
|
|
1279
|
+
};
|
|
1280
|
+
readonly flip?: {
|
|
1281
|
+
readonly vertical?: boolean;
|
|
1282
|
+
readonly horizontal?: boolean;
|
|
1283
|
+
};
|
|
1284
|
+
readonly rotation?: number;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
export declare interface IMediaTransformation {
|
|
1288
|
+
readonly width: number;
|
|
1289
|
+
readonly height: number;
|
|
1290
|
+
readonly flip?: {
|
|
1291
|
+
readonly vertical?: boolean;
|
|
1292
|
+
readonly horizontal?: boolean;
|
|
1293
|
+
};
|
|
1294
|
+
readonly rotation?: number;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
export declare class ImportedRootElementAttributes extends XmlComponent {
|
|
1298
|
+
private readonly _attr;
|
|
1299
|
+
constructor(_attr: any);
|
|
1300
|
+
prepForXml(_: IContext): IXmlableObject;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
export declare class ImportedXmlComponent extends XmlComponent {
|
|
1304
|
+
static fromXmlString(importedContent: string): ImportedXmlComponent;
|
|
1305
|
+
constructor(rootKey: string, _attr?: any);
|
|
1306
|
+
push(xmlComponent: XmlComponent | string): void;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
export declare class Indent extends XmlComponent {
|
|
1310
|
+
constructor({ start, end, left, right, hanging, firstLine }: IIndentAttributesProperties);
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
export declare abstract class InitializableXmlComponent extends XmlComponent {
|
|
1314
|
+
constructor(rootKey: string, initComponent?: InitializableXmlComponent);
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
export declare type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream;
|
|
1318
|
+
|
|
1319
|
+
export declare class InsertedTextRun extends XmlComponent {
|
|
1320
|
+
constructor(options: IInsertedRunOptions);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
export declare class InternalHyperlink extends ConcreteHyperlink {
|
|
1324
|
+
constructor(options: {
|
|
1325
|
+
readonly children: readonly ParagraphChild[];
|
|
1326
|
+
readonly anchor: string;
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
export declare interface INumberingOptions {
|
|
1331
|
+
readonly config: readonly {
|
|
1332
|
+
readonly levels: readonly ILevelsOptions[];
|
|
1333
|
+
readonly reference: string;
|
|
1334
|
+
}[];
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
declare interface IOverrideLevel {
|
|
1338
|
+
readonly num: number;
|
|
1339
|
+
readonly start?: number;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
export declare interface IPageBorderAttributes {
|
|
1343
|
+
readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
|
|
1344
|
+
readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
|
|
1345
|
+
readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
export declare interface IPageBordersOptions {
|
|
1349
|
+
readonly pageBorders?: IPageBorderAttributes;
|
|
1350
|
+
readonly pageBorderTop?: IBorderOptions;
|
|
1351
|
+
readonly pageBorderRight?: IBorderOptions;
|
|
1352
|
+
readonly pageBorderBottom?: IBorderOptions;
|
|
1353
|
+
readonly pageBorderLeft?: IBorderOptions;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
export declare type IPageMarginAttributes = {
|
|
1357
|
+
readonly top?: number | UniversalMeasure;
|
|
1358
|
+
readonly right?: number | PositiveUniversalMeasure;
|
|
1359
|
+
readonly bottom?: number | UniversalMeasure;
|
|
1360
|
+
readonly left?: number | PositiveUniversalMeasure;
|
|
1361
|
+
readonly header?: number | PositiveUniversalMeasure;
|
|
1362
|
+
readonly footer?: number | PositiveUniversalMeasure;
|
|
1363
|
+
readonly gutter?: number | PositiveUniversalMeasure;
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
export declare interface IPageNumberTypeAttributes {
|
|
1367
|
+
readonly start?: number;
|
|
1368
|
+
readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
|
|
1369
|
+
readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
export declare type IPageReferenceOptions = {
|
|
1373
|
+
readonly hyperlink?: boolean;
|
|
1374
|
+
readonly useRelativePosition?: boolean;
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
export declare type IPageSizeAttributes = {
|
|
1378
|
+
readonly width?: number | PositiveUniversalMeasure;
|
|
1379
|
+
readonly height?: number | PositiveUniversalMeasure;
|
|
1380
|
+
readonly orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
|
|
1381
|
+
};
|
|
1382
|
+
|
|
1383
|
+
export declare interface IParagraphOptions extends IParagraphPropertiesOptions {
|
|
1384
|
+
readonly text?: string;
|
|
1385
|
+
readonly children?: readonly ParagraphChild[];
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
export declare interface IParagraphPropertiesOptions extends IParagraphStylePropertiesOptions {
|
|
1389
|
+
readonly border?: IBordersOptions;
|
|
1390
|
+
readonly heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
1391
|
+
readonly bidirectional?: boolean;
|
|
1392
|
+
readonly pageBreakBefore?: boolean;
|
|
1393
|
+
readonly tabStops?: readonly TabStopDefinition[];
|
|
1394
|
+
readonly style?: string;
|
|
1395
|
+
readonly bullet?: {
|
|
1396
|
+
readonly level: number;
|
|
1397
|
+
};
|
|
1398
|
+
readonly shading?: IShadingAttributesProperties;
|
|
1399
|
+
readonly widowControl?: boolean;
|
|
1400
|
+
readonly frame?: IFrameOptions;
|
|
1401
|
+
readonly suppressLineNumbers?: boolean;
|
|
1402
|
+
readonly wordWrap?: boolean;
|
|
1403
|
+
readonly overflowPunctuation?: boolean;
|
|
1404
|
+
readonly scale?: number;
|
|
1405
|
+
readonly autoSpaceEastAsianText?: boolean;
|
|
1406
|
+
readonly run?: IRunOptions;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
export declare interface IParagraphStyleOptions extends IBaseParagraphStyleOptions {
|
|
1410
|
+
readonly id: string;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
export declare interface IParagraphStylePropertiesOptions extends ILevelParagraphStylePropertiesOptions {
|
|
1414
|
+
readonly numbering?: {
|
|
1415
|
+
readonly reference: string;
|
|
1416
|
+
readonly level: number;
|
|
1417
|
+
readonly instance?: number;
|
|
1418
|
+
readonly custom?: boolean;
|
|
1419
|
+
} | false;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
export declare type IPatch = ParagraphPatch | FilePatch;
|
|
1423
|
+
|
|
1424
|
+
declare interface IPropertiesOptions {
|
|
1425
|
+
readonly sections: readonly ISectionOptions[];
|
|
1426
|
+
readonly title?: string;
|
|
1427
|
+
readonly subject?: string;
|
|
1428
|
+
readonly creator?: string;
|
|
1429
|
+
readonly keywords?: string;
|
|
1430
|
+
readonly description?: string;
|
|
1431
|
+
readonly lastModifiedBy?: string;
|
|
1432
|
+
readonly revision?: number;
|
|
1433
|
+
readonly externalStyles?: string;
|
|
1434
|
+
readonly styles?: IStylesOptions;
|
|
1435
|
+
readonly numbering?: INumberingOptions;
|
|
1436
|
+
readonly comments?: ICommentsOptions;
|
|
1437
|
+
readonly footnotes?: {
|
|
1438
|
+
readonly [key: string]: {
|
|
1439
|
+
readonly children: readonly Paragraph[];
|
|
1440
|
+
};
|
|
1441
|
+
};
|
|
1442
|
+
readonly background?: IDocumentBackgroundOptions;
|
|
1443
|
+
readonly features?: {
|
|
1444
|
+
readonly trackRevisions?: boolean;
|
|
1445
|
+
readonly updateFields?: boolean;
|
|
1446
|
+
};
|
|
1447
|
+
readonly compatabilityModeVersion?: number;
|
|
1448
|
+
readonly compatibility?: ICompatibilityOptions;
|
|
1449
|
+
readonly customProperties?: readonly ICustomPropertyOptions[];
|
|
1450
|
+
readonly evenAndOddHeaderAndFooters?: boolean;
|
|
1451
|
+
readonly defaultTabStop?: number;
|
|
1452
|
+
readonly fonts?: readonly FontOptions[];
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
export declare interface IRunOptions extends IRunPropertiesOptions {
|
|
1456
|
+
readonly children?: readonly (Begin | FieldInstruction | Separate | End | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | Break | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | PositionalTab | string)[];
|
|
1457
|
+
readonly break?: number;
|
|
1458
|
+
readonly text?: string;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
export declare interface IRunPropertiesChangeOptions extends IRunPropertiesOptions, IChangedAttributesProperties {
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
export declare interface IRunPropertiesOptions extends IRunStylePropertiesOptions {
|
|
1465
|
+
readonly style?: string;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
export declare interface IRunStylePropertiesOptions {
|
|
1469
|
+
readonly noProof?: boolean;
|
|
1470
|
+
readonly bold?: boolean;
|
|
1471
|
+
readonly boldComplexScript?: boolean;
|
|
1472
|
+
readonly italics?: boolean;
|
|
1473
|
+
readonly italicsComplexScript?: boolean;
|
|
1474
|
+
readonly underline?: {
|
|
1475
|
+
readonly color?: string;
|
|
1476
|
+
readonly type?: (typeof UnderlineType)[keyof typeof UnderlineType];
|
|
1477
|
+
};
|
|
1478
|
+
readonly effect?: (typeof TextEffect)[keyof typeof TextEffect];
|
|
1479
|
+
readonly emphasisMark?: {
|
|
1480
|
+
readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
1481
|
+
};
|
|
1482
|
+
readonly color?: string;
|
|
1483
|
+
readonly kern?: number | PositiveUniversalMeasure;
|
|
1484
|
+
readonly position?: UniversalMeasure;
|
|
1485
|
+
readonly size?: number | PositiveUniversalMeasure;
|
|
1486
|
+
readonly sizeComplexScript?: boolean | number | PositiveUniversalMeasure;
|
|
1487
|
+
readonly rightToLeft?: boolean;
|
|
1488
|
+
readonly smallCaps?: boolean;
|
|
1489
|
+
readonly allCaps?: boolean;
|
|
1490
|
+
readonly strike?: boolean;
|
|
1491
|
+
readonly doubleStrike?: boolean;
|
|
1492
|
+
readonly subScript?: boolean;
|
|
1493
|
+
readonly superScript?: boolean;
|
|
1494
|
+
readonly font?: string | IFontOptions | IFontAttributesProperties;
|
|
1495
|
+
readonly highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
|
|
1496
|
+
readonly highlightComplexScript?: boolean | string;
|
|
1497
|
+
readonly characterSpacing?: number;
|
|
1498
|
+
readonly shading?: IShadingAttributesProperties;
|
|
1499
|
+
readonly emboss?: boolean;
|
|
1500
|
+
readonly imprint?: boolean;
|
|
1501
|
+
readonly revision?: IRunPropertiesChangeOptions;
|
|
1502
|
+
readonly language?: ILanguageOptions;
|
|
1503
|
+
readonly border?: IBorderOptions;
|
|
1504
|
+
readonly snapToGrid?: boolean;
|
|
1505
|
+
readonly vanish?: boolean;
|
|
1506
|
+
readonly specVanish?: boolean;
|
|
1507
|
+
readonly scale?: number;
|
|
1508
|
+
readonly math?: boolean;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
export declare interface ISectionOptions {
|
|
1512
|
+
readonly headers?: {
|
|
1513
|
+
readonly default?: Header;
|
|
1514
|
+
readonly first?: Header;
|
|
1515
|
+
readonly even?: Header;
|
|
1516
|
+
};
|
|
1517
|
+
readonly footers?: {
|
|
1518
|
+
readonly default?: Footer;
|
|
1519
|
+
readonly first?: Footer;
|
|
1520
|
+
readonly even?: Footer;
|
|
1521
|
+
};
|
|
1522
|
+
readonly properties?: ISectionPropertiesOptions;
|
|
1523
|
+
readonly children: readonly FileChild[];
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
export declare interface ISectionPropertiesOptions {
|
|
1527
|
+
readonly page?: {
|
|
1528
|
+
readonly size?: IPageSizeAttributes;
|
|
1529
|
+
readonly margin?: IPageMarginAttributes;
|
|
1530
|
+
readonly pageNumbers?: IPageNumberTypeAttributes;
|
|
1531
|
+
readonly borders?: IPageBordersOptions;
|
|
1532
|
+
readonly textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
|
|
1533
|
+
};
|
|
1534
|
+
readonly grid?: IDocGridAttributesProperties;
|
|
1535
|
+
readonly headerWrapperGroup?: IHeaderFooterGroup<HeaderWrapper>;
|
|
1536
|
+
readonly footerWrapperGroup?: IHeaderFooterGroup<FooterWrapper>;
|
|
1537
|
+
readonly lineNumbers?: ILineNumberAttributes;
|
|
1538
|
+
readonly titlePage?: boolean;
|
|
1539
|
+
readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
|
|
1540
|
+
readonly column?: IColumnsAttributes;
|
|
1541
|
+
readonly type?: (typeof SectionType)[keyof typeof SectionType];
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
declare interface ISettingsOptions {
|
|
1545
|
+
readonly compatibilityModeVersion?: number;
|
|
1546
|
+
readonly evenAndOddHeaders?: boolean;
|
|
1547
|
+
readonly trackRevisions?: boolean;
|
|
1548
|
+
readonly updateFields?: boolean;
|
|
1549
|
+
readonly compatibility?: ICompatibilityOptions;
|
|
1550
|
+
readonly defaultTabStop?: number;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
export declare interface IShadingAttributesProperties {
|
|
1554
|
+
readonly fill?: string;
|
|
1555
|
+
readonly color?: string;
|
|
1556
|
+
readonly type?: (typeof ShadingType)[keyof typeof ShadingType];
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
export declare interface ISpacingProperties {
|
|
1560
|
+
readonly after?: number;
|
|
1561
|
+
readonly before?: number;
|
|
1562
|
+
readonly line?: number;
|
|
1563
|
+
readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
|
|
1564
|
+
readonly beforeAutoSpacing?: boolean;
|
|
1565
|
+
readonly afterAutoSpacing?: boolean;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
declare interface IStyleAttributes {
|
|
1569
|
+
readonly type?: string;
|
|
1570
|
+
readonly styleId?: string;
|
|
1571
|
+
readonly default?: boolean;
|
|
1572
|
+
readonly customStyle?: string;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
declare interface IStyleOptions {
|
|
1576
|
+
readonly name?: string;
|
|
1577
|
+
readonly basedOn?: string;
|
|
1578
|
+
readonly next?: string;
|
|
1579
|
+
readonly link?: string;
|
|
1580
|
+
readonly uiPriority?: number;
|
|
1581
|
+
readonly semiHidden?: boolean;
|
|
1582
|
+
readonly unhideWhenUsed?: boolean;
|
|
1583
|
+
readonly quickFormat?: boolean;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
export declare interface IStylesOptions {
|
|
1587
|
+
readonly default?: IDefaultStylesOptions;
|
|
1588
|
+
readonly initialStyles?: BaseXmlComponent;
|
|
1589
|
+
readonly paragraphStyles?: readonly IParagraphStyleOptions[];
|
|
1590
|
+
readonly characterStyles?: readonly ICharacterStyleOptions[];
|
|
1591
|
+
readonly importedStyles?: readonly (XmlComponent | StyleForParagraph | StyleForCharacter | ImportedXmlComponent)[];
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
export declare interface ISymbolRunOptions extends IRunOptions {
|
|
1595
|
+
readonly char: string;
|
|
1596
|
+
readonly symbolfont?: string;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
export declare interface ITableBordersOptions {
|
|
1600
|
+
readonly top?: IBorderOptions;
|
|
1601
|
+
readonly bottom?: IBorderOptions;
|
|
1602
|
+
readonly left?: IBorderOptions;
|
|
1603
|
+
readonly right?: IBorderOptions;
|
|
1604
|
+
readonly insideHorizontal?: IBorderOptions;
|
|
1605
|
+
readonly insideVertical?: IBorderOptions;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
export declare interface ITableCellBorders {
|
|
1609
|
+
readonly top?: IBorderOptions;
|
|
1610
|
+
readonly start?: IBorderOptions;
|
|
1611
|
+
readonly left?: IBorderOptions;
|
|
1612
|
+
readonly bottom?: IBorderOptions;
|
|
1613
|
+
readonly end?: IBorderOptions;
|
|
1614
|
+
readonly right?: IBorderOptions;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
declare interface ITableCellMarginOptions {
|
|
1618
|
+
readonly marginUnitType?: (typeof WidthType)[keyof typeof WidthType];
|
|
1619
|
+
readonly top?: number;
|
|
1620
|
+
readonly bottom?: number;
|
|
1621
|
+
readonly left?: number;
|
|
1622
|
+
readonly right?: number;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
export declare interface ITableCellOptions extends ITableCellPropertiesOptions {
|
|
1626
|
+
readonly children: readonly (Paragraph | Table)[];
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
declare interface ITableCellPropertiesOptions {
|
|
1630
|
+
readonly shading?: IShadingAttributesProperties;
|
|
1631
|
+
readonly margins?: ITableCellMarginOptions;
|
|
1632
|
+
readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
|
|
1633
|
+
readonly textDirection?: (typeof TextDirection)[keyof typeof TextDirection];
|
|
1634
|
+
readonly verticalMerge?: (typeof VerticalMergeType)[keyof typeof VerticalMergeType];
|
|
1635
|
+
readonly width?: ITableWidthProperties;
|
|
1636
|
+
readonly columnSpan?: number;
|
|
1637
|
+
readonly rowSpan?: number;
|
|
1638
|
+
readonly borders?: ITableCellBorders;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
export declare type ITableFloatOptions = {
|
|
1642
|
+
readonly horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
|
1643
|
+
readonly absoluteHorizontalPosition?: number | UniversalMeasure;
|
|
1644
|
+
readonly relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
|
|
1645
|
+
readonly verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
|
1646
|
+
readonly absoluteVerticalPosition?: number | UniversalMeasure;
|
|
1647
|
+
readonly relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
|
|
1648
|
+
readonly bottomFromText?: number | PositiveUniversalMeasure;
|
|
1649
|
+
readonly topFromText?: number | PositiveUniversalMeasure;
|
|
1650
|
+
readonly leftFromText?: number | PositiveUniversalMeasure;
|
|
1651
|
+
readonly rightFromText?: number | PositiveUniversalMeasure;
|
|
1652
|
+
readonly overlap?: (typeof OverlapType)[keyof typeof OverlapType];
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
export declare interface ITableOfContentsOptions {
|
|
1656
|
+
readonly captionLabel?: string;
|
|
1657
|
+
readonly entriesFromBookmark?: string;
|
|
1658
|
+
readonly captionLabelIncludingNumbers?: string;
|
|
1659
|
+
readonly sequenceAndPageNumbersSeparator?: string;
|
|
1660
|
+
readonly tcFieldIdentifier?: string;
|
|
1661
|
+
readonly hyperlink?: boolean;
|
|
1662
|
+
readonly tcFieldLevelRange?: string;
|
|
1663
|
+
readonly pageNumbersEntryLevelsRange?: string;
|
|
1664
|
+
readonly headingStyleRange?: string;
|
|
1665
|
+
readonly entryAndPageNumberSeparator?: string;
|
|
1666
|
+
readonly seqFieldIdentifierForPrefix?: string;
|
|
1667
|
+
readonly stylesWithLevels?: readonly StyleLevel[];
|
|
1668
|
+
readonly useAppliedParagraphOutlineLevel?: boolean;
|
|
1669
|
+
readonly preserveTabInEntries?: boolean;
|
|
1670
|
+
readonly preserveNewLineInEntries?: boolean;
|
|
1671
|
+
readonly hideTabAndPageNumbersInWebView?: boolean;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
export declare interface ITableOptions {
|
|
1675
|
+
readonly rows: readonly TableRow[];
|
|
1676
|
+
readonly width?: ITableWidthProperties;
|
|
1677
|
+
readonly columnWidths?: readonly number[];
|
|
1678
|
+
readonly margins?: ITableCellMarginOptions;
|
|
1679
|
+
readonly indent?: ITableWidthProperties;
|
|
1680
|
+
readonly float?: ITableFloatOptions;
|
|
1681
|
+
readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
1682
|
+
readonly style?: string;
|
|
1683
|
+
readonly borders?: ITableBordersOptions;
|
|
1684
|
+
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1685
|
+
readonly visuallyRightToLeft?: boolean;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
export declare interface ITablePropertiesOptions {
|
|
1689
|
+
readonly width?: ITableWidthProperties;
|
|
1690
|
+
readonly indent?: ITableWidthProperties;
|
|
1691
|
+
readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
1692
|
+
readonly borders?: ITableBordersOptions;
|
|
1693
|
+
readonly float?: ITableFloatOptions;
|
|
1694
|
+
readonly shading?: IShadingAttributesProperties;
|
|
1695
|
+
readonly style?: string;
|
|
1696
|
+
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1697
|
+
readonly cellMargin?: ITableCellMarginOptions;
|
|
1698
|
+
readonly visuallyRightToLeft?: boolean;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
export declare interface ITableRowOptions extends ITableRowPropertiesOptions {
|
|
1702
|
+
readonly children: readonly TableCell[];
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
export declare interface ITableRowPropertiesOptions {
|
|
1706
|
+
readonly cantSplit?: boolean;
|
|
1707
|
+
readonly tableHeader?: boolean;
|
|
1708
|
+
readonly height?: {
|
|
1709
|
+
readonly value: number | PositiveUniversalMeasure;
|
|
1710
|
+
readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
|
|
1711
|
+
};
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
export declare type ITableWidthProperties = {
|
|
1715
|
+
readonly size: number | Percentage | UniversalMeasure;
|
|
1716
|
+
readonly type?: (typeof WidthType)[keyof typeof WidthType];
|
|
1717
|
+
};
|
|
1718
|
+
|
|
1719
|
+
export declare interface ITextWrapping {
|
|
1720
|
+
readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
1721
|
+
readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
1722
|
+
readonly margins?: IDistance;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
export declare interface IVerticalPositionOptions {
|
|
1726
|
+
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
1727
|
+
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
1728
|
+
readonly offset?: number;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
declare interface IViewWrapper {
|
|
1732
|
+
readonly View: Document_2 | Footer_2 | Header_2 | FootNotes | XmlComponent;
|
|
1733
|
+
readonly Relationships: Relationships;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
export declare interface IXmlableObject extends Record<string, unknown> {
|
|
1737
|
+
readonly [key: string]: any;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
export declare interface IXmlAttribute {
|
|
1741
|
+
readonly [key: string]: string | number | boolean;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
export declare interface IXYFrameOptions extends IBaseFrameOptions {
|
|
1745
|
+
readonly type: "absolute";
|
|
1746
|
+
readonly position: {
|
|
1747
|
+
readonly x: number;
|
|
1748
|
+
readonly y: number;
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
export declare class LastRenderedPageBreak extends EmptyElement {
|
|
1753
|
+
constructor();
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
export declare const LeaderType: {
|
|
1757
|
+
readonly DOT: "dot";
|
|
1758
|
+
readonly HYPHEN: "hyphen";
|
|
1759
|
+
readonly MIDDLE_DOT: "middleDot";
|
|
1760
|
+
readonly NONE: "none";
|
|
1761
|
+
readonly UNDERSCORE: "underscore";
|
|
1762
|
+
};
|
|
1763
|
+
|
|
1764
|
+
export declare class Level extends LevelBase {
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
export declare class LevelBase extends XmlComponent {
|
|
1768
|
+
private readonly paragraphProperties;
|
|
1769
|
+
private readonly runProperties;
|
|
1770
|
+
constructor({ level, format, text, alignment, start, style, suffix, isLegalNumberingStyle, }: ILevelsOptions);
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
export declare const LevelFormat: {
|
|
1774
|
+
readonly DECIMAL: "decimal";
|
|
1775
|
+
readonly UPPER_ROMAN: "upperRoman";
|
|
1776
|
+
readonly LOWER_ROMAN: "lowerRoman";
|
|
1777
|
+
readonly UPPER_LETTER: "upperLetter";
|
|
1778
|
+
readonly LOWER_LETTER: "lowerLetter";
|
|
1779
|
+
readonly ORDINAL: "ordinal";
|
|
1780
|
+
readonly CARDINAL_TEXT: "cardinalText";
|
|
1781
|
+
readonly ORDINAL_TEXT: "ordinalText";
|
|
1782
|
+
readonly HEX: "hex";
|
|
1783
|
+
readonly CHICAGO: "chicago";
|
|
1784
|
+
readonly IDEOGRAPH__DIGITAL: "ideographDigital";
|
|
1785
|
+
readonly JAPANESE_COUNTING: "japaneseCounting";
|
|
1786
|
+
readonly AIUEO: "aiueo";
|
|
1787
|
+
readonly IROHA: "iroha";
|
|
1788
|
+
readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
|
|
1789
|
+
readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
|
|
1790
|
+
readonly JAPANESE_LEGAL: "japaneseLegal";
|
|
1791
|
+
readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
|
|
1792
|
+
readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
|
|
1793
|
+
readonly DECIMAL_FULL_WIDTH2: "decimalFullWidth2";
|
|
1794
|
+
readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
|
|
1795
|
+
readonly IROHA_FULL_WIDTH: "irohaFullWidth";
|
|
1796
|
+
readonly DECIMAL_ZERO: "decimalZero";
|
|
1797
|
+
readonly BULLET: "bullet";
|
|
1798
|
+
readonly GANADA: "ganada";
|
|
1799
|
+
readonly CHOSUNG: "chosung";
|
|
1800
|
+
readonly DECIMAL_ENCLOSED_FULLSTOP: "decimalEnclosedFullstop";
|
|
1801
|
+
readonly DECIMAL_ENCLOSED_PARENTHESES: "decimalEnclosedParen";
|
|
1802
|
+
readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
|
|
1803
|
+
readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
|
|
1804
|
+
readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
|
|
1805
|
+
readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
|
|
1806
|
+
readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
|
|
1807
|
+
readonly TAIWANESE_COUNTING: "taiwaneseCounting";
|
|
1808
|
+
readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
|
|
1809
|
+
readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
|
|
1810
|
+
readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
|
|
1811
|
+
readonly CHINESE_COUNTING: "chineseCounting";
|
|
1812
|
+
readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
|
|
1813
|
+
readonly CHINESE_COUNTING_THOUSAND: "chineseCountingThousand";
|
|
1814
|
+
readonly KOREAN_DIGITAL: "koreanDigital";
|
|
1815
|
+
readonly KOREAN_COUNTING: "koreanCounting";
|
|
1816
|
+
readonly KOREAN_LEGAL: "koreanLegal";
|
|
1817
|
+
readonly KOREAN_DIGITAL2: "koreanDigital2";
|
|
1818
|
+
readonly VIETNAMESE_COUNTING: "vietnameseCounting";
|
|
1819
|
+
readonly RUSSIAN_LOWER: "russianLower";
|
|
1820
|
+
readonly RUSSIAN_UPPER: "russianUpper";
|
|
1821
|
+
readonly NONE: "none";
|
|
1822
|
+
readonly NUMBER_IN_DASH: "numberInDash";
|
|
1823
|
+
readonly HEBREW1: "hebrew1";
|
|
1824
|
+
readonly HEBREW2: "hebrew2";
|
|
1825
|
+
readonly ARABIC_ALPHA: "arabicAlpha";
|
|
1826
|
+
readonly ARABIC_ABJAD: "arabicAbjad";
|
|
1827
|
+
readonly HINDI_VOWELS: "hindiVowels";
|
|
1828
|
+
readonly HINDI_CONSONANTS: "hindiConsonants";
|
|
1829
|
+
readonly HINDI_NUMBERS: "hindiNumbers";
|
|
1830
|
+
readonly HINDI_COUNTING: "hindiCounting";
|
|
1831
|
+
readonly THAI_LETTERS: "thaiLetters";
|
|
1832
|
+
readonly THAI_NUMBERS: "thaiNumbers";
|
|
1833
|
+
readonly THAI_COUNTING: "thaiCounting";
|
|
1834
|
+
readonly BAHT_TEXT: "bahtText";
|
|
1835
|
+
readonly DOLLAR_TEXT: "dollarText";
|
|
1836
|
+
readonly CUSTOM: "custom";
|
|
1837
|
+
};
|
|
1838
|
+
|
|
1839
|
+
export declare class LevelForOverride extends LevelBase {
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
export declare class LevelOverride extends XmlComponent {
|
|
1843
|
+
constructor(levelNum: number, start?: number);
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
export declare const LevelSuffix: {
|
|
1847
|
+
readonly NOTHING: "nothing";
|
|
1848
|
+
readonly SPACE: "space";
|
|
1849
|
+
readonly TAB: "tab";
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1852
|
+
declare const LineCap: {
|
|
1853
|
+
readonly ROUND: "rnd";
|
|
1854
|
+
readonly SQUARE: "sq";
|
|
1855
|
+
readonly FLAT: "flat";
|
|
1856
|
+
};
|
|
1857
|
+
|
|
1858
|
+
export declare const LineNumberRestartFormat: {
|
|
1859
|
+
readonly NEW_PAGE: "newPage";
|
|
1860
|
+
readonly NEW_SECTION: "newSection";
|
|
1861
|
+
readonly CONTINUOUS: "continuous";
|
|
1862
|
+
};
|
|
1863
|
+
|
|
1864
|
+
export declare const LineRuleType: {
|
|
1865
|
+
readonly AT_LEAST: "atLeast";
|
|
1866
|
+
readonly EXACTLY: "exactly";
|
|
1867
|
+
readonly EXACT: "exact";
|
|
1868
|
+
readonly AUTO: "auto";
|
|
1869
|
+
};
|
|
1870
|
+
|
|
1871
|
+
export declare const longHexNumber: (val: string) => string;
|
|
1872
|
+
|
|
1873
|
+
declare class Math_2 extends XmlComponent {
|
|
1874
|
+
constructor(options: IMathOptions);
|
|
1875
|
+
}
|
|
1876
|
+
export { Math_2 as Math }
|
|
1877
|
+
|
|
1878
|
+
export declare class MathAccentCharacter extends XmlComponent {
|
|
1879
|
+
constructor(accent: string);
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
export declare class MathAngledBrackets extends XmlComponent {
|
|
1883
|
+
constructor(options: {
|
|
1884
|
+
readonly children: readonly MathComponent[];
|
|
1885
|
+
});
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
export declare class MathBase extends XmlComponent {
|
|
1889
|
+
constructor(children: readonly MathComponent[]);
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
export declare type MathComponent = MathRun | MathFraction | MathSum | MathIntegral | MathSuperScript | MathSubScript | MathSubSuperScript | MathRadical | MathFunction | MathRoundBrackets | MathCurlyBrackets | MathAngledBrackets | MathSquareBrackets;
|
|
1893
|
+
|
|
1894
|
+
export declare class MathCurlyBrackets extends XmlComponent {
|
|
1895
|
+
constructor(options: {
|
|
1896
|
+
readonly children: readonly MathComponent[];
|
|
1897
|
+
});
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
export declare class MathDegree extends XmlComponent {
|
|
1901
|
+
constructor(children?: readonly MathComponent[]);
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
export declare class MathDenominator extends XmlComponent {
|
|
1905
|
+
constructor(children: readonly MathComponent[]);
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
export declare class MathFraction extends XmlComponent {
|
|
1909
|
+
constructor(options: IMathFractionOptions);
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
export declare class MathFunction extends XmlComponent {
|
|
1913
|
+
constructor(options: IMathFunctionOptions);
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
export declare class MathFunctionName extends XmlComponent {
|
|
1917
|
+
constructor(children: readonly MathComponent[]);
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
export declare class MathFunctionProperties extends XmlComponent {
|
|
1921
|
+
constructor();
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
export declare class MathIntegral extends XmlComponent {
|
|
1925
|
+
constructor(options: IMathIntegralOptions);
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
export declare class MathLimit extends XmlComponent {
|
|
1929
|
+
constructor(children: readonly MathComponent[]);
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
export declare class MathLimitLocation extends XmlComponent {
|
|
1933
|
+
constructor(value?: string);
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
export declare class MathLimitLower extends XmlComponent {
|
|
1937
|
+
constructor(options: IMathLimitLowerOptions);
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
export declare class MathLimitUpper extends XmlComponent {
|
|
1941
|
+
constructor(options: IMathLimitUpperOptions);
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
export declare class MathNAryProperties extends XmlComponent {
|
|
1945
|
+
constructor(accent: string, hasSuperScript: boolean, hasSubScript: boolean, limitLocationVal?: string);
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
export declare class MathNumerator extends XmlComponent {
|
|
1949
|
+
constructor(children: readonly MathComponent[]);
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
export declare class MathPreSubSuperScript extends XmlComponent {
|
|
1953
|
+
constructor(options: IMathPreSubSuperScriptOptions);
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
export declare class MathPreSubSuperScriptProperties extends XmlComponent {
|
|
1957
|
+
constructor();
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
export declare class MathRadical extends XmlComponent {
|
|
1961
|
+
constructor(options: IMathRadicalOptions);
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
export declare class MathRadicalProperties extends XmlComponent {
|
|
1965
|
+
constructor(hasDegree: boolean);
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
export declare class MathRoundBrackets extends XmlComponent {
|
|
1969
|
+
constructor(options: {
|
|
1970
|
+
readonly children: readonly MathComponent[];
|
|
1971
|
+
});
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
export declare class MathRun extends XmlComponent {
|
|
1975
|
+
constructor(text: string);
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
export declare class MathSquareBrackets extends XmlComponent {
|
|
1979
|
+
constructor(options: {
|
|
1980
|
+
readonly children: readonly MathComponent[];
|
|
1981
|
+
});
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
export declare class MathSubScript extends XmlComponent {
|
|
1985
|
+
constructor(options: IMathSubScriptOptions);
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
export declare class MathSubScriptElement extends XmlComponent {
|
|
1989
|
+
constructor(children: readonly MathComponent[]);
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
export declare class MathSubScriptProperties extends XmlComponent {
|
|
1993
|
+
constructor();
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
export declare class MathSubSuperScript extends XmlComponent {
|
|
1997
|
+
constructor(options: IMathSubSuperScriptOptions);
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
export declare class MathSubSuperScriptProperties extends XmlComponent {
|
|
2001
|
+
constructor();
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
export declare class MathSum extends XmlComponent {
|
|
2005
|
+
constructor(options: IMathSumOptions);
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
export declare class MathSuperScript extends XmlComponent {
|
|
2009
|
+
constructor(options: IMathSuperScriptOptions);
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
export declare class MathSuperScriptElement extends XmlComponent {
|
|
2013
|
+
constructor(children: readonly MathComponent[]);
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
export declare class MathSuperScriptProperties extends XmlComponent {
|
|
2017
|
+
constructor();
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
export declare const measurementOrPercentValue: (val: number | Percentage | UniversalMeasure) => number | UniversalMeasure | Percentage;
|
|
2021
|
+
|
|
2022
|
+
export declare class Media {
|
|
2023
|
+
private readonly map;
|
|
2024
|
+
constructor();
|
|
2025
|
+
addImage(key: string, mediaData: IMediaData): void;
|
|
2026
|
+
get Array(): readonly IMediaData[];
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
export declare class MonthLong extends EmptyElement {
|
|
2030
|
+
constructor();
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
export declare class MonthShort extends EmptyElement {
|
|
2034
|
+
constructor();
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
export declare class NextAttributeComponent<T extends AttributeData> extends BaseXmlComponent {
|
|
2038
|
+
private readonly root;
|
|
2039
|
+
constructor(root: AttributePayload<T>);
|
|
2040
|
+
prepForXml(_: IContext): IXmlableObject;
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
export declare class NoBreakHyphen extends EmptyElement {
|
|
2044
|
+
constructor();
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
export declare const NumberFormat: {
|
|
2048
|
+
readonly DECIMAL: "decimal";
|
|
2049
|
+
readonly UPPER_ROMAN: "upperRoman";
|
|
2050
|
+
readonly LOWER_ROMAN: "lowerRoman";
|
|
2051
|
+
readonly UPPER_LETTER: "upperLetter";
|
|
2052
|
+
readonly LOWER_LETTER: "lowerLetter";
|
|
2053
|
+
readonly ORDINAL: "ordinal";
|
|
2054
|
+
readonly CARDINAL_TEXT: "cardinalText";
|
|
2055
|
+
readonly ORDINAL_TEXT: "ordinalText";
|
|
2056
|
+
readonly HEX: "hex";
|
|
2057
|
+
readonly CHICAGO: "chicago";
|
|
2058
|
+
readonly IDEOGRAPH_DIGITAL: "ideographDigital";
|
|
2059
|
+
readonly JAPANESE_COUNTING: "japaneseCounting";
|
|
2060
|
+
readonly AIUEO: "aiueo";
|
|
2061
|
+
readonly IROHA: "iroha";
|
|
2062
|
+
readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
|
|
2063
|
+
readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
|
|
2064
|
+
readonly JAPANESE_LEGAL: "japaneseLegal";
|
|
2065
|
+
readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
|
|
2066
|
+
readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
|
|
2067
|
+
readonly DECIMAL_FULL_WIDTH_2: "decimalFullWidth2";
|
|
2068
|
+
readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
|
|
2069
|
+
readonly IROHA_FULL_WIDTH: "irohaFullWidth";
|
|
2070
|
+
readonly DECIMAL_ZERO: "decimalZero";
|
|
2071
|
+
readonly BULLET: "bullet";
|
|
2072
|
+
readonly GANADA: "ganada";
|
|
2073
|
+
readonly CHOSUNG: "chosung";
|
|
2074
|
+
readonly DECIMAL_ENCLOSED_FULL_STOP: "decimalEnclosedFullstop";
|
|
2075
|
+
readonly DECIMAL_ENCLOSED_PAREN: "decimalEnclosedParen";
|
|
2076
|
+
readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
|
|
2077
|
+
readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
|
|
2078
|
+
readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
|
|
2079
|
+
readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
|
|
2080
|
+
readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
|
|
2081
|
+
readonly TAIWANESE_COUNTING: "taiwaneseCounting";
|
|
2082
|
+
readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
|
|
2083
|
+
readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
|
|
2084
|
+
readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
|
|
2085
|
+
readonly CHINESE_COUNTING: "chineseCounting";
|
|
2086
|
+
readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
|
|
2087
|
+
readonly CHINESE_COUNTING_TEN_THOUSAND: "chineseCountingThousand";
|
|
2088
|
+
readonly KOREAN_DIGITAL: "koreanDigital";
|
|
2089
|
+
readonly KOREAN_COUNTING: "koreanCounting";
|
|
2090
|
+
readonly KOREAN_LEGAL: "koreanLegal";
|
|
2091
|
+
readonly KOREAN_DIGITAL_2: "koreanDigital2";
|
|
2092
|
+
readonly VIETNAMESE_COUNTING: "vietnameseCounting";
|
|
2093
|
+
readonly RUSSIAN_LOWER: "russianLower";
|
|
2094
|
+
readonly RUSSIAN_UPPER: "russianUpper";
|
|
2095
|
+
readonly NONE: "none";
|
|
2096
|
+
readonly NUMBER_IN_DASH: "numberInDash";
|
|
2097
|
+
readonly HEBREW_1: "hebrew1";
|
|
2098
|
+
readonly HEBREW_2: "hebrew2";
|
|
2099
|
+
readonly ARABIC_ALPHA: "arabicAlpha";
|
|
2100
|
+
readonly ARABIC_ABJAD: "arabicAbjad";
|
|
2101
|
+
readonly HINDI_VOWELS: "hindiVowels";
|
|
2102
|
+
readonly HINDI_CONSONANTS: "hindiConsonants";
|
|
2103
|
+
readonly HINDI_NUMBERS: "hindiNumbers";
|
|
2104
|
+
readonly HINDI_COUNTING: "hindiCounting";
|
|
2105
|
+
readonly THAI_LETTERS: "thaiLetters";
|
|
2106
|
+
readonly THAI_NUMBERS: "thaiNumbers";
|
|
2107
|
+
readonly THAI_COUNTING: "thaiCounting";
|
|
2108
|
+
readonly BAHT_TEXT: "bahtText";
|
|
2109
|
+
readonly DOLLAR_TEXT: "dollarText";
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2112
|
+
export declare class Numbering extends XmlComponent {
|
|
2113
|
+
private readonly abstractNumberingMap;
|
|
2114
|
+
private readonly concreteNumberingMap;
|
|
2115
|
+
private readonly referenceConfigMap;
|
|
2116
|
+
private readonly abstractNumUniqueNumericId;
|
|
2117
|
+
private readonly concreteNumUniqueNumericId;
|
|
2118
|
+
constructor(options: INumberingOptions);
|
|
2119
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
2120
|
+
createConcreteNumberingInstance(reference: string, instance: number): void;
|
|
2121
|
+
get ConcreteNumbering(): readonly ConcreteNumbering[];
|
|
2122
|
+
get ReferenceConfig(): readonly Record<string, any>[];
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
export declare class NumberProperties extends XmlComponent {
|
|
2126
|
+
constructor(numberId: number | string, indentLevel: number);
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
export declare class NumberValueElement extends XmlComponent {
|
|
2130
|
+
constructor(name: string, val: number);
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
export declare class OnOffElement extends XmlComponent {
|
|
2134
|
+
constructor(name: string, val?: boolean | undefined);
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
declare type OutlineAttributes = {
|
|
2138
|
+
readonly width?: number;
|
|
2139
|
+
readonly cap?: keyof typeof LineCap;
|
|
2140
|
+
readonly compoundLine?: keyof typeof CompoundLine;
|
|
2141
|
+
readonly align?: keyof typeof PenAlignment;
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
declare type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
|
|
2145
|
+
|
|
2146
|
+
export declare class OutlineLevel extends XmlComponent {
|
|
2147
|
+
readonly level: number;
|
|
2148
|
+
constructor(level: number);
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
declare type OutlineNoFill = {
|
|
2152
|
+
readonly type: "noFill";
|
|
2153
|
+
};
|
|
2154
|
+
|
|
2155
|
+
declare type OutlineOptions = OutlineAttributes & OutlineFillProperties;
|
|
2156
|
+
|
|
2157
|
+
declare type OutlineRgbSolidFill = {
|
|
2158
|
+
readonly type: "solidFill";
|
|
2159
|
+
readonly solidFillType: "rgb";
|
|
2160
|
+
readonly value: string;
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2163
|
+
declare type OutlineSchemeSolidFill = {
|
|
2164
|
+
readonly type: "solidFill";
|
|
2165
|
+
readonly solidFillType: "scheme";
|
|
2166
|
+
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2169
|
+
declare type OutlineSolidFill = OutlineRgbSolidFill | OutlineSchemeSolidFill;
|
|
2170
|
+
|
|
2171
|
+
declare type OutputByType = {
|
|
2172
|
+
readonly base64: string;
|
|
2173
|
+
readonly string: string;
|
|
2174
|
+
readonly text: string;
|
|
2175
|
+
readonly binarystring: string;
|
|
2176
|
+
readonly array: readonly number[];
|
|
2177
|
+
readonly uint8array: Uint8Array;
|
|
2178
|
+
readonly arraybuffer: ArrayBuffer;
|
|
2179
|
+
readonly blob: Blob;
|
|
2180
|
+
readonly nodebuffer: Buffer;
|
|
2181
|
+
};
|
|
2182
|
+
|
|
2183
|
+
export declare const OverlapType: {
|
|
2184
|
+
readonly NEVER: "never";
|
|
2185
|
+
readonly OVERLAP: "overlap";
|
|
2186
|
+
};
|
|
2187
|
+
|
|
2188
|
+
export declare class Packer {
|
|
2189
|
+
static toString(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType]): Promise<string>;
|
|
2190
|
+
static toBuffer(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType]): Promise<Buffer>;
|
|
2191
|
+
static toBase64String(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType]): Promise<string>;
|
|
2192
|
+
static toBlob(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType]): Promise<Blob>;
|
|
2193
|
+
static toStream(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType]): Stream;
|
|
2194
|
+
private static readonly compiler;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
export declare const PageBorderDisplay: {
|
|
2198
|
+
readonly ALL_PAGES: "allPages";
|
|
2199
|
+
readonly FIRST_PAGE: "firstPage";
|
|
2200
|
+
readonly NOT_FIRST_PAGE: "notFirstPage";
|
|
2201
|
+
};
|
|
2202
|
+
|
|
2203
|
+
export declare const PageBorderOffsetFrom: {
|
|
2204
|
+
readonly PAGE: "page";
|
|
2205
|
+
readonly TEXT: "text";
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
export declare class PageBorders extends IgnoreIfEmptyXmlComponent {
|
|
2209
|
+
constructor(options?: IPageBordersOptions);
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
export declare const PageBorderZOrder: {
|
|
2213
|
+
readonly BACK: "back";
|
|
2214
|
+
readonly FRONT: "front";
|
|
2215
|
+
};
|
|
2216
|
+
|
|
2217
|
+
export declare class PageBreak extends Run {
|
|
2218
|
+
constructor();
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
export declare class PageBreakBefore extends XmlComponent {
|
|
2222
|
+
constructor();
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
export declare class PageMargin extends XmlComponent {
|
|
2226
|
+
constructor(top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure);
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
export declare const PageNumber: {
|
|
2230
|
+
readonly CURRENT: "CURRENT";
|
|
2231
|
+
readonly TOTAL_PAGES: "TOTAL_PAGES";
|
|
2232
|
+
readonly TOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION";
|
|
2233
|
+
readonly CURRENT_SECTION: "SECTION";
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
export declare class PageNumberElement extends EmptyElement {
|
|
2237
|
+
constructor();
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
export declare const PageNumberSeparator: {
|
|
2241
|
+
readonly HYPHEN: "hyphen";
|
|
2242
|
+
readonly PERIOD: "period";
|
|
2243
|
+
readonly COLON: "colon";
|
|
2244
|
+
readonly EM_DASH: "emDash";
|
|
2245
|
+
readonly EN_DASH: "endash";
|
|
2246
|
+
};
|
|
2247
|
+
|
|
2248
|
+
export declare class PageNumberType extends XmlComponent {
|
|
2249
|
+
constructor({ start, formatType, separator }: IPageNumberTypeAttributes);
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
export declare class PageNumberTypeAttributes extends XmlAttributeComponent<IPageNumberTypeAttributes> {
|
|
2253
|
+
protected readonly xmlKeys: {
|
|
2254
|
+
start: string;
|
|
2255
|
+
formatType: string;
|
|
2256
|
+
separator: string;
|
|
2257
|
+
};
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
export declare const PageOrientation: {
|
|
2261
|
+
readonly PORTRAIT: "portrait";
|
|
2262
|
+
readonly LANDSCAPE: "landscape";
|
|
2263
|
+
};
|
|
2264
|
+
|
|
2265
|
+
export declare class PageReference extends Run {
|
|
2266
|
+
constructor(bookmarkId: string, options?: IPageReferenceOptions);
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
export declare class PageSize extends XmlComponent {
|
|
2270
|
+
constructor(width: number | PositiveUniversalMeasure, height: number | PositiveUniversalMeasure, orientation: (typeof PageOrientation)[keyof typeof PageOrientation]);
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
export declare class PageTextDirection extends XmlComponent {
|
|
2274
|
+
constructor(value: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType]);
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
export declare const PageTextDirectionType: {
|
|
2278
|
+
readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
|
|
2279
|
+
readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
export declare class Paragraph extends FileChild {
|
|
2283
|
+
private readonly properties;
|
|
2284
|
+
constructor(options: string | IParagraphOptions);
|
|
2285
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
2286
|
+
addRunToFront(run: Run): Paragraph;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
export declare type ParagraphChild = TextRun | ImageRun | SymbolRun | Bookmark | PageBreak | ColumnBreak | SequentialIdentifier | FootnoteReferenceRun | InternalHyperlink | ExternalHyperlink | InsertedTextRun | DeletedTextRun | Math_2 | SimpleField | SimpleMailMergeField | Comments | Comment_2 | CommentRangeStart | CommentRangeEnd | CommentReference | CheckBox;
|
|
2290
|
+
|
|
2291
|
+
declare type ParagraphPatch = {
|
|
2292
|
+
readonly type: typeof PatchType.PARAGRAPH;
|
|
2293
|
+
readonly children: readonly ParagraphChild[];
|
|
2294
|
+
};
|
|
2295
|
+
|
|
2296
|
+
export declare class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
|
|
2297
|
+
private readonly numberingReferences;
|
|
2298
|
+
constructor(options?: IParagraphPropertiesOptions);
|
|
2299
|
+
push(item: XmlComponent): void;
|
|
2300
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
export declare class ParagraphPropertiesDefaults extends XmlComponent {
|
|
2304
|
+
constructor(options?: IParagraphStylePropertiesOptions);
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
export declare const patchDetector: ({ data }: PatchDetectorOptions) => Promise<readonly string[]>;
|
|
2308
|
+
|
|
2309
|
+
declare type PatchDetectorOptions = {
|
|
2310
|
+
readonly data: InputDataType;
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2313
|
+
export declare const patchDocument: <T extends keyof OutputByType = keyof OutputByType>({ outputType, data, patches, keepOriginalStyles, }: PatchDocumentOptions<T>) => Promise<OutputByType[T]>;
|
|
2314
|
+
|
|
2315
|
+
export declare type PatchDocumentOptions<T extends PatchDocumentOutputType = PatchDocumentOutputType> = {
|
|
2316
|
+
readonly outputType: T;
|
|
2317
|
+
readonly data: InputDataType;
|
|
2318
|
+
readonly patches: {
|
|
2319
|
+
readonly [key: string]: IPatch;
|
|
2320
|
+
};
|
|
2321
|
+
readonly keepOriginalStyles?: boolean;
|
|
2322
|
+
};
|
|
2323
|
+
|
|
2324
|
+
export declare type PatchDocumentOutputType = keyof OutputByType;
|
|
2325
|
+
|
|
2326
|
+
export declare const PatchType: {
|
|
2327
|
+
readonly DOCUMENT: "file";
|
|
2328
|
+
readonly PARAGRAPH: "paragraph";
|
|
2329
|
+
};
|
|
2330
|
+
|
|
2331
|
+
declare const PenAlignment: {
|
|
2332
|
+
readonly CENTER: "ctr";
|
|
2333
|
+
readonly INSET: "in";
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
export declare type Percentage = `${"-" | ""}${number}%`;
|
|
2337
|
+
|
|
2338
|
+
export declare const percentageValue: (val: Percentage) => Percentage;
|
|
2339
|
+
|
|
2340
|
+
export declare const pointMeasureValue: (val: number) => number;
|
|
2341
|
+
|
|
2342
|
+
export declare class PositionalTab extends XmlComponent {
|
|
2343
|
+
constructor(options: PositionalTabOptions);
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
export declare const PositionalTabAlignment: {
|
|
2347
|
+
readonly LEFT: "left";
|
|
2348
|
+
readonly CENTER: "center";
|
|
2349
|
+
readonly RIGHT: "right";
|
|
2350
|
+
};
|
|
2351
|
+
|
|
2352
|
+
export declare const PositionalTabLeader: {
|
|
2353
|
+
readonly NONE: "none";
|
|
2354
|
+
readonly DOT: "dot";
|
|
2355
|
+
readonly HYPHEN: "hyphen";
|
|
2356
|
+
readonly UNDERSCORE: "underscore";
|
|
2357
|
+
readonly MIDDLE_DOT: "middleDot";
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2360
|
+
export declare interface PositionalTabOptions {
|
|
2361
|
+
readonly alignment: (typeof PositionalTabAlignment)[keyof typeof PositionalTabAlignment];
|
|
2362
|
+
readonly relativeTo: (typeof PositionalTabRelativeTo)[keyof typeof PositionalTabRelativeTo];
|
|
2363
|
+
readonly leader: (typeof PositionalTabLeader)[keyof typeof PositionalTabLeader];
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
export declare const PositionalTabRelativeTo: {
|
|
2367
|
+
readonly MARGIN: "margin";
|
|
2368
|
+
readonly INDENT: "indent";
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
export declare type PositiveUniversalMeasure = `${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
|
|
2372
|
+
|
|
2373
|
+
export declare const positiveUniversalMeasureValue: (val: PositiveUniversalMeasure) => PositiveUniversalMeasure;
|
|
2374
|
+
|
|
2375
|
+
export declare const PrettifyType: {
|
|
2376
|
+
readonly NONE: "";
|
|
2377
|
+
readonly WITH_2_BLANKS: " ";
|
|
2378
|
+
readonly WITH_4_BLANKS: " ";
|
|
2379
|
+
readonly WITH_TAB: "\t";
|
|
2380
|
+
};
|
|
2381
|
+
|
|
2382
|
+
declare type RegularImageOptions = {
|
|
2383
|
+
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
2384
|
+
readonly data: Buffer | string | Uint8Array | ArrayBuffer;
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
declare type RegularMediaData = {
|
|
2388
|
+
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
2389
|
+
};
|
|
2390
|
+
|
|
2391
|
+
declare class Relationship extends XmlComponent {
|
|
2392
|
+
constructor(id: string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]);
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
declare class Relationships extends XmlComponent {
|
|
2396
|
+
constructor();
|
|
2397
|
+
createRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): Relationship;
|
|
2398
|
+
get RelationshipCount(): number;
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
declare type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
|
|
2402
|
+
|
|
2403
|
+
export declare const RelativeHorizontalPosition: {
|
|
2404
|
+
readonly CENTER: "center";
|
|
2405
|
+
readonly INSIDE: "inside";
|
|
2406
|
+
readonly LEFT: "left";
|
|
2407
|
+
readonly OUTSIDE: "outside";
|
|
2408
|
+
readonly RIGHT: "right";
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2411
|
+
export declare const RelativeVerticalPosition: {
|
|
2412
|
+
readonly CENTER: "center";
|
|
2413
|
+
readonly INSIDE: "inside";
|
|
2414
|
+
readonly BOTTOM: "bottom";
|
|
2415
|
+
readonly OUTSIDE: "outside";
|
|
2416
|
+
readonly INLINE: "inline";
|
|
2417
|
+
readonly TOP: "top";
|
|
2418
|
+
};
|
|
2419
|
+
|
|
2420
|
+
export declare class Run extends XmlComponent {
|
|
2421
|
+
protected readonly properties: RunProperties;
|
|
2422
|
+
constructor(options: IRunOptions);
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
export declare class RunFonts extends XmlComponent {
|
|
2426
|
+
constructor(name: string, hint?: string);
|
|
2427
|
+
constructor(attrs: string | IFontAttributesProperties);
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
export declare class RunProperties extends IgnoreIfEmptyXmlComponent {
|
|
2431
|
+
constructor(options?: IRunPropertiesOptions);
|
|
2432
|
+
push(item: XmlComponent): void;
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
export declare class RunPropertiesChange extends XmlComponent {
|
|
2436
|
+
constructor(options: IRunPropertiesChangeOptions);
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
export declare class RunPropertiesDefaults extends XmlComponent {
|
|
2440
|
+
constructor(options?: IRunStylePropertiesOptions);
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
declare const SchemeColor: {
|
|
2444
|
+
readonly BG1: "bg1";
|
|
2445
|
+
readonly TX1: "tx1";
|
|
2446
|
+
readonly BG2: "bg2";
|
|
2447
|
+
readonly TX2: "tx2";
|
|
2448
|
+
readonly ACCENT1: "accent1";
|
|
2449
|
+
readonly ACCENT2: "accent2";
|
|
2450
|
+
readonly ACCENT3: "accent3";
|
|
2451
|
+
readonly ACCENT4: "accent4";
|
|
2452
|
+
readonly ACCENT5: "accent5";
|
|
2453
|
+
readonly ACCENT6: "accent6";
|
|
2454
|
+
readonly HLINK: "hlink";
|
|
2455
|
+
readonly FOLHLINK: "folHlink";
|
|
2456
|
+
readonly DK1: "dk1";
|
|
2457
|
+
readonly LT1: "lt1";
|
|
2458
|
+
readonly DK2: "dk2";
|
|
2459
|
+
readonly LT2: "lt2";
|
|
2460
|
+
readonly PHCLR: "phClr";
|
|
2461
|
+
};
|
|
2462
|
+
|
|
2463
|
+
export declare const sectionMarginDefaults: {
|
|
2464
|
+
TOP: number;
|
|
2465
|
+
RIGHT: number;
|
|
2466
|
+
BOTTOM: number;
|
|
2467
|
+
LEFT: number;
|
|
2468
|
+
HEADER: number;
|
|
2469
|
+
FOOTER: number;
|
|
2470
|
+
GUTTER: number;
|
|
2471
|
+
};
|
|
2472
|
+
|
|
2473
|
+
export declare const sectionPageSizeDefaults: {
|
|
2474
|
+
WIDTH: number;
|
|
2475
|
+
HEIGHT: number;
|
|
2476
|
+
ORIENTATION: "portrait";
|
|
2477
|
+
};
|
|
2478
|
+
|
|
2479
|
+
export declare class SectionProperties extends XmlComponent {
|
|
2480
|
+
constructor({ page: { size: { width, height, orientation, }, margin: { top, right, bottom, left, header, footer, gutter, }, pageNumbers, borders, textDirection, }, grid: { linePitch, charSpace, type: gridType }, headerWrapperGroup, footerWrapperGroup, lineNumbers, titlePage, verticalAlign, column, type, }?: ISectionPropertiesOptions);
|
|
2481
|
+
private addHeaderFooterGroup;
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
export declare const SectionType: {
|
|
2485
|
+
readonly NEXT_PAGE: "nextPage";
|
|
2486
|
+
readonly NEXT_COLUMN: "nextColumn";
|
|
2487
|
+
readonly CONTINUOUS: "continuous";
|
|
2488
|
+
readonly EVEN_PAGE: "evenPage";
|
|
2489
|
+
readonly ODD_PAGE: "oddPage";
|
|
2490
|
+
};
|
|
2491
|
+
|
|
2492
|
+
export declare class SectionTypeAttributes extends XmlAttributeComponent<{
|
|
2493
|
+
readonly val: (typeof SectionType)[keyof typeof SectionType];
|
|
2494
|
+
}> {
|
|
2495
|
+
protected readonly xmlKeys: {
|
|
2496
|
+
val: string;
|
|
2497
|
+
};
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
declare class Separate extends XmlComponent {
|
|
2501
|
+
constructor(dirty?: boolean);
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
export declare class Separator extends EmptyElement {
|
|
2505
|
+
constructor();
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
export declare class SequentialIdentifier extends Run {
|
|
2509
|
+
constructor(identifier: string);
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
declare class Settings extends XmlComponent {
|
|
2513
|
+
constructor(options: ISettingsOptions);
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
export declare class Shading extends XmlComponent {
|
|
2517
|
+
constructor({ fill, color, type }: IShadingAttributesProperties);
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
export declare const ShadingType: {
|
|
2521
|
+
readonly CLEAR: "clear";
|
|
2522
|
+
readonly DIAGONAL_CROSS: "diagCross";
|
|
2523
|
+
readonly DIAGONAL_STRIPE: "diagStripe";
|
|
2524
|
+
readonly HORIZONTAL_CROSS: "horzCross";
|
|
2525
|
+
readonly HORIZONTAL_STRIPE: "horzStripe";
|
|
2526
|
+
readonly NIL: "nil";
|
|
2527
|
+
readonly PERCENT_5: "pct5";
|
|
2528
|
+
readonly PERCENT_10: "pct10";
|
|
2529
|
+
readonly PERCENT_12: "pct12";
|
|
2530
|
+
readonly PERCENT_15: "pct15";
|
|
2531
|
+
readonly PERCENT_20: "pct20";
|
|
2532
|
+
readonly PERCENT_25: "pct25";
|
|
2533
|
+
readonly PERCENT_30: "pct30";
|
|
2534
|
+
readonly PERCENT_35: "pct35";
|
|
2535
|
+
readonly PERCENT_37: "pct37";
|
|
2536
|
+
readonly PERCENT_40: "pct40";
|
|
2537
|
+
readonly PERCENT_45: "pct45";
|
|
2538
|
+
readonly PERCENT_50: "pct50";
|
|
2539
|
+
readonly PERCENT_55: "pct55";
|
|
2540
|
+
readonly PERCENT_60: "pct60";
|
|
2541
|
+
readonly PERCENT_62: "pct62";
|
|
2542
|
+
readonly PERCENT_65: "pct65";
|
|
2543
|
+
readonly PERCENT_70: "pct70";
|
|
2544
|
+
readonly PERCENT_75: "pct75";
|
|
2545
|
+
readonly PERCENT_80: "pct80";
|
|
2546
|
+
readonly PERCENT_85: "pct85";
|
|
2547
|
+
readonly PERCENT_87: "pct87";
|
|
2548
|
+
readonly PERCENT_90: "pct90";
|
|
2549
|
+
readonly PERCENT_95: "pct95";
|
|
2550
|
+
readonly REVERSE_DIAGONAL_STRIPE: "reverseDiagStripe";
|
|
2551
|
+
readonly SOLID: "solid";
|
|
2552
|
+
readonly THIN_DIAGONAL_CROSS: "thinDiagCross";
|
|
2553
|
+
readonly THIN_DIAGONAL_STRIPE: "thinDiagStripe";
|
|
2554
|
+
readonly THIN_HORIZONTAL_CROSS: "thinHorzCross";
|
|
2555
|
+
readonly THIN_REVERSE_DIAGONAL_STRIPE: "thinReverseDiagStripe";
|
|
2556
|
+
readonly THIN_VERTICAL_STRIPE: "thinVertStripe";
|
|
2557
|
+
readonly VERTICAL_STRIPE: "vertStripe";
|
|
2558
|
+
};
|
|
2559
|
+
|
|
2560
|
+
export declare const shortHexNumber: (val: string) => string;
|
|
2561
|
+
|
|
2562
|
+
export declare const signedHpsMeasureValue: (val: UniversalMeasure | number) => string | number;
|
|
2563
|
+
|
|
2564
|
+
export declare const signedTwipsMeasureValue: (val: UniversalMeasure | number) => UniversalMeasure | number;
|
|
2565
|
+
|
|
2566
|
+
export declare class SimpleField extends XmlComponent {
|
|
2567
|
+
constructor(instruction: string, cachedValue?: string);
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
export declare class SimpleMailMergeField extends SimpleField {
|
|
2571
|
+
constructor(fieldName: string);
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
export declare class SimplePos extends XmlComponent {
|
|
2575
|
+
constructor();
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
export declare class SoftHyphen extends EmptyElement {
|
|
2579
|
+
constructor();
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
export declare const SpaceType: {
|
|
2583
|
+
readonly DEFAULT: "default";
|
|
2584
|
+
readonly PRESERVE: "preserve";
|
|
2585
|
+
};
|
|
2586
|
+
|
|
2587
|
+
export declare class Spacing extends XmlComponent {
|
|
2588
|
+
constructor(options: ISpacingProperties);
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
export declare class StringContainer extends XmlComponent {
|
|
2592
|
+
constructor(name: string, val: string);
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
export declare class StringEnumValueElement<T extends string> extends XmlComponent {
|
|
2596
|
+
constructor(name: string, val: T);
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
export declare class StringValueElement extends XmlComponent {
|
|
2600
|
+
constructor(name: string, val: string);
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
export declare class Style extends XmlComponent {
|
|
2604
|
+
constructor(styleId: string);
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
declare class Style_2 extends XmlComponent {
|
|
2608
|
+
constructor(attributes: IStyleAttributes, options: IStyleOptions);
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
export declare class StyleForCharacter extends Style_2 {
|
|
2612
|
+
private readonly runProperties;
|
|
2613
|
+
constructor(options: ICharacterStyleOptions);
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
export declare class StyleForParagraph extends Style_2 {
|
|
2617
|
+
private readonly paragraphProperties;
|
|
2618
|
+
private readonly runProperties;
|
|
2619
|
+
constructor(options: IParagraphStyleOptions);
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
export declare class StyleLevel {
|
|
2623
|
+
readonly styleName: string;
|
|
2624
|
+
readonly level: number;
|
|
2625
|
+
constructor(styleName: string, level: number);
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
export declare class Styles extends XmlComponent {
|
|
2629
|
+
constructor(options: IStylesOptions);
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
declare type SvgMediaData = {
|
|
2633
|
+
readonly type: "svg";
|
|
2634
|
+
readonly fallback: RegularMediaData & CoreMediaData;
|
|
2635
|
+
};
|
|
2636
|
+
|
|
2637
|
+
declare type SvgMediaOptions = {
|
|
2638
|
+
readonly type: "svg";
|
|
2639
|
+
readonly data: Buffer | string | Uint8Array | ArrayBuffer;
|
|
2640
|
+
readonly fallback: RegularImageOptions;
|
|
2641
|
+
};
|
|
2642
|
+
|
|
2643
|
+
export declare class SymbolRun extends Run {
|
|
2644
|
+
constructor(options: ISymbolRunOptions | string);
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
export declare class Tab extends EmptyElement {
|
|
2648
|
+
constructor();
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
export declare class TabAttributes extends XmlAttributeComponent<{
|
|
2652
|
+
readonly val: (typeof TabStopType)[keyof typeof TabStopType];
|
|
2653
|
+
readonly pos: string | number;
|
|
2654
|
+
readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
|
|
2655
|
+
}> {
|
|
2656
|
+
protected readonly xmlKeys: {
|
|
2657
|
+
val: string;
|
|
2658
|
+
pos: string;
|
|
2659
|
+
leader: string;
|
|
2660
|
+
};
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
export declare class Table extends FileChild {
|
|
2664
|
+
constructor({ rows, width, columnWidths, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, }: ITableOptions);
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2667
|
+
export declare const TableAnchorType: {
|
|
2668
|
+
readonly MARGIN: "margin";
|
|
2669
|
+
readonly PAGE: "page";
|
|
2670
|
+
readonly TEXT: "text";
|
|
2671
|
+
};
|
|
2672
|
+
|
|
2673
|
+
export declare class TableBorders extends XmlComponent {
|
|
2674
|
+
static readonly NONE: {
|
|
2675
|
+
top: {
|
|
2676
|
+
style: "none";
|
|
2677
|
+
size: number;
|
|
2678
|
+
color: string;
|
|
2679
|
+
};
|
|
2680
|
+
bottom: {
|
|
2681
|
+
style: "none";
|
|
2682
|
+
size: number;
|
|
2683
|
+
color: string;
|
|
2684
|
+
};
|
|
2685
|
+
left: {
|
|
2686
|
+
style: "none";
|
|
2687
|
+
size: number;
|
|
2688
|
+
color: string;
|
|
2689
|
+
};
|
|
2690
|
+
right: {
|
|
2691
|
+
style: "none";
|
|
2692
|
+
size: number;
|
|
2693
|
+
color: string;
|
|
2694
|
+
};
|
|
2695
|
+
insideHorizontal: {
|
|
2696
|
+
style: "none";
|
|
2697
|
+
size: number;
|
|
2698
|
+
color: string;
|
|
2699
|
+
};
|
|
2700
|
+
insideVertical: {
|
|
2701
|
+
style: "none";
|
|
2702
|
+
size: number;
|
|
2703
|
+
color: string;
|
|
2704
|
+
};
|
|
2705
|
+
};
|
|
2706
|
+
constructor(options: ITableBordersOptions);
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
export declare class TableCell extends XmlComponent {
|
|
2710
|
+
readonly options: ITableCellOptions;
|
|
2711
|
+
constructor(options: ITableCellOptions);
|
|
2712
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
export declare class TableCellBorders extends IgnoreIfEmptyXmlComponent {
|
|
2716
|
+
constructor(options: ITableCellBorders);
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
export declare class TableFloatProperties extends XmlComponent {
|
|
2720
|
+
constructor({ horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText, overlap, }: ITableFloatOptions);
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
export declare class TableLayout extends XmlComponent {
|
|
2724
|
+
constructor(type: (typeof TableLayoutType)[keyof typeof TableLayoutType]);
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
export declare const TableLayoutType: {
|
|
2728
|
+
readonly AUTOFIT: "autofit";
|
|
2729
|
+
readonly FIXED: "fixed";
|
|
2730
|
+
};
|
|
2731
|
+
|
|
2732
|
+
export declare class TableOfContents extends FileChild {
|
|
2733
|
+
constructor(alias?: string, properties?: ITableOfContentsOptions);
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
export declare class TableProperties extends IgnoreIfEmptyXmlComponent {
|
|
2737
|
+
constructor(options: ITablePropertiesOptions);
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
export declare class TableRow extends XmlComponent {
|
|
2741
|
+
private readonly options;
|
|
2742
|
+
constructor(options: ITableRowOptions);
|
|
2743
|
+
get CellCount(): number;
|
|
2744
|
+
get cells(): readonly TableCell[];
|
|
2745
|
+
addCellToIndex(cell: TableCell, index: number): void;
|
|
2746
|
+
addCellToColumnIndex(cell: TableCell, columnIndex: number): void;
|
|
2747
|
+
rootIndexToColumnIndex(rootIndex: number): number;
|
|
2748
|
+
columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
export declare class TableRowHeight extends XmlComponent {
|
|
2752
|
+
constructor(value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]);
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
export declare class TableRowHeightAttributes extends XmlAttributeComponent<{
|
|
2756
|
+
readonly value: number | string;
|
|
2757
|
+
readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
|
|
2758
|
+
}> {
|
|
2759
|
+
protected readonly xmlKeys: {
|
|
2760
|
+
value: string;
|
|
2761
|
+
rule: string;
|
|
2762
|
+
};
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
export declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
|
|
2766
|
+
constructor(options: ITableRowPropertiesOptions);
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
export declare class TableWidthElement extends XmlComponent {
|
|
2770
|
+
constructor(name: string, { type, size }: ITableWidthProperties);
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
export declare class TabStop extends XmlComponent {
|
|
2774
|
+
constructor(tabDefinitions: readonly TabStopDefinition[]);
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
export declare interface TabStopDefinition {
|
|
2778
|
+
readonly type: (typeof TabStopType)[keyof typeof TabStopType];
|
|
2779
|
+
readonly position: number | (typeof TabStopPosition)[keyof typeof TabStopPosition];
|
|
2780
|
+
readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
export declare class TabStopItem extends XmlComponent {
|
|
2784
|
+
constructor({ type, position, leader }: TabStopDefinition);
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
export declare const TabStopPosition: {
|
|
2788
|
+
readonly MAX: 9026;
|
|
2789
|
+
};
|
|
2790
|
+
|
|
2791
|
+
export declare const TabStopType: {
|
|
2792
|
+
readonly LEFT: "left";
|
|
2793
|
+
readonly RIGHT: "right";
|
|
2794
|
+
readonly CENTER: "center";
|
|
2795
|
+
readonly BAR: "bar";
|
|
2796
|
+
readonly CLEAR: "clear";
|
|
2797
|
+
readonly DECIMAL: "decimal";
|
|
2798
|
+
readonly END: "end";
|
|
2799
|
+
readonly NUM: "num";
|
|
2800
|
+
readonly START: "start";
|
|
2801
|
+
};
|
|
2802
|
+
|
|
2803
|
+
declare const TargetModeType: {
|
|
2804
|
+
readonly EXTERNAL: "External";
|
|
2805
|
+
};
|
|
2806
|
+
|
|
2807
|
+
export declare class TDirection extends XmlComponent {
|
|
2808
|
+
constructor(value: (typeof TextDirection)[keyof typeof TextDirection]);
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
export declare const TextDirection: {
|
|
2812
|
+
readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
|
|
2813
|
+
readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
|
|
2814
|
+
readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
|
|
2815
|
+
};
|
|
2816
|
+
|
|
2817
|
+
export declare const TextEffect: {
|
|
2818
|
+
readonly BLINK_BACKGROUND: "blinkBackground";
|
|
2819
|
+
readonly LIGHTS: "lights";
|
|
2820
|
+
readonly ANTS_BLACK: "antsBlack";
|
|
2821
|
+
readonly ANTS_RED: "antsRed";
|
|
2822
|
+
readonly SHIMMER: "shimmer";
|
|
2823
|
+
readonly SPARKLE: "sparkle";
|
|
2824
|
+
readonly NONE: "none";
|
|
2825
|
+
};
|
|
2826
|
+
|
|
2827
|
+
export declare class TextRun extends Run {
|
|
2828
|
+
constructor(options: IRunOptions | string);
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
export declare const TextWrappingSide: {
|
|
2832
|
+
readonly BOTH_SIDES: "bothSides";
|
|
2833
|
+
readonly LEFT: "left";
|
|
2834
|
+
readonly RIGHT: "right";
|
|
2835
|
+
readonly LARGEST: "largest";
|
|
2836
|
+
};
|
|
2837
|
+
|
|
2838
|
+
export declare const TextWrappingType: {
|
|
2839
|
+
readonly NONE: 0;
|
|
2840
|
+
readonly SQUARE: 1;
|
|
2841
|
+
readonly TIGHT: 2;
|
|
2842
|
+
readonly TOP_AND_BOTTOM: 3;
|
|
2843
|
+
};
|
|
2844
|
+
|
|
2845
|
+
export declare class ThematicBreak extends XmlComponent {
|
|
2846
|
+
constructor();
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
export declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
|
|
2850
|
+
|
|
2851
|
+
export declare class Type extends XmlComponent {
|
|
2852
|
+
constructor(value: (typeof SectionType)[keyof typeof SectionType]);
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
export declare const uCharHexNumber: (val: string) => string;
|
|
2856
|
+
|
|
2857
|
+
export declare class Underline extends XmlComponent {
|
|
2858
|
+
constructor(underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string);
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
export declare const UnderlineType: {
|
|
2862
|
+
readonly SINGLE: "single";
|
|
2863
|
+
readonly WORDS: "words";
|
|
2864
|
+
readonly DOUBLE: "double";
|
|
2865
|
+
readonly THICK: "thick";
|
|
2866
|
+
readonly DOTTED: "dotted";
|
|
2867
|
+
readonly DOTTEDHEAVY: "dottedHeavy";
|
|
2868
|
+
readonly DASH: "dash";
|
|
2869
|
+
readonly DASHEDHEAVY: "dashedHeavy";
|
|
2870
|
+
readonly DASHLONG: "dashLong";
|
|
2871
|
+
readonly DASHLONGHEAVY: "dashLongHeavy";
|
|
2872
|
+
readonly DOTDASH: "dotDash";
|
|
2873
|
+
readonly DASHDOTHEAVY: "dashDotHeavy";
|
|
2874
|
+
readonly DOTDOTDASH: "dotDotDash";
|
|
2875
|
+
readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
|
|
2876
|
+
readonly WAVE: "wave";
|
|
2877
|
+
readonly WAVYHEAVY: "wavyHeavy";
|
|
2878
|
+
readonly WAVYDOUBLE: "wavyDouble";
|
|
2879
|
+
readonly NONE: "none";
|
|
2880
|
+
};
|
|
2881
|
+
|
|
2882
|
+
export declare const uniqueId: () => string;
|
|
2883
|
+
|
|
2884
|
+
export declare type UniqueNumericIdCreator = () => number;
|
|
2885
|
+
|
|
2886
|
+
export declare const uniqueNumericIdCreator: (initial?: number) => UniqueNumericIdCreator;
|
|
2887
|
+
|
|
2888
|
+
export declare const uniqueUuid: () => string;
|
|
2889
|
+
|
|
2890
|
+
export declare type UniversalMeasure = `${"-" | ""}${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
|
|
2891
|
+
|
|
2892
|
+
export declare const universalMeasureValue: (val: UniversalMeasure) => UniversalMeasure;
|
|
2893
|
+
|
|
2894
|
+
export declare const unsignedDecimalNumber: (val: number) => number;
|
|
2895
|
+
|
|
2896
|
+
export declare const VerticalAlign: {
|
|
2897
|
+
readonly BOTTOM: "bottom";
|
|
2898
|
+
readonly CENTER: "center";
|
|
2899
|
+
readonly TOP: "top";
|
|
2900
|
+
};
|
|
2901
|
+
|
|
2902
|
+
export declare class VerticalAlignAttributes extends XmlAttributeComponent<{
|
|
2903
|
+
readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
|
|
2904
|
+
}> {
|
|
2905
|
+
protected readonly xmlKeys: {
|
|
2906
|
+
verticalAlign: string;
|
|
2907
|
+
};
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
export declare class VerticalAlignElement extends XmlComponent {
|
|
2911
|
+
constructor(value: (typeof VerticalAlign)[keyof typeof VerticalAlign]);
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
export declare class VerticalMerge extends XmlComponent {
|
|
2915
|
+
constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
export declare const VerticalMergeType: {
|
|
2919
|
+
readonly CONTINUE: "continue";
|
|
2920
|
+
readonly RESTART: "restart";
|
|
2921
|
+
};
|
|
2922
|
+
|
|
2923
|
+
export declare class VerticalPosition extends XmlComponent {
|
|
2924
|
+
constructor(verticalPosition: IVerticalPositionOptions);
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
export declare const VerticalPositionAlign: {
|
|
2928
|
+
readonly BOTTOM: "bottom";
|
|
2929
|
+
readonly CENTER: "center";
|
|
2930
|
+
readonly INSIDE: "inside";
|
|
2931
|
+
readonly OUTSIDE: "outside";
|
|
2932
|
+
readonly TOP: "top";
|
|
2933
|
+
};
|
|
2934
|
+
|
|
2935
|
+
export declare const VerticalPositionRelativeFrom: {
|
|
2936
|
+
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
2937
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
2938
|
+
readonly LINE: "line";
|
|
2939
|
+
readonly MARGIN: "margin";
|
|
2940
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
2941
|
+
readonly PAGE: "page";
|
|
2942
|
+
readonly PARAGRAPH: "paragraph";
|
|
2943
|
+
readonly TOP_MARGIN: "topMargin";
|
|
2944
|
+
};
|
|
2945
|
+
|
|
2946
|
+
export declare const WidthType: {
|
|
2947
|
+
readonly AUTO: "auto";
|
|
2948
|
+
readonly DXA: "dxa";
|
|
2949
|
+
readonly NIL: "nil";
|
|
2950
|
+
readonly PERCENTAGE: "pct";
|
|
2951
|
+
};
|
|
2952
|
+
|
|
2953
|
+
export declare const WORKAROUND2 = "";
|
|
2954
|
+
|
|
2955
|
+
export declare const WORKAROUND3 = "";
|
|
2956
|
+
|
|
2957
|
+
export declare const WORKAROUND4 = "";
|
|
2958
|
+
|
|
2959
|
+
export declare class WrapNone extends XmlComponent {
|
|
2960
|
+
constructor();
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2963
|
+
export declare class WrapSquare extends XmlComponent {
|
|
2964
|
+
constructor(textWrapping: ITextWrapping, margins?: IMargins);
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
export declare class WrapTight extends XmlComponent {
|
|
2968
|
+
constructor(margins?: IMargins);
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
export declare class WrapTopAndBottom extends XmlComponent {
|
|
2972
|
+
constructor(margins?: IMargins);
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
export declare abstract class XmlAttributeComponent<T extends object> extends BaseXmlComponent {
|
|
2976
|
+
private readonly root;
|
|
2977
|
+
protected readonly xmlKeys?: AttributeMap<T>;
|
|
2978
|
+
constructor(root: T);
|
|
2979
|
+
prepForXml(_: IContext): IXmlableObject;
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
export declare abstract class XmlComponent extends BaseXmlComponent {
|
|
2983
|
+
protected root: (BaseXmlComponent | string | any)[];
|
|
2984
|
+
constructor(rootKey: string);
|
|
2985
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
2986
|
+
addChildElement(child: XmlComponent | string): XmlComponent;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
export declare class YearLong extends EmptyElement {
|
|
2990
|
+
constructor();
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
export declare class YearShort extends EmptyElement {
|
|
2994
|
+
constructor();
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
export { }
|