@office-open/docx 0.6.1 → 0.6.3
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/README.md +25 -13
- package/dist/index.d.mts +613 -544
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3023 -6149
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _$_office_open_core0 from "@office-open/core";
|
|
2
|
+
import { AppProperties, AttributeData, AttributeMap, AttributePayload, BaseXmlComponent, BuilderElement, Context as Context$1, EMPTY_OBJECT, EmptyElement, IXmlableObject, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, NextAttributeComponent, OutputByType, OutputByType as OutputByType$1, OutputType, OutputType as OutputType$1, ParsedDocument, PrettifyType, Relationships, UniqueNumericIdCreator, XmlAttributeComponent, XmlAttributeComponent as XmlAttributeComponent$1, XmlComponent, XmlComponent as XmlComponent$1, attrObj, chartAttr, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, hashedId, hpsMeasureObj, numberValObj, onOffObj, parseArchive, stringContainerObj, stringEnumValObj, stringValObj, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl } from "@office-open/core";
|
|
2
3
|
import { DataType } from "undio";
|
|
3
4
|
import { BlipEffectsOptions, CustomGeometryOptions, EffectDagOptions, EffectListOptions, FillOptions, OutlineOptions, Scene3DOptions, Shape3DOptions, SourceRectangleOptions, TileOptions } from "@office-open/core/drawingml";
|
|
4
|
-
import { ChartCollection,
|
|
5
|
-
import { COLOR_CATEGORIES, DEFAULT_DRAWING_XML,
|
|
5
|
+
import { ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions } from "@office-open/core/chart";
|
|
6
|
+
import { COLOR_CATEGORIES, DEFAULT_DRAWING_XML, LAYOUT_CATEGORIES, STYLE_CATEGORIES, SmartArtCollection, SmartArtData, TreeNode, createDataModel, getColorXml, getLayoutXml, getStyleXml } from "@office-open/core/smartart";
|
|
6
7
|
import { Element } from "@office-open/xml";
|
|
7
8
|
import { Buffer } from "\u0000polyfill-node.buffer";
|
|
8
|
-
import { Readable } from "stream";
|
|
9
9
|
export * from "@office-open/core/values";
|
|
10
10
|
export * from "@office-open/core/smartart";
|
|
11
11
|
|
|
@@ -71,11 +71,11 @@ declare class Footer$1 extends HeaderFooterBase {
|
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
|
|
74
|
-
interface
|
|
74
|
+
interface ChildOffset {
|
|
75
75
|
readonly x: number;
|
|
76
76
|
readonly y: number;
|
|
77
77
|
}
|
|
78
|
-
interface
|
|
78
|
+
interface ChildExtent {
|
|
79
79
|
readonly cx: number;
|
|
80
80
|
readonly cy: number;
|
|
81
81
|
}
|
|
@@ -124,7 +124,7 @@ interface PresetTextShapeOptions {
|
|
|
124
124
|
interface FlatTextOptions {
|
|
125
125
|
readonly z?: number;
|
|
126
126
|
}
|
|
127
|
-
interface
|
|
127
|
+
interface BodyPropertiesOptions {
|
|
128
128
|
readonly rotation?: number;
|
|
129
129
|
readonly spcFirstLastPara?: boolean;
|
|
130
130
|
readonly vertOverflow?: (typeof TextVertOverflowType)[keyof typeof TextVertOverflowType];
|
|
@@ -159,18 +159,18 @@ interface IBodyPropertiesOptions {
|
|
|
159
159
|
readonly sp3d?: Shape3DOptions;
|
|
160
160
|
readonly flatTx?: FlatTextOptions;
|
|
161
161
|
}
|
|
162
|
-
declare const createBodyProperties: (options?:
|
|
162
|
+
declare const createBodyProperties: (options?: BodyPropertiesOptions) => XmlComponent;
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/non-visual-shape-properties.d.ts
|
|
165
|
-
interface
|
|
165
|
+
interface NonVisualShapePropertiesOptions {
|
|
166
166
|
readonly txBox: string;
|
|
167
167
|
}
|
|
168
168
|
//#endregion
|
|
169
169
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/wps-shape.d.ts
|
|
170
170
|
interface WpsShapeCoreOptions {
|
|
171
171
|
readonly children: readonly Paragraph[];
|
|
172
|
-
readonly nonVisualProperties?:
|
|
173
|
-
readonly bodyProperties?:
|
|
172
|
+
readonly nonVisualProperties?: NonVisualShapePropertiesOptions;
|
|
173
|
+
readonly bodyProperties?: BodyPropertiesOptions;
|
|
174
174
|
readonly outline?: OutlineOptions;
|
|
175
175
|
readonly fill?: FillOptions;
|
|
176
176
|
readonly customGeometry?: CustomGeometryOptions;
|
|
@@ -181,7 +181,7 @@ interface WpsShapeCoreOptions {
|
|
|
181
181
|
}
|
|
182
182
|
//#endregion
|
|
183
183
|
//#region src/file/media/data.d.ts
|
|
184
|
-
interface
|
|
184
|
+
interface MediaDataTransformation {
|
|
185
185
|
readonly offset?: {
|
|
186
186
|
readonly pixels: {
|
|
187
187
|
readonly x: number;
|
|
@@ -208,7 +208,7 @@ interface IMediaDataTransformation {
|
|
|
208
208
|
}
|
|
209
209
|
interface CoreMediaData {
|
|
210
210
|
readonly fileName: string;
|
|
211
|
-
readonly transformation:
|
|
211
|
+
readonly transformation: MediaDataTransformation;
|
|
212
212
|
readonly data: Uint8Array;
|
|
213
213
|
readonly srcRect?: SourceRectangleOptions;
|
|
214
214
|
}
|
|
@@ -221,7 +221,7 @@ interface SvgMediaData {
|
|
|
221
221
|
}
|
|
222
222
|
interface WpsMediaData {
|
|
223
223
|
readonly type: "wps";
|
|
224
|
-
readonly transformation:
|
|
224
|
+
readonly transformation: MediaDataTransformation;
|
|
225
225
|
readonly data: WpsShapeCoreOptions;
|
|
226
226
|
}
|
|
227
227
|
interface WpgCommonMediaData {
|
|
@@ -231,21 +231,21 @@ interface WpgCommonMediaData {
|
|
|
231
231
|
type IGroupChildMediaData = (WpsMediaData | IMediaData) & WpgCommonMediaData;
|
|
232
232
|
interface WpgMediaData {
|
|
233
233
|
readonly type: "wpg";
|
|
234
|
-
readonly transformation:
|
|
234
|
+
readonly transformation: MediaDataTransformation;
|
|
235
235
|
readonly children: readonly IGroupChildMediaData[];
|
|
236
|
-
readonly chOff?:
|
|
237
|
-
readonly chExt?:
|
|
236
|
+
readonly chOff?: ChildOffset;
|
|
237
|
+
readonly chExt?: ChildExtent;
|
|
238
238
|
readonly fill?: FillOptions;
|
|
239
239
|
readonly effects?: EffectListOptions;
|
|
240
240
|
}
|
|
241
241
|
interface ChartMediaData {
|
|
242
242
|
readonly type: "chart";
|
|
243
|
-
readonly transformation:
|
|
243
|
+
readonly transformation: MediaDataTransformation;
|
|
244
244
|
readonly chartKey: string;
|
|
245
245
|
}
|
|
246
246
|
interface SmartArtMediaData {
|
|
247
247
|
readonly type: "smartart";
|
|
248
|
-
readonly transformation:
|
|
248
|
+
readonly transformation: MediaDataTransformation;
|
|
249
249
|
readonly smartArtKey: string;
|
|
250
250
|
}
|
|
251
251
|
type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData | ChartMediaData | SmartArtMediaData;
|
|
@@ -253,7 +253,7 @@ type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
|
253
253
|
declare const WORKAROUND2 = "";
|
|
254
254
|
//#endregion
|
|
255
255
|
//#region src/file/media/media.d.ts
|
|
256
|
-
interface
|
|
256
|
+
interface MediaTransformation {
|
|
257
257
|
readonly offset?: {
|
|
258
258
|
readonly top?: number;
|
|
259
259
|
readonly left?: number;
|
|
@@ -266,7 +266,7 @@ interface IMediaTransformation {
|
|
|
266
266
|
};
|
|
267
267
|
readonly rotation?: number;
|
|
268
268
|
}
|
|
269
|
-
declare const createTransformation: (options:
|
|
269
|
+
declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
|
|
270
270
|
declare class Media {
|
|
271
271
|
private readonly map;
|
|
272
272
|
constructor();
|
|
@@ -275,11 +275,11 @@ declare class Media {
|
|
|
275
275
|
}
|
|
276
276
|
//#endregion
|
|
277
277
|
//#region src/file/footer-wrapper.d.ts
|
|
278
|
-
interface
|
|
278
|
+
interface DocumentFooter {
|
|
279
279
|
readonly footer: FooterWrapper;
|
|
280
280
|
readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
|
281
281
|
}
|
|
282
|
-
declare class FooterWrapper implements
|
|
282
|
+
declare class FooterWrapper implements ViewWrapper {
|
|
283
283
|
private readonly media;
|
|
284
284
|
private readonly footer;
|
|
285
285
|
private readonly relationships;
|
|
@@ -297,11 +297,11 @@ declare class Header$1 extends HeaderFooterBase {
|
|
|
297
297
|
}
|
|
298
298
|
//#endregion
|
|
299
299
|
//#region src/file/header-wrapper.d.ts
|
|
300
|
-
interface
|
|
300
|
+
interface DocumentHeader {
|
|
301
301
|
readonly header: HeaderWrapper;
|
|
302
302
|
readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
|
303
303
|
}
|
|
304
|
-
declare class HeaderWrapper implements
|
|
304
|
+
declare class HeaderWrapper implements ViewWrapper {
|
|
305
305
|
private readonly media;
|
|
306
306
|
private readonly header;
|
|
307
307
|
private readonly relationships;
|
|
@@ -314,7 +314,7 @@ declare class HeaderWrapper implements IViewWrapper {
|
|
|
314
314
|
}
|
|
315
315
|
//#endregion
|
|
316
316
|
//#region src/file/track-revision/track-revision.d.ts
|
|
317
|
-
interface
|
|
317
|
+
interface ChangedAttributesProperties {
|
|
318
318
|
readonly id: number;
|
|
319
319
|
readonly author: string;
|
|
320
320
|
readonly date: string;
|
|
@@ -332,28 +332,22 @@ declare const VerticalAlignSection: {
|
|
|
332
332
|
readonly CENTER: "center";
|
|
333
333
|
readonly TOP: "top";
|
|
334
334
|
};
|
|
335
|
-
declare const VerticalAlign: {
|
|
336
|
-
readonly BOTH: "both";
|
|
337
|
-
readonly BOTTOM: "bottom";
|
|
338
|
-
readonly CENTER: "center";
|
|
339
|
-
readonly TOP: "top";
|
|
340
|
-
};
|
|
341
335
|
type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
|
|
342
336
|
type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
|
|
343
|
-
declare const createVerticalAlign: (value:
|
|
337
|
+
declare const createVerticalAlign: (value: TableVerticalAlign | SectionVerticalAlign) => XmlComponent;
|
|
344
338
|
import * as import__office_open_core_values from "@office-open/core/values";
|
|
345
339
|
//#endregion
|
|
346
340
|
//#region src/file/document/body/section-properties/properties/column.d.ts
|
|
347
|
-
interface
|
|
341
|
+
interface ColumnAttributes {
|
|
348
342
|
readonly width: number | values_d_exports.PositiveUniversalMeasure;
|
|
349
343
|
readonly space?: number | values_d_exports.PositiveUniversalMeasure;
|
|
350
344
|
}
|
|
351
345
|
declare class Column extends XmlComponent {
|
|
352
|
-
constructor(options:
|
|
346
|
+
constructor(options: ColumnAttributes);
|
|
353
347
|
}
|
|
354
348
|
//#endregion
|
|
355
349
|
//#region src/file/document/body/section-properties/properties/columns.d.ts
|
|
356
|
-
interface
|
|
350
|
+
interface ColumnsAttributes {
|
|
357
351
|
readonly space?: number | values_d_exports.PositiveUniversalMeasure;
|
|
358
352
|
readonly count?: number;
|
|
359
353
|
readonly separate?: boolean;
|
|
@@ -366,7 +360,7 @@ declare const createColumns: ({
|
|
|
366
360
|
separate,
|
|
367
361
|
equalWidth,
|
|
368
362
|
children
|
|
369
|
-
}:
|
|
363
|
+
}: ColumnsAttributes) => XmlComponent;
|
|
370
364
|
//#endregion
|
|
371
365
|
//#region src/file/document/body/section-properties/properties/doc-grid.d.ts
|
|
372
366
|
declare const DocumentGridType: {
|
|
@@ -375,7 +369,7 @@ declare const DocumentGridType: {
|
|
|
375
369
|
readonly LINES_AND_CHARS: "linesAndChars";
|
|
376
370
|
readonly SNAP_TO_CHARS: "snapToChars";
|
|
377
371
|
};
|
|
378
|
-
interface
|
|
372
|
+
interface DocGridAttributesProperties {
|
|
379
373
|
readonly type?: (typeof DocumentGridType)[keyof typeof DocumentGridType];
|
|
380
374
|
readonly linePitch: number;
|
|
381
375
|
readonly charSpace?: number;
|
|
@@ -384,7 +378,7 @@ declare const createDocumentGrid: ({
|
|
|
384
378
|
type,
|
|
385
379
|
linePitch,
|
|
386
380
|
charSpace
|
|
387
|
-
}:
|
|
381
|
+
}: DocGridAttributesProperties) => XmlComponent;
|
|
388
382
|
//#endregion
|
|
389
383
|
//#region src/file/shared/number-format.d.ts
|
|
390
384
|
declare const NumberFormat: {
|
|
@@ -487,7 +481,7 @@ declare const LineNumberRestartFormat: {
|
|
|
487
481
|
readonly NEW_SECTION: "newSection";
|
|
488
482
|
readonly CONTINUOUS: "continuous";
|
|
489
483
|
};
|
|
490
|
-
interface
|
|
484
|
+
interface LineNumberAttributes {
|
|
491
485
|
readonly countBy?: number;
|
|
492
486
|
readonly start?: number;
|
|
493
487
|
readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
|
|
@@ -498,10 +492,10 @@ declare const createLineNumberType: ({
|
|
|
498
492
|
start,
|
|
499
493
|
restart,
|
|
500
494
|
distance
|
|
501
|
-
}:
|
|
495
|
+
}: LineNumberAttributes) => XmlComponent;
|
|
502
496
|
//#endregion
|
|
503
497
|
//#region src/file/border/border.d.ts
|
|
504
|
-
interface
|
|
498
|
+
interface BorderOptions {
|
|
505
499
|
readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
506
500
|
readonly color?: string;
|
|
507
501
|
readonly themeColor?: (typeof values_d_exports.ThemeColor)[keyof typeof values_d_exports.ThemeColor];
|
|
@@ -512,6 +506,17 @@ interface IBorderOptions {
|
|
|
512
506
|
readonly size?: number;
|
|
513
507
|
readonly space?: number;
|
|
514
508
|
}
|
|
509
|
+
declare const buildBorderObj: (elementName: string, {
|
|
510
|
+
color,
|
|
511
|
+
size,
|
|
512
|
+
space,
|
|
513
|
+
style,
|
|
514
|
+
themeColor,
|
|
515
|
+
themeTint,
|
|
516
|
+
themeShade,
|
|
517
|
+
shadow,
|
|
518
|
+
frame
|
|
519
|
+
}: BorderOptions) => IXmlableObject;
|
|
515
520
|
declare const createBorderElement: (elementName: string, {
|
|
516
521
|
color,
|
|
517
522
|
size,
|
|
@@ -522,7 +527,7 @@ declare const createBorderElement: (elementName: string, {
|
|
|
522
527
|
themeShade,
|
|
523
528
|
shadow,
|
|
524
529
|
frame
|
|
525
|
-
}:
|
|
530
|
+
}: BorderOptions) => XmlComponent;
|
|
526
531
|
declare const BorderStyle: {
|
|
527
532
|
readonly SINGLE: "single";
|
|
528
533
|
readonly DASH_DOT_STROKED: "dashDotStroked";
|
|
@@ -567,21 +572,21 @@ declare const PageBorderZOrder: {
|
|
|
567
572
|
readonly BACK: "back";
|
|
568
573
|
readonly FRONT: "front";
|
|
569
574
|
};
|
|
570
|
-
interface
|
|
575
|
+
interface PageBordersOptions {
|
|
571
576
|
readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
|
|
572
577
|
readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
|
|
573
578
|
readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
|
|
574
|
-
readonly top?:
|
|
575
|
-
readonly right?:
|
|
576
|
-
readonly bottom?:
|
|
577
|
-
readonly left?:
|
|
579
|
+
readonly top?: BorderOptions;
|
|
580
|
+
readonly right?: BorderOptions;
|
|
581
|
+
readonly bottom?: BorderOptions;
|
|
582
|
+
readonly left?: BorderOptions;
|
|
578
583
|
}
|
|
579
584
|
declare class PageBorders extends IgnoreIfEmptyXmlComponent {
|
|
580
|
-
constructor(options?:
|
|
585
|
+
constructor(options?: PageBordersOptions);
|
|
581
586
|
}
|
|
582
587
|
//#endregion
|
|
583
588
|
//#region src/file/document/body/section-properties/properties/page-margin.d.ts
|
|
584
|
-
interface
|
|
589
|
+
interface PageMarginAttributes {
|
|
585
590
|
readonly top?: number | values_d_exports.UniversalMeasure;
|
|
586
591
|
readonly right?: number | values_d_exports.PositiveUniversalMeasure;
|
|
587
592
|
readonly bottom?: number | values_d_exports.UniversalMeasure;
|
|
@@ -600,7 +605,7 @@ declare const PageNumberSeparator: {
|
|
|
600
605
|
readonly EM_DASH: "emDash";
|
|
601
606
|
readonly EN_DASH: "enDash";
|
|
602
607
|
};
|
|
603
|
-
interface
|
|
608
|
+
interface PageNumberTypeAttributes {
|
|
604
609
|
readonly start?: number;
|
|
605
610
|
readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
|
|
606
611
|
readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
|
|
@@ -611,14 +616,14 @@ declare const createPageNumberType: ({
|
|
|
611
616
|
formatType,
|
|
612
617
|
separator,
|
|
613
618
|
chapStyle
|
|
614
|
-
}:
|
|
619
|
+
}: PageNumberTypeAttributes) => XmlComponent;
|
|
615
620
|
//#endregion
|
|
616
621
|
//#region src/file/document/body/section-properties/properties/page-size.d.ts
|
|
617
622
|
declare const PageOrientation: {
|
|
618
623
|
readonly PORTRAIT: "portrait";
|
|
619
624
|
readonly LANDSCAPE: "landscape";
|
|
620
625
|
};
|
|
621
|
-
interface
|
|
626
|
+
interface PageSizeAttributes {
|
|
622
627
|
readonly width: number | values_d_exports.PositiveUniversalMeasure;
|
|
623
628
|
readonly height: number | values_d_exports.PositiveUniversalMeasure;
|
|
624
629
|
readonly orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
|
|
@@ -629,7 +634,7 @@ declare const createPageSize: ({
|
|
|
629
634
|
height,
|
|
630
635
|
orientation,
|
|
631
636
|
code
|
|
632
|
-
}:
|
|
637
|
+
}: PageSizeAttributes) => XmlComponent;
|
|
633
638
|
//#endregion
|
|
634
639
|
//#region src/file/document/body/section-properties/properties/page-text-direction.d.ts
|
|
635
640
|
declare const PageTextDirectionType: {
|
|
@@ -651,26 +656,26 @@ declare const SectionType: {
|
|
|
651
656
|
declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => XmlComponent;
|
|
652
657
|
//#endregion
|
|
653
658
|
//#region src/file/document/body/section-properties/section-properties.d.ts
|
|
654
|
-
interface
|
|
659
|
+
interface HeaderFooterGroup<T> {
|
|
655
660
|
readonly default?: T;
|
|
656
661
|
readonly first?: T;
|
|
657
662
|
readonly even?: T;
|
|
658
663
|
}
|
|
659
|
-
interface
|
|
664
|
+
interface SectionPropertiesOptionsBase {
|
|
660
665
|
readonly page?: {
|
|
661
|
-
readonly size?: Partial<
|
|
662
|
-
readonly margin?:
|
|
663
|
-
readonly pageNumbers?:
|
|
664
|
-
readonly borders?:
|
|
666
|
+
readonly size?: Partial<PageSizeAttributes>;
|
|
667
|
+
readonly margin?: PageMarginAttributes;
|
|
668
|
+
readonly pageNumbers?: PageNumberTypeAttributes;
|
|
669
|
+
readonly borders?: PageBordersOptions;
|
|
665
670
|
readonly textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
|
|
666
671
|
};
|
|
667
|
-
readonly grid?: Partial<
|
|
668
|
-
readonly headerWrapperGroup?:
|
|
669
|
-
readonly footerWrapperGroup?:
|
|
670
|
-
readonly lineNumbers?:
|
|
672
|
+
readonly grid?: Partial<DocGridAttributesProperties>;
|
|
673
|
+
readonly headerWrapperGroup?: HeaderFooterGroup<HeaderWrapper>;
|
|
674
|
+
readonly footerWrapperGroup?: HeaderFooterGroup<FooterWrapper>;
|
|
675
|
+
readonly lineNumbers?: LineNumberAttributes;
|
|
671
676
|
readonly titlePage?: boolean;
|
|
672
677
|
readonly verticalAlign?: SectionVerticalAlign;
|
|
673
|
-
readonly column?:
|
|
678
|
+
readonly column?: ColumnsAttributes;
|
|
674
679
|
readonly type?: (typeof SectionType)[keyof typeof SectionType];
|
|
675
680
|
readonly noEndnote?: boolean;
|
|
676
681
|
readonly formProtection?: boolean;
|
|
@@ -684,10 +689,10 @@ interface ISectionPropertiesOptionsBase {
|
|
|
684
689
|
readonly endnotePr?: EndnotePropertiesOptions;
|
|
685
690
|
readonly printerSettingsId?: string;
|
|
686
691
|
}
|
|
687
|
-
type ISectionPropertiesChangeOptions =
|
|
692
|
+
type ISectionPropertiesChangeOptions = ChangedAttributesProperties & SectionPropertiesOptionsBase;
|
|
688
693
|
type ISectionPropertiesOptions = {
|
|
689
694
|
readonly revision?: ISectionPropertiesChangeOptions;
|
|
690
|
-
} &
|
|
695
|
+
} & SectionPropertiesOptionsBase;
|
|
691
696
|
declare const sectionMarginDefaults: {
|
|
692
697
|
TOP: number;
|
|
693
698
|
RIGHT: number;
|
|
@@ -756,7 +761,7 @@ declare class Body extends XmlComponent {
|
|
|
756
761
|
private readonly sections;
|
|
757
762
|
constructor();
|
|
758
763
|
addSection(options: ISectionPropertiesOptions): void;
|
|
759
|
-
prepForXml(context:
|
|
764
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
760
765
|
push(component: BaseXmlComponent | string): void;
|
|
761
766
|
private createSectionParagraph;
|
|
762
767
|
}
|
|
@@ -767,7 +772,7 @@ declare const HeaderFooterReferenceType: {
|
|
|
767
772
|
readonly FIRST: "first";
|
|
768
773
|
readonly EVEN: "even";
|
|
769
774
|
};
|
|
770
|
-
interface
|
|
775
|
+
interface HeaderFooterReferenceOptions {
|
|
771
776
|
readonly type?: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
|
772
777
|
readonly id?: number;
|
|
773
778
|
}
|
|
@@ -775,46 +780,33 @@ declare const HeaderFooterType: {
|
|
|
775
780
|
readonly FOOTER: "w:footerReference";
|
|
776
781
|
readonly HEADER: "w:headerReference";
|
|
777
782
|
};
|
|
778
|
-
declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options:
|
|
783
|
+
declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: HeaderFooterReferenceOptions) => XmlComponent;
|
|
779
784
|
//#endregion
|
|
780
785
|
//#region src/file/document/document-background/document-background.d.ts
|
|
781
|
-
|
|
782
|
-
readonly color?: string;
|
|
783
|
-
readonly themeColor?: string;
|
|
784
|
-
readonly themeShade?: string;
|
|
785
|
-
readonly themeTint?: string;
|
|
786
|
-
}> {
|
|
787
|
-
protected readonly xmlKeys: {
|
|
788
|
-
color: string;
|
|
789
|
-
themeColor: string;
|
|
790
|
-
themeShade: string;
|
|
791
|
-
themeTint: string;
|
|
792
|
-
};
|
|
793
|
-
}
|
|
794
|
-
interface IBackgroundImageOptions {
|
|
786
|
+
interface BackgroundImageOptions {
|
|
795
787
|
readonly data: DataType;
|
|
796
788
|
readonly type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
|
|
797
789
|
}
|
|
798
|
-
interface
|
|
790
|
+
interface DocumentBackgroundOptions {
|
|
799
791
|
readonly color?: string;
|
|
800
792
|
readonly themeColor?: string;
|
|
801
793
|
readonly themeShade?: string;
|
|
802
794
|
readonly themeTint?: string;
|
|
803
|
-
readonly image?:
|
|
795
|
+
readonly image?: BackgroundImageOptions;
|
|
804
796
|
}
|
|
805
797
|
declare class DocumentBackground extends XmlComponent {
|
|
806
798
|
private readonly imageData?;
|
|
807
|
-
constructor(options:
|
|
808
|
-
prepForXml(context:
|
|
799
|
+
constructor(options: DocumentBackgroundOptions);
|
|
800
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
809
801
|
}
|
|
810
802
|
//#endregion
|
|
811
803
|
//#region src/file/document/document.d.ts
|
|
812
|
-
interface
|
|
813
|
-
readonly background?:
|
|
804
|
+
interface DocumentOptions {
|
|
805
|
+
readonly background?: DocumentBackgroundOptions;
|
|
814
806
|
}
|
|
815
807
|
declare class Document extends XmlComponent {
|
|
816
808
|
private readonly body;
|
|
817
|
-
constructor(options:
|
|
809
|
+
constructor(options: DocumentOptions);
|
|
818
810
|
add(item: FileChild | ConcreteHyperlink): Document;
|
|
819
811
|
get Body(): Body;
|
|
820
812
|
}
|
|
@@ -826,13 +818,6 @@ declare class Endnotes extends XmlComponent {
|
|
|
826
818
|
}
|
|
827
819
|
//#endregion
|
|
828
820
|
//#region src/file/footnotes/footnote/run/reference-run.d.ts
|
|
829
|
-
declare class FootNoteReferenceRunAttributes extends XmlAttributeComponent<{
|
|
830
|
-
readonly id: number;
|
|
831
|
-
}> {
|
|
832
|
-
protected readonly xmlKeys: {
|
|
833
|
-
id: string;
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
821
|
declare class FootnoteReference extends XmlComponent {
|
|
837
822
|
constructor(id: number);
|
|
838
823
|
}
|
|
@@ -846,7 +831,7 @@ declare class StyleLevel {
|
|
|
846
831
|
readonly level: number;
|
|
847
832
|
constructor(styleName: string, level: number);
|
|
848
833
|
}
|
|
849
|
-
interface
|
|
834
|
+
interface TableOfContentsOptions {
|
|
850
835
|
readonly captionLabel?: string;
|
|
851
836
|
readonly entriesFromBookmark?: string;
|
|
852
837
|
readonly captionLabelIncludingNumbers?: string;
|
|
@@ -868,7 +853,7 @@ interface ITableOfContentsOptions {
|
|
|
868
853
|
//#region src/file/table-of-contents/field-instruction.d.ts
|
|
869
854
|
declare class FieldInstruction extends XmlComponent {
|
|
870
855
|
private readonly properties;
|
|
871
|
-
constructor(properties?:
|
|
856
|
+
constructor(properties?: TableOfContentsOptions);
|
|
872
857
|
}
|
|
873
858
|
//#endregion
|
|
874
859
|
//#region src/file/paragraph/run/empty-children.d.ts
|
|
@@ -925,7 +910,7 @@ declare class LastRenderedPageBreak extends EmptyElement {
|
|
|
925
910
|
}
|
|
926
911
|
//#endregion
|
|
927
912
|
//#region src/file/shading/shading.d.ts
|
|
928
|
-
interface
|
|
913
|
+
interface ShadingAttributesProperties {
|
|
929
914
|
readonly fill?: string;
|
|
930
915
|
readonly color?: string;
|
|
931
916
|
readonly type?: (typeof ShadingType)[keyof typeof ShadingType];
|
|
@@ -946,7 +931,18 @@ declare const createShading: ({
|
|
|
946
931
|
themeFill,
|
|
947
932
|
themeFillTint,
|
|
948
933
|
themeFillShade
|
|
949
|
-
}:
|
|
934
|
+
}: ShadingAttributesProperties) => XmlComponent;
|
|
935
|
+
declare const buildShadingObj: ({
|
|
936
|
+
fill,
|
|
937
|
+
color,
|
|
938
|
+
type,
|
|
939
|
+
themeColor,
|
|
940
|
+
themeTint,
|
|
941
|
+
themeShade,
|
|
942
|
+
themeFill,
|
|
943
|
+
themeFillTint,
|
|
944
|
+
themeFillShade
|
|
945
|
+
}: ShadingAttributesProperties) => IXmlableObject;
|
|
950
946
|
declare const ShadingType: {
|
|
951
947
|
readonly CLEAR: "clear";
|
|
952
948
|
readonly DIAGONAL_CROSS: "diagCross";
|
|
@@ -1013,6 +1009,7 @@ declare const EmphasisMarkType: {
|
|
|
1013
1009
|
};
|
|
1014
1010
|
declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
|
|
1015
1011
|
declare const createDotEmphasisMark: () => XmlComponent;
|
|
1012
|
+
declare const buildEmphasisMarkObj: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => IXmlableObject;
|
|
1016
1013
|
//#endregion
|
|
1017
1014
|
//#region src/file/paragraph/run/formatting.d.ts
|
|
1018
1015
|
interface ColorOptions {
|
|
@@ -1023,14 +1020,14 @@ interface ColorOptions {
|
|
|
1023
1020
|
}
|
|
1024
1021
|
//#endregion
|
|
1025
1022
|
//#region src/file/paragraph/run/language.d.ts
|
|
1026
|
-
interface
|
|
1023
|
+
interface LanguageOptions {
|
|
1027
1024
|
readonly value?: string;
|
|
1028
1025
|
readonly eastAsia?: string;
|
|
1029
1026
|
readonly bidirectional?: string;
|
|
1030
1027
|
}
|
|
1031
1028
|
//#endregion
|
|
1032
1029
|
//#region src/file/paragraph/run/run-fonts.d.ts
|
|
1033
|
-
interface
|
|
1030
|
+
interface FontAttributesProperties {
|
|
1034
1031
|
readonly ascii?: string;
|
|
1035
1032
|
readonly cs?: string;
|
|
1036
1033
|
readonly eastAsia?: string;
|
|
@@ -1041,7 +1038,8 @@ interface IFontAttributesProperties {
|
|
|
1041
1038
|
readonly eastAsiaTheme?: (typeof values_d_exports.ThemeFont)[keyof typeof values_d_exports.ThemeFont];
|
|
1042
1039
|
readonly cstheme?: (typeof values_d_exports.ThemeFont)[keyof typeof values_d_exports.ThemeFont];
|
|
1043
1040
|
}
|
|
1044
|
-
declare const createRunFonts: (nameOrAttrs: string |
|
|
1041
|
+
declare const createRunFonts: (nameOrAttrs: string | FontAttributesProperties, hint?: string) => XmlComponent;
|
|
1042
|
+
declare const buildRunFontsObj: (nameOrAttrs: string | FontAttributesProperties, hint?: string) => IXmlableObject;
|
|
1045
1043
|
//#endregion
|
|
1046
1044
|
//#region src/file/paragraph/run/underline.d.ts
|
|
1047
1045
|
declare const UnderlineType: {
|
|
@@ -1065,9 +1063,10 @@ declare const UnderlineType: {
|
|
|
1065
1063
|
readonly NONE: "none";
|
|
1066
1064
|
};
|
|
1067
1065
|
declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string, themeColor?: (typeof values_d_exports.ThemeColor)[keyof typeof values_d_exports.ThemeColor], themeTint?: string, themeShade?: string) => XmlComponent;
|
|
1066
|
+
declare const buildUnderlineObj: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string, themeColor?: (typeof values_d_exports.ThemeColor)[keyof typeof values_d_exports.ThemeColor], themeTint?: string, themeShade?: string) => IXmlableObject;
|
|
1068
1067
|
//#endregion
|
|
1069
1068
|
//#region src/file/paragraph/run/properties.d.ts
|
|
1070
|
-
interface
|
|
1069
|
+
interface RunFontReference {
|
|
1071
1070
|
readonly name: string;
|
|
1072
1071
|
readonly hint?: string;
|
|
1073
1072
|
}
|
|
@@ -1125,16 +1124,16 @@ interface RunStylePropertiesOptions {
|
|
|
1125
1124
|
readonly doubleStrike?: boolean;
|
|
1126
1125
|
readonly subScript?: boolean;
|
|
1127
1126
|
readonly superScript?: boolean;
|
|
1128
|
-
readonly font?: string |
|
|
1127
|
+
readonly font?: string | RunFontReference | FontAttributesProperties;
|
|
1129
1128
|
readonly highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
|
|
1130
1129
|
readonly highlightComplexScript?: boolean | string;
|
|
1131
1130
|
readonly characterSpacing?: number;
|
|
1132
|
-
readonly shading?:
|
|
1131
|
+
readonly shading?: ShadingAttributesProperties;
|
|
1133
1132
|
readonly emboss?: boolean;
|
|
1134
1133
|
readonly imprint?: boolean;
|
|
1135
1134
|
readonly revision?: IRunPropertiesChangeOptions;
|
|
1136
|
-
readonly language?:
|
|
1137
|
-
readonly border?:
|
|
1135
|
+
readonly language?: LanguageOptions;
|
|
1136
|
+
readonly border?: BorderOptions;
|
|
1138
1137
|
readonly snapToGrid?: boolean;
|
|
1139
1138
|
readonly vanish?: boolean;
|
|
1140
1139
|
readonly specVanish?: boolean;
|
|
@@ -1147,16 +1146,16 @@ interface RunStylePropertiesOptions {
|
|
|
1147
1146
|
readonly complexScript?: boolean;
|
|
1148
1147
|
readonly eastAsianLayout?: EastAsianLayoutOptions;
|
|
1149
1148
|
}
|
|
1150
|
-
type
|
|
1149
|
+
type RunPropertiesOptions = {
|
|
1151
1150
|
readonly style?: string;
|
|
1152
1151
|
} & RunStylePropertiesOptions;
|
|
1153
|
-
type IRunPropertiesChangeOptions = {} &
|
|
1152
|
+
type IRunPropertiesChangeOptions = {} & RunPropertiesOptions & ChangedAttributesProperties;
|
|
1154
1153
|
type IParagraphRunPropertiesOptions = {
|
|
1155
|
-
readonly insertion?:
|
|
1156
|
-
readonly deletion?:
|
|
1157
|
-
} &
|
|
1154
|
+
readonly insertion?: ChangedAttributesProperties;
|
|
1155
|
+
readonly deletion?: ChangedAttributesProperties;
|
|
1156
|
+
} & RunPropertiesOptions;
|
|
1158
1157
|
declare class RunProperties extends IgnoreIfEmptyXmlComponent {
|
|
1159
|
-
constructor(options?:
|
|
1158
|
+
constructor(options?: RunPropertiesOptions);
|
|
1160
1159
|
push(item: XmlComponent): void;
|
|
1161
1160
|
}
|
|
1162
1161
|
declare class ParagraphRunProperties extends RunProperties {
|
|
@@ -1165,16 +1164,16 @@ declare class ParagraphRunProperties extends RunProperties {
|
|
|
1165
1164
|
declare class RunPropertiesChange extends XmlComponent {
|
|
1166
1165
|
constructor(options: IRunPropertiesChangeOptions);
|
|
1167
1166
|
}
|
|
1168
|
-
declare function buildRunProperties(options?:
|
|
1167
|
+
declare function buildRunProperties(options?: RunPropertiesOptions): IXmlableObject | undefined;
|
|
1169
1168
|
//#endregion
|
|
1170
1169
|
//#region src/file/paragraph/run/run.d.ts
|
|
1171
|
-
interface
|
|
1172
|
-
readonly children?: readonly (FieldInstruction | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | string | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | BaseXmlComponent)[];
|
|
1170
|
+
interface RunOptionsBase {
|
|
1171
|
+
readonly children?: readonly (FieldInstruction | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | string | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | BaseXmlComponent | IXmlableObject)[];
|
|
1173
1172
|
readonly break?: number;
|
|
1174
1173
|
readonly text?: string;
|
|
1175
1174
|
}
|
|
1176
|
-
type
|
|
1177
|
-
type IParagraphRunOptions =
|
|
1175
|
+
type RunOptions = RunOptionsBase & RunPropertiesOptions;
|
|
1176
|
+
type IParagraphRunOptions = RunOptionsBase & IParagraphRunPropertiesOptions;
|
|
1178
1177
|
declare const PageNumber: {
|
|
1179
1178
|
readonly CURRENT: "CURRENT";
|
|
1180
1179
|
readonly TOTAL_PAGES: "TOTAL_PAGES";
|
|
@@ -1184,20 +1183,21 @@ declare const PageNumber: {
|
|
|
1184
1183
|
declare class Run extends BaseXmlComponent {
|
|
1185
1184
|
private readonly options;
|
|
1186
1185
|
protected extraChildren: (BaseXmlComponent | IXmlableObject)[];
|
|
1187
|
-
|
|
1188
|
-
|
|
1186
|
+
private readonly _prebuilt;
|
|
1187
|
+
constructor(options: RunOptions);
|
|
1188
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
1189
1189
|
}
|
|
1190
1190
|
//#endregion
|
|
1191
1191
|
//#region src/file/paragraph/run/text-run.d.ts
|
|
1192
1192
|
declare class TextRun extends Run {
|
|
1193
|
-
constructor(options:
|
|
1193
|
+
constructor(options: RunOptions | string);
|
|
1194
1194
|
}
|
|
1195
1195
|
//#endregion
|
|
1196
1196
|
//#region src/file/paragraph/run/symbol-run.d.ts
|
|
1197
1197
|
type ISymbolRunOptions = {
|
|
1198
1198
|
readonly char: string;
|
|
1199
1199
|
readonly symbolfont?: string;
|
|
1200
|
-
} &
|
|
1200
|
+
} & RunOptions;
|
|
1201
1201
|
declare class SymbolRun extends Run {
|
|
1202
1202
|
constructor(options: ISymbolRunOptions | string);
|
|
1203
1203
|
}
|
|
@@ -1245,32 +1245,32 @@ declare const TextWrappingSide: {
|
|
|
1245
1245
|
readonly RIGHT: "right";
|
|
1246
1246
|
readonly LARGEST: "largest";
|
|
1247
1247
|
};
|
|
1248
|
-
interface
|
|
1248
|
+
interface TextWrapping {
|
|
1249
1249
|
readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
1250
1250
|
readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
1251
|
-
readonly margins?:
|
|
1251
|
+
readonly margins?: Distance;
|
|
1252
1252
|
}
|
|
1253
1253
|
//#endregion
|
|
1254
1254
|
//#region src/file/drawing/text-wrap/wrap-none.d.ts
|
|
1255
1255
|
declare const createWrapNone: () => XmlComponent;
|
|
1256
1256
|
//#endregion
|
|
1257
1257
|
//#region src/file/drawing/text-wrap/wrap-square.d.ts
|
|
1258
|
-
declare const createWrapSquare: (textWrapping:
|
|
1258
|
+
declare const createWrapSquare: (textWrapping: TextWrapping, margins?: Margins) => XmlComponent;
|
|
1259
1259
|
//#endregion
|
|
1260
1260
|
//#region src/file/drawing/text-wrap/wrap-tight.d.ts
|
|
1261
|
-
declare const createWrapTight: (textWrapping:
|
|
1261
|
+
declare const createWrapTight: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
|
|
1262
1262
|
x: number;
|
|
1263
1263
|
y: number;
|
|
1264
1264
|
}) => XmlComponent;
|
|
1265
1265
|
//#endregion
|
|
1266
1266
|
//#region src/file/drawing/text-wrap/wrap-through.d.ts
|
|
1267
|
-
declare const createWrapThrough: (textWrapping:
|
|
1267
|
+
declare const createWrapThrough: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
|
|
1268
1268
|
x: number;
|
|
1269
1269
|
y: number;
|
|
1270
1270
|
}) => XmlComponent;
|
|
1271
1271
|
//#endregion
|
|
1272
1272
|
//#region src/file/drawing/text-wrap/wrap-top-and-bottom.d.ts
|
|
1273
|
-
declare const createWrapTopAndBottom: (margins?:
|
|
1273
|
+
declare const createWrapTopAndBottom: (margins?: Margins) => XmlComponent;
|
|
1274
1274
|
//#endregion
|
|
1275
1275
|
//#region src/file/drawing/floating/floating-position.d.ts
|
|
1276
1276
|
declare const HorizontalPositionRelativeFrom: {
|
|
@@ -1293,31 +1293,31 @@ declare const VerticalPositionRelativeFrom: {
|
|
|
1293
1293
|
readonly PARAGRAPH: "paragraph";
|
|
1294
1294
|
readonly TOP_MARGIN: "topMargin";
|
|
1295
1295
|
};
|
|
1296
|
-
interface
|
|
1296
|
+
interface HorizontalPositionOptions {
|
|
1297
1297
|
readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
1298
1298
|
readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
1299
1299
|
readonly offset?: number;
|
|
1300
1300
|
}
|
|
1301
|
-
interface
|
|
1301
|
+
interface VerticalPositionOptions {
|
|
1302
1302
|
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
1303
1303
|
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
1304
1304
|
readonly offset?: number;
|
|
1305
1305
|
}
|
|
1306
|
-
interface
|
|
1306
|
+
interface Margins {
|
|
1307
1307
|
readonly left?: number;
|
|
1308
1308
|
readonly bottom?: number;
|
|
1309
1309
|
readonly top?: number;
|
|
1310
1310
|
readonly right?: number;
|
|
1311
1311
|
}
|
|
1312
|
-
interface
|
|
1313
|
-
readonly horizontalPosition:
|
|
1314
|
-
readonly verticalPosition:
|
|
1312
|
+
interface Floating {
|
|
1313
|
+
readonly horizontalPosition: HorizontalPositionOptions;
|
|
1314
|
+
readonly verticalPosition: VerticalPositionOptions;
|
|
1315
1315
|
readonly allowOverlap?: boolean;
|
|
1316
1316
|
readonly lockAnchor?: boolean;
|
|
1317
1317
|
readonly behindDocument?: boolean;
|
|
1318
1318
|
readonly layoutInCell?: boolean;
|
|
1319
|
-
readonly margins?:
|
|
1320
|
-
readonly wrap?:
|
|
1319
|
+
readonly margins?: Margins;
|
|
1320
|
+
readonly wrap?: TextWrapping;
|
|
1321
1321
|
readonly zIndex?: number;
|
|
1322
1322
|
}
|
|
1323
1323
|
//#endregion
|
|
@@ -1329,24 +1329,24 @@ declare const createHorizontalPosition: ({
|
|
|
1329
1329
|
relative,
|
|
1330
1330
|
align,
|
|
1331
1331
|
offset
|
|
1332
|
-
}:
|
|
1332
|
+
}: HorizontalPositionOptions) => XmlComponent;
|
|
1333
1333
|
//#endregion
|
|
1334
1334
|
//#region src/file/drawing/floating/vertical-position.d.ts
|
|
1335
1335
|
declare const createVerticalPosition: ({
|
|
1336
1336
|
relative,
|
|
1337
1337
|
align,
|
|
1338
1338
|
offset
|
|
1339
|
-
}:
|
|
1339
|
+
}: VerticalPositionOptions) => XmlComponent;
|
|
1340
1340
|
//#endregion
|
|
1341
1341
|
//#region src/file/drawing/drawing.d.ts
|
|
1342
|
-
interface
|
|
1342
|
+
interface Distance {
|
|
1343
1343
|
readonly distT?: number;
|
|
1344
1344
|
readonly distB?: number;
|
|
1345
1345
|
readonly distL?: number;
|
|
1346
1346
|
readonly distR?: number;
|
|
1347
1347
|
}
|
|
1348
|
-
interface
|
|
1349
|
-
readonly floating?:
|
|
1348
|
+
interface DrawingOptions {
|
|
1349
|
+
readonly floating?: Floating;
|
|
1350
1350
|
readonly docProperties?: DocPropertiesOptions;
|
|
1351
1351
|
readonly outline?: OutlineOptions;
|
|
1352
1352
|
readonly fill?: FillOptions;
|
|
@@ -1355,13 +1355,13 @@ interface IDrawingOptions {
|
|
|
1355
1355
|
readonly tile?: TileOptions;
|
|
1356
1356
|
}
|
|
1357
1357
|
declare class Drawing extends XmlComponent {
|
|
1358
|
-
constructor(imageData: IExtendedMediaData, drawingOptions?:
|
|
1358
|
+
constructor(imageData: IExtendedMediaData, drawingOptions?: DrawingOptions);
|
|
1359
1359
|
}
|
|
1360
1360
|
//#endregion
|
|
1361
1361
|
//#region src/file/paragraph/run/image-run.d.ts
|
|
1362
1362
|
interface CoreImageOptions {
|
|
1363
|
-
readonly transformation:
|
|
1364
|
-
readonly floating?:
|
|
1363
|
+
readonly transformation: MediaTransformation;
|
|
1364
|
+
readonly floating?: Floating;
|
|
1365
1365
|
readonly altText?: DocPropertiesOptions;
|
|
1366
1366
|
readonly outline?: OutlineOptions;
|
|
1367
1367
|
readonly fill?: FillOptions;
|
|
@@ -1383,11 +1383,11 @@ type IImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
|
|
|
1383
1383
|
declare class ImageRun extends Run {
|
|
1384
1384
|
private readonly imageData;
|
|
1385
1385
|
constructor(options: IImageOptions);
|
|
1386
|
-
prepForXml(context:
|
|
1386
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
1387
1387
|
}
|
|
1388
1388
|
//#endregion
|
|
1389
1389
|
//#region src/file/paragraph/run/chart-run.d.ts
|
|
1390
|
-
interface
|
|
1390
|
+
interface ChartOptions {
|
|
1391
1391
|
readonly type: "column" | "bar" | "line" | "pie" | "area" | "scatter";
|
|
1392
1392
|
readonly data: {
|
|
1393
1393
|
readonly categories: readonly string[];
|
|
@@ -1396,8 +1396,8 @@ interface IChartOptions {
|
|
|
1396
1396
|
values: readonly number[];
|
|
1397
1397
|
}[];
|
|
1398
1398
|
};
|
|
1399
|
-
readonly transformation:
|
|
1400
|
-
readonly floating?:
|
|
1399
|
+
readonly transformation: MediaTransformation;
|
|
1400
|
+
readonly floating?: Floating;
|
|
1401
1401
|
readonly altText?: DocPropertiesOptions;
|
|
1402
1402
|
readonly title?: string;
|
|
1403
1403
|
readonly showLegend?: boolean;
|
|
@@ -1406,22 +1406,22 @@ interface IChartOptions {
|
|
|
1406
1406
|
declare class ChartRun extends Run {
|
|
1407
1407
|
private readonly chartOptions;
|
|
1408
1408
|
private readonly chartKey;
|
|
1409
|
-
constructor(options:
|
|
1410
|
-
prepForXml(context:
|
|
1409
|
+
constructor(options: ChartOptions);
|
|
1410
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
1411
1411
|
private hashChartData;
|
|
1412
1412
|
}
|
|
1413
1413
|
//#endregion
|
|
1414
1414
|
//#region src/file/paragraph/run/smartart-run.d.ts
|
|
1415
|
-
interface
|
|
1415
|
+
interface SmartArtNode {
|
|
1416
1416
|
readonly text: string;
|
|
1417
|
-
readonly children?: readonly
|
|
1417
|
+
readonly children?: readonly SmartArtNode[];
|
|
1418
1418
|
}
|
|
1419
|
-
interface
|
|
1419
|
+
interface SmartArtOptions {
|
|
1420
1420
|
readonly data: {
|
|
1421
|
-
readonly nodes: readonly
|
|
1421
|
+
readonly nodes: readonly SmartArtNode[];
|
|
1422
1422
|
};
|
|
1423
|
-
readonly transformation:
|
|
1424
|
-
readonly floating?:
|
|
1423
|
+
readonly transformation: MediaTransformation;
|
|
1424
|
+
readonly floating?: Floating;
|
|
1425
1425
|
readonly altText?: DocPropertiesOptions;
|
|
1426
1426
|
readonly layout?: string;
|
|
1427
1427
|
readonly style?: string;
|
|
@@ -1430,15 +1430,15 @@ interface ISmartArtOptions {
|
|
|
1430
1430
|
declare class SmartArtRun extends Run {
|
|
1431
1431
|
private readonly smartArtOptions;
|
|
1432
1432
|
private readonly smartArtKey;
|
|
1433
|
-
constructor(options:
|
|
1434
|
-
prepForXml(context:
|
|
1433
|
+
constructor(options: SmartArtOptions);
|
|
1434
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
1435
1435
|
private hashSmartArtData;
|
|
1436
1436
|
}
|
|
1437
1437
|
//#endregion
|
|
1438
1438
|
//#region src/file/paragraph/run/wps-shape-run.d.ts
|
|
1439
1439
|
interface CoreShapeOptions {
|
|
1440
|
-
readonly transformation:
|
|
1441
|
-
readonly floating?:
|
|
1440
|
+
readonly transformation: MediaTransformation;
|
|
1441
|
+
readonly floating?: Floating;
|
|
1442
1442
|
readonly altText?: DocPropertiesOptions;
|
|
1443
1443
|
}
|
|
1444
1444
|
type IWpsShapeOptions = WpsShapeCoreOptions & {
|
|
@@ -1452,8 +1452,8 @@ declare class WpsShapeRun extends Run {
|
|
|
1452
1452
|
//#region src/file/paragraph/run/wpg-group-run.d.ts
|
|
1453
1453
|
interface CoreGroupOptions {
|
|
1454
1454
|
readonly children: readonly IGroupChildMediaData[];
|
|
1455
|
-
readonly transformation:
|
|
1456
|
-
readonly floating?:
|
|
1455
|
+
readonly transformation: MediaTransformation;
|
|
1456
|
+
readonly floating?: Floating;
|
|
1457
1457
|
readonly altText?: DocPropertiesOptions;
|
|
1458
1458
|
}
|
|
1459
1459
|
type IWpgGroupOptions = {
|
|
@@ -1463,7 +1463,7 @@ declare class WpgGroupRun extends Run {
|
|
|
1463
1463
|
private readonly wpgGroupData;
|
|
1464
1464
|
private readonly mediaDatas;
|
|
1465
1465
|
constructor(options: IWpgGroupOptions);
|
|
1466
|
-
prepForXml(context:
|
|
1466
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
1467
1467
|
}
|
|
1468
1468
|
//#endregion
|
|
1469
1469
|
//#region src/file/paragraph/run/sequential-identifier.d.ts
|
|
@@ -1486,7 +1486,7 @@ declare class FootNotes extends XmlComponent {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
//#endregion
|
|
1488
1488
|
//#region src/file/alt-chunk/alt-chunk.d.ts
|
|
1489
|
-
interface
|
|
1489
|
+
interface AltChunkOptions {
|
|
1490
1490
|
readonly data: Uint8Array | string;
|
|
1491
1491
|
readonly contentType: "text/html" | "application/rtf" | "text/plain";
|
|
1492
1492
|
readonly extension: "html" | "rtf" | "txt";
|
|
@@ -1495,12 +1495,12 @@ interface IAltChunkOptions {
|
|
|
1495
1495
|
declare class AltChunk extends XmlComponent implements FileChild {
|
|
1496
1496
|
readonly fileChild: symbol;
|
|
1497
1497
|
private readonly options;
|
|
1498
|
-
constructor(options:
|
|
1499
|
-
prepForXml(context:
|
|
1498
|
+
constructor(options: AltChunkOptions);
|
|
1499
|
+
prepForXml(context: Context): IXmlableObject;
|
|
1500
1500
|
}
|
|
1501
1501
|
//#endregion
|
|
1502
1502
|
//#region src/file/alt-chunk/alt-chunk-collection.d.ts
|
|
1503
|
-
interface
|
|
1503
|
+
interface AltChunkData {
|
|
1504
1504
|
readonly key: string;
|
|
1505
1505
|
readonly data: Uint8Array;
|
|
1506
1506
|
readonly path: string;
|
|
@@ -1510,26 +1510,26 @@ interface IAltChunkData {
|
|
|
1510
1510
|
declare class AltChunkCollection {
|
|
1511
1511
|
private readonly map;
|
|
1512
1512
|
constructor();
|
|
1513
|
-
addAltChunk(key: string, data:
|
|
1514
|
-
get Array(): readonly
|
|
1513
|
+
addAltChunk(key: string, data: AltChunkData): void;
|
|
1514
|
+
get Array(): readonly AltChunkData[];
|
|
1515
1515
|
}
|
|
1516
1516
|
//#endregion
|
|
1517
1517
|
//#region src/file/checkbox/checkbox-util.d.ts
|
|
1518
|
-
interface
|
|
1518
|
+
interface CheckboxSymbolProperties {
|
|
1519
1519
|
readonly value?: string;
|
|
1520
1520
|
readonly font?: string;
|
|
1521
1521
|
}
|
|
1522
|
-
interface
|
|
1522
|
+
interface CheckboxSymbolOptions {
|
|
1523
1523
|
readonly alias?: string;
|
|
1524
1524
|
readonly checked?: boolean;
|
|
1525
|
-
readonly checkedState?:
|
|
1526
|
-
readonly uncheckedState?:
|
|
1525
|
+
readonly checkedState?: CheckboxSymbolProperties;
|
|
1526
|
+
readonly uncheckedState?: CheckboxSymbolProperties;
|
|
1527
1527
|
}
|
|
1528
1528
|
declare class CheckBoxUtil extends XmlComponent {
|
|
1529
1529
|
private readonly DEFAULT_UNCHECKED_SYMBOL;
|
|
1530
1530
|
private readonly DEFAULT_CHECKED_SYMBOL;
|
|
1531
1531
|
private readonly DEFAULT_FONT;
|
|
1532
|
-
constructor(options?:
|
|
1532
|
+
constructor(options?: CheckboxSymbolOptions);
|
|
1533
1533
|
}
|
|
1534
1534
|
//#endregion
|
|
1535
1535
|
//#region src/file/checkbox/checkbox-symbol.d.ts
|
|
@@ -1542,7 +1542,7 @@ declare class CheckBox extends XmlComponent {
|
|
|
1542
1542
|
private readonly DEFAULT_UNCHECKED_SYMBOL;
|
|
1543
1543
|
private readonly DEFAULT_CHECKED_SYMBOL;
|
|
1544
1544
|
private readonly DEFAULT_FONT;
|
|
1545
|
-
constructor(options?:
|
|
1545
|
+
constructor(options?: CheckboxSymbolOptions);
|
|
1546
1546
|
}
|
|
1547
1547
|
//#endregion
|
|
1548
1548
|
//#region src/file/permissions/perm-start.d.ts
|
|
@@ -1556,7 +1556,7 @@ declare const EditGroupType: {
|
|
|
1556
1556
|
readonly CURRENT: "current";
|
|
1557
1557
|
};
|
|
1558
1558
|
type EditGroup = (typeof EditGroupType)[keyof typeof EditGroupType];
|
|
1559
|
-
interface
|
|
1559
|
+
interface PermStartOptions {
|
|
1560
1560
|
readonly id: string | number;
|
|
1561
1561
|
readonly edGroup?: EditGroup;
|
|
1562
1562
|
readonly ed?: string;
|
|
@@ -1564,7 +1564,7 @@ interface IPermStartOptions {
|
|
|
1564
1564
|
readonly colLast?: number;
|
|
1565
1565
|
}
|
|
1566
1566
|
declare class PermStart extends XmlComponent {
|
|
1567
|
-
constructor(options:
|
|
1567
|
+
constructor(options: PermStartOptions);
|
|
1568
1568
|
}
|
|
1569
1569
|
declare class PermEnd extends XmlComponent {
|
|
1570
1570
|
constructor(id: string | number);
|
|
@@ -1584,7 +1584,7 @@ declare class TableOfContents extends XmlComponent implements FileChild {
|
|
|
1584
1584
|
cachedEntries,
|
|
1585
1585
|
beginDirty,
|
|
1586
1586
|
...properties
|
|
1587
|
-
}?:
|
|
1587
|
+
}?: TableOfContentsOptions & {
|
|
1588
1588
|
readonly contentChildren?: readonly (BaseXmlComponent | string)[];
|
|
1589
1589
|
readonly cachedEntries?: readonly ToCEntry[];
|
|
1590
1590
|
readonly beginDirty?: boolean;
|
|
@@ -1676,24 +1676,24 @@ declare class StructuredDocumentTagContent extends XmlComponent {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
//#endregion
|
|
1678
1678
|
//#region src/file/sdt/sdt.d.ts
|
|
1679
|
-
interface
|
|
1679
|
+
interface SdtRunOptions {
|
|
1680
1680
|
readonly properties: SdtPropertiesOptions;
|
|
1681
1681
|
readonly children?: readonly BaseXmlComponent[];
|
|
1682
1682
|
}
|
|
1683
1683
|
declare class StructuredDocumentTagRun extends XmlComponent {
|
|
1684
|
-
constructor(options:
|
|
1684
|
+
constructor(options: SdtRunOptions);
|
|
1685
1685
|
}
|
|
1686
|
-
interface
|
|
1686
|
+
interface SdtBlockOptions {
|
|
1687
1687
|
readonly properties: SdtPropertiesOptions;
|
|
1688
1688
|
readonly children?: readonly FileChild[];
|
|
1689
1689
|
}
|
|
1690
1690
|
declare class StructuredDocumentTagBlock extends XmlComponent implements FileChild {
|
|
1691
1691
|
readonly fileChild: symbol;
|
|
1692
|
-
constructor(options:
|
|
1692
|
+
constructor(options: SdtBlockOptions);
|
|
1693
1693
|
}
|
|
1694
1694
|
//#endregion
|
|
1695
1695
|
//#region src/file/table/grid.d.ts
|
|
1696
|
-
interface
|
|
1696
|
+
interface TableGridChangeOptions {
|
|
1697
1697
|
readonly id: number;
|
|
1698
1698
|
readonly columnWidths: readonly number[] | readonly values_d_exports.PositiveUniversalMeasure[];
|
|
1699
1699
|
}
|
|
@@ -1703,7 +1703,7 @@ declare const CellSpacingType: {
|
|
|
1703
1703
|
readonly DXA: "dxa";
|
|
1704
1704
|
readonly NIL: "nil";
|
|
1705
1705
|
};
|
|
1706
|
-
interface
|
|
1706
|
+
interface TableCellSpacingProperties {
|
|
1707
1707
|
readonly value: number | values_d_exports.Percentage | values_d_exports.UniversalMeasure;
|
|
1708
1708
|
readonly type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
|
|
1709
1709
|
}
|
|
@@ -1715,31 +1715,36 @@ declare const WidthType: {
|
|
|
1715
1715
|
readonly NIL: "nil";
|
|
1716
1716
|
readonly PERCENTAGE: "pct";
|
|
1717
1717
|
};
|
|
1718
|
-
interface
|
|
1718
|
+
interface TableWidthProperties {
|
|
1719
1719
|
readonly size: number | values_d_exports.Percentage | values_d_exports.UniversalMeasure;
|
|
1720
1720
|
readonly type?: (typeof WidthType)[keyof typeof WidthType];
|
|
1721
1721
|
}
|
|
1722
|
+
declare const buildTableWidthObj: (name: string, {
|
|
1723
|
+
type,
|
|
1724
|
+
size
|
|
1725
|
+
}: TableWidthProperties) => IXmlableObject;
|
|
1722
1726
|
declare const createTableWidthElement: (name: string, {
|
|
1723
1727
|
type,
|
|
1724
1728
|
size
|
|
1725
|
-
}:
|
|
1729
|
+
}: TableWidthProperties) => XmlComponent;
|
|
1726
1730
|
//#endregion
|
|
1727
1731
|
//#region src/file/table/table-properties/table-borders.d.ts
|
|
1728
|
-
interface
|
|
1729
|
-
readonly top?:
|
|
1730
|
-
readonly bottom?:
|
|
1731
|
-
readonly left?:
|
|
1732
|
-
readonly right?:
|
|
1733
|
-
readonly insideHorizontal?:
|
|
1734
|
-
readonly insideVertical?:
|
|
1735
|
-
}
|
|
1732
|
+
interface TableBordersOptions {
|
|
1733
|
+
readonly top?: BorderOptions;
|
|
1734
|
+
readonly bottom?: BorderOptions;
|
|
1735
|
+
readonly left?: BorderOptions;
|
|
1736
|
+
readonly right?: BorderOptions;
|
|
1737
|
+
readonly insideHorizontal?: BorderOptions;
|
|
1738
|
+
readonly insideVertical?: BorderOptions;
|
|
1739
|
+
}
|
|
1740
|
+
declare function buildTableBorders(options: TableBordersOptions): IXmlableObject;
|
|
1736
1741
|
declare class TableBorders extends XmlComponent {
|
|
1737
|
-
static readonly NONE:
|
|
1738
|
-
constructor(options:
|
|
1742
|
+
static readonly NONE: TableBordersOptions;
|
|
1743
|
+
constructor(options: TableBordersOptions);
|
|
1739
1744
|
}
|
|
1740
1745
|
//#endregion
|
|
1741
1746
|
//#region src/file/table/table-properties/table-cell-margin.d.ts
|
|
1742
|
-
interface
|
|
1747
|
+
interface TableCellMarginOptions {
|
|
1743
1748
|
readonly marginUnitType?: (typeof WidthType)[keyof typeof WidthType];
|
|
1744
1749
|
readonly top?: number;
|
|
1745
1750
|
readonly bottom?: number;
|
|
@@ -1772,7 +1777,7 @@ declare const OverlapType: {
|
|
|
1772
1777
|
readonly NEVER: "never";
|
|
1773
1778
|
readonly OVERLAP: "overlap";
|
|
1774
1779
|
};
|
|
1775
|
-
interface
|
|
1780
|
+
interface TableFloatOptions {
|
|
1776
1781
|
readonly horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
|
1777
1782
|
readonly absoluteHorizontalPosition?: number | values_d_exports.UniversalMeasure;
|
|
1778
1783
|
readonly relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
|
|
@@ -1796,7 +1801,19 @@ declare const createTableFloatProperties: ({
|
|
|
1796
1801
|
topFromText,
|
|
1797
1802
|
leftFromText,
|
|
1798
1803
|
rightFromText
|
|
1799
|
-
}:
|
|
1804
|
+
}: TableFloatOptions) => XmlComponent;
|
|
1805
|
+
declare const buildTableFloatPropertiesObj: ({
|
|
1806
|
+
horizontalAnchor,
|
|
1807
|
+
verticalAnchor,
|
|
1808
|
+
absoluteHorizontalPosition,
|
|
1809
|
+
relativeHorizontalPosition,
|
|
1810
|
+
absoluteVerticalPosition,
|
|
1811
|
+
relativeVerticalPosition,
|
|
1812
|
+
bottomFromText,
|
|
1813
|
+
topFromText,
|
|
1814
|
+
leftFromText,
|
|
1815
|
+
rightFromText
|
|
1816
|
+
}: TableFloatOptions) => IXmlableObject;
|
|
1800
1817
|
declare const createTableOverlap: (overlap: (typeof OverlapType)[keyof typeof OverlapType]) => XmlComponent;
|
|
1801
1818
|
//#endregion
|
|
1802
1819
|
//#region src/file/table/table-properties/table-layout.d.ts
|
|
@@ -1807,7 +1824,7 @@ declare const TableLayoutType: {
|
|
|
1807
1824
|
declare const createTableLayout: (type: (typeof TableLayoutType)[keyof typeof TableLayoutType]) => XmlComponent;
|
|
1808
1825
|
//#endregion
|
|
1809
1826
|
//#region src/file/table/table-properties/table-look.d.ts
|
|
1810
|
-
interface
|
|
1827
|
+
interface TableLookOptions {
|
|
1811
1828
|
readonly firstRow?: boolean;
|
|
1812
1829
|
readonly lastRow?: boolean;
|
|
1813
1830
|
readonly firstColumn?: boolean;
|
|
@@ -1822,61 +1839,62 @@ declare const createTableLook: ({
|
|
|
1822
1839
|
lastColumn,
|
|
1823
1840
|
noHBand,
|
|
1824
1841
|
noVBand
|
|
1825
|
-
}:
|
|
1842
|
+
}: TableLookOptions) => XmlComponent;
|
|
1826
1843
|
//#endregion
|
|
1827
1844
|
//#region src/file/table/table-properties/table-properties.d.ts
|
|
1828
|
-
interface
|
|
1829
|
-
readonly width?:
|
|
1830
|
-
readonly indent?:
|
|
1845
|
+
interface TablePropertiesOptionsBase {
|
|
1846
|
+
readonly width?: TableWidthProperties;
|
|
1847
|
+
readonly indent?: TableWidthProperties;
|
|
1831
1848
|
readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
1832
|
-
readonly borders?:
|
|
1833
|
-
readonly float?:
|
|
1834
|
-
readonly shading?:
|
|
1849
|
+
readonly borders?: TableBordersOptions;
|
|
1850
|
+
readonly float?: TableFloatOptions;
|
|
1851
|
+
readonly shading?: ShadingAttributesProperties;
|
|
1835
1852
|
readonly style?: string;
|
|
1836
1853
|
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1837
|
-
readonly cellMargin?:
|
|
1854
|
+
readonly cellMargin?: TableCellMarginOptions;
|
|
1838
1855
|
readonly visuallyRightToLeft?: boolean;
|
|
1839
|
-
readonly tableLook?:
|
|
1840
|
-
readonly cellSpacing?:
|
|
1856
|
+
readonly tableLook?: TableLookOptions;
|
|
1857
|
+
readonly cellSpacing?: TableCellSpacingProperties;
|
|
1841
1858
|
readonly styleRowBandSize?: number;
|
|
1842
1859
|
readonly styleColBandSize?: number;
|
|
1843
1860
|
readonly caption?: string;
|
|
1844
1861
|
readonly description?: string;
|
|
1845
1862
|
}
|
|
1846
|
-
type ITablePropertiesChangeOptions = ITablePropertiesOptions &
|
|
1863
|
+
type ITablePropertiesChangeOptions = ITablePropertiesOptions & ChangedAttributesProperties;
|
|
1847
1864
|
type ITablePropertiesOptions = {
|
|
1848
1865
|
readonly revision?: ITablePropertiesChangeOptions;
|
|
1849
1866
|
readonly includeIfEmpty?: boolean;
|
|
1850
|
-
} &
|
|
1867
|
+
} & TablePropertiesOptionsBase;
|
|
1868
|
+
declare function buildTableProperties(options: ITablePropertiesOptions): IXmlableObject | undefined;
|
|
1851
1869
|
declare class TableProperties extends IgnoreIfEmptyXmlComponent {
|
|
1852
1870
|
constructor(options: ITablePropertiesOptions);
|
|
1853
1871
|
}
|
|
1854
1872
|
//#endregion
|
|
1855
1873
|
//#region src/file/table/table-properties/table-property-exceptions.d.ts
|
|
1856
|
-
interface
|
|
1857
|
-
readonly width?:
|
|
1858
|
-
readonly indent?:
|
|
1874
|
+
interface TablePropertyExOptions {
|
|
1875
|
+
readonly width?: TableWidthProperties;
|
|
1876
|
+
readonly indent?: TableWidthProperties;
|
|
1859
1877
|
readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
1860
|
-
readonly borders?:
|
|
1861
|
-
readonly shading?:
|
|
1878
|
+
readonly borders?: TableBordersOptions;
|
|
1879
|
+
readonly shading?: ShadingAttributesProperties;
|
|
1862
1880
|
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1863
|
-
readonly cellMargin?:
|
|
1864
|
-
readonly tableLook?:
|
|
1865
|
-
readonly cellSpacing?:
|
|
1881
|
+
readonly cellMargin?: TableCellMarginOptions;
|
|
1882
|
+
readonly tableLook?: TableLookOptions;
|
|
1883
|
+
readonly cellSpacing?: TableCellSpacingProperties;
|
|
1866
1884
|
}
|
|
1867
1885
|
declare class TablePropertyExceptions extends IgnoreIfEmptyXmlComponent {
|
|
1868
|
-
constructor(options:
|
|
1886
|
+
constructor(options: TablePropertyExOptions);
|
|
1869
1887
|
}
|
|
1870
1888
|
//#endregion
|
|
1871
1889
|
//#region src/file/sub-doc/sub-doc.d.ts
|
|
1872
|
-
interface
|
|
1890
|
+
interface SubDocOptions {
|
|
1873
1891
|
readonly data: Uint8Array | string;
|
|
1874
1892
|
}
|
|
1875
1893
|
declare class SubDoc extends XmlComponent implements FileChild {
|
|
1876
1894
|
readonly fileChild: symbol;
|
|
1877
1895
|
private readonly options;
|
|
1878
|
-
constructor(options:
|
|
1879
|
-
prepForXml(context:
|
|
1896
|
+
constructor(options: SubDocOptions);
|
|
1897
|
+
prepForXml(context: Context): IXmlableObject;
|
|
1880
1898
|
}
|
|
1881
1899
|
//#endregion
|
|
1882
1900
|
//#region src/file/textbox/types.d.ts
|
|
@@ -1911,15 +1929,15 @@ interface VmlShapeStyle {
|
|
|
1911
1929
|
//#endregion
|
|
1912
1930
|
//#region src/file/section-child.d.ts
|
|
1913
1931
|
type SectionChild = BaseXmlComponent | {
|
|
1914
|
-
paragraph: string |
|
|
1932
|
+
paragraph: string | ParagraphOptions;
|
|
1915
1933
|
} | {
|
|
1916
|
-
table:
|
|
1934
|
+
table: TableOptions;
|
|
1917
1935
|
} | {
|
|
1918
|
-
toc:
|
|
1936
|
+
toc: TableOfContentsOptions & {
|
|
1919
1937
|
readonly alias?: string;
|
|
1920
1938
|
};
|
|
1921
1939
|
} | {
|
|
1922
|
-
textbox: Omit<
|
|
1940
|
+
textbox: Omit<ParagraphOptions, "style" | "children"> & {
|
|
1923
1941
|
readonly style?: VmlShapeStyle;
|
|
1924
1942
|
readonly children?: readonly SectionChild[];
|
|
1925
1943
|
};
|
|
@@ -1929,29 +1947,29 @@ type SectionChild = BaseXmlComponent | {
|
|
|
1929
1947
|
readonly children?: readonly SectionChild[];
|
|
1930
1948
|
};
|
|
1931
1949
|
} | {
|
|
1932
|
-
altChunk:
|
|
1950
|
+
altChunk: AltChunkOptions;
|
|
1933
1951
|
} | {
|
|
1934
|
-
subDoc:
|
|
1952
|
+
subDoc: SubDocOptions;
|
|
1935
1953
|
};
|
|
1936
1954
|
//#endregion
|
|
1937
1955
|
//#region src/file/track-revision/track-revision-components/inserted-text-run.d.ts
|
|
1938
|
-
type IInsertedRunOptions =
|
|
1956
|
+
type IInsertedRunOptions = ChangedAttributesProperties & RunOptions;
|
|
1939
1957
|
declare class InsertedTextRun extends XmlComponent {
|
|
1940
1958
|
constructor(options: IInsertedRunOptions);
|
|
1941
1959
|
}
|
|
1942
1960
|
//#endregion
|
|
1943
1961
|
//#region src/file/track-revision/track-revision-components/deleted-text-run.d.ts
|
|
1944
|
-
type IDeletedRunOptions =
|
|
1962
|
+
type IDeletedRunOptions = RunOptions & ChangedAttributesProperties;
|
|
1945
1963
|
declare class DeletedTextRun extends XmlComponent {
|
|
1946
1964
|
protected readonly deletedTextRunWrapper: DeletedTextRunWrapper;
|
|
1947
1965
|
constructor(options: IDeletedRunOptions);
|
|
1948
1966
|
}
|
|
1949
1967
|
declare class DeletedTextRunWrapper extends XmlComponent {
|
|
1950
|
-
constructor(options:
|
|
1968
|
+
constructor(options: RunOptions);
|
|
1951
1969
|
}
|
|
1952
1970
|
//#endregion
|
|
1953
1971
|
//#region src/file/track-revision/track-revision-components/moved-text-run.d.ts
|
|
1954
|
-
type IMovedRunOptions =
|
|
1972
|
+
type IMovedRunOptions = RunOptions & ChangedAttributesProperties;
|
|
1955
1973
|
declare class MovedFromTextRun extends XmlComponent {
|
|
1956
1974
|
constructor(options: IMovedRunOptions);
|
|
1957
1975
|
}
|
|
@@ -1960,23 +1978,27 @@ declare class MovedToTextRun extends XmlComponent {
|
|
|
1960
1978
|
}
|
|
1961
1979
|
//#endregion
|
|
1962
1980
|
//#region src/file/track-revision/track-revision-components/inserted-table-row.d.ts
|
|
1981
|
+
declare function buildInsertedTableRowObj(options: ChangedAttributesProperties): IXmlableObject;
|
|
1963
1982
|
declare class InsertedTableRow extends XmlComponent {
|
|
1964
|
-
constructor(options:
|
|
1983
|
+
constructor(options: ChangedAttributesProperties);
|
|
1965
1984
|
}
|
|
1966
1985
|
//#endregion
|
|
1967
1986
|
//#region src/file/track-revision/track-revision-components/deleted-table-row.d.ts
|
|
1987
|
+
declare function buildDeletedTableRowObj(options: ChangedAttributesProperties): IXmlableObject;
|
|
1968
1988
|
declare class DeletedTableRow extends XmlComponent {
|
|
1969
|
-
constructor(options:
|
|
1989
|
+
constructor(options: ChangedAttributesProperties);
|
|
1970
1990
|
}
|
|
1971
1991
|
//#endregion
|
|
1972
1992
|
//#region src/file/track-revision/track-revision-components/inserted-table-cell.d.ts
|
|
1993
|
+
declare function buildInsertedTableCellObj(options: ChangedAttributesProperties): IXmlableObject;
|
|
1973
1994
|
declare class InsertedTableCell extends XmlComponent {
|
|
1974
|
-
constructor(options:
|
|
1995
|
+
constructor(options: ChangedAttributesProperties);
|
|
1975
1996
|
}
|
|
1976
1997
|
//#endregion
|
|
1977
1998
|
//#region src/file/track-revision/track-revision-components/deleted-table-cell.d.ts
|
|
1999
|
+
declare function buildDeletedTableCellObj(options: ChangedAttributesProperties): IXmlableObject;
|
|
1978
2000
|
declare class DeletedTableCell extends XmlComponent {
|
|
1979
|
-
constructor(options:
|
|
2001
|
+
constructor(options: ChangedAttributesProperties);
|
|
1980
2002
|
}
|
|
1981
2003
|
//#endregion
|
|
1982
2004
|
//#region src/file/track-revision/track-revision-components/cell-merge.d.ts
|
|
@@ -1984,19 +2006,11 @@ declare const VerticalMergeRevisionType: {
|
|
|
1984
2006
|
readonly CONTINUE: "cont";
|
|
1985
2007
|
readonly RESTART: "rest";
|
|
1986
2008
|
};
|
|
1987
|
-
type ICellMergeAttributes =
|
|
2009
|
+
type ICellMergeAttributes = ChangedAttributesProperties & {
|
|
1988
2010
|
readonly verticalMerge?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
|
|
1989
2011
|
readonly verticalMergeOriginal?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
|
|
1990
2012
|
};
|
|
1991
|
-
declare
|
|
1992
|
-
protected readonly xmlKeys: {
|
|
1993
|
-
author: string;
|
|
1994
|
-
date: string;
|
|
1995
|
-
id: string;
|
|
1996
|
-
verticalMerge: string;
|
|
1997
|
-
verticalMergeOriginal: string;
|
|
1998
|
-
};
|
|
1999
|
-
}
|
|
2013
|
+
declare function buildCellMergeObj(options: ICellMergeAttributes): IXmlableObject;
|
|
2000
2014
|
declare class CellMerge extends XmlComponent {
|
|
2001
2015
|
constructor(options: ICellMergeAttributes);
|
|
2002
2016
|
}
|
|
@@ -2014,7 +2028,7 @@ interface CnfStyleOptions {
|
|
|
2014
2028
|
readonly val: string;
|
|
2015
2029
|
readonly changed?: boolean;
|
|
2016
2030
|
}
|
|
2017
|
-
interface
|
|
2031
|
+
interface TableRowPropertiesOptionsBase {
|
|
2018
2032
|
readonly cnfStyle?: CnfStyleOptions;
|
|
2019
2033
|
readonly cantSplit?: boolean;
|
|
2020
2034
|
readonly tableHeader?: boolean;
|
|
@@ -2022,22 +2036,24 @@ interface ITableRowPropertiesOptionsBase {
|
|
|
2022
2036
|
readonly value: number | values_d_exports.PositiveUniversalMeasure;
|
|
2023
2037
|
readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
|
|
2024
2038
|
};
|
|
2025
|
-
readonly cellSpacing?:
|
|
2039
|
+
readonly cellSpacing?: TableCellSpacingProperties;
|
|
2026
2040
|
readonly divId?: number;
|
|
2027
2041
|
readonly gridBefore?: number;
|
|
2028
2042
|
readonly gridAfter?: number;
|
|
2029
|
-
readonly widthBefore?:
|
|
2030
|
-
readonly widthAfter?:
|
|
2043
|
+
readonly widthBefore?: TableWidthProperties;
|
|
2044
|
+
readonly widthAfter?: TableWidthProperties;
|
|
2031
2045
|
readonly rowAlignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
2032
2046
|
readonly hidden?: boolean;
|
|
2033
2047
|
}
|
|
2034
|
-
type ITableRowPropertiesOptions =
|
|
2035
|
-
readonly insertion?:
|
|
2036
|
-
readonly deletion?:
|
|
2048
|
+
type ITableRowPropertiesOptions = TableRowPropertiesOptionsBase & {
|
|
2049
|
+
readonly insertion?: ChangedAttributesProperties;
|
|
2050
|
+
readonly deletion?: ChangedAttributesProperties;
|
|
2037
2051
|
readonly revision?: ITableRowPropertiesChangeOptions;
|
|
2038
2052
|
readonly includeIfEmpty?: boolean;
|
|
2039
2053
|
};
|
|
2040
|
-
type ITableRowPropertiesChangeOptions =
|
|
2054
|
+
type ITableRowPropertiesChangeOptions = TableRowPropertiesOptionsBase & ChangedAttributesProperties;
|
|
2055
|
+
declare function buildTableRowPropertiesChangeObj(options: ITableRowPropertiesChangeOptions): IXmlableObject;
|
|
2056
|
+
declare function buildTableRowProperties(options: ITableRowPropertiesOptions): IXmlableObject | undefined;
|
|
2041
2057
|
declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
|
|
2042
2058
|
constructor(options: ITableRowPropertiesOptions);
|
|
2043
2059
|
}
|
|
@@ -2046,17 +2062,19 @@ declare class TableRowPropertiesChange extends XmlComponent {
|
|
|
2046
2062
|
}
|
|
2047
2063
|
//#endregion
|
|
2048
2064
|
//#region src/file/table/table-cell/table-cell-components.d.ts
|
|
2049
|
-
interface
|
|
2050
|
-
readonly top?:
|
|
2051
|
-
readonly start?:
|
|
2052
|
-
readonly left?:
|
|
2053
|
-
readonly bottom?:
|
|
2054
|
-
readonly end?:
|
|
2055
|
-
readonly right?:
|
|
2056
|
-
}
|
|
2065
|
+
interface TableCellBordersOptions {
|
|
2066
|
+
readonly top?: BorderOptions;
|
|
2067
|
+
readonly start?: BorderOptions;
|
|
2068
|
+
readonly left?: BorderOptions;
|
|
2069
|
+
readonly bottom?: BorderOptions;
|
|
2070
|
+
readonly end?: BorderOptions;
|
|
2071
|
+
readonly right?: BorderOptions;
|
|
2072
|
+
}
|
|
2073
|
+
declare function buildTableCellBorders(options: TableCellBordersOptions): IXmlableObject | undefined;
|
|
2057
2074
|
declare class TableCellBorders extends IgnoreIfEmptyXmlComponent {
|
|
2058
|
-
constructor(options:
|
|
2075
|
+
constructor(options: TableCellBordersOptions);
|
|
2059
2076
|
}
|
|
2077
|
+
declare function buildGridSpan(value: number): IXmlableObject;
|
|
2060
2078
|
declare class GridSpan extends XmlComponent {
|
|
2061
2079
|
constructor(value: number);
|
|
2062
2080
|
}
|
|
@@ -2064,6 +2082,7 @@ declare const VerticalMergeType: {
|
|
|
2064
2082
|
readonly CONTINUE: "continue";
|
|
2065
2083
|
readonly RESTART: "restart";
|
|
2066
2084
|
};
|
|
2085
|
+
declare function buildVerticalMerge(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]): IXmlableObject;
|
|
2067
2086
|
declare class VerticalMerge extends XmlComponent {
|
|
2068
2087
|
constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
|
|
2069
2088
|
}
|
|
@@ -2072,82 +2091,83 @@ declare const TextDirection: {
|
|
|
2072
2091
|
readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
|
|
2073
2092
|
readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
|
|
2074
2093
|
};
|
|
2094
|
+
declare function buildTextDirection(value: (typeof TextDirection)[keyof typeof TextDirection]): IXmlableObject;
|
|
2075
2095
|
declare class TDirection extends XmlComponent {
|
|
2076
2096
|
constructor(value: (typeof TextDirection)[keyof typeof TextDirection]);
|
|
2077
2097
|
}
|
|
2078
2098
|
//#endregion
|
|
2079
2099
|
//#region src/file/table/table-cell/table-cell-properties.d.ts
|
|
2080
|
-
interface
|
|
2100
|
+
interface TableCellPropertiesOptionsBase {
|
|
2081
2101
|
readonly cnfStyle?: CnfStyleOptions;
|
|
2082
|
-
readonly shading?:
|
|
2083
|
-
readonly margins?:
|
|
2102
|
+
readonly shading?: ShadingAttributesProperties;
|
|
2103
|
+
readonly margins?: TableCellMarginOptions;
|
|
2084
2104
|
readonly verticalAlign?: TableVerticalAlign;
|
|
2085
2105
|
readonly textDirection?: (typeof TextDirection)[keyof typeof TextDirection];
|
|
2086
2106
|
readonly verticalMerge?: (typeof VerticalMergeType)[keyof typeof VerticalMergeType];
|
|
2087
|
-
readonly width?:
|
|
2107
|
+
readonly width?: TableWidthProperties;
|
|
2088
2108
|
readonly columnSpan?: number;
|
|
2089
2109
|
readonly rowSpan?: number;
|
|
2090
|
-
readonly borders?:
|
|
2110
|
+
readonly borders?: TableCellBordersOptions;
|
|
2091
2111
|
readonly horizontalMerge?: "continue" | "restart";
|
|
2092
2112
|
readonly noWrap?: boolean;
|
|
2093
2113
|
readonly fitText?: boolean;
|
|
2094
2114
|
readonly hideMark?: boolean;
|
|
2095
2115
|
readonly headers?: string[];
|
|
2096
|
-
readonly insertion?:
|
|
2097
|
-
readonly deletion?:
|
|
2116
|
+
readonly insertion?: ChangedAttributesProperties;
|
|
2117
|
+
readonly deletion?: ChangedAttributesProperties;
|
|
2098
2118
|
readonly cellMerge?: ICellMergeAttributes;
|
|
2099
2119
|
}
|
|
2100
2120
|
type ITableCellPropertiesOptions = {
|
|
2101
2121
|
readonly revision?: ITableCellPropertiesChangeOptions;
|
|
2102
2122
|
readonly includeIfEmpty?: boolean;
|
|
2103
|
-
} &
|
|
2104
|
-
type ITableCellPropertiesChangeOptions =
|
|
2123
|
+
} & TableCellPropertiesOptionsBase;
|
|
2124
|
+
type ITableCellPropertiesChangeOptions = TableCellPropertiesOptionsBase & ChangedAttributesProperties;
|
|
2105
2125
|
//#endregion
|
|
2106
2126
|
//#region src/file/table/table-cell/table-cell.d.ts
|
|
2107
|
-
type
|
|
2127
|
+
type TableCellOptions = {
|
|
2108
2128
|
readonly children: readonly (SectionChild | StructuredDocumentTagCell)[];
|
|
2109
2129
|
} & ITableCellPropertiesOptions;
|
|
2110
2130
|
declare class TableCell extends BaseXmlComponent {
|
|
2111
|
-
readonly options:
|
|
2112
|
-
constructor(options:
|
|
2113
|
-
prepForXml(context:
|
|
2131
|
+
readonly options: TableCellOptions;
|
|
2132
|
+
constructor(options: TableCellOptions);
|
|
2133
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
2114
2134
|
}
|
|
2115
2135
|
//#endregion
|
|
2116
2136
|
//#region src/file/table/table-row/table-row.d.ts
|
|
2117
|
-
type
|
|
2118
|
-
readonly children: readonly (TableCell | StructuredDocumentTagCell | StructuredDocumentTagRow |
|
|
2119
|
-
readonly propertyExceptions?:
|
|
2137
|
+
type TableRowOptions = {
|
|
2138
|
+
readonly children: readonly (TableCell | StructuredDocumentTagCell | StructuredDocumentTagRow | TableCellOptions)[];
|
|
2139
|
+
readonly propertyExceptions?: TablePropertyExOptions;
|
|
2120
2140
|
} & ITableRowPropertiesOptions;
|
|
2121
2141
|
declare class TableRow extends BaseXmlComponent {
|
|
2122
2142
|
private readonly options;
|
|
2123
2143
|
private extraCells;
|
|
2124
2144
|
private readonly coercedChildren;
|
|
2125
|
-
constructor(options:
|
|
2145
|
+
constructor(options: TableRowOptions);
|
|
2126
2146
|
get CellCount(): number;
|
|
2127
2147
|
get cells(): readonly TableCell[];
|
|
2128
2148
|
addCellToColumnIndex(cell: TableCell, columnIndex: number): void;
|
|
2129
2149
|
rootIndexToColumnIndex(rootIndex: number): number;
|
|
2130
2150
|
columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
|
|
2131
|
-
prepForXml(context:
|
|
2151
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
2132
2152
|
private findInsertIndex;
|
|
2133
2153
|
}
|
|
2134
2154
|
//#endregion
|
|
2135
2155
|
//#region src/file/table/table.d.ts
|
|
2136
|
-
interface
|
|
2137
|
-
readonly rows: readonly (TableRow | StructuredDocumentTagRow |
|
|
2138
|
-
readonly width?:
|
|
2156
|
+
interface TableOptions {
|
|
2157
|
+
readonly rows: readonly (TableRow | StructuredDocumentTagRow | TableRowOptions)[];
|
|
2158
|
+
readonly width?: TableWidthProperties;
|
|
2139
2159
|
readonly columnWidths?: readonly number[];
|
|
2140
|
-
readonly columnWidthsRevision?:
|
|
2141
|
-
readonly margins?:
|
|
2142
|
-
readonly indent?:
|
|
2143
|
-
readonly float?:
|
|
2160
|
+
readonly columnWidthsRevision?: TableGridChangeOptions;
|
|
2161
|
+
readonly margins?: TableCellMarginOptions;
|
|
2162
|
+
readonly indent?: TableWidthProperties;
|
|
2163
|
+
readonly float?: TableFloatOptions;
|
|
2144
2164
|
readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
2145
2165
|
readonly style?: string;
|
|
2146
|
-
readonly borders?:
|
|
2166
|
+
readonly borders?: TableBordersOptions;
|
|
2147
2167
|
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
2148
2168
|
readonly visuallyRightToLeft?: boolean;
|
|
2149
|
-
readonly tableLook?:
|
|
2150
|
-
readonly cellSpacing?:
|
|
2169
|
+
readonly tableLook?: TableLookOptions;
|
|
2170
|
+
readonly cellSpacing?: TableCellSpacingProperties;
|
|
2151
2171
|
readonly styleRowBandSize?: number;
|
|
2152
2172
|
readonly styleColBandSize?: number;
|
|
2153
2173
|
readonly caption?: string;
|
|
@@ -2159,43 +2179,43 @@ declare class Table extends BaseXmlComponent implements FileChild {
|
|
|
2159
2179
|
private readonly options;
|
|
2160
2180
|
private readonly columnWidths;
|
|
2161
2181
|
private readonly rows;
|
|
2162
|
-
constructor(options:
|
|
2163
|
-
prepForXml(context:
|
|
2182
|
+
constructor(options: TableOptions);
|
|
2183
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
2164
2184
|
}
|
|
2165
2185
|
//#endregion
|
|
2166
2186
|
//#region src/file/sdt/sdt-cell.d.ts
|
|
2167
|
-
interface
|
|
2187
|
+
interface SdtCellOptions {
|
|
2168
2188
|
readonly properties: SdtPropertiesOptions;
|
|
2169
2189
|
readonly children?: readonly TableCell[];
|
|
2170
2190
|
}
|
|
2171
2191
|
declare class StructuredDocumentTagCell extends XmlComponent {
|
|
2172
|
-
readonly options:
|
|
2173
|
-
constructor(sdtOptions:
|
|
2192
|
+
readonly options: TableCellOptions;
|
|
2193
|
+
constructor(sdtOptions: SdtCellOptions);
|
|
2174
2194
|
}
|
|
2175
2195
|
//#endregion
|
|
2176
2196
|
//#region src/file/sdt/sdt-row.d.ts
|
|
2177
|
-
interface
|
|
2197
|
+
interface SdtRowOptions {
|
|
2178
2198
|
readonly properties: SdtPropertiesOptions;
|
|
2179
2199
|
readonly children?: readonly TableRow[];
|
|
2180
2200
|
}
|
|
2181
2201
|
declare class StructuredDocumentTagRow extends XmlComponent {
|
|
2182
2202
|
private readonly rows;
|
|
2183
|
-
constructor(options:
|
|
2203
|
+
constructor(options: SdtRowOptions);
|
|
2184
2204
|
get CellCount(): number;
|
|
2185
2205
|
get cells(): readonly TableCell[];
|
|
2186
2206
|
addCellToColumnIndex(cell: TableCell, columnIndex: number): void;
|
|
2187
2207
|
}
|
|
2188
2208
|
//#endregion
|
|
2189
2209
|
//#region src/file/sub-doc/sub-doc-collection.d.ts
|
|
2190
|
-
interface
|
|
2210
|
+
interface SubDocData {
|
|
2191
2211
|
readonly data: Uint8Array;
|
|
2192
2212
|
readonly path: string;
|
|
2193
2213
|
}
|
|
2194
2214
|
declare class SubDocCollection {
|
|
2195
2215
|
private readonly map;
|
|
2196
2216
|
constructor();
|
|
2197
|
-
addSubDoc(key: string, data:
|
|
2198
|
-
get Array(): readonly
|
|
2217
|
+
addSubDoc(key: string, data: SubDocData): void;
|
|
2218
|
+
get Array(): readonly SubDocData[];
|
|
2199
2219
|
}
|
|
2200
2220
|
//#endregion
|
|
2201
2221
|
//#region src/file/paragraph/formatting/break.d.ts
|
|
@@ -2214,31 +2234,36 @@ declare const HyperlinkType: {
|
|
|
2214
2234
|
readonly INTERNAL: "INTERNAL";
|
|
2215
2235
|
readonly EXTERNAL: "EXTERNAL";
|
|
2216
2236
|
};
|
|
2217
|
-
interface
|
|
2237
|
+
interface InternalHyperlinkOptions {
|
|
2218
2238
|
readonly children: readonly ParagraphChild[];
|
|
2219
2239
|
readonly anchor: string;
|
|
2220
2240
|
readonly tooltip?: string;
|
|
2221
2241
|
}
|
|
2222
|
-
interface
|
|
2242
|
+
interface ExternalHyperlinkOptions {
|
|
2223
2243
|
readonly children: readonly ParagraphChild[];
|
|
2224
2244
|
readonly link: string;
|
|
2225
2245
|
readonly tooltip?: string;
|
|
2226
2246
|
readonly tgtFrame?: string;
|
|
2227
2247
|
}
|
|
2248
|
+
interface ConcreteHyperlinkOptions {
|
|
2249
|
+
readonly anchor?: string;
|
|
2250
|
+
readonly tooltip?: string;
|
|
2251
|
+
readonly tgtFrame?: string;
|
|
2252
|
+
}
|
|
2228
2253
|
declare class ConcreteHyperlink extends XmlComponent {
|
|
2229
2254
|
readonly linkId: string;
|
|
2230
|
-
constructor(children: readonly ParagraphChild[], relationshipId: string,
|
|
2255
|
+
constructor(children: readonly ParagraphChild[], relationshipId: string, options?: ConcreteHyperlinkOptions);
|
|
2231
2256
|
}
|
|
2232
2257
|
declare class InternalHyperlink extends ConcreteHyperlink {
|
|
2233
|
-
constructor(options:
|
|
2258
|
+
constructor(options: InternalHyperlinkOptions);
|
|
2234
2259
|
}
|
|
2235
2260
|
declare class ExternalHyperlink extends XmlComponent {
|
|
2236
|
-
readonly options:
|
|
2237
|
-
constructor(options:
|
|
2261
|
+
readonly options: ExternalHyperlinkOptions;
|
|
2262
|
+
constructor(options: ExternalHyperlinkOptions);
|
|
2238
2263
|
}
|
|
2239
2264
|
//#endregion
|
|
2240
2265
|
//#region src/file/paragraph/links/bookmark.d.ts
|
|
2241
|
-
interface
|
|
2266
|
+
interface BookmarkOptions {
|
|
2242
2267
|
readonly id: string;
|
|
2243
2268
|
readonly children: readonly ParagraphChild[];
|
|
2244
2269
|
}
|
|
@@ -2247,7 +2272,7 @@ declare class Bookmark {
|
|
|
2247
2272
|
readonly start: BookmarkStart;
|
|
2248
2273
|
readonly children: readonly ParagraphChild[];
|
|
2249
2274
|
readonly end: BookmarkEnd;
|
|
2250
|
-
constructor(options:
|
|
2275
|
+
constructor(options: BookmarkOptions);
|
|
2251
2276
|
}
|
|
2252
2277
|
declare class BookmarkStart extends XmlComponent {
|
|
2253
2278
|
constructor(id: string, linkId: number);
|
|
@@ -2272,6 +2297,7 @@ declare class MoveToRangeEnd extends XmlComponent {
|
|
|
2272
2297
|
//#endregion
|
|
2273
2298
|
//#region src/file/paragraph/links/div-id.d.ts
|
|
2274
2299
|
declare const createDivId: (id: number) => XmlComponent;
|
|
2300
|
+
declare const buildDivIdObj: (id: number) => IXmlableObject;
|
|
2275
2301
|
//#endregion
|
|
2276
2302
|
//#region src/file/paragraph/links/numbered-item-ref.d.ts
|
|
2277
2303
|
declare enum NumberedItemReferenceFormat {
|
|
@@ -2280,36 +2306,37 @@ declare enum NumberedItemReferenceFormat {
|
|
|
2280
2306
|
NO_CONTEXT = "no_context",
|
|
2281
2307
|
FULL_CONTEXT = "full_context"
|
|
2282
2308
|
}
|
|
2283
|
-
interface
|
|
2309
|
+
interface NumberedItemReferenceOptions {
|
|
2284
2310
|
readonly hyperlink?: boolean;
|
|
2285
2311
|
readonly referenceFormat?: NumberedItemReferenceFormat;
|
|
2286
2312
|
}
|
|
2287
2313
|
declare class NumberedItemReference extends SimpleField {
|
|
2288
|
-
constructor(bookmarkId: string, cachedValue?: string, options?:
|
|
2314
|
+
constructor(bookmarkId: string, cachedValue?: string, options?: NumberedItemReferenceOptions);
|
|
2289
2315
|
}
|
|
2290
2316
|
//#endregion
|
|
2291
2317
|
//#region src/file/paragraph/links/outline-level.d.ts
|
|
2292
2318
|
declare const createOutlineLevel: (level: number) => XmlComponent;
|
|
2319
|
+
declare const buildOutlineLevelObj: (level: number) => IXmlableObject;
|
|
2293
2320
|
//#endregion
|
|
2294
2321
|
//#region src/file/paragraph/links/pageref.d.ts
|
|
2295
|
-
interface
|
|
2322
|
+
interface PageReferenceOptions {
|
|
2296
2323
|
readonly hyperlink?: boolean;
|
|
2297
2324
|
readonly useRelativePosition?: boolean;
|
|
2298
2325
|
}
|
|
2299
2326
|
declare class PageReference extends Run {
|
|
2300
|
-
constructor(bookmarkId: string, options?:
|
|
2327
|
+
constructor(bookmarkId: string, options?: PageReferenceOptions);
|
|
2301
2328
|
}
|
|
2302
2329
|
//#endregion
|
|
2303
2330
|
//#region src/file/paragraph/links/bidi.d.ts
|
|
2304
|
-
interface
|
|
2331
|
+
interface DirOptions {
|
|
2305
2332
|
readonly children: readonly ParagraphChild[];
|
|
2306
2333
|
readonly val: "ltr" | "rtl";
|
|
2307
2334
|
}
|
|
2308
2335
|
declare class Dir extends XmlComponent {
|
|
2309
|
-
constructor(options:
|
|
2336
|
+
constructor(options: DirOptions);
|
|
2310
2337
|
}
|
|
2311
2338
|
declare class Bdo extends XmlComponent {
|
|
2312
|
-
constructor(options:
|
|
2339
|
+
constructor(options: DirOptions);
|
|
2313
2340
|
}
|
|
2314
2341
|
//#endregion
|
|
2315
2342
|
//#region src/file/paragraph/math/border-box/math-border-box-properties.d.ts
|
|
@@ -2326,12 +2353,12 @@ interface MathBorderBoxPropertiesOptions {
|
|
|
2326
2353
|
declare const createMathBorderBoxProperties: (options: MathBorderBoxPropertiesOptions) => XmlComponent;
|
|
2327
2354
|
//#endregion
|
|
2328
2355
|
//#region src/file/paragraph/math/border-box/math-border-box.d.ts
|
|
2329
|
-
interface
|
|
2356
|
+
interface MathBorderBoxOptions {
|
|
2330
2357
|
readonly properties?: MathBorderBoxPropertiesOptions;
|
|
2331
2358
|
readonly children: readonly MathComponent[];
|
|
2332
2359
|
}
|
|
2333
2360
|
declare class MathBorderBox extends XmlComponent {
|
|
2334
|
-
constructor(options:
|
|
2361
|
+
constructor(options: MathBorderBoxOptions);
|
|
2335
2362
|
}
|
|
2336
2363
|
//#endregion
|
|
2337
2364
|
//#region src/file/paragraph/math/box/math-box-properties.d.ts
|
|
@@ -2344,12 +2371,12 @@ interface MathBoxPropertiesOptions {
|
|
|
2344
2371
|
declare const createMathBoxProperties: (options: MathBoxPropertiesOptions) => XmlComponent;
|
|
2345
2372
|
//#endregion
|
|
2346
2373
|
//#region src/file/paragraph/math/box/math-box.d.ts
|
|
2347
|
-
interface
|
|
2374
|
+
interface MathBoxOptions {
|
|
2348
2375
|
readonly properties?: MathBoxPropertiesOptions;
|
|
2349
2376
|
readonly children: readonly MathComponent[];
|
|
2350
2377
|
}
|
|
2351
2378
|
declare class MathBox extends XmlComponent {
|
|
2352
|
-
constructor(options:
|
|
2379
|
+
constructor(options: MathBoxOptions);
|
|
2353
2380
|
}
|
|
2354
2381
|
//#endregion
|
|
2355
2382
|
//#region src/file/paragraph/math/brackets/math-round-brackets.d.ts
|
|
@@ -2392,12 +2419,12 @@ interface MathEqArrPropertiesOptions {
|
|
|
2392
2419
|
declare const createMathEqArrProperties: (options: MathEqArrPropertiesOptions) => XmlComponent;
|
|
2393
2420
|
//#endregion
|
|
2394
2421
|
//#region src/file/paragraph/math/eq-arr/math-eq-arr.d.ts
|
|
2395
|
-
interface
|
|
2422
|
+
interface MathEqArrOptions {
|
|
2396
2423
|
readonly properties?: MathEqArrPropertiesOptions;
|
|
2397
2424
|
readonly rows: readonly (readonly MathComponent[])[];
|
|
2398
2425
|
}
|
|
2399
2426
|
declare class MathEqArr extends XmlComponent {
|
|
2400
|
-
constructor(options:
|
|
2427
|
+
constructor(options: MathEqArrOptions);
|
|
2401
2428
|
}
|
|
2402
2429
|
//#endregion
|
|
2403
2430
|
//#region src/file/paragraph/math/fraction/math-fraction-properties.d.ts
|
|
@@ -2413,13 +2440,13 @@ interface MathFractionPropertiesOptions {
|
|
|
2413
2440
|
declare const createMathFractionProperties: (options: MathFractionPropertiesOptions) => XmlComponent;
|
|
2414
2441
|
//#endregion
|
|
2415
2442
|
//#region src/file/paragraph/math/fraction/math-fraction.d.ts
|
|
2416
|
-
interface
|
|
2443
|
+
interface MathFractionOptions {
|
|
2417
2444
|
readonly numerator: readonly MathComponent[];
|
|
2418
2445
|
readonly denominator: readonly MathComponent[];
|
|
2419
2446
|
readonly fractionType?: MathFractionPropertiesOptions["fractionType"];
|
|
2420
2447
|
}
|
|
2421
2448
|
declare class MathFraction extends XmlComponent {
|
|
2422
|
-
constructor(options:
|
|
2449
|
+
constructor(options: MathFractionOptions);
|
|
2423
2450
|
}
|
|
2424
2451
|
//#endregion
|
|
2425
2452
|
//#region src/file/paragraph/math/fraction/math-denominator.d.ts
|
|
@@ -2446,13 +2473,13 @@ interface MathFunctionPropertiesOptions {
|
|
|
2446
2473
|
declare const createMathFunctionProperties: (options?: MathFunctionPropertiesOptions) => XmlComponent;
|
|
2447
2474
|
//#endregion
|
|
2448
2475
|
//#region src/file/paragraph/math/function/math-function.d.ts
|
|
2449
|
-
interface
|
|
2476
|
+
interface MathFunctionOptions {
|
|
2450
2477
|
readonly properties?: MathFunctionPropertiesOptions;
|
|
2451
2478
|
readonly children: readonly MathComponent[];
|
|
2452
2479
|
readonly name: readonly MathComponent[];
|
|
2453
2480
|
}
|
|
2454
2481
|
declare class MathFunction extends XmlComponent {
|
|
2455
|
-
constructor(options:
|
|
2482
|
+
constructor(options: MathFunctionOptions);
|
|
2456
2483
|
}
|
|
2457
2484
|
//#endregion
|
|
2458
2485
|
//#region src/file/paragraph/math/function/math-function-name.d.ts
|
|
@@ -2469,12 +2496,12 @@ interface MathGroupChrPropertiesOptions {
|
|
|
2469
2496
|
declare const createMathGroupChrProperties: (options: MathGroupChrPropertiesOptions) => XmlComponent;
|
|
2470
2497
|
//#endregion
|
|
2471
2498
|
//#region src/file/paragraph/math/group-chr/math-group-chr.d.ts
|
|
2472
|
-
interface
|
|
2499
|
+
interface MathGroupChrOptions {
|
|
2473
2500
|
readonly properties?: MathGroupChrPropertiesOptions;
|
|
2474
2501
|
readonly children: readonly MathComponent[];
|
|
2475
2502
|
}
|
|
2476
2503
|
declare class MathGroupChr extends XmlComponent {
|
|
2477
|
-
constructor(options:
|
|
2504
|
+
constructor(options: MathGroupChrOptions);
|
|
2478
2505
|
}
|
|
2479
2506
|
//#endregion
|
|
2480
2507
|
//#region src/file/paragraph/math/math-run-properties.d.ts
|
|
@@ -2512,12 +2539,12 @@ interface MathMatrixPropertiesOptions {
|
|
|
2512
2539
|
declare const createMathMatrixProperties: (options: MathMatrixPropertiesOptions) => XmlComponent;
|
|
2513
2540
|
//#endregion
|
|
2514
2541
|
//#region src/file/paragraph/math/matrix/math-matrix.d.ts
|
|
2515
|
-
interface
|
|
2542
|
+
interface MathMatrixOptions {
|
|
2516
2543
|
readonly properties?: MathMatrixPropertiesOptions;
|
|
2517
2544
|
readonly rows: readonly (readonly MathComponent[])[];
|
|
2518
2545
|
}
|
|
2519
2546
|
declare class MathMatrix extends XmlComponent {
|
|
2520
|
-
constructor(options:
|
|
2547
|
+
constructor(options: MathMatrixOptions);
|
|
2521
2548
|
}
|
|
2522
2549
|
//#endregion
|
|
2523
2550
|
//#region src/file/paragraph/math/n-ary/math-accent-character.d.ts
|
|
@@ -2569,23 +2596,23 @@ declare const createMathSubScriptElement: ({
|
|
|
2569
2596
|
}: MathSubScriptElementOptions) => XmlComponent;
|
|
2570
2597
|
//#endregion
|
|
2571
2598
|
//#region src/file/paragraph/math/n-ary/math-sum.d.ts
|
|
2572
|
-
interface
|
|
2599
|
+
interface MathSumOptions {
|
|
2573
2600
|
readonly children: readonly MathComponent[];
|
|
2574
2601
|
readonly subScript?: readonly MathComponent[];
|
|
2575
2602
|
readonly superScript?: readonly MathComponent[];
|
|
2576
2603
|
}
|
|
2577
2604
|
declare class MathSum extends XmlComponent {
|
|
2578
|
-
constructor(options:
|
|
2605
|
+
constructor(options: MathSumOptions);
|
|
2579
2606
|
}
|
|
2580
2607
|
//#endregion
|
|
2581
2608
|
//#region src/file/paragraph/math/n-ary/math-integral.d.ts
|
|
2582
|
-
interface
|
|
2609
|
+
interface MathIntegralOptions {
|
|
2583
2610
|
readonly children: readonly MathComponent[];
|
|
2584
2611
|
readonly subScript?: readonly MathComponent[];
|
|
2585
2612
|
readonly superScript?: readonly MathComponent[];
|
|
2586
2613
|
}
|
|
2587
2614
|
declare class MathIntegral extends XmlComponent {
|
|
2588
|
-
constructor(options:
|
|
2615
|
+
constructor(options: MathIntegralOptions);
|
|
2589
2616
|
}
|
|
2590
2617
|
//#endregion
|
|
2591
2618
|
//#region src/file/paragraph/math/n-ary/math-super-script.d.ts
|
|
@@ -2608,13 +2635,13 @@ interface MathLimitUpperPropertiesOptions {
|
|
|
2608
2635
|
declare const createMathLimitUpperProperties: (options?: MathLimitUpperPropertiesOptions) => XmlComponent;
|
|
2609
2636
|
//#endregion
|
|
2610
2637
|
//#region src/file/paragraph/math/n-ary/math-limit-upper.d.ts
|
|
2611
|
-
interface
|
|
2638
|
+
interface MathLimitUpperOptions {
|
|
2612
2639
|
readonly properties?: MathLimitUpperPropertiesOptions;
|
|
2613
2640
|
readonly children: readonly MathComponent[];
|
|
2614
2641
|
readonly limit: readonly MathComponent[];
|
|
2615
2642
|
}
|
|
2616
2643
|
declare class MathLimitUpper extends XmlComponent {
|
|
2617
|
-
constructor(options:
|
|
2644
|
+
constructor(options: MathLimitUpperOptions);
|
|
2618
2645
|
}
|
|
2619
2646
|
//#endregion
|
|
2620
2647
|
//#region src/file/paragraph/math/n-ary/math-limit-low-properties.d.ts
|
|
@@ -2624,13 +2651,13 @@ interface MathLimitLowPropertiesOptions {
|
|
|
2624
2651
|
declare const createMathLimitLowProperties: (options?: MathLimitLowPropertiesOptions) => XmlComponent;
|
|
2625
2652
|
//#endregion
|
|
2626
2653
|
//#region src/file/paragraph/math/n-ary/math-limit-lower.d.ts
|
|
2627
|
-
interface
|
|
2654
|
+
interface MathLimitLowerOptions {
|
|
2628
2655
|
readonly properties?: MathLimitLowPropertiesOptions;
|
|
2629
2656
|
readonly children: readonly MathComponent[];
|
|
2630
2657
|
readonly limit: readonly MathComponent[];
|
|
2631
2658
|
}
|
|
2632
2659
|
declare class MathLimitLower extends XmlComponent {
|
|
2633
|
-
constructor(options:
|
|
2660
|
+
constructor(options: MathLimitLowerOptions);
|
|
2634
2661
|
}
|
|
2635
2662
|
//#endregion
|
|
2636
2663
|
//#region src/file/paragraph/math/phant/math-phant-properties.d.ts
|
|
@@ -2644,12 +2671,12 @@ interface MathPhantPropertiesOptions {
|
|
|
2644
2671
|
declare const createMathPhantProperties: (options: MathPhantPropertiesOptions) => XmlComponent;
|
|
2645
2672
|
//#endregion
|
|
2646
2673
|
//#region src/file/paragraph/math/phant/math-phant.d.ts
|
|
2647
|
-
interface
|
|
2674
|
+
interface MathPhantOptions {
|
|
2648
2675
|
readonly properties?: MathPhantPropertiesOptions;
|
|
2649
2676
|
readonly children: readonly MathComponent[];
|
|
2650
2677
|
}
|
|
2651
2678
|
declare class MathPhant extends XmlComponent {
|
|
2652
|
-
constructor(options:
|
|
2679
|
+
constructor(options: MathPhantOptions);
|
|
2653
2680
|
}
|
|
2654
2681
|
//#endregion
|
|
2655
2682
|
//#region src/file/paragraph/math/radical/math-degree.d.ts
|
|
@@ -2658,12 +2685,12 @@ declare class MathDegree extends XmlComponent {
|
|
|
2658
2685
|
}
|
|
2659
2686
|
//#endregion
|
|
2660
2687
|
//#region src/file/paragraph/math/radical/math-radical.d.ts
|
|
2661
|
-
interface
|
|
2688
|
+
interface MathRadicalOptions {
|
|
2662
2689
|
readonly children: readonly MathComponent[];
|
|
2663
2690
|
readonly degree?: readonly MathComponent[];
|
|
2664
2691
|
}
|
|
2665
2692
|
declare class MathRadical extends XmlComponent {
|
|
2666
|
-
constructor(options:
|
|
2693
|
+
constructor(options: MathRadicalOptions);
|
|
2667
2694
|
}
|
|
2668
2695
|
//#endregion
|
|
2669
2696
|
//#region src/file/paragraph/math/radical/math-radical-properties.d.ts
|
|
@@ -2672,37 +2699,37 @@ declare class MathRadicalProperties extends XmlComponent {
|
|
|
2672
2699
|
}
|
|
2673
2700
|
//#endregion
|
|
2674
2701
|
//#region src/file/paragraph/math/script/super-script/math-super-script-function.d.ts
|
|
2675
|
-
interface
|
|
2702
|
+
interface MathSuperScriptOptions {
|
|
2676
2703
|
readonly children: readonly MathComponent[];
|
|
2677
2704
|
readonly superScript: readonly MathComponent[];
|
|
2678
2705
|
}
|
|
2679
2706
|
declare class MathSuperScript extends XmlComponent {
|
|
2680
|
-
constructor(options:
|
|
2707
|
+
constructor(options: MathSuperScriptOptions);
|
|
2681
2708
|
}
|
|
2682
2709
|
//#endregion
|
|
2683
2710
|
//#region src/file/paragraph/math/script/super-script/math-super-script-function-properties.d.ts
|
|
2684
2711
|
declare const createMathSuperScriptProperties: () => XmlComponent;
|
|
2685
2712
|
//#endregion
|
|
2686
2713
|
//#region src/file/paragraph/math/script/sub-script/math-sub-script-function.d.ts
|
|
2687
|
-
interface
|
|
2714
|
+
interface MathSubScriptOptions {
|
|
2688
2715
|
readonly children: readonly MathComponent[];
|
|
2689
2716
|
readonly subScript: readonly MathComponent[];
|
|
2690
2717
|
}
|
|
2691
2718
|
declare class MathSubScript extends XmlComponent {
|
|
2692
|
-
constructor(options:
|
|
2719
|
+
constructor(options: MathSubScriptOptions);
|
|
2693
2720
|
}
|
|
2694
2721
|
//#endregion
|
|
2695
2722
|
//#region src/file/paragraph/math/script/sub-script/math-sub-script-function-properties.d.ts
|
|
2696
2723
|
declare const createMathSubScriptProperties: () => XmlComponent;
|
|
2697
2724
|
//#endregion
|
|
2698
2725
|
//#region src/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.d.ts
|
|
2699
|
-
interface
|
|
2726
|
+
interface MathSubSuperScriptOptions {
|
|
2700
2727
|
readonly children: readonly MathComponent[];
|
|
2701
2728
|
readonly subScript: readonly MathComponent[];
|
|
2702
2729
|
readonly superScript: readonly MathComponent[];
|
|
2703
2730
|
}
|
|
2704
2731
|
declare class MathSubSuperScript extends XmlComponent {
|
|
2705
|
-
constructor(options:
|
|
2732
|
+
constructor(options: MathSubSuperScriptOptions);
|
|
2706
2733
|
}
|
|
2707
2734
|
//#endregion
|
|
2708
2735
|
//#region src/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.d.ts
|
|
@@ -2712,7 +2739,7 @@ interface MathSubSuperScriptPropertiesOptions {
|
|
|
2712
2739
|
declare const createMathSubSuperScriptProperties: (options?: MathSubSuperScriptPropertiesOptions) => XmlComponent;
|
|
2713
2740
|
//#endregion
|
|
2714
2741
|
//#region src/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.d.ts
|
|
2715
|
-
interface
|
|
2742
|
+
interface MathPreSubSuperScriptOptions {
|
|
2716
2743
|
readonly children: readonly MathComponent[];
|
|
2717
2744
|
readonly subScript: readonly MathComponent[];
|
|
2718
2745
|
readonly superScript: readonly MathComponent[];
|
|
@@ -2722,7 +2749,7 @@ declare class MathPreSubSuperScript extends BuilderElement {
|
|
|
2722
2749
|
children,
|
|
2723
2750
|
subScript,
|
|
2724
2751
|
superScript
|
|
2725
|
-
}:
|
|
2752
|
+
}: MathPreSubSuperScriptOptions);
|
|
2726
2753
|
}
|
|
2727
2754
|
//#endregion
|
|
2728
2755
|
//#region src/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.d.ts
|
|
@@ -2886,11 +2913,11 @@ type MathJson = MathComponent | string | {
|
|
|
2886
2913
|
declare function coerceMathJson(value: MathJson): XmlComponent;
|
|
2887
2914
|
//#endregion
|
|
2888
2915
|
//#region src/file/paragraph/math/math.d.ts
|
|
2889
|
-
interface
|
|
2916
|
+
interface MathOptions {
|
|
2890
2917
|
readonly children: readonly MathComponent[];
|
|
2891
2918
|
}
|
|
2892
2919
|
declare class Math extends XmlComponent {
|
|
2893
|
-
constructor(options:
|
|
2920
|
+
constructor(options: MathOptions);
|
|
2894
2921
|
}
|
|
2895
2922
|
//#endregion
|
|
2896
2923
|
//#region src/file/paragraph/math/math-parse.d.ts
|
|
@@ -2898,12 +2925,12 @@ declare function parseMathChildren(el: Element): MathJson[];
|
|
|
2898
2925
|
//#endregion
|
|
2899
2926
|
//#region src/file/paragraph/math/math-para.d.ts
|
|
2900
2927
|
type MathJustification = "left" | "right" | "center" | "centerGroup";
|
|
2901
|
-
interface
|
|
2928
|
+
interface MathParagraphOptions {
|
|
2902
2929
|
readonly justification?: MathJustification;
|
|
2903
|
-
readonly children: readonly
|
|
2930
|
+
readonly children: readonly MathOptions[];
|
|
2904
2931
|
}
|
|
2905
2932
|
declare class MathParagraph extends XmlComponent {
|
|
2906
|
-
constructor(options:
|
|
2933
|
+
constructor(options: MathParagraphOptions);
|
|
2907
2934
|
}
|
|
2908
2935
|
//#endregion
|
|
2909
2936
|
//#region src/file/paragraph/math/math-pr.d.ts
|
|
@@ -2931,22 +2958,24 @@ interface MathPropertiesOptions {
|
|
|
2931
2958
|
declare const createMathProperties: (options: MathPropertiesOptions) => XmlComponent;
|
|
2932
2959
|
//#endregion
|
|
2933
2960
|
//#region src/file/paragraph/formatting/border.d.ts
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
readonly
|
|
2938
|
-
readonly
|
|
2939
|
-
readonly
|
|
2961
|
+
declare function buildParagraphBorders(options: BordersOptions): IXmlableObject | undefined;
|
|
2962
|
+
declare function buildThematicBreakObj(): IXmlableObject;
|
|
2963
|
+
interface BordersOptions {
|
|
2964
|
+
readonly top?: BorderOptions;
|
|
2965
|
+
readonly bottom?: BorderOptions;
|
|
2966
|
+
readonly left?: BorderOptions;
|
|
2967
|
+
readonly right?: BorderOptions;
|
|
2968
|
+
readonly between?: BorderOptions;
|
|
2940
2969
|
}
|
|
2941
2970
|
declare class Border extends IgnoreIfEmptyXmlComponent {
|
|
2942
|
-
constructor(options:
|
|
2971
|
+
constructor(options: BordersOptions);
|
|
2943
2972
|
}
|
|
2944
2973
|
declare class ThematicBreak extends XmlComponent {
|
|
2945
2974
|
constructor();
|
|
2946
2975
|
}
|
|
2947
2976
|
//#endregion
|
|
2948
2977
|
//#region src/file/paragraph/formatting/cnf-style.d.ts
|
|
2949
|
-
interface
|
|
2978
|
+
interface CnfConditionalOptions {
|
|
2950
2979
|
readonly firstRow?: boolean;
|
|
2951
2980
|
readonly lastRow?: boolean;
|
|
2952
2981
|
readonly firstColumn?: boolean;
|
|
@@ -2960,10 +2989,11 @@ interface ICnfStyleOptions {
|
|
|
2960
2989
|
readonly lastRowFirstColumn?: boolean;
|
|
2961
2990
|
readonly lastRowLastColumn?: boolean;
|
|
2962
2991
|
}
|
|
2963
|
-
declare const createCnfStyle: (options:
|
|
2992
|
+
declare const createCnfStyle: (options: CnfConditionalOptions) => XmlComponent;
|
|
2993
|
+
declare const buildCnfStyleObj: (options: CnfConditionalOptions) => IXmlableObject;
|
|
2964
2994
|
//#endregion
|
|
2965
2995
|
//#region src/file/paragraph/formatting/indent.d.ts
|
|
2966
|
-
interface
|
|
2996
|
+
interface IndentAttributesProperties {
|
|
2967
2997
|
readonly start?: number | values_d_exports.UniversalMeasure;
|
|
2968
2998
|
readonly startChars?: number;
|
|
2969
2999
|
readonly end?: number | values_d_exports.UniversalMeasure;
|
|
@@ -2990,7 +3020,21 @@ declare const createIndent: ({
|
|
|
2990
3020
|
hangingChars,
|
|
2991
3021
|
firstLine,
|
|
2992
3022
|
firstLineChars
|
|
2993
|
-
}:
|
|
3023
|
+
}: IndentAttributesProperties) => XmlComponent;
|
|
3024
|
+
declare const buildIndentObj: ({
|
|
3025
|
+
start,
|
|
3026
|
+
startChars,
|
|
3027
|
+
end,
|
|
3028
|
+
endChars,
|
|
3029
|
+
left,
|
|
3030
|
+
leftChars,
|
|
3031
|
+
right,
|
|
3032
|
+
rightChars,
|
|
3033
|
+
hanging,
|
|
3034
|
+
hangingChars,
|
|
3035
|
+
firstLine,
|
|
3036
|
+
firstLineChars
|
|
3037
|
+
}: IndentAttributesProperties) => IXmlableObject;
|
|
2994
3038
|
//#endregion
|
|
2995
3039
|
//#region src/file/paragraph/formatting/spacing.d.ts
|
|
2996
3040
|
declare const LineRuleType: {
|
|
@@ -2999,7 +3043,7 @@ declare const LineRuleType: {
|
|
|
2999
3043
|
readonly EXACT: "exact";
|
|
3000
3044
|
readonly AUTO: "auto";
|
|
3001
3045
|
};
|
|
3002
|
-
interface
|
|
3046
|
+
interface SpacingProperties {
|
|
3003
3047
|
readonly after?: number;
|
|
3004
3048
|
readonly before?: number;
|
|
3005
3049
|
readonly line?: number;
|
|
@@ -3018,7 +3062,17 @@ declare const createSpacing: ({
|
|
|
3018
3062
|
afterAutoSpacing,
|
|
3019
3063
|
beforeLines,
|
|
3020
3064
|
afterLines
|
|
3021
|
-
}:
|
|
3065
|
+
}: SpacingProperties) => XmlComponent;
|
|
3066
|
+
declare const buildSpacingObj: ({
|
|
3067
|
+
after,
|
|
3068
|
+
before,
|
|
3069
|
+
line,
|
|
3070
|
+
lineRule,
|
|
3071
|
+
beforeAutoSpacing,
|
|
3072
|
+
afterAutoSpacing,
|
|
3073
|
+
beforeLines,
|
|
3074
|
+
afterLines
|
|
3075
|
+
}: SpacingProperties) => IXmlableObject;
|
|
3022
3076
|
//#endregion
|
|
3023
3077
|
//#region src/file/paragraph/formatting/style.d.ts
|
|
3024
3078
|
declare const HeadingLevel: {
|
|
@@ -3066,6 +3120,7 @@ declare const createTabStopItem: ({
|
|
|
3066
3120
|
leader
|
|
3067
3121
|
}: TabStopDefinition) => XmlComponent;
|
|
3068
3122
|
declare const createTabStop: (tabDefinitions: readonly TabStopDefinition[]) => XmlComponent;
|
|
3123
|
+
declare const buildTabStopObj: (tabDefinitions: readonly TabStopDefinition[]) => IXmlableObject;
|
|
3069
3124
|
//#endregion
|
|
3070
3125
|
//#region src/file/paragraph/frame/frame-properties.d.ts
|
|
3071
3126
|
declare const DropCapType: {
|
|
@@ -3086,7 +3141,7 @@ declare const FrameWrap: {
|
|
|
3086
3141
|
readonly THROUGH: "through";
|
|
3087
3142
|
readonly TIGHT: "tight";
|
|
3088
3143
|
};
|
|
3089
|
-
interface
|
|
3144
|
+
interface BaseFrameOptions {
|
|
3090
3145
|
readonly anchorLock?: boolean;
|
|
3091
3146
|
readonly dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
|
|
3092
3147
|
readonly width: number;
|
|
@@ -3109,16 +3164,17 @@ type IXYFrameOptions = {
|
|
|
3109
3164
|
readonly x: number;
|
|
3110
3165
|
readonly y: number;
|
|
3111
3166
|
};
|
|
3112
|
-
} &
|
|
3167
|
+
} & BaseFrameOptions;
|
|
3113
3168
|
type IAlignmentFrameOptions = {
|
|
3114
3169
|
readonly type: "alignment";
|
|
3115
3170
|
readonly alignment: {
|
|
3116
3171
|
readonly x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
3117
3172
|
readonly y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
3118
3173
|
};
|
|
3119
|
-
} &
|
|
3174
|
+
} & BaseFrameOptions;
|
|
3120
3175
|
type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
|
|
3121
3176
|
declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
|
|
3177
|
+
declare const buildFramePropertiesObj: (options: IFrameOptions) => IXmlableObject;
|
|
3122
3178
|
//#endregion
|
|
3123
3179
|
//#region src/file/paragraph/properties.d.ts
|
|
3124
3180
|
declare const TextAlignmentType: {
|
|
@@ -3145,8 +3201,8 @@ interface LevelParagraphStylePropertiesOptions {
|
|
|
3145
3201
|
readonly contextualSpacing?: boolean;
|
|
3146
3202
|
readonly rightTabStop?: number;
|
|
3147
3203
|
readonly leftTabStop?: number;
|
|
3148
|
-
readonly indent?:
|
|
3149
|
-
readonly spacing?:
|
|
3204
|
+
readonly indent?: IndentAttributesProperties;
|
|
3205
|
+
readonly spacing?: SpacingProperties;
|
|
3150
3206
|
readonly keepNext?: boolean;
|
|
3151
3207
|
readonly keepLines?: boolean;
|
|
3152
3208
|
readonly frame?: IFrameOptions;
|
|
@@ -3167,11 +3223,11 @@ interface LevelParagraphStylePropertiesOptions {
|
|
|
3167
3223
|
readonly textDirection?: "lr" | "rl" | "tb" | "tbV" | "rlV" | "lrV";
|
|
3168
3224
|
readonly outlineLevel?: number;
|
|
3169
3225
|
readonly divId?: number;
|
|
3170
|
-
readonly cnfStyle?:
|
|
3226
|
+
readonly cnfStyle?: CnfConditionalOptions;
|
|
3171
3227
|
}
|
|
3172
3228
|
type IParagraphStylePropertiesOptions = {
|
|
3173
|
-
readonly border?:
|
|
3174
|
-
readonly shading?:
|
|
3229
|
+
readonly border?: BordersOptions;
|
|
3230
|
+
readonly shading?: ShadingAttributesProperties;
|
|
3175
3231
|
readonly numbering?: {
|
|
3176
3232
|
readonly reference: string;
|
|
3177
3233
|
readonly level: number;
|
|
@@ -3187,16 +3243,24 @@ type IParagraphPropertiesOptionsBase = {
|
|
|
3187
3243
|
};
|
|
3188
3244
|
readonly run?: IParagraphRunOptions;
|
|
3189
3245
|
} & IParagraphStylePropertiesOptions;
|
|
3190
|
-
type IParagraphPropertiesChangeOptions =
|
|
3191
|
-
type
|
|
3246
|
+
type IParagraphPropertiesChangeOptions = ChangedAttributesProperties & IParagraphPropertiesOptionsBase;
|
|
3247
|
+
type ParagraphPropertiesOptions = {
|
|
3192
3248
|
readonly revision?: IParagraphPropertiesChangeOptions;
|
|
3193
3249
|
readonly includeIfEmpty?: boolean;
|
|
3194
3250
|
} & IParagraphPropertiesOptionsBase;
|
|
3251
|
+
interface ParagraphPropertiesResult {
|
|
3252
|
+
readonly xml: IXmlableObject | undefined;
|
|
3253
|
+
readonly numberingReferences: readonly {
|
|
3254
|
+
readonly reference: string;
|
|
3255
|
+
readonly instance: number;
|
|
3256
|
+
}[];
|
|
3257
|
+
}
|
|
3258
|
+
declare function buildParagraphProperties(options?: ParagraphPropertiesOptions): ParagraphPropertiesResult;
|
|
3195
3259
|
declare class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
|
|
3196
3260
|
private readonly numberingReferences;
|
|
3197
|
-
constructor(options?:
|
|
3261
|
+
constructor(options?: ParagraphPropertiesOptions);
|
|
3198
3262
|
push(item: XmlComponent): void;
|
|
3199
|
-
prepForXml(context:
|
|
3263
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
3200
3264
|
}
|
|
3201
3265
|
declare class ParagraphPropertiesChange extends XmlComponent {
|
|
3202
3266
|
constructor(options: IParagraphPropertiesChangeOptions);
|
|
@@ -3205,21 +3269,21 @@ declare class ParagraphPropertiesChange extends XmlComponent {
|
|
|
3205
3269
|
//#region src/file/paragraph/paragraph.d.ts
|
|
3206
3270
|
type Math$1 = InstanceType<typeof Math>;
|
|
3207
3271
|
type ParagraphChild = TextRun | ImageRun | SymbolRun | Bookmark | PageBreak | ColumnBreak | SequentialIdentifier | FootnoteReferenceRun | InternalHyperlink | ExternalHyperlink | InsertedTextRun | DeletedTextRun | Math$1 | SimpleField | SimpleMailMergeField | ChartRun | SmartArtRun | Comments | Comment | CommentRangeStart | CommentRangeEnd | CommentReference | CheckBox | StructuredDocumentTagRun | MoveFromRangeStart | MoveFromRangeEnd | MoveToRangeStart | MoveToRangeEnd | MovedFromTextRun | MovedToTextRun | PermStart | PermEnd | Dir | Bdo | AltChunk | SubDoc;
|
|
3208
|
-
interface
|
|
3209
|
-
readonly chart:
|
|
3272
|
+
interface ChartChild {
|
|
3273
|
+
readonly chart: ChartOptions;
|
|
3210
3274
|
}
|
|
3211
|
-
interface
|
|
3212
|
-
readonly smartArt:
|
|
3275
|
+
interface SmartArtChild {
|
|
3276
|
+
readonly smartArt: SmartArtOptions;
|
|
3213
3277
|
}
|
|
3214
|
-
interface
|
|
3278
|
+
interface ImageChild {
|
|
3215
3279
|
readonly image: IImageOptions;
|
|
3216
3280
|
}
|
|
3217
|
-
interface
|
|
3218
|
-
readonly math: Omit<
|
|
3281
|
+
interface MathChild {
|
|
3282
|
+
readonly math: Omit<MathOptions, "children"> & {
|
|
3219
3283
|
readonly children?: readonly MathJson[];
|
|
3220
3284
|
};
|
|
3221
3285
|
}
|
|
3222
|
-
type IParagraphJsonChild =
|
|
3286
|
+
type IParagraphJsonChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
3223
3287
|
readonly symbolRun: ISymbolRunOptions;
|
|
3224
3288
|
} | {
|
|
3225
3289
|
readonly footnoteReference: number;
|
|
@@ -3236,35 +3300,51 @@ type IParagraphJsonChild = IChartChild | ISmartArtChild | IImageChild | IMathChi
|
|
|
3236
3300
|
} | {
|
|
3237
3301
|
readonly commentReference: number;
|
|
3238
3302
|
} | {
|
|
3239
|
-
readonly insertion:
|
|
3303
|
+
readonly insertion: RunOptions & ChangedAttributesProperties;
|
|
3304
|
+
} | {
|
|
3305
|
+
readonly deletion: RunOptions & ChangedAttributesProperties;
|
|
3306
|
+
} | {
|
|
3307
|
+
readonly hyperlink: {
|
|
3308
|
+
readonly link?: string;
|
|
3309
|
+
readonly anchor?: string;
|
|
3310
|
+
readonly tooltip?: string;
|
|
3311
|
+
readonly children?: readonly (RunOptions | string)[];
|
|
3312
|
+
};
|
|
3313
|
+
} | {
|
|
3314
|
+
readonly bookmarkStart: {
|
|
3315
|
+
readonly id: number;
|
|
3316
|
+
readonly name: string;
|
|
3317
|
+
};
|
|
3240
3318
|
} | {
|
|
3241
|
-
readonly
|
|
3319
|
+
readonly bookmarkEnd: number;
|
|
3242
3320
|
};
|
|
3243
|
-
type
|
|
3321
|
+
type ParagraphOptions = {
|
|
3244
3322
|
readonly text?: string;
|
|
3245
|
-
readonly children?: readonly (ParagraphChild |
|
|
3246
|
-
} &
|
|
3323
|
+
readonly children?: readonly (ParagraphChild | RunOptions | IParagraphJsonChild | string)[];
|
|
3324
|
+
} & ParagraphPropertiesOptions;
|
|
3247
3325
|
declare class Paragraph extends BaseXmlComponent implements FileChild {
|
|
3248
3326
|
readonly fileChild: symbol;
|
|
3249
3327
|
private readonly options;
|
|
3250
3328
|
private frontRuns;
|
|
3251
3329
|
private sectionProperties?;
|
|
3252
|
-
|
|
3253
|
-
|
|
3330
|
+
private readonly _props;
|
|
3331
|
+
private readonly _textRun;
|
|
3332
|
+
constructor(options: string | ParagraphOptions);
|
|
3333
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
3254
3334
|
addRunToFront(run: Run): Paragraph;
|
|
3255
3335
|
setSectionProperties(section: SectionProperties): void;
|
|
3256
3336
|
}
|
|
3257
3337
|
//#endregion
|
|
3258
3338
|
//#region src/file/paragraph/run/comment-run.d.ts
|
|
3259
|
-
interface
|
|
3339
|
+
interface CommentOptions {
|
|
3260
3340
|
readonly id: number;
|
|
3261
|
-
readonly children: readonly (FileChild |
|
|
3341
|
+
readonly children: readonly (FileChild | ParagraphOptions | string)[];
|
|
3262
3342
|
readonly initials?: string;
|
|
3263
3343
|
readonly author?: string;
|
|
3264
3344
|
readonly date?: Date | string;
|
|
3265
3345
|
}
|
|
3266
|
-
interface
|
|
3267
|
-
readonly children: readonly
|
|
3346
|
+
interface CommentsOptions {
|
|
3347
|
+
readonly children: readonly CommentOptions[];
|
|
3268
3348
|
}
|
|
3269
3349
|
declare class CommentRangeStart extends XmlComponent {
|
|
3270
3350
|
constructor(id: number);
|
|
@@ -3282,13 +3362,13 @@ declare class Comment extends XmlComponent {
|
|
|
3282
3362
|
author,
|
|
3283
3363
|
date,
|
|
3284
3364
|
children
|
|
3285
|
-
}:
|
|
3365
|
+
}: CommentOptions);
|
|
3286
3366
|
}
|
|
3287
3367
|
declare class Comments extends XmlComponent {
|
|
3288
3368
|
private readonly relationships;
|
|
3289
3369
|
constructor({
|
|
3290
3370
|
children
|
|
3291
|
-
}:
|
|
3371
|
+
}: CommentsOptions);
|
|
3292
3372
|
get Relationships(): Relationships;
|
|
3293
3373
|
}
|
|
3294
3374
|
//#endregion
|
|
@@ -3393,13 +3473,6 @@ declare const createBreak: (options?: {
|
|
|
3393
3473
|
}) => XmlComponent;
|
|
3394
3474
|
//#endregion
|
|
3395
3475
|
//#region src/file/endnotes/endnote/run/reference-run.d.ts
|
|
3396
|
-
declare class EndnoteReferenceRunAttributes extends XmlAttributeComponent<{
|
|
3397
|
-
readonly id: number;
|
|
3398
|
-
}> {
|
|
3399
|
-
protected readonly xmlKeys: {
|
|
3400
|
-
id: string;
|
|
3401
|
-
};
|
|
3402
|
-
}
|
|
3403
3476
|
declare class EndnoteIdReference extends XmlComponent {
|
|
3404
3477
|
constructor(id: number);
|
|
3405
3478
|
}
|
|
@@ -3408,14 +3481,14 @@ declare class EndnoteReferenceRun extends Run {
|
|
|
3408
3481
|
}
|
|
3409
3482
|
//#endregion
|
|
3410
3483
|
//#region src/file/document-wrapper.d.ts
|
|
3411
|
-
interface
|
|
3484
|
+
interface ViewWrapper {
|
|
3412
3485
|
readonly View: Document | Footer$1 | Header$1 | FootNotes | Endnotes | XmlComponent;
|
|
3413
3486
|
readonly Relationships: Relationships;
|
|
3414
3487
|
}
|
|
3415
|
-
declare class DocumentWrapper implements
|
|
3488
|
+
declare class DocumentWrapper implements ViewWrapper {
|
|
3416
3489
|
private readonly document;
|
|
3417
3490
|
private readonly relationships;
|
|
3418
|
-
constructor(options:
|
|
3491
|
+
constructor(options: DocumentOptions);
|
|
3419
3492
|
get View(): Document;
|
|
3420
3493
|
get Relationships(): Relationships;
|
|
3421
3494
|
}
|
|
@@ -3439,13 +3512,13 @@ interface SourceTypeOptions {
|
|
|
3439
3512
|
readonly edition?: string;
|
|
3440
3513
|
readonly institution?: string;
|
|
3441
3514
|
}
|
|
3442
|
-
interface
|
|
3515
|
+
interface BibliographyOptions {
|
|
3443
3516
|
readonly sources: readonly SourceTypeOptions[];
|
|
3444
3517
|
readonly styleName?: string;
|
|
3445
3518
|
}
|
|
3446
3519
|
declare class Bibliography extends XmlComponent {
|
|
3447
3520
|
private readonly relationships;
|
|
3448
|
-
constructor(options:
|
|
3521
|
+
constructor(options: BibliographyOptions);
|
|
3449
3522
|
get Relationships(): Relationships;
|
|
3450
3523
|
}
|
|
3451
3524
|
//#endregion
|
|
@@ -3465,8 +3538,52 @@ declare class ContentTypes extends XmlComponent {
|
|
|
3465
3538
|
addSubDoc(path: string): void;
|
|
3466
3539
|
}
|
|
3467
3540
|
//#endregion
|
|
3541
|
+
//#region src/file/fonts/font.d.ts
|
|
3542
|
+
declare const CharacterSet: {
|
|
3543
|
+
readonly ANSI: "00";
|
|
3544
|
+
readonly ARABIC: "B2";
|
|
3545
|
+
readonly BALTIC: "BA";
|
|
3546
|
+
readonly CHINESEBIG5: "88";
|
|
3547
|
+
readonly DEFAULT: "01";
|
|
3548
|
+
readonly EASTEUROPE: "EE";
|
|
3549
|
+
readonly GB_2312: "86";
|
|
3550
|
+
readonly GREEK: "A1";
|
|
3551
|
+
readonly HANGUL: "81";
|
|
3552
|
+
readonly HEBREW: "B1";
|
|
3553
|
+
readonly JIS: "80";
|
|
3554
|
+
readonly JOHAB: "82";
|
|
3555
|
+
readonly MAC: "4D";
|
|
3556
|
+
readonly OEM: "FF";
|
|
3557
|
+
readonly RUSSIAN: "CC";
|
|
3558
|
+
readonly SYMBOL: "02";
|
|
3559
|
+
readonly THAI: "DE";
|
|
3560
|
+
readonly TURKISH: "A2";
|
|
3561
|
+
readonly VIETNAMESE: "A3";
|
|
3562
|
+
};
|
|
3563
|
+
//#endregion
|
|
3564
|
+
//#region src/file/fonts/font-wrapper.d.ts
|
|
3565
|
+
type EmbeddedFontOptionsWithKey = EmbeddedFontOptions & {
|
|
3566
|
+
readonly fontKey: string;
|
|
3567
|
+
};
|
|
3568
|
+
declare class FontWrapper implements ViewWrapper {
|
|
3569
|
+
readonly options: readonly EmbeddedFontOptions[];
|
|
3570
|
+
private readonly fontTable;
|
|
3571
|
+
private readonly relationships;
|
|
3572
|
+
readonly fontOptionsWithKey: readonly EmbeddedFontOptionsWithKey[];
|
|
3573
|
+
constructor(options: readonly EmbeddedFontOptions[]);
|
|
3574
|
+
get View(): XmlComponent;
|
|
3575
|
+
get Relationships(): Relationships;
|
|
3576
|
+
}
|
|
3577
|
+
//#endregion
|
|
3578
|
+
//#region src/file/fonts/font-table.d.ts
|
|
3579
|
+
interface EmbeddedFontOptions {
|
|
3580
|
+
readonly name: string;
|
|
3581
|
+
readonly data: Buffer;
|
|
3582
|
+
readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
|
|
3583
|
+
}
|
|
3584
|
+
//#endregion
|
|
3468
3585
|
//#region src/file/settings/compatibility.d.ts
|
|
3469
|
-
interface
|
|
3586
|
+
interface CompatibilityOptions {
|
|
3470
3587
|
readonly version?: number;
|
|
3471
3588
|
readonly useSingleBorderforContiguousCells?: boolean;
|
|
3472
3589
|
readonly wordPerfectJustification?: boolean;
|
|
@@ -3539,22 +3656,22 @@ interface ICompatibilityOptions {
|
|
|
3539
3656
|
}
|
|
3540
3657
|
//#endregion
|
|
3541
3658
|
//#region src/file/settings/settings.d.ts
|
|
3542
|
-
interface
|
|
3659
|
+
interface SettingsOptions {
|
|
3543
3660
|
readonly compatibilityModeVersion?: number;
|
|
3544
3661
|
readonly evenAndOddHeaders?: boolean;
|
|
3545
3662
|
readonly trackRevisions?: boolean;
|
|
3546
3663
|
readonly updateFields?: boolean;
|
|
3547
|
-
readonly compatibility?:
|
|
3664
|
+
readonly compatibility?: CompatibilityOptions;
|
|
3548
3665
|
readonly defaultTabStop?: number;
|
|
3549
|
-
readonly hyphenation?:
|
|
3666
|
+
readonly hyphenation?: HyphenationOptions;
|
|
3550
3667
|
readonly characterSpacingControl?: "compressPunctuation" | "doNotCompress";
|
|
3551
|
-
readonly documentProtection?:
|
|
3668
|
+
readonly documentProtection?: DocumentProtectionOptions;
|
|
3552
3669
|
readonly view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
|
|
3553
3670
|
readonly zoom?: {
|
|
3554
3671
|
readonly percent?: number;
|
|
3555
3672
|
readonly val?: "none" | "fullPage" | "bestFit" | "textFit";
|
|
3556
3673
|
};
|
|
3557
|
-
readonly writeProtection?:
|
|
3674
|
+
readonly writeProtection?: WriteProtectionOptions;
|
|
3558
3675
|
readonly displayBackgroundShape?: boolean;
|
|
3559
3676
|
readonly embedTrueTypeFonts?: boolean;
|
|
3560
3677
|
readonly embedSystemFonts?: boolean;
|
|
@@ -3578,7 +3695,7 @@ interface ISettingsOptions {
|
|
|
3578
3695
|
readonly followedHyperlink?: string;
|
|
3579
3696
|
};
|
|
3580
3697
|
}
|
|
3581
|
-
interface
|
|
3698
|
+
interface DocumentProtectionOptions {
|
|
3582
3699
|
readonly edit?: "none" | "readOnly" | "comments" | "trackedChanges" | "forms";
|
|
3583
3700
|
readonly formatting?: boolean;
|
|
3584
3701
|
readonly hashValue?: string;
|
|
@@ -3586,69 +3703,25 @@ interface IDocumentProtectionOptions {
|
|
|
3586
3703
|
readonly spinCount?: number;
|
|
3587
3704
|
readonly algorithmName?: string;
|
|
3588
3705
|
}
|
|
3589
|
-
interface
|
|
3706
|
+
interface WriteProtectionOptions {
|
|
3590
3707
|
readonly hashValue?: string;
|
|
3591
3708
|
readonly saltValue?: string;
|
|
3592
3709
|
readonly spinCount?: number;
|
|
3593
3710
|
readonly algorithmName?: string;
|
|
3594
3711
|
readonly recommended?: boolean;
|
|
3595
3712
|
}
|
|
3596
|
-
interface
|
|
3713
|
+
interface HyphenationOptions {
|
|
3597
3714
|
readonly autoHyphenation?: boolean;
|
|
3598
3715
|
readonly hyphenationZone?: number;
|
|
3599
3716
|
readonly consecutiveHyphenLimit?: number;
|
|
3600
3717
|
readonly doNotHyphenateCaps?: boolean;
|
|
3601
3718
|
}
|
|
3602
3719
|
declare class Settings extends XmlComponent {
|
|
3603
|
-
constructor(options:
|
|
3604
|
-
}
|
|
3605
|
-
//#endregion
|
|
3606
|
-
//#region src/file/fonts/font.d.ts
|
|
3607
|
-
declare const CharacterSet: {
|
|
3608
|
-
readonly ANSI: "00";
|
|
3609
|
-
readonly ARABIC: "B2";
|
|
3610
|
-
readonly BALTIC: "BA";
|
|
3611
|
-
readonly CHINESEBIG5: "88";
|
|
3612
|
-
readonly DEFAULT: "01";
|
|
3613
|
-
readonly EASTEUROPE: "EE";
|
|
3614
|
-
readonly GB_2312: "86";
|
|
3615
|
-
readonly GREEK: "A1";
|
|
3616
|
-
readonly HANGUL: "81";
|
|
3617
|
-
readonly HEBREW: "B1";
|
|
3618
|
-
readonly JIS: "80";
|
|
3619
|
-
readonly JOHAB: "82";
|
|
3620
|
-
readonly MAC: "4D";
|
|
3621
|
-
readonly OEM: "FF";
|
|
3622
|
-
readonly RUSSIAN: "CC";
|
|
3623
|
-
readonly SYMBOL: "02";
|
|
3624
|
-
readonly THAI: "DE";
|
|
3625
|
-
readonly TURKISH: "A2";
|
|
3626
|
-
readonly VIETNAMESE: "A3";
|
|
3627
|
-
};
|
|
3628
|
-
//#endregion
|
|
3629
|
-
//#region src/file/fonts/font-wrapper.d.ts
|
|
3630
|
-
type FontOptionsWithKey = FontOptions & {
|
|
3631
|
-
readonly fontKey: string;
|
|
3632
|
-
};
|
|
3633
|
-
declare class FontWrapper implements IViewWrapper {
|
|
3634
|
-
readonly options: readonly FontOptions[];
|
|
3635
|
-
private readonly fontTable;
|
|
3636
|
-
private readonly relationships;
|
|
3637
|
-
readonly fontOptionsWithKey: readonly FontOptionsWithKey[];
|
|
3638
|
-
constructor(options: readonly FontOptions[]);
|
|
3639
|
-
get View(): XmlComponent;
|
|
3640
|
-
get Relationships(): Relationships;
|
|
3641
|
-
}
|
|
3642
|
-
//#endregion
|
|
3643
|
-
//#region src/file/fonts/font-table.d.ts
|
|
3644
|
-
interface FontOptions {
|
|
3645
|
-
readonly name: string;
|
|
3646
|
-
readonly data: Buffer;
|
|
3647
|
-
readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
|
|
3720
|
+
constructor(options: SettingsOptions);
|
|
3648
3721
|
}
|
|
3649
3722
|
//#endregion
|
|
3650
3723
|
//#region src/file/custom-properties/custom-property.d.ts
|
|
3651
|
-
interface
|
|
3724
|
+
interface CustomPropertyOptions {
|
|
3652
3725
|
readonly name: string;
|
|
3653
3726
|
readonly value: string;
|
|
3654
3727
|
}
|
|
@@ -3657,9 +3730,9 @@ interface ICustomPropertyOptions {
|
|
|
3657
3730
|
declare class CustomProperties extends XmlComponent {
|
|
3658
3731
|
private nextId;
|
|
3659
3732
|
private readonly properties;
|
|
3660
|
-
constructor(properties: readonly
|
|
3661
|
-
prepForXml(context:
|
|
3662
|
-
addCustomProperty(property:
|
|
3733
|
+
constructor(properties: readonly CustomPropertyOptions[]);
|
|
3734
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
3735
|
+
addCustomProperty(property: CustomPropertyOptions): void;
|
|
3663
3736
|
}
|
|
3664
3737
|
//#endregion
|
|
3665
3738
|
//#region src/file/numbering/level.d.ts
|
|
@@ -3733,7 +3806,7 @@ declare const LevelSuffix: {
|
|
|
3733
3806
|
readonly SPACE: "space";
|
|
3734
3807
|
readonly TAB: "tab";
|
|
3735
3808
|
};
|
|
3736
|
-
interface
|
|
3809
|
+
interface LevelsOptions {
|
|
3737
3810
|
readonly level: number;
|
|
3738
3811
|
readonly format?: (typeof LevelFormat)[keyof typeof LevelFormat];
|
|
3739
3812
|
readonly text?: string;
|
|
@@ -3758,37 +3831,37 @@ declare class LevelBase extends XmlComponent {
|
|
|
3758
3831
|
style,
|
|
3759
3832
|
suffix,
|
|
3760
3833
|
isLegalNumberingStyle
|
|
3761
|
-
}:
|
|
3834
|
+
}: LevelsOptions);
|
|
3762
3835
|
}
|
|
3763
3836
|
declare class Level extends LevelBase {}
|
|
3764
3837
|
declare class LevelForOverride extends LevelBase {}
|
|
3765
3838
|
//#endregion
|
|
3766
3839
|
//#region src/file/numbering/num.d.ts
|
|
3767
|
-
interface
|
|
3840
|
+
interface OverrideLevel {
|
|
3768
3841
|
readonly num: number;
|
|
3769
3842
|
readonly start?: number;
|
|
3770
3843
|
}
|
|
3771
|
-
interface
|
|
3844
|
+
interface ConcreteNumberingOptions {
|
|
3772
3845
|
readonly numId: number;
|
|
3773
3846
|
readonly abstractNumId: number;
|
|
3774
3847
|
readonly reference: string;
|
|
3775
3848
|
readonly instance: number;
|
|
3776
|
-
readonly overrideLevels?: readonly
|
|
3849
|
+
readonly overrideLevels?: readonly OverrideLevel[];
|
|
3777
3850
|
}
|
|
3778
3851
|
declare class ConcreteNumbering extends XmlComponent {
|
|
3779
3852
|
readonly numId: number;
|
|
3780
3853
|
readonly reference: string;
|
|
3781
3854
|
readonly instance: number;
|
|
3782
|
-
constructor(options:
|
|
3855
|
+
constructor(options: ConcreteNumberingOptions);
|
|
3783
3856
|
}
|
|
3784
3857
|
declare class LevelOverride extends XmlComponent {
|
|
3785
3858
|
constructor(levelNum: number, start?: number);
|
|
3786
3859
|
}
|
|
3787
3860
|
//#endregion
|
|
3788
3861
|
//#region src/file/numbering/numbering.d.ts
|
|
3789
|
-
interface
|
|
3862
|
+
interface NumberingOptions {
|
|
3790
3863
|
readonly config: readonly {
|
|
3791
|
-
readonly levels: readonly
|
|
3864
|
+
readonly levels: readonly LevelsOptions[];
|
|
3792
3865
|
readonly reference: string;
|
|
3793
3866
|
}[];
|
|
3794
3867
|
}
|
|
@@ -3798,8 +3871,8 @@ declare class Numbering extends XmlComponent {
|
|
|
3798
3871
|
private readonly referenceConfigMap;
|
|
3799
3872
|
private readonly abstractNumUniqueNumericId;
|
|
3800
3873
|
private readonly concreteNumUniqueNumericId;
|
|
3801
|
-
constructor(options:
|
|
3802
|
-
prepForXml(context:
|
|
3874
|
+
constructor(options: NumberingOptions);
|
|
3875
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
3803
3876
|
createConcreteNumberingInstance(reference: string, instance: number): void;
|
|
3804
3877
|
get ConcreteNumbering(): readonly ConcreteNumbering[];
|
|
3805
3878
|
get ReferenceConfig(): readonly Record<string, any>[];
|
|
@@ -3808,7 +3881,7 @@ declare class Numbering extends XmlComponent {
|
|
|
3808
3881
|
//#region src/file/numbering/abstract-numbering.d.ts
|
|
3809
3882
|
declare class AbstractNumbering extends XmlComponent {
|
|
3810
3883
|
readonly id: number;
|
|
3811
|
-
constructor(id: number, levelOptions: readonly
|
|
3884
|
+
constructor(id: number, levelOptions: readonly LevelsOptions[]);
|
|
3812
3885
|
}
|
|
3813
3886
|
//#endregion
|
|
3814
3887
|
//#region src/file/styles/defaults/paragraph-properties.d.ts
|
|
@@ -3822,14 +3895,14 @@ declare class RunPropertiesDefaults extends XmlComponent {
|
|
|
3822
3895
|
}
|
|
3823
3896
|
//#endregion
|
|
3824
3897
|
//#region src/file/styles/defaults/document-defaults.d.ts
|
|
3825
|
-
interface
|
|
3898
|
+
interface DocumentDefaultsOptions {
|
|
3826
3899
|
readonly paragraph?: IParagraphStylePropertiesOptions;
|
|
3827
3900
|
readonly run?: RunStylePropertiesOptions;
|
|
3828
3901
|
}
|
|
3829
3902
|
declare class DocumentDefaults extends XmlComponent {
|
|
3830
3903
|
private readonly runPropertiesDefaults;
|
|
3831
3904
|
private readonly paragraphPropertiesDefaults;
|
|
3832
|
-
constructor(options:
|
|
3905
|
+
constructor(options: DocumentDefaultsOptions);
|
|
3833
3906
|
}
|
|
3834
3907
|
//#endregion
|
|
3835
3908
|
//#region src/file/styles/style/table-style-override.d.ts
|
|
@@ -3858,13 +3931,13 @@ interface TableStyleOverrideOptions {
|
|
|
3858
3931
|
}
|
|
3859
3932
|
//#endregion
|
|
3860
3933
|
//#region src/file/styles/style/style.d.ts
|
|
3861
|
-
interface
|
|
3934
|
+
interface StyleAttributes {
|
|
3862
3935
|
readonly type?: string;
|
|
3863
3936
|
readonly styleId?: string;
|
|
3864
3937
|
readonly default?: boolean;
|
|
3865
3938
|
readonly customStyle?: string;
|
|
3866
3939
|
}
|
|
3867
|
-
interface
|
|
3940
|
+
interface StyleOptions {
|
|
3868
3941
|
readonly name?: string;
|
|
3869
3942
|
readonly basedOn?: string;
|
|
3870
3943
|
readonly next?: string;
|
|
@@ -3876,14 +3949,14 @@ interface IStyleOptions {
|
|
|
3876
3949
|
readonly tableStyleOverrides?: readonly TableStyleOverrideOptions[];
|
|
3877
3950
|
}
|
|
3878
3951
|
declare class Style extends XmlComponent {
|
|
3879
|
-
constructor(attributes:
|
|
3952
|
+
constructor(attributes: StyleAttributes, options: StyleOptions);
|
|
3880
3953
|
}
|
|
3881
3954
|
//#endregion
|
|
3882
3955
|
//#region src/file/styles/style/paragraph-style.d.ts
|
|
3883
3956
|
type IBaseParagraphStyleOptions = {
|
|
3884
3957
|
readonly paragraph?: IParagraphStylePropertiesOptions;
|
|
3885
3958
|
readonly run?: RunStylePropertiesOptions;
|
|
3886
|
-
} &
|
|
3959
|
+
} & StyleOptions;
|
|
3887
3960
|
type IParagraphStyleOptions = {
|
|
3888
3961
|
readonly id: string;
|
|
3889
3962
|
} & IBaseParagraphStyleOptions;
|
|
@@ -3896,7 +3969,7 @@ declare class StyleForParagraph extends Style {
|
|
|
3896
3969
|
//#region src/file/styles/style/character-style.d.ts
|
|
3897
3970
|
type IBaseCharacterStyleOptions = {
|
|
3898
3971
|
readonly run?: RunStylePropertiesOptions;
|
|
3899
|
-
} &
|
|
3972
|
+
} & StyleOptions;
|
|
3900
3973
|
type ICharacterStyleOptions = {
|
|
3901
3974
|
readonly id: string;
|
|
3902
3975
|
} & IBaseCharacterStyleOptions;
|
|
@@ -3906,8 +3979,8 @@ declare class StyleForCharacter extends Style {
|
|
|
3906
3979
|
}
|
|
3907
3980
|
//#endregion
|
|
3908
3981
|
//#region src/file/styles/factory.d.ts
|
|
3909
|
-
interface
|
|
3910
|
-
readonly document?:
|
|
3982
|
+
interface DefaultStylesOptions {
|
|
3983
|
+
readonly document?: DocumentDefaultsOptions;
|
|
3911
3984
|
readonly title?: IBaseParagraphStyleOptions;
|
|
3912
3985
|
readonly heading1?: IBaseParagraphStyleOptions;
|
|
3913
3986
|
readonly heading2?: IBaseParagraphStyleOptions;
|
|
@@ -3927,20 +4000,20 @@ interface IDefaultStylesOptions {
|
|
|
3927
4000
|
}
|
|
3928
4001
|
//#endregion
|
|
3929
4002
|
//#region src/file/styles/styles.d.ts
|
|
3930
|
-
interface
|
|
3931
|
-
readonly default?:
|
|
4003
|
+
interface StylesOptions {
|
|
4004
|
+
readonly default?: DefaultStylesOptions;
|
|
3932
4005
|
readonly initialStyles?: BaseXmlComponent | IXmlableObject;
|
|
3933
4006
|
readonly paragraphStyles?: readonly IParagraphStyleOptions[];
|
|
3934
4007
|
readonly characterStyles?: readonly ICharacterStyleOptions[];
|
|
3935
4008
|
readonly importedStyles?: readonly (XmlComponent | StyleForParagraph | StyleForCharacter | ImportedXmlComponent)[];
|
|
3936
4009
|
}
|
|
3937
4010
|
declare class Styles extends XmlComponent {
|
|
3938
|
-
constructor(options:
|
|
4011
|
+
constructor(options: StylesOptions);
|
|
3939
4012
|
}
|
|
3940
4013
|
//#endregion
|
|
3941
4014
|
//#region src/file/core-properties/properties.d.ts
|
|
3942
|
-
interface
|
|
3943
|
-
readonly sections: readonly
|
|
4015
|
+
interface PropertiesOptions {
|
|
4016
|
+
readonly sections: readonly SectionOptions[];
|
|
3944
4017
|
readonly title?: string;
|
|
3945
4018
|
readonly subject?: string;
|
|
3946
4019
|
readonly creator?: string;
|
|
@@ -3949,36 +4022,36 @@ interface IPropertiesOptions {
|
|
|
3949
4022
|
readonly lastModifiedBy?: string;
|
|
3950
4023
|
readonly revision?: number;
|
|
3951
4024
|
readonly externalStyles?: string;
|
|
3952
|
-
readonly styles?:
|
|
3953
|
-
readonly numbering?:
|
|
3954
|
-
readonly comments?:
|
|
3955
|
-
readonly bibliography?:
|
|
4025
|
+
readonly styles?: StylesOptions;
|
|
4026
|
+
readonly numbering?: NumberingOptions;
|
|
4027
|
+
readonly comments?: CommentsOptions;
|
|
4028
|
+
readonly bibliography?: BibliographyOptions;
|
|
3956
4029
|
readonly footnotes?: Readonly<Record<string, {
|
|
3957
|
-
readonly children: readonly (Paragraph |
|
|
4030
|
+
readonly children: readonly (Paragraph | ParagraphOptions | string)[];
|
|
3958
4031
|
}>>;
|
|
3959
4032
|
readonly endnotes?: Readonly<Record<string, {
|
|
3960
|
-
readonly children: readonly (Paragraph |
|
|
4033
|
+
readonly children: readonly (Paragraph | ParagraphOptions | string)[];
|
|
3961
4034
|
}>>;
|
|
3962
|
-
readonly background?:
|
|
4035
|
+
readonly background?: DocumentBackgroundOptions;
|
|
3963
4036
|
readonly features?: {
|
|
3964
4037
|
readonly trackRevisions?: boolean;
|
|
3965
4038
|
readonly updateFields?: boolean;
|
|
3966
|
-
readonly documentProtection?:
|
|
4039
|
+
readonly documentProtection?: DocumentProtectionOptions;
|
|
3967
4040
|
};
|
|
3968
4041
|
readonly compatabilityModeVersion?: number;
|
|
3969
|
-
readonly compatibility?:
|
|
3970
|
-
readonly customProperties?: readonly
|
|
4042
|
+
readonly compatibility?: CompatibilityOptions;
|
|
4043
|
+
readonly customProperties?: readonly CustomPropertyOptions[];
|
|
3971
4044
|
readonly evenAndOddHeaderAndFooters?: boolean;
|
|
3972
4045
|
readonly defaultTabStop?: number;
|
|
3973
|
-
readonly fonts?: readonly
|
|
3974
|
-
readonly hyphenation?:
|
|
4046
|
+
readonly fonts?: readonly EmbeddedFontOptions[];
|
|
4047
|
+
readonly hyphenation?: HyphenationOptions;
|
|
3975
4048
|
readonly characterSpacingControl?: "compressPunctuation" | "doNotCompress";
|
|
3976
4049
|
readonly view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
|
|
3977
4050
|
readonly zoom?: {
|
|
3978
4051
|
readonly percent?: number;
|
|
3979
4052
|
readonly val?: "none" | "fullPage" | "bestFit" | "textFit";
|
|
3980
4053
|
};
|
|
3981
|
-
readonly writeProtection?:
|
|
4054
|
+
readonly writeProtection?: WriteProtectionOptions;
|
|
3982
4055
|
readonly displayBackgroundShape?: boolean;
|
|
3983
4056
|
readonly embedTrueTypeFonts?: boolean;
|
|
3984
4057
|
readonly embedSystemFonts?: boolean;
|
|
@@ -3987,14 +4060,14 @@ interface IPropertiesOptions {
|
|
|
3987
4060
|
readonly name: string;
|
|
3988
4061
|
readonly val: string;
|
|
3989
4062
|
}[];
|
|
3990
|
-
readonly colorSchemeMapping?:
|
|
4063
|
+
readonly colorSchemeMapping?: SettingsOptions["colorSchemeMapping"];
|
|
3991
4064
|
}
|
|
3992
4065
|
declare class CoreProperties extends XmlComponent {
|
|
3993
|
-
constructor(options: Omit<
|
|
4066
|
+
constructor(options: Omit<PropertiesOptions, "sections">);
|
|
3994
4067
|
}
|
|
3995
4068
|
//#endregion
|
|
3996
4069
|
//#region src/file/endnotes-wrapper.d.ts
|
|
3997
|
-
declare class EndnotesWrapper implements
|
|
4070
|
+
declare class EndnotesWrapper implements ViewWrapper {
|
|
3998
4071
|
private readonly endnotes;
|
|
3999
4072
|
private readonly relationships;
|
|
4000
4073
|
constructor();
|
|
@@ -4003,7 +4076,7 @@ declare class EndnotesWrapper implements IViewWrapper {
|
|
|
4003
4076
|
}
|
|
4004
4077
|
//#endregion
|
|
4005
4078
|
//#region src/file/footnotes-wrapper.d.ts
|
|
4006
|
-
declare class FootnotesWrapper implements
|
|
4079
|
+
declare class FootnotesWrapper implements ViewWrapper {
|
|
4007
4080
|
private readonly footnotess;
|
|
4008
4081
|
private readonly relationships;
|
|
4009
4082
|
constructor();
|
|
@@ -4012,20 +4085,20 @@ declare class FootnotesWrapper implements IViewWrapper {
|
|
|
4012
4085
|
}
|
|
4013
4086
|
//#endregion
|
|
4014
4087
|
//#region src/file/header.d.ts
|
|
4015
|
-
interface
|
|
4088
|
+
interface HeaderOptions {
|
|
4016
4089
|
readonly children: readonly SectionChild[];
|
|
4017
4090
|
}
|
|
4018
4091
|
declare class Header {
|
|
4019
|
-
readonly options:
|
|
4020
|
-
constructor(options?:
|
|
4092
|
+
readonly options: HeaderOptions;
|
|
4093
|
+
constructor(options?: HeaderOptions);
|
|
4021
4094
|
}
|
|
4022
4095
|
declare class Footer {
|
|
4023
|
-
readonly options:
|
|
4024
|
-
constructor(options?:
|
|
4096
|
+
readonly options: HeaderOptions;
|
|
4097
|
+
constructor(options?: HeaderOptions);
|
|
4025
4098
|
}
|
|
4026
4099
|
//#endregion
|
|
4027
4100
|
//#region src/file/file.d.ts
|
|
4028
|
-
interface
|
|
4101
|
+
interface SectionOptions {
|
|
4029
4102
|
readonly headers?: {
|
|
4030
4103
|
readonly default?: Header | readonly SectionChild[];
|
|
4031
4104
|
readonly first?: Header | readonly SectionChild[];
|
|
@@ -4062,7 +4135,7 @@ declare class File {
|
|
|
4062
4135
|
private readonly comments;
|
|
4063
4136
|
private readonly bibliography;
|
|
4064
4137
|
private readonly fontWrapper;
|
|
4065
|
-
constructor(options:
|
|
4138
|
+
constructor(options: PropertiesOptions);
|
|
4066
4139
|
private addSection;
|
|
4067
4140
|
private createHeader;
|
|
4068
4141
|
private createFooter;
|
|
@@ -4093,9 +4166,9 @@ declare class File {
|
|
|
4093
4166
|
}
|
|
4094
4167
|
//#endregion
|
|
4095
4168
|
//#region src/file/xml-components/base.d.ts
|
|
4096
|
-
interface
|
|
4169
|
+
interface Context extends Context$1<File> {
|
|
4097
4170
|
readonly file: File;
|
|
4098
|
-
readonly viewWrapper:
|
|
4171
|
+
readonly viewWrapper: ViewWrapper;
|
|
4099
4172
|
}
|
|
4100
4173
|
//#endregion
|
|
4101
4174
|
//#region src/file/xml-components/attributes.d.ts
|
|
@@ -4154,6 +4227,9 @@ declare class Attributes extends XmlAttributeComponent$1<{
|
|
|
4154
4227
|
//#region src/file/xml-components/simple-elements.d.ts
|
|
4155
4228
|
declare const createStringElement: (name: string, value: string) => XmlComponent$1;
|
|
4156
4229
|
//#endregion
|
|
4230
|
+
//#region src/file/xml-components/index.d.ts
|
|
4231
|
+
type BuilderChild = BaseXmlComponent | IXmlableObject | string;
|
|
4232
|
+
//#endregion
|
|
4157
4233
|
//#region src/file/paragraph/formatting/alignment.d.ts
|
|
4158
4234
|
declare const AlignmentType: {
|
|
4159
4235
|
readonly START: "start";
|
|
@@ -4173,6 +4249,7 @@ declare const AlignmentType: {
|
|
|
4173
4249
|
declare const createAlignment: (type: (typeof AlignmentType)[keyof typeof AlignmentType]) => XmlComponent;
|
|
4174
4250
|
//#endregion
|
|
4175
4251
|
//#region src/file/paragraph/formatting/unordered-list.d.ts
|
|
4252
|
+
declare function buildNumberProperties(numberId: number | string, indentLevel: number): IXmlableObject;
|
|
4176
4253
|
declare class NumberProperties extends XmlComponent {
|
|
4177
4254
|
constructor(numberId: number | string, indentLevel: number);
|
|
4178
4255
|
}
|
|
@@ -4187,7 +4264,7 @@ declare const SpaceType: {
|
|
|
4187
4264
|
};
|
|
4188
4265
|
//#endregion
|
|
4189
4266
|
//#region src/file/textbox/textbox.d.ts
|
|
4190
|
-
type ITextboxOptions = Omit<
|
|
4267
|
+
type ITextboxOptions = Omit<ParagraphOptions, "style" | "children"> & {
|
|
4191
4268
|
readonly style?: VmlShapeStyle;
|
|
4192
4269
|
readonly children?: readonly FileChild[];
|
|
4193
4270
|
};
|
|
@@ -4200,23 +4277,14 @@ declare class Textbox extends XmlComponent implements FileChild {
|
|
|
4200
4277
|
}: ITextboxOptions);
|
|
4201
4278
|
}
|
|
4202
4279
|
declare namespace index_d_exports$3 {
|
|
4203
|
-
export { COLOR_CATEGORIES, DEFAULT_DRAWING_XML,
|
|
4280
|
+
export { COLOR_CATEGORIES, DEFAULT_DRAWING_XML, LAYOUT_CATEGORIES, STYLE_CATEGORIES, SmartArtCollection, SmartArtData, TreeNode, createDataModel, getColorXml, getLayoutXml, getStyleXml };
|
|
4204
4281
|
}
|
|
4205
4282
|
declare namespace index_d_exports$2 {
|
|
4206
|
-
export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Bdo, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, ChartCollection, ChartMediaData, ChartRun, ChartSpace, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CnfStyleOptions, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, Document, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, DropDownListOptions, EMPTY_OBJECT, EditGroup, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, File, FileChild, FlatTextOptions, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IAltChunkData, IAltChunkOptions, IBackgroundImageOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBibliographyOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, IChartChild, IChartData, IChartOptions, IChartSeriesData, IChartSpaceOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, ICnfStyleOptions, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDirOptions, IDistance, IDocGridAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageChild, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathBorderBoxOptions, IMathBoxOptions, IMathChild, IMathEqArrOptions, IMathFractionOptions, IMathFunctionOptions, IMathGroupChrOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathMatrixOptions, IMathOptions, IMathParagraphOptions, IMathPhantOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphJsonChild, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPermStartOptions, IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, ISdtBlockOptions, ISdtCellOptions, ISdtRowOptions, ISdtRunOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISmartArtChild, ISmartArtData, ISmartArtNode, ISmartArtOptions, ISpacingProperties, IStylesOptions, ISubDocData, ISubDocOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITablePropertyExOptions, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, ITextboxOptions, ITreeNode, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxPropertiesOptions, MathBox, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrPropertiesOptions, MathFraction, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrPropertiesOptions, MathIntegral, MathJson, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitUpper, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathParagraph, MathPhant, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubSuperScript, MathSubSuperScriptPropertiesOptions, MathSum, MathSuperScript, Media, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OverlapType, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PermEnd, PermStart, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunStylePropertiesOptions, STYLE_CATEGORIES, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtTextOptions, SectionChild, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtMediaData, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SubDoc, SubDocCollection, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TablePropertyExceptions, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, UnderlineType, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, buildDocumentAttributes, buildRunProperties, chartAttr, coerceMathJson, coerceSectionChild, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, getColorXml, getLayoutXml, getStyleXml, parseMathChildren, sectionMarginDefaults, sectionPageSizeDefaults, wrapEl };
|
|
4283
|
+
export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AltChunkData, AltChunkOptions, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BackgroundImageOptions, BaseXmlComponent, Bdo, Bibliography, BibliographyOptions, Body, BodyPropertiesOptions, Bookmark, BookmarkEnd, BookmarkOptions, BookmarkStart, Border, BorderOptions, BorderStyle, BordersOptions, BuilderChild, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CharacterSet, ChartChild, ChartCollection, ChartData, ChartMediaData, ChartOptions, ChartRun, ChartSeriesData, ChartSpace, ChartSpaceOptions, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CheckboxSymbolOptions, CheckboxSymbolProperties, CnfConditionalOptions, CnfStyleOptions, Column, ColumnAttributes, ColumnBreak, ColumnsAttributes, Comment, CommentOptions, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, CommentsOptions, ConcreteHyperlink, ConcreteHyperlinkOptions, ConcreteNumbering, ConcreteNumberingOptions, Context, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, DirOptions, Distance, DocGridAttributesProperties, Document, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundOptions, DocumentDefaults, DocumentDefaultsOptions, DocumentFooter, DocumentGridType, DocumentHeader, DocumentOptions, Drawing, DrawingOptions, DropCapType, DropDownListOptions, EMPTY_OBJECT, EditGroup, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, Endnotes, ExternalHyperlink, ExternalHyperlinkOptions, File, FileChild, FlatTextOptions, Floating, FontAttributesProperties, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterGroup, HeaderFooterReferenceOptions, HeaderFooterReferenceType, HeaderFooterType, HeaderOptions, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionOptions, HorizontalPositionRelativeFrom, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, ICellMergeAttributes, ICharacterStyleOptions, IExtendedMediaData, IFrameOptions, IGroupChildMediaData, IImageOptions, IMediaData, IParagraphJsonChild, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IRunPropertiesChangeOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISymbolRunOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITextboxOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageChild, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, IndentAttributesProperties, InitializableXmlComponent, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, InternalHyperlinkOptions, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LevelsOptions, LineNumberAttributes, LineNumberRestartFormat, LineRuleType, Margins, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxOptions, MathBorderBoxPropertiesOptions, MathBox, MathBoxOptions, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathChild, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrOptions, MathEqArrPropertiesOptions, MathFraction, MathFractionOptions, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionOptions, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrOptions, MathGroupChrPropertiesOptions, MathIntegral, MathIntegralOptions, MathJson, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitLowerOptions, MathLimitUpper, MathLimitUpperOptions, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixOptions, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathOptions, MathParagraph, MathParagraphOptions, MathPhant, MathPhantOptions, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPreSubSuperScriptOptions, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalOptions, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubScriptOptions, MathSubSuperScript, MathSubSuperScriptOptions, MathSubSuperScriptPropertiesOptions, MathSum, MathSumOptions, MathSuperScript, MathSuperScriptOptions, Media, MediaDataTransformation, MediaTransformation, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberProperties, NumberedItemReference, NumberedItemReferenceFormat, NumberedItemReferenceOptions, Numbering, NumberingOptions, OverlapType, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBordersOptions, PageBreak, PageBreakBefore, PageMarginAttributes, PageNumber, PageNumberElement, PageNumberSeparator, PageNumberTypeAttributes, PageOrientation, PageReference, PageReferenceOptions, PageSizeAttributes, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphOptions, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphPropertiesOptions, ParagraphPropertiesResult, ParagraphRunProperties, PermEnd, PermStart, PermStartOptions, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, PropertiesOptions, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunOptions, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunPropertiesOptions, RunStylePropertiesOptions, STYLE_CATEGORIES, SdtBlockOptions, SdtCellOptions, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtRowOptions, SdtRunOptions, SdtTextOptions, SectionChild, SectionOptions, SectionProperties, SectionPropertiesChange, SectionPropertiesOptionsBase, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingAttributesProperties, ShadingType, SimpleField, SimpleMailMergeField, SmartArtChild, SmartArtCollection, SmartArtData, SmartArtMediaData, SmartArtNode, SmartArtOptions, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, SpacingProperties, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, StylesOptions, SubDoc, SubDocCollection, SubDocData, SubDocOptions, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableBordersOptions, TableCell, TableCellBorders, TableCellBordersOptions, TableCellOptions, TableFloatOptions, TableLayoutType, TableLookOptions, TableOfContents, TableOfContentsOptions, TableOptions, TableProperties, TablePropertiesOptionsBase, TablePropertyExOptions, TablePropertyExceptions, TableRow, TableRowOptions, TableRowProperties, TableRowPropertiesChange, TableRowPropertiesOptionsBase, TableVerticalAlign, TableWidthProperties, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, TextVertOverflowType, TextVerticalType, TextWrapping, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, TreeNode, UnderlineType, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionOptions, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, attrObj, buildBorderObj, buildCellMergeObj, buildCnfStyleObj, buildDeletedTableCellObj, buildDeletedTableRowObj, buildDivIdObj, buildDocumentAttributes, buildEmphasisMarkObj, buildFramePropertiesObj, buildGridSpan, buildIndentObj, buildInsertedTableCellObj, buildInsertedTableRowObj, buildNumberProperties, buildOutlineLevelObj, buildParagraphBorders, buildParagraphProperties, buildRunFontsObj, buildRunProperties, buildShadingObj, buildSpacingObj, buildTabStopObj, buildTableBorders, buildTableCellBorders, buildTableFloatPropertiesObj, buildTableProperties, buildTableRowProperties, buildTableRowPropertiesChangeObj, buildTableWidthObj, buildTextDirection, buildThematicBreakObj, buildUnderlineObj, buildVerticalMerge, chartAttr, coerceMathJson, coerceSectionChild, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, getColorXml, getLayoutXml, getStyleXml, hpsMeasureObj, numberValObj, onOffObj, parseMathChildren, sectionMarginDefaults, sectionPageSizeDefaults, stringContainerObj, stringEnumValObj, stringValObj, wrapEl };
|
|
4207
4284
|
}
|
|
4208
4285
|
//#endregion
|
|
4209
4286
|
//#region src/export/packer/packer.d.ts
|
|
4210
|
-
declare
|
|
4211
|
-
static pack<T extends OutputType$1>(file: File, type: T, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<OutputByType$1[T]>;
|
|
4212
|
-
static toString(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<string>;
|
|
4213
|
-
static toBuffer(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<Buffer>;
|
|
4214
|
-
static toBase64String(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<string>;
|
|
4215
|
-
static toBlob(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<Blob>;
|
|
4216
|
-
static toArrayBuffer(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<ArrayBuffer>;
|
|
4217
|
-
static toStream(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Readable;
|
|
4218
|
-
private static readonly compiler;
|
|
4219
|
-
}
|
|
4287
|
+
declare const Packer: _$_office_open_core0.Packer<File>;
|
|
4220
4288
|
//#endregion
|
|
4221
4289
|
//#region src/util/convenience-functions.d.ts
|
|
4222
4290
|
declare const abstractNumUniqueNumericIdGen: () => (() => number);
|
|
@@ -4278,6 +4346,7 @@ interface DocxPartRefs {
|
|
|
4278
4346
|
footnotes?: string;
|
|
4279
4347
|
endnotes?: string;
|
|
4280
4348
|
comments?: string;
|
|
4349
|
+
hyperlinks: Map<string, string>;
|
|
4281
4350
|
charts: Map<string, string>;
|
|
4282
4351
|
diagramData: Map<string, string>;
|
|
4283
4352
|
media: Map<string, string>;
|
|
@@ -4297,11 +4366,11 @@ interface DocxDocument {
|
|
|
4297
4366
|
appProps?: string;
|
|
4298
4367
|
customProps?: string;
|
|
4299
4368
|
}
|
|
4300
|
-
declare function parseDocument(data:
|
|
4301
|
-
declare function parseDocx(data:
|
|
4369
|
+
declare function parseDocument(data: DataType): PropertiesOptions;
|
|
4370
|
+
declare function parseDocx(data: DataType): DocxDocument;
|
|
4302
4371
|
declare namespace index_d_exports {
|
|
4303
|
-
export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Bdo, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, ChartCollection, ChartMediaData, ChartRun, ChartSpace, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CnfStyleOptions, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, File as Document, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, DocxDocument, DocxPartRefs, Drawing, DropCapType, DropDownListOptions, EMPTY_OBJECT, EditGroup, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, File, FileChild, FlatTextOptions, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IAltChunkData, IAltChunkOptions, IBackgroundImageOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBibliographyOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, IChartChild, IChartData, IChartOptions, IChartSeriesData, IChartSpaceOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, ICnfStyleOptions, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDirOptions, IDistance, IDocGridAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageChild, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathBorderBoxOptions, IMathBoxOptions, IMathChild, IMathEqArrOptions, IMathFractionOptions, IMathFunctionOptions, IMathGroupChrOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathMatrixOptions, IMathOptions, IMathParagraphOptions, IMathPhantOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphJsonChild, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, IPermStartOptions, IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, ISdtBlockOptions, ISdtCellOptions, ISdtRowOptions, ISdtRunOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISmartArtChild, ISmartArtData, ISmartArtNode, ISmartArtOptions, ISpacingProperties, IStylesOptions, ISubDocData, ISubDocOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITablePropertyExOptions, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, ITextboxOptions, ITreeNode, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxPropertiesOptions, MathBox, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrPropertiesOptions, MathFraction, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrPropertiesOptions, MathIntegral, MathJson, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitUpper, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathParagraph, MathPhant, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubSuperScript, MathSubSuperScriptPropertiesOptions, MathSum, MathSuperScript, Media, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, PermEnd, PermStart, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, PrettifyType, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunStylePropertiesOptions, STYLE_CATEGORIES, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtTextOptions, SectionChild, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtMediaData, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SubDoc, SubDocCollection, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TablePropertyExceptions, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, UnderlineType, UniqueNumericIdCreator, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, buildDocumentAttributes, buildRunProperties, chartAttr, coerceMathJson, coerceSectionChild, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, docPropertiesUniqueNumericIdGen, getColorXml, getLayoutXml, getStyleXml, hashedId, parseArchive, parseDocument, parseDocx, parseMathChildren, patchDetector, patchDocument, sectionMarginDefaults, sectionPageSizeDefaults, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl };
|
|
4372
|
+
export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AltChunkData, AltChunkOptions, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BackgroundImageOptions, BaseXmlComponent, Bdo, Bibliography, BibliographyOptions, Body, BodyPropertiesOptions, Bookmark, BookmarkEnd, BookmarkOptions, BookmarkStart, Border, BorderOptions, BorderStyle, BordersOptions, BuilderChild, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CharacterSet, ChartChild, ChartCollection, ChartData, ChartMediaData, ChartOptions, ChartRun, ChartSeriesData, ChartSpace, ChartSpaceOptions, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CheckboxSymbolOptions, CheckboxSymbolProperties, CnfConditionalOptions, CnfStyleOptions, Column, ColumnAttributes, ColumnBreak, ColumnsAttributes, Comment, CommentOptions, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, CommentsOptions, ConcreteHyperlink, ConcreteHyperlinkOptions, ConcreteNumbering, ConcreteNumberingOptions, Context, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, DirOptions, Distance, DocGridAttributesProperties, File as Document, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundOptions, DocumentDefaults, DocumentDefaultsOptions, DocumentFooter, DocumentGridType, DocumentHeader, DocumentOptions, DocxDocument, DocxPartRefs, Drawing, DrawingOptions, DropCapType, DropDownListOptions, EMPTY_OBJECT, EditGroup, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, Endnotes, ExternalHyperlink, ExternalHyperlinkOptions, File, FileChild, FlatTextOptions, Floating, FontAttributesProperties, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterGroup, HeaderFooterReferenceOptions, HeaderFooterReferenceType, HeaderFooterType, HeaderOptions, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionOptions, HorizontalPositionRelativeFrom, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, ICellMergeAttributes, ICharacterStyleOptions, IExtendedMediaData, IFrameOptions, IGroupChildMediaData, IImageOptions, IMediaData, IParagraphJsonChild, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, IRunPropertiesChangeOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISymbolRunOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITextboxOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageChild, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, IndentAttributesProperties, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, InternalHyperlinkOptions, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LevelsOptions, LineNumberAttributes, LineNumberRestartFormat, LineRuleType, Margins, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxOptions, MathBorderBoxPropertiesOptions, MathBox, MathBoxOptions, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathChild, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrOptions, MathEqArrPropertiesOptions, MathFraction, MathFractionOptions, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionOptions, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrOptions, MathGroupChrPropertiesOptions, MathIntegral, MathIntegralOptions, MathJson, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitLowerOptions, MathLimitUpper, MathLimitUpperOptions, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixOptions, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathOptions, MathParagraph, MathParagraphOptions, MathPhant, MathPhantOptions, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPreSubSuperScriptOptions, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalOptions, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubScriptOptions, MathSubSuperScript, MathSubSuperScriptOptions, MathSubSuperScriptPropertiesOptions, MathSum, MathSumOptions, MathSuperScript, MathSuperScriptOptions, Media, MediaDataTransformation, MediaTransformation, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberProperties, NumberedItemReference, NumberedItemReferenceFormat, NumberedItemReferenceOptions, Numbering, NumberingOptions, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBordersOptions, PageBreak, PageBreakBefore, PageMarginAttributes, PageNumber, PageNumberElement, PageNumberSeparator, PageNumberTypeAttributes, PageOrientation, PageReference, PageReferenceOptions, PageSizeAttributes, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphOptions, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphPropertiesOptions, ParagraphPropertiesResult, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, PermEnd, PermStart, PermStartOptions, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, PrettifyType, PropertiesOptions, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunOptions, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunPropertiesOptions, RunStylePropertiesOptions, STYLE_CATEGORIES, SdtBlockOptions, SdtCellOptions, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtRowOptions, SdtRunOptions, SdtTextOptions, SectionChild, SectionOptions, SectionProperties, SectionPropertiesChange, SectionPropertiesOptionsBase, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingAttributesProperties, ShadingType, SimpleField, SimpleMailMergeField, SmartArtChild, SmartArtCollection, SmartArtData, SmartArtMediaData, SmartArtNode, SmartArtOptions, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, SpacingProperties, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, StylesOptions, SubDoc, SubDocCollection, SubDocData, SubDocOptions, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableBordersOptions, TableCell, TableCellBorders, TableCellBordersOptions, TableCellOptions, TableFloatOptions, TableLayoutType, TableLookOptions, TableOfContents, TableOfContentsOptions, TableOptions, TableProperties, TablePropertiesOptionsBase, TablePropertyExOptions, TablePropertyExceptions, TableRow, TableRowOptions, TableRowProperties, TableRowPropertiesChange, TableRowPropertiesOptionsBase, TableVerticalAlign, TableWidthProperties, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, TextVertOverflowType, TextVerticalType, TextWrapping, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, TreeNode, UnderlineType, UniqueNumericIdCreator, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionOptions, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, attrObj, bookmarkUniqueNumericIdGen, buildBorderObj, buildCellMergeObj, buildCnfStyleObj, buildDeletedTableCellObj, buildDeletedTableRowObj, buildDivIdObj, buildDocumentAttributes, buildEmphasisMarkObj, buildFramePropertiesObj, buildGridSpan, buildIndentObj, buildInsertedTableCellObj, buildInsertedTableRowObj, buildNumberProperties, buildOutlineLevelObj, buildParagraphBorders, buildParagraphProperties, buildRunFontsObj, buildRunProperties, buildShadingObj, buildSpacingObj, buildTabStopObj, buildTableBorders, buildTableCellBorders, buildTableFloatPropertiesObj, buildTableProperties, buildTableRowProperties, buildTableRowPropertiesChangeObj, buildTableWidthObj, buildTextDirection, buildThematicBreakObj, buildUnderlineObj, buildVerticalMerge, chartAttr, coerceMathJson, coerceSectionChild, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, docPropertiesUniqueNumericIdGen, getColorXml, getLayoutXml, getStyleXml, hashedId, hpsMeasureObj, numberValObj, onOffObj, parseArchive, parseDocument, parseDocx, parseMathChildren, patchDetector, patchDocument, sectionMarginDefaults, sectionPageSizeDefaults, stringContainerObj, stringEnumValObj, stringValObj, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl };
|
|
4304
4373
|
}
|
|
4305
4374
|
//#endregion
|
|
4306
|
-
export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, type AttributeData, type AttributeMap, type AttributePayload, Attributes, BaseXmlComponent, Bdo, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, ChartCollection, ChartMediaData, ChartRun, ChartSpace, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CnfStyleOptions, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, DocxDocument, DocxPartRefs, Drawing, DropCapType, DropDownListOptions, EMPTY_OBJECT, EditGroup, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FlatTextOptions, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IAltChunkData, IAltChunkOptions, IBackgroundImageOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBibliographyOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, IChartChild, type IChartData, IChartOptions, type IChartSeriesData, type IChartSpaceOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, ICnfStyleOptions, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, type IContext, IDirOptions, IDistance, IDocGridAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageChild, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathBorderBoxOptions, IMathBoxOptions, IMathChild, IMathEqArrOptions, IMathFractionOptions, IMathFunctionOptions, IMathGroupChrOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathMatrixOptions, IMathOptions, IMathParagraphOptions, IMathPhantOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphJsonChild, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, IPermStartOptions, type IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, ISdtBlockOptions, ISdtCellOptions, ISdtRowOptions, ISdtRunOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISmartArtChild, type ISmartArtData, ISmartArtNode, ISmartArtOptions, ISpacingProperties, IStylesOptions, ISubDocData, ISubDocOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITablePropertyExOptions, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, ITextboxOptions, type ITreeNode, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, type IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxPropertiesOptions, MathBox, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrPropertiesOptions, MathFraction, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrPropertiesOptions, MathIntegral, MathJson, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitUpper, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathParagraph, MathPhant, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubSuperScript, MathSubSuperScriptPropertiesOptions, MathSum, MathSuperScript, Media, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, type OutputByType, type OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, PermEnd, PermStart, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, PrettifyType, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunStylePropertiesOptions, STYLE_CATEGORIES, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtTextOptions, SectionChild, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtMediaData, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SubDoc, SubDocCollection, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TablePropertyExceptions, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, UnderlineType, type UniqueNumericIdCreator, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, buildDocumentAttributes, buildRunProperties, chartAttr, coerceMathJson, coerceSectionChild, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, docPropertiesUniqueNumericIdGen, getColorXml, getLayoutXml, getStyleXml, hashedId, parseArchive, parseDocument, parseDocx, parseMathChildren, patchDetector, patchDocument, sectionMarginDefaults, sectionPageSizeDefaults, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl };
|
|
4375
|
+
export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AltChunkData, AltChunkOptions, AnnotationReference, type AttributeData, type AttributeMap, type AttributePayload, Attributes, BackgroundImageOptions, BaseXmlComponent, Bdo, Bibliography, BibliographyOptions, Body, BodyPropertiesOptions, Bookmark, BookmarkEnd, BookmarkOptions, BookmarkStart, Border, BorderOptions, BorderStyle, BordersOptions, BuilderChild, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CharacterSet, ChartChild, ChartCollection, type ChartData, ChartMediaData, ChartOptions, ChartRun, type ChartSeriesData, ChartSpace, type ChartSpaceOptions, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CheckboxSymbolOptions, CheckboxSymbolProperties, CnfConditionalOptions, CnfStyleOptions, Column, ColumnAttributes, ColumnBreak, ColumnsAttributes, Comment, CommentOptions, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, CommentsOptions, ConcreteHyperlink, ConcreteHyperlinkOptions, ConcreteNumbering, ConcreteNumberingOptions, type Context, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, DirOptions, Distance, DocGridAttributesProperties, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundOptions, DocumentDefaults, DocumentDefaultsOptions, DocumentFooter, DocumentGridType, DocumentHeader, DocumentOptions, DocxDocument, DocxPartRefs, Drawing, DrawingOptions, DropCapType, DropDownListOptions, EMPTY_OBJECT, EditGroup, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, Endnotes, ExternalHyperlink, ExternalHyperlinkOptions, FileChild, FlatTextOptions, Floating, FontAttributesProperties, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterGroup, HeaderFooterReferenceOptions, HeaderFooterReferenceType, HeaderFooterType, HeaderOptions, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionOptions, HorizontalPositionRelativeFrom, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, ICellMergeAttributes, ICharacterStyleOptions, IExtendedMediaData, IFrameOptions, IGroupChildMediaData, IImageOptions, IMediaData, IParagraphJsonChild, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, IRunPropertiesChangeOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISymbolRunOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITextboxOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, type IXmlableObject, IgnoreIfEmptyXmlComponent, ImageChild, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, IndentAttributesProperties, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, InternalHyperlinkOptions, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LevelsOptions, LineNumberAttributes, LineNumberRestartFormat, LineRuleType, Margins, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxOptions, MathBorderBoxPropertiesOptions, MathBox, MathBoxOptions, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathChild, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrOptions, MathEqArrPropertiesOptions, MathFraction, MathFractionOptions, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionOptions, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrOptions, MathGroupChrPropertiesOptions, MathIntegral, MathIntegralOptions, MathJson, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitLowerOptions, MathLimitUpper, MathLimitUpperOptions, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixOptions, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathOptions, MathParagraph, MathParagraphOptions, MathPhant, MathPhantOptions, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPreSubSuperScriptOptions, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalOptions, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubScriptOptions, MathSubSuperScript, MathSubSuperScriptOptions, MathSubSuperScriptPropertiesOptions, MathSum, MathSumOptions, MathSuperScript, MathSuperScriptOptions, Media, MediaDataTransformation, MediaTransformation, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberProperties, NumberedItemReference, NumberedItemReferenceFormat, NumberedItemReferenceOptions, Numbering, NumberingOptions, type OutputByType, type OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBordersOptions, PageBreak, PageBreakBefore, PageMarginAttributes, PageNumber, PageNumberElement, PageNumberSeparator, PageNumberTypeAttributes, PageOrientation, PageReference, PageReferenceOptions, PageSizeAttributes, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphOptions, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphPropertiesOptions, ParagraphPropertiesResult, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, PermEnd, PermStart, PermStartOptions, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, PrettifyType, type PropertiesOptions, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunOptions, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunPropertiesOptions, RunStylePropertiesOptions, STYLE_CATEGORIES, SdtBlockOptions, SdtCellOptions, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtRowOptions, SdtRunOptions, SdtTextOptions, SectionChild, SectionOptions, SectionProperties, SectionPropertiesChange, SectionPropertiesOptionsBase, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingAttributesProperties, ShadingType, SimpleField, SimpleMailMergeField, SmartArtChild, SmartArtCollection, type SmartArtData, SmartArtMediaData, SmartArtNode, SmartArtOptions, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, SpacingProperties, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, StylesOptions, SubDoc, SubDocCollection, SubDocData, SubDocOptions, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableBordersOptions, TableCell, TableCellBorders, TableCellBordersOptions, TableCellOptions, TableFloatOptions, TableLayoutType, TableLookOptions, TableOfContents, TableOfContentsOptions, TableOptions, TableProperties, TablePropertiesOptionsBase, TablePropertyExOptions, TablePropertyExceptions, TableRow, TableRowOptions, TableRowProperties, TableRowPropertiesChange, TableRowPropertiesOptionsBase, TableVerticalAlign, TableWidthProperties, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, TextVertOverflowType, TextVerticalType, TextWrapping, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, type TreeNode, UnderlineType, type UniqueNumericIdCreator, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionOptions, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, attrObj, bookmarkUniqueNumericIdGen, buildBorderObj, buildCellMergeObj, buildCnfStyleObj, buildDeletedTableCellObj, buildDeletedTableRowObj, buildDivIdObj, buildDocumentAttributes, buildEmphasisMarkObj, buildFramePropertiesObj, buildGridSpan, buildIndentObj, buildInsertedTableCellObj, buildInsertedTableRowObj, buildNumberProperties, buildOutlineLevelObj, buildParagraphBorders, buildParagraphProperties, buildRunFontsObj, buildRunProperties, buildShadingObj, buildSpacingObj, buildTabStopObj, buildTableBorders, buildTableCellBorders, buildTableFloatPropertiesObj, buildTableProperties, buildTableRowProperties, buildTableRowPropertiesChangeObj, buildTableWidthObj, buildTextDirection, buildThematicBreakObj, buildUnderlineObj, buildVerticalMerge, chartAttr, coerceMathJson, coerceSectionChild, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, docPropertiesUniqueNumericIdGen, getColorXml, getLayoutXml, getStyleXml, hashedId, hpsMeasureObj, numberValObj, onOffObj, parseArchive, parseDocument, parseDocx, parseMathChildren, patchDetector, patchDocument, sectionMarginDefaults, sectionPageSizeDefaults, stringContainerObj, stringEnumValObj, stringValObj, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl };
|
|
4307
4376
|
//# sourceMappingURL=index.d.mts.map
|