@office-open/docx 0.9.5 → 0.9.7

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.
@@ -1,6 +1,6 @@
1
1
  import { DataType, ParsedArchive, Percentage, PositiveUniversalMeasure, Relationships, RelativeMeasure, ThemeColor, ThemeFont, UniversalMeasure, parseArchive } from "@office-open/core";
2
2
  import { Element } from "@office-open/xml";
3
- import { BlipEffectsOptions, CustomGeometryOptions, EffectDagOptions, EffectListOptions, FillOptions, OutlineOptions, Scene3DOptions, Shape3DOptions, SourceRectangleOptions, TileOptions } from "@office-open/core/drawingml";
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";
5
5
  import { SmartArtCollection } from "@office-open/core/smartart";
6
6
  import { CustomDescriptor, ReadContext, WriteContext } from "@office-open/core/descriptor";
@@ -45,12 +45,14 @@ interface ContentTypesInput {
45
45
  overrides: ContentTypeOverride[];
46
46
  }
47
47
  declare const contentTypesDesc: CustomDescriptor<ContentTypesInput>;
48
+ declare function withMediaDefaults(input: ContentTypesInput, mediaFileNames: string[]): ContentTypesInput;
48
49
  declare function buildContentTypes(extras?: {
49
50
  headerCount?: number;
50
51
  footerCount?: number;
51
52
  chartCount?: number;
52
53
  smartArtCount?: number;
53
54
  hasBibliography?: boolean;
55
+ hasComments?: boolean;
54
56
  hasGlossary?: boolean;
55
57
  hasWebSettings?: boolean;
56
58
  altChunks?: {
@@ -365,6 +367,7 @@ interface RunStylePropertiesOptions {
365
367
  complexScript?: boolean;
366
368
  eastAsianLayout?: EastAsianLayoutOptions;
367
369
  contentPartRId?: string;
370
+ w14RawXml?: string;
368
371
  }
369
372
  type RunPropertiesOptions = {
370
373
  style?: string;
@@ -515,6 +518,28 @@ type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlign
515
518
  type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
516
519
  declare const createVerticalAlign: (value: TableVerticalAlign | SectionVerticalAlign) => string;
517
520
  //#endregion
521
+ //#region src/parts/table/table-width.d.ts
522
+ declare const WidthType: {
523
+ readonly AUTO: "auto";
524
+ readonly DXA: "dxa";
525
+ readonly NIL: "nil";
526
+ readonly PERCENTAGE: "pct";
527
+ };
528
+ interface TableWidthProperties {
529
+ size: number | Percentage | UniversalMeasure;
530
+ type?: (typeof WidthType)[keyof typeof WidthType];
531
+ }
532
+ //#endregion
533
+ //#region src/parts/table/table-properties/table-cell-margin.d.ts
534
+ interface TableCellMarginOptions {
535
+ top?: TableWidthProperties;
536
+ start?: TableWidthProperties;
537
+ left?: TableWidthProperties;
538
+ bottom?: TableWidthProperties;
539
+ end?: TableWidthProperties;
540
+ right?: TableWidthProperties;
541
+ }
542
+ //#endregion
518
543
  //#region src/parts/paragraph/formatting/alignment.d.ts
519
544
  declare const AlignmentType: {
520
545
  readonly START: "start";
@@ -774,6 +799,210 @@ type MathInput = string | {
774
799
  };
775
800
  };
776
801
  //#endregion
802
+ //#region src/parts/table/grid.d.ts
803
+ interface TableGridChangeOptions {
804
+ id: number;
805
+ columnWidths: number[] | PositiveUniversalMeasure[];
806
+ }
807
+ //#endregion
808
+ //#region src/parts/table/table-cell-spacing.d.ts
809
+ declare const CellSpacingType: {
810
+ readonly DXA: "dxa";
811
+ readonly NIL: "nil";
812
+ };
813
+ interface TableCellSpacingProperties {
814
+ size: number | Percentage | UniversalMeasure;
815
+ type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
816
+ }
817
+ //#endregion
818
+ //#region src/parts/table/table-properties/table-borders.d.ts
819
+ interface TableBordersOptions {
820
+ top?: BorderOptions;
821
+ bottom?: BorderOptions;
822
+ left?: BorderOptions;
823
+ right?: BorderOptions;
824
+ insideHorizontal?: BorderOptions;
825
+ insideVertical?: BorderOptions;
826
+ }
827
+ declare const TABLE_BORDERS_NONE: TableBordersOptions;
828
+ //#endregion
829
+ //#region src/parts/table/table-properties/table-float-properties.d.ts
830
+ declare const TableAnchorType: {
831
+ readonly MARGIN: "margin";
832
+ readonly PAGE: "page";
833
+ readonly TEXT: "text";
834
+ };
835
+ declare const RelativeHorizontalPosition: {
836
+ readonly CENTER: "center";
837
+ readonly INSIDE: "inside";
838
+ readonly LEFT: "left";
839
+ readonly OUTSIDE: "outside";
840
+ readonly RIGHT: "right";
841
+ };
842
+ declare const RelativeVerticalPosition: {
843
+ readonly BOTTOM: "bottom";
844
+ readonly CENTER: "center";
845
+ readonly INLINE: "inline";
846
+ readonly INSIDE: "inside";
847
+ readonly OUTSIDE: "outside";
848
+ readonly TOP: "top";
849
+ };
850
+ declare const OverlapType: {
851
+ readonly NEVER: "never";
852
+ readonly OVERLAP: "overlap";
853
+ };
854
+ interface TableFloatOptions {
855
+ horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
856
+ absoluteHorizontalPosition?: number;
857
+ relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
858
+ verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
859
+ absoluteVerticalPosition?: number;
860
+ relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
861
+ bottomFromText?: number;
862
+ topFromText?: number;
863
+ leftFromText?: number;
864
+ rightFromText?: number;
865
+ overlap?: (typeof OverlapType)[keyof typeof OverlapType];
866
+ }
867
+ //#endregion
868
+ //#region src/parts/table/table-properties/table-layout.d.ts
869
+ declare const TableLayoutType: {
870
+ readonly AUTOFIT: "autofit";
871
+ readonly FIXED: "fixed";
872
+ };
873
+ //#endregion
874
+ //#region src/parts/table/table-properties/table-look.d.ts
875
+ interface TableLookOptions {
876
+ firstRow?: boolean;
877
+ lastRow?: boolean;
878
+ firstColumn?: boolean;
879
+ lastColumn?: boolean;
880
+ noHBand?: boolean;
881
+ noVBand?: boolean;
882
+ }
883
+ //#endregion
884
+ //#region src/parts/table/table-properties/table-properties.d.ts
885
+ interface TablePropertiesOptionsBase {
886
+ width?: TableWidthProperties;
887
+ indent?: TableWidthProperties;
888
+ layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
889
+ borders?: TableBordersOptions;
890
+ float?: TableFloatOptions;
891
+ shading?: ShadingAttributesProperties;
892
+ style?: string;
893
+ alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
894
+ cellMargin?: TableCellMarginOptions;
895
+ visuallyRightToLeft?: boolean;
896
+ tableLook?: TableLookOptions;
897
+ cellSpacing?: TableCellSpacingProperties;
898
+ styleRowBandSize?: number;
899
+ styleColBandSize?: number;
900
+ caption?: string;
901
+ description?: string;
902
+ }
903
+ type TablePropertiesChangeOptions = TablePropertiesOptions & ChangedAttributesProperties;
904
+ type TablePropertiesOptions = {
905
+ revision?: TablePropertiesChangeOptions;
906
+ includeIfEmpty?: boolean;
907
+ } & TablePropertiesOptionsBase;
908
+ //#endregion
909
+ //#region src/parts/table/table-properties/table-property-exceptions.d.ts
910
+ interface TablePropertyExOptions {
911
+ width?: TableWidthProperties;
912
+ indent?: TableWidthProperties;
913
+ layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
914
+ borders?: TableBordersOptions;
915
+ shading?: ShadingAttributesProperties;
916
+ alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
917
+ cellMargin?: TableCellMarginOptions;
918
+ tableLook?: TableLookOptions;
919
+ cellSpacing?: TableCellSpacingProperties;
920
+ tblPrExChange?: TablePropertyExChangeOptions;
921
+ }
922
+ type TablePropertyExChangeOptions = Omit<TablePropertyExOptions, "tblPrExChange"> & ChangedAttributesProperties;
923
+ //#endregion
924
+ //#region src/parts/table/table-cell/table-cell-components.d.ts
925
+ interface TableCellBordersOptions {
926
+ top?: BorderOptions;
927
+ start?: BorderOptions;
928
+ left?: BorderOptions;
929
+ bottom?: BorderOptions;
930
+ end?: BorderOptions;
931
+ right?: BorderOptions;
932
+ insideHorizontal?: BorderOptions;
933
+ insideVertical?: BorderOptions;
934
+ topLeftToBottomRight?: BorderOptions;
935
+ topRightToBottomLeft?: BorderOptions;
936
+ }
937
+ declare const VerticalMergeType: {
938
+ readonly CONTINUE: "continue";
939
+ readonly RESTART: "restart";
940
+ };
941
+ declare const TextDirection: {
942
+ readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
943
+ readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
944
+ readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
945
+ };
946
+ //#endregion
947
+ //#region src/parts/table/table-row/table-row.d.ts
948
+ interface SdtRowOptions {
949
+ properties: SdtPropertiesOptions;
950
+ rows?: TableRowOptions[];
951
+ endProperties?: RunPropertiesOptions;
952
+ }
953
+ type TableRowOptions = {
954
+ cells: (TableCellOptions | {
955
+ sdt: SdtCellOptions;
956
+ } | {
957
+ customXml: CustomXmlCellOptions;
958
+ })[];
959
+ propertyExceptions?: TablePropertyExOptions;
960
+ rsidRPr?: string;
961
+ rsidR?: string;
962
+ rsidDel?: string;
963
+ rsidTr?: string;
964
+ } & TableRowPropertiesOptions;
965
+ //#endregion
966
+ //#region src/parts/table/table-row/table-row-height.d.ts
967
+ declare const HeightRule: {
968
+ readonly AUTO: "auto";
969
+ readonly ATLEAST: "atLeast";
970
+ readonly EXACT: "exact";
971
+ };
972
+ //#endregion
973
+ //#region src/parts/table/table.d.ts
974
+ interface TableOptions {
975
+ rows: (TableRowOptions | {
976
+ sdt: SdtRowOptions;
977
+ } | {
978
+ customXml: CustomXmlRowOptions;
979
+ })[];
980
+ width?: TableWidthProperties;
981
+ columnWidths?: number[] | PositiveUniversalMeasure[];
982
+ columnWidthsRevision?: TableGridChangeOptions;
983
+ margins?: TableCellMarginOptions;
984
+ indent?: TableWidthProperties;
985
+ float?: TableFloatOptions;
986
+ layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
987
+ style?: string;
988
+ borders?: TableBordersOptions;
989
+ alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
990
+ visuallyRightToLeft?: boolean;
991
+ tableLook?: TableLookOptions;
992
+ cellSpacing?: TableCellSpacingProperties;
993
+ styleRowBandSize?: number;
994
+ styleColBandSize?: number;
995
+ caption?: string;
996
+ description?: string;
997
+ revision?: TablePropertiesChangeOptions;
998
+ shading?: ShadingAttributesProperties;
999
+ }
1000
+ //#endregion
1001
+ //#region src/parts/table/descriptor.d.ts
1002
+ declare const tableDesc: CustomDescriptor<TableOptions, BodyContext>;
1003
+ type ParseChildFn = (el: Element, ctx: DocxReadContext) => SectionChild;
1004
+ declare function setTableParseChild(fn: ParseChildFn): void;
1005
+ //#endregion
777
1006
  //#region src/shared/constants.d.ts
778
1007
  declare const HorizontalPositionAlign: {
779
1008
  readonly CENTER: "center";
@@ -1079,36 +1308,180 @@ interface DocPropertiesOptions {
1079
1308
  hyperlink?: HyperlinkOptions;
1080
1309
  }
1081
1310
  //#endregion
1082
- //#region src/parts/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
1083
- type GroupChild = unknown;
1084
- interface ChildOffset {
1085
- x: number;
1086
- y: number;
1087
- }
1088
- interface ChildExtent {
1089
- cx: number;
1090
- cy: number;
1091
- }
1092
- interface WpgGroupCoreOptions {
1093
- children: GroupChild[];
1311
+ //#region src/parts/drawing/drawing.d.ts
1312
+ interface Distance {
1313
+ distT?: number;
1314
+ distB?: number;
1315
+ distL?: number;
1316
+ distR?: number;
1094
1317
  }
1095
- type WpgGroupOptions = WpgGroupCoreOptions & {
1096
- transformation: MediaDataTransformation;
1097
- chOff?: ChildOffset;
1098
- chExt?: ChildExtent;
1318
+ interface DrawingOptions {
1319
+ floating?: Floating;
1320
+ docProperties?: DocPropertiesOptions;
1321
+ outline?: OutlineOptions;
1099
1322
  fill?: FillOptions;
1100
1323
  effects?: EffectListOptions;
1101
- };
1102
- //#endregion
1103
- //#region src/parts/drawing/inline/graphic/graphic-data/wps/body-properties.d.ts
1104
- declare enum VerticalAnchor {
1105
- TOP = "t",
1106
- CENTER = "ctr",
1107
- BOTTOM = "b",
1108
- JUSTIFY = "just",
1109
- DISTRIBUTED = "dist"
1324
+ blipEffects?: BlipEffectsOptions;
1325
+ tile?: TileOptions;
1110
1326
  }
1111
- declare const TextVertOverflowType: {
1327
+ //#endregion
1328
+ //#region src/parts/drawing/text-wrap/text-wrapping.d.ts
1329
+ declare const TextWrappingType: {
1330
+ readonly NONE: 0;
1331
+ readonly SQUARE: 1;
1332
+ readonly TIGHT: 2;
1333
+ readonly TOP_AND_BOTTOM: 3;
1334
+ readonly THROUGH: 4;
1335
+ };
1336
+ declare const TextWrappingSide: {
1337
+ readonly BOTH_SIDES: "bothSides";
1338
+ readonly LEFT: "left";
1339
+ readonly RIGHT: "right";
1340
+ readonly LARGEST: "largest";
1341
+ };
1342
+ interface TextWrapping {
1343
+ type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
1344
+ side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
1345
+ margins?: Distance;
1346
+ }
1347
+ //#endregion
1348
+ //#region src/parts/drawing/text-wrap/wrap-tight.d.ts
1349
+ declare const createWrapTight: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
1350
+ x: number;
1351
+ y: number;
1352
+ }) => string;
1353
+ //#endregion
1354
+ //#region src/parts/drawing/text-wrap/wrap-through.d.ts
1355
+ declare const createWrapThrough: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
1356
+ x: number;
1357
+ y: number;
1358
+ }) => string;
1359
+ //#endregion
1360
+ //#region src/parts/drawing/floating/floating-position.d.ts
1361
+ declare const HorizontalPositionRelativeFrom: {
1362
+ readonly CHARACTER: "character";
1363
+ readonly COLUMN: "column";
1364
+ readonly INSIDE_MARGIN: "insideMargin";
1365
+ readonly LEFT_MARGIN: "leftMargin";
1366
+ readonly MARGIN: "margin";
1367
+ readonly OUTSIDE_MARGIN: "outsideMargin";
1368
+ readonly PAGE: "page";
1369
+ readonly RIGHT_MARGIN: "rightMargin";
1370
+ };
1371
+ declare const VerticalPositionRelativeFrom: {
1372
+ readonly BOTTOM_MARGIN: "bottomMargin";
1373
+ readonly INSIDE_MARGIN: "insideMargin";
1374
+ readonly LINE: "line";
1375
+ readonly MARGIN: "margin";
1376
+ readonly OUTSIDE_MARGIN: "outsideMargin";
1377
+ readonly PAGE: "page";
1378
+ readonly PARAGRAPH: "paragraph";
1379
+ readonly TOP_MARGIN: "topMargin";
1380
+ };
1381
+ interface HorizontalPositionOptions {
1382
+ relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
1383
+ align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
1384
+ offset?: number | UniversalMeasure;
1385
+ }
1386
+ interface VerticalPositionOptions {
1387
+ relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
1388
+ align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
1389
+ offset?: number | UniversalMeasure;
1390
+ }
1391
+ interface Margins {
1392
+ left?: number | UniversalMeasure;
1393
+ bottom?: number | UniversalMeasure;
1394
+ top?: number | UniversalMeasure;
1395
+ right?: number | UniversalMeasure;
1396
+ }
1397
+ interface Floating {
1398
+ horizontalPosition: HorizontalPositionOptions;
1399
+ verticalPosition: VerticalPositionOptions;
1400
+ allowOverlap?: boolean;
1401
+ lockAnchor?: boolean;
1402
+ behindDocument?: boolean;
1403
+ layoutInCell?: boolean;
1404
+ margins?: Margins;
1405
+ wrap?: TextWrapping;
1406
+ zIndex?: number;
1407
+ }
1408
+ //#endregion
1409
+ //#region src/parts/drawing/floating/horizontal-position.d.ts
1410
+ declare const createHorizontalPosition: ({
1411
+ relative,
1412
+ align,
1413
+ offset
1414
+ }: HorizontalPositionOptions) => string;
1415
+ //#endregion
1416
+ //#region src/parts/drawing/floating/vertical-position.d.ts
1417
+ declare const createVerticalPosition: ({
1418
+ relative,
1419
+ align,
1420
+ offset
1421
+ }: VerticalPositionOptions) => string;
1422
+ //#endregion
1423
+ //#region src/parts/drawing/descriptor.d.ts
1424
+ interface GraphicFrameLocksOptions {
1425
+ noGrp?: boolean;
1426
+ noDrilldown?: boolean;
1427
+ noSelect?: boolean;
1428
+ noChangeAspect?: boolean;
1429
+ noMove?: boolean;
1430
+ noResize?: boolean;
1431
+ }
1432
+ interface GroupShapeLocksOptions {
1433
+ noGrp?: boolean;
1434
+ noUngrp?: boolean;
1435
+ noSelect?: boolean;
1436
+ noRot?: boolean;
1437
+ noChangeAspect?: boolean;
1438
+ noMove?: boolean;
1439
+ noResize?: boolean;
1440
+ }
1441
+ interface DrawingDescriptorOptions {
1442
+ mediaData: ExtendedMediaData;
1443
+ docProperties?: DocPropertiesOptions;
1444
+ floating?: Floating;
1445
+ outline?: OutlineOptions;
1446
+ fill?: FillOptions;
1447
+ effects?: EffectListOptions;
1448
+ blipEffects?: BlipEffectsOptions;
1449
+ tile?: TileOptions;
1450
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
1451
+ }
1452
+ declare const resetDrawingIdGen: () => void;
1453
+ declare const drawingDesc: CustomDescriptor<DrawingDescriptorOptions, BodyContext>;
1454
+ //#endregion
1455
+ //#region src/parts/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
1456
+ type GroupChild = unknown;
1457
+ interface ChildOffset {
1458
+ x: number;
1459
+ y: number;
1460
+ }
1461
+ interface ChildExtent {
1462
+ cx: number;
1463
+ cy: number;
1464
+ }
1465
+ interface WpgGroupCoreOptions {
1466
+ children: GroupChild[];
1467
+ }
1468
+ type WpgGroupOptions = WpgGroupCoreOptions & {
1469
+ transformation: MediaDataTransformation;
1470
+ chOff?: ChildOffset;
1471
+ chExt?: ChildExtent;
1472
+ fill?: FillOptions;
1473
+ effects?: EffectListOptions;
1474
+ };
1475
+ //#endregion
1476
+ //#region src/parts/drawing/inline/graphic/graphic-data/wps/body-properties.d.ts
1477
+ declare enum VerticalAnchor {
1478
+ TOP = "t",
1479
+ CENTER = "ctr",
1480
+ BOTTOM = "b",
1481
+ JUSTIFY = "just",
1482
+ DISTRIBUTED = "dist"
1483
+ }
1484
+ declare const TextVertOverflowType: {
1112
1485
  readonly OVERFLOW: "overflow";
1113
1486
  readonly ELLIPSIS: "ellipsis";
1114
1487
  readonly CLIP: "clip";
@@ -1180,13 +1553,29 @@ interface BodyPropertiesOptions {
1180
1553
  flatTx?: FlatTextOptions;
1181
1554
  }
1182
1555
  declare const createBodyProperties: (options?: BodyPropertiesOptions) => string;
1556
+ declare const parseBodyProperties: (el: Element) => BodyPropertiesOptions;
1183
1557
  //#endregion
1184
1558
  //#region src/parts/drawing/inline/graphic/graphic-data/wps/non-visual-shape-properties.d.ts
1185
1559
  interface NonVisualShapePropertiesOptions {
1186
- txBox: string;
1560
+ id?: number;
1561
+ name?: string;
1562
+ description?: string;
1563
+ title?: string;
1564
+ txBox?: string;
1565
+ connector?: boolean;
1187
1566
  }
1188
1567
  //#endregion
1189
1568
  //#region src/parts/drawing/inline/graphic/graphic-data/wps/wps-shape.d.ts
1569
+ interface StyleMatrixReferenceOptions {
1570
+ idx: string;
1571
+ color?: SolidFillOptions;
1572
+ }
1573
+ interface ShapeStyleOptions {
1574
+ lineReference?: StyleMatrixReferenceOptions;
1575
+ fillReference?: StyleMatrixReferenceOptions;
1576
+ effectReference?: StyleMatrixReferenceOptions;
1577
+ fontReference?: StyleMatrixReferenceOptions;
1578
+ }
1190
1579
  interface WpsShapeCoreOptions {
1191
1580
  children: (ParagraphOptions | string)[];
1192
1581
  nonVisualProperties?: NonVisualShapePropertiesOptions;
@@ -1198,6 +1587,7 @@ interface WpsShapeCoreOptions {
1198
1587
  effects?: EffectListOptions;
1199
1588
  scene3d?: Scene3DOptions;
1200
1589
  shape3d?: Shape3DOptions;
1590
+ style?: ShapeStyleOptions;
1201
1591
  }
1202
1592
  type WpsShapeOptions = WpsShapeCoreOptions & {
1203
1593
  transformation: MediaDataTransformation;
@@ -1228,12 +1618,26 @@ interface MediaDataTransformation {
1228
1618
  horizontal?: boolean;
1229
1619
  };
1230
1620
  rotation?: number;
1621
+ effectExtent?: {
1622
+ l: number;
1623
+ t: number;
1624
+ r: number;
1625
+ b: number;
1626
+ };
1627
+ }
1628
+ interface PicCnvPrOptions {
1629
+ id?: number;
1630
+ name?: string;
1631
+ descr?: string;
1632
+ preferRelativeResize?: boolean;
1231
1633
  }
1232
1634
  interface CoreMediaData {
1233
1635
  fileName: string;
1234
1636
  transformation: MediaDataTransformation;
1235
1637
  data: Uint8Array;
1236
1638
  srcRect?: SourceRectangleOptions;
1639
+ cNvPr?: PicCnvPrOptions;
1640
+ useLocalDpi?: boolean;
1237
1641
  }
1238
1642
  interface RegularMediaData {
1239
1643
  type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
@@ -1251,7 +1655,7 @@ interface WpgCommonMediaData {
1251
1655
  outline?: OutlineOptions;
1252
1656
  fill?: FillOptions;
1253
1657
  }
1254
- type GroupChildMediaData = (WpsMediaData | MediaData) & WpgCommonMediaData;
1658
+ type GroupChildMediaData = (WpsMediaData | MediaData | WpgMediaData) & WpgCommonMediaData;
1255
1659
  interface WpgMediaData {
1256
1660
  type: "wpg";
1257
1661
  transformation: MediaDataTransformation;
@@ -1260,6 +1664,7 @@ interface WpgMediaData {
1260
1664
  chExt?: ChildExtent;
1261
1665
  fill?: FillOptions;
1262
1666
  effects?: EffectListOptions;
1667
+ grpSpLocks?: GroupShapeLocksOptions;
1263
1668
  }
1264
1669
  interface ChartMediaData {
1265
1670
  type: "chart";
@@ -1288,6 +1693,12 @@ interface MediaTransformation {
1288
1693
  horizontal?: boolean;
1289
1694
  };
1290
1695
  rotation?: number;
1696
+ effectExtent?: {
1697
+ l: number;
1698
+ t: number;
1699
+ r: number;
1700
+ b: number;
1701
+ };
1291
1702
  }
1292
1703
  declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
1293
1704
  declare class Media {
@@ -1297,161 +1708,39 @@ declare class Media {
1297
1708
  get array(): MediaData[];
1298
1709
  }
1299
1710
  //#endregion
1300
- //#region src/parts/drawing/text-wrap/text-wrapping.d.ts
1301
- declare const TextWrappingType: {
1302
- readonly NONE: 0;
1303
- readonly SQUARE: 1;
1304
- readonly TIGHT: 2;
1305
- readonly TOP_AND_BOTTOM: 3;
1306
- readonly THROUGH: 4;
1307
- };
1308
- declare const TextWrappingSide: {
1309
- readonly BOTH_SIDES: "bothSides";
1310
- readonly LEFT: "left";
1311
- readonly RIGHT: "right";
1312
- readonly LARGEST: "largest";
1313
- };
1314
- interface TextWrapping {
1315
- type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
1316
- side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
1317
- margins?: Distance;
1318
- }
1319
- //#endregion
1320
- //#region src/parts/drawing/text-wrap/wrap-tight.d.ts
1321
- declare const createWrapTight: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
1322
- x: number;
1323
- y: number;
1324
- }) => string;
1325
- //#endregion
1326
- //#region src/parts/drawing/text-wrap/wrap-through.d.ts
1327
- declare const createWrapThrough: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
1328
- x: number;
1329
- y: number;
1330
- }) => string;
1331
- //#endregion
1332
- //#region src/parts/drawing/floating/floating-position.d.ts
1333
- declare const HorizontalPositionRelativeFrom: {
1334
- readonly CHARACTER: "character";
1335
- readonly COLUMN: "column";
1336
- readonly INSIDE_MARGIN: "insideMargin";
1337
- readonly LEFT_MARGIN: "leftMargin";
1338
- readonly MARGIN: "margin";
1339
- readonly OUTSIDE_MARGIN: "outsideMargin";
1340
- readonly PAGE: "page";
1341
- readonly RIGHT_MARGIN: "rightMargin";
1342
- };
1343
- declare const VerticalPositionRelativeFrom: {
1344
- readonly BOTTOM_MARGIN: "bottomMargin";
1345
- readonly INSIDE_MARGIN: "insideMargin";
1346
- readonly LINE: "line";
1347
- readonly MARGIN: "margin";
1348
- readonly OUTSIDE_MARGIN: "outsideMargin";
1349
- readonly PAGE: "page";
1350
- readonly PARAGRAPH: "paragraph";
1351
- readonly TOP_MARGIN: "topMargin";
1352
- };
1353
- interface HorizontalPositionOptions {
1354
- relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
1355
- align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
1356
- offset?: number | UniversalMeasure;
1711
+ //#region src/parts/paragraph/run/image-run.d.ts
1712
+ interface CoreImageOptions {
1713
+ transformation: MediaTransformation;
1714
+ floating?: Floating;
1715
+ altText?: DocPropertiesOptions;
1716
+ outline?: OutlineOptions;
1717
+ fill?: FillOptions;
1718
+ effects?: EffectListOptions;
1719
+ blipEffects?: BlipEffectsOptions;
1720
+ srcRect?: SourceRectangleOptions;
1721
+ tile?: TileOptions;
1722
+ cNvPr?: PicCnvPrOptions;
1723
+ runPropertiesRawXml?: string;
1724
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
1725
+ useLocalDpi?: boolean;
1357
1726
  }
1358
- interface VerticalPositionOptions {
1359
- relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
1360
- align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
1361
- offset?: number | UniversalMeasure;
1727
+ interface RegularImageOptions {
1728
+ type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1729
+ data: DataType;
1362
1730
  }
1363
- interface Margins {
1364
- left?: number | UniversalMeasure;
1365
- bottom?: number | UniversalMeasure;
1366
- top?: number | UniversalMeasure;
1367
- right?: number | UniversalMeasure;
1731
+ interface SvgMediaOptions {
1732
+ type: "svg";
1733
+ data: DataType;
1734
+ fallback: RegularImageOptions;
1368
1735
  }
1369
- interface Floating {
1370
- horizontalPosition: HorizontalPositionOptions;
1371
- verticalPosition: VerticalPositionOptions;
1372
- allowOverlap?: boolean;
1373
- lockAnchor?: boolean;
1374
- behindDocument?: boolean;
1375
- layoutInCell?: boolean;
1376
- margins?: Margins;
1377
- wrap?: TextWrapping;
1378
- zIndex?: number;
1379
- }
1380
- //#endregion
1381
- //#region src/parts/drawing/floating/horizontal-position.d.ts
1382
- declare const createHorizontalPosition: ({
1383
- relative,
1384
- align,
1385
- offset
1386
- }: HorizontalPositionOptions) => string;
1387
- //#endregion
1388
- //#region src/parts/drawing/floating/vertical-position.d.ts
1389
- declare const createVerticalPosition: ({
1390
- relative,
1391
- align,
1392
- offset
1393
- }: VerticalPositionOptions) => string;
1394
- //#endregion
1395
- //#region src/parts/drawing/drawing.d.ts
1396
- interface Distance {
1397
- distT?: number;
1398
- distB?: number;
1399
- distL?: number;
1400
- distR?: number;
1401
- }
1402
- interface DrawingOptions {
1403
- floating?: Floating;
1404
- docProperties?: DocPropertiesOptions;
1405
- outline?: OutlineOptions;
1406
- fill?: FillOptions;
1407
- effects?: EffectListOptions;
1408
- blipEffects?: BlipEffectsOptions;
1409
- tile?: TileOptions;
1410
- }
1411
- //#endregion
1412
- //#region src/parts/drawing/descriptor.d.ts
1413
- interface DrawingDescriptorOptions {
1414
- mediaData: ExtendedMediaData;
1415
- docProperties?: DocPropertiesOptions;
1416
- floating?: Floating;
1417
- outline?: OutlineOptions;
1418
- fill?: FillOptions;
1419
- effects?: EffectListOptions;
1420
- blipEffects?: BlipEffectsOptions;
1421
- tile?: TileOptions;
1422
- }
1423
- declare const resetDrawingIdGen: () => void;
1424
- declare const drawingDesc: CustomDescriptor<DrawingDescriptorOptions, BodyContext>;
1425
- //#endregion
1426
- //#region src/parts/paragraph/run/image-run.d.ts
1427
- interface CoreImageOptions {
1428
- transformation: MediaTransformation;
1429
- floating?: Floating;
1430
- altText?: DocPropertiesOptions;
1431
- outline?: OutlineOptions;
1432
- fill?: FillOptions;
1433
- effects?: EffectListOptions;
1434
- blipEffects?: BlipEffectsOptions;
1435
- srcRect?: SourceRectangleOptions;
1436
- tile?: TileOptions;
1437
- }
1438
- interface RegularImageOptions {
1439
- type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1440
- data: DataType;
1441
- }
1442
- interface SvgMediaOptions {
1443
- type: "svg";
1444
- data: DataType;
1445
- fallback: RegularImageOptions;
1446
- }
1447
- type ImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
1448
- declare const createImageData: (data: Uint8Array, transformation: MediaTransformation, key: string, srcRect?: SourceRectangleOptions) => Pick<MediaData, "data" | "fileName" | "transformation" | "srcRect">;
1449
- //#endregion
1450
- //#region src/parts/paragraph/run/chart-run.d.ts
1451
- interface ChartOptions extends ChartSpaceOptions {
1452
- transformation: MediaTransformation;
1453
- floating?: Floating;
1454
- altText?: DocPropertiesOptions;
1736
+ type ImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
1737
+ declare const createImageData: (data: Uint8Array, transformation: MediaTransformation, key: string, srcRect?: SourceRectangleOptions, cNvPr?: PicCnvPrOptions) => Pick<MediaData, "data" | "fileName" | "transformation" | "srcRect" | "cNvPr">;
1738
+ //#endregion
1739
+ //#region src/parts/paragraph/run/chart-run.d.ts
1740
+ interface ChartOptions extends ChartSpaceOptions {
1741
+ transformation: MediaTransformation;
1742
+ floating?: Floating;
1743
+ altText?: DocPropertiesOptions;
1455
1744
  }
1456
1745
  //#endregion
1457
1746
  //#region src/parts/paragraph/run/smartart-run.d.ts
@@ -1471,26 +1760,57 @@ interface SmartArtOptions {
1471
1760
  color?: string;
1472
1761
  }
1473
1762
  //#endregion
1763
+ //#region src/parts/document/document-background/document-background.d.ts
1764
+ interface BackgroundImageOptions {
1765
+ data: DataType;
1766
+ type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1767
+ }
1768
+ interface DocumentBackgroundOptions {
1769
+ color?: string;
1770
+ themeColor?: string;
1771
+ themeShade?: string;
1772
+ themeTint?: string;
1773
+ image?: BackgroundImageOptions;
1774
+ rawXml?: string;
1775
+ rawMedia?: BackgroundRawMediaOptions[];
1776
+ }
1777
+ interface BackgroundRawMediaOptions {
1778
+ fileName: string;
1779
+ data: Uint8Array;
1780
+ type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1781
+ }
1782
+ //#endregion
1474
1783
  //#region src/parts/paragraph/run/wps-shape-run.d.ts
1475
1784
  interface CoreShapeOptions {
1476
1785
  transformation: MediaTransformation;
1477
1786
  floating?: Floating;
1478
1787
  altText?: DocPropertiesOptions;
1788
+ vmlFallback?: string;
1789
+ vmlFallbackMedia?: BackgroundRawMediaOptions[];
1790
+ mcChoiceRequires?: string;
1791
+ runPropertiesRawXml?: string;
1792
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
1479
1793
  }
1480
- type WpsShapeRunOptions = WpsShapeCoreOptions & {
1481
- type: "wps";
1482
- } & CoreShapeOptions;
1794
+ type WpsShapeRunOptions = WpsShapeCoreOptions & CoreShapeOptions;
1483
1795
  //#endregion
1484
1796
  //#region src/parts/paragraph/run/wpg-group-run.d.ts
1485
1797
  interface CoreGroupOptions {
1486
1798
  children: GroupChildMediaData[];
1487
1799
  transformation: MediaTransformation;
1800
+ chOff?: ChildOffset;
1801
+ chExt?: ChildExtent;
1802
+ fill?: FillOptions;
1803
+ effects?: EffectListOptions;
1488
1804
  floating?: Floating;
1489
1805
  altText?: DocPropertiesOptions;
1806
+ vmlFallback?: string;
1807
+ vmlFallbackMedia?: BackgroundRawMediaOptions[];
1808
+ mcChoiceRequires?: string;
1809
+ runPropertiesRawXml?: string;
1810
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
1811
+ grpSpLocks?: GroupShapeLocksOptions;
1490
1812
  }
1491
- type WpgGroupRunOptions = {
1492
- type: "wpg";
1493
- } & CoreGroupOptions;
1813
+ type WpgGroupRunOptions = CoreGroupOptions;
1494
1814
  //#endregion
1495
1815
  //#region src/parts/paragraph/run/simple-field.d.ts
1496
1816
  interface SimpleFieldOptions {
@@ -1678,308 +1998,158 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
1678
1998
  } | {
1679
1999
  bookmarkEnd: number;
1680
2000
  } | {
1681
- wpsShape: Omit<WpsShapeRunOptions, "type">;
2001
+ wpsShape: WpsShapeRunOptions;
1682
2002
  } | {
1683
- proofErr: "spellStart" | "spellEnd" | "gramStart" | "gramEnd";
1684
- } | {
1685
- positionalTab: {
1686
- alignment: string;
1687
- leader: string;
1688
- relativeTo: string;
1689
- };
1690
- } | {
1691
- permStart: {
1692
- id: number | string;
1693
- ed?: string;
1694
- editGroup?: string;
1695
- colFirst?: number;
1696
- colLast?: number;
1697
- };
1698
- } | {
1699
- permEnd: number | string;
1700
- } | {
1701
- moveFromRangeStart: {
1702
- id: number;
1703
- name?: string;
1704
- author?: string;
1705
- date?: string;
1706
- };
1707
- } | {
1708
- moveFromRangeEnd: number;
1709
- } | {
1710
- moveToRangeStart: {
1711
- id: number;
1712
- name?: string;
1713
- author?: string;
1714
- date?: string;
1715
- };
1716
- } | {
1717
- moveToRangeEnd: number;
1718
- } | {
1719
- movedFrom: RunOptions & ChangedAttributesProperties;
1720
- } | {
1721
- movedTo: RunOptions & ChangedAttributesProperties;
2003
+ wpgGroup: WpgGroupRunOptions;
1722
2004
  } | {
1723
- customXmlInsRangeStart: {
1724
- id: number;
1725
- author: string;
1726
- date?: string;
1727
- };
1728
- } | {
1729
- customXmlInsRangeEnd: number;
1730
- } | {
1731
- customXmlDelRangeStart: {
1732
- id: number;
1733
- author: string;
1734
- date?: string;
1735
- };
1736
- } | {
1737
- customXmlDelRangeEnd: number;
1738
- } | {
1739
- customXmlMoveFromRangeStart: {
1740
- id: number;
1741
- author: string;
1742
- date?: string;
1743
- };
1744
- } | {
1745
- customXmlMoveFromRangeEnd: number;
1746
- } | {
1747
- customXmlMoveToRangeStart: {
1748
- id: number;
1749
- author: string;
1750
- date?: string;
1751
- };
1752
- } | {
1753
- customXmlMoveToRangeEnd: number;
1754
- } | {
1755
- ruby: RubyOptions;
1756
- } | {
1757
- simpleField: {
1758
- instruction: string;
1759
- cachedValue?: string;
1760
- };
1761
- } | {
1762
- formField: FormFieldOptions;
1763
- } | {
1764
- complexField: {
1765
- instruction: string;
1766
- result?: string;
1767
- };
1768
- } | {
1769
- seqIdentifier: string;
1770
- } | {
1771
- pageReference: {
1772
- bookmarkId: string;
1773
- hyperlink?: boolean;
1774
- useRelativePosition?: boolean;
1775
- };
1776
- } | {
1777
- dir: {
1778
- val: "ltr" | "rtl";
1779
- children?: (RunOptions | string)[];
1780
- };
1781
- } | {
1782
- bdo: {
1783
- val: "ltr" | "rtl";
1784
- children?: (RunOptions | string)[];
1785
- };
1786
- } | {
1787
- smartTag: {
1788
- uri?: string;
1789
- element: string;
1790
- properties?: Array<{
1791
- uri?: string;
1792
- name: string;
1793
- val: string;
1794
- }>;
1795
- children?: (RunOptions | string)[];
1796
- };
1797
- } | {
1798
- customXml: CustomXmlRunOptions & {
1799
- children?: (ParagraphChild | string)[];
1800
- };
1801
- } | {
1802
- sdt: SdtRunOptions;
1803
- } | RunOptions;
1804
- type ParagraphOptions = {
1805
- text?: string;
1806
- children?: (ParagraphChild | string)[];
1807
- rsidR?: string;
1808
- rsidRPr?: string;
1809
- rsidRDefault?: string;
1810
- rsidDel?: string;
1811
- rsidP?: string;
1812
- } & ParagraphPropertiesOptions;
1813
- //#endregion
1814
- //#region src/parts/table/grid.d.ts
1815
- interface TableGridChangeOptions {
1816
- id: number;
1817
- columnWidths: number[] | PositiveUniversalMeasure[];
1818
- }
1819
- //#endregion
1820
- //#region src/parts/table/table-cell-spacing.d.ts
1821
- declare const CellSpacingType: {
1822
- readonly DXA: "dxa";
1823
- readonly NIL: "nil";
1824
- };
1825
- interface TableCellSpacingProperties {
1826
- value: number | Percentage | UniversalMeasure;
1827
- type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
1828
- }
1829
- //#endregion
1830
- //#region src/parts/table/table-width.d.ts
1831
- declare const WidthType: {
1832
- readonly AUTO: "auto";
1833
- readonly DXA: "dxa";
1834
- readonly NIL: "nil";
1835
- readonly PERCENTAGE: "pct";
1836
- };
1837
- interface TableWidthProperties {
1838
- size: number | Percentage | UniversalMeasure;
1839
- type?: (typeof WidthType)[keyof typeof WidthType];
1840
- }
1841
- //#endregion
1842
- //#region src/parts/table/table-properties/table-borders.d.ts
1843
- interface TableBordersOptions {
1844
- top?: BorderOptions;
1845
- bottom?: BorderOptions;
1846
- left?: BorderOptions;
1847
- right?: BorderOptions;
1848
- insideHorizontal?: BorderOptions;
1849
- insideVertical?: BorderOptions;
1850
- }
1851
- declare const TABLE_BORDERS_NONE: TableBordersOptions;
1852
- //#endregion
1853
- //#region src/parts/table/table-properties/table-float-properties.d.ts
1854
- declare const TableAnchorType: {
1855
- readonly MARGIN: "margin";
1856
- readonly PAGE: "page";
1857
- readonly TEXT: "text";
1858
- };
1859
- declare const RelativeHorizontalPosition: {
1860
- readonly CENTER: "center";
1861
- readonly INSIDE: "inside";
1862
- readonly LEFT: "left";
1863
- readonly OUTSIDE: "outside";
1864
- readonly RIGHT: "right";
1865
- };
1866
- declare const RelativeVerticalPosition: {
1867
- readonly BOTTOM: "bottom";
1868
- readonly CENTER: "center";
1869
- readonly INLINE: "inline";
1870
- readonly INSIDE: "inside";
1871
- readonly OUTSIDE: "outside";
1872
- readonly TOP: "top";
1873
- };
1874
- declare const OverlapType: {
1875
- readonly NEVER: "never";
1876
- readonly OVERLAP: "overlap";
1877
- };
1878
- interface TableFloatOptions {
1879
- horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
1880
- absoluteHorizontalPosition?: number;
1881
- relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
1882
- verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
1883
- absoluteVerticalPosition?: number;
1884
- relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
1885
- bottomFromText?: number;
1886
- topFromText?: number;
1887
- leftFromText?: number;
1888
- rightFromText?: number;
1889
- overlap?: (typeof OverlapType)[keyof typeof OverlapType];
1890
- }
1891
- //#endregion
1892
- //#region src/parts/table/table-properties/table-layout.d.ts
1893
- declare const TableLayoutType: {
1894
- readonly AUTOFIT: "autofit";
1895
- readonly FIXED: "fixed";
1896
- };
1897
- //#endregion
1898
- //#region src/parts/table/table-properties/table-look.d.ts
1899
- interface TableLookOptions {
1900
- firstRow?: boolean;
1901
- lastRow?: boolean;
1902
- firstColumn?: boolean;
1903
- lastColumn?: boolean;
1904
- noHBand?: boolean;
1905
- noVBand?: boolean;
1906
- }
1907
- //#endregion
1908
- //#region src/parts/table/table-properties/table-properties.d.ts
1909
- interface TablePropertiesOptionsBase {
1910
- width?: TableWidthProperties;
1911
- indent?: TableWidthProperties;
1912
- layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1913
- borders?: TableBordersOptions;
1914
- float?: TableFloatOptions;
1915
- shading?: ShadingAttributesProperties;
1916
- style?: string;
1917
- alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1918
- cellMargin?: TableCellMarginOptions;
1919
- visuallyRightToLeft?: boolean;
1920
- tableLook?: TableLookOptions;
1921
- cellSpacing?: TableCellSpacingProperties;
1922
- styleRowBandSize?: number;
1923
- styleColBandSize?: number;
1924
- caption?: string;
1925
- description?: string;
1926
- }
1927
- type TablePropertiesChangeOptions = TablePropertiesOptions & ChangedAttributesProperties;
1928
- type TablePropertiesOptions = {
1929
- revision?: TablePropertiesChangeOptions;
1930
- includeIfEmpty?: boolean;
1931
- } & TablePropertiesOptionsBase;
1932
- //#endregion
1933
- //#region src/parts/table/table-properties/table-property-exceptions.d.ts
1934
- interface TablePropertyExOptions {
1935
- width?: TableWidthProperties;
1936
- indent?: TableWidthProperties;
1937
- layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1938
- borders?: TableBordersOptions;
1939
- shading?: ShadingAttributesProperties;
1940
- alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1941
- cellMargin?: TableCellMarginOptions;
1942
- tableLook?: TableLookOptions;
1943
- cellSpacing?: TableCellSpacingProperties;
1944
- tblPrExChange?: {
2005
+ proofErr: "spellStart" | "spellEnd" | "gramStart" | "gramEnd";
2006
+ } | {
2007
+ positionalTab: {
2008
+ alignment: string;
2009
+ leader: string;
2010
+ relativeTo: string;
2011
+ };
2012
+ } | {
2013
+ permStart: {
2014
+ id: number | string;
2015
+ ed?: string;
2016
+ editGroup?: string;
2017
+ colFirst?: number;
2018
+ colLast?: number;
2019
+ };
2020
+ } | {
2021
+ permEnd: number | string;
2022
+ } | {
2023
+ moveFromRangeStart: {
2024
+ id: number;
2025
+ name?: string;
2026
+ author?: string;
2027
+ date?: string;
2028
+ };
2029
+ } | {
2030
+ moveFromRangeEnd: number;
2031
+ } | {
2032
+ moveToRangeStart: {
2033
+ id: number;
2034
+ name?: string;
2035
+ author?: string;
2036
+ date?: string;
2037
+ };
2038
+ } | {
2039
+ moveToRangeEnd: number;
2040
+ } | {
2041
+ movedFrom: RunOptions & ChangedAttributesProperties;
2042
+ } | {
2043
+ movedTo: RunOptions & ChangedAttributesProperties;
2044
+ } | {
2045
+ customXmlInsRangeStart: {
2046
+ id: number;
1945
2047
  author: string;
1946
2048
  date?: string;
1947
- id: string;
1948
2049
  };
1949
- }
1950
- //#endregion
1951
- //#region src/parts/table/table-cell/table-cell-components.d.ts
1952
- interface TableCellBordersOptions {
1953
- top?: BorderOptions;
1954
- start?: BorderOptions;
1955
- left?: BorderOptions;
1956
- bottom?: BorderOptions;
1957
- end?: BorderOptions;
1958
- right?: BorderOptions;
1959
- topLeftToBottomRight?: BorderOptions;
1960
- topRightToBottomLeft?: BorderOptions;
1961
- }
1962
- declare const VerticalMergeType: {
1963
- readonly CONTINUE: "continue";
1964
- readonly RESTART: "restart";
1965
- };
1966
- declare const TextDirection: {
1967
- readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
1968
- readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
1969
- readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
1970
- };
1971
- //#endregion
1972
- //#region src/parts/table/table-row/table-row-height.d.ts
1973
- declare const HeightRule: {
1974
- readonly AUTO: "auto";
1975
- readonly ATLEAST: "atLeast";
1976
- readonly EXACT: "exact";
1977
- };
2050
+ } | {
2051
+ customXmlInsRangeEnd: number;
2052
+ } | {
2053
+ customXmlDelRangeStart: {
2054
+ id: number;
2055
+ author: string;
2056
+ date?: string;
2057
+ };
2058
+ } | {
2059
+ customXmlDelRangeEnd: number;
2060
+ } | {
2061
+ customXmlMoveFromRangeStart: {
2062
+ id: number;
2063
+ author: string;
2064
+ date?: string;
2065
+ };
2066
+ } | {
2067
+ customXmlMoveFromRangeEnd: number;
2068
+ } | {
2069
+ customXmlMoveToRangeStart: {
2070
+ id: number;
2071
+ author: string;
2072
+ date?: string;
2073
+ };
2074
+ } | {
2075
+ customXmlMoveToRangeEnd: number;
2076
+ } | {
2077
+ ruby: RubyOptions;
2078
+ } | {
2079
+ simpleField: {
2080
+ instruction: string;
2081
+ cachedValue?: string;
2082
+ };
2083
+ } | {
2084
+ formField: FormFieldOptions;
2085
+ } | {
2086
+ complexField: {
2087
+ instruction: string;
2088
+ result?: string;
2089
+ rPrXml?: string;
2090
+ resultRPrXml?: string;
2091
+ };
2092
+ } | {
2093
+ seqIdentifier: string;
2094
+ } | {
2095
+ pageReference: {
2096
+ bookmarkId: string;
2097
+ hyperlink?: boolean;
2098
+ useRelativePosition?: boolean;
2099
+ };
2100
+ } | {
2101
+ dir: {
2102
+ val: "ltr" | "rtl";
2103
+ children?: (RunOptions | string)[];
2104
+ };
2105
+ } | {
2106
+ bdo: {
2107
+ val: "ltr" | "rtl";
2108
+ children?: (RunOptions | string)[];
2109
+ };
2110
+ } | {
2111
+ smartTag: {
2112
+ uri?: string;
2113
+ element: string;
2114
+ properties?: Array<{
2115
+ uri?: string;
2116
+ name: string;
2117
+ val: string;
2118
+ }>;
2119
+ children?: (RunOptions | string)[];
2120
+ };
2121
+ } | {
2122
+ customXml: CustomXmlRunOptions & {
2123
+ children?: (ParagraphChild | string)[];
2124
+ };
2125
+ } | {
2126
+ sdt: SdtRunOptions;
2127
+ } | RunOptions;
2128
+ type ParagraphOptions = {
2129
+ text?: string;
2130
+ children?: (ParagraphChild | string)[];
2131
+ rsidR?: string;
2132
+ rsidRPr?: string;
2133
+ rsidRDefault?: string;
2134
+ rsidDel?: string;
2135
+ rsidP?: string;
2136
+ } & ParagraphPropertiesOptions;
1978
2137
  //#endregion
1979
2138
  //#region src/parts/table/table-row/table-row-properties.d.ts
1980
2139
  interface CnfStyleOptions {
1981
- val: string;
1982
- changed?: boolean;
2140
+ val?: string;
2141
+ firstRow?: boolean;
2142
+ lastRow?: boolean;
2143
+ firstColumn?: boolean;
2144
+ lastColumn?: boolean;
2145
+ oddVBand?: boolean;
2146
+ evenVBand?: boolean;
2147
+ oddHBand?: boolean;
2148
+ evenHBand?: boolean;
2149
+ firstRowFirstColumn?: boolean;
2150
+ firstRowLastColumn?: boolean;
2151
+ lastRowFirstColumn?: boolean;
2152
+ lastRowLastColumn?: boolean;
1983
2153
  }
1984
2154
  interface TableRowPropertiesOptionsBase {
1985
2155
  cnfStyle?: CnfStyleOptions;
@@ -1987,7 +2157,7 @@ interface TableRowPropertiesOptionsBase {
1987
2157
  tableHeader?: boolean;
1988
2158
  height?: {
1989
2159
  value: number;
1990
- rule: (typeof HeightRule)[keyof typeof HeightRule];
2160
+ rule?: (typeof HeightRule)[keyof typeof HeightRule];
1991
2161
  };
1992
2162
  cellSpacing?: TableCellSpacingProperties;
1993
2163
  divId?: number;
@@ -2006,66 +2176,6 @@ type TableRowPropertiesOptions = TableRowPropertiesOptionsBase & {
2006
2176
  };
2007
2177
  type TableRowPropertiesChangeOptions = TableRowPropertiesOptionsBase & ChangedAttributesProperties;
2008
2178
  //#endregion
2009
- //#region src/parts/table/table-row/table-row.d.ts
2010
- interface SdtRowOptions {
2011
- properties: SdtPropertiesOptions;
2012
- rows?: TableRowOptions[];
2013
- endProperties?: RunPropertiesOptions;
2014
- }
2015
- type TableRowOptions = {
2016
- cells: (TableCellOptions | {
2017
- sdt: SdtCellOptions;
2018
- } | {
2019
- customXml: CustomXmlCellOptions;
2020
- })[];
2021
- propertyExceptions?: TablePropertyExOptions;
2022
- rsidRPr?: string;
2023
- rsidR?: string;
2024
- rsidDel?: string;
2025
- rsidTr?: string;
2026
- } & TableRowPropertiesOptions;
2027
- //#endregion
2028
- //#region src/parts/table/table.d.ts
2029
- interface TableOptions {
2030
- rows: (TableRowOptions | {
2031
- sdt: SdtRowOptions;
2032
- } | {
2033
- customXml: CustomXmlRowOptions;
2034
- })[];
2035
- width?: TableWidthProperties;
2036
- columnWidths?: number[] | PositiveUniversalMeasure[];
2037
- columnWidthsRevision?: TableGridChangeOptions;
2038
- margins?: TableCellMarginOptions;
2039
- indent?: TableWidthProperties;
2040
- float?: TableFloatOptions;
2041
- layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
2042
- style?: string;
2043
- borders?: TableBordersOptions;
2044
- alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
2045
- visuallyRightToLeft?: boolean;
2046
- tableLook?: TableLookOptions;
2047
- cellSpacing?: TableCellSpacingProperties;
2048
- styleRowBandSize?: number;
2049
- styleColBandSize?: number;
2050
- caption?: string;
2051
- description?: string;
2052
- revision?: TablePropertiesChangeOptions;
2053
- }
2054
- //#endregion
2055
- //#region src/parts/table/descriptor.d.ts
2056
- declare const tableDesc: CustomDescriptor<TableOptions, BodyContext>;
2057
- type ParseChildFn = (el: Element, ctx: DocxReadContext) => SectionChild;
2058
- declare function setTableParseChild(fn: ParseChildFn): void;
2059
- //#endregion
2060
- //#region src/parts/table/table-properties/table-cell-margin.d.ts
2061
- interface TableCellMarginOptions {
2062
- marginUnitType?: (typeof WidthType)[keyof typeof WidthType];
2063
- top?: number | PositiveUniversalMeasure;
2064
- bottom?: number | PositiveUniversalMeasure;
2065
- left?: number | PositiveUniversalMeasure;
2066
- right?: number | PositiveUniversalMeasure;
2067
- }
2068
- //#endregion
2069
2179
  //#region src/parts/table/table-cell/table-cell-properties.d.ts
2070
2180
  interface TableCellPropertiesOptionsBase {
2071
2181
  cnfStyle?: CnfStyleOptions;
@@ -2357,6 +2467,13 @@ type SectionChild = {
2357
2467
  subDoc: SubDocOptions;
2358
2468
  } | {
2359
2469
  customXml: CustomXmlBlockOptions;
2470
+ } | {
2471
+ bookmarkStart: {
2472
+ id: number;
2473
+ name: string;
2474
+ };
2475
+ } | {
2476
+ bookmarkEnd: number;
2360
2477
  } | {
2361
2478
  rawXml: string;
2362
2479
  };
@@ -2682,6 +2799,7 @@ interface NumberingOptions {
2682
2799
  config: {
2683
2800
  levels: LevelsOptions[];
2684
2801
  reference: string;
2802
+ extraOptions?: AbstractNumberingExtraOptions;
2685
2803
  }[];
2686
2804
  numIdMacAtCleanup?: number;
2687
2805
  numPicBullets?: {
@@ -2707,6 +2825,13 @@ declare class Numbering {
2707
2825
  }[];
2708
2826
  get referenceConfig(): LevelsOptions[][];
2709
2827
  }
2828
+ interface AbstractNumberingExtraOptions {
2829
+ nsid?: string;
2830
+ tmpl?: string;
2831
+ name?: string;
2832
+ styleLink?: string;
2833
+ numStyleLink?: string;
2834
+ }
2710
2835
  declare function parseNumberingDefinitions(el: Element, parseParagraphProperties: (el: Element, ctx: DocxReadContext) => Record<string, unknown>, ctx: DocxReadContext): NumberingOptions | undefined;
2711
2836
  //#endregion
2712
2837
  //#region src/parts/numbering/abstract-numbering.d.ts
@@ -2806,6 +2931,8 @@ interface CompatibilityOptions {
2806
2931
  //#endregion
2807
2932
  //#region src/parts/settings/settings.d.ts
2808
2933
  interface SettingsOptions {
2934
+ rawXml?: string;
2935
+ rootAttributes?: Record<string, string>;
2809
2936
  compatibilityModeVersion?: number;
2810
2937
  evenAndOddHeaders?: boolean;
2811
2938
  trackRevisions?: boolean;
@@ -3187,6 +3314,8 @@ interface StylesOptions {
3187
3314
  characterStyles?: (BaseCharacterStyleOptions & {
3188
3315
  id: string;
3189
3316
  })[];
3317
+ latentStylesXml?: string;
3318
+ docDefaultsXml?: string;
3190
3319
  }
3191
3320
  declare class Styles {
3192
3321
  private attributes;
@@ -3329,6 +3458,7 @@ interface DocxPartRefs {
3329
3458
  charts: Map<string, string>;
3330
3459
  diagramData: Map<string, string>;
3331
3460
  media: Map<string, string>;
3461
+ partMedia: Map<string, Map<string, string>>;
3332
3462
  afChunks: Map<string, string>;
3333
3463
  subDocs: Map<string, string>;
3334
3464
  bibliography?: string;
@@ -3413,8 +3543,10 @@ declare class DocxReadContext implements ReadContext {
3413
3543
  docx: DocxDocument;
3414
3544
  styleCache: Map<string, Element>;
3415
3545
  numberingCache: Map<string, Element>;
3546
+ currentPart: string;
3416
3547
  constructor(docx: DocxDocument, styleCache: Map<string, Element>, numberingCache: Map<string, Element>);
3417
3548
  resolveRelationship(rId: string): string | undefined;
3549
+ withPart<T>(partPath: string, fn: () => T): T;
3418
3550
  getPart(path: string): Element | undefined;
3419
3551
  getRaw(path: string): Uint8Array | undefined;
3420
3552
  }
@@ -3422,6 +3554,7 @@ declare class DocxReadContext implements ReadContext {
3422
3554
  //#region src/parts/fonts/font-wrapper.d.ts
3423
3555
  type EmbeddedFontOptionsWithKey = EmbeddedFontOptions & {
3424
3556
  fontKey: string;
3557
+ embedRid?: string;
3425
3558
  };
3426
3559
  declare class FontWrapper implements ViewWrapper {
3427
3560
  options: EmbeddedFontOptions[];
@@ -3431,10 +3564,26 @@ declare class FontWrapper implements ViewWrapper {
3431
3564
  }
3432
3565
  //#endregion
3433
3566
  //#region src/parts/fonts/font-table.d.ts
3567
+ interface FontSignature {
3568
+ usb0: string;
3569
+ usb1: string;
3570
+ usb2: string;
3571
+ usb3: string;
3572
+ csb0: string;
3573
+ csb1: string;
3574
+ }
3434
3575
  interface EmbeddedFontOptions {
3435
3576
  name: string;
3436
- data: Buffer;
3577
+ data?: Buffer;
3437
3578
  characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
3579
+ family?: string;
3580
+ pitch?: string;
3581
+ panose1?: string;
3582
+ altName?: string;
3583
+ sig?: FontSignature;
3584
+ rawOdttf?: boolean;
3585
+ odttfPath?: string;
3586
+ fontKey?: string;
3438
3587
  }
3439
3588
  //#endregion
3440
3589
  //#region src/parts/settings/descriptor.d.ts
@@ -3478,19 +3627,6 @@ interface CustomPropertiesInput {
3478
3627
  }
3479
3628
  declare const customPropertiesDesc: CustomDescriptor<CustomPropertiesInput>;
3480
3629
  //#endregion
3481
- //#region src/parts/document/document-background/document-background.d.ts
3482
- interface BackgroundImageOptions {
3483
- data: DataType;
3484
- type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
3485
- }
3486
- interface DocumentBackgroundOptions {
3487
- color?: string;
3488
- themeColor?: string;
3489
- themeShade?: string;
3490
- themeTint?: string;
3491
- image?: BackgroundImageOptions;
3492
- }
3493
- //#endregion
3494
3630
  //#region src/parts/core-properties.d.ts
3495
3631
  interface FeaturesOptions {
3496
3632
  trackRevisions?: boolean;
@@ -3506,6 +3642,7 @@ interface DocumentOptions {
3506
3642
  description?: string;
3507
3643
  lastModifiedBy?: string;
3508
3644
  revision?: number;
3645
+ lastPrinted?: string;
3509
3646
  externalStyles?: string;
3510
3647
  styles?: StylesOptions;
3511
3648
  numbering?: NumberingOptions;
@@ -3547,6 +3684,10 @@ interface DocumentOptions {
3547
3684
  settings?: SettingsOptions;
3548
3685
  webSettings?: WebSettingsOptions;
3549
3686
  contentTypes?: ContentTypesInput;
3687
+ rawParts?: {
3688
+ path: string;
3689
+ data: Uint8Array;
3690
+ }[];
3550
3691
  appProperties?: AppPropertiesOptions;
3551
3692
  }
3552
3693
  interface CorePropertiesInput {
@@ -3557,8 +3698,9 @@ interface CorePropertiesInput {
3557
3698
  description?: string;
3558
3699
  lastModifiedBy?: string;
3559
3700
  revision?: number;
3701
+ lastPrinted?: string;
3560
3702
  }
3561
3703
  declare const corePropertiesDesc: CustomDescriptor<CorePropertiesInput>;
3562
3704
  //#endregion
3563
- export { OdsoOptions as $, ShadingType as $a, XYFrameOptions as $i, ProofErrorTypeValue as $n, WORKAROUND2 as $r, createPageNumberType as $t, webSettingsDesc as A, SdtCheckboxOptions as Aa, RunOptions as Ai, TablePropertyExOptions as An, DrawingOptions as Ar, VmlShapeStyle as At, CaptionsOptions as B, SdtTextOptions as Ba, MonthShort as Bi, TableFloatOptions as Bn, createWrapTight as Br, createSectionType as Bt, DivBorderOptions as C, VerticalAlignSection as Ca, ParagraphPropertiesOptions as Ci, TableRowPropertiesChangeOptions as Cn, ChartOptions as Cr, SectionPropertiesOptionsBase as Ct, WebSettingsOptions as D, VerticalMergeRevisionType as Da, TextboxTightWrapType as Di, TableCellBordersOptions as Dn, drawingDesc as Dr, DocumentAttributeNamespaces as Dt, WebSettingsInput as E, CellMergeAttributes as Ea, TextAlignmentType as Ei, HeightRule as En, DrawingDescriptorOptions as Er, DocumentAttributeNamespace as Et, buildNumberingCache as F, SdtDateOptions as Fa, DayShort as Fi, TableLayoutType as Fn, HorizontalPositionRelativeFrom as Fr, HeaderFooterReferenceOptions as Ft, MailMergeDataType as G, RunPropertiesChangeOptions as Ga, Tab as Gi, ChartChild as Gn, MediaTransformation as Gr, PageMarginAttributes as Gt, EndnotePropertiesOptions as H, TableOfContentsOptions as Ha, PageNumberElement as Hi, TableBordersOptions as Hn, TextWrappingSide as Hr, LineNumberRestartFormat as Ht, buildStyleCache as I, SdtDropDownListOptions as Ia, EndnoteReference as Ii, OverlapType as In, Margins as Ir, HeaderFooterReferenceType as It, MailMergeOptions as J, TextEffect as Ja, AlignmentFrameOptions as Ji, ParagraphChild as Jn, ExtendedMediaData as Jr, PageBorderOffsetFrom as Jt, MailMergeDest as K, RunPropertiesOptions as Ka, YearLong as Ki, ImageChild as Kn, createTransformation as Kr, createPageMargin as Kt, parseStyleDefinitions as L, SdtListItem as La, FootnoteReferenceElement as Li, RelativeHorizontalPosition as Ln, VerticalPositionOptions as Lr, HeaderFooterType as Lt, SubDocData as M, SdtComboBoxOptions as Ma, CarriageReturn as Mi, TablePropertiesOptions as Mn, createHorizontalPosition as Mr, parseSectionPropertiesEl as Mt, Styles as N, SdtDataBindingOptions as Na, ContinuationSeparator as Ni, TablePropertiesOptionsBase as Nn, Floating as Nr, sectionPropertiesDesc as Nt, frameXml as O, stringifyTableOfContents as Oa, PageNumber as Oi, TextDirection as On, resetDrawingIdGen as Or, SectionChild as Ot, StylesOptions as P, SdtDateMappingType as Pa, DayLong as Pi, TableLookOptions as Pn, HorizontalPositionOptions as Pr, stringifySectionPropertiesXml as Pt, OdsoFieldType as Q, ShadingAttributesProperties as Qa, FrameWrap as Qi, ProofErrorType as Qn, SmartArtMediaData as Qr, PageNumberTypeAttributes as Qt, AutoCaptionOptions as R, SdtLock as Ra, LastRenderedPageBreak as Ri, RelativeVerticalPosition as Rn, VerticalPositionRelativeFrom as Rr, createHeaderFooterReference as Rt, parseDocx as S, TableVerticalAlign as Sa, ParagraphPropertiesChangeOptions as Si, CnfStyleOptions as Sn, SmartArtOptions as Sr, SectionPropertiesOptions as St, TargetScreenSize as T, createVerticalAlign as Ta, ParagraphStylePropertiesOptions as Ti, TableRowPropertiesOptionsBase as Tn, createImageData as Tr, sectionPageSizeDefaults as Tt, FootnotePropertiesOptions as U, HighlightColor as Ua, Separator as Ui, TableWidthProperties as Un, TextWrappingType as Ur, createLineNumberType as Ut, DocumentProtectionOptions as V, StyleLevel as Va, NoBreakHyphen as Vi, TABLE_BORDERS_NONE as Vn, TextWrapping as Vr, LineNumberAttributes as Vt, HyphenationOptions as W, ParagraphRunPropertiesOptions as Wa, SoftHyphen as Wi, WidthType as Wn, Media as Wr, PageTextDirectionType as Wt, MathPropertiesOptions as X, FontAttributesProperties as Xa, FrameAnchorType as Xi, SdtRunOptions as Xn, MediaData as Xr, PageBordersOptions as Xt, MailMergeSourceType as Y, UnderlineType as Ya, DropCapType as Yi, ParagraphOptions as Yn, GroupChildMediaData as Yr, PageBorderZOrder as Yt, OdsoFieldMapDataOptions as Z, EmphasisMarkType as Za, FrameOptions$1 as Zi, SmartArtChild as Zn, MediaDataTransformation as Zr, PageNumberSeparator as Zt, DocxWriteContext as _, IndentAttributesProperties as _a, GroupChild as _i, setTableParseChild as _n, CommentsOptions as _r, DocPartType as _t, BackgroundImageOptions as a, MathRunPropertiesOptions as aa, BodyPropertiesOptions as ai, createDocumentGrid as an, CharacterSet as ao, FormFieldTextOptions as ar, CompatibilityOptions as at, parseArchive as b, AlignmentType as ba, SymbolRunOptions as bi, SdtRowOptions as bn, WpsShapeRunOptions as br, HeaderFooterGroup as bt, CustomPropertyOptions as c, LeaderType as ca, PresetTextShapeOptions as ci, CustomXmlAttributeOptions as cn, ContentTypesInput as co, createFormFieldData as cr, Numbering as ct, AppPropertiesOptions as d, TabStopType as da, TextVertOverflowType as di, CustomXmlDataBindingOptions as dn, BibliographyOptions as do, RubyOptions as dr, LevelFormat as dt, HorizontalPositionAlign as ea, WpgCommonMediaData as ei, PageOrientation as en, BorderOptions as eo, SmartTagRunOptions as er, ReadModeInkLockDownOptions as et, appPropertiesDesc as f, HeadingLevel as fa, TextVerticalType as fi, CustomXmlPrOptions as fn, SourceTypeOptions as fo, PositionalTabAlignment as fr, LevelSuffix as ft, DocxReadContext as g, BreakTypeValue as ga, ChildOffset as gi, TableCellOptions as gn, CommentOptions as gr, DocPartOptions as gt, BodyContext as h, BreakType as ha, ChildExtent as hi, SdtCellOptions as hn, PositionalTabRelativeTo as hr, DocPartGallery as ht, corePropertiesDesc as i, MathInput as ia, WpsShapeOptions as ii, DocumentGridType as in, AltChunkData as io, FormFieldOptions as ir, WriteProtectionOptions as it, SubDocCollection as j, SdtCheckboxSymbol as ja, AnnotationReference as ji, TablePropertiesChangeOptions as jn, createVerticalPosition as jr, SubDocOptions as jt, framesetXml as k, parseToc as ka, ParagraphRunOptions as ki, VerticalMergeType as kn, Distance as kr, SectionOptions as kt, customPropertiesDesc as l, TabStopDefinition as la, TextBodyWrappingType as li, CustomXmlBlockOptions as ln, buildContentTypes as lo, parseFormFieldData as lr, NumberingOptions as lt, EmbeddedFontOptionsWithKey as m, SpacingProperties as ma, createBodyProperties as mi, CustomXmlRunOptions as mn, PositionalTabOptions as mr, DocPartBehavior as mt, DocumentOptions as n, SpaceType as na, WpsMediaData as ni, createPageSize as nn, AltChunkOptions as no, DropDownListOptions as nr, RsidsOptions as nt, DocumentBackgroundOptions as o, MathScriptType as oa, FlatTextOptions as oi, ColumnsAttributes as on, ContentTypeDefault as oo, FormFieldTextType as or, ConcreteNumberingOptions as ot, settingsDesc as p, LineRuleType as pa, VerticalAnchor as pi, CustomXmlRowOptions as pn, bibliographyDesc as po, PositionalTabLeader as pr, LevelsOptions as pt, MailMergeDocType as q, RunStylePropertiesOptions as qa, YearShort as qi, MathChild as qn, ChartMediaData as qr, PageBorderDisplay as qt, FeaturesOptions as r, VerticalPositionAlign as ra, WpsShapeCoreOptions as ri, DocGridAttributesProperties as rn, AltChunkCollection as ro, FormFieldCommonOptions as rr, SettingsOptions as rt, CustomPropertiesInput as s, MathStyleType as sa, NormalAutofitOptions as si, ColumnAttributes as sn, ContentTypeOverride as so, TextInputOptions as sr, AbstractNumberingOptions as st, CorePropertiesInput as t, NumberFormat as ta, WpgMediaData as ti, PageSizeAttributes as tn, BorderStyle as to, CheckBoxOptions as tr, RevisionViewOptions as tt, AppPropertiesInput as u, TabStopPosition as ua, TextHorzOverflowType as ui, CustomXmlCellOptions as un, contentTypesDesc as uo, RubyAlign as ur, parseNumberingDefinitions as ut, DocxDocument as v, CnfConditionalOptions as va, WpgGroupCoreOptions as vi, tableDesc as vn, SimpleFieldOptions as vr, GlossaryDocumentOptions as vt, DivOptions as w, VerticalAlignTable as wa, ParagraphPropertiesOptionsBase as wi, TableRowPropertiesOptions as wn, ImageOptions as wr, sectionMarginDefaults as wt, parseDocument as x, SectionVerticalAlign as xa, LevelParagraphStylePropertiesOptions as xi, TableRowOptions as xn, SmartArtNode as xr, SectionPropertiesChangeOptions as xt, DocxPartRefs as y, BordersOptions as ya, WpgGroupOptions as yi, TableOptions as yn, WpgGroupRunOptions as yr, glossaryDesc as yt, CaptionOptions as z, SdtPropertiesOptions as za, MonthLong as zi, TableAnchorType as zn, createWrapThrough as zr, SectionType as zt };
3564
- //# sourceMappingURL=core-properties-BMagGcpC.d.mts.map
3705
+ export { RevisionViewOptions as $, RunPropertiesChangeOptions as $a, TablePropertiesOptions as $i, SmartArtOptions as $n, TextWrappingSide as $r, PageSizeAttributes as $t, SubDocData as A, TableVerticalAlign as Aa, YearShort as Ai, DropDownListOptions as An, createBodyProperties as Ar, parseSectionPropertiesEl as At, EndnotePropertiesOptions as B, SdtComboBoxOptions as Ba, VerticalPositionAlign as Bi, PositionalTabAlignment as Bn, drawingDesc as Br, LineNumberRestartFormat as Bt, TargetScreenSize as C, IndentAttributesProperties as Ca, MonthShort as Ci, ParagraphOptions as Cn, NormalAutofitOptions as Cr, sectionPageSizeDefaults as Ct, framesetXml as D, TableWidthProperties as Da, SoftHyphen as Di, ProofErrorTypeValue as Dn, TextVertOverflowType as Dr, SectionOptions as Dt, frameXml as E, AlignmentType as Ea, Separator as Ei, ProofErrorType as En, TextHorzOverflowType as Er, SectionChild as Et, parseStyleDefinitions as F, VerticalMergeRevisionType as Fa, FrameWrap as Fi, TextInputOptions as Fn, WpgGroupCoreOptions as Fr, HeaderFooterType as Ft, MailMergeDocType as G, SdtListItem as Ga, SdtRowOptions as Gi, CommentsOptions as Gn, HorizontalPositionOptions as Gr, PageBorderDisplay as Gt, HyphenationOptions as H, SdtDateMappingType as Ha, tableDesc as Hi, PositionalTabOptions as Hn, createVerticalPosition as Hr, PageTextDirectionType as Ht, AutoCaptionOptions as I, stringifyTableOfContents as Ia, XYFrameOptions as Ii, createFormFieldData as In, WpgGroupOptions as Ir, createHeaderFooterReference as It, MathPropertiesOptions as J, SdtTextOptions as Ja, TextDirection as Ji, WpsShapeRunOptions as Jn, VerticalPositionOptions as Jr, PageBordersOptions as Jt, MailMergeOptions as K, SdtLock as Ka, TableRowOptions as Ki, SimpleFieldOptions as Kn, HorizontalPositionRelativeFrom as Kr, PageBorderOffsetFrom as Kt, CaptionOptions as L, parseToc as La, HorizontalPositionAlign as Li, parseFormFieldData as Ln, DrawingDescriptorOptions as Lr, SectionType as Lt, StylesOptions as M, VerticalAlignTable as Ma, DropCapType as Mi, FormFieldOptions as Mn, ChildExtent as Mr, stringifySectionPropertiesXml as Mt, buildNumberingCache as N, createVerticalAlign as Na, FrameAnchorType as Ni, FormFieldTextOptions as Nn, ChildOffset as Nr, HeaderFooterReferenceOptions as Nt, webSettingsDesc as O, WidthType as Oa, Tab as Oi, SmartTagRunOptions as On, TextVerticalType as Or, VmlShapeStyle as Ot, buildStyleCache as P, CellMergeAttributes as Pa, FrameOptions$1 as Pi, FormFieldTextType as Pn, GroupChild as Pr, HeaderFooterReferenceType as Pt, ReadModeInkLockDownOptions as Q, ParagraphRunPropertiesOptions as Qa, TablePropertiesChangeOptions as Qi, SmartArtNode as Qn, TextWrapping as Qr, PageOrientation as Qt, CaptionsOptions as R, SdtCheckboxOptions as Ra, NumberFormat as Ri, RubyAlign as Rn, GraphicFrameLocksOptions as Rr, createSectionType as Rt, DivOptions as S, BreakTypeValue as Sa, MonthLong as Si, ParagraphChild as Sn, bibliographyDesc as So, FlatTextOptions as Sr, sectionMarginDefaults as St, WebSettingsOptions as T, BordersOptions as Ta, PageNumberElement as Ti, SmartArtChild as Tn, TextBodyWrappingType as Tr, DocumentAttributeNamespaces as Tt, MailMergeDataType as U, SdtDateOptions as Ua, TableOptions as Ui, PositionalTabRelativeTo as Un, createHorizontalPosition as Ur, PageMarginAttributes as Ut, FootnotePropertiesOptions as V, SdtDataBindingOptions as Va, setTableParseChild as Vi, PositionalTabLeader as Vn, resetDrawingIdGen as Vr, createLineNumberType as Vt, MailMergeDest as W, SdtDropDownListOptions as Wa, HeightRule as Wi, CommentOptions as Wn, Floating as Wr, createPageMargin as Wt, OdsoFieldType as X, TableOfContentsOptions as Xa, TablePropertyExChangeOptions as Xi, BackgroundRawMediaOptions as Xn, createWrapThrough as Xr, PageNumberTypeAttributes as Xt, OdsoFieldMapDataOptions as Y, StyleLevel as Ya, VerticalMergeType as Yi, BackgroundImageOptions as Yn, VerticalPositionRelativeFrom as Yr, PageNumberSeparator as Yt, OdsoOptions as Z, HighlightColor as Za, TablePropertyExOptions as Zi, DocumentBackgroundOptions as Zn, createWrapTight as Zr, createPageNumberType as Zt, DocxPartRefs as _, TabStopType as _a, DayLong as _i, TableRowPropertiesOptions as _n, buildContentTypes as _o, ShapeStyleOptions as _r, glossaryDesc as _t, CustomPropertiesInput as a, RelativeVerticalPosition as aa, ParagraphPropertiesChangeOptions as ai, ColumnAttributes as an, EmphasisMarkType as ao, createTransformation as ar, AbstractNumberingOptions as at, parseDocx as b, SpacingProperties as ba, FootnoteReferenceElement as bi, ImageChild as bn, BibliographyOptions as bo, WpsShapeOptions as br, SectionPropertiesOptions as bt, AppPropertiesInput as c, TABLE_BORDERS_NONE as ca, ParagraphStylePropertiesOptions as ci, CustomXmlCellOptions as cn, BorderOptions as co, GroupChildMediaData as cr, parseNumberingDefinitions as ct, settingsDesc as d, MathRunPropertiesOptions as da, PageNumber as di, CustomXmlRowOptions as dn, AltChunkCollection as do, PicCnvPrOptions as dr, LevelsOptions as dt, TablePropertiesOptionsBase as ea, TextWrappingType as ei, createPageSize as en, RunPropertiesOptions as eo, ChartOptions as er, RsidsOptions as et, EmbeddedFontOptionsWithKey as f, MathScriptType as fa, ParagraphRunOptions as fi, CustomXmlRunOptions as fn, AltChunkData as fo, SmartArtMediaData as fr, DocPartBehavior as ft, DocxDocument as g, TabStopPosition as ga, ContinuationSeparator as gi, TableRowPropertiesChangeOptions as gn, ContentTypesInput as go, WpsMediaData as gr, GlossaryDocumentOptions as gt, DocxWriteContext as h, TabStopDefinition as ha, CarriageReturn as hi, CnfStyleOptions as hn, ContentTypeOverride as ho, WpgMediaData as hr, DocPartType as ht, corePropertiesDesc as i, RelativeHorizontalPosition as ia, LevelParagraphStylePropertiesOptions as ii, ColumnsAttributes as in, FontAttributesProperties as io, MediaTransformation as ir, ConcreteNumberingOptions as it, Styles as j, VerticalAlignSection as ja, AlignmentFrameOptions as ji, FormFieldCommonOptions as jn, parseBodyProperties as jr, sectionPropertiesDesc as jt, SubDocCollection as k, SectionVerticalAlign as ka, YearLong as ki, CheckBoxOptions as kn, VerticalAnchor as kr, SubDocOptions as kt, AppPropertiesOptions as l, TableBordersOptions as la, TextAlignmentType as li, CustomXmlDataBindingOptions as ln, BorderStyle as lo, MediaData as lr, LevelFormat as lt, DocxReadContext as m, LeaderType as ma, AnnotationReference as mi, TableCellOptions as mn, ContentTypeDefault as mo, WpgCommonMediaData as mr, DocPartOptions as mt, DocumentOptions as n, TableLayoutType as na, DrawingOptions as ni, DocumentGridType as nn, TextEffect as no, createImageData as nr, WriteProtectionOptions as nt, CustomPropertyOptions as o, TableAnchorType as oa, ParagraphPropertiesOptions as oi, CustomXmlAttributeOptions as on, ShadingAttributesProperties as oo, ChartMediaData as or, Numbering as ot, BodyContext as p, MathStyleType as pa, RunOptions as pi, SdtCellOptions as pn, CharacterSet as po, WORKAROUND2 as pr, DocPartGallery as pt, MailMergeSourceType as q, SdtPropertiesOptions as qa, TableCellBordersOptions as qi, WpgGroupRunOptions as qn, Margins as qr, PageBorderZOrder as qt, FeaturesOptions as r, OverlapType as ra, SymbolRunOptions as ri, createDocumentGrid as rn, UnderlineType as ro, Media as rr, CompatibilityOptions as rt, customPropertiesDesc as s, TableFloatOptions as sa, ParagraphPropertiesOptionsBase as si, CustomXmlBlockOptions as sn, ShadingType as so, ExtendedMediaData as sr, NumberingOptions as st, CorePropertiesInput as t, TableLookOptions as ta, Distance as ti, DocGridAttributesProperties as tn, RunStylePropertiesOptions as to, ImageOptions as tr, SettingsOptions as tt, appPropertiesDesc as u, MathInput as ua, TextboxTightWrapType as ui, CustomXmlPrOptions as un, AltChunkOptions as uo, MediaDataTransformation as ur, LevelSuffix as ut, parseArchive as v, HeadingLevel as va, DayShort as vi, TableRowPropertiesOptionsBase as vn, contentTypesDesc as vo, StyleMatrixReferenceOptions as vr, HeaderFooterGroup as vt, WebSettingsInput as w, CnfConditionalOptions as wa, NoBreakHyphen as wi, SdtRunOptions as wn, PresetTextShapeOptions as wr, DocumentAttributeNamespace as wt, DivBorderOptions as x, BreakType as xa, LastRenderedPageBreak as xi, MathChild as xn, SourceTypeOptions as xo, BodyPropertiesOptions as xr, SectionPropertiesOptionsBase as xt, parseDocument as y, LineRuleType as ya, EndnoteReference as yi, ChartChild as yn, withMediaDefaults as yo, WpsShapeCoreOptions as yr, SectionPropertiesChangeOptions as yt, DocumentProtectionOptions as z, SdtCheckboxSymbol as za, SpaceType as zi, RubyOptions as zn, GroupShapeLocksOptions as zr, LineNumberAttributes as zt };
3706
+ //# sourceMappingURL=core-properties-CBMhgSrn.d.mts.map