docx 9.6.1 → 9.7.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/dist/export/formatter.d.ts +4 -0
- package/dist/export/formatter.spec.d.ts +1 -0
- package/dist/export/index.d.ts +1 -0
- package/dist/export/packer/image-replacer.d.ts +5 -0
- package/dist/export/packer/image-replacer.spec.d.ts +1 -0
- package/dist/export/packer/next-compiler.d.ts +15 -0
- package/dist/export/packer/next-compiler.spec.d.ts +1 -0
- package/dist/export/packer/numbering-replacer.d.ts +4 -0
- package/dist/export/packer/packer.d.ts +20 -0
- package/dist/export/packer/packer.spec.d.ts +1 -0
- package/dist/file/app-properties/app-properties-attributes.d.ts +10 -0
- package/dist/file/app-properties/app-properties.d.ts +4 -0
- package/dist/file/border/border.d.ts +37 -0
- package/dist/file/border/border.spec.d.ts +1 -0
- package/dist/file/border/index.d.ts +1 -0
- package/dist/file/checkbox/checkbox-symbol.d.ts +4 -0
- package/dist/file/checkbox/checkbox-util.d.ts +17 -0
- package/dist/file/checkbox/checkbox-util.spec.d.ts +1 -0
- package/dist/file/checkbox/checkbox.d.ts +8 -0
- package/dist/file/checkbox/checkbox.spec.d.ts +1 -0
- package/dist/file/checkbox/index.d.ts +3 -0
- package/dist/file/content-types/content-types-attributes.d.ts +8 -0
- package/dist/file/content-types/content-types.d.ts +7 -0
- package/dist/file/content-types/content-types.spec.d.ts +1 -0
- package/dist/file/content-types/default/default.d.ts +2 -0
- package/dist/file/content-types/override/override.d.ts +2 -0
- package/dist/file/core-properties/index.d.ts +1 -0
- package/dist/file/core-properties/properties.d.ts +46 -0
- package/dist/file/core-properties/properties.spec.d.ts +1 -0
- package/dist/file/custom-properties/custom-properties-attributes.d.ts +10 -0
- package/dist/file/custom-properties/custom-properties.d.ts +9 -0
- package/dist/file/custom-properties/custom-properties.spec.d.ts +1 -0
- package/dist/file/custom-properties/custom-property-attributes.d.ts +12 -0
- package/dist/file/custom-properties/custom-property.d.ts +11 -0
- package/dist/file/custom-properties/index.d.ts +2 -0
- package/dist/file/document/body/body.d.ts +10 -0
- package/dist/file/document/body/body.spec.d.ts +1 -0
- package/dist/file/document/body/index.d.ts +2 -0
- package/dist/file/document/body/section-properties/index.d.ts +2 -0
- package/dist/file/document/body/section-properties/properties/column.d.ts +9 -0
- package/dist/file/document/body/section-properties/properties/columns.d.ts +11 -0
- package/dist/file/document/body/section-properties/properties/columns.spec.d.ts +1 -0
- package/dist/file/document/body/section-properties/properties/doc-grid.d.ts +13 -0
- package/dist/file/document/body/section-properties/properties/doc-grid.spec.d.ts +1 -0
- package/dist/file/document/body/section-properties/properties/header-footer-reference.d.ts +15 -0
- package/dist/file/document/body/section-properties/properties/header-footer-reference.spec.d.ts +1 -0
- package/dist/file/document/body/section-properties/properties/index.d.ts +12 -0
- package/dist/file/document/body/section-properties/properties/line-number.d.ts +14 -0
- package/dist/file/document/body/section-properties/properties/line-number.spec.d.ts +1 -0
- package/dist/file/document/body/section-properties/properties/page-borders.d.ts +30 -0
- package/dist/file/document/body/section-properties/properties/page-borders.spec.d.ts +1 -0
- package/dist/file/document/body/section-properties/properties/page-margin.d.ts +12 -0
- package/dist/file/document/body/section-properties/properties/page-number.d.ts +15 -0
- package/dist/file/document/body/section-properties/properties/page-size.d.ts +13 -0
- package/dist/file/document/body/section-properties/properties/page-size.spec.d.ts +1 -0
- package/dist/file/document/body/section-properties/properties/page-text-direction.d.ts +8 -0
- package/dist/file/document/body/section-properties/properties/page-text-direction.spec.d.ts +1 -0
- package/dist/file/document/body/section-properties/properties/section-type.d.ts +9 -0
- package/dist/file/document/body/section-properties/properties/section-type.spec.d.ts +1 -0
- package/dist/file/document/body/section-properties/section-properties.d.ts +61 -0
- package/dist/file/document/body/section-properties/section-properties.spec.d.ts +1 -0
- package/dist/file/document/document-attributes.d.ts +48 -0
- package/dist/file/document/document-background/document-background.d.ts +23 -0
- package/dist/file/document/document-background/document-background.spec.d.ts +1 -0
- package/dist/file/document/document-background/index.d.ts +1 -0
- package/dist/file/document/document.d.ts +15 -0
- package/dist/file/document/document.spec.d.ts +1 -0
- package/dist/file/document/index.d.ts +4 -0
- package/dist/file/document-wrapper.d.ts +18 -0
- package/dist/file/document-wrapper.spec.d.ts +1 -0
- package/dist/file/drawing/anchor/anchor-attributes.d.ts +24 -0
- package/dist/file/drawing/anchor/anchor.d.ts +10 -0
- package/dist/file/drawing/anchor/anchor.spec.d.ts +1 -0
- package/dist/file/drawing/anchor/index.d.ts +2 -0
- package/dist/file/drawing/doc-properties/doc-properties-children.d.ts +3 -0
- package/dist/file/drawing/doc-properties/doc-properties-children.spec.d.ts +1 -0
- package/dist/file/drawing/doc-properties/doc-properties.d.ts +12 -0
- package/dist/file/drawing/doc-properties/doc-properties.spec.d.ts +1 -0
- package/dist/file/drawing/drawing.d.ts +21 -0
- package/dist/file/drawing/drawing.spec.d.ts +1 -0
- package/dist/file/drawing/effect-extent/effect-extent.d.ts +8 -0
- package/dist/file/drawing/extent/extent.d.ts +7 -0
- package/dist/file/drawing/floating/align.d.ts +3 -0
- package/dist/file/drawing/floating/align.spec.d.ts +1 -0
- package/dist/file/drawing/floating/floating-position.d.ts +49 -0
- package/dist/file/drawing/floating/horizontal-position.d.ts +3 -0
- package/dist/file/drawing/floating/horizontal-position.spec.d.ts +1 -0
- package/dist/file/drawing/floating/index.d.ts +4 -0
- package/dist/file/drawing/floating/position-offset.d.ts +2 -0
- package/dist/file/drawing/floating/position-offset.spec.d.ts +1 -0
- package/dist/file/drawing/floating/simple-pos.d.ts +2 -0
- package/dist/file/drawing/floating/simple-pos.spec.d.ts +1 -0
- package/dist/file/drawing/floating/vertical-position.d.ts +3 -0
- package/dist/file/drawing/floating/vertical-position.spec.d.ts +1 -0
- package/dist/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-lock-attributes.d.ts +10 -0
- package/dist/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-locks.d.ts +4 -0
- package/dist/file/drawing/graphic-frame/graphic-frame-properties.d.ts +2 -0
- package/dist/file/drawing/index.d.ts +3 -0
- package/dist/file/drawing/inline/graphic/graphic-data/graphic-data-attribute.d.ts +8 -0
- package/dist/file/drawing/inline/graphic/graphic-data/graphic-data.d.ts +12 -0
- package/dist/file/drawing/inline/graphic/graphic-data/index.d.ts +1 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/blip/blip-extentions.d.ts +3 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/blip/blip-fill.d.ts +5 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/blip/blip.d.ts +3 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts +4 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/blip/stretch.d.ts +4 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/index.d.ts +1 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/child-non-visual-pic-properties.d.ts +4 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/pic-locks/pic-locks-attributes.d.ts +10 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/pic-locks/pic-locks.d.ts +4 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-pic-properties.d.ts +4 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-properties/non-visual-properties-attributes.d.ts +12 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-properties/non-visual-properties.d.ts +5 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/pic-attributes.d.ts +8 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/pic.d.ts +10 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/extents/extents-attributes.d.ts +10 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/extents/extents.d.ts +5 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/form.d.ts +18 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/index.d.ts +1 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off-attributes.d.ts +10 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off.d.ts +4 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form.spec.d.ts +1 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.d.ts +2 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.spec.d.ts +1 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts +42 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.spec.d.ts +1 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/rgb-color.d.ts +6 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/scheme-color.d.ts +25 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts +12 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.spec.d.ts +1 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/adjustment-values/adjustment-values.d.ts +4 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/preset-geometry-attributes.d.ts +8 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/preset-geometry.d.ts +4 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/shape-properties-attributes.d.ts +8 -0
- package/dist/file/drawing/inline/graphic/graphic-data/pic/shape-properties/shape-properties.d.ts +13 -0
- package/dist/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts +10 -0
- package/dist/file/drawing/inline/graphic/graphic-data/wps/body-properties.d.ts +19 -0
- package/dist/file/drawing/inline/graphic/graphic-data/wps/body-properties.spec.d.ts +1 -0
- package/dist/file/drawing/inline/graphic/graphic-data/wps/index.d.ts +2 -0
- package/dist/file/drawing/inline/graphic/graphic-data/wps/non-visual-shape-properties.d.ts +5 -0
- package/dist/file/drawing/inline/graphic/graphic-data/wps/text-box-content.d.ts +3 -0
- package/dist/file/drawing/inline/graphic/graphic-data/wps/wps-shape.d.ts +18 -0
- package/dist/file/drawing/inline/graphic/graphic-data/wps/wps-text-box.d.ts +3 -0
- package/dist/file/drawing/inline/graphic/graphic.d.ts +13 -0
- package/dist/file/drawing/inline/graphic/index.d.ts +1 -0
- package/dist/file/drawing/inline/index.d.ts +1 -0
- package/dist/file/drawing/inline/inline.d.ts +14 -0
- package/dist/file/drawing/inline/inline.spec.d.ts +1 -0
- package/dist/file/drawing/text-wrap/index.d.ts +5 -0
- package/dist/file/drawing/text-wrap/text-wrapping.d.ts +18 -0
- package/dist/file/drawing/text-wrap/wrap-none.d.ts +2 -0
- package/dist/file/drawing/text-wrap/wrap-square.d.ts +4 -0
- package/dist/file/drawing/text-wrap/wrap-tight.d.ts +3 -0
- package/dist/file/drawing/text-wrap/wrap-top-and-bottom.d.ts +3 -0
- package/dist/file/endnotes/endnote/endnote-attributes.d.ts +10 -0
- package/dist/file/endnotes/endnote/endnote.d.ts +14 -0
- package/dist/file/endnotes/endnote/endnote.spec.d.ts +1 -0
- package/dist/file/endnotes/endnote/index.d.ts +1 -0
- package/dist/file/endnotes/endnote/run/endnote-ref-run.d.ts +4 -0
- package/dist/file/endnotes/endnote/run/index.d.ts +1 -0
- package/dist/file/endnotes/endnote/run/reference-run.d.ts +15 -0
- package/dist/file/endnotes/endnote/run/reference-run.spec.d.ts +1 -0
- package/dist/file/endnotes/endnotes-attributes.d.ts +40 -0
- package/dist/file/endnotes/endnotes.d.ts +6 -0
- package/dist/file/endnotes/endnotes.spec.d.ts +1 -0
- package/dist/file/endnotes/index.d.ts +2 -0
- package/dist/file/endnotes-wrapper.d.ts +10 -0
- package/dist/file/file-child.d.ts +4 -0
- package/dist/file/file.d.ts +78 -0
- package/dist/file/file.spec.d.ts +1 -0
- package/dist/file/fonts/create-regular-font.d.ts +8 -0
- package/dist/file/fonts/font-table.d.ts +9 -0
- package/dist/file/fonts/font-wrapper.d.ts +16 -0
- package/dist/file/fonts/font-wrapper.spec.d.ts +1 -0
- package/dist/file/fonts/font.d.ts +49 -0
- package/dist/file/fonts/font.spec.d.ts +1 -0
- package/dist/file/fonts/index.d.ts +1 -0
- package/dist/file/fonts/obfuscate-ttf-to-odttf.d.ts +1 -0
- package/dist/file/fonts/obsfuscate-ttf-to-odttf.spec.d.ts +1 -0
- package/dist/file/footer/footer-attributes.d.ts +51 -0
- package/dist/file/footer/footer.d.ts +9 -0
- package/dist/file/footer/footer.spec.d.ts +1 -0
- package/dist/file/footer/index.d.ts +1 -0
- package/dist/file/footer-wrapper.d.ts +23 -0
- package/dist/file/footer-wrapper.spec.d.ts +1 -0
- package/dist/file/footnotes/footnote/footnote-attributes.d.ts +10 -0
- package/dist/file/footnotes/footnote/footnote.d.ts +14 -0
- package/dist/file/footnotes/footnote/footnote.spec.d.ts +1 -0
- package/dist/file/footnotes/footnote/index.d.ts +1 -0
- package/dist/file/footnotes/footnote/run/continuation-seperator-run.d.ts +4 -0
- package/dist/file/footnotes/footnote/run/continuation-seperator.d.ts +4 -0
- package/dist/file/footnotes/footnote/run/footnote-ref-run.d.ts +4 -0
- package/dist/file/footnotes/footnote/run/footnote-ref.d.ts +4 -0
- package/dist/file/footnotes/footnote/run/index.d.ts +1 -0
- package/dist/file/footnotes/footnote/run/reference-run.d.ts +15 -0
- package/dist/file/footnotes/footnote/run/seperator-run.d.ts +4 -0
- package/dist/file/footnotes/footnote/run/seperator.d.ts +4 -0
- package/dist/file/footnotes/footnotes-attributes.d.ts +40 -0
- package/dist/file/footnotes/footnotes.d.ts +6 -0
- package/dist/file/footnotes/index.d.ts +2 -0
- package/dist/file/footnotes-wrapper.d.ts +10 -0
- package/dist/file/footnotes-wrapper.spec.d.ts +1 -0
- package/dist/file/header/header-attributes.d.ts +73 -0
- package/dist/file/header/header.d.ts +9 -0
- package/dist/file/header/header.spec.d.ts +1 -0
- package/dist/file/header/index.d.ts +1 -0
- package/dist/file/header-wrapper.d.ts +23 -0
- package/dist/file/header-wrapper.spec.d.ts +1 -0
- package/dist/file/header.d.ts +13 -0
- package/dist/file/index.d.ts +25 -0
- package/dist/file/media/data.d.ts +59 -0
- package/dist/file/media/index.d.ts +2 -0
- package/dist/file/media/media.d.ts +20 -0
- package/dist/file/media/media.spec.d.ts +1 -0
- package/dist/file/numbering/abstract-numbering.d.ts +6 -0
- package/dist/file/numbering/abstract-numbering.spec.d.ts +1 -0
- package/dist/file/numbering/concrete-numbering.spec.d.ts +1 -0
- package/dist/file/numbering/index.d.ts +4 -0
- package/dist/file/numbering/level.d.ts +97 -0
- package/dist/file/numbering/level.spec.d.ts +1 -0
- package/dist/file/numbering/multi-level-type.d.ts +4 -0
- package/dist/file/numbering/num.d.ts +22 -0
- package/dist/file/numbering/numbering.d.ts +21 -0
- package/dist/file/numbering/numbering.spec.d.ts +1 -0
- package/dist/file/paragraph/formatting/alignment.d.ts +17 -0
- package/dist/file/paragraph/formatting/alignment.spec.d.ts +1 -0
- package/dist/file/paragraph/formatting/border.d.ts +15 -0
- package/dist/file/paragraph/formatting/border.spec.d.ts +1 -0
- package/dist/file/paragraph/formatting/break.d.ts +11 -0
- package/dist/file/paragraph/formatting/break.spec.d.ts +1 -0
- package/dist/file/paragraph/formatting/indent.d.ts +12 -0
- package/dist/file/paragraph/formatting/indent.spec.d.ts +1 -0
- package/dist/file/paragraph/formatting/index.d.ts +8 -0
- package/dist/file/paragraph/formatting/spacing.d.ts +16 -0
- package/dist/file/paragraph/formatting/spacing.spec.d.ts +1 -0
- package/dist/file/paragraph/formatting/style.d.ts +11 -0
- package/dist/file/paragraph/formatting/style.spec.d.ts +1 -0
- package/dist/file/paragraph/formatting/tab-stop.d.ts +29 -0
- package/dist/file/paragraph/formatting/tab-stop.spec.d.ts +1 -0
- package/dist/file/paragraph/formatting/unordered-list.d.ts +4 -0
- package/dist/file/paragraph/formatting/unordered-list.spec.d.ts +1 -0
- package/dist/file/paragraph/formatting/word-wrap.d.ts +2 -0
- package/dist/file/paragraph/formatting/word-wrap.spec.d.ts +1 -0
- package/dist/file/paragraph/frame/frame-properties.d.ts +55 -0
- package/dist/file/paragraph/frame/frame-properties.spec.d.ts +1 -0
- package/dist/file/paragraph/frame/index.d.ts +1 -0
- package/dist/file/paragraph/index.d.ts +7 -0
- package/dist/file/paragraph/links/bookmark-attributes.d.ts +17 -0
- package/dist/file/paragraph/links/bookmark.d.ts +19 -0
- package/dist/file/paragraph/links/bookmark.spec.d.ts +1 -0
- package/dist/file/paragraph/links/hyperlink-attributes.d.ts +13 -0
- package/dist/file/paragraph/links/hyperlink.d.ts +25 -0
- package/dist/file/paragraph/links/hyperlink.spec.d.ts +1 -0
- package/dist/file/paragraph/links/index.d.ts +5 -0
- package/dist/file/paragraph/links/numbered-item-ref.d.ts +14 -0
- package/dist/file/paragraph/links/numbered-item-ref.spec.d.ts +1 -0
- package/dist/file/paragraph/links/outline-level.d.ts +2 -0
- package/dist/file/paragraph/links/outline-level.spec.d.ts +1 -0
- package/dist/file/paragraph/links/pageref-field-instruction.d.ts +5 -0
- package/dist/file/paragraph/links/pageref-field-instruction.spec.d.ts +1 -0
- package/dist/file/paragraph/links/pageref.d.ts +8 -0
- package/dist/file/paragraph/links/pageref.spec.d.ts +1 -0
- package/dist/file/paragraph/math/bar/index.d.ts +2 -0
- package/dist/file/paragraph/math/bar/math-bar-pos.d.ts +6 -0
- package/dist/file/paragraph/math/bar/math-bar-properties.d.ts +4 -0
- package/dist/file/paragraph/math/bar/math-bar-properties.spec.d.ts +1 -0
- package/dist/file/paragraph/math/bar/math-bar.d.ts +8 -0
- package/dist/file/paragraph/math/bar/math-bar.spec.d.ts +1 -0
- package/dist/file/paragraph/math/brackets/index.d.ts +4 -0
- package/dist/file/paragraph/math/brackets/math-angled-brackets.d.ts +9 -0
- package/dist/file/paragraph/math/brackets/math-angled-brackets.spec.d.ts +1 -0
- package/dist/file/paragraph/math/brackets/math-beginning-character.d.ts +6 -0
- package/dist/file/paragraph/math/brackets/math-beginning-character.spec.d.ts +1 -0
- package/dist/file/paragraph/math/brackets/math-bracket-properties.d.ts +9 -0
- package/dist/file/paragraph/math/brackets/math-bracket-properties.spec.d.ts +1 -0
- package/dist/file/paragraph/math/brackets/math-curly-brackets.d.ts +7 -0
- package/dist/file/paragraph/math/brackets/math-curly-brackets.spec.d.ts +1 -0
- package/dist/file/paragraph/math/brackets/math-ending-char.d.ts +6 -0
- package/dist/file/paragraph/math/brackets/math-ending-character.spec.d.ts +1 -0
- package/dist/file/paragraph/math/brackets/math-round-brackets.d.ts +7 -0
- package/dist/file/paragraph/math/brackets/math-round-brackets.spec.d.ts +1 -0
- package/dist/file/paragraph/math/brackets/math-square-brackets.d.ts +7 -0
- package/dist/file/paragraph/math/brackets/math-square-brackets.spec.d.ts +1 -0
- package/dist/file/paragraph/math/fraction/index.d.ts +3 -0
- package/dist/file/paragraph/math/fraction/math-denominator.d.ts +5 -0
- package/dist/file/paragraph/math/fraction/math-denominator.spec.d.ts +1 -0
- package/dist/file/paragraph/math/fraction/math-fraction.d.ts +9 -0
- package/dist/file/paragraph/math/fraction/math-fraction.spec.d.ts +1 -0
- package/dist/file/paragraph/math/fraction/math-numerator.d.ts +5 -0
- package/dist/file/paragraph/math/fraction/math-numerator.spec.d.ts +1 -0
- package/dist/file/paragraph/math/function/index.d.ts +3 -0
- package/dist/file/paragraph/math/function/math-function-name.d.ts +5 -0
- package/dist/file/paragraph/math/function/math-function-name.spec.d.ts +1 -0
- package/dist/file/paragraph/math/function/math-function-properties.d.ts +4 -0
- package/dist/file/paragraph/math/function/math-function-properties.spec.d.ts +1 -0
- package/dist/file/paragraph/math/function/math-function.d.ts +9 -0
- package/dist/file/paragraph/math/function/math-function.spec.d.ts +1 -0
- package/dist/file/paragraph/math/index.d.ts +9 -0
- package/dist/file/paragraph/math/math-component.d.ts +9 -0
- package/dist/file/paragraph/math/math-run.d.ts +4 -0
- package/dist/file/paragraph/math/math-run.spec.d.ts +1 -0
- package/dist/file/paragraph/math/math-text.d.ts +4 -0
- package/dist/file/paragraph/math/math-text.spec.d.ts +1 -0
- package/dist/file/paragraph/math/math.d.ts +8 -0
- package/dist/file/paragraph/math/math.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/index.d.ts +11 -0
- package/dist/file/paragraph/math/n-ary/math-accent-character.d.ts +6 -0
- package/dist/file/paragraph/math/n-ary/math-accent-character.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-base.d.ts +7 -0
- package/dist/file/paragraph/math/n-ary/math-base.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-integral.d.ts +10 -0
- package/dist/file/paragraph/math/n-ary/math-integral.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-limit-location.d.ts +6 -0
- package/dist/file/paragraph/math/n-ary/math-limit-location.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-limit-lower.d.ts +9 -0
- package/dist/file/paragraph/math/n-ary/math-limit-lower.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-limit-upper.d.ts +9 -0
- package/dist/file/paragraph/math/n-ary/math-limit-upper.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-limit.d.ts +5 -0
- package/dist/file/paragraph/math/n-ary/math-limit.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-n-ary-properties.d.ts +9 -0
- package/dist/file/paragraph/math/n-ary/math-n-ary-properties.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-sub-script-hide.d.ts +2 -0
- package/dist/file/paragraph/math/n-ary/math-sub-script-hide.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-sub-script.d.ts +7 -0
- package/dist/file/paragraph/math/n-ary/math-sub-script.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-sum.d.ts +10 -0
- package/dist/file/paragraph/math/n-ary/math-sum.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-super-script-hide.d.ts +2 -0
- package/dist/file/paragraph/math/n-ary/math-super-script-hide.spec.d.ts +1 -0
- package/dist/file/paragraph/math/n-ary/math-super-script.d.ts +7 -0
- package/dist/file/paragraph/math/n-ary/math-super-script.spec.d.ts +1 -0
- package/dist/file/paragraph/math/radical/index.d.ts +3 -0
- package/dist/file/paragraph/math/radical/math-degree-hide.d.ts +4 -0
- package/dist/file/paragraph/math/radical/math-degree-hide.spec.d.ts +1 -0
- package/dist/file/paragraph/math/radical/math-degree.d.ts +5 -0
- package/dist/file/paragraph/math/radical/math-degree.spec.d.ts +1 -0
- package/dist/file/paragraph/math/radical/math-radical-properties.d.ts +4 -0
- package/dist/file/paragraph/math/radical/math-radical-properties.spec.d.ts +1 -0
- package/dist/file/paragraph/math/radical/math-radical.d.ts +9 -0
- package/dist/file/paragraph/math/radical/math-radical.spec.d.ts +1 -0
- package/dist/file/paragraph/math/script/index.d.ts +4 -0
- package/dist/file/paragraph/math/script/pre-sub-super-script/index.d.ts +2 -0
- package/dist/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.d.ts +2 -0
- package/dist/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.spec.d.ts +1 -0
- package/dist/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.d.ts +10 -0
- package/dist/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.spec.d.ts +1 -0
- package/dist/file/paragraph/math/script/sub-script/index.d.ts +2 -0
- package/dist/file/paragraph/math/script/sub-script/math-sub-script-function-properties.d.ts +2 -0
- package/dist/file/paragraph/math/script/sub-script/math-sub-script-function-properties.spec.d.ts +1 -0
- package/dist/file/paragraph/math/script/sub-script/math-sub-script-function.d.ts +9 -0
- package/dist/file/paragraph/math/script/sub-script/math-sub-script-function.spec.d.ts +1 -0
- package/dist/file/paragraph/math/script/sub-super-script/index.d.ts +2 -0
- package/dist/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.d.ts +2 -0
- package/dist/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.spec.d.ts +1 -0
- package/dist/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.d.ts +10 -0
- package/dist/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.spec.d.ts +1 -0
- package/dist/file/paragraph/math/script/super-script/index.d.ts +2 -0
- package/dist/file/paragraph/math/script/super-script/math-super-script-function-properties.d.ts +2 -0
- package/dist/file/paragraph/math/script/super-script/math-super-script-function-properties.spec.d.ts +1 -0
- package/dist/file/paragraph/math/script/super-script/math-super-script-function.d.ts +9 -0
- package/dist/file/paragraph/math/script/super-script/math-super-script-function.spec.d.ts +1 -0
- package/dist/file/paragraph/paragraph.d.ts +22 -0
- package/dist/file/paragraph/paragraph.spec.d.ts +1 -0
- package/dist/file/paragraph/properties.d.ts +65 -0
- package/dist/file/paragraph/properties.spec.d.ts +1 -0
- package/dist/file/paragraph/run/break.d.ts +2 -0
- package/dist/file/paragraph/run/break.spec.d.ts +1 -0
- package/dist/file/paragraph/run/comment-run.d.ts +42 -0
- package/dist/file/paragraph/run/comment-run.spec.d.ts +1 -0
- package/dist/file/paragraph/run/comments-extended.d.ts +5 -0
- package/dist/file/paragraph/run/comments-extended.spec.d.ts +1 -0
- package/dist/file/paragraph/run/emphasis-mark.d.ts +6 -0
- package/dist/file/paragraph/run/emphasis-mark.spec.d.ts +1 -0
- package/dist/file/paragraph/run/empty-children.d.ts +52 -0
- package/dist/file/paragraph/run/empty-children.spec.d.ts +1 -0
- package/dist/file/paragraph/run/field.d.ts +4 -0
- package/dist/file/paragraph/run/formatting.d.ts +14 -0
- package/dist/file/paragraph/run/formatting.spec.d.ts +1 -0
- package/dist/file/paragraph/run/image-run.d.ts +33 -0
- package/dist/file/paragraph/run/image-run.spec.d.ts +1 -0
- package/dist/file/paragraph/run/index.d.ts +16 -0
- package/dist/file/paragraph/run/language.d.ts +7 -0
- package/dist/file/paragraph/run/language.spec.d.ts +1 -0
- package/dist/file/paragraph/run/page-number.d.ts +13 -0
- package/dist/file/paragraph/run/page-number.spec.d.ts +1 -0
- package/dist/file/paragraph/run/positional-tab.d.ts +25 -0
- package/dist/file/paragraph/run/positional-tab.spec.d.ts +1 -0
- package/dist/file/paragraph/run/properties.d.ts +102 -0
- package/dist/file/paragraph/run/run-components/symbol.d.ts +4 -0
- package/dist/file/paragraph/run/run-components/symbol.spec.d.ts +1 -0
- package/dist/file/paragraph/run/run-components/text.d.ts +10 -0
- package/dist/file/paragraph/run/run-components/text.spec.d.ts +1 -0
- package/dist/file/paragraph/run/run-fonts.d.ts +9 -0
- package/dist/file/paragraph/run/run-fonts.spec.d.ts +1 -0
- package/dist/file/paragraph/run/run.d.ts +23 -0
- package/dist/file/paragraph/run/run.spec.d.ts +1 -0
- package/dist/file/paragraph/run/script.d.ts +3 -0
- package/dist/file/paragraph/run/script.spec.d.ts +1 -0
- package/dist/file/paragraph/run/sequential-identifier-instruction.d.ts +4 -0
- package/dist/file/paragraph/run/sequential-identifier.d.ts +4 -0
- package/dist/file/paragraph/run/sequential-identifier.spec.d.ts +1 -0
- package/dist/file/paragraph/run/simple-field.d.ts +7 -0
- package/dist/file/paragraph/run/simple-field.spec.d.ts +1 -0
- package/dist/file/paragraph/run/symbol-run.d.ts +8 -0
- package/dist/file/paragraph/run/symbol-run.spec.d.ts +1 -0
- package/dist/file/paragraph/run/text-attributes.d.ts +9 -0
- package/dist/file/paragraph/run/text-run.d.ts +4 -0
- package/dist/file/paragraph/run/text-run.spec.d.ts +1 -0
- package/dist/file/paragraph/run/underline.d.ts +22 -0
- package/dist/file/paragraph/run/underline.spec.d.ts +1 -0
- package/dist/file/paragraph/run/wpg-group-run.d.ts +21 -0
- package/dist/file/paragraph/run/wpg-group-run.spec.d.ts +1 -0
- package/dist/file/paragraph/run/wps-shape-run.d.ts +23 -0
- package/dist/file/paragraph/run/wps-shape-run.spec.d.ts +1 -0
- package/dist/file/relationships/attributes.d.ts +8 -0
- package/dist/file/relationships/index.d.ts +1 -0
- package/dist/file/relationships/relationship/relationship.d.ts +6 -0
- package/dist/file/relationships/relationships.d.ts +7 -0
- package/dist/file/relationships/relationships.spec.d.ts +1 -0
- package/dist/file/settings/compatibility-setting/compatibility-setting.d.ts +2 -0
- package/dist/file/settings/compatibility-setting/compatibility-setting.spec.d.ts +1 -0
- package/dist/file/settings/compatibility.d.ts +72 -0
- package/dist/file/settings/compatibility.spec.d.ts +1 -0
- package/dist/file/settings/index.d.ts +1 -0
- package/dist/file/settings/settings.d.ts +59 -0
- package/dist/file/settings/settings.spec.d.ts +1 -0
- package/dist/file/shading/index.d.ts +1 -0
- package/dist/file/shading/shading.d.ts +46 -0
- package/dist/file/shading/shading.spec.d.ts +1 -0
- package/dist/file/shared/alignment.d.ts +14 -0
- package/dist/file/shared/index.d.ts +3 -0
- package/dist/file/shared/number-format.d.ts +64 -0
- package/dist/file/shared/space-type.d.ts +4 -0
- package/dist/file/styles/defaults/document-defaults.d.ts +12 -0
- package/dist/file/styles/defaults/document-defaults.spec.d.ts +1 -0
- package/dist/file/styles/defaults/index.d.ts +3 -0
- package/dist/file/styles/defaults/paragraph-properties.d.ts +5 -0
- package/dist/file/styles/defaults/run-properties.d.ts +5 -0
- package/dist/file/styles/external-styles-factory.d.ts +4 -0
- package/dist/file/styles/external-styles-factory.spec.d.ts +1 -0
- package/dist/file/styles/factory.d.ts +25 -0
- package/dist/file/styles/index.d.ts +4 -0
- package/dist/file/styles/latent-styles/exceptions.d.ts +20 -0
- package/dist/file/styles/latent-styles/exceptions.spec.d.ts +1 -0
- package/dist/file/styles/latent-styles/index.d.ts +1 -0
- package/dist/file/styles/latent-styles/latent-styles.d.ts +5 -0
- package/dist/file/styles/latent-styles/latent-styles.spec.d.ts +1 -0
- package/dist/file/styles/sample/default-style.d.ts +1 -0
- package/dist/file/styles/sample/default-style.spec.d.ts +1 -0
- package/dist/file/styles/sample/index.d.ts +1 -0
- package/dist/file/styles/style/character-style.d.ts +12 -0
- package/dist/file/styles/style/character-style.spec.d.ts +1 -0
- package/dist/file/styles/style/components.d.ts +11 -0
- package/dist/file/styles/style/components.spec.d.ts +1 -0
- package/dist/file/styles/style/default-styles.d.ts +53 -0
- package/dist/file/styles/style/default-styles.spec.d.ts +1 -0
- package/dist/file/styles/style/index.d.ts +4 -0
- package/dist/file/styles/style/paragraph-style.d.ts +14 -0
- package/dist/file/styles/style/paragraph-style.spec.d.ts +1 -0
- package/dist/file/styles/style/style.d.ts +20 -0
- package/dist/file/styles/style/style.spec.d.ts +1 -0
- package/dist/file/styles/styles.d.ts +15 -0
- package/dist/file/styles/styles.spec.d.ts +1 -0
- package/dist/file/table/grid.d.ts +13 -0
- package/dist/file/table/grid.spec.d.ts +1 -0
- package/dist/file/table/index.d.ts +5 -0
- package/dist/file/table/table-cell/index.d.ts +2 -0
- package/dist/file/table/table-cell/table-cell-components.d.ts +31 -0
- package/dist/file/table/table-cell/table-cell-properties.d.ts +33 -0
- package/dist/file/table/table-cell/table-cell-properties.spec.d.ts +1 -0
- package/dist/file/table/table-cell/table-cell.d.ts +12 -0
- package/dist/file/table/table-cell/table-cell.spec.d.ts +1 -0
- package/dist/file/table/table-cell-spacing.d.ts +11 -0
- package/dist/file/table/table-properties/index.d.ts +5 -0
- package/dist/file/table/table-properties/table-borders.d.ts +14 -0
- package/dist/file/table/table-properties/table-borders.spec.d.ts +1 -0
- package/dist/file/table/table-properties/table-cell-margin.d.ts +11 -0
- package/dist/file/table/table-properties/table-cell-margin.spec.d.ts +1 -0
- package/dist/file/table/table-properties/table-float-properties.d.ts +40 -0
- package/dist/file/table/table-properties/table-float-properties.spec.d.ts +1 -0
- package/dist/file/table/table-properties/table-layout.d.ts +6 -0
- package/dist/file/table/table-properties/table-look.d.ts +10 -0
- package/dist/file/table/table-properties/table-look.spec.d.ts +1 -0
- package/dist/file/table/table-properties/table-properties.d.ts +33 -0
- package/dist/file/table/table-properties/table-properties.spec.d.ts +1 -0
- package/dist/file/table/table-row/index.d.ts +3 -0
- package/dist/file/table/table-row/table-row-height.d.ts +8 -0
- package/dist/file/table/table-row/table-row-properties.d.ts +27 -0
- package/dist/file/table/table-row/table-row-properties.spec.d.ts +1 -0
- package/dist/file/table/table-row/table-row.d.ts +16 -0
- package/dist/file/table/table-row/table-row.spec.d.ts +1 -0
- package/dist/file/table/table-width.d.ts +13 -0
- package/dist/file/table/table.d.ts +30 -0
- package/dist/file/table/table.spec.d.ts +1 -0
- package/dist/file/table-of-contents/field-instruction.d.ts +6 -0
- package/dist/file/table-of-contents/index.d.ts +2 -0
- package/dist/file/table-of-contents/sdt-content.d.ts +4 -0
- package/dist/file/table-of-contents/sdt-properties.d.ts +4 -0
- package/dist/file/table-of-contents/table-of-contents-properties.d.ts +23 -0
- package/dist/file/table-of-contents/table-of-contents.d.ts +20 -0
- package/dist/file/table-of-contents/table-of-contents.spec.d.ts +1 -0
- package/dist/file/textbox/index.d.ts +1 -0
- package/dist/file/textbox/pict-element/pict-element.d.ts +5 -0
- package/dist/file/textbox/shape/shape.d.ts +36 -0
- package/dist/file/textbox/shape/shape.spec.d.ts +1 -0
- package/dist/file/textbox/texbox-content/textbox-content.d.ts +5 -0
- package/dist/file/textbox/textbox.d.ts +10 -0
- package/dist/file/textbox/textbox.spec.d.ts +1 -0
- package/dist/file/textbox/types.d.ts +2 -0
- package/dist/file/textbox/vml-textbox/vml-texbox.d.ts +14 -0
- package/dist/file/textbox/vml-textbox/vml-textbox.spec.d.ts +1 -0
- package/dist/file/track-revision/index.d.ts +7 -0
- package/dist/file/track-revision/track-revision-components/cell-merge.d.ts +22 -0
- package/dist/file/track-revision/track-revision-components/cell-merge.spec.d.ts +1 -0
- package/dist/file/track-revision/track-revision-components/deleted-page-number.d.ts +10 -0
- package/dist/file/track-revision/track-revision-components/deleted-page-number.spec.d.ts +1 -0
- package/dist/file/track-revision/track-revision-components/deleted-table-cell.d.ts +5 -0
- package/dist/file/track-revision/track-revision-components/deleted-table-cell.spec.d.ts +1 -0
- package/dist/file/track-revision/track-revision-components/deleted-table-row.d.ts +5 -0
- package/dist/file/track-revision/track-revision-components/deleted-table-row.spec.d.ts +1 -0
- package/dist/file/track-revision/track-revision-components/deleted-text-run.d.ts +12 -0
- package/dist/file/track-revision/track-revision-components/deleted-text-run.spec.d.ts +1 -0
- package/dist/file/track-revision/track-revision-components/deleted-text.d.ts +4 -0
- package/dist/file/track-revision/track-revision-components/deleted-text.spec.d.ts +1 -0
- package/dist/file/track-revision/track-revision-components/deletion-track-change.d.ts +5 -0
- package/dist/file/track-revision/track-revision-components/inserted-table-cell.d.ts +5 -0
- package/dist/file/track-revision/track-revision-components/inserted-table-cell.spec.d.ts +1 -0
- package/dist/file/track-revision/track-revision-components/inserted-table-row.d.ts +5 -0
- package/dist/file/track-revision/track-revision-components/inserted-table-row.spec.d.ts +1 -0
- package/dist/file/track-revision/track-revision-components/inserted-text-run.d.ts +8 -0
- package/dist/file/track-revision/track-revision-components/inserted-text-run.spec.d.ts +1 -0
- package/dist/file/track-revision/track-revision-components/insertion-track-change.d.ts +5 -0
- package/dist/file/track-revision/track-revision.d.ts +13 -0
- package/dist/file/vertical-align/index.d.ts +1 -0
- package/dist/file/vertical-align/vertical-align.d.ts +21 -0
- package/dist/file/xml-components/attribute.spec.d.ts +1 -0
- package/dist/file/xml-components/attributes.d.ts +46 -0
- package/dist/file/xml-components/base.d.ts +13 -0
- package/dist/file/xml-components/default-attributes.d.ts +21 -0
- package/dist/file/xml-components/imported-xml-component.d.ts +14 -0
- package/dist/file/xml-components/imported-xml-component.spec.d.ts +1 -0
- package/dist/file/xml-components/index.d.ts +8 -0
- package/dist/file/xml-components/initializable-xml-component.d.ts +4 -0
- package/dist/file/xml-components/simple-elements.d.ts +30 -0
- package/dist/file/xml-components/simple-elements.spec.d.ts +1 -0
- package/dist/file/xml-components/xml-component.d.ts +14 -0
- package/dist/file/xml-components/xml-component.spec.d.ts +1 -0
- package/dist/file/xml-components/xmlable-object.d.ts +5 -0
- package/dist/index.cjs +32330 -22665
- package/dist/index.d.cts +5 -3189
- package/dist/index.d.ts +5 -3189
- package/dist/index.iife.js +32738 -23073
- package/dist/index.mjs +32330 -22967
- package/dist/index.spec.d.ts +1 -0
- package/dist/index.umd.cjs +32741 -23076
- package/dist/patcher/content-types-manager.d.ts +2 -0
- package/dist/patcher/content-types-manager.spec.d.ts +1 -0
- package/dist/patcher/from-docx.d.ts +32 -0
- package/dist/patcher/from-docx.spec.d.ts +1 -0
- package/dist/patcher/index.d.ts +2 -0
- package/dist/patcher/paragraph-split-inject.d.ts +9 -0
- package/dist/patcher/paragraph-split-inject.spec.d.ts +1 -0
- package/dist/patcher/paragraph-token-replacer.d.ts +8 -0
- package/dist/patcher/paragraph-token-replacer.spec.d.ts +1 -0
- package/dist/patcher/patch-detector.d.ts +6 -0
- package/dist/patcher/patch-detector.spec.d.ts +1 -0
- package/dist/patcher/relationship-manager.d.ts +4 -0
- package/dist/patcher/relationship-manager.spec.d.ts +1 -0
- package/dist/patcher/replacer.d.ts +15 -0
- package/dist/patcher/replacer.spec.d.ts +84 -0
- package/dist/patcher/run-renderer.d.ts +22 -0
- package/dist/patcher/run-renderer.spec.d.ts +1 -0
- package/dist/patcher/traverser.d.ts +9 -0
- package/dist/patcher/traverser.spec.d.ts +1 -0
- package/dist/patcher/util.d.ts +5 -0
- package/dist/patcher/util.spec.d.ts +1 -0
- package/dist/tests/utility.d.ts +3 -0
- package/dist/util/convenience-functions.d.ts +12 -0
- package/dist/util/convenience-functions.spec.d.ts +1 -0
- package/dist/util/index.d.ts +3 -0
- package/dist/util/output-type.d.ts +12 -0
- package/dist/util/types.d.ts +1 -0
- package/dist/util/values.d.ts +22 -0
- package/dist/util/values.spec.d.ts +1 -0
- package/package.json +8 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './packer/packer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as JSZip } from 'jszip';
|
|
2
|
+
import { File } from '../../file/file';
|
|
3
|
+
import { PrettifyType } from './packer';
|
|
4
|
+
export type IXmlifyedFile = {
|
|
5
|
+
readonly data: string;
|
|
6
|
+
readonly path: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class Compiler {
|
|
9
|
+
private readonly formatter;
|
|
10
|
+
private readonly imageReplacer;
|
|
11
|
+
private readonly numberingReplacer;
|
|
12
|
+
constructor();
|
|
13
|
+
compile(file: File, prettifyXml?: (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): JSZip;
|
|
14
|
+
private xmlifyFile;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Stream } from 'stream';
|
|
2
|
+
import { File } from '../../file/file';
|
|
3
|
+
import { OutputByType, OutputType } from '../../util/output-type';
|
|
4
|
+
import { IXmlifyedFile } from './next-compiler';
|
|
5
|
+
export declare const PrettifyType: {
|
|
6
|
+
readonly NONE: "";
|
|
7
|
+
readonly WITH_2_BLANKS: " ";
|
|
8
|
+
readonly WITH_4_BLANKS: " ";
|
|
9
|
+
readonly WITH_TAB: "\t";
|
|
10
|
+
};
|
|
11
|
+
export declare class Packer {
|
|
12
|
+
static pack<T extends OutputType>(file: File, type: T, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<OutputByType[T]>;
|
|
13
|
+
static toString(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
|
|
14
|
+
static toBuffer(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Buffer>;
|
|
15
|
+
static toBase64String(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
|
|
16
|
+
static toBlob(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Blob>;
|
|
17
|
+
static toArrayBuffer(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<ArrayBuffer>;
|
|
18
|
+
static toStream(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Stream;
|
|
19
|
+
private static readonly compiler;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { XmlAttributeComponent } from '../xml-components';
|
|
2
|
+
export declare class AppPropertiesAttributes extends XmlAttributeComponent<{
|
|
3
|
+
readonly xmlns: string;
|
|
4
|
+
readonly vt: string;
|
|
5
|
+
}> {
|
|
6
|
+
protected readonly xmlKeys: {
|
|
7
|
+
xmlns: string;
|
|
8
|
+
vt: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { XmlComponent } from '../xml-components';
|
|
2
|
+
export type IBorderOptions = {
|
|
3
|
+
readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
4
|
+
readonly color?: string;
|
|
5
|
+
readonly size?: number;
|
|
6
|
+
readonly space?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const createBorderElement: (elementName: string, { color, size, space, style }: IBorderOptions) => XmlComponent;
|
|
9
|
+
export declare const BorderStyle: {
|
|
10
|
+
readonly SINGLE: "single";
|
|
11
|
+
readonly DASH_DOT_STROKED: "dashDotStroked";
|
|
12
|
+
readonly DASHED: "dashed";
|
|
13
|
+
readonly DASH_SMALL_GAP: "dashSmallGap";
|
|
14
|
+
readonly DOT_DASH: "dotDash";
|
|
15
|
+
readonly DOT_DOT_DASH: "dotDotDash";
|
|
16
|
+
readonly DOTTED: "dotted";
|
|
17
|
+
readonly DOUBLE: "double";
|
|
18
|
+
readonly DOUBLE_WAVE: "doubleWave";
|
|
19
|
+
readonly INSET: "inset";
|
|
20
|
+
readonly NIL: "nil";
|
|
21
|
+
readonly NONE: "none";
|
|
22
|
+
readonly OUTSET: "outset";
|
|
23
|
+
readonly THICK: "thick";
|
|
24
|
+
readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
|
|
25
|
+
readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
|
|
26
|
+
readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
|
|
27
|
+
readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
|
|
28
|
+
readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
|
|
29
|
+
readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
|
|
30
|
+
readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
|
|
31
|
+
readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
|
|
32
|
+
readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
|
|
33
|
+
readonly THREE_D_EMBOSS: "threeDEmboss";
|
|
34
|
+
readonly THREE_D_ENGRAVE: "threeDEngrave";
|
|
35
|
+
readonly TRIPLE: "triple";
|
|
36
|
+
readonly WAVE: "wave";
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './border';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { XmlComponent } from '../xml-components';
|
|
2
|
+
export type ICheckboxSymbolProperties = {
|
|
3
|
+
readonly value?: string;
|
|
4
|
+
readonly font?: string;
|
|
5
|
+
};
|
|
6
|
+
export type ICheckboxSymbolOptions = {
|
|
7
|
+
readonly alias?: string;
|
|
8
|
+
readonly checked?: boolean;
|
|
9
|
+
readonly checkedState?: ICheckboxSymbolProperties;
|
|
10
|
+
readonly uncheckedState?: ICheckboxSymbolProperties;
|
|
11
|
+
};
|
|
12
|
+
export declare class CheckBoxUtil extends XmlComponent {
|
|
13
|
+
private readonly DEFAULT_UNCHECKED_SYMBOL;
|
|
14
|
+
private readonly DEFAULT_CHECKED_SYMBOL;
|
|
15
|
+
private readonly DEFAULT_FONT;
|
|
16
|
+
constructor(options?: ICheckboxSymbolOptions);
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { XmlComponent } from '../xml-components';
|
|
2
|
+
import { ICheckboxSymbolOptions } from './checkbox-util';
|
|
3
|
+
export declare class CheckBox extends XmlComponent {
|
|
4
|
+
private readonly DEFAULT_UNCHECKED_SYMBOL;
|
|
5
|
+
private readonly DEFAULT_CHECKED_SYMBOL;
|
|
6
|
+
private readonly DEFAULT_FONT;
|
|
7
|
+
constructor(options?: ICheckboxSymbolOptions);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './properties';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FontOptions } from '../fonts/font-table';
|
|
2
|
+
import { ICommentsOptions } from '../paragraph/run/comment-run';
|
|
3
|
+
import { IHyphenationOptions } from '../settings';
|
|
4
|
+
import { ICompatibilityOptions } from '../settings/compatibility';
|
|
5
|
+
import { XmlComponent } from '../xml-components';
|
|
6
|
+
import { ICustomPropertyOptions } from '../custom-properties';
|
|
7
|
+
import { IDocumentBackgroundOptions } from '../document';
|
|
8
|
+
import { ISectionOptions } from '../file';
|
|
9
|
+
import { INumberingOptions } from '../numbering';
|
|
10
|
+
import { Paragraph } from '../paragraph';
|
|
11
|
+
import { IStylesOptions } from '../styles';
|
|
12
|
+
export type IPropertiesOptions = {
|
|
13
|
+
readonly sections: readonly ISectionOptions[];
|
|
14
|
+
readonly title?: string;
|
|
15
|
+
readonly subject?: string;
|
|
16
|
+
readonly creator?: string;
|
|
17
|
+
readonly keywords?: string;
|
|
18
|
+
readonly description?: string;
|
|
19
|
+
readonly lastModifiedBy?: string;
|
|
20
|
+
readonly revision?: number;
|
|
21
|
+
readonly externalStyles?: string;
|
|
22
|
+
readonly styles?: IStylesOptions;
|
|
23
|
+
readonly numbering?: INumberingOptions;
|
|
24
|
+
readonly comments?: ICommentsOptions;
|
|
25
|
+
readonly footnotes?: Readonly<Record<string, {
|
|
26
|
+
readonly children: readonly Paragraph[];
|
|
27
|
+
}>>;
|
|
28
|
+
readonly endnotes?: Readonly<Record<string, {
|
|
29
|
+
readonly children: readonly Paragraph[];
|
|
30
|
+
}>>;
|
|
31
|
+
readonly background?: IDocumentBackgroundOptions;
|
|
32
|
+
readonly features?: {
|
|
33
|
+
readonly trackRevisions?: boolean;
|
|
34
|
+
readonly updateFields?: boolean;
|
|
35
|
+
};
|
|
36
|
+
readonly compatabilityModeVersion?: number;
|
|
37
|
+
readonly compatibility?: ICompatibilityOptions;
|
|
38
|
+
readonly customProperties?: readonly ICustomPropertyOptions[];
|
|
39
|
+
readonly evenAndOddHeaderAndFooters?: boolean;
|
|
40
|
+
readonly defaultTabStop?: number;
|
|
41
|
+
readonly fonts?: readonly FontOptions[];
|
|
42
|
+
readonly hyphenation?: IHyphenationOptions;
|
|
43
|
+
};
|
|
44
|
+
export declare class CoreProperties extends XmlComponent {
|
|
45
|
+
constructor(options: Omit<IPropertiesOptions, "sections">);
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { XmlAttributeComponent } from '../xml-components';
|
|
2
|
+
export declare class CustomPropertiesAttributes extends XmlAttributeComponent<{
|
|
3
|
+
readonly xmlns: string;
|
|
4
|
+
readonly vt: string;
|
|
5
|
+
}> {
|
|
6
|
+
protected readonly xmlKeys: {
|
|
7
|
+
xmlns: string;
|
|
8
|
+
vt: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IContext, IXmlableObject, XmlComponent } from '../xml-components';
|
|
2
|
+
import { ICustomPropertyOptions } from './custom-property';
|
|
3
|
+
export declare class CustomProperties extends XmlComponent {
|
|
4
|
+
private nextId;
|
|
5
|
+
private readonly properties;
|
|
6
|
+
constructor(properties: readonly ICustomPropertyOptions[]);
|
|
7
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
8
|
+
addCustomProperty(property: ICustomPropertyOptions): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { XmlAttributeComponent } from '../xml-components';
|
|
2
|
+
export declare class CustomPropertyAttributes extends XmlAttributeComponent<{
|
|
3
|
+
readonly formatId: string;
|
|
4
|
+
readonly pid: string;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
}> {
|
|
7
|
+
protected readonly xmlKeys: {
|
|
8
|
+
formatId: string;
|
|
9
|
+
pid: string;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { XmlComponent } from '../xml-components';
|
|
2
|
+
export type ICustomPropertyOptions = {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly value: string;
|
|
5
|
+
};
|
|
6
|
+
export declare class CustomProperty extends XmlComponent {
|
|
7
|
+
constructor(id: number, properties: ICustomPropertyOptions);
|
|
8
|
+
}
|
|
9
|
+
export declare class CustomPropertyValue extends XmlComponent {
|
|
10
|
+
constructor(value: string);
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IContext, IXmlableObject, XmlComponent } from '../../xml-components';
|
|
2
|
+
import { ISectionPropertiesOptions } from './section-properties/section-properties';
|
|
3
|
+
export declare class Body extends XmlComponent {
|
|
4
|
+
private readonly sections;
|
|
5
|
+
constructor();
|
|
6
|
+
addSection(options: ISectionPropertiesOptions): void;
|
|
7
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
8
|
+
push(component: XmlComponent): void;
|
|
9
|
+
private createSectionParagraph;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { XmlComponent } from '../../../../xml-components';
|
|
2
|
+
import { PositiveUniversalMeasure } from '../../../../../util/values';
|
|
3
|
+
export type IColumnAttributes = {
|
|
4
|
+
readonly width: number | PositiveUniversalMeasure;
|
|
5
|
+
readonly space?: number | PositiveUniversalMeasure;
|
|
6
|
+
};
|
|
7
|
+
export declare class Column extends XmlComponent {
|
|
8
|
+
constructor(options: IColumnAttributes);
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { XmlComponent } from '../../../../xml-components';
|
|
2
|
+
import { PositiveUniversalMeasure } from '../../../../../util/values';
|
|
3
|
+
import { Column } from './column';
|
|
4
|
+
export type IColumnsAttributes = {
|
|
5
|
+
readonly space?: number | PositiveUniversalMeasure;
|
|
6
|
+
readonly count?: number;
|
|
7
|
+
readonly separate?: boolean;
|
|
8
|
+
readonly equalWidth?: boolean;
|
|
9
|
+
readonly children?: readonly Column[];
|
|
10
|
+
};
|
|
11
|
+
export declare const createColumns: ({ space, count, separate, equalWidth, children }: IColumnsAttributes) => XmlComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { XmlComponent } from '../../../../xml-components';
|
|
2
|
+
export declare const DocumentGridType: {
|
|
3
|
+
readonly DEFAULT: "default";
|
|
4
|
+
readonly LINES: "lines";
|
|
5
|
+
readonly LINES_AND_CHARS: "linesAndChars";
|
|
6
|
+
readonly SNAP_TO_CHARS: "snapToChars";
|
|
7
|
+
};
|
|
8
|
+
export type IDocGridAttributesProperties = {
|
|
9
|
+
readonly type?: (typeof DocumentGridType)[keyof typeof DocumentGridType];
|
|
10
|
+
readonly linePitch: number;
|
|
11
|
+
readonly charSpace?: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const createDocumentGrid: ({ type, linePitch, charSpace }: IDocGridAttributesProperties) => XmlComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { XmlComponent } from '../../../../xml-components';
|
|
2
|
+
export declare const HeaderFooterReferenceType: {
|
|
3
|
+
readonly DEFAULT: "default";
|
|
4
|
+
readonly FIRST: "first";
|
|
5
|
+
readonly EVEN: "even";
|
|
6
|
+
};
|
|
7
|
+
export type IHeaderFooterOptions = {
|
|
8
|
+
readonly type?: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
|
9
|
+
readonly id?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const HeaderFooterType: {
|
|
12
|
+
readonly HEADER: "w:headerReference";
|
|
13
|
+
readonly FOOTER: "w:footerReference";
|
|
14
|
+
};
|
|
15
|
+
export declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions) => XmlComponent;
|
package/dist/file/document/body/section-properties/properties/header-footer-reference.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './column';
|
|
2
|
+
export * from './columns';
|
|
3
|
+
export * from './doc-grid';
|
|
4
|
+
export * from './page-size';
|
|
5
|
+
export * from './page-number';
|
|
6
|
+
export * from './page-borders';
|
|
7
|
+
export * from './page-margin';
|
|
8
|
+
export * from './page-borders';
|
|
9
|
+
export * from './page-text-direction';
|
|
10
|
+
export * from './line-number';
|
|
11
|
+
export * from './section-type';
|
|
12
|
+
export * from './header-footer-reference';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { XmlComponent } from '../../../../xml-components';
|
|
2
|
+
import { PositiveUniversalMeasure } from '../../../../../util/values';
|
|
3
|
+
export declare const LineNumberRestartFormat: {
|
|
4
|
+
readonly NEW_PAGE: "newPage";
|
|
5
|
+
readonly NEW_SECTION: "newSection";
|
|
6
|
+
readonly CONTINUOUS: "continuous";
|
|
7
|
+
};
|
|
8
|
+
export type ILineNumberAttributes = {
|
|
9
|
+
readonly countBy?: number;
|
|
10
|
+
readonly start?: number;
|
|
11
|
+
readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
|
|
12
|
+
readonly distance?: number | PositiveUniversalMeasure;
|
|
13
|
+
};
|
|
14
|
+
export declare const createLineNumberType: ({ countBy, start, restart, distance }: ILineNumberAttributes) => XmlComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IBorderOptions } from '../../../../border';
|
|
2
|
+
import { IgnoreIfEmptyXmlComponent } from '../../../../xml-components';
|
|
3
|
+
export declare const PageBorderDisplay: {
|
|
4
|
+
readonly ALL_PAGES: "allPages";
|
|
5
|
+
readonly FIRST_PAGE: "firstPage";
|
|
6
|
+
readonly NOT_FIRST_PAGE: "notFirstPage";
|
|
7
|
+
};
|
|
8
|
+
export declare const PageBorderOffsetFrom: {
|
|
9
|
+
readonly PAGE: "page";
|
|
10
|
+
readonly TEXT: "text";
|
|
11
|
+
};
|
|
12
|
+
export declare const PageBorderZOrder: {
|
|
13
|
+
readonly BACK: "back";
|
|
14
|
+
readonly FRONT: "front";
|
|
15
|
+
};
|
|
16
|
+
export type IPageBorderAttributes = {
|
|
17
|
+
readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
|
|
18
|
+
readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
|
|
19
|
+
readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
|
|
20
|
+
};
|
|
21
|
+
export type IPageBordersOptions = {
|
|
22
|
+
readonly pageBorders?: IPageBorderAttributes;
|
|
23
|
+
readonly pageBorderTop?: IBorderOptions;
|
|
24
|
+
readonly pageBorderRight?: IBorderOptions;
|
|
25
|
+
readonly pageBorderBottom?: IBorderOptions;
|
|
26
|
+
readonly pageBorderLeft?: IBorderOptions;
|
|
27
|
+
};
|
|
28
|
+
export declare class PageBorders extends IgnoreIfEmptyXmlComponent {
|
|
29
|
+
constructor(options?: IPageBordersOptions);
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { XmlComponent } from '../../../../xml-components';
|
|
2
|
+
import { PositiveUniversalMeasure, UniversalMeasure } from '../../../../../util/values';
|
|
3
|
+
export type IPageMarginAttributes = {
|
|
4
|
+
readonly top?: number | UniversalMeasure;
|
|
5
|
+
readonly right?: number | PositiveUniversalMeasure;
|
|
6
|
+
readonly bottom?: number | UniversalMeasure;
|
|
7
|
+
readonly left?: number | PositiveUniversalMeasure;
|
|
8
|
+
readonly header?: number | PositiveUniversalMeasure;
|
|
9
|
+
readonly footer?: number | PositiveUniversalMeasure;
|
|
10
|
+
readonly gutter?: number | PositiveUniversalMeasure;
|
|
11
|
+
};
|
|
12
|
+
export declare const createPageMargin: (top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure) => XmlComponent;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NumberFormat } from '../../../../shared/number-format';
|
|
2
|
+
import { XmlComponent } from '../../../../xml-components';
|
|
3
|
+
export declare const PageNumberSeparator: {
|
|
4
|
+
readonly HYPHEN: "hyphen";
|
|
5
|
+
readonly PERIOD: "period";
|
|
6
|
+
readonly COLON: "colon";
|
|
7
|
+
readonly EM_DASH: "emDash";
|
|
8
|
+
readonly EN_DASH: "endash";
|
|
9
|
+
};
|
|
10
|
+
export type IPageNumberTypeAttributes = {
|
|
11
|
+
readonly start?: number;
|
|
12
|
+
readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
|
|
13
|
+
readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
|
|
14
|
+
};
|
|
15
|
+
export declare const createPageNumberType: ({ start, formatType, separator }: IPageNumberTypeAttributes) => XmlComponent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { XmlComponent } from '../../../../xml-components';
|
|
2
|
+
import { PositiveUniversalMeasure } from '../../../../../util/values';
|
|
3
|
+
export declare const PageOrientation: {
|
|
4
|
+
readonly PORTRAIT: "portrait";
|
|
5
|
+
readonly LANDSCAPE: "landscape";
|
|
6
|
+
};
|
|
7
|
+
export type IPageSizeAttributes = {
|
|
8
|
+
readonly width: number | PositiveUniversalMeasure;
|
|
9
|
+
readonly height: number | PositiveUniversalMeasure;
|
|
10
|
+
readonly orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
|
|
11
|
+
readonly code?: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const createPageSize: ({ width, height, orientation, code }: IPageSizeAttributes) => XmlComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { XmlComponent } from '../../../../xml-components';
|
|
2
|
+
export declare const PageTextDirectionType: {
|
|
3
|
+
readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
|
|
4
|
+
readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
|
|
5
|
+
};
|
|
6
|
+
export declare class PageTextDirection extends XmlComponent {
|
|
7
|
+
constructor(value: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType]);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { XmlComponent } from '../../../../xml-components';
|
|
2
|
+
export declare const SectionType: {
|
|
3
|
+
readonly NEXT_PAGE: "nextPage";
|
|
4
|
+
readonly NEXT_COLUMN: "nextColumn";
|
|
5
|
+
readonly CONTINUOUS: "continuous";
|
|
6
|
+
readonly EVEN_PAGE: "evenPage";
|
|
7
|
+
readonly ODD_PAGE: "oddPage";
|
|
8
|
+
};
|
|
9
|
+
export declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => XmlComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { FooterWrapper } from '../../../footer-wrapper';
|
|
2
|
+
import { HeaderWrapper } from '../../../header-wrapper';
|
|
3
|
+
import { IChangedAttributesProperties } from '../../../track-revision/track-revision';
|
|
4
|
+
import { SectionVerticalAlign } from '../../../vertical-align';
|
|
5
|
+
import { XmlComponent } from '../../../xml-components';
|
|
6
|
+
import { IColumnsAttributes } from './properties/columns';
|
|
7
|
+
import { IDocGridAttributesProperties } from './properties/doc-grid';
|
|
8
|
+
import { ILineNumberAttributes } from './properties/line-number';
|
|
9
|
+
import { IPageBordersOptions } from './properties/page-borders';
|
|
10
|
+
import { IPageMarginAttributes } from './properties/page-margin';
|
|
11
|
+
import { IPageNumberTypeAttributes } from './properties/page-number';
|
|
12
|
+
import { IPageSizeAttributes } from './properties/page-size';
|
|
13
|
+
import { PageTextDirectionType } from './properties/page-text-direction';
|
|
14
|
+
import { SectionType } from './properties/section-type';
|
|
15
|
+
export type IHeaderFooterGroup<T> = {
|
|
16
|
+
readonly default?: T;
|
|
17
|
+
readonly first?: T;
|
|
18
|
+
readonly even?: T;
|
|
19
|
+
};
|
|
20
|
+
export type ISectionPropertiesOptionsBase = {
|
|
21
|
+
readonly page?: {
|
|
22
|
+
readonly size?: Partial<IPageSizeAttributes>;
|
|
23
|
+
readonly margin?: IPageMarginAttributes;
|
|
24
|
+
readonly pageNumbers?: IPageNumberTypeAttributes;
|
|
25
|
+
readonly borders?: IPageBordersOptions;
|
|
26
|
+
readonly textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
|
|
27
|
+
};
|
|
28
|
+
readonly grid?: Partial<IDocGridAttributesProperties>;
|
|
29
|
+
readonly headerWrapperGroup?: IHeaderFooterGroup<HeaderWrapper>;
|
|
30
|
+
readonly footerWrapperGroup?: IHeaderFooterGroup<FooterWrapper>;
|
|
31
|
+
readonly lineNumbers?: ILineNumberAttributes;
|
|
32
|
+
readonly titlePage?: boolean;
|
|
33
|
+
readonly verticalAlign?: SectionVerticalAlign;
|
|
34
|
+
readonly column?: IColumnsAttributes;
|
|
35
|
+
readonly type?: (typeof SectionType)[keyof typeof SectionType];
|
|
36
|
+
};
|
|
37
|
+
export type ISectionPropertiesChangeOptions = IChangedAttributesProperties & ISectionPropertiesOptionsBase;
|
|
38
|
+
export type ISectionPropertiesOptions = {
|
|
39
|
+
readonly revision?: ISectionPropertiesChangeOptions;
|
|
40
|
+
} & ISectionPropertiesOptionsBase;
|
|
41
|
+
export declare const sectionMarginDefaults: {
|
|
42
|
+
TOP: number;
|
|
43
|
+
RIGHT: number;
|
|
44
|
+
BOTTOM: number;
|
|
45
|
+
LEFT: number;
|
|
46
|
+
HEADER: number;
|
|
47
|
+
FOOTER: number;
|
|
48
|
+
GUTTER: number;
|
|
49
|
+
};
|
|
50
|
+
export declare const sectionPageSizeDefaults: {
|
|
51
|
+
WIDTH: number;
|
|
52
|
+
HEIGHT: number;
|
|
53
|
+
ORIENTATION: "portrait";
|
|
54
|
+
};
|
|
55
|
+
export declare class SectionProperties extends XmlComponent {
|
|
56
|
+
constructor({ page: { size: { width, height, orientation, code, }, margin: { top, right, bottom, left, header, footer, gutter, }, pageNumbers, borders, textDirection, }, grid: { linePitch, charSpace, type: gridType }, headerWrapperGroup, footerWrapperGroup, lineNumbers, titlePage, verticalAlign, column, type, revision, }?: ISectionPropertiesOptions);
|
|
57
|
+
private addHeaderFooterGroup;
|
|
58
|
+
}
|
|
59
|
+
export declare class SectionPropertiesChange extends XmlComponent {
|
|
60
|
+
constructor(options: ISectionPropertiesChangeOptions);
|
|
61
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|