@office-open/docx 0.9.8 → 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-Bl2wL_dD.mjs → context-C0vWotG5.mjs} +54 -5
- package/dist/context-C0vWotG5.mjs.map +1 -0
- package/dist/{core-properties-CZzFLDat.d.mts → core-properties-DFRUHpWM.d.mts} +330 -163
- package/dist/core-properties-DFRUHpWM.d.mts.map +1 -0
- package/dist/{generate-CqKwXEWC.mjs → generate-Bh4akIEz.mjs} +16 -11
- 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 +7 -31
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/{parse-BwZ29Ait.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-Cp_NxQFi.mjs → parts-DVpfsxSR.mjs} +1831 -653
- package/dist/parts-DVpfsxSR.mjs.map +1 -0
- package/dist/patch/index.d.mts +26 -29
- package/dist/patch/index.d.mts.map +1 -1
- package/dist/patch/index.mjs +190 -41
- package/dist/patch/index.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/context-Bl2wL_dD.mjs.map +0 -1
- package/dist/core-properties-CZzFLDat.d.mts.map +0 -1
- package/dist/generate-CqKwXEWC.mjs.map +0 -1
- package/dist/parse-BwZ29Ait.mjs.map +0 -1
- package/dist/parts-Cp_NxQFi.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataType, ParsedArchive, Percentage, PositiveUniversalMeasure, Relationships, RelativeMeasure, ThemeColor, ThemeFont, UniversalMeasure, parseArchive } from "@office-open/core";
|
|
1
|
+
import { AppPropertiesInput, AppPropertiesOptions, CorePropertiesOptions, CustomPropertiesInput, CustomPropertyOptions, DataType, ParsedArchive, Percentage, PositiveUniversalMeasure, Relationships, RelativeMeasure, ThemeColor, ThemeFont, UniversalMeasure, appPropertiesDesc, customPropertiesDesc, parseArchive } from "@office-open/core";
|
|
2
2
|
import { Element } from "@office-open/xml";
|
|
3
3
|
import { BlipEffectsOptions, CustomGeometryOptions, EffectDagOptions, EffectListOptions, FillOptions, OutlineOptions, Scene3DOptions, Shape3DOptions, SolidFillOptions, SourceRectangleOptions, TileOptions } from "@office-open/core/drawingml";
|
|
4
4
|
import { ChartCollection, ChartSpaceOptions } from "@office-open/core/chart";
|
|
@@ -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,12 +1942,14 @@ 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
|
|
1820
1950
|
interface CommentOptions {
|
|
1821
1951
|
id: number;
|
|
1822
|
-
children:
|
|
1952
|
+
children: (string | ParagraphOptions)[];
|
|
1823
1953
|
initials?: string;
|
|
1824
1954
|
author?: string;
|
|
1825
1955
|
date?: Date | string;
|
|
@@ -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
|
} | {
|
|
@@ -1978,23 +2112,34 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
|
1978
2112
|
} | {
|
|
1979
2113
|
commentReference: number;
|
|
1980
2114
|
} | {
|
|
1981
|
-
insertion:
|
|
2115
|
+
insertion: ChangedAttributesProperties & {
|
|
2116
|
+
children: (RunOptions | string)[];
|
|
2117
|
+
};
|
|
1982
2118
|
} | {
|
|
1983
|
-
deletion:
|
|
2119
|
+
deletion: ChangedAttributesProperties & {
|
|
2120
|
+
children: (RunOptions | string)[];
|
|
2121
|
+
};
|
|
1984
2122
|
} | {
|
|
1985
2123
|
hyperlink: {
|
|
1986
2124
|
link?: string;
|
|
1987
2125
|
anchor?: string;
|
|
1988
2126
|
tooltip?: string;
|
|
2127
|
+
tgtFrame?: string;
|
|
2128
|
+
docLocation?: string;
|
|
2129
|
+
history?: boolean;
|
|
1989
2130
|
children?: (RunOptions | string)[];
|
|
1990
2131
|
};
|
|
1991
2132
|
} | {
|
|
1992
2133
|
bookmarkStart: {
|
|
1993
2134
|
id: number;
|
|
1994
2135
|
name: string;
|
|
2136
|
+
displacedByCustomXml?: "before" | "after";
|
|
1995
2137
|
};
|
|
1996
2138
|
} | {
|
|
1997
|
-
bookmarkEnd:
|
|
2139
|
+
bookmarkEnd: {
|
|
2140
|
+
id: number;
|
|
2141
|
+
displacedByCustomXml?: "before" | "after";
|
|
2142
|
+
};
|
|
1998
2143
|
} | {
|
|
1999
2144
|
wpsShape: WpsShapeRunOptions;
|
|
2000
2145
|
} | {
|
|
@@ -2036,9 +2181,13 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
|
2036
2181
|
} | {
|
|
2037
2182
|
moveToRangeEnd: number;
|
|
2038
2183
|
} | {
|
|
2039
|
-
movedFrom:
|
|
2184
|
+
movedFrom: ChangedAttributesProperties & {
|
|
2185
|
+
children: (RunOptions | string)[];
|
|
2186
|
+
};
|
|
2040
2187
|
} | {
|
|
2041
|
-
movedTo:
|
|
2188
|
+
movedTo: ChangedAttributesProperties & {
|
|
2189
|
+
children: (RunOptions | string)[];
|
|
2190
|
+
};
|
|
2042
2191
|
} | {
|
|
2043
2192
|
customXmlInsRangeStart: {
|
|
2044
2193
|
id: number;
|
|
@@ -2074,10 +2223,7 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
|
2074
2223
|
} | {
|
|
2075
2224
|
ruby: RubyOptions;
|
|
2076
2225
|
} | {
|
|
2077
|
-
simpleField:
|
|
2078
|
-
instruction: string;
|
|
2079
|
-
cachedValue?: string;
|
|
2080
|
-
};
|
|
2226
|
+
simpleField: SimpleFieldOptions;
|
|
2081
2227
|
} | {
|
|
2082
2228
|
formField: FormFieldOptions;
|
|
2083
2229
|
} | {
|
|
@@ -2126,11 +2272,13 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
|
2126
2272
|
type ParagraphOptions = {
|
|
2127
2273
|
text?: string;
|
|
2128
2274
|
children?: (ParagraphChild | string)[];
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2275
|
+
rsid?: string;
|
|
2276
|
+
defaultRunRsid?: string;
|
|
2277
|
+
propertiesRsid?: string;
|
|
2278
|
+
runPropertiesRsid?: string;
|
|
2279
|
+
deletionRsid?: string;
|
|
2280
|
+
paraId?: string;
|
|
2281
|
+
textId?: string;
|
|
2134
2282
|
} & ParagraphPropertiesOptions;
|
|
2135
2283
|
//#endregion
|
|
2136
2284
|
//#region src/parts/table/table-row/table-row-properties.d.ts
|
|
@@ -2154,7 +2302,7 @@ interface TableRowPropertiesOptionsBase {
|
|
|
2154
2302
|
cantSplit?: boolean;
|
|
2155
2303
|
tableHeader?: boolean;
|
|
2156
2304
|
height?: {
|
|
2157
|
-
value: number;
|
|
2305
|
+
value: number | PositiveUniversalMeasure;
|
|
2158
2306
|
rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
2159
2307
|
};
|
|
2160
2308
|
cellSpacing?: TableCellSpacingProperties;
|
|
@@ -2285,12 +2433,6 @@ interface PageSizeAttributes {
|
|
|
2285
2433
|
orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
|
|
2286
2434
|
code?: number;
|
|
2287
2435
|
}
|
|
2288
|
-
declare const createPageSize: ({
|
|
2289
|
-
width,
|
|
2290
|
-
height,
|
|
2291
|
-
orientation,
|
|
2292
|
-
code
|
|
2293
|
-
}: PageSizeAttributes) => string;
|
|
2294
2436
|
//#endregion
|
|
2295
2437
|
//#region src/parts/document/body/section-properties/properties/page-number.d.ts
|
|
2296
2438
|
declare const PageNumberSeparator: {
|
|
@@ -2469,9 +2611,13 @@ type SectionChild = {
|
|
|
2469
2611
|
bookmarkStart: {
|
|
2470
2612
|
id: number;
|
|
2471
2613
|
name: string;
|
|
2614
|
+
displacedByCustomXml?: "before" | "after";
|
|
2472
2615
|
};
|
|
2473
2616
|
} | {
|
|
2474
|
-
bookmarkEnd:
|
|
2617
|
+
bookmarkEnd: {
|
|
2618
|
+
id: number;
|
|
2619
|
+
displacedByCustomXml?: "before" | "after";
|
|
2620
|
+
};
|
|
2475
2621
|
} | {
|
|
2476
2622
|
rawXml: string;
|
|
2477
2623
|
};
|
|
@@ -2575,10 +2721,10 @@ interface HeaderFooterGroup<T> {
|
|
|
2575
2721
|
even?: T;
|
|
2576
2722
|
}
|
|
2577
2723
|
interface SectionPropertiesOptionsBase {
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2724
|
+
runPropertiesRsid?: string;
|
|
2725
|
+
deletionRsid?: string;
|
|
2726
|
+
rsid?: string;
|
|
2727
|
+
sectionRsid?: string;
|
|
2582
2728
|
page?: {
|
|
2583
2729
|
size?: PageSizeAttributes;
|
|
2584
2730
|
margin?: PageMarginAttributes;
|
|
@@ -2798,6 +2944,7 @@ interface LevelsOptions {
|
|
|
2798
2944
|
level: number;
|
|
2799
2945
|
format?: (typeof LevelFormat)[keyof typeof LevelFormat];
|
|
2800
2946
|
text?: string;
|
|
2947
|
+
textNull?: boolean;
|
|
2801
2948
|
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
2802
2949
|
start?: number;
|
|
2803
2950
|
suffix?: (typeof LevelSuffix)[keyof typeof LevelSuffix];
|
|
@@ -2808,6 +2955,7 @@ interface LevelsOptions {
|
|
|
2808
2955
|
tentative?: boolean;
|
|
2809
2956
|
w15Tentative?: boolean;
|
|
2810
2957
|
legacy?: {
|
|
2958
|
+
enabled?: boolean;
|
|
2811
2959
|
space?: number;
|
|
2812
2960
|
indent?: number;
|
|
2813
2961
|
};
|
|
@@ -2952,6 +3100,12 @@ interface CompatibilityOptions {
|
|
|
2952
3100
|
overrideTableStyleFontSizeAndJustification?: boolean;
|
|
2953
3101
|
enableOpenTypeFeatures?: boolean;
|
|
2954
3102
|
doNotFlipMirrorIndents?: boolean;
|
|
3103
|
+
compatSettings?: CompatSettingOptions[];
|
|
3104
|
+
}
|
|
3105
|
+
interface CompatSettingOptions {
|
|
3106
|
+
name: string;
|
|
3107
|
+
val: string;
|
|
3108
|
+
uri?: string;
|
|
2955
3109
|
}
|
|
2956
3110
|
//#endregion
|
|
2957
3111
|
//#region src/parts/settings/settings.d.ts
|
|
@@ -3001,7 +3155,11 @@ interface SettingsOptions {
|
|
|
3001
3155
|
followedHyperlink?: string;
|
|
3002
3156
|
};
|
|
3003
3157
|
attachedTemplate?: string;
|
|
3004
|
-
themeFontLang?:
|
|
3158
|
+
themeFontLang?: {
|
|
3159
|
+
val?: string;
|
|
3160
|
+
eastAsia?: string;
|
|
3161
|
+
bidi?: string;
|
|
3162
|
+
};
|
|
3005
3163
|
hideSpellingErrors?: boolean;
|
|
3006
3164
|
hideGrammaticalErrors?: boolean;
|
|
3007
3165
|
noPunctuationKerning?: boolean;
|
|
@@ -3083,6 +3241,7 @@ interface SettingsOptions {
|
|
|
3083
3241
|
top3HeadingStyles?: boolean;
|
|
3084
3242
|
visibleStyles?: boolean;
|
|
3085
3243
|
alternateStyleNames?: boolean;
|
|
3244
|
+
latentStyles?: boolean;
|
|
3086
3245
|
};
|
|
3087
3246
|
stylePaneSortMethod?: "name" | "priority" | "default" | "font";
|
|
3088
3247
|
documentType?: "letter" | "eMail" | "notSpecified";
|
|
@@ -3103,7 +3262,7 @@ interface SettingsOptions {
|
|
|
3103
3262
|
};
|
|
3104
3263
|
showXMLTags?: boolean;
|
|
3105
3264
|
alwaysMergeEmptyNamespace?: boolean;
|
|
3106
|
-
hdrShapeDefaults?:
|
|
3265
|
+
hdrShapeDefaults?: string;
|
|
3107
3266
|
attachedSchema?: string[];
|
|
3108
3267
|
forceUpgrade?: boolean;
|
|
3109
3268
|
smartTagType?: {
|
|
@@ -3112,7 +3271,7 @@ interface SettingsOptions {
|
|
|
3112
3271
|
name?: string;
|
|
3113
3272
|
url?: string;
|
|
3114
3273
|
}[];
|
|
3115
|
-
shapeDefaults?:
|
|
3274
|
+
shapeDefaults?: string;
|
|
3116
3275
|
}
|
|
3117
3276
|
interface RevisionViewOptions {
|
|
3118
3277
|
markup?: boolean;
|
|
@@ -3213,14 +3372,14 @@ interface HyphenationOptions {
|
|
|
3213
3372
|
doNotHyphenateCaps?: boolean;
|
|
3214
3373
|
}
|
|
3215
3374
|
interface FootnotePropertiesOptions {
|
|
3216
|
-
pos?:
|
|
3375
|
+
pos?: "pageBottom" | "beneathText" | "sectEnd" | "docEnd";
|
|
3217
3376
|
numFmt?: string;
|
|
3218
3377
|
format?: string;
|
|
3219
3378
|
numStart?: number;
|
|
3220
3379
|
numRestart?: string;
|
|
3221
3380
|
}
|
|
3222
3381
|
interface EndnotePropertiesOptions {
|
|
3223
|
-
pos?:
|
|
3382
|
+
pos?: "sectEnd" | "docEnd";
|
|
3224
3383
|
numFmt?: string;
|
|
3225
3384
|
format?: string;
|
|
3226
3385
|
numStart?: number;
|
|
@@ -3255,44 +3414,49 @@ interface CaptionsOptions {
|
|
|
3255
3414
|
}
|
|
3256
3415
|
interface MathPropertiesOptions {
|
|
3257
3416
|
mathFont?: string;
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
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;
|
|
3265
3428
|
wrapIndent?: number;
|
|
3266
|
-
|
|
3267
|
-
|
|
3429
|
+
wrapRight?: boolean;
|
|
3430
|
+
integralLimitLocation?: "subSup" | "undOvr";
|
|
3431
|
+
naryLimitLocation?: "subSup" | "undOvr";
|
|
3268
3432
|
}
|
|
3269
3433
|
//#endregion
|
|
3270
3434
|
//#region src/parts/styles/factory.d.ts
|
|
3271
3435
|
interface DefaultStylesOptions {
|
|
3272
3436
|
document?: DocumentDefaultsOptions;
|
|
3273
|
-
title?:
|
|
3274
|
-
subtitle?:
|
|
3275
|
-
heading1?:
|
|
3276
|
-
heading2?:
|
|
3277
|
-
heading3?:
|
|
3278
|
-
heading4?:
|
|
3279
|
-
heading5?:
|
|
3280
|
-
heading6?:
|
|
3281
|
-
heading7?:
|
|
3282
|
-
heading8?:
|
|
3283
|
-
heading9?:
|
|
3284
|
-
strong?:
|
|
3285
|
-
emphasis?:
|
|
3286
|
-
listParagraph?:
|
|
3287
|
-
quote?:
|
|
3288
|
-
intenseQuote?:
|
|
3289
|
-
hyperlink?:
|
|
3290
|
-
footnoteReference?:
|
|
3291
|
-
footnoteText?:
|
|
3292
|
-
footnoteTextChar?:
|
|
3293
|
-
endnoteReference?:
|
|
3294
|
-
endnoteText?:
|
|
3295
|
-
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;
|
|
3296
3460
|
}
|
|
3297
3461
|
interface DocumentDefaultsOptions {
|
|
3298
3462
|
paragraph?: ParagraphStylePropertiesOptions;
|
|
@@ -3313,18 +3477,56 @@ interface StyleOptions {
|
|
|
3313
3477
|
personal?: boolean;
|
|
3314
3478
|
personalCompose?: boolean;
|
|
3315
3479
|
personalReply?: boolean;
|
|
3480
|
+
hidden?: boolean;
|
|
3481
|
+
rsid?: string;
|
|
3316
3482
|
}
|
|
3317
|
-
type
|
|
3483
|
+
type ParagraphStyleOptions = {
|
|
3318
3484
|
paragraph?: ParagraphStylePropertiesOptions;
|
|
3319
3485
|
run?: RunStylePropertiesOptions;
|
|
3320
3486
|
} & StyleOptions & {
|
|
3321
3487
|
id?: string;
|
|
3322
3488
|
};
|
|
3323
|
-
type
|
|
3489
|
+
type CharacterStyleOptions = {
|
|
3324
3490
|
run?: RunStylePropertiesOptions;
|
|
3325
3491
|
} & StyleOptions & {
|
|
3326
3492
|
id?: string;
|
|
3327
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
|
+
}
|
|
3328
3530
|
//#endregion
|
|
3329
3531
|
//#region src/parts/styles/styles.d.ts
|
|
3330
3532
|
interface StylesOptions {
|
|
@@ -3333,15 +3535,17 @@ interface StylesOptions {
|
|
|
3333
3535
|
importedStyles?: {
|
|
3334
3536
|
_raw: string;
|
|
3335
3537
|
}[];
|
|
3336
|
-
paragraphStyles?: (
|
|
3538
|
+
paragraphStyles?: (ParagraphStyleOptions & {
|
|
3337
3539
|
id: string;
|
|
3338
3540
|
})[];
|
|
3339
|
-
characterStyles?: (
|
|
3541
|
+
characterStyles?: (CharacterStyleOptions & {
|
|
3340
3542
|
id: string;
|
|
3341
3543
|
})[];
|
|
3544
|
+
tableStyles?: TableStyleOptions[];
|
|
3342
3545
|
latentStylesXml?: string;
|
|
3343
3546
|
docDefaultsXml?: string;
|
|
3344
3547
|
}
|
|
3548
|
+
declare function extractStyleId(raw: string): string | undefined;
|
|
3345
3549
|
declare class Styles {
|
|
3346
3550
|
private attributes;
|
|
3347
3551
|
private parts;
|
|
@@ -3416,10 +3620,10 @@ interface DivBorderOptions {
|
|
|
3416
3620
|
}
|
|
3417
3621
|
interface DivOptions {
|
|
3418
3622
|
id: number;
|
|
3419
|
-
marginLeft: number;
|
|
3420
|
-
marginRight: number;
|
|
3421
|
-
marginTop: number;
|
|
3422
|
-
marginBottom: number;
|
|
3623
|
+
marginLeft: number | UniversalMeasure;
|
|
3624
|
+
marginRight: number | UniversalMeasure;
|
|
3625
|
+
marginTop: number | UniversalMeasure;
|
|
3626
|
+
marginBottom: number | UniversalMeasure;
|
|
3423
3627
|
blockQuote?: boolean;
|
|
3424
3628
|
bodyDiv?: boolean;
|
|
3425
3629
|
border?: DivBorderOptions;
|
|
@@ -3438,11 +3642,15 @@ declare const TargetScreenSize: {
|
|
|
3438
3642
|
readonly SIZE_1800X1440: "1800x1440";
|
|
3439
3643
|
readonly SIZE_1920X1200: "1920x1200";
|
|
3440
3644
|
};
|
|
3645
|
+
interface OptimizeForBrowserOptions {
|
|
3646
|
+
value?: boolean;
|
|
3647
|
+
target?: string;
|
|
3648
|
+
}
|
|
3441
3649
|
interface WebSettingsOptions {
|
|
3442
3650
|
frameset?: FramesetOptions;
|
|
3443
3651
|
divs?: DivOptions[];
|
|
3444
3652
|
encoding?: string;
|
|
3445
|
-
optimizeForBrowser?: boolean;
|
|
3653
|
+
optimizeForBrowser?: boolean | OptimizeForBrowserOptions;
|
|
3446
3654
|
relyOnVML?: boolean;
|
|
3447
3655
|
allowPNG?: boolean;
|
|
3448
3656
|
doNotRelyOnCSS?: boolean;
|
|
@@ -3457,7 +3665,7 @@ interface WebSettingsInput {
|
|
|
3457
3665
|
frameset?: FramesetOptions;
|
|
3458
3666
|
divs?: DivOptions[];
|
|
3459
3667
|
encoding?: string;
|
|
3460
|
-
optimizeForBrowser?: boolean;
|
|
3668
|
+
optimizeForBrowser?: boolean | OptimizeForBrowserOptions;
|
|
3461
3669
|
relyOnVML?: boolean;
|
|
3462
3670
|
allowPNG?: boolean;
|
|
3463
3671
|
doNotRelyOnCSS?: boolean;
|
|
@@ -3472,6 +3680,20 @@ declare function framesetXml(fs: FramesetOptions): string;
|
|
|
3472
3680
|
declare function frameXml(f: FrameOptions): string;
|
|
3473
3681
|
declare const webSettingsDesc: CustomDescriptor<WebSettingsInput>;
|
|
3474
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
|
|
3475
3697
|
//#region src/parse.d.ts
|
|
3476
3698
|
interface DocxPartRefs {
|
|
3477
3699
|
headers: Map<string, string>;
|
|
@@ -3491,6 +3713,7 @@ interface DocxPartRefs {
|
|
|
3491
3713
|
}
|
|
3492
3714
|
interface DocxDocument {
|
|
3493
3715
|
doc: ParsedArchive;
|
|
3716
|
+
documentRoot: Element;
|
|
3494
3717
|
body: Element;
|
|
3495
3718
|
background?: Element;
|
|
3496
3719
|
styles?: Element;
|
|
@@ -3528,6 +3751,7 @@ declare class DocxWriteContext implements WriteContext {
|
|
|
3528
3751
|
media: Media;
|
|
3529
3752
|
charts: ChartCollection;
|
|
3530
3753
|
smartArts: SmartArtCollection;
|
|
3754
|
+
embeddings: EmbeddingCollection;
|
|
3531
3755
|
altChunks: AltChunkCollection;
|
|
3532
3756
|
subDocs: SubDocCollection;
|
|
3533
3757
|
comments: {
|
|
@@ -3606,6 +3830,7 @@ interface EmbeddedFontOptions {
|
|
|
3606
3830
|
name: string;
|
|
3607
3831
|
data?: DataType;
|
|
3608
3832
|
characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
|
|
3833
|
+
characterSetName?: string;
|
|
3609
3834
|
family?: string;
|
|
3610
3835
|
pitch?: string;
|
|
3611
3836
|
panose1?: string;
|
|
@@ -3614,67 +3839,20 @@ interface EmbeddedFontOptions {
|
|
|
3614
3839
|
rawOdttf?: boolean;
|
|
3615
3840
|
odttfPath?: string;
|
|
3616
3841
|
fontKey?: string;
|
|
3842
|
+
subsetted?: boolean;
|
|
3617
3843
|
}
|
|
3618
3844
|
//#endregion
|
|
3619
3845
|
//#region src/parts/settings/descriptor.d.ts
|
|
3620
3846
|
declare const settingsDesc: CustomDescriptor<SettingsOptions>;
|
|
3621
3847
|
//#endregion
|
|
3622
|
-
//#region src/parts/app-properties.d.ts
|
|
3623
|
-
interface AppPropertiesOptions {
|
|
3624
|
-
template?: string;
|
|
3625
|
-
manager?: string;
|
|
3626
|
-
company?: string;
|
|
3627
|
-
pages?: number;
|
|
3628
|
-
words?: number;
|
|
3629
|
-
characters?: number;
|
|
3630
|
-
lines?: number;
|
|
3631
|
-
paragraphs?: number;
|
|
3632
|
-
notes?: number;
|
|
3633
|
-
slides?: number;
|
|
3634
|
-
totalTime?: number;
|
|
3635
|
-
hiddenSlides?: number;
|
|
3636
|
-
mmClips?: number;
|
|
3637
|
-
charactersWithSpaces?: number;
|
|
3638
|
-
docSecurity?: number;
|
|
3639
|
-
hyperlinkBase?: string;
|
|
3640
|
-
application?: string;
|
|
3641
|
-
appVersion?: string;
|
|
3642
|
-
scaleCrop?: boolean;
|
|
3643
|
-
linksUpToDate?: boolean;
|
|
3644
|
-
sharedDoc?: boolean;
|
|
3645
|
-
hyperlinksChanged?: boolean;
|
|
3646
|
-
}
|
|
3647
|
-
type AppPropertiesInput = AppPropertiesOptions;
|
|
3648
|
-
declare const appPropertiesDesc: CustomDescriptor<AppPropertiesInput>;
|
|
3649
|
-
//#endregion
|
|
3650
|
-
//#region src/parts/custom-properties.d.ts
|
|
3651
|
-
interface CustomPropertyOptions {
|
|
3652
|
-
name: string;
|
|
3653
|
-
value: string;
|
|
3654
|
-
}
|
|
3655
|
-
interface CustomPropertiesInput {
|
|
3656
|
-
properties: CustomPropertyOptions[];
|
|
3657
|
-
}
|
|
3658
|
-
declare const customPropertiesDesc: CustomDescriptor<CustomPropertiesInput>;
|
|
3659
|
-
//#endregion
|
|
3660
3848
|
//#region src/parts/core-properties.d.ts
|
|
3661
3849
|
interface FeaturesOptions {
|
|
3662
3850
|
trackRevisions?: boolean;
|
|
3663
3851
|
updateFields?: boolean;
|
|
3664
3852
|
documentProtection?: DocumentProtectionOptions;
|
|
3665
3853
|
}
|
|
3666
|
-
interface DocumentOptions {
|
|
3854
|
+
interface DocumentOptions extends CorePropertiesOptions {
|
|
3667
3855
|
sections: SectionOptions[];
|
|
3668
|
-
title?: string;
|
|
3669
|
-
subject?: string;
|
|
3670
|
-
creator?: string;
|
|
3671
|
-
keywords?: string;
|
|
3672
|
-
description?: string;
|
|
3673
|
-
lastModifiedBy?: string;
|
|
3674
|
-
revision?: number;
|
|
3675
|
-
lastPrinted?: string;
|
|
3676
|
-
created?: string;
|
|
3677
|
-
modified?: string;
|
|
3678
3856
|
externalStyles?: string;
|
|
3679
3857
|
styles?: StylesOptions;
|
|
3680
3858
|
numbering?: NumberingOptions;
|
|
@@ -3701,6 +3879,7 @@ interface DocumentOptions {
|
|
|
3701
3879
|
defaultTabStop?: number;
|
|
3702
3880
|
fonts?: EmbeddedFontOptions[];
|
|
3703
3881
|
hyphenation?: HyphenationOptions;
|
|
3882
|
+
conformance?: "strict" | "transitional";
|
|
3704
3883
|
characterSpacingControl?: "compressPunctuation" | "doNotCompress";
|
|
3705
3884
|
view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
|
|
3706
3885
|
zoom?: {
|
|
@@ -3728,19 +3907,7 @@ interface DocumentOptions {
|
|
|
3728
3907
|
}[];
|
|
3729
3908
|
appProperties?: AppPropertiesOptions;
|
|
3730
3909
|
}
|
|
3731
|
-
|
|
3732
|
-
title?: string;
|
|
3733
|
-
subject?: string;
|
|
3734
|
-
creator?: string;
|
|
3735
|
-
keywords?: string;
|
|
3736
|
-
description?: string;
|
|
3737
|
-
lastModifiedBy?: string;
|
|
3738
|
-
revision?: number;
|
|
3739
|
-
lastPrinted?: string;
|
|
3740
|
-
created?: string;
|
|
3741
|
-
modified?: string;
|
|
3742
|
-
}
|
|
3743
|
-
declare const corePropertiesDesc: CustomDescriptor<CorePropertiesInput>;
|
|
3910
|
+
declare const corePropertiesDesc: CustomDescriptor<CorePropertiesOptions>;
|
|
3744
3911
|
//#endregion
|
|
3745
|
-
export {
|
|
3746
|
-
//# 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
|