docx-plus 0.0.4 → 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/LICENSE +1 -1
- package/README.md +11 -16
- package/dist/index.cjs +181 -28
- package/dist/index.d.cts +98 -8
- package/dist/index.d.mts +98 -8
- package/dist/index.iife.js +181 -28
- package/dist/index.mjs +180 -28
- package/dist/index.umd.js +181 -28
- package/package.json +1 -1
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
|
-
|
|
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,
|
|
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
|
@@ -31,6 +31,35 @@ declare const measurementOrPercentValue: (val: number | Percentage | UniversalMe
|
|
|
31
31
|
declare const eighthPointMeasureValue: (val: number) => number;
|
|
32
32
|
declare const pointMeasureValue: (val: number) => number;
|
|
33
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
|
+
};
|
|
34
63
|
//#endregion
|
|
35
64
|
//#region src/file/table/grid.d.ts
|
|
36
65
|
interface ITableGridChangeOptions {
|
|
@@ -60,11 +89,23 @@ interface IShadingAttributesProperties {
|
|
|
60
89
|
readonly fill?: string;
|
|
61
90
|
readonly color?: string;
|
|
62
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;
|
|
63
98
|
}
|
|
64
99
|
declare const createShading: ({
|
|
65
100
|
fill,
|
|
66
101
|
color,
|
|
67
|
-
type
|
|
102
|
+
type,
|
|
103
|
+
themeColor,
|
|
104
|
+
themeTint,
|
|
105
|
+
themeShade,
|
|
106
|
+
themeFill,
|
|
107
|
+
themeFillTint,
|
|
108
|
+
themeFillShade
|
|
68
109
|
}: IShadingAttributesProperties) => XmlComponent;
|
|
69
110
|
declare const ShadingType: {
|
|
70
111
|
readonly CLEAR: "clear";
|
|
@@ -126,6 +167,11 @@ declare const createTableWidthElement: (name: string, {
|
|
|
126
167
|
interface IBorderOptions {
|
|
127
168
|
readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
128
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;
|
|
129
175
|
readonly size?: number;
|
|
130
176
|
readonly space?: number;
|
|
131
177
|
}
|
|
@@ -133,7 +179,12 @@ declare const createBorderElement: (elementName: string, {
|
|
|
133
179
|
color,
|
|
134
180
|
size,
|
|
135
181
|
space,
|
|
136
|
-
style
|
|
182
|
+
style,
|
|
183
|
+
themeColor,
|
|
184
|
+
themeTint,
|
|
185
|
+
themeShade,
|
|
186
|
+
shadow,
|
|
187
|
+
frame
|
|
137
188
|
}: IBorderOptions) => XmlComponent;
|
|
138
189
|
declare const BorderStyle: {
|
|
139
190
|
readonly SINGLE: "single";
|
|
@@ -297,11 +348,23 @@ declare class InsertedTextRun extends XmlComponent {
|
|
|
297
348
|
//#endregion
|
|
298
349
|
//#region src/file/paragraph/run/emphasis-mark.d.ts
|
|
299
350
|
declare const EmphasisMarkType: {
|
|
351
|
+
readonly NONE: "none";
|
|
352
|
+
readonly COMMA: "comma";
|
|
353
|
+
readonly CIRCLE: "circle";
|
|
300
354
|
readonly DOT: "dot";
|
|
355
|
+
readonly UNDER_DOT: "underDot";
|
|
301
356
|
};
|
|
302
357
|
declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
|
|
303
358
|
declare const createDotEmphasisMark: () => XmlComponent;
|
|
304
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
|
|
305
368
|
//#region src/file/paragraph/run/language.d.ts
|
|
306
369
|
interface ILanguageOptions {
|
|
307
370
|
readonly value?: string;
|
|
@@ -316,6 +379,10 @@ interface IFontAttributesProperties {
|
|
|
316
379
|
readonly eastAsia?: string;
|
|
317
380
|
readonly hAnsi?: string;
|
|
318
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];
|
|
319
386
|
}
|
|
320
387
|
declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
|
|
321
388
|
//#endregion
|
|
@@ -340,7 +407,7 @@ declare const UnderlineType: {
|
|
|
340
407
|
readonly WAVYDOUBLE: "wavyDouble";
|
|
341
408
|
readonly NONE: "none";
|
|
342
409
|
};
|
|
343
|
-
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;
|
|
344
411
|
//#endregion
|
|
345
412
|
//#region src/file/paragraph/run/properties.d.ts
|
|
346
413
|
interface IFontOptions {
|
|
@@ -389,7 +456,7 @@ interface IRunStylePropertiesOptions {
|
|
|
389
456
|
readonly emphasisMark?: {
|
|
390
457
|
readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
391
458
|
};
|
|
392
|
-
readonly color?: string;
|
|
459
|
+
readonly color?: string | IColorOptions;
|
|
393
460
|
readonly kern?: number | PositiveUniversalMeasure;
|
|
394
461
|
readonly position?: UniversalMeasure;
|
|
395
462
|
readonly size?: number | PositiveUniversalMeasure;
|
|
@@ -416,6 +483,11 @@ interface IRunStylePropertiesOptions {
|
|
|
416
483
|
readonly specVanish?: boolean;
|
|
417
484
|
readonly scale?: number;
|
|
418
485
|
readonly math?: boolean;
|
|
486
|
+
readonly outline?: boolean;
|
|
487
|
+
readonly shadow?: boolean;
|
|
488
|
+
readonly webHidden?: boolean;
|
|
489
|
+
readonly fitText?: number;
|
|
490
|
+
readonly complexScript?: boolean;
|
|
419
491
|
}
|
|
420
492
|
type IRunPropertiesOptions = {
|
|
421
493
|
readonly style?: string;
|
|
@@ -1965,19 +2037,27 @@ declare class ThematicBreak extends XmlComponent {
|
|
|
1965
2037
|
//#region src/file/paragraph/formatting/indent.d.ts
|
|
1966
2038
|
interface IIndentAttributesProperties {
|
|
1967
2039
|
readonly start?: number | UniversalMeasure;
|
|
2040
|
+
readonly startChars?: number;
|
|
1968
2041
|
readonly end?: number | UniversalMeasure;
|
|
2042
|
+
readonly endChars?: number;
|
|
1969
2043
|
readonly left?: number | UniversalMeasure;
|
|
1970
2044
|
readonly right?: number | UniversalMeasure;
|
|
1971
2045
|
readonly hanging?: number | PositiveUniversalMeasure;
|
|
2046
|
+
readonly hangingChars?: number;
|
|
1972
2047
|
readonly firstLine?: number | PositiveUniversalMeasure;
|
|
2048
|
+
readonly firstLineChars?: number;
|
|
1973
2049
|
}
|
|
1974
2050
|
declare const createIndent: ({
|
|
1975
2051
|
start,
|
|
2052
|
+
startChars,
|
|
1976
2053
|
end,
|
|
2054
|
+
endChars,
|
|
1977
2055
|
left,
|
|
1978
2056
|
right,
|
|
1979
2057
|
hanging,
|
|
1980
|
-
|
|
2058
|
+
hangingChars,
|
|
2059
|
+
firstLine,
|
|
2060
|
+
firstLineChars
|
|
1981
2061
|
}: IIndentAttributesProperties) => XmlComponent;
|
|
1982
2062
|
//#endregion
|
|
1983
2063
|
//#region src/file/paragraph/formatting/spacing.d.ts
|
|
@@ -1994,6 +2074,8 @@ interface ISpacingProperties {
|
|
|
1994
2074
|
readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
|
|
1995
2075
|
readonly beforeAutoSpacing?: boolean;
|
|
1996
2076
|
readonly afterAutoSpacing?: boolean;
|
|
2077
|
+
readonly beforeLines?: number;
|
|
2078
|
+
readonly afterLines?: number;
|
|
1997
2079
|
}
|
|
1998
2080
|
declare const createSpacing: ({
|
|
1999
2081
|
after,
|
|
@@ -2001,7 +2083,9 @@ declare const createSpacing: ({
|
|
|
2001
2083
|
line,
|
|
2002
2084
|
lineRule,
|
|
2003
2085
|
beforeAutoSpacing,
|
|
2004
|
-
afterAutoSpacing
|
|
2086
|
+
afterAutoSpacing,
|
|
2087
|
+
beforeLines,
|
|
2088
|
+
afterLines
|
|
2005
2089
|
}: ISpacingProperties) => XmlComponent;
|
|
2006
2090
|
//#endregion
|
|
2007
2091
|
//#region src/file/paragraph/formatting/style.d.ts
|
|
@@ -2035,6 +2119,7 @@ declare const TabStopType: {
|
|
|
2035
2119
|
};
|
|
2036
2120
|
declare const LeaderType: {
|
|
2037
2121
|
readonly DOT: "dot";
|
|
2122
|
+
readonly HEAVY: "heavy";
|
|
2038
2123
|
readonly HYPHEN: "hyphen";
|
|
2039
2124
|
readonly MIDDLE_DOT: "middleDot";
|
|
2040
2125
|
readonly NONE: "none";
|
|
@@ -2607,6 +2692,9 @@ declare class Attributes extends XmlAttributeComponent<{
|
|
|
2607
2692
|
readonly gutter?: string;
|
|
2608
2693
|
readonly linePitch?: string;
|
|
2609
2694
|
readonly pos?: string | number;
|
|
2695
|
+
readonly themeColor?: string;
|
|
2696
|
+
readonly themeTint?: string;
|
|
2697
|
+
readonly themeShade?: string;
|
|
2610
2698
|
}> {
|
|
2611
2699
|
protected readonly xmlKeys: {
|
|
2612
2700
|
bottom: string;
|
|
@@ -2625,6 +2713,9 @@ declare class Attributes extends XmlAttributeComponent<{
|
|
|
2625
2713
|
rsidSect: string;
|
|
2626
2714
|
space: string;
|
|
2627
2715
|
sz: string;
|
|
2716
|
+
themeColor: string;
|
|
2717
|
+
themeShade: string;
|
|
2718
|
+
themeTint: string;
|
|
2628
2719
|
top: string;
|
|
2629
2720
|
type: string;
|
|
2630
2721
|
val: string;
|
|
@@ -3185,7 +3276,6 @@ declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
|
3185
3276
|
declare const uniqueId: () => string;
|
|
3186
3277
|
declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
|
|
3187
3278
|
declare const uniqueUuid: () => string;
|
|
3188
|
-
declare const encodeUtf8: (str: string) => Uint8Array;
|
|
3189
3279
|
//#endregion
|
|
3190
3280
|
//#region src/patcher/from-docx.d.ts
|
|
3191
3281
|
type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob;
|
|
@@ -3231,4 +3321,4 @@ declare const patchDetector: ({
|
|
|
3231
3321
|
data
|
|
3232
3322
|
}: PatchDetectorOptions) => Promise<readonly string[]>;
|
|
3233
3323
|
//#endregion
|
|
3234
|
-
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,
|
|
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 };
|