@office-open/docx 0.9.4 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{context-CA7wUvmY.mjs → context-DfxK5XnG.mjs} +43 -1076
- package/dist/context-DfxK5XnG.mjs.map +1 -0
- package/dist/{core-properties-CR-T1Wqh.d.mts → core-properties-DMRyJWDp.d.mts} +693 -677
- package/dist/core-properties-DMRyJWDp.d.mts.map +1 -0
- package/dist/{document-B_uvEH8b.mjs → document-D2OTVcbX.mjs} +2290 -1013
- package/dist/document-D2OTVcbX.mjs.map +1 -0
- package/dist/{generate-_AmBlI4o.mjs → generate-B2i9hUSF.mjs} +3 -3
- package/dist/{generate-_AmBlI4o.mjs.map → generate-B2i9hUSF.mjs.map} +1 -1
- package/dist/generate.d.mts +1 -1
- package/dist/generate.mjs +1 -1
- package/dist/index.d.mts +12 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/{parse-7SJ1sm-D.mjs → parse-DqXV5xqQ.mjs} +3 -28
- package/dist/parse-DqXV5xqQ.mjs.map +1 -0
- package/dist/parse.d.mts +1 -1
- package/dist/parse.mjs +1 -1
- package/dist/patch/index.d.mts +1 -1
- package/dist/patch/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/context-CA7wUvmY.mjs.map +0 -1
- package/dist/core-properties-CR-T1Wqh.d.mts.map +0 -1
- package/dist/document-B_uvEH8b.mjs.map +0 -1
- package/dist/parse-7SJ1sm-D.mjs.map +0 -1
|
@@ -108,6 +108,48 @@ interface AltChunkOptions {
|
|
|
108
108
|
matchSrc?: boolean;
|
|
109
109
|
}
|
|
110
110
|
//#endregion
|
|
111
|
+
//#region src/shared/border.d.ts
|
|
112
|
+
interface BorderOptions {
|
|
113
|
+
style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
114
|
+
color?: string;
|
|
115
|
+
themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
|
|
116
|
+
themeTint?: string;
|
|
117
|
+
themeShade?: string;
|
|
118
|
+
shadow?: boolean;
|
|
119
|
+
frame?: boolean;
|
|
120
|
+
size?: number;
|
|
121
|
+
space?: number;
|
|
122
|
+
}
|
|
123
|
+
declare const BorderStyle: {
|
|
124
|
+
readonly SINGLE: "single";
|
|
125
|
+
readonly DASH_DOT_STROKED: "dashDotStroked";
|
|
126
|
+
readonly DASHED: "dashed";
|
|
127
|
+
readonly DASH_SMALL_GAP: "dashSmallGap";
|
|
128
|
+
readonly DOT_DASH: "dotDash";
|
|
129
|
+
readonly DOT_DOT_DASH: "dotDotDash";
|
|
130
|
+
readonly DOTTED: "dotted";
|
|
131
|
+
readonly DOUBLE: "double";
|
|
132
|
+
readonly DOUBLE_WAVE: "doubleWave";
|
|
133
|
+
readonly INSET: "inset";
|
|
134
|
+
readonly NIL: "nil";
|
|
135
|
+
readonly NONE: "none";
|
|
136
|
+
readonly OUTSET: "outset";
|
|
137
|
+
readonly THICK: "thick";
|
|
138
|
+
readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
|
|
139
|
+
readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
|
|
140
|
+
readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
|
|
141
|
+
readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
|
|
142
|
+
readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
|
|
143
|
+
readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
|
|
144
|
+
readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
|
|
145
|
+
readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
|
|
146
|
+
readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
|
|
147
|
+
readonly THREE_D_EMBOSS: "threeDEmboss";
|
|
148
|
+
readonly THREE_D_ENGRAVE: "threeDEngrave";
|
|
149
|
+
readonly TRIPLE: "triple";
|
|
150
|
+
readonly WAVE: "wave";
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
111
153
|
//#region src/shared/shading.d.ts
|
|
112
154
|
interface ShadingAttributesProperties {
|
|
113
155
|
fill?: string;
|
|
@@ -167,6 +209,286 @@ interface ChangedAttributesProperties {
|
|
|
167
209
|
date: string;
|
|
168
210
|
}
|
|
169
211
|
//#endregion
|
|
212
|
+
//#region src/parts/paragraph/run/east-asian-layout.d.ts
|
|
213
|
+
declare const CombineBracketsType: {
|
|
214
|
+
readonly NONE: "none";
|
|
215
|
+
readonly ROUND: "round";
|
|
216
|
+
readonly SQUARE: "square";
|
|
217
|
+
readonly ANGLE: "angle";
|
|
218
|
+
readonly CURLY: "curly";
|
|
219
|
+
};
|
|
220
|
+
interface EastAsianLayoutOptions {
|
|
221
|
+
id?: number;
|
|
222
|
+
combine?: boolean;
|
|
223
|
+
combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
|
|
224
|
+
vert?: boolean;
|
|
225
|
+
vertCompress?: boolean;
|
|
226
|
+
}
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region src/parts/paragraph/run/emphasis-mark.d.ts
|
|
229
|
+
declare const EmphasisMarkType: {
|
|
230
|
+
readonly NONE: "none";
|
|
231
|
+
readonly COMMA: "comma";
|
|
232
|
+
readonly CIRCLE: "circle";
|
|
233
|
+
readonly DOT: "dot";
|
|
234
|
+
readonly UNDER_DOT: "underDot";
|
|
235
|
+
};
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/parts/paragraph/run/formatting.d.ts
|
|
238
|
+
interface ColorOptions {
|
|
239
|
+
val?: string;
|
|
240
|
+
themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
|
|
241
|
+
themeTint?: string;
|
|
242
|
+
themeShade?: string;
|
|
243
|
+
}
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/parts/paragraph/run/language.d.ts
|
|
246
|
+
interface LanguageOptions {
|
|
247
|
+
value?: string;
|
|
248
|
+
eastAsia?: string;
|
|
249
|
+
bidirectional?: string;
|
|
250
|
+
}
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region src/parts/paragraph/run/run-fonts.d.ts
|
|
253
|
+
interface FontAttributesProperties {
|
|
254
|
+
ascii?: string;
|
|
255
|
+
cs?: string;
|
|
256
|
+
eastAsia?: string;
|
|
257
|
+
hAnsi?: string;
|
|
258
|
+
hint?: string;
|
|
259
|
+
asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
260
|
+
hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
261
|
+
eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
262
|
+
cstheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
263
|
+
}
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region src/parts/paragraph/run/underline.d.ts
|
|
266
|
+
declare const UnderlineType: {
|
|
267
|
+
readonly SINGLE: "single";
|
|
268
|
+
readonly WORDS: "words";
|
|
269
|
+
readonly DOUBLE: "double";
|
|
270
|
+
readonly THICK: "thick";
|
|
271
|
+
readonly DOTTED: "dotted";
|
|
272
|
+
readonly DOTTEDHEAVY: "dottedHeavy";
|
|
273
|
+
readonly DASH: "dash";
|
|
274
|
+
readonly DASHEDHEAVY: "dashedHeavy";
|
|
275
|
+
readonly DASHLONG: "dashLong";
|
|
276
|
+
readonly DASHLONGHEAVY: "dashLongHeavy";
|
|
277
|
+
readonly DOTDASH: "dotDash";
|
|
278
|
+
readonly DASHDOTHEAVY: "dashDotHeavy";
|
|
279
|
+
readonly DOTDOTDASH: "dotDotDash";
|
|
280
|
+
readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
|
|
281
|
+
readonly WAVE: "wave";
|
|
282
|
+
readonly WAVYHEAVY: "wavyHeavy";
|
|
283
|
+
readonly WAVYDOUBLE: "wavyDouble";
|
|
284
|
+
readonly NONE: "none";
|
|
285
|
+
};
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region src/parts/paragraph/run/properties.d.ts
|
|
288
|
+
interface RunFontReference {
|
|
289
|
+
name: string;
|
|
290
|
+
hint?: string;
|
|
291
|
+
}
|
|
292
|
+
declare const TextEffect: {
|
|
293
|
+
readonly BLINK_BACKGROUND: "blinkBackground";
|
|
294
|
+
readonly LIGHTS: "lights";
|
|
295
|
+
readonly ANTS_BLACK: "antsBlack";
|
|
296
|
+
readonly ANTS_RED: "antsRed";
|
|
297
|
+
readonly SHIMMER: "shimmer";
|
|
298
|
+
readonly SPARKLE: "sparkle";
|
|
299
|
+
readonly NONE: "none";
|
|
300
|
+
};
|
|
301
|
+
declare const HighlightColor: {
|
|
302
|
+
readonly BLACK: "black";
|
|
303
|
+
readonly BLUE: "blue";
|
|
304
|
+
readonly CYAN: "cyan";
|
|
305
|
+
readonly DARK_BLUE: "darkBlue";
|
|
306
|
+
readonly DARK_CYAN: "darkCyan";
|
|
307
|
+
readonly DARK_GRAY: "darkGray";
|
|
308
|
+
readonly DARK_GREEN: "darkGreen";
|
|
309
|
+
readonly DARK_MAGENTA: "darkMagenta";
|
|
310
|
+
readonly DARK_RED: "darkRed";
|
|
311
|
+
readonly DARK_YELLOW: "darkYellow";
|
|
312
|
+
readonly GREEN: "green";
|
|
313
|
+
readonly LIGHT_GRAY: "lightGray";
|
|
314
|
+
readonly MAGENTA: "magenta";
|
|
315
|
+
readonly NONE: "none";
|
|
316
|
+
readonly RED: "red";
|
|
317
|
+
readonly WHITE: "white";
|
|
318
|
+
readonly YELLOW: "yellow";
|
|
319
|
+
};
|
|
320
|
+
interface RunStylePropertiesOptions {
|
|
321
|
+
noProof?: boolean;
|
|
322
|
+
bold?: boolean;
|
|
323
|
+
boldComplexScript?: boolean;
|
|
324
|
+
italic?: boolean;
|
|
325
|
+
italicComplexScript?: boolean;
|
|
326
|
+
underline?: {
|
|
327
|
+
color?: string;
|
|
328
|
+
type?: (typeof UnderlineType)[keyof typeof UnderlineType];
|
|
329
|
+
};
|
|
330
|
+
effect?: (typeof TextEffect)[keyof typeof TextEffect];
|
|
331
|
+
emphasisMark?: {
|
|
332
|
+
type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
333
|
+
};
|
|
334
|
+
color?: string | ColorOptions;
|
|
335
|
+
kern?: number;
|
|
336
|
+
position?: string;
|
|
337
|
+
size?: number;
|
|
338
|
+
sizeComplexScript?: boolean | number;
|
|
339
|
+
rightToLeft?: boolean;
|
|
340
|
+
smallCaps?: boolean;
|
|
341
|
+
allCaps?: boolean;
|
|
342
|
+
strike?: boolean;
|
|
343
|
+
doubleStrike?: boolean;
|
|
344
|
+
subScript?: boolean;
|
|
345
|
+
superScript?: boolean;
|
|
346
|
+
font?: string | RunFontReference | FontAttributesProperties;
|
|
347
|
+
highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
|
|
348
|
+
highlightComplexScript?: boolean | string;
|
|
349
|
+
characterSpacing?: number;
|
|
350
|
+
shading?: ShadingAttributesProperties;
|
|
351
|
+
emboss?: boolean;
|
|
352
|
+
imprint?: boolean;
|
|
353
|
+
revision?: RunPropertiesChangeOptions;
|
|
354
|
+
language?: LanguageOptions;
|
|
355
|
+
border?: BorderOptions;
|
|
356
|
+
snapToGrid?: boolean;
|
|
357
|
+
vanish?: boolean;
|
|
358
|
+
specVanish?: boolean;
|
|
359
|
+
scale?: number;
|
|
360
|
+
math?: boolean;
|
|
361
|
+
outline?: boolean;
|
|
362
|
+
shadow?: boolean;
|
|
363
|
+
webHidden?: boolean;
|
|
364
|
+
fitText?: number;
|
|
365
|
+
complexScript?: boolean;
|
|
366
|
+
eastAsianLayout?: EastAsianLayoutOptions;
|
|
367
|
+
contentPartRId?: string;
|
|
368
|
+
}
|
|
369
|
+
type RunPropertiesOptions = {
|
|
370
|
+
style?: string;
|
|
371
|
+
} & RunStylePropertiesOptions;
|
|
372
|
+
type RunPropertiesChangeOptions = {} & RunPropertiesOptions & ChangedAttributesProperties;
|
|
373
|
+
type ParagraphRunPropertiesOptions = {
|
|
374
|
+
insertion?: ChangedAttributesProperties;
|
|
375
|
+
deletion?: ChangedAttributesProperties;
|
|
376
|
+
} & RunPropertiesOptions;
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region src/parts/table-of-contents/table-of-contents-properties.d.ts
|
|
379
|
+
declare class StyleLevel {
|
|
380
|
+
styleName: string;
|
|
381
|
+
level: number;
|
|
382
|
+
constructor(styleName: string, level: number);
|
|
383
|
+
}
|
|
384
|
+
interface TableOfContentsOptions {
|
|
385
|
+
captionLabel?: string;
|
|
386
|
+
entriesFromBookmark?: string;
|
|
387
|
+
captionLabelIncludingNumbers?: string;
|
|
388
|
+
sequenceAndPageNumbersSeparator?: string;
|
|
389
|
+
tcFieldIdentifier?: string;
|
|
390
|
+
hyperlink?: boolean;
|
|
391
|
+
tcFieldLevelRange?: string;
|
|
392
|
+
pageNumbersEntryLevelsRange?: string;
|
|
393
|
+
headingStyleRange?: string;
|
|
394
|
+
entryAndPageNumberSeparator?: string;
|
|
395
|
+
seqFieldIdentifierForPrefix?: string;
|
|
396
|
+
stylesWithLevels?: StyleLevel[];
|
|
397
|
+
useAppliedParagraphOutlineLevel?: boolean;
|
|
398
|
+
preserveTabInEntries?: boolean;
|
|
399
|
+
preserveNewLineInEntries?: boolean;
|
|
400
|
+
hideTabAndPageNumbersInWebView?: boolean;
|
|
401
|
+
}
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/parts/table-of-contents/sdt-properties.d.ts
|
|
404
|
+
declare const SdtLock: {
|
|
405
|
+
readonly SDT_LOCKED: "sdtLocked";
|
|
406
|
+
readonly CONTENT_LOCKED: "contentLocked";
|
|
407
|
+
readonly UNLOCKED: "unlocked";
|
|
408
|
+
readonly SDT_CONTENT_LOCKED: "sdtContentLocked";
|
|
409
|
+
};
|
|
410
|
+
interface SdtListItem {
|
|
411
|
+
displayText?: string;
|
|
412
|
+
value?: string;
|
|
413
|
+
}
|
|
414
|
+
interface SdtComboBoxOptions {
|
|
415
|
+
items?: SdtListItem[];
|
|
416
|
+
lastValue?: string;
|
|
417
|
+
}
|
|
418
|
+
interface SdtDropDownListOptions {
|
|
419
|
+
items?: SdtListItem[];
|
|
420
|
+
lastValue?: string;
|
|
421
|
+
}
|
|
422
|
+
declare const SdtDateMappingType: {
|
|
423
|
+
readonly TEXT: "text";
|
|
424
|
+
readonly DATE: "date";
|
|
425
|
+
readonly DATE_TIME: "dateTime";
|
|
426
|
+
};
|
|
427
|
+
interface SdtDateOptions {
|
|
428
|
+
dateFormat?: string;
|
|
429
|
+
languageId?: string;
|
|
430
|
+
storeMappedDataAs?: (typeof SdtDateMappingType)[keyof typeof SdtDateMappingType];
|
|
431
|
+
calendar?: string;
|
|
432
|
+
fullDate?: string;
|
|
433
|
+
}
|
|
434
|
+
interface SdtTextOptions {
|
|
435
|
+
multiLine?: boolean;
|
|
436
|
+
}
|
|
437
|
+
interface SdtCheckboxSymbol {
|
|
438
|
+
val: string;
|
|
439
|
+
font?: string;
|
|
440
|
+
}
|
|
441
|
+
interface SdtCheckboxOptions {
|
|
442
|
+
checked?: boolean;
|
|
443
|
+
checkedState?: SdtCheckboxSymbol;
|
|
444
|
+
uncheckedState?: SdtCheckboxSymbol;
|
|
445
|
+
}
|
|
446
|
+
interface SdtDataBindingOptions {
|
|
447
|
+
prefixMappings?: string;
|
|
448
|
+
xpath: string;
|
|
449
|
+
storeItemID: string;
|
|
450
|
+
}
|
|
451
|
+
interface SdtPropertiesOptions {
|
|
452
|
+
alias?: string;
|
|
453
|
+
tag?: string;
|
|
454
|
+
id?: number;
|
|
455
|
+
lock?: (typeof SdtLock)[keyof typeof SdtLock];
|
|
456
|
+
temporary?: boolean;
|
|
457
|
+
showingPlaceholder?: boolean;
|
|
458
|
+
dataBinding?: SdtDataBindingOptions;
|
|
459
|
+
label?: number;
|
|
460
|
+
tabIndex?: number;
|
|
461
|
+
equation?: boolean;
|
|
462
|
+
comboBox?: SdtComboBoxOptions;
|
|
463
|
+
date?: SdtDateOptions;
|
|
464
|
+
docPartObj?: {
|
|
465
|
+
gallery?: string;
|
|
466
|
+
category?: string;
|
|
467
|
+
unique?: boolean;
|
|
468
|
+
};
|
|
469
|
+
docPartList?: {
|
|
470
|
+
gallery?: string;
|
|
471
|
+
category?: string;
|
|
472
|
+
unique?: boolean;
|
|
473
|
+
};
|
|
474
|
+
dropDownList?: SdtDropDownListOptions;
|
|
475
|
+
picture?: boolean;
|
|
476
|
+
richText?: boolean;
|
|
477
|
+
text?: SdtTextOptions;
|
|
478
|
+
citation?: boolean;
|
|
479
|
+
group?: boolean;
|
|
480
|
+
bibliography?: boolean;
|
|
481
|
+
checkbox?: SdtCheckboxOptions;
|
|
482
|
+
}
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region src/parts/table-of-contents/toc-parse.d.ts
|
|
485
|
+
declare function parseToc(el: Element, _ctx: DocxReadContext): ({
|
|
486
|
+
alias?: string;
|
|
487
|
+
} & TableOfContentsOptions) | undefined;
|
|
488
|
+
//#endregion
|
|
489
|
+
//#region src/parts/table-of-contents/descriptor.d.ts
|
|
490
|
+
declare function stringifyTableOfContents(alias?: string, options?: TableOfContentsOptions): string;
|
|
491
|
+
//#endregion
|
|
170
492
|
//#region src/shared/track-revision/track-revision-components/cell-merge.d.ts
|
|
171
493
|
declare const VerticalMergeRevisionType: {
|
|
172
494
|
readonly CONTINUE: "continue";
|
|
@@ -193,6 +515,28 @@ type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlign
|
|
|
193
515
|
type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
|
|
194
516
|
declare const createVerticalAlign: (value: TableVerticalAlign | SectionVerticalAlign) => string;
|
|
195
517
|
//#endregion
|
|
518
|
+
//#region src/parts/table/table-width.d.ts
|
|
519
|
+
declare const WidthType: {
|
|
520
|
+
readonly AUTO: "auto";
|
|
521
|
+
readonly DXA: "dxa";
|
|
522
|
+
readonly NIL: "nil";
|
|
523
|
+
readonly PERCENTAGE: "pct";
|
|
524
|
+
};
|
|
525
|
+
interface TableWidthProperties {
|
|
526
|
+
size: number | Percentage | UniversalMeasure;
|
|
527
|
+
type?: (typeof WidthType)[keyof typeof WidthType];
|
|
528
|
+
}
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region src/parts/table/table-properties/table-cell-margin.d.ts
|
|
531
|
+
interface TableCellMarginOptions {
|
|
532
|
+
top?: TableWidthProperties;
|
|
533
|
+
start?: TableWidthProperties;
|
|
534
|
+
left?: TableWidthProperties;
|
|
535
|
+
bottom?: TableWidthProperties;
|
|
536
|
+
end?: TableWidthProperties;
|
|
537
|
+
right?: TableWidthProperties;
|
|
538
|
+
}
|
|
539
|
+
//#endregion
|
|
196
540
|
//#region src/parts/paragraph/formatting/alignment.d.ts
|
|
197
541
|
declare const AlignmentType: {
|
|
198
542
|
readonly START: "start";
|
|
@@ -210,48 +554,6 @@ declare const AlignmentType: {
|
|
|
210
554
|
readonly JUSTIFIED: "both";
|
|
211
555
|
};
|
|
212
556
|
//#endregion
|
|
213
|
-
//#region src/shared/border.d.ts
|
|
214
|
-
interface BorderOptions {
|
|
215
|
-
style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
216
|
-
color?: string;
|
|
217
|
-
themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
|
|
218
|
-
themeTint?: string;
|
|
219
|
-
themeShade?: string;
|
|
220
|
-
shadow?: boolean;
|
|
221
|
-
frame?: boolean;
|
|
222
|
-
size?: number;
|
|
223
|
-
space?: number;
|
|
224
|
-
}
|
|
225
|
-
declare const BorderStyle: {
|
|
226
|
-
readonly SINGLE: "single";
|
|
227
|
-
readonly DASH_DOT_STROKED: "dashDotStroked";
|
|
228
|
-
readonly DASHED: "dashed";
|
|
229
|
-
readonly DASH_SMALL_GAP: "dashSmallGap";
|
|
230
|
-
readonly DOT_DASH: "dotDash";
|
|
231
|
-
readonly DOT_DOT_DASH: "dotDotDash";
|
|
232
|
-
readonly DOTTED: "dotted";
|
|
233
|
-
readonly DOUBLE: "double";
|
|
234
|
-
readonly DOUBLE_WAVE: "doubleWave";
|
|
235
|
-
readonly INSET: "inset";
|
|
236
|
-
readonly NIL: "nil";
|
|
237
|
-
readonly NONE: "none";
|
|
238
|
-
readonly OUTSET: "outset";
|
|
239
|
-
readonly THICK: "thick";
|
|
240
|
-
readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
|
|
241
|
-
readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
|
|
242
|
-
readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
|
|
243
|
-
readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
|
|
244
|
-
readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
|
|
245
|
-
readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
|
|
246
|
-
readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
|
|
247
|
-
readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
|
|
248
|
-
readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
|
|
249
|
-
readonly THREE_D_EMBOSS: "threeDEmboss";
|
|
250
|
-
readonly THREE_D_ENGRAVE: "threeDEngrave";
|
|
251
|
-
readonly TRIPLE: "triple";
|
|
252
|
-
readonly WAVE: "wave";
|
|
253
|
-
};
|
|
254
|
-
//#endregion
|
|
255
557
|
//#region src/parts/paragraph/formatting/border.d.ts
|
|
256
558
|
interface BordersOptions {
|
|
257
559
|
top?: BorderOptions;
|
|
@@ -494,6 +796,210 @@ type MathInput = string | {
|
|
|
494
796
|
};
|
|
495
797
|
};
|
|
496
798
|
//#endregion
|
|
799
|
+
//#region src/parts/table/grid.d.ts
|
|
800
|
+
interface TableGridChangeOptions {
|
|
801
|
+
id: number;
|
|
802
|
+
columnWidths: number[] | PositiveUniversalMeasure[];
|
|
803
|
+
}
|
|
804
|
+
//#endregion
|
|
805
|
+
//#region src/parts/table/table-cell-spacing.d.ts
|
|
806
|
+
declare const CellSpacingType: {
|
|
807
|
+
readonly DXA: "dxa";
|
|
808
|
+
readonly NIL: "nil";
|
|
809
|
+
};
|
|
810
|
+
interface TableCellSpacingProperties {
|
|
811
|
+
size: number | Percentage | UniversalMeasure;
|
|
812
|
+
type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
|
|
813
|
+
}
|
|
814
|
+
//#endregion
|
|
815
|
+
//#region src/parts/table/table-properties/table-borders.d.ts
|
|
816
|
+
interface TableBordersOptions {
|
|
817
|
+
top?: BorderOptions;
|
|
818
|
+
bottom?: BorderOptions;
|
|
819
|
+
left?: BorderOptions;
|
|
820
|
+
right?: BorderOptions;
|
|
821
|
+
insideHorizontal?: BorderOptions;
|
|
822
|
+
insideVertical?: BorderOptions;
|
|
823
|
+
}
|
|
824
|
+
declare const TABLE_BORDERS_NONE: TableBordersOptions;
|
|
825
|
+
//#endregion
|
|
826
|
+
//#region src/parts/table/table-properties/table-float-properties.d.ts
|
|
827
|
+
declare const TableAnchorType: {
|
|
828
|
+
readonly MARGIN: "margin";
|
|
829
|
+
readonly PAGE: "page";
|
|
830
|
+
readonly TEXT: "text";
|
|
831
|
+
};
|
|
832
|
+
declare const RelativeHorizontalPosition: {
|
|
833
|
+
readonly CENTER: "center";
|
|
834
|
+
readonly INSIDE: "inside";
|
|
835
|
+
readonly LEFT: "left";
|
|
836
|
+
readonly OUTSIDE: "outside";
|
|
837
|
+
readonly RIGHT: "right";
|
|
838
|
+
};
|
|
839
|
+
declare const RelativeVerticalPosition: {
|
|
840
|
+
readonly BOTTOM: "bottom";
|
|
841
|
+
readonly CENTER: "center";
|
|
842
|
+
readonly INLINE: "inline";
|
|
843
|
+
readonly INSIDE: "inside";
|
|
844
|
+
readonly OUTSIDE: "outside";
|
|
845
|
+
readonly TOP: "top";
|
|
846
|
+
};
|
|
847
|
+
declare const OverlapType: {
|
|
848
|
+
readonly NEVER: "never";
|
|
849
|
+
readonly OVERLAP: "overlap";
|
|
850
|
+
};
|
|
851
|
+
interface TableFloatOptions {
|
|
852
|
+
horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
|
853
|
+
absoluteHorizontalPosition?: number;
|
|
854
|
+
relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
|
|
855
|
+
verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
|
856
|
+
absoluteVerticalPosition?: number;
|
|
857
|
+
relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
|
|
858
|
+
bottomFromText?: number;
|
|
859
|
+
topFromText?: number;
|
|
860
|
+
leftFromText?: number;
|
|
861
|
+
rightFromText?: number;
|
|
862
|
+
overlap?: (typeof OverlapType)[keyof typeof OverlapType];
|
|
863
|
+
}
|
|
864
|
+
//#endregion
|
|
865
|
+
//#region src/parts/table/table-properties/table-layout.d.ts
|
|
866
|
+
declare const TableLayoutType: {
|
|
867
|
+
readonly AUTOFIT: "autofit";
|
|
868
|
+
readonly FIXED: "fixed";
|
|
869
|
+
};
|
|
870
|
+
//#endregion
|
|
871
|
+
//#region src/parts/table/table-properties/table-look.d.ts
|
|
872
|
+
interface TableLookOptions {
|
|
873
|
+
firstRow?: boolean;
|
|
874
|
+
lastRow?: boolean;
|
|
875
|
+
firstColumn?: boolean;
|
|
876
|
+
lastColumn?: boolean;
|
|
877
|
+
noHBand?: boolean;
|
|
878
|
+
noVBand?: boolean;
|
|
879
|
+
}
|
|
880
|
+
//#endregion
|
|
881
|
+
//#region src/parts/table/table-properties/table-properties.d.ts
|
|
882
|
+
interface TablePropertiesOptionsBase {
|
|
883
|
+
width?: TableWidthProperties;
|
|
884
|
+
indent?: TableWidthProperties;
|
|
885
|
+
layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
886
|
+
borders?: TableBordersOptions;
|
|
887
|
+
float?: TableFloatOptions;
|
|
888
|
+
shading?: ShadingAttributesProperties;
|
|
889
|
+
style?: string;
|
|
890
|
+
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
891
|
+
cellMargin?: TableCellMarginOptions;
|
|
892
|
+
visuallyRightToLeft?: boolean;
|
|
893
|
+
tableLook?: TableLookOptions;
|
|
894
|
+
cellSpacing?: TableCellSpacingProperties;
|
|
895
|
+
styleRowBandSize?: number;
|
|
896
|
+
styleColBandSize?: number;
|
|
897
|
+
caption?: string;
|
|
898
|
+
description?: string;
|
|
899
|
+
}
|
|
900
|
+
type TablePropertiesChangeOptions = TablePropertiesOptions & ChangedAttributesProperties;
|
|
901
|
+
type TablePropertiesOptions = {
|
|
902
|
+
revision?: TablePropertiesChangeOptions;
|
|
903
|
+
includeIfEmpty?: boolean;
|
|
904
|
+
} & TablePropertiesOptionsBase;
|
|
905
|
+
//#endregion
|
|
906
|
+
//#region src/parts/table/table-properties/table-property-exceptions.d.ts
|
|
907
|
+
interface TablePropertyExOptions {
|
|
908
|
+
width?: TableWidthProperties;
|
|
909
|
+
indent?: TableWidthProperties;
|
|
910
|
+
layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
911
|
+
borders?: TableBordersOptions;
|
|
912
|
+
shading?: ShadingAttributesProperties;
|
|
913
|
+
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
914
|
+
cellMargin?: TableCellMarginOptions;
|
|
915
|
+
tableLook?: TableLookOptions;
|
|
916
|
+
cellSpacing?: TableCellSpacingProperties;
|
|
917
|
+
tblPrExChange?: TablePropertyExChangeOptions;
|
|
918
|
+
}
|
|
919
|
+
type TablePropertyExChangeOptions = Omit<TablePropertyExOptions, "tblPrExChange"> & ChangedAttributesProperties;
|
|
920
|
+
//#endregion
|
|
921
|
+
//#region src/parts/table/table-cell/table-cell-components.d.ts
|
|
922
|
+
interface TableCellBordersOptions {
|
|
923
|
+
top?: BorderOptions;
|
|
924
|
+
start?: BorderOptions;
|
|
925
|
+
left?: BorderOptions;
|
|
926
|
+
bottom?: BorderOptions;
|
|
927
|
+
end?: BorderOptions;
|
|
928
|
+
right?: BorderOptions;
|
|
929
|
+
insideHorizontal?: BorderOptions;
|
|
930
|
+
insideVertical?: BorderOptions;
|
|
931
|
+
topLeftToBottomRight?: BorderOptions;
|
|
932
|
+
topRightToBottomLeft?: BorderOptions;
|
|
933
|
+
}
|
|
934
|
+
declare const VerticalMergeType: {
|
|
935
|
+
readonly CONTINUE: "continue";
|
|
936
|
+
readonly RESTART: "restart";
|
|
937
|
+
};
|
|
938
|
+
declare const TextDirection: {
|
|
939
|
+
readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
|
|
940
|
+
readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
|
|
941
|
+
readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
|
|
942
|
+
};
|
|
943
|
+
//#endregion
|
|
944
|
+
//#region src/parts/table/table-row/table-row.d.ts
|
|
945
|
+
interface SdtRowOptions {
|
|
946
|
+
properties: SdtPropertiesOptions;
|
|
947
|
+
rows?: TableRowOptions[];
|
|
948
|
+
endProperties?: RunPropertiesOptions;
|
|
949
|
+
}
|
|
950
|
+
type TableRowOptions = {
|
|
951
|
+
cells: (TableCellOptions | {
|
|
952
|
+
sdt: SdtCellOptions;
|
|
953
|
+
} | {
|
|
954
|
+
customXml: CustomXmlCellOptions;
|
|
955
|
+
})[];
|
|
956
|
+
propertyExceptions?: TablePropertyExOptions;
|
|
957
|
+
rsidRPr?: string;
|
|
958
|
+
rsidR?: string;
|
|
959
|
+
rsidDel?: string;
|
|
960
|
+
rsidTr?: string;
|
|
961
|
+
} & TableRowPropertiesOptions;
|
|
962
|
+
//#endregion
|
|
963
|
+
//#region src/parts/table/table-row/table-row-height.d.ts
|
|
964
|
+
declare const HeightRule: {
|
|
965
|
+
readonly AUTO: "auto";
|
|
966
|
+
readonly ATLEAST: "atLeast";
|
|
967
|
+
readonly EXACT: "exact";
|
|
968
|
+
};
|
|
969
|
+
//#endregion
|
|
970
|
+
//#region src/parts/table/table.d.ts
|
|
971
|
+
interface TableOptions {
|
|
972
|
+
rows: (TableRowOptions | {
|
|
973
|
+
sdt: SdtRowOptions;
|
|
974
|
+
} | {
|
|
975
|
+
customXml: CustomXmlRowOptions;
|
|
976
|
+
})[];
|
|
977
|
+
width?: TableWidthProperties;
|
|
978
|
+
columnWidths?: number[] | PositiveUniversalMeasure[];
|
|
979
|
+
columnWidthsRevision?: TableGridChangeOptions;
|
|
980
|
+
margins?: TableCellMarginOptions;
|
|
981
|
+
indent?: TableWidthProperties;
|
|
982
|
+
float?: TableFloatOptions;
|
|
983
|
+
layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
984
|
+
style?: string;
|
|
985
|
+
borders?: TableBordersOptions;
|
|
986
|
+
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
987
|
+
visuallyRightToLeft?: boolean;
|
|
988
|
+
tableLook?: TableLookOptions;
|
|
989
|
+
cellSpacing?: TableCellSpacingProperties;
|
|
990
|
+
styleRowBandSize?: number;
|
|
991
|
+
styleColBandSize?: number;
|
|
992
|
+
caption?: string;
|
|
993
|
+
description?: string;
|
|
994
|
+
revision?: TablePropertiesChangeOptions;
|
|
995
|
+
shading?: ShadingAttributesProperties;
|
|
996
|
+
}
|
|
997
|
+
//#endregion
|
|
998
|
+
//#region src/parts/table/descriptor.d.ts
|
|
999
|
+
declare const tableDesc: CustomDescriptor<TableOptions, BodyContext>;
|
|
1000
|
+
type ParseChildFn = (el: Element, ctx: DocxReadContext) => SectionChild;
|
|
1001
|
+
declare function setTableParseChild(fn: ParseChildFn): void;
|
|
1002
|
+
//#endregion
|
|
497
1003
|
//#region src/shared/constants.d.ts
|
|
498
1004
|
declare const HorizontalPositionAlign: {
|
|
499
1005
|
readonly CENTER: "center";
|
|
@@ -610,244 +1116,78 @@ interface BaseFrameOptions {
|
|
|
610
1116
|
};
|
|
611
1117
|
space?: {
|
|
612
1118
|
horizontal: number;
|
|
613
|
-
vertical: number;
|
|
614
|
-
};
|
|
615
|
-
rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
616
|
-
}
|
|
617
|
-
type XYFrameOptions = {
|
|
618
|
-
type: "absolute";
|
|
619
|
-
position: {
|
|
620
|
-
x: number;
|
|
621
|
-
y: number;
|
|
622
|
-
};
|
|
623
|
-
} & BaseFrameOptions;
|
|
624
|
-
type AlignmentFrameOptions = {
|
|
625
|
-
type: "alignment";
|
|
626
|
-
alignment: {
|
|
627
|
-
x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
628
|
-
y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
629
|
-
};
|
|
630
|
-
} & BaseFrameOptions;
|
|
631
|
-
type FrameOptions$1 = XYFrameOptions | AlignmentFrameOptions;
|
|
632
|
-
//#endregion
|
|
633
|
-
//#region src/parts/paragraph/run/empty-children.d.ts
|
|
634
|
-
interface NoBreakHyphen {
|
|
635
|
-
noBreakHyphen: true;
|
|
636
|
-
}
|
|
637
|
-
interface SoftHyphen {
|
|
638
|
-
softHyphen: true;
|
|
639
|
-
}
|
|
640
|
-
interface DayShort {
|
|
641
|
-
dayShort: true;
|
|
642
|
-
}
|
|
643
|
-
interface MonthShort {
|
|
644
|
-
monthShort: true;
|
|
645
|
-
}
|
|
646
|
-
interface YearShort {
|
|
647
|
-
yearShort: true;
|
|
648
|
-
}
|
|
649
|
-
interface DayLong {
|
|
650
|
-
dayLong: true;
|
|
651
|
-
}
|
|
652
|
-
interface MonthLong {
|
|
653
|
-
monthLong: true;
|
|
654
|
-
}
|
|
655
|
-
interface YearLong {
|
|
656
|
-
yearLong: true;
|
|
657
|
-
}
|
|
658
|
-
interface AnnotationReference {
|
|
659
|
-
annotationRef: true;
|
|
660
|
-
}
|
|
661
|
-
interface FootnoteReferenceElement {
|
|
662
|
-
footnoteRef: true;
|
|
663
|
-
}
|
|
664
|
-
interface EndnoteReference {
|
|
665
|
-
endnoteRef: true;
|
|
666
|
-
}
|
|
667
|
-
interface Separator {
|
|
668
|
-
separator: true;
|
|
669
|
-
}
|
|
670
|
-
interface ContinuationSeparator {
|
|
671
|
-
continuationSeparator: true;
|
|
672
|
-
}
|
|
673
|
-
interface PageNumberElement {
|
|
674
|
-
pgNum: true;
|
|
675
|
-
}
|
|
676
|
-
interface CarriageReturn {
|
|
677
|
-
carriageReturn: true;
|
|
678
|
-
}
|
|
679
|
-
interface Tab {
|
|
680
|
-
tab: true;
|
|
681
|
-
}
|
|
682
|
-
interface LastRenderedPageBreak {
|
|
683
|
-
lastRenderedPageBreak: true;
|
|
684
|
-
}
|
|
685
|
-
//#endregion
|
|
686
|
-
//#region src/parts/paragraph/run/east-asian-layout.d.ts
|
|
687
|
-
declare const CombineBracketsType: {
|
|
688
|
-
readonly NONE: "none";
|
|
689
|
-
readonly ROUND: "round";
|
|
690
|
-
readonly SQUARE: "square";
|
|
691
|
-
readonly ANGLE: "angle";
|
|
692
|
-
readonly CURLY: "curly";
|
|
693
|
-
};
|
|
694
|
-
interface EastAsianLayoutOptions {
|
|
695
|
-
id?: number;
|
|
696
|
-
combine?: boolean;
|
|
697
|
-
combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
|
|
698
|
-
vert?: boolean;
|
|
699
|
-
vertCompress?: boolean;
|
|
700
|
-
}
|
|
701
|
-
//#endregion
|
|
702
|
-
//#region src/parts/paragraph/run/emphasis-mark.d.ts
|
|
703
|
-
declare const EmphasisMarkType: {
|
|
704
|
-
readonly NONE: "none";
|
|
705
|
-
readonly COMMA: "comma";
|
|
706
|
-
readonly CIRCLE: "circle";
|
|
707
|
-
readonly DOT: "dot";
|
|
708
|
-
readonly UNDER_DOT: "underDot";
|
|
709
|
-
};
|
|
710
|
-
//#endregion
|
|
711
|
-
//#region src/parts/paragraph/run/formatting.d.ts
|
|
712
|
-
interface ColorOptions {
|
|
713
|
-
val?: string;
|
|
714
|
-
themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
|
|
715
|
-
themeTint?: string;
|
|
716
|
-
themeShade?: string;
|
|
717
|
-
}
|
|
718
|
-
//#endregion
|
|
719
|
-
//#region src/parts/paragraph/run/language.d.ts
|
|
720
|
-
interface LanguageOptions {
|
|
721
|
-
value?: string;
|
|
722
|
-
eastAsia?: string;
|
|
723
|
-
bidirectional?: string;
|
|
724
|
-
}
|
|
725
|
-
//#endregion
|
|
726
|
-
//#region src/parts/paragraph/run/run-fonts.d.ts
|
|
727
|
-
interface FontAttributesProperties {
|
|
728
|
-
ascii?: string;
|
|
729
|
-
cs?: string;
|
|
730
|
-
eastAsia?: string;
|
|
731
|
-
hAnsi?: string;
|
|
732
|
-
hint?: string;
|
|
733
|
-
asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
734
|
-
hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
735
|
-
eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
736
|
-
cstheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
737
|
-
}
|
|
738
|
-
//#endregion
|
|
739
|
-
//#region src/parts/paragraph/run/underline.d.ts
|
|
740
|
-
declare const UnderlineType: {
|
|
741
|
-
readonly SINGLE: "single";
|
|
742
|
-
readonly WORDS: "words";
|
|
743
|
-
readonly DOUBLE: "double";
|
|
744
|
-
readonly THICK: "thick";
|
|
745
|
-
readonly DOTTED: "dotted";
|
|
746
|
-
readonly DOTTEDHEAVY: "dottedHeavy";
|
|
747
|
-
readonly DASH: "dash";
|
|
748
|
-
readonly DASHEDHEAVY: "dashedHeavy";
|
|
749
|
-
readonly DASHLONG: "dashLong";
|
|
750
|
-
readonly DASHLONGHEAVY: "dashLongHeavy";
|
|
751
|
-
readonly DOTDASH: "dotDash";
|
|
752
|
-
readonly DASHDOTHEAVY: "dashDotHeavy";
|
|
753
|
-
readonly DOTDOTDASH: "dotDotDash";
|
|
754
|
-
readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
|
|
755
|
-
readonly WAVE: "wave";
|
|
756
|
-
readonly WAVYHEAVY: "wavyHeavy";
|
|
757
|
-
readonly WAVYDOUBLE: "wavyDouble";
|
|
758
|
-
readonly NONE: "none";
|
|
759
|
-
};
|
|
760
|
-
//#endregion
|
|
761
|
-
//#region src/parts/paragraph/run/properties.d.ts
|
|
762
|
-
interface RunFontReference {
|
|
763
|
-
name: string;
|
|
764
|
-
hint?: string;
|
|
765
|
-
}
|
|
766
|
-
declare const TextEffect: {
|
|
767
|
-
readonly BLINK_BACKGROUND: "blinkBackground";
|
|
768
|
-
readonly LIGHTS: "lights";
|
|
769
|
-
readonly ANTS_BLACK: "antsBlack";
|
|
770
|
-
readonly ANTS_RED: "antsRed";
|
|
771
|
-
readonly SHIMMER: "shimmer";
|
|
772
|
-
readonly SPARKLE: "sparkle";
|
|
773
|
-
readonly NONE: "none";
|
|
774
|
-
};
|
|
775
|
-
declare const HighlightColor: {
|
|
776
|
-
readonly BLACK: "black";
|
|
777
|
-
readonly BLUE: "blue";
|
|
778
|
-
readonly CYAN: "cyan";
|
|
779
|
-
readonly DARK_BLUE: "darkBlue";
|
|
780
|
-
readonly DARK_CYAN: "darkCyan";
|
|
781
|
-
readonly DARK_GRAY: "darkGray";
|
|
782
|
-
readonly DARK_GREEN: "darkGreen";
|
|
783
|
-
readonly DARK_MAGENTA: "darkMagenta";
|
|
784
|
-
readonly DARK_RED: "darkRed";
|
|
785
|
-
readonly DARK_YELLOW: "darkYellow";
|
|
786
|
-
readonly GREEN: "green";
|
|
787
|
-
readonly LIGHT_GRAY: "lightGray";
|
|
788
|
-
readonly MAGENTA: "magenta";
|
|
789
|
-
readonly NONE: "none";
|
|
790
|
-
readonly RED: "red";
|
|
791
|
-
readonly WHITE: "white";
|
|
792
|
-
readonly YELLOW: "yellow";
|
|
793
|
-
};
|
|
794
|
-
interface RunStylePropertiesOptions {
|
|
795
|
-
noProof?: boolean;
|
|
796
|
-
bold?: boolean;
|
|
797
|
-
boldComplexScript?: boolean;
|
|
798
|
-
italic?: boolean;
|
|
799
|
-
italicComplexScript?: boolean;
|
|
800
|
-
underline?: {
|
|
801
|
-
color?: string;
|
|
802
|
-
type?: (typeof UnderlineType)[keyof typeof UnderlineType];
|
|
803
|
-
};
|
|
804
|
-
effect?: (typeof TextEffect)[keyof typeof TextEffect];
|
|
805
|
-
emphasisMark?: {
|
|
806
|
-
type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
807
|
-
};
|
|
808
|
-
color?: string | ColorOptions;
|
|
809
|
-
kern?: number;
|
|
810
|
-
position?: string;
|
|
811
|
-
size?: number;
|
|
812
|
-
sizeComplexScript?: boolean | number;
|
|
813
|
-
rightToLeft?: boolean;
|
|
814
|
-
smallCaps?: boolean;
|
|
815
|
-
allCaps?: boolean;
|
|
816
|
-
strike?: boolean;
|
|
817
|
-
doubleStrike?: boolean;
|
|
818
|
-
subScript?: boolean;
|
|
819
|
-
superScript?: boolean;
|
|
820
|
-
font?: string | RunFontReference | FontAttributesProperties;
|
|
821
|
-
highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
|
|
822
|
-
highlightComplexScript?: boolean | string;
|
|
823
|
-
characterSpacing?: number;
|
|
824
|
-
shading?: ShadingAttributesProperties;
|
|
825
|
-
emboss?: boolean;
|
|
826
|
-
imprint?: boolean;
|
|
827
|
-
revision?: RunPropertiesChangeOptions;
|
|
828
|
-
language?: LanguageOptions;
|
|
829
|
-
border?: BorderOptions;
|
|
830
|
-
snapToGrid?: boolean;
|
|
831
|
-
vanish?: boolean;
|
|
832
|
-
specVanish?: boolean;
|
|
833
|
-
scale?: number;
|
|
834
|
-
math?: boolean;
|
|
835
|
-
outline?: boolean;
|
|
836
|
-
shadow?: boolean;
|
|
837
|
-
webHidden?: boolean;
|
|
838
|
-
fitText?: number;
|
|
839
|
-
complexScript?: boolean;
|
|
840
|
-
eastAsianLayout?: EastAsianLayoutOptions;
|
|
841
|
-
contentPartRId?: string;
|
|
1119
|
+
vertical: number;
|
|
1120
|
+
};
|
|
1121
|
+
rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
1122
|
+
}
|
|
1123
|
+
type XYFrameOptions = {
|
|
1124
|
+
type: "absolute";
|
|
1125
|
+
position: {
|
|
1126
|
+
x: number;
|
|
1127
|
+
y: number;
|
|
1128
|
+
};
|
|
1129
|
+
} & BaseFrameOptions;
|
|
1130
|
+
type AlignmentFrameOptions = {
|
|
1131
|
+
type: "alignment";
|
|
1132
|
+
alignment: {
|
|
1133
|
+
x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
1134
|
+
y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
1135
|
+
};
|
|
1136
|
+
} & BaseFrameOptions;
|
|
1137
|
+
type FrameOptions$1 = XYFrameOptions | AlignmentFrameOptions;
|
|
1138
|
+
//#endregion
|
|
1139
|
+
//#region src/parts/paragraph/run/empty-children.d.ts
|
|
1140
|
+
interface NoBreakHyphen {
|
|
1141
|
+
noBreakHyphen: true;
|
|
1142
|
+
}
|
|
1143
|
+
interface SoftHyphen {
|
|
1144
|
+
softHyphen: true;
|
|
1145
|
+
}
|
|
1146
|
+
interface DayShort {
|
|
1147
|
+
dayShort: true;
|
|
1148
|
+
}
|
|
1149
|
+
interface MonthShort {
|
|
1150
|
+
monthShort: true;
|
|
1151
|
+
}
|
|
1152
|
+
interface YearShort {
|
|
1153
|
+
yearShort: true;
|
|
1154
|
+
}
|
|
1155
|
+
interface DayLong {
|
|
1156
|
+
dayLong: true;
|
|
1157
|
+
}
|
|
1158
|
+
interface MonthLong {
|
|
1159
|
+
monthLong: true;
|
|
1160
|
+
}
|
|
1161
|
+
interface YearLong {
|
|
1162
|
+
yearLong: true;
|
|
1163
|
+
}
|
|
1164
|
+
interface AnnotationReference {
|
|
1165
|
+
annotationRef: true;
|
|
1166
|
+
}
|
|
1167
|
+
interface FootnoteReferenceElement {
|
|
1168
|
+
footnoteRef: true;
|
|
1169
|
+
}
|
|
1170
|
+
interface EndnoteReference {
|
|
1171
|
+
endnoteRef: true;
|
|
1172
|
+
}
|
|
1173
|
+
interface Separator {
|
|
1174
|
+
separator: true;
|
|
1175
|
+
}
|
|
1176
|
+
interface ContinuationSeparator {
|
|
1177
|
+
continuationSeparator: true;
|
|
1178
|
+
}
|
|
1179
|
+
interface PageNumberElement {
|
|
1180
|
+
pgNum: true;
|
|
1181
|
+
}
|
|
1182
|
+
interface CarriageReturn {
|
|
1183
|
+
carriageReturn: true;
|
|
1184
|
+
}
|
|
1185
|
+
interface Tab {
|
|
1186
|
+
tab: true;
|
|
1187
|
+
}
|
|
1188
|
+
interface LastRenderedPageBreak {
|
|
1189
|
+
lastRenderedPageBreak: true;
|
|
842
1190
|
}
|
|
843
|
-
type RunPropertiesOptions = {
|
|
844
|
-
style?: string;
|
|
845
|
-
} & RunStylePropertiesOptions;
|
|
846
|
-
type RunPropertiesChangeOptions = {} & RunPropertiesOptions & ChangedAttributesProperties;
|
|
847
|
-
type ParagraphRunPropertiesOptions = {
|
|
848
|
-
insertion?: ChangedAttributesProperties;
|
|
849
|
-
deletion?: ChangedAttributesProperties;
|
|
850
|
-
} & RunPropertiesOptions;
|
|
851
1191
|
//#endregion
|
|
852
1192
|
//#region src/parts/paragraph/run/run.d.ts
|
|
853
1193
|
interface RunOptionsBase {
|
|
@@ -1524,6 +1864,11 @@ interface MathChild {
|
|
|
1524
1864
|
children?: MathInput[];
|
|
1525
1865
|
};
|
|
1526
1866
|
}
|
|
1867
|
+
interface SdtRunOptions {
|
|
1868
|
+
properties: SdtPropertiesOptions;
|
|
1869
|
+
children?: (ParagraphChild | string)[];
|
|
1870
|
+
endProperties?: RunPropertiesOptions;
|
|
1871
|
+
}
|
|
1527
1872
|
type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
1528
1873
|
symbolRun: SymbolRunOptions;
|
|
1529
1874
|
} | {
|
|
@@ -1649,226 +1994,64 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
|
1649
1994
|
} | {
|
|
1650
1995
|
seqIdentifier: string;
|
|
1651
1996
|
} | {
|
|
1652
|
-
pageReference: {
|
|
1653
|
-
bookmarkId: string;
|
|
1654
|
-
hyperlink?: boolean;
|
|
1655
|
-
useRelativePosition?: boolean;
|
|
1656
|
-
};
|
|
1657
|
-
} | {
|
|
1658
|
-
dir: {
|
|
1659
|
-
val: "ltr" | "rtl";
|
|
1660
|
-
children?: (RunOptions | string)[];
|
|
1661
|
-
};
|
|
1662
|
-
} | {
|
|
1663
|
-
bdo: {
|
|
1664
|
-
val: "ltr" | "rtl";
|
|
1665
|
-
children?: (RunOptions | string)[];
|
|
1666
|
-
};
|
|
1667
|
-
} | {
|
|
1668
|
-
smartTag: {
|
|
1669
|
-
uri?: string;
|
|
1670
|
-
element: string;
|
|
1671
|
-
properties?: Array<{
|
|
1672
|
-
uri?: string;
|
|
1673
|
-
name: string;
|
|
1674
|
-
val: string;
|
|
1675
|
-
}>;
|
|
1676
|
-
children?: (RunOptions | string)[];
|
|
1677
|
-
};
|
|
1678
|
-
} | {
|
|
1679
|
-
customXml: {
|
|
1680
|
-
element: string;
|
|
1681
|
-
uri?: string;
|
|
1682
|
-
customXmlPr?: {
|
|
1683
|
-
placeholder?: string;
|
|
1684
|
-
attrs?: Array<{
|
|
1685
|
-
name: string;
|
|
1686
|
-
val: string;
|
|
1687
|
-
uri?: string;
|
|
1688
|
-
}>;
|
|
1689
|
-
};
|
|
1690
|
-
children?: (ParagraphChild | string)[];
|
|
1691
|
-
};
|
|
1692
|
-
} | RunOptions;
|
|
1693
|
-
type ParagraphOptions = {
|
|
1694
|
-
text?: string;
|
|
1695
|
-
children?: (ParagraphChild | string)[];
|
|
1696
|
-
rsidR?: string;
|
|
1697
|
-
rsidRPr?: string;
|
|
1698
|
-
rsidRDefault?: string;
|
|
1699
|
-
rsidDel?: string;
|
|
1700
|
-
rsidP?: string;
|
|
1701
|
-
} & ParagraphPropertiesOptions;
|
|
1702
|
-
//#endregion
|
|
1703
|
-
//#region src/parts/table/grid.d.ts
|
|
1704
|
-
interface TableGridChangeOptions {
|
|
1705
|
-
id: number;
|
|
1706
|
-
columnWidths: number[] | PositiveUniversalMeasure[];
|
|
1707
|
-
}
|
|
1708
|
-
//#endregion
|
|
1709
|
-
//#region src/parts/table/table-cell-spacing.d.ts
|
|
1710
|
-
declare const CellSpacingType: {
|
|
1711
|
-
readonly DXA: "dxa";
|
|
1712
|
-
readonly NIL: "nil";
|
|
1713
|
-
};
|
|
1714
|
-
interface TableCellSpacingProperties {
|
|
1715
|
-
value: number | Percentage | UniversalMeasure;
|
|
1716
|
-
type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
|
|
1717
|
-
}
|
|
1718
|
-
//#endregion
|
|
1719
|
-
//#region src/parts/table/table-width.d.ts
|
|
1720
|
-
declare const WidthType: {
|
|
1721
|
-
readonly AUTO: "auto";
|
|
1722
|
-
readonly DXA: "dxa";
|
|
1723
|
-
readonly NIL: "nil";
|
|
1724
|
-
readonly PERCENTAGE: "pct";
|
|
1725
|
-
};
|
|
1726
|
-
interface TableWidthProperties {
|
|
1727
|
-
size: number | Percentage | UniversalMeasure;
|
|
1728
|
-
type?: (typeof WidthType)[keyof typeof WidthType];
|
|
1729
|
-
}
|
|
1730
|
-
//#endregion
|
|
1731
|
-
//#region src/parts/table/table-properties/table-borders.d.ts
|
|
1732
|
-
interface TableBordersOptions {
|
|
1733
|
-
top?: BorderOptions;
|
|
1734
|
-
bottom?: BorderOptions;
|
|
1735
|
-
left?: BorderOptions;
|
|
1736
|
-
right?: BorderOptions;
|
|
1737
|
-
insideHorizontal?: BorderOptions;
|
|
1738
|
-
insideVertical?: BorderOptions;
|
|
1739
|
-
}
|
|
1740
|
-
declare const TABLE_BORDERS_NONE: TableBordersOptions;
|
|
1741
|
-
//#endregion
|
|
1742
|
-
//#region src/parts/table/table-properties/table-float-properties.d.ts
|
|
1743
|
-
declare const TableAnchorType: {
|
|
1744
|
-
readonly MARGIN: "margin";
|
|
1745
|
-
readonly PAGE: "page";
|
|
1746
|
-
readonly TEXT: "text";
|
|
1747
|
-
};
|
|
1748
|
-
declare const RelativeHorizontalPosition: {
|
|
1749
|
-
readonly CENTER: "center";
|
|
1750
|
-
readonly INSIDE: "inside";
|
|
1751
|
-
readonly LEFT: "left";
|
|
1752
|
-
readonly OUTSIDE: "outside";
|
|
1753
|
-
readonly RIGHT: "right";
|
|
1754
|
-
};
|
|
1755
|
-
declare const RelativeVerticalPosition: {
|
|
1756
|
-
readonly BOTTOM: "bottom";
|
|
1757
|
-
readonly CENTER: "center";
|
|
1758
|
-
readonly INLINE: "inline";
|
|
1759
|
-
readonly INSIDE: "inside";
|
|
1760
|
-
readonly OUTSIDE: "outside";
|
|
1761
|
-
readonly TOP: "top";
|
|
1762
|
-
};
|
|
1763
|
-
declare const OverlapType: {
|
|
1764
|
-
readonly NEVER: "never";
|
|
1765
|
-
readonly OVERLAP: "overlap";
|
|
1766
|
-
};
|
|
1767
|
-
interface TableFloatOptions {
|
|
1768
|
-
horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
|
1769
|
-
absoluteHorizontalPosition?: number;
|
|
1770
|
-
relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
|
|
1771
|
-
verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
|
1772
|
-
absoluteVerticalPosition?: number;
|
|
1773
|
-
relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
|
|
1774
|
-
bottomFromText?: number;
|
|
1775
|
-
topFromText?: number;
|
|
1776
|
-
leftFromText?: number;
|
|
1777
|
-
rightFromText?: number;
|
|
1778
|
-
overlap?: (typeof OverlapType)[keyof typeof OverlapType];
|
|
1779
|
-
}
|
|
1780
|
-
//#endregion
|
|
1781
|
-
//#region src/parts/table/table-properties/table-layout.d.ts
|
|
1782
|
-
declare const TableLayoutType: {
|
|
1783
|
-
readonly AUTOFIT: "autofit";
|
|
1784
|
-
readonly FIXED: "fixed";
|
|
1785
|
-
};
|
|
1786
|
-
//#endregion
|
|
1787
|
-
//#region src/parts/table/table-properties/table-look.d.ts
|
|
1788
|
-
interface TableLookOptions {
|
|
1789
|
-
firstRow?: boolean;
|
|
1790
|
-
lastRow?: boolean;
|
|
1791
|
-
firstColumn?: boolean;
|
|
1792
|
-
lastColumn?: boolean;
|
|
1793
|
-
noHBand?: boolean;
|
|
1794
|
-
noVBand?: boolean;
|
|
1795
|
-
}
|
|
1796
|
-
//#endregion
|
|
1797
|
-
//#region src/parts/table/table-properties/table-properties.d.ts
|
|
1798
|
-
interface TablePropertiesOptionsBase {
|
|
1799
|
-
width?: TableWidthProperties;
|
|
1800
|
-
indent?: TableWidthProperties;
|
|
1801
|
-
layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
1802
|
-
borders?: TableBordersOptions;
|
|
1803
|
-
float?: TableFloatOptions;
|
|
1804
|
-
shading?: ShadingAttributesProperties;
|
|
1805
|
-
style?: string;
|
|
1806
|
-
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1807
|
-
cellMargin?: TableCellMarginOptions;
|
|
1808
|
-
visuallyRightToLeft?: boolean;
|
|
1809
|
-
tableLook?: TableLookOptions;
|
|
1810
|
-
cellSpacing?: TableCellSpacingProperties;
|
|
1811
|
-
styleRowBandSize?: number;
|
|
1812
|
-
styleColBandSize?: number;
|
|
1813
|
-
caption?: string;
|
|
1814
|
-
description?: string;
|
|
1815
|
-
}
|
|
1816
|
-
type TablePropertiesChangeOptions = TablePropertiesOptions & ChangedAttributesProperties;
|
|
1817
|
-
type TablePropertiesOptions = {
|
|
1818
|
-
revision?: TablePropertiesChangeOptions;
|
|
1819
|
-
includeIfEmpty?: boolean;
|
|
1820
|
-
} & TablePropertiesOptionsBase;
|
|
1821
|
-
//#endregion
|
|
1822
|
-
//#region src/parts/table/table-properties/table-property-exceptions.d.ts
|
|
1823
|
-
interface TablePropertyExOptions {
|
|
1824
|
-
width?: TableWidthProperties;
|
|
1825
|
-
indent?: TableWidthProperties;
|
|
1826
|
-
layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
1827
|
-
borders?: TableBordersOptions;
|
|
1828
|
-
shading?: ShadingAttributesProperties;
|
|
1829
|
-
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1830
|
-
cellMargin?: TableCellMarginOptions;
|
|
1831
|
-
tableLook?: TableLookOptions;
|
|
1832
|
-
cellSpacing?: TableCellSpacingProperties;
|
|
1833
|
-
tblPrExChange?: {
|
|
1834
|
-
author: string;
|
|
1835
|
-
date?: string;
|
|
1836
|
-
id: string;
|
|
1997
|
+
pageReference: {
|
|
1998
|
+
bookmarkId: string;
|
|
1999
|
+
hyperlink?: boolean;
|
|
2000
|
+
useRelativePosition?: boolean;
|
|
1837
2001
|
};
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
2002
|
+
} | {
|
|
2003
|
+
dir: {
|
|
2004
|
+
val: "ltr" | "rtl";
|
|
2005
|
+
children?: (RunOptions | string)[];
|
|
2006
|
+
};
|
|
2007
|
+
} | {
|
|
2008
|
+
bdo: {
|
|
2009
|
+
val: "ltr" | "rtl";
|
|
2010
|
+
children?: (RunOptions | string)[];
|
|
2011
|
+
};
|
|
2012
|
+
} | {
|
|
2013
|
+
smartTag: {
|
|
2014
|
+
uri?: string;
|
|
2015
|
+
element: string;
|
|
2016
|
+
properties?: Array<{
|
|
2017
|
+
uri?: string;
|
|
2018
|
+
name: string;
|
|
2019
|
+
val: string;
|
|
2020
|
+
}>;
|
|
2021
|
+
children?: (RunOptions | string)[];
|
|
2022
|
+
};
|
|
2023
|
+
} | {
|
|
2024
|
+
customXml: CustomXmlRunOptions & {
|
|
2025
|
+
children?: (ParagraphChild | string)[];
|
|
2026
|
+
};
|
|
2027
|
+
} | {
|
|
2028
|
+
sdt: SdtRunOptions;
|
|
2029
|
+
} | RunOptions;
|
|
2030
|
+
type ParagraphOptions = {
|
|
2031
|
+
text?: string;
|
|
2032
|
+
children?: (ParagraphChild | string)[];
|
|
2033
|
+
rsidR?: string;
|
|
2034
|
+
rsidRPr?: string;
|
|
2035
|
+
rsidRDefault?: string;
|
|
2036
|
+
rsidDel?: string;
|
|
2037
|
+
rsidP?: string;
|
|
2038
|
+
} & ParagraphPropertiesOptions;
|
|
1867
2039
|
//#endregion
|
|
1868
2040
|
//#region src/parts/table/table-row/table-row-properties.d.ts
|
|
1869
2041
|
interface CnfStyleOptions {
|
|
1870
|
-
val
|
|
1871
|
-
|
|
2042
|
+
val?: string;
|
|
2043
|
+
firstRow?: boolean;
|
|
2044
|
+
lastRow?: boolean;
|
|
2045
|
+
firstColumn?: boolean;
|
|
2046
|
+
lastColumn?: boolean;
|
|
2047
|
+
oddVBand?: boolean;
|
|
2048
|
+
evenVBand?: boolean;
|
|
2049
|
+
oddHBand?: boolean;
|
|
2050
|
+
evenHBand?: boolean;
|
|
2051
|
+
firstRowFirstColumn?: boolean;
|
|
2052
|
+
firstRowLastColumn?: boolean;
|
|
2053
|
+
lastRowFirstColumn?: boolean;
|
|
2054
|
+
lastRowLastColumn?: boolean;
|
|
1872
2055
|
}
|
|
1873
2056
|
interface TableRowPropertiesOptionsBase {
|
|
1874
2057
|
cnfStyle?: CnfStyleOptions;
|
|
@@ -1876,7 +2059,7 @@ interface TableRowPropertiesOptionsBase {
|
|
|
1876
2059
|
tableHeader?: boolean;
|
|
1877
2060
|
height?: {
|
|
1878
2061
|
value: number;
|
|
1879
|
-
rule
|
|
2062
|
+
rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
1880
2063
|
};
|
|
1881
2064
|
cellSpacing?: TableCellSpacingProperties;
|
|
1882
2065
|
divId?: number;
|
|
@@ -1895,53 +2078,6 @@ type TableRowPropertiesOptions = TableRowPropertiesOptionsBase & {
|
|
|
1895
2078
|
};
|
|
1896
2079
|
type TableRowPropertiesChangeOptions = TableRowPropertiesOptionsBase & ChangedAttributesProperties;
|
|
1897
2080
|
//#endregion
|
|
1898
|
-
//#region src/parts/table/table-row/table-row.d.ts
|
|
1899
|
-
type TableRowOptions = {
|
|
1900
|
-
cells: TableCellOptions[];
|
|
1901
|
-
propertyExceptions?: TablePropertyExOptions;
|
|
1902
|
-
rsidRPr?: string;
|
|
1903
|
-
rsidR?: string;
|
|
1904
|
-
rsidDel?: string;
|
|
1905
|
-
rsidTr?: string;
|
|
1906
|
-
} & TableRowPropertiesOptions;
|
|
1907
|
-
//#endregion
|
|
1908
|
-
//#region src/parts/table/table.d.ts
|
|
1909
|
-
interface TableOptions {
|
|
1910
|
-
rows: TableRowOptions[];
|
|
1911
|
-
width?: TableWidthProperties;
|
|
1912
|
-
columnWidths?: number[] | PositiveUniversalMeasure[];
|
|
1913
|
-
columnWidthsRevision?: TableGridChangeOptions;
|
|
1914
|
-
margins?: TableCellMarginOptions;
|
|
1915
|
-
indent?: TableWidthProperties;
|
|
1916
|
-
float?: TableFloatOptions;
|
|
1917
|
-
layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
1918
|
-
style?: string;
|
|
1919
|
-
borders?: TableBordersOptions;
|
|
1920
|
-
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1921
|
-
visuallyRightToLeft?: boolean;
|
|
1922
|
-
tableLook?: TableLookOptions;
|
|
1923
|
-
cellSpacing?: TableCellSpacingProperties;
|
|
1924
|
-
styleRowBandSize?: number;
|
|
1925
|
-
styleColBandSize?: number;
|
|
1926
|
-
caption?: string;
|
|
1927
|
-
description?: string;
|
|
1928
|
-
revision?: TablePropertiesChangeOptions;
|
|
1929
|
-
}
|
|
1930
|
-
//#endregion
|
|
1931
|
-
//#region src/parts/table/descriptor.d.ts
|
|
1932
|
-
declare const tableDesc: CustomDescriptor<TableOptions, BodyContext>;
|
|
1933
|
-
type ParseChildFn = (el: Element, ctx: DocxReadContext) => SectionChild;
|
|
1934
|
-
declare function setTableParseChild(fn: ParseChildFn): void;
|
|
1935
|
-
//#endregion
|
|
1936
|
-
//#region src/parts/table/table-properties/table-cell-margin.d.ts
|
|
1937
|
-
interface TableCellMarginOptions {
|
|
1938
|
-
marginUnitType?: (typeof WidthType)[keyof typeof WidthType];
|
|
1939
|
-
top?: number | PositiveUniversalMeasure;
|
|
1940
|
-
bottom?: number | PositiveUniversalMeasure;
|
|
1941
|
-
left?: number | PositiveUniversalMeasure;
|
|
1942
|
-
right?: number | PositiveUniversalMeasure;
|
|
1943
|
-
}
|
|
1944
|
-
//#endregion
|
|
1945
2081
|
//#region src/parts/table/table-cell/table-cell-properties.d.ts
|
|
1946
2082
|
interface TableCellPropertiesOptionsBase {
|
|
1947
2083
|
cnfStyle?: CnfStyleOptions;
|
|
@@ -1973,6 +2109,11 @@ type TableCellPropertiesChangeOptions = TableCellPropertiesOptionsBase & Changed
|
|
|
1973
2109
|
type TableCellOptions = {
|
|
1974
2110
|
children: SectionChild[];
|
|
1975
2111
|
} & TableCellPropertiesOptions;
|
|
2112
|
+
interface SdtCellOptions {
|
|
2113
|
+
properties: SdtPropertiesOptions;
|
|
2114
|
+
cells?: TableCellOptions[];
|
|
2115
|
+
endProperties?: RunPropertiesOptions;
|
|
2116
|
+
}
|
|
1976
2117
|
//#endregion
|
|
1977
2118
|
//#region src/parts/custom-xml/custom-xml.d.ts
|
|
1978
2119
|
interface CustomXmlDataBindingOptions {
|
|
@@ -1994,24 +2135,15 @@ interface CustomXmlRunOptions {
|
|
|
1994
2135
|
uri?: string;
|
|
1995
2136
|
customXmlPr?: CustomXmlPrOptions;
|
|
1996
2137
|
}
|
|
1997
|
-
|
|
1998
|
-
element: string;
|
|
1999
|
-
uri?: string;
|
|
2000
|
-
customXmlPr?: CustomXmlPrOptions;
|
|
2138
|
+
type CustomXmlBlockOptions = CustomXmlRunOptions & {
|
|
2001
2139
|
children?: SectionChild[];
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
element: string;
|
|
2005
|
-
uri?: string;
|
|
2006
|
-
customXmlPr?: CustomXmlPrOptions;
|
|
2140
|
+
};
|
|
2141
|
+
type CustomXmlRowOptions = CustomXmlRunOptions & {
|
|
2007
2142
|
children?: TableRowOptions[];
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
|
-
element: string;
|
|
2011
|
-
uri?: string;
|
|
2012
|
-
customXmlPr?: CustomXmlPrOptions;
|
|
2143
|
+
};
|
|
2144
|
+
type CustomXmlCellOptions = CustomXmlRunOptions & {
|
|
2013
2145
|
children?: TableCellOptions[];
|
|
2014
|
-
}
|
|
2146
|
+
};
|
|
2015
2147
|
//#endregion
|
|
2016
2148
|
//#region src/parts/document/body/section-properties/properties/column.d.ts
|
|
2017
2149
|
interface ColumnAttributes {
|
|
@@ -2182,120 +2314,6 @@ interface SubDocOptions {
|
|
|
2182
2314
|
data: Uint8Array | string;
|
|
2183
2315
|
}
|
|
2184
2316
|
//#endregion
|
|
2185
|
-
//#region src/parts/table-of-contents/table-of-contents-properties.d.ts
|
|
2186
|
-
declare class StyleLevel {
|
|
2187
|
-
styleName: string;
|
|
2188
|
-
level: number;
|
|
2189
|
-
constructor(styleName: string, level: number);
|
|
2190
|
-
}
|
|
2191
|
-
interface TableOfContentsOptions {
|
|
2192
|
-
captionLabel?: string;
|
|
2193
|
-
entriesFromBookmark?: string;
|
|
2194
|
-
captionLabelIncludingNumbers?: string;
|
|
2195
|
-
sequenceAndPageNumbersSeparator?: string;
|
|
2196
|
-
tcFieldIdentifier?: string;
|
|
2197
|
-
hyperlink?: boolean;
|
|
2198
|
-
tcFieldLevelRange?: string;
|
|
2199
|
-
pageNumbersEntryLevelsRange?: string;
|
|
2200
|
-
headingStyleRange?: string;
|
|
2201
|
-
entryAndPageNumberSeparator?: string;
|
|
2202
|
-
seqFieldIdentifierForPrefix?: string;
|
|
2203
|
-
stylesWithLevels?: StyleLevel[];
|
|
2204
|
-
useAppliedParagraphOutlineLevel?: boolean;
|
|
2205
|
-
preserveTabInEntries?: boolean;
|
|
2206
|
-
preserveNewLineInEntries?: boolean;
|
|
2207
|
-
hideTabAndPageNumbersInWebView?: boolean;
|
|
2208
|
-
}
|
|
2209
|
-
//#endregion
|
|
2210
|
-
//#region src/parts/table-of-contents/sdt-properties.d.ts
|
|
2211
|
-
declare const SdtLock: {
|
|
2212
|
-
readonly SDT_LOCKED: "sdtLocked";
|
|
2213
|
-
readonly CONTENT_LOCKED: "contentLocked";
|
|
2214
|
-
readonly UNLOCKED: "unlocked";
|
|
2215
|
-
readonly SDT_CONTENT_LOCKED: "sdtContentLocked";
|
|
2216
|
-
};
|
|
2217
|
-
interface SdtListItem {
|
|
2218
|
-
displayText?: string;
|
|
2219
|
-
value?: string;
|
|
2220
|
-
}
|
|
2221
|
-
interface SdtComboBoxOptions {
|
|
2222
|
-
items?: SdtListItem[];
|
|
2223
|
-
lastValue?: string;
|
|
2224
|
-
}
|
|
2225
|
-
interface SdtDropDownListOptions {
|
|
2226
|
-
items?: SdtListItem[];
|
|
2227
|
-
lastValue?: string;
|
|
2228
|
-
}
|
|
2229
|
-
declare const SdtDateMappingType: {
|
|
2230
|
-
readonly TEXT: "text";
|
|
2231
|
-
readonly DATE: "date";
|
|
2232
|
-
readonly DATE_TIME: "dateTime";
|
|
2233
|
-
};
|
|
2234
|
-
interface SdtDateOptions {
|
|
2235
|
-
dateFormat?: string;
|
|
2236
|
-
languageId?: string;
|
|
2237
|
-
storeMappedDataAs?: (typeof SdtDateMappingType)[keyof typeof SdtDateMappingType];
|
|
2238
|
-
calendar?: string;
|
|
2239
|
-
fullDate?: string;
|
|
2240
|
-
}
|
|
2241
|
-
interface SdtTextOptions {
|
|
2242
|
-
multiLine?: boolean;
|
|
2243
|
-
}
|
|
2244
|
-
interface SdtCheckboxSymbol {
|
|
2245
|
-
val: string;
|
|
2246
|
-
font?: string;
|
|
2247
|
-
}
|
|
2248
|
-
interface SdtCheckboxOptions {
|
|
2249
|
-
checked?: boolean;
|
|
2250
|
-
checkedState?: SdtCheckboxSymbol;
|
|
2251
|
-
uncheckedState?: SdtCheckboxSymbol;
|
|
2252
|
-
}
|
|
2253
|
-
interface SdtDataBindingOptions {
|
|
2254
|
-
prefixMappings?: string;
|
|
2255
|
-
xpath: string;
|
|
2256
|
-
storeItemID: string;
|
|
2257
|
-
}
|
|
2258
|
-
interface SdtPropertiesOptions {
|
|
2259
|
-
alias?: string;
|
|
2260
|
-
tag?: string;
|
|
2261
|
-
id?: number;
|
|
2262
|
-
lock?: (typeof SdtLock)[keyof typeof SdtLock];
|
|
2263
|
-
temporary?: boolean;
|
|
2264
|
-
showingPlaceholder?: boolean;
|
|
2265
|
-
dataBinding?: SdtDataBindingOptions;
|
|
2266
|
-
label?: number;
|
|
2267
|
-
tabIndex?: number;
|
|
2268
|
-
equation?: boolean;
|
|
2269
|
-
comboBox?: SdtComboBoxOptions;
|
|
2270
|
-
date?: SdtDateOptions;
|
|
2271
|
-
docPartObj?: {
|
|
2272
|
-
gallery?: string;
|
|
2273
|
-
category?: string;
|
|
2274
|
-
unique?: boolean;
|
|
2275
|
-
};
|
|
2276
|
-
docPartList?: {
|
|
2277
|
-
gallery?: string;
|
|
2278
|
-
category?: string;
|
|
2279
|
-
unique?: boolean;
|
|
2280
|
-
};
|
|
2281
|
-
dropDownList?: SdtDropDownListOptions;
|
|
2282
|
-
picture?: boolean;
|
|
2283
|
-
richText?: boolean;
|
|
2284
|
-
text?: SdtTextOptions;
|
|
2285
|
-
citation?: boolean;
|
|
2286
|
-
group?: boolean;
|
|
2287
|
-
bibliography?: boolean;
|
|
2288
|
-
checkbox?: SdtCheckboxOptions;
|
|
2289
|
-
}
|
|
2290
|
-
//#endregion
|
|
2291
|
-
//#region src/parts/table-of-contents/toc-parse.d.ts
|
|
2292
|
-
declare function parseToc(el: Element, _ctx: DocxReadContext): ({
|
|
2293
|
-
alias?: string;
|
|
2294
|
-
} & TableOfContentsOptions) | undefined;
|
|
2295
|
-
//#endregion
|
|
2296
|
-
//#region src/parts/table-of-contents/descriptor.d.ts
|
|
2297
|
-
declare function stringifyTableOfContents(alias?: string, options?: TableOfContentsOptions): string;
|
|
2298
|
-
//#endregion
|
|
2299
2317
|
//#region src/parts/textbox/types.d.ts
|
|
2300
2318
|
type LengthUnit = "auto" | number | Percentage | UniversalMeasure | RelativeMeasure;
|
|
2301
2319
|
//#endregion
|
|
@@ -2350,9 +2368,7 @@ type SectionChild = {
|
|
|
2350
2368
|
} | {
|
|
2351
2369
|
subDoc: SubDocOptions;
|
|
2352
2370
|
} | {
|
|
2353
|
-
customXml:
|
|
2354
|
-
children?: SectionChild[];
|
|
2355
|
-
};
|
|
2371
|
+
customXml: CustomXmlBlockOptions;
|
|
2356
2372
|
} | {
|
|
2357
2373
|
rawXml: string;
|
|
2358
2374
|
};
|
|
@@ -3556,5 +3572,5 @@ interface CorePropertiesInput {
|
|
|
3556
3572
|
}
|
|
3557
3573
|
declare const corePropertiesDesc: CustomDescriptor<CorePropertiesInput>;
|
|
3558
3574
|
//#endregion
|
|
3559
|
-
export { OdsoOptions as $,
|
|
3560
|
-
//# sourceMappingURL=core-properties-
|
|
3575
|
+
export { OdsoOptions as $, ShadingAttributesProperties as $a, TableAnchorType as $i, ChartOptions as $n, ParagraphPropertiesOptions as $r, createPageNumberType as $t, webSettingsDesc as A, parseToc as Aa, HorizontalPositionAlign as Ai, SmartTagRunOptions as An, WpgCommonMediaData as Ar, VmlShapeStyle as At, CaptionsOptions as B, SdtPropertiesOptions as Ba, TableCellBordersOptions as Bi, RubyAlign as Bn, TextHorzOverflowType as Br, createSectionType as Bt, DivBorderOptions as C, TableVerticalAlign as Ca, YearShort as Ci, MathChild as Cn, ChartMediaData as Cr, SectionPropertiesOptionsBase as Ct, WebSettingsOptions as D, CellMergeAttributes as Da, FrameOptions$1 as Di, SmartArtChild as Dn, MediaDataTransformation as Dr, DocumentAttributeNamespaces as Dt, WebSettingsInput as E, createVerticalAlign as Ea, FrameAnchorType as Ei, SdtRunOptions as En, MediaData as Er, DocumentAttributeNamespace as Et, buildNumberingCache as F, SdtDateMappingType as Fa, tableDesc as Fi, FormFieldTextOptions as Fn, BodyPropertiesOptions as Fr, HeaderFooterReferenceOptions as Ft, MailMergeDataType as G, ParagraphRunPropertiesOptions as Ga, TablePropertiesChangeOptions as Gi, PositionalTabRelativeTo as Gn, ChildExtent as Gr, PageMarginAttributes as Gt, EndnotePropertiesOptions as H, StyleLevel as Ha, VerticalMergeType as Hi, PositionalTabAlignment as Hn, TextVerticalType as Hr, LineNumberRestartFormat as Ht, buildStyleCache as I, SdtDateOptions as Ia, TableOptions as Ii, FormFieldTextType as In, FlatTextOptions as Ir, HeaderFooterReferenceType as It, MailMergeOptions as J, RunStylePropertiesOptions as Ja, TableLookOptions as Ji, SimpleFieldOptions as Jn, WpgGroupCoreOptions as Jr, PageBorderOffsetFrom as Jt, MailMergeDest as K, RunPropertiesChangeOptions as Ka, TablePropertiesOptions as Ki, CommentOptions as Kn, ChildOffset as Kr, createPageMargin as Kt, parseStyleDefinitions as L, SdtDropDownListOptions as La, HeightRule as Li, TextInputOptions as Ln, NormalAutofitOptions as Lr, HeaderFooterType as Lt, SubDocData as M, SdtCheckboxSymbol as Ma, SpaceType as Mi, DropDownListOptions as Mn, WpsMediaData as Mr, parseSectionPropertiesEl as Mt, Styles as N, SdtComboBoxOptions as Na, VerticalPositionAlign as Ni, FormFieldCommonOptions as Nn, WpsShapeCoreOptions as Nr, sectionPropertiesDesc as Nt, frameXml as O, VerticalMergeRevisionType as Oa, FrameWrap as Oi, ProofErrorType as On, SmartArtMediaData as Or, SectionChild as Ot, StylesOptions as P, SdtDataBindingOptions as Pa, setTableParseChild as Pi, FormFieldOptions as Pn, WpsShapeOptions as Pr, stringifySectionPropertiesXml as Pt, OdsoFieldType as Q, EmphasisMarkType as Qa, RelativeVerticalPosition as Qi, SmartArtOptions as Qn, ParagraphPropertiesChangeOptions as Qr, PageNumberTypeAttributes as Qt, AutoCaptionOptions as R, SdtListItem as Ra, SdtRowOptions as Ri, createFormFieldData as Rn, PresetTextShapeOptions as Rr, createHeaderFooterReference as Rt, parseDocx as S, SectionVerticalAlign as Sa, YearLong as Si, ImageChild as Sn, createTransformation as Sr, SectionPropertiesOptions as St, TargetScreenSize as T, VerticalAlignTable as Ta, DropCapType as Ti, ParagraphOptions as Tn, GroupChildMediaData as Tr, sectionPageSizeDefaults as Tt, FootnotePropertiesOptions as U, TableOfContentsOptions as Ua, TablePropertyExChangeOptions as Ui, PositionalTabLeader as Un, VerticalAnchor as Ur, createLineNumberType as Ut, DocumentProtectionOptions as V, SdtTextOptions as Va, TextDirection as Vi, RubyOptions as Vn, TextVertOverflowType as Vr, LineNumberAttributes as Vt, HyphenationOptions as W, HighlightColor as Wa, TablePropertyExOptions as Wi, PositionalTabOptions as Wn, createBodyProperties as Wr, PageTextDirectionType as Wt, MathPropertiesOptions as X, UnderlineType as Xa, OverlapType as Xi, WpsShapeRunOptions as Xn, SymbolRunOptions as Xr, PageBordersOptions as Xt, MailMergeSourceType as Y, TextEffect as Ya, TableLayoutType as Yi, WpgGroupRunOptions as Yn, WpgGroupOptions as Yr, PageBorderZOrder as Yt, OdsoFieldMapDataOptions as Z, FontAttributesProperties as Za, RelativeHorizontalPosition as Zi, SmartArtNode as Zn, LevelParagraphStylePropertiesOptions as Zr, PageNumberSeparator as Zt, DocxWriteContext as _, CnfConditionalOptions as _a, NoBreakHyphen as _i, CnfStyleOptions as _n, TextWrapping as _r, DocPartType as _t, BackgroundImageOptions as a, MathScriptType as aa, ParagraphRunOptions as ai, createDocumentGrid as an, AltChunkData as ao, Distance as ar, CompatibilityOptions as at, parseArchive as b, TableWidthProperties as ba, SoftHyphen as bi, TableRowPropertiesOptionsBase as bn, Media as br, HeaderFooterGroup as bt, CustomPropertyOptions as c, TabStopDefinition as ca, CarriageReturn as ci, CustomXmlAttributeOptions as cn, ContentTypeOverride as co, createHorizontalPosition as cr, Numbering as ct, AppPropertiesOptions as d, HeadingLevel as da, DayShort as di, CustomXmlDataBindingOptions as dn, contentTypesDesc as do, HorizontalPositionRelativeFrom as dr, LevelFormat as dt, TableFloatOptions as ea, ParagraphPropertiesOptionsBase as ei, PageOrientation as en, ShadingType as eo, ImageOptions as er, ReadModeInkLockDownOptions as et, appPropertiesDesc as f, LineRuleType as fa, EndnoteReference as fi, CustomXmlPrOptions as fn, BibliographyOptions as fo, Margins as fr, LevelSuffix as ft, DocxReadContext as g, IndentAttributesProperties as ga, MonthShort as gi, TableCellOptions as gn, createWrapTight as gr, DocPartOptions as gt, BodyContext as h, BreakTypeValue as ha, MonthLong as hi, SdtCellOptions as hn, createWrapThrough as hr, DocPartGallery as ht, corePropertiesDesc as i, MathRunPropertiesOptions as ia, PageNumber as ii, DocumentGridType as in, AltChunkCollection as io, resetDrawingIdGen as ir, WriteProtectionOptions as it, SubDocCollection as j, SdtCheckboxOptions as ja, NumberFormat as ji, CheckBoxOptions as jn, WpgMediaData as jr, SubDocOptions as jt, framesetXml as k, stringifyTableOfContents as ka, XYFrameOptions as ki, ProofErrorTypeValue as kn, WORKAROUND2 as kr, SectionOptions as kt, customPropertiesDesc as l, TabStopPosition as la, ContinuationSeparator as li, CustomXmlBlockOptions as ln, ContentTypesInput as lo, Floating as lr, NumberingOptions as lt, EmbeddedFontOptionsWithKey as m, BreakType as ma, LastRenderedPageBreak as mi, CustomXmlRunOptions as mn, bibliographyDesc as mo, VerticalPositionRelativeFrom as mr, DocPartBehavior as mt, DocumentOptions as n, TableBordersOptions as na, TextAlignmentType as ni, createPageSize as nn, BorderStyle as no, DrawingDescriptorOptions as nr, RsidsOptions as nt, DocumentBackgroundOptions as o, MathStyleType as oa, RunOptions as oi, ColumnsAttributes as on, CharacterSet as oo, DrawingOptions as or, ConcreteNumberingOptions as ot, settingsDesc as p, SpacingProperties as pa, FootnoteReferenceElement as pi, CustomXmlRowOptions as pn, SourceTypeOptions as po, VerticalPositionOptions as pr, LevelsOptions as pt, MailMergeDocType as q, RunPropertiesOptions as qa, TablePropertiesOptionsBase as qi, CommentsOptions as qn, GroupChild as qr, PageBorderDisplay as qt, FeaturesOptions as r, MathInput as ra, TextboxTightWrapType as ri, DocGridAttributesProperties as rn, AltChunkOptions as ro, drawingDesc as rr, SettingsOptions as rt, CustomPropertiesInput as s, LeaderType as sa, AnnotationReference as si, ColumnAttributes as sn, ContentTypeDefault as so, createVerticalPosition as sr, AbstractNumberingOptions as st, CorePropertiesInput as t, TABLE_BORDERS_NONE as ta, ParagraphStylePropertiesOptions as ti, PageSizeAttributes as tn, BorderOptions as to, createImageData as tr, RevisionViewOptions as tt, AppPropertiesInput as u, TabStopType as ua, DayLong as ui, CustomXmlCellOptions as un, buildContentTypes as uo, HorizontalPositionOptions as ur, parseNumberingDefinitions as ut, DocxDocument as v, BordersOptions as va, PageNumberElement as vi, TableRowPropertiesChangeOptions as vn, TextWrappingSide as vr, GlossaryDocumentOptions as vt, DivOptions as w, VerticalAlignSection as wa, AlignmentFrameOptions as wi, ParagraphChild as wn, ExtendedMediaData as wr, sectionMarginDefaults as wt, parseDocument as x, WidthType as xa, Tab as xi, ChartChild as xn, MediaTransformation as xr, SectionPropertiesChangeOptions as xt, DocxPartRefs as y, AlignmentType as ya, Separator as yi, TableRowPropertiesOptions as yn, TextWrappingType as yr, glossaryDesc as yt, CaptionOptions as z, SdtLock as za, TableRowOptions as zi, parseFormFieldData as zn, TextBodyWrappingType as zr, SectionType as zt };
|
|
3576
|
+
//# sourceMappingURL=core-properties-DMRyJWDp.d.mts.map
|