docx-plus 0.0.4 → 0.0.6

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.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";
@@ -295,13 +346,41 @@ declare class InsertedTextRun extends XmlComponent {
295
346
  constructor(options: IInsertedRunOptions);
296
347
  }
297
348
  //#endregion
349
+ //#region src/file/paragraph/run/east-asian-layout.d.ts
350
+ declare const CombineBracketsType: {
351
+ readonly NONE: "none";
352
+ readonly ROUND: "round";
353
+ readonly SQUARE: "square";
354
+ readonly ANGLE: "angle";
355
+ readonly CURLY: "curly";
356
+ };
357
+ interface IEastAsianLayoutOptions {
358
+ readonly id?: number;
359
+ readonly combine?: boolean;
360
+ readonly combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
361
+ readonly vert?: boolean;
362
+ readonly vertCompress?: boolean;
363
+ }
364
+ //#endregion
298
365
  //#region src/file/paragraph/run/emphasis-mark.d.ts
299
366
  declare const EmphasisMarkType: {
367
+ readonly NONE: "none";
368
+ readonly COMMA: "comma";
369
+ readonly CIRCLE: "circle";
300
370
  readonly DOT: "dot";
371
+ readonly UNDER_DOT: "underDot";
301
372
  };
302
373
  declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
303
374
  declare const createDotEmphasisMark: () => XmlComponent;
304
375
  //#endregion
376
+ //#region src/file/paragraph/run/formatting.d.ts
377
+ interface IColorOptions {
378
+ readonly val?: string;
379
+ readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
380
+ readonly themeTint?: string;
381
+ readonly themeShade?: string;
382
+ }
383
+ //#endregion
305
384
  //#region src/file/paragraph/run/language.d.ts
306
385
  interface ILanguageOptions {
307
386
  readonly value?: string;
@@ -316,6 +395,10 @@ interface IFontAttributesProperties {
316
395
  readonly eastAsia?: string;
317
396
  readonly hAnsi?: string;
318
397
  readonly hint?: string;
398
+ readonly asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
399
+ readonly hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
400
+ readonly eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
401
+ readonly cstheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
319
402
  }
320
403
  declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
321
404
  //#endregion
@@ -340,7 +423,7 @@ declare const UnderlineType: {
340
423
  readonly WAVYDOUBLE: "wavyDouble";
341
424
  readonly NONE: "none";
342
425
  };
343
- declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string) => XmlComponent;
426
+ declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string, themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor], themeTint?: string, themeShade?: string) => XmlComponent;
344
427
  //#endregion
345
428
  //#region src/file/paragraph/run/properties.d.ts
346
429
  interface IFontOptions {
@@ -389,7 +472,7 @@ interface IRunStylePropertiesOptions {
389
472
  readonly emphasisMark?: {
390
473
  readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
391
474
  };
392
- readonly color?: string;
475
+ readonly color?: string | IColorOptions;
393
476
  readonly kern?: number | PositiveUniversalMeasure;
394
477
  readonly position?: UniversalMeasure;
395
478
  readonly size?: number | PositiveUniversalMeasure;
@@ -416,6 +499,12 @@ interface IRunStylePropertiesOptions {
416
499
  readonly specVanish?: boolean;
417
500
  readonly scale?: number;
418
501
  readonly math?: boolean;
502
+ readonly outline?: boolean;
503
+ readonly shadow?: boolean;
504
+ readonly webHidden?: boolean;
505
+ readonly fitText?: number;
506
+ readonly complexScript?: boolean;
507
+ readonly eastAsianLayout?: IEastAsianLayoutOptions;
419
508
  }
420
509
  type IRunPropertiesOptions = {
421
510
  readonly style?: string;
@@ -1371,67 +1460,6 @@ declare const createDocumentGrid: ({
1371
1460
  charSpace
1372
1461
  }: IDocGridAttributesProperties) => XmlComponent;
1373
1462
  //#endregion
1374
- //#region src/file/document/body/section-properties/properties/line-number.d.ts
1375
- declare const LineNumberRestartFormat: {
1376
- readonly NEW_PAGE: "newPage";
1377
- readonly NEW_SECTION: "newSection";
1378
- readonly CONTINUOUS: "continuous";
1379
- };
1380
- interface ILineNumberAttributes {
1381
- readonly countBy?: number;
1382
- readonly start?: number;
1383
- readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
1384
- readonly distance?: number | PositiveUniversalMeasure;
1385
- }
1386
- declare const createLineNumberType: ({
1387
- countBy,
1388
- start,
1389
- restart,
1390
- distance
1391
- }: ILineNumberAttributes) => XmlComponent;
1392
- //#endregion
1393
- //#region src/file/document/body/section-properties/properties/page-borders.d.ts
1394
- declare const PageBorderDisplay: {
1395
- readonly ALL_PAGES: "allPages";
1396
- readonly FIRST_PAGE: "firstPage";
1397
- readonly NOT_FIRST_PAGE: "notFirstPage";
1398
- };
1399
- declare const PageBorderOffsetFrom: {
1400
- readonly PAGE: "page";
1401
- readonly TEXT: "text";
1402
- };
1403
- declare const PageBorderZOrder: {
1404
- readonly BACK: "back";
1405
- readonly FRONT: "front";
1406
- };
1407
- interface IPageBorderAttributes {
1408
- readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
1409
- readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
1410
- readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
1411
- }
1412
- interface IPageBordersOptions {
1413
- readonly pageBorders?: IPageBorderAttributes;
1414
- readonly pageBorderTop?: IBorderOptions;
1415
- readonly pageBorderRight?: IBorderOptions;
1416
- readonly pageBorderBottom?: IBorderOptions;
1417
- readonly pageBorderLeft?: IBorderOptions;
1418
- }
1419
- declare class PageBorders extends IgnoreIfEmptyXmlComponent {
1420
- constructor(options?: IPageBordersOptions);
1421
- }
1422
- //#endregion
1423
- //#region src/file/document/body/section-properties/properties/page-margin.d.ts
1424
- interface IPageMarginAttributes {
1425
- readonly top?: number | UniversalMeasure;
1426
- readonly right?: number | PositiveUniversalMeasure;
1427
- readonly bottom?: number | UniversalMeasure;
1428
- readonly left?: number | PositiveUniversalMeasure;
1429
- readonly header?: number | PositiveUniversalMeasure;
1430
- readonly footer?: number | PositiveUniversalMeasure;
1431
- readonly gutter?: number | PositiveUniversalMeasure;
1432
- }
1433
- declare const createPageMargin: (top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure) => XmlComponent;
1434
- //#endregion
1435
1463
  //#region src/file/shared/number-format.d.ts
1436
1464
  declare const NumberFormat: {
1437
1465
  readonly AIUEO: "aiueo";
@@ -1498,6 +1526,96 @@ declare const NumberFormat: {
1498
1526
  readonly VIETNAMESE_COUNTING: "vietnameseCounting";
1499
1527
  };
1500
1528
  //#endregion
1529
+ //#region src/file/document/body/section-properties/properties/footnote-endnote-properties.d.ts
1530
+ declare const FootnotePositionType: {
1531
+ readonly PAGE_BOTTOM: "pageBottom";
1532
+ readonly BENEATH_TEXT: "beneathText";
1533
+ readonly SECT_END: "sectEnd";
1534
+ readonly DOC_END: "docEnd";
1535
+ };
1536
+ declare const EndnotePositionType: {
1537
+ readonly SECT_END: "sectEnd";
1538
+ readonly DOC_END: "docEnd";
1539
+ };
1540
+ declare const NumberRestartType: {
1541
+ readonly CONTINUOUS: "continuous";
1542
+ readonly EACH_SECT: "eachSect";
1543
+ readonly EACH_PAGE: "eachPage";
1544
+ };
1545
+ interface INumberPropertiesOptions {
1546
+ readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
1547
+ readonly format?: string;
1548
+ readonly numStart?: number;
1549
+ readonly numRestart?: (typeof NumberRestartType)[keyof typeof NumberRestartType];
1550
+ }
1551
+ interface IFootnotePropertiesOptions extends INumberPropertiesOptions {
1552
+ readonly pos?: (typeof FootnotePositionType)[keyof typeof FootnotePositionType];
1553
+ }
1554
+ interface IEndnotePropertiesOptions extends INumberPropertiesOptions {
1555
+ readonly pos?: (typeof EndnotePositionType)[keyof typeof EndnotePositionType];
1556
+ }
1557
+ //#endregion
1558
+ //#region src/file/document/body/section-properties/properties/line-number.d.ts
1559
+ declare const LineNumberRestartFormat: {
1560
+ readonly NEW_PAGE: "newPage";
1561
+ readonly NEW_SECTION: "newSection";
1562
+ readonly CONTINUOUS: "continuous";
1563
+ };
1564
+ interface ILineNumberAttributes {
1565
+ readonly countBy?: number;
1566
+ readonly start?: number;
1567
+ readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
1568
+ readonly distance?: number | PositiveUniversalMeasure;
1569
+ }
1570
+ declare const createLineNumberType: ({
1571
+ countBy,
1572
+ start,
1573
+ restart,
1574
+ distance
1575
+ }: ILineNumberAttributes) => XmlComponent;
1576
+ //#endregion
1577
+ //#region src/file/document/body/section-properties/properties/page-borders.d.ts
1578
+ declare const PageBorderDisplay: {
1579
+ readonly ALL_PAGES: "allPages";
1580
+ readonly FIRST_PAGE: "firstPage";
1581
+ readonly NOT_FIRST_PAGE: "notFirstPage";
1582
+ };
1583
+ declare const PageBorderOffsetFrom: {
1584
+ readonly PAGE: "page";
1585
+ readonly TEXT: "text";
1586
+ };
1587
+ declare const PageBorderZOrder: {
1588
+ readonly BACK: "back";
1589
+ readonly FRONT: "front";
1590
+ };
1591
+ interface IPageBorderAttributes {
1592
+ readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
1593
+ readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
1594
+ readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
1595
+ }
1596
+ interface IPageBordersOptions {
1597
+ readonly pageBorders?: IPageBorderAttributes;
1598
+ readonly pageBorderTop?: IBorderOptions;
1599
+ readonly pageBorderRight?: IBorderOptions;
1600
+ readonly pageBorderBottom?: IBorderOptions;
1601
+ readonly pageBorderLeft?: IBorderOptions;
1602
+ }
1603
+ declare class PageBorders extends IgnoreIfEmptyXmlComponent {
1604
+ constructor(options?: IPageBordersOptions);
1605
+ }
1606
+ //#endregion
1607
+ //#region src/file/document/body/section-properties/properties/page-margin.d.ts
1608
+ interface IPageMarginAttributes {
1609
+ readonly top?: number | UniversalMeasure;
1610
+ readonly right?: number | PositiveUniversalMeasure;
1611
+ readonly bottom?: number | UniversalMeasure;
1612
+ readonly left?: number | PositiveUniversalMeasure;
1613
+ readonly header?: number | PositiveUniversalMeasure;
1614
+ readonly footer?: number | PositiveUniversalMeasure;
1615
+ readonly gutter?: number | PositiveUniversalMeasure;
1616
+ }
1617
+ declare const createPageMargin: (top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure) => XmlComponent;
1618
+ //#endregion
1501
1619
  //#region src/file/document/body/section-properties/properties/page-number.d.ts
1502
1620
  declare const PageNumberSeparator: {
1503
1621
  readonly HYPHEN: "hyphen";
@@ -1510,11 +1628,13 @@ interface IPageNumberTypeAttributes {
1510
1628
  readonly start?: number;
1511
1629
  readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
1512
1630
  readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
1631
+ readonly chapStyle?: number;
1513
1632
  }
1514
1633
  declare const createPageNumberType: ({
1515
1634
  start,
1516
1635
  formatType,
1517
- separator
1636
+ separator,
1637
+ chapStyle
1518
1638
  }: IPageNumberTypeAttributes) => XmlComponent;
1519
1639
  //#endregion
1520
1640
  //#region src/file/document/body/section-properties/properties/page-size.d.ts
@@ -1576,6 +1696,15 @@ interface ISectionPropertiesOptionsBase {
1576
1696
  readonly verticalAlign?: SectionVerticalAlign;
1577
1697
  readonly column?: IColumnsAttributes;
1578
1698
  readonly type?: (typeof SectionType)[keyof typeof SectionType];
1699
+ readonly noEndnote?: boolean;
1700
+ readonly bidi?: boolean;
1701
+ readonly rtlGutter?: boolean;
1702
+ readonly paperSrc?: {
1703
+ readonly first?: number;
1704
+ readonly other?: number;
1705
+ };
1706
+ readonly footnotePr?: IFootnotePropertiesOptions;
1707
+ readonly endnotePr?: IEndnotePropertiesOptions;
1579
1708
  }
1580
1709
  type ISectionPropertiesChangeOptions = IChangedAttributesProperties & ISectionPropertiesOptionsBase;
1581
1710
  type ISectionPropertiesOptions = {
@@ -1628,7 +1757,13 @@ declare class SectionProperties extends XmlComponent {
1628
1757
  verticalAlign,
1629
1758
  column,
1630
1759
  type,
1631
- revision
1760
+ revision,
1761
+ noEndnote,
1762
+ bidi,
1763
+ rtlGutter,
1764
+ paperSrc,
1765
+ footnotePr,
1766
+ endnotePr
1632
1767
  }?: ISectionPropertiesOptions);
1633
1768
  private addHeaderFooterGroup;
1634
1769
  }
@@ -1965,19 +2100,27 @@ declare class ThematicBreak extends XmlComponent {
1965
2100
  //#region src/file/paragraph/formatting/indent.d.ts
1966
2101
  interface IIndentAttributesProperties {
1967
2102
  readonly start?: number | UniversalMeasure;
2103
+ readonly startChars?: number;
1968
2104
  readonly end?: number | UniversalMeasure;
2105
+ readonly endChars?: number;
1969
2106
  readonly left?: number | UniversalMeasure;
1970
2107
  readonly right?: number | UniversalMeasure;
1971
2108
  readonly hanging?: number | PositiveUniversalMeasure;
2109
+ readonly hangingChars?: number;
1972
2110
  readonly firstLine?: number | PositiveUniversalMeasure;
2111
+ readonly firstLineChars?: number;
1973
2112
  }
1974
2113
  declare const createIndent: ({
1975
2114
  start,
2115
+ startChars,
1976
2116
  end,
2117
+ endChars,
1977
2118
  left,
1978
2119
  right,
1979
2120
  hanging,
1980
- firstLine
2121
+ hangingChars,
2122
+ firstLine,
2123
+ firstLineChars
1981
2124
  }: IIndentAttributesProperties) => XmlComponent;
1982
2125
  //#endregion
1983
2126
  //#region src/file/paragraph/formatting/spacing.d.ts
@@ -1994,6 +2137,8 @@ interface ISpacingProperties {
1994
2137
  readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
1995
2138
  readonly beforeAutoSpacing?: boolean;
1996
2139
  readonly afterAutoSpacing?: boolean;
2140
+ readonly beforeLines?: number;
2141
+ readonly afterLines?: number;
1997
2142
  }
1998
2143
  declare const createSpacing: ({
1999
2144
  after,
@@ -2001,7 +2146,9 @@ declare const createSpacing: ({
2001
2146
  line,
2002
2147
  lineRule,
2003
2148
  beforeAutoSpacing,
2004
- afterAutoSpacing
2149
+ afterAutoSpacing,
2150
+ beforeLines,
2151
+ afterLines
2005
2152
  }: ISpacingProperties) => XmlComponent;
2006
2153
  //#endregion
2007
2154
  //#region src/file/paragraph/formatting/style.d.ts
@@ -2035,6 +2182,7 @@ declare const TabStopType: {
2035
2182
  };
2036
2183
  declare const LeaderType: {
2037
2184
  readonly DOT: "dot";
2185
+ readonly HEAVY: "heavy";
2038
2186
  readonly HYPHEN: "hyphen";
2039
2187
  readonly MIDDLE_DOT: "middleDot";
2040
2188
  readonly NONE: "none";
@@ -2104,6 +2252,20 @@ type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
2104
2252
  declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
2105
2253
  //#endregion
2106
2254
  //#region src/file/paragraph/properties.d.ts
2255
+ declare const TextAlignmentType: {
2256
+ readonly TOP: "top";
2257
+ readonly CENTER: "center";
2258
+ readonly BASELINE: "baseline";
2259
+ readonly BOTTOM: "bottom";
2260
+ readonly AUTO: "auto";
2261
+ };
2262
+ declare const TextboxTightWrapType: {
2263
+ readonly NONE: "none";
2264
+ readonly ALL_LINES: "allLines";
2265
+ readonly FIRST_AND_LAST_LINE: "firstAndLastLine";
2266
+ readonly FIRST_LINE_ONLY: "firstLineOnly";
2267
+ readonly LAST_LINE_ONLY: "lastLineOnly";
2268
+ };
2107
2269
  interface ILevelParagraphStylePropertiesOptions {
2108
2270
  readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
2109
2271
  readonly thematicBreak?: boolean;
@@ -2143,6 +2305,15 @@ type IParagraphPropertiesOptionsBase = {
2143
2305
  readonly scale?: number;
2144
2306
  readonly autoSpaceEastAsianText?: boolean;
2145
2307
  readonly run?: IParagraphRunOptions;
2308
+ readonly suppressAutoHyphens?: boolean;
2309
+ readonly adjustRightInd?: boolean;
2310
+ readonly snapToGrid?: boolean;
2311
+ readonly mirrorIndents?: boolean;
2312
+ readonly kinsoku?: boolean;
2313
+ readonly topLinePunct?: boolean;
2314
+ readonly autoSpaceDE?: boolean;
2315
+ readonly textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
2316
+ readonly textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
2146
2317
  } & IParagraphStylePropertiesOptions;
2147
2318
  type IParagraphPropertiesChangeOptions = IChangedAttributesProperties & IParagraphPropertiesOptionsBase;
2148
2319
  type IParagraphPropertiesOptions = {
@@ -2607,6 +2778,9 @@ declare class Attributes extends XmlAttributeComponent<{
2607
2778
  readonly gutter?: string;
2608
2779
  readonly linePitch?: string;
2609
2780
  readonly pos?: string | number;
2781
+ readonly themeColor?: string;
2782
+ readonly themeTint?: string;
2783
+ readonly themeShade?: string;
2610
2784
  }> {
2611
2785
  protected readonly xmlKeys: {
2612
2786
  bottom: string;
@@ -2625,6 +2799,9 @@ declare class Attributes extends XmlAttributeComponent<{
2625
2799
  rsidSect: string;
2626
2800
  space: string;
2627
2801
  sz: string;
2802
+ themeColor: string;
2803
+ themeShade: string;
2804
+ themeTint: string;
2628
2805
  top: string;
2629
2806
  type: string;
2630
2807
  val: string;
@@ -3185,7 +3362,6 @@ declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
3185
3362
  declare const uniqueId: () => string;
3186
3363
  declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
3187
3364
  declare const uniqueUuid: () => string;
3188
- declare const encodeUtf8: (str: string) => Uint8Array;
3189
3365
  //#endregion
3190
3366
  //#region src/patcher/from-docx.d.ts
3191
3367
  type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob;
@@ -3231,4 +3407,4 @@ declare const patchDetector: ({
3231
3407
  data
3232
3408
  }: PatchDetectorOptions) => Promise<readonly string[]>;
3233
3409
  //#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, encodeUtf8, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };
3410
+ 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, TextAlignmentType, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, 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 };