@office-open/docx 0.10.0 → 0.10.1
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/{context-D9RMvxSu.mjs → context-C0vWotG5.mjs} +28 -3
- package/dist/context-C0vWotG5.mjs.map +1 -0
- package/dist/{core-properties-DNjQDzBy.d.mts → core-properties-DFRUHpWM.d.mts} +313 -95
- package/dist/core-properties-DFRUHpWM.d.mts.map +1 -0
- package/dist/{generate-h0Xp5BPT.mjs → generate-Bh4akIEz.mjs} +13 -8
- package/dist/generate-Bh4akIEz.mjs.map +1 -0
- package/dist/generate.d.mts +1 -1
- package/dist/generate.mjs +1 -1
- package/dist/index.d.mts +2 -29
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/{parse-T79KhZTq.mjs → parse-COZdd0oD.mjs} +43 -32
- package/dist/parse-COZdd0oD.mjs.map +1 -0
- package/dist/parse.d.mts +1 -1
- package/dist/parse.mjs +1 -1
- package/dist/{parts-BWmkYaBr.mjs → parts-DVpfsxSR.mjs} +1483 -400
- package/dist/parts-DVpfsxSR.mjs.map +1 -0
- package/dist/patch/index.d.mts +1 -1
- package/dist/patch/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/context-D9RMvxSu.mjs.map +0 -1
- package/dist/core-properties-DNjQDzBy.d.mts.map +0 -1
- package/dist/generate-h0Xp5BPT.mjs.map +0 -1
- package/dist/parse-T79KhZTq.mjs.map +0 -1
- package/dist/parts-BWmkYaBr.mjs.map +0 -1
|
@@ -332,7 +332,7 @@ interface RunStylePropertiesOptions {
|
|
|
332
332
|
kern?: number;
|
|
333
333
|
position?: string;
|
|
334
334
|
size?: number;
|
|
335
|
-
sizeComplexScript?:
|
|
335
|
+
sizeComplexScript?: number;
|
|
336
336
|
rightToLeft?: boolean;
|
|
337
337
|
smallCaps?: boolean;
|
|
338
338
|
allCaps?: boolean;
|
|
@@ -342,8 +342,8 @@ interface RunStylePropertiesOptions {
|
|
|
342
342
|
superScript?: boolean;
|
|
343
343
|
font?: string | RunFontReference | FontAttributesProperties;
|
|
344
344
|
highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
|
|
345
|
-
highlightComplexScript?:
|
|
346
|
-
characterSpacing?: number;
|
|
345
|
+
highlightComplexScript?: string;
|
|
346
|
+
characterSpacing?: number | UniversalMeasure;
|
|
347
347
|
shading?: ShadingAttributesProperties;
|
|
348
348
|
emboss?: boolean;
|
|
349
349
|
imprint?: boolean;
|
|
@@ -483,6 +483,8 @@ interface SdtPropertiesOptions {
|
|
|
483
483
|
declare function parseToc(el: Element, _ctx: DocxReadContext): ({
|
|
484
484
|
alias?: string;
|
|
485
485
|
} & TableOfContentsOptions) | undefined;
|
|
486
|
+
declare function parseTocFieldInstruction(instruction: string, opts: Record<string, unknown>): void;
|
|
487
|
+
declare function parseTocFieldFromElements(els: Element[]): TableOfContentsOptions;
|
|
486
488
|
//#endregion
|
|
487
489
|
//#region src/parts/table-of-contents/descriptor.d.ts
|
|
488
490
|
declare function stringifyTableOfContents(alias?: string, options?: TableOfContentsOptions): string;
|
|
@@ -609,9 +611,9 @@ declare const LineRuleType: {
|
|
|
609
611
|
readonly AUTO: "auto";
|
|
610
612
|
};
|
|
611
613
|
interface SpacingProperties {
|
|
612
|
-
after?: number;
|
|
613
|
-
before?: number;
|
|
614
|
-
line?: number;
|
|
614
|
+
after?: number | PositiveUniversalMeasure;
|
|
615
|
+
before?: number | PositiveUniversalMeasure;
|
|
616
|
+
line?: number | PositiveUniversalMeasure;
|
|
615
617
|
lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
|
|
616
618
|
beforeAutoSpacing?: boolean;
|
|
617
619
|
afterAutoSpacing?: boolean;
|
|
@@ -670,6 +672,18 @@ interface MathRunPropertiesOptions {
|
|
|
670
672
|
breakAlignment?: number;
|
|
671
673
|
align?: boolean;
|
|
672
674
|
}
|
|
675
|
+
interface MathDelimiterProperties {
|
|
676
|
+
beginCharacter?: string;
|
|
677
|
+
endCharacter?: string;
|
|
678
|
+
separatorCharacter?: string;
|
|
679
|
+
grow?: boolean;
|
|
680
|
+
shape?: "centered" | "match";
|
|
681
|
+
}
|
|
682
|
+
type MathNaryLimitLocation = "subSup" | "undOvr";
|
|
683
|
+
interface MathNaryProperties {
|
|
684
|
+
limitLocation?: MathNaryLimitLocation;
|
|
685
|
+
grow?: boolean;
|
|
686
|
+
}
|
|
673
687
|
type MathInput = string | {
|
|
674
688
|
text: string;
|
|
675
689
|
properties?: MathRunPropertiesOptions;
|
|
@@ -678,6 +692,8 @@ type MathInput = string | {
|
|
|
678
692
|
numerator: MathInput[];
|
|
679
693
|
denominator: MathInput[];
|
|
680
694
|
fractionType?: string;
|
|
695
|
+
numeratorArgumentSize?: number;
|
|
696
|
+
denominatorArgumentSize?: number;
|
|
681
697
|
};
|
|
682
698
|
} | {
|
|
683
699
|
superScript: {
|
|
@@ -694,6 +710,7 @@ type MathInput = string | {
|
|
|
694
710
|
children: MathInput[];
|
|
695
711
|
subScript: MathInput[];
|
|
696
712
|
superScript: MathInput[];
|
|
713
|
+
alignScript?: boolean;
|
|
697
714
|
};
|
|
698
715
|
} | {
|
|
699
716
|
preSubSuperScript: {
|
|
@@ -711,12 +728,14 @@ type MathInput = string | {
|
|
|
711
728
|
children: MathInput[];
|
|
712
729
|
subScript?: MathInput[];
|
|
713
730
|
superScript?: MathInput[];
|
|
731
|
+
properties?: MathNaryProperties;
|
|
714
732
|
};
|
|
715
733
|
} | {
|
|
716
734
|
integral: {
|
|
717
735
|
children: MathInput[];
|
|
718
736
|
subScript?: MathInput[];
|
|
719
737
|
superScript?: MathInput[];
|
|
738
|
+
properties?: MathNaryProperties;
|
|
720
739
|
};
|
|
721
740
|
} | {
|
|
722
741
|
limitLower: {
|
|
@@ -744,18 +763,22 @@ type MathInput = string | {
|
|
|
744
763
|
} | {
|
|
745
764
|
roundBrackets: MathInput[] | {
|
|
746
765
|
children: MathInput[];
|
|
766
|
+
properties?: MathDelimiterProperties;
|
|
747
767
|
};
|
|
748
768
|
} | {
|
|
749
769
|
curlyBrackets: MathInput[] | {
|
|
750
770
|
children: MathInput[];
|
|
771
|
+
properties?: MathDelimiterProperties;
|
|
751
772
|
};
|
|
752
773
|
} | {
|
|
753
774
|
angledBrackets: MathInput[] | {
|
|
754
775
|
children: MathInput[];
|
|
776
|
+
properties?: MathDelimiterProperties;
|
|
755
777
|
};
|
|
756
778
|
} | {
|
|
757
779
|
squareBrackets: MathInput[] | {
|
|
758
780
|
children: MathInput[];
|
|
781
|
+
properties?: MathDelimiterProperties;
|
|
759
782
|
};
|
|
760
783
|
} | {
|
|
761
784
|
borderBox: {
|
|
@@ -877,7 +900,7 @@ interface TableLookOptions {
|
|
|
877
900
|
}
|
|
878
901
|
//#endregion
|
|
879
902
|
//#region src/parts/table/table-properties/table-properties.d.ts
|
|
880
|
-
interface TablePropertiesOptionsBase {
|
|
903
|
+
interface TablePropertiesOptionsBase$1 {
|
|
881
904
|
width?: TableWidthProperties;
|
|
882
905
|
indent?: TableWidthProperties;
|
|
883
906
|
layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
@@ -895,11 +918,11 @@ interface TablePropertiesOptionsBase {
|
|
|
895
918
|
caption?: string;
|
|
896
919
|
description?: string;
|
|
897
920
|
}
|
|
898
|
-
type TablePropertiesChangeOptions = TablePropertiesOptions & ChangedAttributesProperties;
|
|
899
|
-
type TablePropertiesOptions = {
|
|
900
|
-
revision?: TablePropertiesChangeOptions;
|
|
921
|
+
type TablePropertiesChangeOptions$1 = TablePropertiesOptions$1 & ChangedAttributesProperties;
|
|
922
|
+
type TablePropertiesOptions$1 = {
|
|
923
|
+
revision?: TablePropertiesChangeOptions$1;
|
|
901
924
|
includeIfEmpty?: boolean;
|
|
902
|
-
} & TablePropertiesOptionsBase;
|
|
925
|
+
} & TablePropertiesOptionsBase$1;
|
|
903
926
|
//#endregion
|
|
904
927
|
//#region src/parts/table/table-properties/table-property-exceptions.d.ts
|
|
905
928
|
interface TablePropertyExOptions {
|
|
@@ -952,10 +975,10 @@ type TableRowOptions = {
|
|
|
952
975
|
customXml: CustomXmlCellOptions;
|
|
953
976
|
})[];
|
|
954
977
|
propertyExceptions?: TablePropertyExOptions;
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
978
|
+
runPropertiesRsid?: string;
|
|
979
|
+
rsid?: string;
|
|
980
|
+
deletionRsid?: string;
|
|
981
|
+
tableRowRsid?: string;
|
|
959
982
|
} & TableRowPropertiesOptions;
|
|
960
983
|
//#endregion
|
|
961
984
|
//#region src/parts/table/table-row/table-row-height.d.ts
|
|
@@ -989,14 +1012,74 @@ interface TableOptions {
|
|
|
989
1012
|
styleColBandSize?: number;
|
|
990
1013
|
caption?: string;
|
|
991
1014
|
description?: string;
|
|
1015
|
+
revision?: TablePropertiesChangeOptions$1;
|
|
1016
|
+
shading?: ShadingAttributesProperties;
|
|
1017
|
+
}
|
|
1018
|
+
//#endregion
|
|
1019
|
+
//#region src/parts/table/stringify.d.ts
|
|
1020
|
+
interface TablePropertiesOptionsBase {
|
|
1021
|
+
width?: TableWidthProperties;
|
|
1022
|
+
indent?: TableWidthProperties;
|
|
1023
|
+
layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
1024
|
+
borders?: TableBordersOptions;
|
|
1025
|
+
float?: TableFloatOptions;
|
|
1026
|
+
shading?: ShadingAttributesProperties;
|
|
1027
|
+
style?: string;
|
|
1028
|
+
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1029
|
+
cellMargin?: TableCellMarginOptions;
|
|
1030
|
+
visuallyRightToLeft?: boolean;
|
|
1031
|
+
tableLook?: TableLookOptions;
|
|
1032
|
+
cellSpacing?: TableCellSpacingProperties;
|
|
1033
|
+
styleRowBandSize?: number;
|
|
1034
|
+
styleColBandSize?: number;
|
|
1035
|
+
caption?: string;
|
|
1036
|
+
description?: string;
|
|
1037
|
+
}
|
|
1038
|
+
type TablePropertiesChangeOptions = TablePropertiesOptions & ChangedAttributesProperties;
|
|
1039
|
+
type TablePropertiesOptions = {
|
|
992
1040
|
revision?: TablePropertiesChangeOptions;
|
|
1041
|
+
includeIfEmpty?: boolean;
|
|
1042
|
+
} & TablePropertiesOptionsBase;
|
|
1043
|
+
type TableRowPropertiesChangeOptions$1 = TableRowPropertiesOptionsBase & ChangedAttributesProperties;
|
|
1044
|
+
type TableRowPropertiesOptions$1 = TableRowPropertiesOptionsBase & {
|
|
1045
|
+
insertion?: ChangedAttributesProperties;
|
|
1046
|
+
deletion?: ChangedAttributesProperties;
|
|
1047
|
+
revision?: TableRowPropertiesChangeOptions$1;
|
|
1048
|
+
includeIfEmpty?: boolean;
|
|
1049
|
+
};
|
|
1050
|
+
interface TableCellPropertiesOptionsBase$1 {
|
|
1051
|
+
cnfStyle?: CnfStyleOptions;
|
|
993
1052
|
shading?: ShadingAttributesProperties;
|
|
1053
|
+
margins?: TableCellMarginOptions;
|
|
1054
|
+
verticalAlign?: TableVerticalAlign;
|
|
1055
|
+
textDirection?: (typeof TextDirection)[keyof typeof TextDirection];
|
|
1056
|
+
verticalMerge?: (typeof VerticalMergeType)[keyof typeof VerticalMergeType];
|
|
1057
|
+
width?: TableWidthProperties;
|
|
1058
|
+
columnSpan?: number;
|
|
1059
|
+
rowSpan?: number;
|
|
1060
|
+
borders?: TableCellBordersOptions;
|
|
1061
|
+
horizontalMerge?: "continue" | "restart";
|
|
1062
|
+
noWrap?: boolean;
|
|
1063
|
+
fitText?: boolean;
|
|
1064
|
+
hideMark?: boolean;
|
|
1065
|
+
headers?: string[];
|
|
1066
|
+
insertion?: ChangedAttributesProperties;
|
|
1067
|
+
deletion?: ChangedAttributesProperties;
|
|
1068
|
+
cellMerge?: CellMergeAttributes;
|
|
994
1069
|
}
|
|
1070
|
+
type TableCellPropertiesChangeOptions$1 = TableCellPropertiesOptionsBase$1 & ChangedAttributesProperties;
|
|
1071
|
+
type TableCellPropertiesOptions$1 = {
|
|
1072
|
+
revision?: TableCellPropertiesChangeOptions$1;
|
|
1073
|
+
includeIfEmpty?: boolean;
|
|
1074
|
+
} & TableCellPropertiesOptionsBase$1;
|
|
995
1075
|
//#endregion
|
|
996
1076
|
//#region src/parts/table/descriptor.d.ts
|
|
997
1077
|
declare const tableDesc: CustomDescriptor<TableOptions, BodyContext>;
|
|
998
1078
|
type ParseChildFn = (el: Element, ctx: DocxReadContext) => SectionChild;
|
|
999
1079
|
declare function setTableParseChild(fn: ParseChildFn): void;
|
|
1080
|
+
declare function parseTablePropertiesEl(el: Element): TablePropertiesOptions;
|
|
1081
|
+
declare function parseTableRowPropertiesEl(el: Element): TableRowPropertiesOptions$1;
|
|
1082
|
+
declare function parseTableCellPropertiesEl(el: Element): TableCellPropertiesOptions$1;
|
|
1000
1083
|
//#endregion
|
|
1001
1084
|
//#region src/shared/constants.d.ts
|
|
1002
1085
|
declare const HorizontalPositionAlign: {
|
|
@@ -1134,6 +1217,42 @@ type AlignmentFrameOptions = {
|
|
|
1134
1217
|
} & BaseFrameOptions;
|
|
1135
1218
|
type FrameOptions$1 = XYFrameOptions | AlignmentFrameOptions;
|
|
1136
1219
|
//#endregion
|
|
1220
|
+
//#region src/parts/object/object-element.d.ts
|
|
1221
|
+
interface ObjectEmbedOptions {
|
|
1222
|
+
data: Uint8Array | string;
|
|
1223
|
+
progId?: string;
|
|
1224
|
+
drawAspect?: "content" | "icon";
|
|
1225
|
+
shapeId?: string;
|
|
1226
|
+
fieldCodes?: string;
|
|
1227
|
+
}
|
|
1228
|
+
interface ObjectLinkOptions extends ObjectEmbedOptions {
|
|
1229
|
+
updateMode: "always" | "onCall";
|
|
1230
|
+
lockedField?: boolean;
|
|
1231
|
+
}
|
|
1232
|
+
interface ObjectControlOptions {
|
|
1233
|
+
name?: string;
|
|
1234
|
+
shapeid?: string;
|
|
1235
|
+
rId: string;
|
|
1236
|
+
}
|
|
1237
|
+
interface ObjectIconImageOptions {
|
|
1238
|
+
data: Uint8Array | string;
|
|
1239
|
+
type: string;
|
|
1240
|
+
title?: string;
|
|
1241
|
+
}
|
|
1242
|
+
interface ObjectElementOptions {
|
|
1243
|
+
dxaOrig?: number;
|
|
1244
|
+
dyaOrig?: number;
|
|
1245
|
+
shapeId?: string;
|
|
1246
|
+
width?: number | UniversalMeasure;
|
|
1247
|
+
height?: number | UniversalMeasure;
|
|
1248
|
+
iconImage?: ObjectIconImageOptions;
|
|
1249
|
+
embed?: ObjectEmbedOptions;
|
|
1250
|
+
link?: ObjectLinkOptions;
|
|
1251
|
+
control?: ObjectControlOptions;
|
|
1252
|
+
movie?: string;
|
|
1253
|
+
}
|
|
1254
|
+
declare const objectDesc: CustomDescriptor<ObjectElementOptions, BodyContext>;
|
|
1255
|
+
//#endregion
|
|
1137
1256
|
//#region src/parts/paragraph/run/empty-children.d.ts
|
|
1138
1257
|
interface NoBreakHyphen {
|
|
1139
1258
|
noBreakHyphen: true;
|
|
@@ -1188,14 +1307,23 @@ interface LastRenderedPageBreak {
|
|
|
1188
1307
|
}
|
|
1189
1308
|
//#endregion
|
|
1190
1309
|
//#region src/parts/paragraph/run/run.d.ts
|
|
1310
|
+
type BreakClear = "none" | "left" | "right" | "all";
|
|
1311
|
+
interface BreakOptions {
|
|
1312
|
+
count?: number;
|
|
1313
|
+
clear?: BreakClear;
|
|
1314
|
+
}
|
|
1315
|
+
declare function breakXml(breakOpt: number | BreakOptions | undefined): string;
|
|
1191
1316
|
interface RunOptionsBase {
|
|
1192
|
-
children?: ((typeof PageNumber)[keyof typeof PageNumber] | string | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort |
|
|
1193
|
-
|
|
1317
|
+
children?: ((typeof PageNumber)[keyof typeof PageNumber] | string | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | {
|
|
1318
|
+
object: ObjectElementOptions;
|
|
1319
|
+
} | Record<string, unknown>)[];
|
|
1320
|
+
break?: number | BreakOptions;
|
|
1194
1321
|
text?: string;
|
|
1195
1322
|
}
|
|
1196
1323
|
type RunOptions = RunOptionsBase & RunPropertiesOptions & {
|
|
1197
|
-
|
|
1198
|
-
|
|
1324
|
+
rsid?: string;
|
|
1325
|
+
runPropertiesRsid?: string;
|
|
1326
|
+
deletionRsid?: string;
|
|
1199
1327
|
};
|
|
1200
1328
|
type ParagraphRunOptions = RunOptionsBase & ParagraphRunPropertiesOptions;
|
|
1201
1329
|
declare const PageNumber: {
|
|
@@ -1718,7 +1846,7 @@ interface CoreImageOptions {
|
|
|
1718
1846
|
sourceRectangle?: SourceRectangleOptions;
|
|
1719
1847
|
tile?: TileOptions;
|
|
1720
1848
|
nonVisualProperties?: NonVisualPropertiesOptions;
|
|
1721
|
-
|
|
1849
|
+
runProperties?: RunPropertiesOptions;
|
|
1722
1850
|
graphicFrameLocks?: GraphicFrameLocksOptions | null;
|
|
1723
1851
|
useLocalDpi?: boolean;
|
|
1724
1852
|
}
|
|
@@ -1786,7 +1914,7 @@ interface CoreShapeOptions {
|
|
|
1786
1914
|
vmlFallback?: string;
|
|
1787
1915
|
vmlFallbackMedia?: BackgroundRawMediaOptions[];
|
|
1788
1916
|
mcChoiceRequires?: string;
|
|
1789
|
-
|
|
1917
|
+
runProperties?: RunPropertiesOptions;
|
|
1790
1918
|
graphicFrameLocks?: GraphicFrameLocksOptions | null;
|
|
1791
1919
|
}
|
|
1792
1920
|
type WpsShapeRunOptions = WpsShapeCoreOptions & CoreShapeOptions;
|
|
@@ -1804,7 +1932,7 @@ interface CoreGroupOptions {
|
|
|
1804
1932
|
vmlFallback?: string;
|
|
1805
1933
|
vmlFallbackMedia?: BackgroundRawMediaOptions[];
|
|
1806
1934
|
mcChoiceRequires?: string;
|
|
1807
|
-
|
|
1935
|
+
runProperties?: RunPropertiesOptions;
|
|
1808
1936
|
graphicFrameLocks?: GraphicFrameLocksOptions | null;
|
|
1809
1937
|
groupShapeLocks?: GroupShapeLocksOptions;
|
|
1810
1938
|
}
|
|
@@ -1814,6 +1942,8 @@ type WpgGroupRunOptions = CoreGroupOptions;
|
|
|
1814
1942
|
interface SimpleFieldOptions {
|
|
1815
1943
|
instruction: string;
|
|
1816
1944
|
cachedValue?: string;
|
|
1945
|
+
fldLock?: boolean;
|
|
1946
|
+
dirty?: boolean;
|
|
1817
1947
|
}
|
|
1818
1948
|
//#endregion
|
|
1819
1949
|
//#region src/parts/paragraph/run/comment-run.d.ts
|
|
@@ -1961,12 +2091,16 @@ interface SdtRunOptions {
|
|
|
1961
2091
|
children?: (ParagraphChild | string)[];
|
|
1962
2092
|
endProperties?: RunPropertiesOptions;
|
|
1963
2093
|
}
|
|
2094
|
+
interface FootnoteEndnoteReferenceOptions {
|
|
2095
|
+
id: number;
|
|
2096
|
+
customMarkFollows?: boolean;
|
|
2097
|
+
}
|
|
1964
2098
|
type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
1965
2099
|
symbolRun: SymbolRunOptions;
|
|
1966
2100
|
} | {
|
|
1967
|
-
footnoteReference: number;
|
|
2101
|
+
footnoteReference: number | FootnoteEndnoteReferenceOptions;
|
|
1968
2102
|
} | {
|
|
1969
|
-
endnoteReference: number;
|
|
2103
|
+
endnoteReference: number | FootnoteEndnoteReferenceOptions;
|
|
1970
2104
|
} | {
|
|
1971
2105
|
pageBreak: true;
|
|
1972
2106
|
} | {
|
|
@@ -1990,15 +2124,22 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
|
1990
2124
|
link?: string;
|
|
1991
2125
|
anchor?: string;
|
|
1992
2126
|
tooltip?: string;
|
|
2127
|
+
tgtFrame?: string;
|
|
2128
|
+
docLocation?: string;
|
|
2129
|
+
history?: boolean;
|
|
1993
2130
|
children?: (RunOptions | string)[];
|
|
1994
2131
|
};
|
|
1995
2132
|
} | {
|
|
1996
2133
|
bookmarkStart: {
|
|
1997
2134
|
id: number;
|
|
1998
2135
|
name: string;
|
|
2136
|
+
displacedByCustomXml?: "before" | "after";
|
|
1999
2137
|
};
|
|
2000
2138
|
} | {
|
|
2001
|
-
bookmarkEnd:
|
|
2139
|
+
bookmarkEnd: {
|
|
2140
|
+
id: number;
|
|
2141
|
+
displacedByCustomXml?: "before" | "after";
|
|
2142
|
+
};
|
|
2002
2143
|
} | {
|
|
2003
2144
|
wpsShape: WpsShapeRunOptions;
|
|
2004
2145
|
} | {
|
|
@@ -2082,10 +2223,7 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
|
2082
2223
|
} | {
|
|
2083
2224
|
ruby: RubyOptions;
|
|
2084
2225
|
} | {
|
|
2085
|
-
simpleField:
|
|
2086
|
-
instruction: string;
|
|
2087
|
-
cachedValue?: string;
|
|
2088
|
-
};
|
|
2226
|
+
simpleField: SimpleFieldOptions;
|
|
2089
2227
|
} | {
|
|
2090
2228
|
formField: FormFieldOptions;
|
|
2091
2229
|
} | {
|
|
@@ -2134,11 +2272,13 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
|
2134
2272
|
type ParagraphOptions = {
|
|
2135
2273
|
text?: string;
|
|
2136
2274
|
children?: (ParagraphChild | string)[];
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2275
|
+
rsid?: string;
|
|
2276
|
+
defaultRunRsid?: string;
|
|
2277
|
+
propertiesRsid?: string;
|
|
2278
|
+
runPropertiesRsid?: string;
|
|
2279
|
+
deletionRsid?: string;
|
|
2280
|
+
paraId?: string;
|
|
2281
|
+
textId?: string;
|
|
2142
2282
|
} & ParagraphPropertiesOptions;
|
|
2143
2283
|
//#endregion
|
|
2144
2284
|
//#region src/parts/table/table-row/table-row-properties.d.ts
|
|
@@ -2162,7 +2302,7 @@ interface TableRowPropertiesOptionsBase {
|
|
|
2162
2302
|
cantSplit?: boolean;
|
|
2163
2303
|
tableHeader?: boolean;
|
|
2164
2304
|
height?: {
|
|
2165
|
-
value: number;
|
|
2305
|
+
value: number | PositiveUniversalMeasure;
|
|
2166
2306
|
rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
2167
2307
|
};
|
|
2168
2308
|
cellSpacing?: TableCellSpacingProperties;
|
|
@@ -2293,12 +2433,6 @@ interface PageSizeAttributes {
|
|
|
2293
2433
|
orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
|
|
2294
2434
|
code?: number;
|
|
2295
2435
|
}
|
|
2296
|
-
declare const createPageSize: ({
|
|
2297
|
-
width,
|
|
2298
|
-
height,
|
|
2299
|
-
orientation,
|
|
2300
|
-
code
|
|
2301
|
-
}: PageSizeAttributes) => string;
|
|
2302
2436
|
//#endregion
|
|
2303
2437
|
//#region src/parts/document/body/section-properties/properties/page-number.d.ts
|
|
2304
2438
|
declare const PageNumberSeparator: {
|
|
@@ -2477,9 +2611,13 @@ type SectionChild = {
|
|
|
2477
2611
|
bookmarkStart: {
|
|
2478
2612
|
id: number;
|
|
2479
2613
|
name: string;
|
|
2614
|
+
displacedByCustomXml?: "before" | "after";
|
|
2480
2615
|
};
|
|
2481
2616
|
} | {
|
|
2482
|
-
bookmarkEnd:
|
|
2617
|
+
bookmarkEnd: {
|
|
2618
|
+
id: number;
|
|
2619
|
+
displacedByCustomXml?: "before" | "after";
|
|
2620
|
+
};
|
|
2483
2621
|
} | {
|
|
2484
2622
|
rawXml: string;
|
|
2485
2623
|
};
|
|
@@ -2583,10 +2721,10 @@ interface HeaderFooterGroup<T> {
|
|
|
2583
2721
|
even?: T;
|
|
2584
2722
|
}
|
|
2585
2723
|
interface SectionPropertiesOptionsBase {
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2724
|
+
runPropertiesRsid?: string;
|
|
2725
|
+
deletionRsid?: string;
|
|
2726
|
+
rsid?: string;
|
|
2727
|
+
sectionRsid?: string;
|
|
2590
2728
|
page?: {
|
|
2591
2729
|
size?: PageSizeAttributes;
|
|
2592
2730
|
margin?: PageMarginAttributes;
|
|
@@ -2806,6 +2944,7 @@ interface LevelsOptions {
|
|
|
2806
2944
|
level: number;
|
|
2807
2945
|
format?: (typeof LevelFormat)[keyof typeof LevelFormat];
|
|
2808
2946
|
text?: string;
|
|
2947
|
+
textNull?: boolean;
|
|
2809
2948
|
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
2810
2949
|
start?: number;
|
|
2811
2950
|
suffix?: (typeof LevelSuffix)[keyof typeof LevelSuffix];
|
|
@@ -2816,6 +2955,7 @@ interface LevelsOptions {
|
|
|
2816
2955
|
tentative?: boolean;
|
|
2817
2956
|
w15Tentative?: boolean;
|
|
2818
2957
|
legacy?: {
|
|
2958
|
+
enabled?: boolean;
|
|
2819
2959
|
space?: number;
|
|
2820
2960
|
indent?: number;
|
|
2821
2961
|
};
|
|
@@ -2960,6 +3100,12 @@ interface CompatibilityOptions {
|
|
|
2960
3100
|
overrideTableStyleFontSizeAndJustification?: boolean;
|
|
2961
3101
|
enableOpenTypeFeatures?: boolean;
|
|
2962
3102
|
doNotFlipMirrorIndents?: boolean;
|
|
3103
|
+
compatSettings?: CompatSettingOptions[];
|
|
3104
|
+
}
|
|
3105
|
+
interface CompatSettingOptions {
|
|
3106
|
+
name: string;
|
|
3107
|
+
val: string;
|
|
3108
|
+
uri?: string;
|
|
2963
3109
|
}
|
|
2964
3110
|
//#endregion
|
|
2965
3111
|
//#region src/parts/settings/settings.d.ts
|
|
@@ -3009,7 +3155,11 @@ interface SettingsOptions {
|
|
|
3009
3155
|
followedHyperlink?: string;
|
|
3010
3156
|
};
|
|
3011
3157
|
attachedTemplate?: string;
|
|
3012
|
-
themeFontLang?:
|
|
3158
|
+
themeFontLang?: {
|
|
3159
|
+
val?: string;
|
|
3160
|
+
eastAsia?: string;
|
|
3161
|
+
bidi?: string;
|
|
3162
|
+
};
|
|
3013
3163
|
hideSpellingErrors?: boolean;
|
|
3014
3164
|
hideGrammaticalErrors?: boolean;
|
|
3015
3165
|
noPunctuationKerning?: boolean;
|
|
@@ -3091,6 +3241,7 @@ interface SettingsOptions {
|
|
|
3091
3241
|
top3HeadingStyles?: boolean;
|
|
3092
3242
|
visibleStyles?: boolean;
|
|
3093
3243
|
alternateStyleNames?: boolean;
|
|
3244
|
+
latentStyles?: boolean;
|
|
3094
3245
|
};
|
|
3095
3246
|
stylePaneSortMethod?: "name" | "priority" | "default" | "font";
|
|
3096
3247
|
documentType?: "letter" | "eMail" | "notSpecified";
|
|
@@ -3111,7 +3262,7 @@ interface SettingsOptions {
|
|
|
3111
3262
|
};
|
|
3112
3263
|
showXMLTags?: boolean;
|
|
3113
3264
|
alwaysMergeEmptyNamespace?: boolean;
|
|
3114
|
-
hdrShapeDefaults?:
|
|
3265
|
+
hdrShapeDefaults?: string;
|
|
3115
3266
|
attachedSchema?: string[];
|
|
3116
3267
|
forceUpgrade?: boolean;
|
|
3117
3268
|
smartTagType?: {
|
|
@@ -3120,7 +3271,7 @@ interface SettingsOptions {
|
|
|
3120
3271
|
name?: string;
|
|
3121
3272
|
url?: string;
|
|
3122
3273
|
}[];
|
|
3123
|
-
shapeDefaults?:
|
|
3274
|
+
shapeDefaults?: string;
|
|
3124
3275
|
}
|
|
3125
3276
|
interface RevisionViewOptions {
|
|
3126
3277
|
markup?: boolean;
|
|
@@ -3221,14 +3372,14 @@ interface HyphenationOptions {
|
|
|
3221
3372
|
doNotHyphenateCaps?: boolean;
|
|
3222
3373
|
}
|
|
3223
3374
|
interface FootnotePropertiesOptions {
|
|
3224
|
-
pos?:
|
|
3375
|
+
pos?: "pageBottom" | "beneathText" | "sectEnd" | "docEnd";
|
|
3225
3376
|
numFmt?: string;
|
|
3226
3377
|
format?: string;
|
|
3227
3378
|
numStart?: number;
|
|
3228
3379
|
numRestart?: string;
|
|
3229
3380
|
}
|
|
3230
3381
|
interface EndnotePropertiesOptions {
|
|
3231
|
-
pos?:
|
|
3382
|
+
pos?: "sectEnd" | "docEnd";
|
|
3232
3383
|
numFmt?: string;
|
|
3233
3384
|
format?: string;
|
|
3234
3385
|
numStart?: number;
|
|
@@ -3263,44 +3414,49 @@ interface CaptionsOptions {
|
|
|
3263
3414
|
}
|
|
3264
3415
|
interface MathPropertiesOptions {
|
|
3265
3416
|
mathFont?: string;
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3417
|
+
binaryOperatorBreak?: "before" | "after" | "repeat";
|
|
3418
|
+
binaryOperatorBreakSubtraction?: "--" | "-+" | "+-";
|
|
3419
|
+
smallFractions?: boolean;
|
|
3420
|
+
displayDefaults?: boolean;
|
|
3421
|
+
leftMargin?: number;
|
|
3422
|
+
rightMargin?: number;
|
|
3423
|
+
defaultJustification?: "left" | "right" | "center" | "centerGroup";
|
|
3424
|
+
preSpacing?: number;
|
|
3425
|
+
postSpacing?: number;
|
|
3426
|
+
interSpacing?: number;
|
|
3427
|
+
intraSpacing?: number;
|
|
3273
3428
|
wrapIndent?: number;
|
|
3274
|
-
|
|
3275
|
-
|
|
3429
|
+
wrapRight?: boolean;
|
|
3430
|
+
integralLimitLocation?: "subSup" | "undOvr";
|
|
3431
|
+
naryLimitLocation?: "subSup" | "undOvr";
|
|
3276
3432
|
}
|
|
3277
3433
|
//#endregion
|
|
3278
3434
|
//#region src/parts/styles/factory.d.ts
|
|
3279
3435
|
interface DefaultStylesOptions {
|
|
3280
3436
|
document?: DocumentDefaultsOptions;
|
|
3281
|
-
title?:
|
|
3282
|
-
subtitle?:
|
|
3283
|
-
heading1?:
|
|
3284
|
-
heading2?:
|
|
3285
|
-
heading3?:
|
|
3286
|
-
heading4?:
|
|
3287
|
-
heading5?:
|
|
3288
|
-
heading6?:
|
|
3289
|
-
heading7?:
|
|
3290
|
-
heading8?:
|
|
3291
|
-
heading9?:
|
|
3292
|
-
strong?:
|
|
3293
|
-
emphasis?:
|
|
3294
|
-
listParagraph?:
|
|
3295
|
-
quote?:
|
|
3296
|
-
intenseQuote?:
|
|
3297
|
-
hyperlink?:
|
|
3298
|
-
footnoteReference?:
|
|
3299
|
-
footnoteText?:
|
|
3300
|
-
footnoteTextChar?:
|
|
3301
|
-
endnoteReference?:
|
|
3302
|
-
endnoteText?:
|
|
3303
|
-
endnoteTextChar?:
|
|
3437
|
+
title?: ParagraphStyleOptions;
|
|
3438
|
+
subtitle?: ParagraphStyleOptions;
|
|
3439
|
+
heading1?: ParagraphStyleOptions;
|
|
3440
|
+
heading2?: ParagraphStyleOptions;
|
|
3441
|
+
heading3?: ParagraphStyleOptions;
|
|
3442
|
+
heading4?: ParagraphStyleOptions;
|
|
3443
|
+
heading5?: ParagraphStyleOptions;
|
|
3444
|
+
heading6?: ParagraphStyleOptions;
|
|
3445
|
+
heading7?: ParagraphStyleOptions;
|
|
3446
|
+
heading8?: ParagraphStyleOptions;
|
|
3447
|
+
heading9?: ParagraphStyleOptions;
|
|
3448
|
+
strong?: ParagraphStyleOptions;
|
|
3449
|
+
emphasis?: ParagraphStyleOptions;
|
|
3450
|
+
listParagraph?: ParagraphStyleOptions;
|
|
3451
|
+
quote?: ParagraphStyleOptions;
|
|
3452
|
+
intenseQuote?: ParagraphStyleOptions;
|
|
3453
|
+
hyperlink?: CharacterStyleOptions;
|
|
3454
|
+
footnoteReference?: CharacterStyleOptions;
|
|
3455
|
+
footnoteText?: ParagraphStyleOptions;
|
|
3456
|
+
footnoteTextChar?: CharacterStyleOptions;
|
|
3457
|
+
endnoteReference?: CharacterStyleOptions;
|
|
3458
|
+
endnoteText?: ParagraphStyleOptions;
|
|
3459
|
+
endnoteTextChar?: CharacterStyleOptions;
|
|
3304
3460
|
}
|
|
3305
3461
|
interface DocumentDefaultsOptions {
|
|
3306
3462
|
paragraph?: ParagraphStylePropertiesOptions;
|
|
@@ -3321,18 +3477,56 @@ interface StyleOptions {
|
|
|
3321
3477
|
personal?: boolean;
|
|
3322
3478
|
personalCompose?: boolean;
|
|
3323
3479
|
personalReply?: boolean;
|
|
3480
|
+
hidden?: boolean;
|
|
3481
|
+
rsid?: string;
|
|
3324
3482
|
}
|
|
3325
|
-
type
|
|
3483
|
+
type ParagraphStyleOptions = {
|
|
3326
3484
|
paragraph?: ParagraphStylePropertiesOptions;
|
|
3327
3485
|
run?: RunStylePropertiesOptions;
|
|
3328
3486
|
} & StyleOptions & {
|
|
3329
3487
|
id?: string;
|
|
3330
3488
|
};
|
|
3331
|
-
type
|
|
3489
|
+
type CharacterStyleOptions = {
|
|
3332
3490
|
run?: RunStylePropertiesOptions;
|
|
3333
3491
|
} & StyleOptions & {
|
|
3334
3492
|
id?: string;
|
|
3335
3493
|
};
|
|
3494
|
+
declare function stringifyParagraphStyle(opts: StyleOptions & {
|
|
3495
|
+
id: string;
|
|
3496
|
+
paragraph?: ParagraphStylePropertiesOptions;
|
|
3497
|
+
run?: RunStylePropertiesOptions;
|
|
3498
|
+
}): string;
|
|
3499
|
+
declare function stringifyCharacterStyle(opts: StyleOptions & {
|
|
3500
|
+
id: string;
|
|
3501
|
+
run?: RunStylePropertiesOptions;
|
|
3502
|
+
}): string;
|
|
3503
|
+
type TableStyleOverrideType = "wholeTable" | "firstRow" | "lastRow" | "firstCol" | "lastCol" | "band1Vert" | "band2Vert" | "band1Horz" | "band2Horz" | "neCell" | "nwCell" | "seCell" | "swCell";
|
|
3504
|
+
interface ConditionalTableStyleOptions {
|
|
3505
|
+
type: TableStyleOverrideType;
|
|
3506
|
+
paragraph?: ParagraphStylePropertiesOptions;
|
|
3507
|
+
run?: RunStylePropertiesOptions;
|
|
3508
|
+
table?: TablePropertiesOptions;
|
|
3509
|
+
row?: TableRowPropertiesOptions$1;
|
|
3510
|
+
cell?: TableCellPropertiesOptions$1;
|
|
3511
|
+
}
|
|
3512
|
+
type TableStyleOptions = {
|
|
3513
|
+
paragraph?: ParagraphStylePropertiesOptions;
|
|
3514
|
+
run?: RunStylePropertiesOptions;
|
|
3515
|
+
table?: TablePropertiesOptions;
|
|
3516
|
+
row?: TableRowPropertiesOptions$1;
|
|
3517
|
+
cell?: TableCellPropertiesOptions$1;
|
|
3518
|
+
conditionalFormats?: ConditionalTableStyleOptions[];
|
|
3519
|
+
} & StyleOptions & {
|
|
3520
|
+
id: string;
|
|
3521
|
+
};
|
|
3522
|
+
declare function stringifyConditionalTableStyle(opts: ConditionalTableStyleOptions): string;
|
|
3523
|
+
declare function stringifyTableStyle(opts: TableStyleOptions): string;
|
|
3524
|
+
declare const STYLE_ID_TO_DEFAULT_FIELD: Record<string, keyof DefaultStylesOptions>;
|
|
3525
|
+
declare function collectDefaultOverrideIds(defaultOpts: DefaultStylesOptions | undefined): Set<string>;
|
|
3526
|
+
declare class DefaultStylesFactory {
|
|
3527
|
+
newInstance(options?: DefaultStylesOptions): StylesOptions;
|
|
3528
|
+
private build;
|
|
3529
|
+
}
|
|
3336
3530
|
//#endregion
|
|
3337
3531
|
//#region src/parts/styles/styles.d.ts
|
|
3338
3532
|
interface StylesOptions {
|
|
@@ -3341,12 +3535,13 @@ interface StylesOptions {
|
|
|
3341
3535
|
importedStyles?: {
|
|
3342
3536
|
_raw: string;
|
|
3343
3537
|
}[];
|
|
3344
|
-
paragraphStyles?: (
|
|
3538
|
+
paragraphStyles?: (ParagraphStyleOptions & {
|
|
3345
3539
|
id: string;
|
|
3346
3540
|
})[];
|
|
3347
|
-
characterStyles?: (
|
|
3541
|
+
characterStyles?: (CharacterStyleOptions & {
|
|
3348
3542
|
id: string;
|
|
3349
3543
|
})[];
|
|
3544
|
+
tableStyles?: TableStyleOptions[];
|
|
3350
3545
|
latentStylesXml?: string;
|
|
3351
3546
|
docDefaultsXml?: string;
|
|
3352
3547
|
}
|
|
@@ -3425,10 +3620,10 @@ interface DivBorderOptions {
|
|
|
3425
3620
|
}
|
|
3426
3621
|
interface DivOptions {
|
|
3427
3622
|
id: number;
|
|
3428
|
-
marginLeft: number;
|
|
3429
|
-
marginRight: number;
|
|
3430
|
-
marginTop: number;
|
|
3431
|
-
marginBottom: number;
|
|
3623
|
+
marginLeft: number | UniversalMeasure;
|
|
3624
|
+
marginRight: number | UniversalMeasure;
|
|
3625
|
+
marginTop: number | UniversalMeasure;
|
|
3626
|
+
marginBottom: number | UniversalMeasure;
|
|
3432
3627
|
blockQuote?: boolean;
|
|
3433
3628
|
bodyDiv?: boolean;
|
|
3434
3629
|
border?: DivBorderOptions;
|
|
@@ -3447,11 +3642,15 @@ declare const TargetScreenSize: {
|
|
|
3447
3642
|
readonly SIZE_1800X1440: "1800x1440";
|
|
3448
3643
|
readonly SIZE_1920X1200: "1920x1200";
|
|
3449
3644
|
};
|
|
3645
|
+
interface OptimizeForBrowserOptions {
|
|
3646
|
+
value?: boolean;
|
|
3647
|
+
target?: string;
|
|
3648
|
+
}
|
|
3450
3649
|
interface WebSettingsOptions {
|
|
3451
3650
|
frameset?: FramesetOptions;
|
|
3452
3651
|
divs?: DivOptions[];
|
|
3453
3652
|
encoding?: string;
|
|
3454
|
-
optimizeForBrowser?: boolean;
|
|
3653
|
+
optimizeForBrowser?: boolean | OptimizeForBrowserOptions;
|
|
3455
3654
|
relyOnVML?: boolean;
|
|
3456
3655
|
allowPNG?: boolean;
|
|
3457
3656
|
doNotRelyOnCSS?: boolean;
|
|
@@ -3466,7 +3665,7 @@ interface WebSettingsInput {
|
|
|
3466
3665
|
frameset?: FramesetOptions;
|
|
3467
3666
|
divs?: DivOptions[];
|
|
3468
3667
|
encoding?: string;
|
|
3469
|
-
optimizeForBrowser?: boolean;
|
|
3668
|
+
optimizeForBrowser?: boolean | OptimizeForBrowserOptions;
|
|
3470
3669
|
relyOnVML?: boolean;
|
|
3471
3670
|
allowPNG?: boolean;
|
|
3472
3671
|
doNotRelyOnCSS?: boolean;
|
|
@@ -3481,6 +3680,20 @@ declare function framesetXml(fs: FramesetOptions): string;
|
|
|
3481
3680
|
declare function frameXml(f: FrameOptions): string;
|
|
3482
3681
|
declare const webSettingsDesc: CustomDescriptor<WebSettingsInput>;
|
|
3483
3682
|
//#endregion
|
|
3683
|
+
//#region src/shared/embeddings/embeddings.d.ts
|
|
3684
|
+
interface EmbeddingData {
|
|
3685
|
+
fileName: string;
|
|
3686
|
+
data: Uint8Array;
|
|
3687
|
+
progId?: string;
|
|
3688
|
+
}
|
|
3689
|
+
declare class EmbeddingCollection {
|
|
3690
|
+
private map;
|
|
3691
|
+
private counter;
|
|
3692
|
+
nextEmbeddingName(): string;
|
|
3693
|
+
addEmbedding(key: string, data: EmbeddingData): void;
|
|
3694
|
+
get array(): EmbeddingData[];
|
|
3695
|
+
}
|
|
3696
|
+
//#endregion
|
|
3484
3697
|
//#region src/parse.d.ts
|
|
3485
3698
|
interface DocxPartRefs {
|
|
3486
3699
|
headers: Map<string, string>;
|
|
@@ -3500,6 +3713,7 @@ interface DocxPartRefs {
|
|
|
3500
3713
|
}
|
|
3501
3714
|
interface DocxDocument {
|
|
3502
3715
|
doc: ParsedArchive;
|
|
3716
|
+
documentRoot: Element;
|
|
3503
3717
|
body: Element;
|
|
3504
3718
|
background?: Element;
|
|
3505
3719
|
styles?: Element;
|
|
@@ -3537,6 +3751,7 @@ declare class DocxWriteContext implements WriteContext {
|
|
|
3537
3751
|
media: Media;
|
|
3538
3752
|
charts: ChartCollection;
|
|
3539
3753
|
smartArts: SmartArtCollection;
|
|
3754
|
+
embeddings: EmbeddingCollection;
|
|
3540
3755
|
altChunks: AltChunkCollection;
|
|
3541
3756
|
subDocs: SubDocCollection;
|
|
3542
3757
|
comments: {
|
|
@@ -3615,6 +3830,7 @@ interface EmbeddedFontOptions {
|
|
|
3615
3830
|
name: string;
|
|
3616
3831
|
data?: DataType;
|
|
3617
3832
|
characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
|
|
3833
|
+
characterSetName?: string;
|
|
3618
3834
|
family?: string;
|
|
3619
3835
|
pitch?: string;
|
|
3620
3836
|
panose1?: string;
|
|
@@ -3623,6 +3839,7 @@ interface EmbeddedFontOptions {
|
|
|
3623
3839
|
rawOdttf?: boolean;
|
|
3624
3840
|
odttfPath?: string;
|
|
3625
3841
|
fontKey?: string;
|
|
3842
|
+
subsetted?: boolean;
|
|
3626
3843
|
}
|
|
3627
3844
|
//#endregion
|
|
3628
3845
|
//#region src/parts/settings/descriptor.d.ts
|
|
@@ -3662,6 +3879,7 @@ interface DocumentOptions extends CorePropertiesOptions {
|
|
|
3662
3879
|
defaultTabStop?: number;
|
|
3663
3880
|
fonts?: EmbeddedFontOptions[];
|
|
3664
3881
|
hyphenation?: HyphenationOptions;
|
|
3882
|
+
conformance?: "strict" | "transitional";
|
|
3665
3883
|
characterSpacingControl?: "compressPunctuation" | "doNotCompress";
|
|
3666
3884
|
view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
|
|
3667
3885
|
zoom?: {
|
|
@@ -3691,5 +3909,5 @@ interface DocumentOptions extends CorePropertiesOptions {
|
|
|
3691
3909
|
}
|
|
3692
3910
|
declare const corePropertiesDesc: CustomDescriptor<CorePropertiesOptions>;
|
|
3693
3911
|
//#endregion
|
|
3694
|
-
export {
|
|
3695
|
-
//# sourceMappingURL=core-properties-
|
|
3912
|
+
export { CaptionOptions as $, TabStopDefinition as $a, SoftHyphen as $i, DropDownListOptions as $n, CharacterSet as $o, createBodyProperties as $r, parseSectionPropertiesEl as $t, SubDocData as A, VerticalMergeType as Aa, ParagraphPropertiesOptionsBase as Ai, CustomXmlCellOptions as An, SdtDropDownListOptions as Ao, ExtendedMediaData as Ar, DocPartGallery as At, DefaultStylesOptions as B, RelativeVerticalPosition as Ba, AnnotationReference as Bi, TableRowPropertiesOptionsBase as Bn, RunPropertiesOptions as Bo, ShapeStyleOptions as Br, endnotesDesc as Bt, TargetScreenSize as C, tableDesc as Ca, TextWrappingType as Ci, DocGridAttributesProperties as Cn, parseTocFieldInstruction as Co, ChartOptions as Cr, Numbering as Ct, framesetXml as D, TableRowOptions as Da, LevelParagraphStylePropertiesOptions as Di, ColumnAttributes as Dn, SdtDataBindingOptions as Do, MediaTransformation as Dr, LevelSuffix as Dt, frameXml as E, SdtRowOptions as Ea, SymbolRunOptions as Ei, ColumnsAttributes as En, SdtComboBoxOptions as Eo, Media as Er, LevelFormat as Et, extractStyleId as F, TablePropertiesOptionsBase$1 as Fa, BreakOptions as Fi, SdtCellOptions as Fn, StyleLevel as Fo, SmartArtMediaData as Fr, FootnoteSeparator as Ft, TableStyleOptions as G, MathDelimiterProperties as Ga, EndnoteReference as Gi, ParagraphChild as Gn, EmphasisMarkType as Go, FlatTextOptions as Gr, sectionMarginDefaults as Gt, ParagraphStyleOptions as H, TableFloatOptions as Ha, ContinuationSeparator as Hi, FootnoteEndnoteReferenceOptions as Hn, TextEffect as Ho, WpsShapeCoreOptions as Hr, SectionPropertiesChangeOptions as Ht, parseStyleDefinitions as I, TableLookOptions as Ia, PageNumber as Ii, TableCellOptions as In, TableOfContentsOptions as Io, WORKAROUND2 as Ir, FootnotesData as It, stringifyCharacterStyle as J, MathNaryProperties as Ja, MonthLong as Ji, SmartArtChild as Jn, BorderOptions as Jo, TextBodyWrappingType as Jr, DocumentAttributeNamespaces as Jt, TableStyleOverrideType as K, MathInput as Ka, FootnoteReferenceElement as Ki, ParagraphOptions as Kn, ShadingAttributesProperties as Ko, NormalAutofitOptions as Kr, sectionPageSizeDefaults as Kt, CharacterStyleOptions as L, TableLayoutType as La, ParagraphRunOptions as Li, CnfStyleOptions as Ln, HighlightColor as Lo, WpgCommonMediaData as Lr, footnotesDesc as Lt, StylesOptions as M, TablePropertyExOptions as Ma, TextAlignmentType as Mi, CustomXmlPropertiesOptions as Mn, SdtLock as Mo, MediaData as Mr, DocPartType as Mt, buildNumberingCache as N, TablePropertiesChangeOptions$1 as Na, TextboxTightWrapType as Ni, CustomXmlRowOptions as Nn, SdtPropertiesOptions as No, MediaDataTransformation as Nr, GlossaryDocumentOptions as Nt, webSettingsDesc as O, TableCellBordersOptions as Oa, ParagraphPropertiesChangeOptions as Oi, CustomXmlAttributeOptions as On, SdtDateMappingType as Oo, createTransformation as Or, LevelsOptions as Ot, buildStyleCache as P, TablePropertiesOptions$1 as Pa, BreakClear as Pi, CustomXmlRunOptions as Pn, SdtTextOptions as Po, NonVisualPropertiesOptions as Pr, glossaryDesc as Pt, AutoCaptionOptions as Q, LeaderType as Qa, Separator as Qi, CheckBoxOptions as Qn, AltChunkData as Qo, VerticalAnchor as Qr, SubDocOptions as Qt, ConditionalTableStyleOptions as R, OverlapType as Ra, RunOptions as Ri, TableRowPropertiesChangeOptions as Rn, ParagraphRunPropertiesOptions as Ro, WpgMediaData as Rr, EndnoteSeparator as Rt, OptimizeForBrowserOptions as S, setTableParseChild as Sa, TextWrappingSide as Si, PageSizeAttributes as Sn, parseTocFieldFromElements as So, SmartArtOptions as Sr, AbstractNumberingOptions as St, WebSettingsOptions as T, HeightRule as Ta, DrawingOptions as Ti, createDocumentGrid as Tn, SdtCheckboxSymbol as To, createImageData as Tr, parseNumberingDefinitions as Tt, STYLE_ID_TO_DEFAULT_FIELD as U, TABLE_BORDERS_NONE as Ua, DayLong as Ui, ImageChild as Un, UnderlineType as Uo, WpsShapeOptions as Ur, SectionPropertiesOptions as Ut, DocumentDefaultsOptions as V, TableAnchorType as Va, CarriageReturn as Vi, ChartChild as Vn, RunStylePropertiesOptions as Vo, StyleMatrixReferenceOptions as Vr, HeaderFooterGroup as Vt, StyleOptions as W, TableBordersOptions as Wa, DayShort as Wi, MathChild as Wn, FontAttributesProperties as Wo, BodyPropertiesOptions as Wr, SectionPropertiesOptionsBase as Wt, stringifyParagraphStyle as X, MathScriptType as Xa, NoBreakHyphen as Xi, ProofErrorTypeValue as Xn, AltChunkOptions as Xo, TextVertOverflowType as Xr, SectionOptions as Xt, stringifyConditionalTableStyle as Y, MathRunPropertiesOptions as Ya, MonthShort as Yi, ProofErrorType as Yn, BorderStyle as Yo, TextHorzOverflowType as Yr, SectionChild as Yt, stringifyTableStyle as Z, MathStyleType as Za, PageNumberElement as Zi, SmartTagRunOptions as Zn, AltChunkCollection as Zo, TextVerticalType as Zr, VmlShapeStyle as Zt, parseArchive as _, SpaceType as _a, VerticalPositionOptions as _i, PageBordersOptions as _n, createVerticalAlign as _o, WpsShapeRunOptions as _r, SettingsOptions as _t, CustomPropertyOptions as a, ObjectEmbedOptions as aa, WpgGroupOptions as ai, createHeaderFooterReference as an, BreakType as ao, createFormFieldData as ar, withAltChunkOverrides as as, MailMergeDataType as at, DivBorderOptions as b, parseTablePropertiesEl as ba, createWrapTight as bi, createPageNumberType as bn, stringifyTableOfContents as bo, DocumentBackgroundOptions as br, CompatibilityOptions as bt, AppPropertiesOptions as c, objectDesc as ca, GroupShapeLocksOptions as ci, LineNumberAttributes as cn, CnfConditionalOptions as co, RubyOptions as cr, SourceTypeOptions as cs, MailMergeOptions as ct, EmbeddedFontOptionsWithKey as d, FrameAnchorType as da, createVerticalPosition as di, PageTextDirectionType as dn, TableWidthProperties as do, PositionalTabOptions as dr, OdsoFieldMapDataOptions as dt, Tab as ea, parseBodyProperties as ei, sectionPropertiesDesc as en, TabStopPosition as eo, FormFieldCommonOptions as er, ContentTypeDefault as es, CaptionsOptions as et, BodyContext as f, FrameOptions$1 as fa, createHorizontalPosition as fi, PageMarginAttributes as fn, WidthType as fo, PositionalTabRelativeTo as fr, OdsoFieldType as ft, DocxPartRefs as g, NumberFormat as ga, Margins as gi, PageBorderZOrder as gn, VerticalAlignTable as go, WpgGroupRunOptions as gr, RsidsOptions as gt, DocxDocument as h, HorizontalPositionAlign as ha, HorizontalPositionRelativeFrom as hi, PageBorderOffsetFrom as hn, VerticalAlignSection as ho, SimpleFieldOptions as hr, RevisionViewOptions as ht, CustomPropertiesInput as i, ObjectElementOptions as ia, WpgGroupCoreOptions as ii, HeaderFooterType as in, SpacingProperties as io, TextInputOptions as ir, contentTypesDesc as is, HyphenationOptions as it, Styles as j, TablePropertyExChangeOptions as ja, ParagraphStylePropertiesOptions as ji, CustomXmlDataBindingOptions as jn, SdtListItem as jo, GroupChildMediaData as jr, DocPartOptions as jt, SubDocCollection as k, TextDirection as ka, ParagraphPropertiesOptions as ki, CustomXmlBlockOptions as kn, SdtDateOptions as ko, ChartMediaData as kr, DocPartBehavior as kt, appPropertiesDesc as l, AlignmentFrameOptions as la, drawingDesc as li, LineNumberRestartFormat as ln, BordersOptions as lo, PositionalTabAlignment as lr, bibliographyDesc as ls, MailMergeSourceType as lt, DocxWriteContext as m, XYFrameOptions as ma, HorizontalPositionOptions as mi, PageBorderDisplay as mn, TableVerticalAlign as mo, CommentsOptions as mr, ReadModeInkLockDownOptions as mt, FeaturesOptions as n, YearShort as na, ChildOffset as ni, HeaderFooterReferenceOptions as nn, HeadingLevel as no, FormFieldTextOptions as nr, ContentTypesInput as ns, EndnotePropertiesOptions as nt, customPropertiesDesc as o, ObjectIconImageOptions as oa, DrawingDescriptorOptions as oi, SectionType as on, BreakTypeValue as oo, parseFormFieldData as or, withMediaDefaults as os, MailMergeDest as ot, DocxReadContext as p, FrameWrap as pa, Floating as pi, createPageMargin as pn, SectionVerticalAlign as po, CommentOptions as pr, OdsoOptions as pt, collectDefaultOverrideIds as q, MathNaryLimitLocation as qa, LastRenderedPageBreak as qi, SdtRunOptions as qn, ShadingType as qo, PresetTextShapeOptions as qr, DocumentAttributeNamespace as qt, corePropertiesDesc as r, ObjectControlOptions as ra, GroupChild as ri, HeaderFooterReferenceType as rn, LineRuleType as ro, FormFieldTextType as rr, buildContentTypesFromRegistry as rs, FootnotePropertiesOptions as rt, AppPropertiesInput as s, ObjectLinkOptions as sa, GraphicFrameLocksOptions as si, createSectionType as sn, IndentAttributesProperties as so, RubyAlign as sr, BibliographyOptions as ss, MailMergeDocType as st, DocumentOptions as t, YearLong as ta, ChildExtent as ti, stringifySectionPropertiesXml as tn, TabStopType as to, FormFieldOptions as tr, ContentTypeOverride as ts, DocumentProtectionOptions as tt, settingsDesc as u, DropCapType as ua, resetDrawingIdGen as ui, createLineNumberType as un, AlignmentType as uo, PositionalTabLeader as ur, MathPropertiesOptions as ut, parseDocument as v, VerticalPositionAlign as va, VerticalPositionRelativeFrom as vi, PageNumberSeparator as vn, CellMergeAttributes as vo, BackgroundImageOptions as vr, WriteProtectionOptions as vt, WebSettingsInput as w, TableOptions as wa, Distance as wi, DocumentGridType as wn, SdtCheckboxOptions as wo, ImageOptions as wr, NumberingOptions as wt, DivOptions as x, parseTableRowPropertiesEl as xa, TextWrapping as xi, PageOrientation as xn, parseToc as xo, SmartArtNode as xr, ConcreteNumberingOptions as xt, parseDocx as y, parseTableCellPropertiesEl as ya, createWrapThrough as yi, PageNumberTypeAttributes as yn, VerticalMergeRevisionType as yo, BackgroundRawMediaOptions as yr, CompatSettingOptions as yt, DefaultStylesFactory as z, RelativeHorizontalPosition as za, breakXml as zi, TableRowPropertiesOptions as zn, RunPropertiesChangeOptions as zo, WpsMediaData as zr, EndnotesData as zt };
|
|
3913
|
+
//# sourceMappingURL=core-properties-DFRUHpWM.d.mts.map
|