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.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";
@@ -293,13 +344,41 @@ declare class InsertedTextRun extends XmlComponent {
293
344
  constructor(options: IInsertedRunOptions);
294
345
  }
295
346
  //#endregion
347
+ //#region src/file/paragraph/run/east-asian-layout.d.ts
348
+ declare const CombineBracketsType: {
349
+ readonly NONE: "none";
350
+ readonly ROUND: "round";
351
+ readonly SQUARE: "square";
352
+ readonly ANGLE: "angle";
353
+ readonly CURLY: "curly";
354
+ };
355
+ interface IEastAsianLayoutOptions {
356
+ readonly id?: number;
357
+ readonly combine?: boolean;
358
+ readonly combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
359
+ readonly vert?: boolean;
360
+ readonly vertCompress?: boolean;
361
+ }
362
+ //#endregion
296
363
  //#region src/file/paragraph/run/emphasis-mark.d.ts
297
364
  declare const EmphasisMarkType: {
365
+ readonly NONE: "none";
366
+ readonly COMMA: "comma";
367
+ readonly CIRCLE: "circle";
298
368
  readonly DOT: "dot";
369
+ readonly UNDER_DOT: "underDot";
299
370
  };
300
371
  declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
301
372
  declare const createDotEmphasisMark: () => XmlComponent;
302
373
  //#endregion
374
+ //#region src/file/paragraph/run/formatting.d.ts
375
+ interface IColorOptions {
376
+ readonly val?: string;
377
+ readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
378
+ readonly themeTint?: string;
379
+ readonly themeShade?: string;
380
+ }
381
+ //#endregion
303
382
  //#region src/file/paragraph/run/language.d.ts
304
383
  interface ILanguageOptions {
305
384
  readonly value?: string;
@@ -314,6 +393,10 @@ interface IFontAttributesProperties {
314
393
  readonly eastAsia?: string;
315
394
  readonly hAnsi?: string;
316
395
  readonly hint?: string;
396
+ readonly asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
397
+ readonly hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
398
+ readonly eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
399
+ readonly cstheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
317
400
  }
318
401
  declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
319
402
  //#endregion
@@ -338,7 +421,7 @@ declare const UnderlineType: {
338
421
  readonly WAVYDOUBLE: "wavyDouble";
339
422
  readonly NONE: "none";
340
423
  };
341
- declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string) => XmlComponent;
424
+ declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string, themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor], themeTint?: string, themeShade?: string) => XmlComponent;
342
425
  //#endregion
343
426
  //#region src/file/paragraph/run/properties.d.ts
344
427
  interface IFontOptions {
@@ -387,7 +470,7 @@ interface IRunStylePropertiesOptions {
387
470
  readonly emphasisMark?: {
388
471
  readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
389
472
  };
390
- readonly color?: string;
473
+ readonly color?: string | IColorOptions;
391
474
  readonly kern?: number | PositiveUniversalMeasure;
392
475
  readonly position?: UniversalMeasure;
393
476
  readonly size?: number | PositiveUniversalMeasure;
@@ -414,6 +497,12 @@ interface IRunStylePropertiesOptions {
414
497
  readonly specVanish?: boolean;
415
498
  readonly scale?: number;
416
499
  readonly math?: boolean;
500
+ readonly outline?: boolean;
501
+ readonly shadow?: boolean;
502
+ readonly webHidden?: boolean;
503
+ readonly fitText?: number;
504
+ readonly complexScript?: boolean;
505
+ readonly eastAsianLayout?: IEastAsianLayoutOptions;
417
506
  }
418
507
  type IRunPropertiesOptions = {
419
508
  readonly style?: string;
@@ -1369,67 +1458,6 @@ declare const createDocumentGrid: ({
1369
1458
  charSpace
1370
1459
  }: IDocGridAttributesProperties) => XmlComponent;
1371
1460
  //#endregion
1372
- //#region src/file/document/body/section-properties/properties/line-number.d.ts
1373
- declare const LineNumberRestartFormat: {
1374
- readonly NEW_PAGE: "newPage";
1375
- readonly NEW_SECTION: "newSection";
1376
- readonly CONTINUOUS: "continuous";
1377
- };
1378
- interface ILineNumberAttributes {
1379
- readonly countBy?: number;
1380
- readonly start?: number;
1381
- readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
1382
- readonly distance?: number | PositiveUniversalMeasure;
1383
- }
1384
- declare const createLineNumberType: ({
1385
- countBy,
1386
- start,
1387
- restart,
1388
- distance
1389
- }: ILineNumberAttributes) => XmlComponent;
1390
- //#endregion
1391
- //#region src/file/document/body/section-properties/properties/page-borders.d.ts
1392
- declare const PageBorderDisplay: {
1393
- readonly ALL_PAGES: "allPages";
1394
- readonly FIRST_PAGE: "firstPage";
1395
- readonly NOT_FIRST_PAGE: "notFirstPage";
1396
- };
1397
- declare const PageBorderOffsetFrom: {
1398
- readonly PAGE: "page";
1399
- readonly TEXT: "text";
1400
- };
1401
- declare const PageBorderZOrder: {
1402
- readonly BACK: "back";
1403
- readonly FRONT: "front";
1404
- };
1405
- interface IPageBorderAttributes {
1406
- readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
1407
- readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
1408
- readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
1409
- }
1410
- interface IPageBordersOptions {
1411
- readonly pageBorders?: IPageBorderAttributes;
1412
- readonly pageBorderTop?: IBorderOptions;
1413
- readonly pageBorderRight?: IBorderOptions;
1414
- readonly pageBorderBottom?: IBorderOptions;
1415
- readonly pageBorderLeft?: IBorderOptions;
1416
- }
1417
- declare class PageBorders extends IgnoreIfEmptyXmlComponent {
1418
- constructor(options?: IPageBordersOptions);
1419
- }
1420
- //#endregion
1421
- //#region src/file/document/body/section-properties/properties/page-margin.d.ts
1422
- interface IPageMarginAttributes {
1423
- readonly top?: number | UniversalMeasure;
1424
- readonly right?: number | PositiveUniversalMeasure;
1425
- readonly bottom?: number | UniversalMeasure;
1426
- readonly left?: number | PositiveUniversalMeasure;
1427
- readonly header?: number | PositiveUniversalMeasure;
1428
- readonly footer?: number | PositiveUniversalMeasure;
1429
- readonly gutter?: number | PositiveUniversalMeasure;
1430
- }
1431
- 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;
1432
- //#endregion
1433
1461
  //#region src/file/shared/number-format.d.ts
1434
1462
  declare const NumberFormat: {
1435
1463
  readonly AIUEO: "aiueo";
@@ -1496,6 +1524,96 @@ declare const NumberFormat: {
1496
1524
  readonly VIETNAMESE_COUNTING: "vietnameseCounting";
1497
1525
  };
1498
1526
  //#endregion
1527
+ //#region src/file/document/body/section-properties/properties/footnote-endnote-properties.d.ts
1528
+ declare const FootnotePositionType: {
1529
+ readonly PAGE_BOTTOM: "pageBottom";
1530
+ readonly BENEATH_TEXT: "beneathText";
1531
+ readonly SECT_END: "sectEnd";
1532
+ readonly DOC_END: "docEnd";
1533
+ };
1534
+ declare const EndnotePositionType: {
1535
+ readonly SECT_END: "sectEnd";
1536
+ readonly DOC_END: "docEnd";
1537
+ };
1538
+ declare const NumberRestartType: {
1539
+ readonly CONTINUOUS: "continuous";
1540
+ readonly EACH_SECT: "eachSect";
1541
+ readonly EACH_PAGE: "eachPage";
1542
+ };
1543
+ interface INumberPropertiesOptions {
1544
+ readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
1545
+ readonly format?: string;
1546
+ readonly numStart?: number;
1547
+ readonly numRestart?: (typeof NumberRestartType)[keyof typeof NumberRestartType];
1548
+ }
1549
+ interface IFootnotePropertiesOptions extends INumberPropertiesOptions {
1550
+ readonly pos?: (typeof FootnotePositionType)[keyof typeof FootnotePositionType];
1551
+ }
1552
+ interface IEndnotePropertiesOptions extends INumberPropertiesOptions {
1553
+ readonly pos?: (typeof EndnotePositionType)[keyof typeof EndnotePositionType];
1554
+ }
1555
+ //#endregion
1556
+ //#region src/file/document/body/section-properties/properties/line-number.d.ts
1557
+ declare const LineNumberRestartFormat: {
1558
+ readonly NEW_PAGE: "newPage";
1559
+ readonly NEW_SECTION: "newSection";
1560
+ readonly CONTINUOUS: "continuous";
1561
+ };
1562
+ interface ILineNumberAttributes {
1563
+ readonly countBy?: number;
1564
+ readonly start?: number;
1565
+ readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
1566
+ readonly distance?: number | PositiveUniversalMeasure;
1567
+ }
1568
+ declare const createLineNumberType: ({
1569
+ countBy,
1570
+ start,
1571
+ restart,
1572
+ distance
1573
+ }: ILineNumberAttributes) => XmlComponent;
1574
+ //#endregion
1575
+ //#region src/file/document/body/section-properties/properties/page-borders.d.ts
1576
+ declare const PageBorderDisplay: {
1577
+ readonly ALL_PAGES: "allPages";
1578
+ readonly FIRST_PAGE: "firstPage";
1579
+ readonly NOT_FIRST_PAGE: "notFirstPage";
1580
+ };
1581
+ declare const PageBorderOffsetFrom: {
1582
+ readonly PAGE: "page";
1583
+ readonly TEXT: "text";
1584
+ };
1585
+ declare const PageBorderZOrder: {
1586
+ readonly BACK: "back";
1587
+ readonly FRONT: "front";
1588
+ };
1589
+ interface IPageBorderAttributes {
1590
+ readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
1591
+ readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
1592
+ readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
1593
+ }
1594
+ interface IPageBordersOptions {
1595
+ readonly pageBorders?: IPageBorderAttributes;
1596
+ readonly pageBorderTop?: IBorderOptions;
1597
+ readonly pageBorderRight?: IBorderOptions;
1598
+ readonly pageBorderBottom?: IBorderOptions;
1599
+ readonly pageBorderLeft?: IBorderOptions;
1600
+ }
1601
+ declare class PageBorders extends IgnoreIfEmptyXmlComponent {
1602
+ constructor(options?: IPageBordersOptions);
1603
+ }
1604
+ //#endregion
1605
+ //#region src/file/document/body/section-properties/properties/page-margin.d.ts
1606
+ interface IPageMarginAttributes {
1607
+ readonly top?: number | UniversalMeasure;
1608
+ readonly right?: number | PositiveUniversalMeasure;
1609
+ readonly bottom?: number | UniversalMeasure;
1610
+ readonly left?: number | PositiveUniversalMeasure;
1611
+ readonly header?: number | PositiveUniversalMeasure;
1612
+ readonly footer?: number | PositiveUniversalMeasure;
1613
+ readonly gutter?: number | PositiveUniversalMeasure;
1614
+ }
1615
+ 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;
1616
+ //#endregion
1499
1617
  //#region src/file/document/body/section-properties/properties/page-number.d.ts
1500
1618
  declare const PageNumberSeparator: {
1501
1619
  readonly HYPHEN: "hyphen";
@@ -1508,11 +1626,13 @@ interface IPageNumberTypeAttributes {
1508
1626
  readonly start?: number;
1509
1627
  readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
1510
1628
  readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
1629
+ readonly chapStyle?: number;
1511
1630
  }
1512
1631
  declare const createPageNumberType: ({
1513
1632
  start,
1514
1633
  formatType,
1515
- separator
1634
+ separator,
1635
+ chapStyle
1516
1636
  }: IPageNumberTypeAttributes) => XmlComponent;
1517
1637
  //#endregion
1518
1638
  //#region src/file/document/body/section-properties/properties/page-size.d.ts
@@ -1574,6 +1694,15 @@ interface ISectionPropertiesOptionsBase {
1574
1694
  readonly verticalAlign?: SectionVerticalAlign;
1575
1695
  readonly column?: IColumnsAttributes;
1576
1696
  readonly type?: (typeof SectionType)[keyof typeof SectionType];
1697
+ readonly noEndnote?: boolean;
1698
+ readonly bidi?: boolean;
1699
+ readonly rtlGutter?: boolean;
1700
+ readonly paperSrc?: {
1701
+ readonly first?: number;
1702
+ readonly other?: number;
1703
+ };
1704
+ readonly footnotePr?: IFootnotePropertiesOptions;
1705
+ readonly endnotePr?: IEndnotePropertiesOptions;
1577
1706
  }
1578
1707
  type ISectionPropertiesChangeOptions = IChangedAttributesProperties & ISectionPropertiesOptionsBase;
1579
1708
  type ISectionPropertiesOptions = {
@@ -1626,7 +1755,13 @@ declare class SectionProperties extends XmlComponent {
1626
1755
  verticalAlign,
1627
1756
  column,
1628
1757
  type,
1629
- revision
1758
+ revision,
1759
+ noEndnote,
1760
+ bidi,
1761
+ rtlGutter,
1762
+ paperSrc,
1763
+ footnotePr,
1764
+ endnotePr
1630
1765
  }?: ISectionPropertiesOptions);
1631
1766
  private addHeaderFooterGroup;
1632
1767
  }
@@ -1963,19 +2098,27 @@ declare class ThematicBreak extends XmlComponent {
1963
2098
  //#region src/file/paragraph/formatting/indent.d.ts
1964
2099
  interface IIndentAttributesProperties {
1965
2100
  readonly start?: number | UniversalMeasure;
2101
+ readonly startChars?: number;
1966
2102
  readonly end?: number | UniversalMeasure;
2103
+ readonly endChars?: number;
1967
2104
  readonly left?: number | UniversalMeasure;
1968
2105
  readonly right?: number | UniversalMeasure;
1969
2106
  readonly hanging?: number | PositiveUniversalMeasure;
2107
+ readonly hangingChars?: number;
1970
2108
  readonly firstLine?: number | PositiveUniversalMeasure;
2109
+ readonly firstLineChars?: number;
1971
2110
  }
1972
2111
  declare const createIndent: ({
1973
2112
  start,
2113
+ startChars,
1974
2114
  end,
2115
+ endChars,
1975
2116
  left,
1976
2117
  right,
1977
2118
  hanging,
1978
- firstLine
2119
+ hangingChars,
2120
+ firstLine,
2121
+ firstLineChars
1979
2122
  }: IIndentAttributesProperties) => XmlComponent;
1980
2123
  //#endregion
1981
2124
  //#region src/file/paragraph/formatting/spacing.d.ts
@@ -1992,6 +2135,8 @@ interface ISpacingProperties {
1992
2135
  readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
1993
2136
  readonly beforeAutoSpacing?: boolean;
1994
2137
  readonly afterAutoSpacing?: boolean;
2138
+ readonly beforeLines?: number;
2139
+ readonly afterLines?: number;
1995
2140
  }
1996
2141
  declare const createSpacing: ({
1997
2142
  after,
@@ -1999,7 +2144,9 @@ declare const createSpacing: ({
1999
2144
  line,
2000
2145
  lineRule,
2001
2146
  beforeAutoSpacing,
2002
- afterAutoSpacing
2147
+ afterAutoSpacing,
2148
+ beforeLines,
2149
+ afterLines
2003
2150
  }: ISpacingProperties) => XmlComponent;
2004
2151
  //#endregion
2005
2152
  //#region src/file/paragraph/formatting/style.d.ts
@@ -2033,6 +2180,7 @@ declare const TabStopType: {
2033
2180
  };
2034
2181
  declare const LeaderType: {
2035
2182
  readonly DOT: "dot";
2183
+ readonly HEAVY: "heavy";
2036
2184
  readonly HYPHEN: "hyphen";
2037
2185
  readonly MIDDLE_DOT: "middleDot";
2038
2186
  readonly NONE: "none";
@@ -2102,6 +2250,20 @@ type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
2102
2250
  declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
2103
2251
  //#endregion
2104
2252
  //#region src/file/paragraph/properties.d.ts
2253
+ declare const TextAlignmentType: {
2254
+ readonly TOP: "top";
2255
+ readonly CENTER: "center";
2256
+ readonly BASELINE: "baseline";
2257
+ readonly BOTTOM: "bottom";
2258
+ readonly AUTO: "auto";
2259
+ };
2260
+ declare const TextboxTightWrapType: {
2261
+ readonly NONE: "none";
2262
+ readonly ALL_LINES: "allLines";
2263
+ readonly FIRST_AND_LAST_LINE: "firstAndLastLine";
2264
+ readonly FIRST_LINE_ONLY: "firstLineOnly";
2265
+ readonly LAST_LINE_ONLY: "lastLineOnly";
2266
+ };
2105
2267
  interface ILevelParagraphStylePropertiesOptions {
2106
2268
  readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
2107
2269
  readonly thematicBreak?: boolean;
@@ -2141,6 +2303,15 @@ type IParagraphPropertiesOptionsBase = {
2141
2303
  readonly scale?: number;
2142
2304
  readonly autoSpaceEastAsianText?: boolean;
2143
2305
  readonly run?: IParagraphRunOptions;
2306
+ readonly suppressAutoHyphens?: boolean;
2307
+ readonly adjustRightInd?: boolean;
2308
+ readonly snapToGrid?: boolean;
2309
+ readonly mirrorIndents?: boolean;
2310
+ readonly kinsoku?: boolean;
2311
+ readonly topLinePunct?: boolean;
2312
+ readonly autoSpaceDE?: boolean;
2313
+ readonly textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
2314
+ readonly textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
2144
2315
  } & IParagraphStylePropertiesOptions;
2145
2316
  type IParagraphPropertiesChangeOptions = IChangedAttributesProperties & IParagraphPropertiesOptionsBase;
2146
2317
  type IParagraphPropertiesOptions = {
@@ -2605,6 +2776,9 @@ declare class Attributes extends XmlAttributeComponent<{
2605
2776
  readonly gutter?: string;
2606
2777
  readonly linePitch?: string;
2607
2778
  readonly pos?: string | number;
2779
+ readonly themeColor?: string;
2780
+ readonly themeTint?: string;
2781
+ readonly themeShade?: string;
2608
2782
  }> {
2609
2783
  protected readonly xmlKeys: {
2610
2784
  bottom: string;
@@ -2623,6 +2797,9 @@ declare class Attributes extends XmlAttributeComponent<{
2623
2797
  rsidSect: string;
2624
2798
  space: string;
2625
2799
  sz: string;
2800
+ themeColor: string;
2801
+ themeShade: string;
2802
+ themeTint: string;
2626
2803
  top: string;
2627
2804
  type: string;
2628
2805
  val: string;
@@ -3183,7 +3360,6 @@ declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
3183
3360
  declare const uniqueId: () => string;
3184
3361
  declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
3185
3362
  declare const uniqueUuid: () => string;
3186
- declare const encodeUtf8: (str: string) => Uint8Array;
3187
3363
  //#endregion
3188
3364
  //#region src/patcher/from-docx.d.ts
3189
3365
  type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob;
@@ -3229,4 +3405,4 @@ declare const patchDetector: ({
3229
3405
  data
3230
3406
  }: PatchDetectorOptions) => Promise<readonly string[]>;
3231
3407
  //#endregion
3232
- export { AbstractNumbering, AlignmentType, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDistance, IDocGridAttributesProperties, IDocumentAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelParagraphStylePropertiesOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathFractionOptions, IMathFunctionOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBorderAttributes, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, type IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, IRunStylePropertiesOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISpacingProperties, IStylesOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlAttribute, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAngledBrackets, MathComponent, MathCurlyBrackets, MathDegree, MathDenominator, MathFraction, MathFunction, MathFunctionName, MathFunctionProperties, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathNumerator, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, Percentage, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PositivePercentage, PositiveUniversalMeasure, PrettifyType, RelativeHorizontalPosition, RelativeMeasure, RelativeVerticalPosition, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, ThematicBreak, UnderlineType, UniqueNumericIdCreator, UniversalMeasure, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createColumns, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccentCharacter, createMathBase, createMathLimitLocation, createMathNAryProperties, createMathPreSubSuperScriptProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, encodeUtf8, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };
3408
+ 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 };