docx 8.2.3 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/export/packer/next-compiler.d.ts +1 -1
- package/build/export/packer/packer.d.ts +11 -11
- package/build/file/border/border.d.ts +30 -30
- package/build/file/document/body/section-properties/properties/doc-grid.d.ts +8 -8
- package/build/file/document/body/section-properties/properties/header-footer-reference.d.ts +11 -11
- package/build/file/document/body/section-properties/properties/line-number.d.ts +6 -6
- package/build/file/document/body/section-properties/properties/page-borders.d.ts +16 -16
- package/build/file/document/body/section-properties/properties/page-number.d.ts +9 -9
- package/build/file/document/body/section-properties/properties/page-size.d.ts +6 -6
- package/build/file/document/body/section-properties/properties/page-text-direction.d.ts +5 -5
- package/build/file/document/body/section-properties/properties/section-type.d.ts +9 -9
- package/build/file/document/body/section-properties/section-properties.d.ts +9 -9
- package/build/file/drawing/floating/align.d.ts +1 -1
- package/build/file/drawing/floating/floating-position.d.ts +24 -24
- package/build/file/drawing/text-wrap/text-wrapping.d.ts +14 -14
- package/build/file/footer-wrapper.d.ts +1 -1
- package/build/file/footnotes/footnote/footnote.d.ts +5 -5
- package/build/file/header-wrapper.d.ts +1 -1
- package/build/file/numbering/level.d.ts +73 -73
- package/build/file/paragraph/formatting/alignment.d.ts +17 -17
- package/build/file/paragraph/formatting/spacing.d.ts +7 -7
- package/build/file/paragraph/formatting/style.d.ts +9 -9
- package/build/file/paragraph/formatting/tab-stop.d.ts +26 -26
- package/build/file/paragraph/frame/frame-properties.d.ts +32 -32
- package/build/file/paragraph/links/hyperlink.d.ts +4 -4
- package/build/file/paragraph/properties.d.ts +4 -2
- package/build/file/paragraph/run/emphasis-mark.d.ts +5 -5
- package/build/file/paragraph/run/positional-tab.d.ts +19 -19
- package/build/file/paragraph/run/properties.d.ts +12 -12
- package/build/file/paragraph/run/run-components/text.d.ts +1 -1
- package/build/file/paragraph/run/run.d.ts +6 -6
- package/build/file/paragraph/run/text-attributes.d.ts +1 -1
- package/build/file/paragraph/run/underline.d.ts +21 -21
- package/build/file/relationships/relationship/relationship.d.ts +4 -4
- package/build/file/relationships/relationships.d.ts +1 -1
- package/build/file/shading/shading.d.ts +40 -40
- package/build/file/shared/alignment.d.ts +14 -14
- package/build/file/shared/number-format.d.ts +64 -64
- package/build/file/shared/space-type.d.ts +4 -4
- package/build/file/table/table-cell/table-cell-components.d.ts +11 -11
- package/build/file/table/table-cell/table-cell-properties.d.ts +3 -3
- package/build/file/table/table-properties/table-borders.d.ts +7 -7
- package/build/file/table/table-properties/table-cell-margin.d.ts +7 -7
- package/build/file/table/table-properties/table-float-properties.d.ts +29 -29
- package/build/file/table/table-properties/table-layout.d.ts +5 -5
- package/build/file/table/table-properties/table-properties.d.ts +2 -2
- package/build/file/table/table-row/table-row-height.d.ts +7 -7
- package/build/file/table/table-row/table-row-properties.d.ts +1 -1
- package/build/file/table/table-width.d.ts +7 -7
- package/build/file/table/table.d.ts +2 -2
- package/build/file/vertical-align/vertical-align.d.ts +7 -7
- package/build/file/xml-components/xmlable-object.d.ts +1 -1
- package/build/index.cjs +973 -788
- package/build/index.iife.js +973 -788
- package/build/index.mjs +973 -788
- package/build/index.umd.js +973 -788
- package/build/patcher/from-docx.d.ts +7 -6
- package/build/patcher/relationship-manager.d.ts +1 -1
- package/build/patcher/replacer.d.ts +1 -1
- package/package.json +14 -15
|
@@ -2,83 +2,83 @@ import { XmlComponent } from '../xml-components';
|
|
|
2
2
|
import { AlignmentType } from "../paragraph/formatting";
|
|
3
3
|
import { ILevelParagraphStylePropertiesOptions } from "../paragraph/properties";
|
|
4
4
|
import { IRunStylePropertiesOptions } from "../paragraph/run/properties";
|
|
5
|
-
export declare
|
|
6
|
-
DECIMAL
|
|
7
|
-
UPPER_ROMAN
|
|
8
|
-
LOWER_ROMAN
|
|
9
|
-
UPPER_LETTER
|
|
10
|
-
LOWER_LETTER
|
|
11
|
-
ORDINAL
|
|
12
|
-
CARDINAL_TEXT
|
|
13
|
-
ORDINAL_TEXT
|
|
14
|
-
HEX
|
|
15
|
-
CHICAGO
|
|
16
|
-
IDEOGRAPH__DIGITAL
|
|
17
|
-
JAPANESE_COUNTING
|
|
18
|
-
AIUEO
|
|
19
|
-
IROHA
|
|
20
|
-
DECIMAL_FULL_WIDTH
|
|
21
|
-
DECIMAL_HALF_WIDTH
|
|
22
|
-
JAPANESE_LEGAL
|
|
23
|
-
JAPANESE_DIGITAL_TEN_THOUSAND
|
|
24
|
-
DECIMAL_ENCLOSED_CIRCLE
|
|
25
|
-
DECIMAL_FULL_WIDTH2
|
|
26
|
-
AIUEO_FULL_WIDTH
|
|
27
|
-
IROHA_FULL_WIDTH
|
|
28
|
-
DECIMAL_ZERO
|
|
29
|
-
BULLET
|
|
30
|
-
GANADA
|
|
31
|
-
CHOSUNG
|
|
32
|
-
DECIMAL_ENCLOSED_FULLSTOP
|
|
33
|
-
DECIMAL_ENCLOSED_PARENTHESES
|
|
34
|
-
DECIMAL_ENCLOSED_CIRCLE_CHINESE
|
|
35
|
-
IDEOGRAPH_ENCLOSED_CIRCLE
|
|
36
|
-
IDEOGRAPH_TRADITIONAL
|
|
37
|
-
IDEOGRAPH_ZODIAC
|
|
38
|
-
IDEOGRAPH_ZODIAC_TRADITIONAL
|
|
39
|
-
TAIWANESE_COUNTING
|
|
40
|
-
IDEOGRAPH_LEGAL_TRADITIONAL
|
|
41
|
-
TAIWANESE_COUNTING_THOUSAND
|
|
42
|
-
TAIWANESE_DIGITAL
|
|
43
|
-
CHINESE_COUNTING
|
|
44
|
-
CHINESE_LEGAL_SIMPLIFIED
|
|
45
|
-
CHINESE_COUNTING_THOUSAND
|
|
46
|
-
KOREAN_DIGITAL
|
|
47
|
-
KOREAN_COUNTING
|
|
48
|
-
KOREAN_LEGAL
|
|
49
|
-
KOREAN_DIGITAL2
|
|
50
|
-
VIETNAMESE_COUNTING
|
|
51
|
-
RUSSIAN_LOWER
|
|
52
|
-
RUSSIAN_UPPER
|
|
53
|
-
NONE
|
|
54
|
-
NUMBER_IN_DASH
|
|
55
|
-
HEBREW1
|
|
56
|
-
HEBREW2
|
|
57
|
-
ARABIC_ALPHA
|
|
58
|
-
ARABIC_ABJAD
|
|
59
|
-
HINDI_VOWELS
|
|
60
|
-
HINDI_CONSONANTS
|
|
61
|
-
HINDI_NUMBERS
|
|
62
|
-
HINDI_COUNTING
|
|
63
|
-
THAI_LETTERS
|
|
64
|
-
THAI_NUMBERS
|
|
65
|
-
THAI_COUNTING
|
|
66
|
-
BAHT_TEXT
|
|
67
|
-
DOLLAR_TEXT
|
|
68
|
-
CUSTOM
|
|
69
|
-
}
|
|
70
|
-
export declare
|
|
71
|
-
NOTHING
|
|
72
|
-
SPACE
|
|
73
|
-
TAB
|
|
74
|
-
}
|
|
5
|
+
export declare const LevelFormat: {
|
|
6
|
+
readonly DECIMAL: "decimal";
|
|
7
|
+
readonly UPPER_ROMAN: "upperRoman";
|
|
8
|
+
readonly LOWER_ROMAN: "lowerRoman";
|
|
9
|
+
readonly UPPER_LETTER: "upperLetter";
|
|
10
|
+
readonly LOWER_LETTER: "lowerLetter";
|
|
11
|
+
readonly ORDINAL: "ordinal";
|
|
12
|
+
readonly CARDINAL_TEXT: "cardinalText";
|
|
13
|
+
readonly ORDINAL_TEXT: "ordinalText";
|
|
14
|
+
readonly HEX: "hex";
|
|
15
|
+
readonly CHICAGO: "chicago";
|
|
16
|
+
readonly IDEOGRAPH__DIGITAL: "ideographDigital";
|
|
17
|
+
readonly JAPANESE_COUNTING: "japaneseCounting";
|
|
18
|
+
readonly AIUEO: "aiueo";
|
|
19
|
+
readonly IROHA: "iroha";
|
|
20
|
+
readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
|
|
21
|
+
readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
|
|
22
|
+
readonly JAPANESE_LEGAL: "japaneseLegal";
|
|
23
|
+
readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
|
|
24
|
+
readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
|
|
25
|
+
readonly DECIMAL_FULL_WIDTH2: "decimalFullWidth2";
|
|
26
|
+
readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
|
|
27
|
+
readonly IROHA_FULL_WIDTH: "irohaFullWidth";
|
|
28
|
+
readonly DECIMAL_ZERO: "decimalZero";
|
|
29
|
+
readonly BULLET: "bullet";
|
|
30
|
+
readonly GANADA: "ganada";
|
|
31
|
+
readonly CHOSUNG: "chosung";
|
|
32
|
+
readonly DECIMAL_ENCLOSED_FULLSTOP: "decimalEnclosedFullstop";
|
|
33
|
+
readonly DECIMAL_ENCLOSED_PARENTHESES: "decimalEnclosedParen";
|
|
34
|
+
readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
|
|
35
|
+
readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
|
|
36
|
+
readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
|
|
37
|
+
readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
|
|
38
|
+
readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
|
|
39
|
+
readonly TAIWANESE_COUNTING: "taiwaneseCounting";
|
|
40
|
+
readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
|
|
41
|
+
readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
|
|
42
|
+
readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
|
|
43
|
+
readonly CHINESE_COUNTING: "chineseCounting";
|
|
44
|
+
readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
|
|
45
|
+
readonly CHINESE_COUNTING_THOUSAND: "chineseCountingThousand";
|
|
46
|
+
readonly KOREAN_DIGITAL: "koreanDigital";
|
|
47
|
+
readonly KOREAN_COUNTING: "koreanCounting";
|
|
48
|
+
readonly KOREAN_LEGAL: "koreanLegal";
|
|
49
|
+
readonly KOREAN_DIGITAL2: "koreanDigital2";
|
|
50
|
+
readonly VIETNAMESE_COUNTING: "vietnameseCounting";
|
|
51
|
+
readonly RUSSIAN_LOWER: "russianLower";
|
|
52
|
+
readonly RUSSIAN_UPPER: "russianUpper";
|
|
53
|
+
readonly NONE: "none";
|
|
54
|
+
readonly NUMBER_IN_DASH: "numberInDash";
|
|
55
|
+
readonly HEBREW1: "hebrew1";
|
|
56
|
+
readonly HEBREW2: "hebrew2";
|
|
57
|
+
readonly ARABIC_ALPHA: "arabicAlpha";
|
|
58
|
+
readonly ARABIC_ABJAD: "arabicAbjad";
|
|
59
|
+
readonly HINDI_VOWELS: "hindiVowels";
|
|
60
|
+
readonly HINDI_CONSONANTS: "hindiConsonants";
|
|
61
|
+
readonly HINDI_NUMBERS: "hindiNumbers";
|
|
62
|
+
readonly HINDI_COUNTING: "hindiCounting";
|
|
63
|
+
readonly THAI_LETTERS: "thaiLetters";
|
|
64
|
+
readonly THAI_NUMBERS: "thaiNumbers";
|
|
65
|
+
readonly THAI_COUNTING: "thaiCounting";
|
|
66
|
+
readonly BAHT_TEXT: "bahtText";
|
|
67
|
+
readonly DOLLAR_TEXT: "dollarText";
|
|
68
|
+
readonly CUSTOM: "custom";
|
|
69
|
+
};
|
|
70
|
+
export declare const LevelSuffix: {
|
|
71
|
+
readonly NOTHING: "nothing";
|
|
72
|
+
readonly SPACE: "space";
|
|
73
|
+
readonly TAB: "tab";
|
|
74
|
+
};
|
|
75
75
|
export interface ILevelsOptions {
|
|
76
76
|
readonly level: number;
|
|
77
|
-
readonly format?: LevelFormat;
|
|
77
|
+
readonly format?: (typeof LevelFormat)[keyof typeof LevelFormat];
|
|
78
78
|
readonly text?: string;
|
|
79
|
-
readonly alignment?: AlignmentType;
|
|
79
|
+
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
80
80
|
readonly start?: number;
|
|
81
|
-
readonly suffix?: LevelSuffix;
|
|
81
|
+
readonly suffix?: (typeof LevelSuffix)[keyof typeof LevelSuffix];
|
|
82
82
|
readonly isLegalNumberingStyle?: boolean;
|
|
83
83
|
readonly style?: {
|
|
84
84
|
readonly run?: IRunStylePropertiesOptions;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { XmlAttributeComponent, XmlComponent } from '../../xml-components';
|
|
2
|
-
export declare
|
|
3
|
-
START
|
|
4
|
-
CENTER
|
|
5
|
-
END
|
|
6
|
-
BOTH
|
|
7
|
-
MEDIUM_KASHIDA
|
|
8
|
-
DISTRIBUTE
|
|
9
|
-
NUM_TAB
|
|
10
|
-
HIGH_KASHIDA
|
|
11
|
-
LOW_KASHIDA
|
|
12
|
-
THAI_DISTRIBUTE
|
|
13
|
-
LEFT
|
|
14
|
-
RIGHT
|
|
15
|
-
JUSTIFIED
|
|
16
|
-
}
|
|
2
|
+
export declare const AlignmentType: {
|
|
3
|
+
readonly START: "start";
|
|
4
|
+
readonly CENTER: "center";
|
|
5
|
+
readonly END: "end";
|
|
6
|
+
readonly BOTH: "both";
|
|
7
|
+
readonly MEDIUM_KASHIDA: "mediumKashida";
|
|
8
|
+
readonly DISTRIBUTE: "distribute";
|
|
9
|
+
readonly NUM_TAB: "numTab";
|
|
10
|
+
readonly HIGH_KASHIDA: "highKashida";
|
|
11
|
+
readonly LOW_KASHIDA: "lowKashida";
|
|
12
|
+
readonly THAI_DISTRIBUTE: "thaiDistribute";
|
|
13
|
+
readonly LEFT: "left";
|
|
14
|
+
readonly RIGHT: "right";
|
|
15
|
+
readonly JUSTIFIED: "both";
|
|
16
|
+
};
|
|
17
17
|
export declare class AlignmentAttributes extends XmlAttributeComponent<{
|
|
18
|
-
readonly val: AlignmentType;
|
|
18
|
+
readonly val: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
19
19
|
}> {
|
|
20
20
|
protected readonly xmlKeys: {
|
|
21
21
|
val: string;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
export declare class Alignment extends XmlComponent {
|
|
25
|
-
constructor(type: AlignmentType);
|
|
25
|
+
constructor(type: (typeof AlignmentType)[keyof typeof AlignmentType]);
|
|
26
26
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { XmlComponent } from '../../xml-components';
|
|
2
|
-
export declare
|
|
3
|
-
AT_LEAST
|
|
4
|
-
EXACTLY
|
|
5
|
-
EXACT
|
|
6
|
-
AUTO
|
|
7
|
-
}
|
|
2
|
+
export declare const LineRuleType: {
|
|
3
|
+
readonly AT_LEAST: "atLeast";
|
|
4
|
+
readonly EXACTLY: "exactly";
|
|
5
|
+
readonly EXACT: "exact";
|
|
6
|
+
readonly AUTO: "auto";
|
|
7
|
+
};
|
|
8
8
|
export interface ISpacingProperties {
|
|
9
9
|
readonly after?: number;
|
|
10
10
|
readonly before?: number;
|
|
11
11
|
readonly line?: number;
|
|
12
|
-
readonly lineRule?: LineRuleType;
|
|
12
|
+
readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
|
|
13
13
|
readonly beforeAutoSpacing?: boolean;
|
|
14
14
|
readonly afterAutoSpacing?: boolean;
|
|
15
15
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { XmlComponent } from '../../xml-components';
|
|
2
|
-
export declare
|
|
3
|
-
HEADING_1
|
|
4
|
-
HEADING_2
|
|
5
|
-
HEADING_3
|
|
6
|
-
HEADING_4
|
|
7
|
-
HEADING_5
|
|
8
|
-
HEADING_6
|
|
9
|
-
TITLE
|
|
10
|
-
}
|
|
2
|
+
export declare const HeadingLevel: {
|
|
3
|
+
readonly HEADING_1: "Heading1";
|
|
4
|
+
readonly HEADING_2: "Heading2";
|
|
5
|
+
readonly HEADING_3: "Heading3";
|
|
6
|
+
readonly HEADING_4: "Heading4";
|
|
7
|
+
readonly HEADING_5: "Heading5";
|
|
8
|
+
readonly HEADING_6: "Heading6";
|
|
9
|
+
readonly TITLE: "Title";
|
|
10
|
+
};
|
|
11
11
|
export declare class Style extends XmlComponent {
|
|
12
12
|
constructor(styleId: string);
|
|
13
13
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { XmlAttributeComponent, XmlComponent } from '../../xml-components';
|
|
2
2
|
export interface TabStopDefinition {
|
|
3
|
-
readonly type: TabStopType;
|
|
4
|
-
readonly position: number | TabStopPosition;
|
|
5
|
-
readonly leader?: LeaderType;
|
|
3
|
+
readonly type: (typeof TabStopType)[keyof typeof TabStopType];
|
|
4
|
+
readonly position: number | (typeof TabStopPosition)[keyof typeof TabStopPosition];
|
|
5
|
+
readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
|
|
6
6
|
}
|
|
7
7
|
export declare class TabStop extends XmlComponent {
|
|
8
8
|
constructor(tabDefinitions: readonly TabStopDefinition[]);
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
11
|
-
LEFT
|
|
12
|
-
RIGHT
|
|
13
|
-
CENTER
|
|
14
|
-
BAR
|
|
15
|
-
CLEAR
|
|
16
|
-
DECIMAL
|
|
17
|
-
END
|
|
18
|
-
NUM
|
|
19
|
-
START
|
|
20
|
-
}
|
|
21
|
-
export declare
|
|
22
|
-
DOT
|
|
23
|
-
HYPHEN
|
|
24
|
-
MIDDLE_DOT
|
|
25
|
-
NONE
|
|
26
|
-
UNDERSCORE
|
|
27
|
-
}
|
|
28
|
-
export declare
|
|
29
|
-
MAX
|
|
30
|
-
}
|
|
10
|
+
export declare const TabStopType: {
|
|
11
|
+
readonly LEFT: "left";
|
|
12
|
+
readonly RIGHT: "right";
|
|
13
|
+
readonly CENTER: "center";
|
|
14
|
+
readonly BAR: "bar";
|
|
15
|
+
readonly CLEAR: "clear";
|
|
16
|
+
readonly DECIMAL: "decimal";
|
|
17
|
+
readonly END: "end";
|
|
18
|
+
readonly NUM: "num";
|
|
19
|
+
readonly START: "start";
|
|
20
|
+
};
|
|
21
|
+
export declare const LeaderType: {
|
|
22
|
+
readonly DOT: "dot";
|
|
23
|
+
readonly HYPHEN: "hyphen";
|
|
24
|
+
readonly MIDDLE_DOT: "middleDot";
|
|
25
|
+
readonly NONE: "none";
|
|
26
|
+
readonly UNDERSCORE: "underscore";
|
|
27
|
+
};
|
|
28
|
+
export declare const TabStopPosition: {
|
|
29
|
+
readonly MAX: 9026;
|
|
30
|
+
};
|
|
31
31
|
export declare class TabAttributes extends XmlAttributeComponent<{
|
|
32
|
-
readonly val: TabStopType;
|
|
32
|
+
readonly val: (typeof TabStopType)[keyof typeof TabStopType];
|
|
33
33
|
readonly pos: string | number;
|
|
34
|
-
readonly leader?: LeaderType;
|
|
34
|
+
readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
|
|
35
35
|
}> {
|
|
36
36
|
protected readonly xmlKeys: {
|
|
37
37
|
val: string;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { HorizontalPositionAlign, VerticalPositionAlign } from '../../shared/alignment';
|
|
2
2
|
import { HeightRule } from '../../table';
|
|
3
3
|
import { XmlAttributeComponent, XmlComponent } from '../../xml-components';
|
|
4
|
-
export declare
|
|
5
|
-
NONE
|
|
6
|
-
DROP
|
|
7
|
-
MARGIN
|
|
8
|
-
}
|
|
9
|
-
export declare
|
|
10
|
-
MARGIN
|
|
11
|
-
PAGE
|
|
12
|
-
TEXT
|
|
13
|
-
}
|
|
14
|
-
export declare
|
|
15
|
-
AROUND
|
|
16
|
-
AUTO
|
|
17
|
-
NONE
|
|
18
|
-
NOT_BESIDE
|
|
19
|
-
THROUGH
|
|
20
|
-
TIGHT
|
|
21
|
-
}
|
|
4
|
+
export declare const DropCapType: {
|
|
5
|
+
readonly NONE: "none";
|
|
6
|
+
readonly DROP: "drop";
|
|
7
|
+
readonly MARGIN: "margin";
|
|
8
|
+
};
|
|
9
|
+
export declare const FrameAnchorType: {
|
|
10
|
+
readonly MARGIN: "margin";
|
|
11
|
+
readonly PAGE: "page";
|
|
12
|
+
readonly TEXT: "text";
|
|
13
|
+
};
|
|
14
|
+
export declare const FrameWrap: {
|
|
15
|
+
readonly AROUND: "around";
|
|
16
|
+
readonly AUTO: "auto";
|
|
17
|
+
readonly NONE: "none";
|
|
18
|
+
readonly NOT_BESIDE: "notBeside";
|
|
19
|
+
readonly THROUGH: "through";
|
|
20
|
+
readonly TIGHT: "tight";
|
|
21
|
+
};
|
|
22
22
|
interface IBaseFrameOptions {
|
|
23
23
|
readonly anchorLock?: boolean;
|
|
24
|
-
readonly dropCap?: DropCapType;
|
|
24
|
+
readonly dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
|
|
25
25
|
readonly width: number;
|
|
26
26
|
readonly height: number;
|
|
27
|
-
readonly wrap?: FrameWrap;
|
|
27
|
+
readonly wrap?: (typeof FrameWrap)[keyof typeof FrameWrap];
|
|
28
28
|
readonly lines?: number;
|
|
29
29
|
readonly anchor: {
|
|
30
|
-
readonly horizontal: FrameAnchorType;
|
|
31
|
-
readonly vertical: FrameAnchorType;
|
|
30
|
+
readonly horizontal: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
31
|
+
readonly vertical: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
32
32
|
};
|
|
33
33
|
readonly space?: {
|
|
34
34
|
readonly horizontal: number;
|
|
35
35
|
readonly vertical: number;
|
|
36
36
|
};
|
|
37
|
-
readonly rule?: HeightRule;
|
|
37
|
+
readonly rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
38
38
|
}
|
|
39
39
|
export interface IXYFrameOptions extends IBaseFrameOptions {
|
|
40
40
|
readonly position: {
|
|
@@ -44,27 +44,27 @@ export interface IXYFrameOptions extends IBaseFrameOptions {
|
|
|
44
44
|
}
|
|
45
45
|
export interface IAlignmentFrameOptions extends IBaseFrameOptions {
|
|
46
46
|
readonly alignment: {
|
|
47
|
-
readonly x: HorizontalPositionAlign;
|
|
48
|
-
readonly y: VerticalPositionAlign;
|
|
47
|
+
readonly x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
48
|
+
readonly y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
export type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
|
|
52
52
|
export declare class FramePropertiesAttributes extends XmlAttributeComponent<{
|
|
53
53
|
readonly anchorLock?: boolean;
|
|
54
|
-
readonly dropCap?: DropCapType;
|
|
54
|
+
readonly dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
|
|
55
55
|
readonly width: number;
|
|
56
56
|
readonly height: number;
|
|
57
57
|
readonly x?: number;
|
|
58
58
|
readonly y?: number;
|
|
59
|
-
readonly wrap?: FrameWrap;
|
|
59
|
+
readonly wrap?: (typeof FrameWrap)[keyof typeof FrameWrap];
|
|
60
60
|
readonly lines?: number;
|
|
61
|
-
readonly anchorHorizontal?: FrameAnchorType;
|
|
62
|
-
readonly anchorVertical?: FrameAnchorType;
|
|
61
|
+
readonly anchorHorizontal?: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
62
|
+
readonly anchorVertical?: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
63
63
|
readonly spaceHorizontal?: number;
|
|
64
64
|
readonly spaceVertical?: number;
|
|
65
|
-
readonly rule?: HeightRule;
|
|
66
|
-
readonly alignmentX?: HorizontalPositionAlign;
|
|
67
|
-
readonly alignmentY?: VerticalPositionAlign;
|
|
65
|
+
readonly rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
66
|
+
readonly alignmentX?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
67
|
+
readonly alignmentY?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
68
68
|
}> {
|
|
69
69
|
protected readonly xmlKeys: {
|
|
70
70
|
anchorLock: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { XmlComponent } from '../../xml-components';
|
|
2
2
|
import { ParagraphChild } from "../paragraph";
|
|
3
|
-
export declare
|
|
4
|
-
INTERNAL
|
|
5
|
-
EXTERNAL
|
|
6
|
-
}
|
|
3
|
+
export declare const HyperlinkType: {
|
|
4
|
+
readonly INTERNAL: "INTERNAL";
|
|
5
|
+
readonly EXTERNAL: "EXTERNAL";
|
|
6
|
+
};
|
|
7
7
|
export declare class ConcreteHyperlink extends XmlComponent {
|
|
8
8
|
readonly linkId: string;
|
|
9
9
|
constructor(children: readonly ParagraphChild[], relationshipId: string, anchor?: string);
|
|
@@ -7,8 +7,9 @@ import { ISpacingProperties } from "./formatting/spacing";
|
|
|
7
7
|
import { HeadingLevel } from "./formatting/style";
|
|
8
8
|
import { TabStopDefinition } from "./formatting/tab-stop";
|
|
9
9
|
import { IFrameOptions } from "./frame/frame-properties";
|
|
10
|
+
import { IRunOptions } from ".";
|
|
10
11
|
export interface ILevelParagraphStylePropertiesOptions {
|
|
11
|
-
readonly alignment?: AlignmentType;
|
|
12
|
+
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
12
13
|
readonly thematicBreak?: boolean;
|
|
13
14
|
readonly contextualSpacing?: boolean;
|
|
14
15
|
readonly rightTabStop?: number;
|
|
@@ -29,7 +30,7 @@ export interface IParagraphStylePropertiesOptions extends ILevelParagraphStylePr
|
|
|
29
30
|
}
|
|
30
31
|
export interface IParagraphPropertiesOptions extends IParagraphStylePropertiesOptions {
|
|
31
32
|
readonly border?: IBordersOptions;
|
|
32
|
-
readonly heading?: HeadingLevel;
|
|
33
|
+
readonly heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
33
34
|
readonly bidirectional?: boolean;
|
|
34
35
|
readonly pageBreakBefore?: boolean;
|
|
35
36
|
readonly tabStops?: readonly TabStopDefinition[];
|
|
@@ -44,6 +45,7 @@ export interface IParagraphPropertiesOptions extends IParagraphStylePropertiesOp
|
|
|
44
45
|
readonly wordWrap?: boolean;
|
|
45
46
|
readonly scale?: number;
|
|
46
47
|
readonly autoSpaceEastAsianText?: boolean;
|
|
48
|
+
readonly run?: IRunOptions;
|
|
47
49
|
}
|
|
48
50
|
export declare class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
|
|
49
51
|
private readonly numberingReferences;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { XmlComponent } from '../../xml-components';
|
|
2
|
-
export declare
|
|
3
|
-
DOT
|
|
4
|
-
}
|
|
2
|
+
export declare const EmphasisMarkType: {
|
|
3
|
+
readonly DOT: "dot";
|
|
4
|
+
};
|
|
5
5
|
export declare abstract class BaseEmphasisMark extends XmlComponent {
|
|
6
|
-
protected constructor(emphasisMarkType: EmphasisMarkType);
|
|
6
|
+
protected constructor(emphasisMarkType: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
|
|
7
7
|
}
|
|
8
8
|
export declare class EmphasisMark extends BaseEmphasisMark {
|
|
9
|
-
constructor(emphasisMarkType?: EmphasisMarkType);
|
|
9
|
+
constructor(emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
|
|
10
10
|
}
|
|
11
11
|
export declare class DotEmphasisMark extends BaseEmphasisMark {
|
|
12
12
|
constructor();
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { XmlComponent } from '../../xml-components';
|
|
2
|
-
export declare
|
|
3
|
-
LEFT
|
|
4
|
-
CENTER
|
|
5
|
-
RIGHT
|
|
6
|
-
}
|
|
7
|
-
export declare
|
|
8
|
-
MARGIN
|
|
9
|
-
INDENT
|
|
10
|
-
}
|
|
11
|
-
export declare
|
|
12
|
-
NONE
|
|
13
|
-
DOT
|
|
14
|
-
HYPHEN
|
|
15
|
-
UNDERSCORE
|
|
16
|
-
MIDDLE_DOT
|
|
17
|
-
}
|
|
2
|
+
export declare const PositionalTabAlignment: {
|
|
3
|
+
readonly LEFT: "left";
|
|
4
|
+
readonly CENTER: "center";
|
|
5
|
+
readonly RIGHT: "right";
|
|
6
|
+
};
|
|
7
|
+
export declare const PositionalTabRelativeTo: {
|
|
8
|
+
readonly MARGIN: "margin";
|
|
9
|
+
readonly INDENT: "indent";
|
|
10
|
+
};
|
|
11
|
+
export declare const PositionalTabLeader: {
|
|
12
|
+
readonly NONE: "none";
|
|
13
|
+
readonly DOT: "dot";
|
|
14
|
+
readonly HYPHEN: "hyphen";
|
|
15
|
+
readonly UNDERSCORE: "underscore";
|
|
16
|
+
readonly MIDDLE_DOT: "middleDot";
|
|
17
|
+
};
|
|
18
18
|
export interface PositionalTabOptions {
|
|
19
|
-
readonly alignment: PositionalTabAlignment;
|
|
20
|
-
readonly relativeTo: PositionalTabRelativeTo;
|
|
21
|
-
readonly leader: PositionalTabLeader;
|
|
19
|
+
readonly alignment: (typeof PositionalTabAlignment)[keyof typeof PositionalTabAlignment];
|
|
20
|
+
readonly relativeTo: (typeof PositionalTabRelativeTo)[keyof typeof PositionalTabRelativeTo];
|
|
21
|
+
readonly leader: (typeof PositionalTabLeader)[keyof typeof PositionalTabLeader];
|
|
22
22
|
}
|
|
23
23
|
export declare class PositionalTab extends XmlComponent {
|
|
24
24
|
constructor(options: PositionalTabOptions);
|
|
@@ -11,15 +11,15 @@ interface IFontOptions {
|
|
|
11
11
|
readonly name: string;
|
|
12
12
|
readonly hint?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare
|
|
15
|
-
BLINK_BACKGROUND
|
|
16
|
-
LIGHTS
|
|
17
|
-
ANTS_BLACK
|
|
18
|
-
ANTS_RED
|
|
19
|
-
SHIMMER
|
|
20
|
-
SPARKLE
|
|
21
|
-
NONE
|
|
22
|
-
}
|
|
14
|
+
export declare const TextEffect: {
|
|
15
|
+
readonly BLINK_BACKGROUND: "blinkBackground";
|
|
16
|
+
readonly LIGHTS: "lights";
|
|
17
|
+
readonly ANTS_BLACK: "antsBlack";
|
|
18
|
+
readonly ANTS_RED: "antsRed";
|
|
19
|
+
readonly SHIMMER: "shimmer";
|
|
20
|
+
readonly SPARKLE: "sparkle";
|
|
21
|
+
readonly NONE: "none";
|
|
22
|
+
};
|
|
23
23
|
export interface IRunStylePropertiesOptions {
|
|
24
24
|
readonly noProof?: boolean;
|
|
25
25
|
readonly bold?: boolean;
|
|
@@ -28,11 +28,11 @@ export interface IRunStylePropertiesOptions {
|
|
|
28
28
|
readonly italicsComplexScript?: boolean;
|
|
29
29
|
readonly underline?: {
|
|
30
30
|
readonly color?: string;
|
|
31
|
-
readonly type?: UnderlineType;
|
|
31
|
+
readonly type?: (typeof UnderlineType)[keyof typeof UnderlineType];
|
|
32
32
|
};
|
|
33
|
-
readonly effect?: TextEffect;
|
|
33
|
+
readonly effect?: (typeof TextEffect)[keyof typeof TextEffect];
|
|
34
34
|
readonly emphasisMark?: {
|
|
35
|
-
readonly type?: EmphasisMarkType;
|
|
35
|
+
readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
36
36
|
};
|
|
37
37
|
readonly color?: string;
|
|
38
38
|
readonly kern?: number | PositiveUniversalMeasure;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SpaceType } from '../../../shared';
|
|
2
2
|
import { XmlComponent } from '../../../xml-components';
|
|
3
3
|
interface ITextOptions {
|
|
4
|
-
readonly space?: SpaceType;
|
|
4
|
+
readonly space?: (typeof SpaceType)[keyof typeof SpaceType];
|
|
5
5
|
readonly text?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare class Text extends XmlComponent {
|
|
@@ -7,15 +7,15 @@ import { IRunPropertiesOptions, RunProperties } from "./properties";
|
|
|
7
7
|
import { AnnotationReference, CarriageReturn, ContinuationSeparator, DayLong, DayShort, EndnoteReference, FootnoteReferenceElement, LastRenderedPageBreak, MonthLong, MonthShort, NoBreakHyphen, PageNumberElement, Separator, SoftHyphen, Tab, YearLong, YearShort } from "./empty-children";
|
|
8
8
|
import { PositionalTab } from "./positional-tab";
|
|
9
9
|
export interface IRunOptions extends IRunPropertiesOptions {
|
|
10
|
-
readonly children?: readonly (Begin | FieldInstruction | Separate | End | PageNumber | FootnoteReferenceRun | Break | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | PositionalTab | string)[];
|
|
10
|
+
readonly children?: readonly (Begin | FieldInstruction | Separate | End | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | Break | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | PositionalTab | string)[];
|
|
11
11
|
readonly break?: number;
|
|
12
12
|
readonly text?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare
|
|
15
|
-
CURRENT
|
|
16
|
-
TOTAL_PAGES
|
|
17
|
-
TOTAL_PAGES_IN_SECTION
|
|
18
|
-
}
|
|
14
|
+
export declare const PageNumber: {
|
|
15
|
+
readonly CURRENT: "CURRENT";
|
|
16
|
+
readonly TOTAL_PAGES: "TOTAL_PAGES";
|
|
17
|
+
readonly TOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION";
|
|
18
|
+
};
|
|
19
19
|
export declare class Run extends XmlComponent {
|
|
20
20
|
protected readonly properties: RunProperties;
|
|
21
21
|
constructor(options: IRunOptions);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SpaceType } from '../../shared';
|
|
2
2
|
import { XmlAttributeComponent } from '../../xml-components';
|
|
3
3
|
export declare class TextAttributes extends XmlAttributeComponent<{
|
|
4
|
-
readonly space: SpaceType;
|
|
4
|
+
readonly space: (typeof SpaceType)[keyof typeof SpaceType];
|
|
5
5
|
}> {
|
|
6
6
|
protected readonly xmlKeys: {
|
|
7
7
|
space: string;
|