docx-plus 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -29,6 +29,35 @@ declare const measurementOrPercentValue: (val: number | Percentage | UniversalMe
29
29
  declare const eighthPointMeasureValue: (val: number) => number;
30
30
  declare const pointMeasureValue: (val: number) => number;
31
31
  declare const dateTimeValue: (val: Date) => string;
32
+ declare const ThemeColor: {
33
+ readonly DARK1: "dark1";
34
+ readonly LIGHT1: "light1";
35
+ readonly DARK2: "dark2";
36
+ readonly LIGHT2: "light2";
37
+ readonly ACCENT1: "accent1";
38
+ readonly ACCENT2: "accent2";
39
+ readonly ACCENT3: "accent3";
40
+ readonly ACCENT4: "accent4";
41
+ readonly ACCENT5: "accent5";
42
+ readonly ACCENT6: "accent6";
43
+ readonly HYPERLINK: "hyperlink";
44
+ readonly FOLLOWED_HYPERLINK: "followedHyperlink";
45
+ readonly NONE: "none";
46
+ readonly BACKGROUND1: "background1";
47
+ readonly TEXT1: "text1";
48
+ readonly BACKGROUND2: "background2";
49
+ readonly TEXT2: "text2";
50
+ };
51
+ declare const ThemeFont: {
52
+ readonly MAJOR_EAST_ASIA: "majorEastAsia";
53
+ readonly MAJOR_BIDI: "majorBidi";
54
+ readonly MAJOR_ASCII: "majorAscii";
55
+ readonly MAJOR_H_ANSI: "majorHAnsi";
56
+ readonly MINOR_EAST_ASIA: "minorEastAsia";
57
+ readonly MINOR_BIDI: "minorBidi";
58
+ readonly MINOR_ASCII: "minorAscii";
59
+ readonly MINOR_H_ANSI: "minorHAnsi";
60
+ };
32
61
  //#endregion
33
62
  //#region src/file/table/grid.d.ts
34
63
  interface ITableGridChangeOptions {
@@ -58,11 +87,23 @@ interface IShadingAttributesProperties {
58
87
  readonly fill?: string;
59
88
  readonly color?: string;
60
89
  readonly type?: (typeof ShadingType)[keyof typeof ShadingType];
90
+ readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
91
+ readonly themeTint?: string;
92
+ readonly themeShade?: string;
93
+ readonly themeFill?: (typeof ThemeColor)[keyof typeof ThemeColor];
94
+ readonly themeFillTint?: string;
95
+ readonly themeFillShade?: string;
61
96
  }
62
97
  declare const createShading: ({
63
98
  fill,
64
99
  color,
65
- type
100
+ type,
101
+ themeColor,
102
+ themeTint,
103
+ themeShade,
104
+ themeFill,
105
+ themeFillTint,
106
+ themeFillShade
66
107
  }: IShadingAttributesProperties) => XmlComponent;
67
108
  declare const ShadingType: {
68
109
  readonly CLEAR: "clear";
@@ -124,6 +165,11 @@ declare const createTableWidthElement: (name: string, {
124
165
  interface IBorderOptions {
125
166
  readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
126
167
  readonly color?: string;
168
+ readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
169
+ readonly themeTint?: string;
170
+ readonly themeShade?: string;
171
+ readonly shadow?: boolean;
172
+ readonly frame?: boolean;
127
173
  readonly size?: number;
128
174
  readonly space?: number;
129
175
  }
@@ -131,7 +177,12 @@ declare const createBorderElement: (elementName: string, {
131
177
  color,
132
178
  size,
133
179
  space,
134
- style
180
+ style,
181
+ themeColor,
182
+ themeTint,
183
+ themeShade,
184
+ shadow,
185
+ frame
135
186
  }: IBorderOptions) => XmlComponent;
136
187
  declare const BorderStyle: {
137
188
  readonly SINGLE: "single";
@@ -295,11 +346,23 @@ declare class InsertedTextRun extends XmlComponent {
295
346
  //#endregion
296
347
  //#region src/file/paragraph/run/emphasis-mark.d.ts
297
348
  declare const EmphasisMarkType: {
349
+ readonly NONE: "none";
350
+ readonly COMMA: "comma";
351
+ readonly CIRCLE: "circle";
298
352
  readonly DOT: "dot";
353
+ readonly UNDER_DOT: "underDot";
299
354
  };
300
355
  declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
301
356
  declare const createDotEmphasisMark: () => XmlComponent;
302
357
  //#endregion
358
+ //#region src/file/paragraph/run/formatting.d.ts
359
+ interface IColorOptions {
360
+ readonly val?: string;
361
+ readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
362
+ readonly themeTint?: string;
363
+ readonly themeShade?: string;
364
+ }
365
+ //#endregion
303
366
  //#region src/file/paragraph/run/language.d.ts
304
367
  interface ILanguageOptions {
305
368
  readonly value?: string;
@@ -314,6 +377,10 @@ interface IFontAttributesProperties {
314
377
  readonly eastAsia?: string;
315
378
  readonly hAnsi?: string;
316
379
  readonly hint?: string;
380
+ readonly asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
381
+ readonly hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
382
+ readonly eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
383
+ readonly cstheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
317
384
  }
318
385
  declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
319
386
  //#endregion
@@ -338,7 +405,7 @@ declare const UnderlineType: {
338
405
  readonly WAVYDOUBLE: "wavyDouble";
339
406
  readonly NONE: "none";
340
407
  };
341
- declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string) => XmlComponent;
408
+ declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string, themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor], themeTint?: string, themeShade?: string) => XmlComponent;
342
409
  //#endregion
343
410
  //#region src/file/paragraph/run/properties.d.ts
344
411
  interface IFontOptions {
@@ -387,7 +454,7 @@ interface IRunStylePropertiesOptions {
387
454
  readonly emphasisMark?: {
388
455
  readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
389
456
  };
390
- readonly color?: string;
457
+ readonly color?: string | IColorOptions;
391
458
  readonly kern?: number | PositiveUniversalMeasure;
392
459
  readonly position?: UniversalMeasure;
393
460
  readonly size?: number | PositiveUniversalMeasure;
@@ -414,6 +481,11 @@ interface IRunStylePropertiesOptions {
414
481
  readonly specVanish?: boolean;
415
482
  readonly scale?: number;
416
483
  readonly math?: boolean;
484
+ readonly outline?: boolean;
485
+ readonly shadow?: boolean;
486
+ readonly webHidden?: boolean;
487
+ readonly fitText?: number;
488
+ readonly complexScript?: boolean;
417
489
  }
418
490
  type IRunPropertiesOptions = {
419
491
  readonly style?: string;
@@ -1963,19 +2035,27 @@ declare class ThematicBreak extends XmlComponent {
1963
2035
  //#region src/file/paragraph/formatting/indent.d.ts
1964
2036
  interface IIndentAttributesProperties {
1965
2037
  readonly start?: number | UniversalMeasure;
2038
+ readonly startChars?: number;
1966
2039
  readonly end?: number | UniversalMeasure;
2040
+ readonly endChars?: number;
1967
2041
  readonly left?: number | UniversalMeasure;
1968
2042
  readonly right?: number | UniversalMeasure;
1969
2043
  readonly hanging?: number | PositiveUniversalMeasure;
2044
+ readonly hangingChars?: number;
1970
2045
  readonly firstLine?: number | PositiveUniversalMeasure;
2046
+ readonly firstLineChars?: number;
1971
2047
  }
1972
2048
  declare const createIndent: ({
1973
2049
  start,
2050
+ startChars,
1974
2051
  end,
2052
+ endChars,
1975
2053
  left,
1976
2054
  right,
1977
2055
  hanging,
1978
- firstLine
2056
+ hangingChars,
2057
+ firstLine,
2058
+ firstLineChars
1979
2059
  }: IIndentAttributesProperties) => XmlComponent;
1980
2060
  //#endregion
1981
2061
  //#region src/file/paragraph/formatting/spacing.d.ts
@@ -1992,6 +2072,8 @@ interface ISpacingProperties {
1992
2072
  readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
1993
2073
  readonly beforeAutoSpacing?: boolean;
1994
2074
  readonly afterAutoSpacing?: boolean;
2075
+ readonly beforeLines?: number;
2076
+ readonly afterLines?: number;
1995
2077
  }
1996
2078
  declare const createSpacing: ({
1997
2079
  after,
@@ -1999,7 +2081,9 @@ declare const createSpacing: ({
1999
2081
  line,
2000
2082
  lineRule,
2001
2083
  beforeAutoSpacing,
2002
- afterAutoSpacing
2084
+ afterAutoSpacing,
2085
+ beforeLines,
2086
+ afterLines
2003
2087
  }: ISpacingProperties) => XmlComponent;
2004
2088
  //#endregion
2005
2089
  //#region src/file/paragraph/formatting/style.d.ts
@@ -2033,6 +2117,7 @@ declare const TabStopType: {
2033
2117
  };
2034
2118
  declare const LeaderType: {
2035
2119
  readonly DOT: "dot";
2120
+ readonly HEAVY: "heavy";
2036
2121
  readonly HYPHEN: "hyphen";
2037
2122
  readonly MIDDLE_DOT: "middleDot";
2038
2123
  readonly NONE: "none";
@@ -2605,6 +2690,9 @@ declare class Attributes extends XmlAttributeComponent<{
2605
2690
  readonly gutter?: string;
2606
2691
  readonly linePitch?: string;
2607
2692
  readonly pos?: string | number;
2693
+ readonly themeColor?: string;
2694
+ readonly themeTint?: string;
2695
+ readonly themeShade?: string;
2608
2696
  }> {
2609
2697
  protected readonly xmlKeys: {
2610
2698
  bottom: string;
@@ -2623,6 +2711,9 @@ declare class Attributes extends XmlAttributeComponent<{
2623
2711
  rsidSect: string;
2624
2712
  space: string;
2625
2713
  sz: string;
2714
+ themeColor: string;
2715
+ themeShade: string;
2716
+ themeTint: string;
2626
2717
  top: string;
2627
2718
  type: string;
2628
2719
  val: string;
@@ -3183,7 +3274,6 @@ declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
3183
3274
  declare const uniqueId: () => string;
3184
3275
  declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
3185
3276
  declare const uniqueUuid: () => string;
3186
- declare const encodeUtf8: (str: string) => Uint8Array;
3187
3277
  //#endregion
3188
3278
  //#region src/patcher/from-docx.d.ts
3189
3279
  type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob;
@@ -3229,4 +3319,4 @@ declare const patchDetector: ({
3229
3319
  data
3230
3320
  }: PatchDetectorOptions) => Promise<readonly string[]>;
3231
3321
  //#endregion
3232
- export { AbstractNumbering, AlignmentType, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDistance, IDocGridAttributesProperties, IDocumentAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelParagraphStylePropertiesOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathFractionOptions, IMathFunctionOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBorderAttributes, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, type IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, IRunStylePropertiesOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISpacingProperties, IStylesOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlAttribute, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAngledBrackets, MathComponent, MathCurlyBrackets, MathDegree, MathDenominator, MathFraction, MathFunction, MathFunctionName, MathFunctionProperties, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathNumerator, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, Percentage, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PositivePercentage, PositiveUniversalMeasure, PrettifyType, RelativeHorizontalPosition, RelativeMeasure, RelativeVerticalPosition, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, ThematicBreak, UnderlineType, UniqueNumericIdCreator, UniversalMeasure, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createColumns, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccentCharacter, createMathBase, createMathLimitLocation, createMathNAryProperties, createMathPreSubSuperScriptProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, encodeUtf8, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };
3322
+ export { AbstractNumbering, AlignmentType, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDistance, IDocGridAttributesProperties, IDocumentAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelParagraphStylePropertiesOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathFractionOptions, IMathFunctionOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBorderAttributes, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, type IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, IRunStylePropertiesOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISpacingProperties, IStylesOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlAttribute, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAngledBrackets, MathComponent, MathCurlyBrackets, MathDegree, MathDenominator, MathFraction, MathFunction, MathFunctionName, MathFunctionProperties, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathNumerator, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, Percentage, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PositivePercentage, PositiveUniversalMeasure, PrettifyType, RelativeHorizontalPosition, RelativeMeasure, RelativeVerticalPosition, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, ThematicBreak, ThemeColor, ThemeFont, UnderlineType, UniqueNumericIdCreator, UniversalMeasure, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createColumns, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccentCharacter, createMathBase, createMathLimitLocation, createMathNAryProperties, createMathPreSubSuperScriptProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { Element } from "xml-js";
2
2
  import { DataType } from "undio";
3
+ import { Buffer } from "\u0000polyfill-node.buffer";
3
4
  import { Readable } from "stream";
5
+
4
6
  //#region src/file/file-child.d.ts
5
7
  declare class FileChild extends XmlComponent {
6
8
  readonly fileChild: symbol;
@@ -29,6 +31,35 @@ declare const measurementOrPercentValue: (val: number | Percentage | UniversalMe
29
31
  declare const eighthPointMeasureValue: (val: number) => number;
30
32
  declare const pointMeasureValue: (val: number) => number;
31
33
  declare const dateTimeValue: (val: Date) => string;
34
+ declare const ThemeColor: {
35
+ readonly DARK1: "dark1";
36
+ readonly LIGHT1: "light1";
37
+ readonly DARK2: "dark2";
38
+ readonly LIGHT2: "light2";
39
+ readonly ACCENT1: "accent1";
40
+ readonly ACCENT2: "accent2";
41
+ readonly ACCENT3: "accent3";
42
+ readonly ACCENT4: "accent4";
43
+ readonly ACCENT5: "accent5";
44
+ readonly ACCENT6: "accent6";
45
+ readonly HYPERLINK: "hyperlink";
46
+ readonly FOLLOWED_HYPERLINK: "followedHyperlink";
47
+ readonly NONE: "none";
48
+ readonly BACKGROUND1: "background1";
49
+ readonly TEXT1: "text1";
50
+ readonly BACKGROUND2: "background2";
51
+ readonly TEXT2: "text2";
52
+ };
53
+ declare const ThemeFont: {
54
+ readonly MAJOR_EAST_ASIA: "majorEastAsia";
55
+ readonly MAJOR_BIDI: "majorBidi";
56
+ readonly MAJOR_ASCII: "majorAscii";
57
+ readonly MAJOR_H_ANSI: "majorHAnsi";
58
+ readonly MINOR_EAST_ASIA: "minorEastAsia";
59
+ readonly MINOR_BIDI: "minorBidi";
60
+ readonly MINOR_ASCII: "minorAscii";
61
+ readonly MINOR_H_ANSI: "minorHAnsi";
62
+ };
32
63
  //#endregion
33
64
  //#region src/file/table/grid.d.ts
34
65
  interface ITableGridChangeOptions {
@@ -58,11 +89,23 @@ interface IShadingAttributesProperties {
58
89
  readonly fill?: string;
59
90
  readonly color?: string;
60
91
  readonly type?: (typeof ShadingType)[keyof typeof ShadingType];
92
+ readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
93
+ readonly themeTint?: string;
94
+ readonly themeShade?: string;
95
+ readonly themeFill?: (typeof ThemeColor)[keyof typeof ThemeColor];
96
+ readonly themeFillTint?: string;
97
+ readonly themeFillShade?: string;
61
98
  }
62
99
  declare const createShading: ({
63
100
  fill,
64
101
  color,
65
- type
102
+ type,
103
+ themeColor,
104
+ themeTint,
105
+ themeShade,
106
+ themeFill,
107
+ themeFillTint,
108
+ themeFillShade
66
109
  }: IShadingAttributesProperties) => XmlComponent;
67
110
  declare const ShadingType: {
68
111
  readonly CLEAR: "clear";
@@ -124,6 +167,11 @@ declare const createTableWidthElement: (name: string, {
124
167
  interface IBorderOptions {
125
168
  readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
126
169
  readonly color?: string;
170
+ readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
171
+ readonly themeTint?: string;
172
+ readonly themeShade?: string;
173
+ readonly shadow?: boolean;
174
+ readonly frame?: boolean;
127
175
  readonly size?: number;
128
176
  readonly space?: number;
129
177
  }
@@ -131,7 +179,12 @@ declare const createBorderElement: (elementName: string, {
131
179
  color,
132
180
  size,
133
181
  space,
134
- style
182
+ style,
183
+ themeColor,
184
+ themeTint,
185
+ themeShade,
186
+ shadow,
187
+ frame
135
188
  }: IBorderOptions) => XmlComponent;
136
189
  declare const BorderStyle: {
137
190
  readonly SINGLE: "single";
@@ -295,11 +348,23 @@ declare class InsertedTextRun extends XmlComponent {
295
348
  //#endregion
296
349
  //#region src/file/paragraph/run/emphasis-mark.d.ts
297
350
  declare const EmphasisMarkType: {
351
+ readonly NONE: "none";
352
+ readonly COMMA: "comma";
353
+ readonly CIRCLE: "circle";
298
354
  readonly DOT: "dot";
355
+ readonly UNDER_DOT: "underDot";
299
356
  };
300
357
  declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
301
358
  declare const createDotEmphasisMark: () => XmlComponent;
302
359
  //#endregion
360
+ //#region src/file/paragraph/run/formatting.d.ts
361
+ interface IColorOptions {
362
+ readonly val?: string;
363
+ readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
364
+ readonly themeTint?: string;
365
+ readonly themeShade?: string;
366
+ }
367
+ //#endregion
303
368
  //#region src/file/paragraph/run/language.d.ts
304
369
  interface ILanguageOptions {
305
370
  readonly value?: string;
@@ -314,6 +379,10 @@ interface IFontAttributesProperties {
314
379
  readonly eastAsia?: string;
315
380
  readonly hAnsi?: string;
316
381
  readonly hint?: string;
382
+ readonly asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
383
+ readonly hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
384
+ readonly eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
385
+ readonly cstheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
317
386
  }
318
387
  declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
319
388
  //#endregion
@@ -338,7 +407,7 @@ declare const UnderlineType: {
338
407
  readonly WAVYDOUBLE: "wavyDouble";
339
408
  readonly NONE: "none";
340
409
  };
341
- declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string) => XmlComponent;
410
+ declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string, themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor], themeTint?: string, themeShade?: string) => XmlComponent;
342
411
  //#endregion
343
412
  //#region src/file/paragraph/run/properties.d.ts
344
413
  interface IFontOptions {
@@ -387,7 +456,7 @@ interface IRunStylePropertiesOptions {
387
456
  readonly emphasisMark?: {
388
457
  readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
389
458
  };
390
- readonly color?: string;
459
+ readonly color?: string | IColorOptions;
391
460
  readonly kern?: number | PositiveUniversalMeasure;
392
461
  readonly position?: UniversalMeasure;
393
462
  readonly size?: number | PositiveUniversalMeasure;
@@ -414,6 +483,11 @@ interface IRunStylePropertiesOptions {
414
483
  readonly specVanish?: boolean;
415
484
  readonly scale?: number;
416
485
  readonly math?: boolean;
486
+ readonly outline?: boolean;
487
+ readonly shadow?: boolean;
488
+ readonly webHidden?: boolean;
489
+ readonly fitText?: number;
490
+ readonly complexScript?: boolean;
417
491
  }
418
492
  type IRunPropertiesOptions = {
419
493
  readonly style?: string;
@@ -1963,19 +2037,27 @@ declare class ThematicBreak extends XmlComponent {
1963
2037
  //#region src/file/paragraph/formatting/indent.d.ts
1964
2038
  interface IIndentAttributesProperties {
1965
2039
  readonly start?: number | UniversalMeasure;
2040
+ readonly startChars?: number;
1966
2041
  readonly end?: number | UniversalMeasure;
2042
+ readonly endChars?: number;
1967
2043
  readonly left?: number | UniversalMeasure;
1968
2044
  readonly right?: number | UniversalMeasure;
1969
2045
  readonly hanging?: number | PositiveUniversalMeasure;
2046
+ readonly hangingChars?: number;
1970
2047
  readonly firstLine?: number | PositiveUniversalMeasure;
2048
+ readonly firstLineChars?: number;
1971
2049
  }
1972
2050
  declare const createIndent: ({
1973
2051
  start,
2052
+ startChars,
1974
2053
  end,
2054
+ endChars,
1975
2055
  left,
1976
2056
  right,
1977
2057
  hanging,
1978
- firstLine
2058
+ hangingChars,
2059
+ firstLine,
2060
+ firstLineChars
1979
2061
  }: IIndentAttributesProperties) => XmlComponent;
1980
2062
  //#endregion
1981
2063
  //#region src/file/paragraph/formatting/spacing.d.ts
@@ -1992,6 +2074,8 @@ interface ISpacingProperties {
1992
2074
  readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
1993
2075
  readonly beforeAutoSpacing?: boolean;
1994
2076
  readonly afterAutoSpacing?: boolean;
2077
+ readonly beforeLines?: number;
2078
+ readonly afterLines?: number;
1995
2079
  }
1996
2080
  declare const createSpacing: ({
1997
2081
  after,
@@ -1999,7 +2083,9 @@ declare const createSpacing: ({
1999
2083
  line,
2000
2084
  lineRule,
2001
2085
  beforeAutoSpacing,
2002
- afterAutoSpacing
2086
+ afterAutoSpacing,
2087
+ beforeLines,
2088
+ afterLines
2003
2089
  }: ISpacingProperties) => XmlComponent;
2004
2090
  //#endregion
2005
2091
  //#region src/file/paragraph/formatting/style.d.ts
@@ -2033,6 +2119,7 @@ declare const TabStopType: {
2033
2119
  };
2034
2120
  declare const LeaderType: {
2035
2121
  readonly DOT: "dot";
2122
+ readonly HEAVY: "heavy";
2036
2123
  readonly HYPHEN: "hyphen";
2037
2124
  readonly MIDDLE_DOT: "middleDot";
2038
2125
  readonly NONE: "none";
@@ -2605,6 +2692,9 @@ declare class Attributes extends XmlAttributeComponent<{
2605
2692
  readonly gutter?: string;
2606
2693
  readonly linePitch?: string;
2607
2694
  readonly pos?: string | number;
2695
+ readonly themeColor?: string;
2696
+ readonly themeTint?: string;
2697
+ readonly themeShade?: string;
2608
2698
  }> {
2609
2699
  protected readonly xmlKeys: {
2610
2700
  bottom: string;
@@ -2623,6 +2713,9 @@ declare class Attributes extends XmlAttributeComponent<{
2623
2713
  rsidSect: string;
2624
2714
  space: string;
2625
2715
  sz: string;
2716
+ themeColor: string;
2717
+ themeShade: string;
2718
+ themeTint: string;
2626
2719
  top: string;
2627
2720
  type: string;
2628
2721
  val: string;
@@ -3183,7 +3276,6 @@ declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
3183
3276
  declare const uniqueId: () => string;
3184
3277
  declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
3185
3278
  declare const uniqueUuid: () => string;
3186
- declare const encodeUtf8: (str: string) => Uint8Array;
3187
3279
  //#endregion
3188
3280
  //#region src/patcher/from-docx.d.ts
3189
3281
  type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob;
@@ -3229,4 +3321,4 @@ declare const patchDetector: ({
3229
3321
  data
3230
3322
  }: PatchDetectorOptions) => Promise<readonly string[]>;
3231
3323
  //#endregion
3232
- export { AbstractNumbering, AlignmentType, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDistance, IDocGridAttributesProperties, IDocumentAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelParagraphStylePropertiesOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathFractionOptions, IMathFunctionOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBorderAttributes, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, type IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, IRunStylePropertiesOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISpacingProperties, IStylesOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlAttribute, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAngledBrackets, MathComponent, MathCurlyBrackets, MathDegree, MathDenominator, MathFraction, MathFunction, MathFunctionName, MathFunctionProperties, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathNumerator, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, Percentage, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PositivePercentage, PositiveUniversalMeasure, PrettifyType, RelativeHorizontalPosition, RelativeMeasure, RelativeVerticalPosition, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, ThematicBreak, UnderlineType, UniqueNumericIdCreator, UniversalMeasure, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createColumns, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccentCharacter, createMathBase, createMathLimitLocation, createMathNAryProperties, createMathPreSubSuperScriptProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, encodeUtf8, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };
3324
+ export { AbstractNumbering, AlignmentType, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDistance, IDocGridAttributesProperties, IDocumentAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelParagraphStylePropertiesOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathFractionOptions, IMathFunctionOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBorderAttributes, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, type IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, IRunStylePropertiesOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISpacingProperties, IStylesOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlAttribute, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAngledBrackets, MathComponent, MathCurlyBrackets, MathDegree, MathDenominator, MathFraction, MathFunction, MathFunctionName, MathFunctionProperties, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathNumerator, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, Percentage, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PositivePercentage, PositiveUniversalMeasure, PrettifyType, RelativeHorizontalPosition, RelativeMeasure, RelativeVerticalPosition, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, ThematicBreak, ThemeColor, ThemeFont, UnderlineType, UniqueNumericIdCreator, UniversalMeasure, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createColumns, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccentCharacter, createMathBase, createMathLimitLocation, createMathNAryProperties, createMathPreSubSuperScriptProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };