@office-open/docx 0.9.3 → 0.9.5
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-DeKZoZem.mjs → context-CSBntKXD.mjs} +694 -1114
- package/dist/context-CSBntKXD.mjs.map +1 -0
- package/dist/{core-properties-D9dBbZtc.d.mts → core-properties-BMagGcpC.d.mts} +462 -423
- package/dist/core-properties-BMagGcpC.d.mts.map +1 -0
- package/dist/{document-D8HDkCHs.mjs → document-DYH7tGnw.mjs} +2259 -830
- package/dist/document-DYH7tGnw.mjs.map +1 -0
- package/dist/{generate-DjkvEWjY.mjs → generate-BVfOLdwW.mjs} +4 -4
- package/dist/generate-BVfOLdwW.mjs.map +1 -0
- package/dist/generate.d.mts +1 -1
- package/dist/generate.mjs +1 -1
- package/dist/index.d.mts +13 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -34
- package/dist/index.mjs.map +1 -1
- package/dist/{parse-CR5VbXbs.mjs → parse-Db2NGghB.mjs} +17 -29
- package/dist/parse-Db2NGghB.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-DeKZoZem.mjs.map +0 -1
- package/dist/core-properties-D9dBbZtc.d.mts.map +0 -1
- package/dist/document-D8HDkCHs.mjs.map +0 -1
- package/dist/generate-DjkvEWjY.mjs.map +0 -1
- package/dist/parse-CR5VbXbs.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";
|
|
@@ -210,48 +532,6 @@ declare const AlignmentType: {
|
|
|
210
532
|
readonly JUSTIFIED: "both";
|
|
211
533
|
};
|
|
212
534
|
//#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
535
|
//#region src/parts/paragraph/formatting/border.d.ts
|
|
256
536
|
interface BordersOptions {
|
|
257
537
|
top?: BorderOptions;
|
|
@@ -620,234 +900,68 @@ type XYFrameOptions = {
|
|
|
620
900
|
x: number;
|
|
621
901
|
y: number;
|
|
622
902
|
};
|
|
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];
|
|
903
|
+
} & BaseFrameOptions;
|
|
904
|
+
type AlignmentFrameOptions = {
|
|
905
|
+
type: "alignment";
|
|
906
|
+
alignment: {
|
|
907
|
+
x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
908
|
+
y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
807
909
|
};
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
910
|
+
} & BaseFrameOptions;
|
|
911
|
+
type FrameOptions$1 = XYFrameOptions | AlignmentFrameOptions;
|
|
912
|
+
//#endregion
|
|
913
|
+
//#region src/parts/paragraph/run/empty-children.d.ts
|
|
914
|
+
interface NoBreakHyphen {
|
|
915
|
+
noBreakHyphen: true;
|
|
916
|
+
}
|
|
917
|
+
interface SoftHyphen {
|
|
918
|
+
softHyphen: true;
|
|
919
|
+
}
|
|
920
|
+
interface DayShort {
|
|
921
|
+
dayShort: true;
|
|
922
|
+
}
|
|
923
|
+
interface MonthShort {
|
|
924
|
+
monthShort: true;
|
|
925
|
+
}
|
|
926
|
+
interface YearShort {
|
|
927
|
+
yearShort: true;
|
|
928
|
+
}
|
|
929
|
+
interface DayLong {
|
|
930
|
+
dayLong: true;
|
|
931
|
+
}
|
|
932
|
+
interface MonthLong {
|
|
933
|
+
monthLong: true;
|
|
934
|
+
}
|
|
935
|
+
interface YearLong {
|
|
936
|
+
yearLong: true;
|
|
937
|
+
}
|
|
938
|
+
interface AnnotationReference {
|
|
939
|
+
annotationRef: true;
|
|
940
|
+
}
|
|
941
|
+
interface FootnoteReferenceElement {
|
|
942
|
+
footnoteRef: true;
|
|
943
|
+
}
|
|
944
|
+
interface EndnoteReference {
|
|
945
|
+
endnoteRef: true;
|
|
946
|
+
}
|
|
947
|
+
interface Separator {
|
|
948
|
+
separator: true;
|
|
949
|
+
}
|
|
950
|
+
interface ContinuationSeparator {
|
|
951
|
+
continuationSeparator: true;
|
|
952
|
+
}
|
|
953
|
+
interface PageNumberElement {
|
|
954
|
+
pgNum: true;
|
|
955
|
+
}
|
|
956
|
+
interface CarriageReturn {
|
|
957
|
+
carriageReturn: true;
|
|
958
|
+
}
|
|
959
|
+
interface Tab {
|
|
960
|
+
tab: true;
|
|
961
|
+
}
|
|
962
|
+
interface LastRenderedPageBreak {
|
|
963
|
+
lastRenderedPageBreak: true;
|
|
842
964
|
}
|
|
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
965
|
//#endregion
|
|
852
966
|
//#region src/parts/paragraph/run/run.d.ts
|
|
853
967
|
interface RunOptionsBase {
|
|
@@ -1524,6 +1638,11 @@ interface MathChild {
|
|
|
1524
1638
|
children?: MathInput[];
|
|
1525
1639
|
};
|
|
1526
1640
|
}
|
|
1641
|
+
interface SdtRunOptions {
|
|
1642
|
+
properties: SdtPropertiesOptions;
|
|
1643
|
+
children?: (ParagraphChild | string)[];
|
|
1644
|
+
endProperties?: RunPropertiesOptions;
|
|
1645
|
+
}
|
|
1527
1646
|
type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
1528
1647
|
symbolRun: SymbolRunOptions;
|
|
1529
1648
|
} | {
|
|
@@ -1641,6 +1760,11 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
|
1641
1760
|
};
|
|
1642
1761
|
} | {
|
|
1643
1762
|
formField: FormFieldOptions;
|
|
1763
|
+
} | {
|
|
1764
|
+
complexField: {
|
|
1765
|
+
instruction: string;
|
|
1766
|
+
result?: string;
|
|
1767
|
+
};
|
|
1644
1768
|
} | {
|
|
1645
1769
|
seqIdentifier: string;
|
|
1646
1770
|
} | {
|
|
@@ -1671,19 +1795,11 @@ type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
|
1671
1795
|
children?: (RunOptions | string)[];
|
|
1672
1796
|
};
|
|
1673
1797
|
} | {
|
|
1674
|
-
customXml: {
|
|
1675
|
-
element: string;
|
|
1676
|
-
uri?: string;
|
|
1677
|
-
customXmlPr?: {
|
|
1678
|
-
placeholder?: string;
|
|
1679
|
-
attrs?: Array<{
|
|
1680
|
-
name: string;
|
|
1681
|
-
val: string;
|
|
1682
|
-
uri?: string;
|
|
1683
|
-
}>;
|
|
1684
|
-
};
|
|
1798
|
+
customXml: CustomXmlRunOptions & {
|
|
1685
1799
|
children?: (ParagraphChild | string)[];
|
|
1686
1800
|
};
|
|
1801
|
+
} | {
|
|
1802
|
+
sdt: SdtRunOptions;
|
|
1687
1803
|
} | RunOptions;
|
|
1688
1804
|
type ParagraphOptions = {
|
|
1689
1805
|
text?: string;
|
|
@@ -1891,8 +2007,17 @@ type TableRowPropertiesOptions = TableRowPropertiesOptionsBase & {
|
|
|
1891
2007
|
type TableRowPropertiesChangeOptions = TableRowPropertiesOptionsBase & ChangedAttributesProperties;
|
|
1892
2008
|
//#endregion
|
|
1893
2009
|
//#region src/parts/table/table-row/table-row.d.ts
|
|
2010
|
+
interface SdtRowOptions {
|
|
2011
|
+
properties: SdtPropertiesOptions;
|
|
2012
|
+
rows?: TableRowOptions[];
|
|
2013
|
+
endProperties?: RunPropertiesOptions;
|
|
2014
|
+
}
|
|
1894
2015
|
type TableRowOptions = {
|
|
1895
|
-
cells: TableCellOptions
|
|
2016
|
+
cells: (TableCellOptions | {
|
|
2017
|
+
sdt: SdtCellOptions;
|
|
2018
|
+
} | {
|
|
2019
|
+
customXml: CustomXmlCellOptions;
|
|
2020
|
+
})[];
|
|
1896
2021
|
propertyExceptions?: TablePropertyExOptions;
|
|
1897
2022
|
rsidRPr?: string;
|
|
1898
2023
|
rsidR?: string;
|
|
@@ -1902,7 +2027,11 @@ type TableRowOptions = {
|
|
|
1902
2027
|
//#endregion
|
|
1903
2028
|
//#region src/parts/table/table.d.ts
|
|
1904
2029
|
interface TableOptions {
|
|
1905
|
-
rows: TableRowOptions
|
|
2030
|
+
rows: (TableRowOptions | {
|
|
2031
|
+
sdt: SdtRowOptions;
|
|
2032
|
+
} | {
|
|
2033
|
+
customXml: CustomXmlRowOptions;
|
|
2034
|
+
})[];
|
|
1906
2035
|
width?: TableWidthProperties;
|
|
1907
2036
|
columnWidths?: number[] | PositiveUniversalMeasure[];
|
|
1908
2037
|
columnWidthsRevision?: TableGridChangeOptions;
|
|
@@ -1968,6 +2097,11 @@ type TableCellPropertiesChangeOptions = TableCellPropertiesOptionsBase & Changed
|
|
|
1968
2097
|
type TableCellOptions = {
|
|
1969
2098
|
children: SectionChild[];
|
|
1970
2099
|
} & TableCellPropertiesOptions;
|
|
2100
|
+
interface SdtCellOptions {
|
|
2101
|
+
properties: SdtPropertiesOptions;
|
|
2102
|
+
cells?: TableCellOptions[];
|
|
2103
|
+
endProperties?: RunPropertiesOptions;
|
|
2104
|
+
}
|
|
1971
2105
|
//#endregion
|
|
1972
2106
|
//#region src/parts/custom-xml/custom-xml.d.ts
|
|
1973
2107
|
interface CustomXmlDataBindingOptions {
|
|
@@ -1989,24 +2123,15 @@ interface CustomXmlRunOptions {
|
|
|
1989
2123
|
uri?: string;
|
|
1990
2124
|
customXmlPr?: CustomXmlPrOptions;
|
|
1991
2125
|
}
|
|
1992
|
-
|
|
1993
|
-
element: string;
|
|
1994
|
-
uri?: string;
|
|
1995
|
-
customXmlPr?: CustomXmlPrOptions;
|
|
2126
|
+
type CustomXmlBlockOptions = CustomXmlRunOptions & {
|
|
1996
2127
|
children?: SectionChild[];
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
element: string;
|
|
2000
|
-
uri?: string;
|
|
2001
|
-
customXmlPr?: CustomXmlPrOptions;
|
|
2128
|
+
};
|
|
2129
|
+
type CustomXmlRowOptions = CustomXmlRunOptions & {
|
|
2002
2130
|
children?: TableRowOptions[];
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
element: string;
|
|
2006
|
-
uri?: string;
|
|
2007
|
-
customXmlPr?: CustomXmlPrOptions;
|
|
2131
|
+
};
|
|
2132
|
+
type CustomXmlCellOptions = CustomXmlRunOptions & {
|
|
2008
2133
|
children?: TableCellOptions[];
|
|
2009
|
-
}
|
|
2134
|
+
};
|
|
2010
2135
|
//#endregion
|
|
2011
2136
|
//#region src/parts/document/body/section-properties/properties/column.d.ts
|
|
2012
2137
|
interface ColumnAttributes {
|
|
@@ -2177,120 +2302,6 @@ interface SubDocOptions {
|
|
|
2177
2302
|
data: Uint8Array | string;
|
|
2178
2303
|
}
|
|
2179
2304
|
//#endregion
|
|
2180
|
-
//#region src/parts/table-of-contents/table-of-contents-properties.d.ts
|
|
2181
|
-
declare class StyleLevel {
|
|
2182
|
-
styleName: string;
|
|
2183
|
-
level: number;
|
|
2184
|
-
constructor(styleName: string, level: number);
|
|
2185
|
-
}
|
|
2186
|
-
interface TableOfContentsOptions {
|
|
2187
|
-
captionLabel?: string;
|
|
2188
|
-
entriesFromBookmark?: string;
|
|
2189
|
-
captionLabelIncludingNumbers?: string;
|
|
2190
|
-
sequenceAndPageNumbersSeparator?: string;
|
|
2191
|
-
tcFieldIdentifier?: string;
|
|
2192
|
-
hyperlink?: boolean;
|
|
2193
|
-
tcFieldLevelRange?: string;
|
|
2194
|
-
pageNumbersEntryLevelsRange?: string;
|
|
2195
|
-
headingStyleRange?: string;
|
|
2196
|
-
entryAndPageNumberSeparator?: string;
|
|
2197
|
-
seqFieldIdentifierForPrefix?: string;
|
|
2198
|
-
stylesWithLevels?: StyleLevel[];
|
|
2199
|
-
useAppliedParagraphOutlineLevel?: boolean;
|
|
2200
|
-
preserveTabInEntries?: boolean;
|
|
2201
|
-
preserveNewLineInEntries?: boolean;
|
|
2202
|
-
hideTabAndPageNumbersInWebView?: boolean;
|
|
2203
|
-
}
|
|
2204
|
-
//#endregion
|
|
2205
|
-
//#region src/parts/table-of-contents/sdt-properties.d.ts
|
|
2206
|
-
declare const SdtLock: {
|
|
2207
|
-
readonly SDT_LOCKED: "sdtLocked";
|
|
2208
|
-
readonly CONTENT_LOCKED: "contentLocked";
|
|
2209
|
-
readonly UNLOCKED: "unlocked";
|
|
2210
|
-
readonly SDT_CONTENT_LOCKED: "sdtContentLocked";
|
|
2211
|
-
};
|
|
2212
|
-
interface SdtListItem {
|
|
2213
|
-
displayText?: string;
|
|
2214
|
-
value?: string;
|
|
2215
|
-
}
|
|
2216
|
-
interface SdtComboBoxOptions {
|
|
2217
|
-
items?: SdtListItem[];
|
|
2218
|
-
lastValue?: string;
|
|
2219
|
-
}
|
|
2220
|
-
interface SdtDropDownListOptions {
|
|
2221
|
-
items?: SdtListItem[];
|
|
2222
|
-
lastValue?: string;
|
|
2223
|
-
}
|
|
2224
|
-
declare const SdtDateMappingType: {
|
|
2225
|
-
readonly TEXT: "text";
|
|
2226
|
-
readonly DATE: "date";
|
|
2227
|
-
readonly DATE_TIME: "dateTime";
|
|
2228
|
-
};
|
|
2229
|
-
interface SdtDateOptions {
|
|
2230
|
-
dateFormat?: string;
|
|
2231
|
-
languageId?: string;
|
|
2232
|
-
storeMappedDataAs?: (typeof SdtDateMappingType)[keyof typeof SdtDateMappingType];
|
|
2233
|
-
calendar?: string;
|
|
2234
|
-
fullDate?: string;
|
|
2235
|
-
}
|
|
2236
|
-
interface SdtTextOptions {
|
|
2237
|
-
multiLine?: boolean;
|
|
2238
|
-
}
|
|
2239
|
-
interface SdtCheckboxSymbol {
|
|
2240
|
-
val: string;
|
|
2241
|
-
font?: string;
|
|
2242
|
-
}
|
|
2243
|
-
interface SdtCheckboxOptions {
|
|
2244
|
-
checked?: boolean;
|
|
2245
|
-
checkedState?: SdtCheckboxSymbol;
|
|
2246
|
-
uncheckedState?: SdtCheckboxSymbol;
|
|
2247
|
-
}
|
|
2248
|
-
interface SdtDataBindingOptions {
|
|
2249
|
-
prefixMappings?: string;
|
|
2250
|
-
xpath: string;
|
|
2251
|
-
storeItemID: string;
|
|
2252
|
-
}
|
|
2253
|
-
interface SdtPropertiesOptions {
|
|
2254
|
-
alias?: string;
|
|
2255
|
-
tag?: string;
|
|
2256
|
-
id?: number;
|
|
2257
|
-
lock?: (typeof SdtLock)[keyof typeof SdtLock];
|
|
2258
|
-
temporary?: boolean;
|
|
2259
|
-
showingPlaceholder?: boolean;
|
|
2260
|
-
dataBinding?: SdtDataBindingOptions;
|
|
2261
|
-
label?: number;
|
|
2262
|
-
tabIndex?: number;
|
|
2263
|
-
equation?: boolean;
|
|
2264
|
-
comboBox?: SdtComboBoxOptions;
|
|
2265
|
-
date?: SdtDateOptions;
|
|
2266
|
-
docPartObj?: {
|
|
2267
|
-
gallery?: string;
|
|
2268
|
-
category?: string;
|
|
2269
|
-
unique?: boolean;
|
|
2270
|
-
};
|
|
2271
|
-
docPartList?: {
|
|
2272
|
-
gallery?: string;
|
|
2273
|
-
category?: string;
|
|
2274
|
-
unique?: boolean;
|
|
2275
|
-
};
|
|
2276
|
-
dropDownList?: SdtDropDownListOptions;
|
|
2277
|
-
picture?: boolean;
|
|
2278
|
-
richText?: boolean;
|
|
2279
|
-
text?: SdtTextOptions;
|
|
2280
|
-
citation?: boolean;
|
|
2281
|
-
group?: boolean;
|
|
2282
|
-
bibliography?: boolean;
|
|
2283
|
-
checkbox?: SdtCheckboxOptions;
|
|
2284
|
-
}
|
|
2285
|
-
//#endregion
|
|
2286
|
-
//#region src/parts/table-of-contents/toc-parse.d.ts
|
|
2287
|
-
declare function parseToc(el: Element, _ctx: DocxReadContext): ({
|
|
2288
|
-
alias?: string;
|
|
2289
|
-
} & TableOfContentsOptions) | undefined;
|
|
2290
|
-
//#endregion
|
|
2291
|
-
//#region src/parts/table-of-contents/descriptor.d.ts
|
|
2292
|
-
declare function stringifyTableOfContents(alias?: string, options?: TableOfContentsOptions): string;
|
|
2293
|
-
//#endregion
|
|
2294
2305
|
//#region src/parts/textbox/types.d.ts
|
|
2295
2306
|
type LengthUnit = "auto" | number | Percentage | UniversalMeasure | RelativeMeasure;
|
|
2296
2307
|
//#endregion
|
|
@@ -2345,9 +2356,7 @@ type SectionChild = {
|
|
|
2345
2356
|
} | {
|
|
2346
2357
|
subDoc: SubDocOptions;
|
|
2347
2358
|
} | {
|
|
2348
|
-
customXml:
|
|
2349
|
-
children?: SectionChild[];
|
|
2350
|
-
};
|
|
2359
|
+
customXml: CustomXmlBlockOptions;
|
|
2351
2360
|
} | {
|
|
2352
2361
|
rawXml: string;
|
|
2353
2362
|
};
|
|
@@ -2696,9 +2705,9 @@ declare class Numbering {
|
|
|
2696
2705
|
reference: string;
|
|
2697
2706
|
instance: number;
|
|
2698
2707
|
}[];
|
|
2699
|
-
get referenceConfig():
|
|
2708
|
+
get referenceConfig(): LevelsOptions[][];
|
|
2700
2709
|
}
|
|
2701
|
-
declare function parseNumberingDefinitions(el: Element): NumberingOptions | undefined;
|
|
2710
|
+
declare function parseNumberingDefinitions(el: Element, parseParagraphProperties: (el: Element, ctx: DocxReadContext) => Record<string, unknown>, ctx: DocxReadContext): NumberingOptions | undefined;
|
|
2702
2711
|
//#endregion
|
|
2703
2712
|
//#region src/parts/numbering/abstract-numbering.d.ts
|
|
2704
2713
|
interface AbstractNumberingOptions {
|
|
@@ -3187,7 +3196,7 @@ declare class Styles {
|
|
|
3187
3196
|
}
|
|
3188
3197
|
declare function buildStyleCache(stylesEl: Element | undefined): Map<string, Element>;
|
|
3189
3198
|
declare function buildNumberingCache(numberingEl: Element | undefined): Map<string, Element>;
|
|
3190
|
-
declare function parseStyleDefinitions(el: Element, parseParagraphProperties: (el: Element, ctx:
|
|
3199
|
+
declare function parseStyleDefinitions(el: Element, parseParagraphProperties: (el: Element, ctx: DocxReadContext) => Record<string, unknown>, ctx: DocxReadContext): StylesOptions | undefined;
|
|
3191
3200
|
//#endregion
|
|
3192
3201
|
//#region src/parts/sub-doc/sub-doc-collection.d.ts
|
|
3193
3202
|
interface SubDocData {
|
|
@@ -3431,6 +3440,34 @@ interface EmbeddedFontOptions {
|
|
|
3431
3440
|
//#region src/parts/settings/descriptor.d.ts
|
|
3432
3441
|
declare const settingsDesc: CustomDescriptor<SettingsOptions>;
|
|
3433
3442
|
//#endregion
|
|
3443
|
+
//#region src/parts/app-properties.d.ts
|
|
3444
|
+
interface AppPropertiesOptions {
|
|
3445
|
+
template?: string;
|
|
3446
|
+
manager?: string;
|
|
3447
|
+
company?: string;
|
|
3448
|
+
pages?: number;
|
|
3449
|
+
words?: number;
|
|
3450
|
+
characters?: number;
|
|
3451
|
+
lines?: number;
|
|
3452
|
+
paragraphs?: number;
|
|
3453
|
+
notes?: number;
|
|
3454
|
+
slides?: number;
|
|
3455
|
+
totalTime?: number;
|
|
3456
|
+
hiddenSlides?: number;
|
|
3457
|
+
mmClips?: number;
|
|
3458
|
+
charactersWithSpaces?: number;
|
|
3459
|
+
docSecurity?: number;
|
|
3460
|
+
hyperlinkBase?: string;
|
|
3461
|
+
application?: string;
|
|
3462
|
+
appVersion?: string;
|
|
3463
|
+
scaleCrop?: boolean;
|
|
3464
|
+
linksUpToDate?: boolean;
|
|
3465
|
+
sharedDoc?: boolean;
|
|
3466
|
+
hyperlinksChanged?: boolean;
|
|
3467
|
+
}
|
|
3468
|
+
type AppPropertiesInput = AppPropertiesOptions;
|
|
3469
|
+
declare const appPropertiesDesc: CustomDescriptor<AppPropertiesInput>;
|
|
3470
|
+
//#endregion
|
|
3434
3471
|
//#region src/parts/custom-properties.d.ts
|
|
3435
3472
|
interface CustomPropertyOptions {
|
|
3436
3473
|
name: string;
|
|
@@ -3455,6 +3492,11 @@ interface DocumentBackgroundOptions {
|
|
|
3455
3492
|
}
|
|
3456
3493
|
//#endregion
|
|
3457
3494
|
//#region src/parts/core-properties.d.ts
|
|
3495
|
+
interface FeaturesOptions {
|
|
3496
|
+
trackRevisions?: boolean;
|
|
3497
|
+
updateFields?: boolean;
|
|
3498
|
+
documentProtection?: DocumentProtectionOptions;
|
|
3499
|
+
}
|
|
3458
3500
|
interface DocumentOptions {
|
|
3459
3501
|
sections: SectionOptions[];
|
|
3460
3502
|
title?: string;
|
|
@@ -3476,11 +3518,7 @@ interface DocumentOptions {
|
|
|
3476
3518
|
children: (ParagraphOptions | string)[];
|
|
3477
3519
|
}>>;
|
|
3478
3520
|
background?: DocumentBackgroundOptions;
|
|
3479
|
-
features?:
|
|
3480
|
-
trackRevisions?: boolean;
|
|
3481
|
-
updateFields?: boolean;
|
|
3482
|
-
documentProtection?: DocumentProtectionOptions;
|
|
3483
|
-
};
|
|
3521
|
+
features?: FeaturesOptions;
|
|
3484
3522
|
compatabilityModeVersion?: number;
|
|
3485
3523
|
compatibility?: CompatibilityOptions;
|
|
3486
3524
|
customProperties?: CustomPropertyOptions[];
|
|
@@ -3509,6 +3547,7 @@ interface DocumentOptions {
|
|
|
3509
3547
|
settings?: SettingsOptions;
|
|
3510
3548
|
webSettings?: WebSettingsOptions;
|
|
3511
3549
|
contentTypes?: ContentTypesInput;
|
|
3550
|
+
appProperties?: AppPropertiesOptions;
|
|
3512
3551
|
}
|
|
3513
3552
|
interface CorePropertiesInput {
|
|
3514
3553
|
title?: string;
|
|
@@ -3521,5 +3560,5 @@ interface CorePropertiesInput {
|
|
|
3521
3560
|
}
|
|
3522
3561
|
declare const corePropertiesDesc: CustomDescriptor<CorePropertiesInput>;
|
|
3523
3562
|
//#endregion
|
|
3524
|
-
export {
|
|
3525
|
-
//# sourceMappingURL=core-properties-
|
|
3563
|
+
export { OdsoOptions as $, ShadingType as $a, XYFrameOptions as $i, ProofErrorTypeValue as $n, WORKAROUND2 as $r, createPageNumberType as $t, webSettingsDesc as A, SdtCheckboxOptions as Aa, RunOptions as Ai, TablePropertyExOptions as An, DrawingOptions as Ar, VmlShapeStyle as At, CaptionsOptions as B, SdtTextOptions as Ba, MonthShort as Bi, TableFloatOptions as Bn, createWrapTight as Br, createSectionType as Bt, DivBorderOptions as C, VerticalAlignSection as Ca, ParagraphPropertiesOptions as Ci, TableRowPropertiesChangeOptions as Cn, ChartOptions as Cr, SectionPropertiesOptionsBase as Ct, WebSettingsOptions as D, VerticalMergeRevisionType as Da, TextboxTightWrapType as Di, TableCellBordersOptions as Dn, drawingDesc as Dr, DocumentAttributeNamespaces as Dt, WebSettingsInput as E, CellMergeAttributes as Ea, TextAlignmentType as Ei, HeightRule as En, DrawingDescriptorOptions as Er, DocumentAttributeNamespace as Et, buildNumberingCache as F, SdtDateOptions as Fa, DayShort as Fi, TableLayoutType as Fn, HorizontalPositionRelativeFrom as Fr, HeaderFooterReferenceOptions as Ft, MailMergeDataType as G, RunPropertiesChangeOptions as Ga, Tab as Gi, ChartChild as Gn, MediaTransformation as Gr, PageMarginAttributes as Gt, EndnotePropertiesOptions as H, TableOfContentsOptions as Ha, PageNumberElement as Hi, TableBordersOptions as Hn, TextWrappingSide as Hr, LineNumberRestartFormat as Ht, buildStyleCache as I, SdtDropDownListOptions as Ia, EndnoteReference as Ii, OverlapType as In, Margins as Ir, HeaderFooterReferenceType as It, MailMergeOptions as J, TextEffect as Ja, AlignmentFrameOptions as Ji, ParagraphChild as Jn, ExtendedMediaData as Jr, PageBorderOffsetFrom as Jt, MailMergeDest as K, RunPropertiesOptions as Ka, YearLong as Ki, ImageChild as Kn, createTransformation as Kr, createPageMargin as Kt, parseStyleDefinitions as L, SdtListItem as La, FootnoteReferenceElement as Li, RelativeHorizontalPosition as Ln, VerticalPositionOptions as Lr, HeaderFooterType as Lt, SubDocData as M, SdtComboBoxOptions as Ma, CarriageReturn as Mi, TablePropertiesOptions as Mn, createHorizontalPosition as Mr, parseSectionPropertiesEl as Mt, Styles as N, SdtDataBindingOptions as Na, ContinuationSeparator as Ni, TablePropertiesOptionsBase as Nn, Floating as Nr, sectionPropertiesDesc as Nt, frameXml as O, stringifyTableOfContents as Oa, PageNumber as Oi, TextDirection as On, resetDrawingIdGen as Or, SectionChild as Ot, StylesOptions as P, SdtDateMappingType as Pa, DayLong as Pi, TableLookOptions as Pn, HorizontalPositionOptions as Pr, stringifySectionPropertiesXml as Pt, OdsoFieldType as Q, ShadingAttributesProperties as Qa, FrameWrap as Qi, ProofErrorType as Qn, SmartArtMediaData as Qr, PageNumberTypeAttributes as Qt, AutoCaptionOptions as R, SdtLock as Ra, LastRenderedPageBreak as Ri, RelativeVerticalPosition as Rn, VerticalPositionRelativeFrom as Rr, createHeaderFooterReference as Rt, parseDocx as S, TableVerticalAlign as Sa, ParagraphPropertiesChangeOptions as Si, CnfStyleOptions as Sn, SmartArtOptions as Sr, SectionPropertiesOptions as St, TargetScreenSize as T, createVerticalAlign as Ta, ParagraphStylePropertiesOptions as Ti, TableRowPropertiesOptionsBase as Tn, createImageData as Tr, sectionPageSizeDefaults as Tt, FootnotePropertiesOptions as U, HighlightColor as Ua, Separator as Ui, TableWidthProperties as Un, TextWrappingType as Ur, createLineNumberType as Ut, DocumentProtectionOptions as V, StyleLevel as Va, NoBreakHyphen as Vi, TABLE_BORDERS_NONE as Vn, TextWrapping as Vr, LineNumberAttributes as Vt, HyphenationOptions as W, ParagraphRunPropertiesOptions as Wa, SoftHyphen as Wi, WidthType as Wn, Media as Wr, PageTextDirectionType as Wt, MathPropertiesOptions as X, FontAttributesProperties as Xa, FrameAnchorType as Xi, SdtRunOptions as Xn, MediaData as Xr, PageBordersOptions as Xt, MailMergeSourceType as Y, UnderlineType as Ya, DropCapType as Yi, ParagraphOptions as Yn, GroupChildMediaData as Yr, PageBorderZOrder as Yt, OdsoFieldMapDataOptions as Z, EmphasisMarkType as Za, FrameOptions$1 as Zi, SmartArtChild as Zn, MediaDataTransformation as Zr, PageNumberSeparator as Zt, DocxWriteContext as _, IndentAttributesProperties as _a, GroupChild as _i, setTableParseChild as _n, CommentsOptions as _r, DocPartType as _t, BackgroundImageOptions as a, MathRunPropertiesOptions as aa, BodyPropertiesOptions as ai, createDocumentGrid as an, CharacterSet as ao, FormFieldTextOptions as ar, CompatibilityOptions as at, parseArchive as b, AlignmentType as ba, SymbolRunOptions as bi, SdtRowOptions as bn, WpsShapeRunOptions as br, HeaderFooterGroup as bt, CustomPropertyOptions as c, LeaderType as ca, PresetTextShapeOptions as ci, CustomXmlAttributeOptions as cn, ContentTypesInput as co, createFormFieldData as cr, Numbering as ct, AppPropertiesOptions as d, TabStopType as da, TextVertOverflowType as di, CustomXmlDataBindingOptions as dn, BibliographyOptions as do, RubyOptions as dr, LevelFormat as dt, HorizontalPositionAlign as ea, WpgCommonMediaData as ei, PageOrientation as en, BorderOptions as eo, SmartTagRunOptions as er, ReadModeInkLockDownOptions as et, appPropertiesDesc as f, HeadingLevel as fa, TextVerticalType as fi, CustomXmlPrOptions as fn, SourceTypeOptions as fo, PositionalTabAlignment as fr, LevelSuffix as ft, DocxReadContext as g, BreakTypeValue as ga, ChildOffset as gi, TableCellOptions as gn, CommentOptions as gr, DocPartOptions as gt, BodyContext as h, BreakType as ha, ChildExtent as hi, SdtCellOptions as hn, PositionalTabRelativeTo as hr, DocPartGallery as ht, corePropertiesDesc as i, MathInput as ia, WpsShapeOptions as ii, DocumentGridType as in, AltChunkData as io, FormFieldOptions as ir, WriteProtectionOptions as it, SubDocCollection as j, SdtCheckboxSymbol as ja, AnnotationReference as ji, TablePropertiesChangeOptions as jn, createVerticalPosition as jr, SubDocOptions as jt, framesetXml as k, parseToc as ka, ParagraphRunOptions as ki, VerticalMergeType as kn, Distance as kr, SectionOptions as kt, customPropertiesDesc as l, TabStopDefinition as la, TextBodyWrappingType as li, CustomXmlBlockOptions as ln, buildContentTypes as lo, parseFormFieldData as lr, NumberingOptions as lt, EmbeddedFontOptionsWithKey as m, SpacingProperties as ma, createBodyProperties as mi, CustomXmlRunOptions as mn, PositionalTabOptions as mr, DocPartBehavior as mt, DocumentOptions as n, SpaceType as na, WpsMediaData as ni, createPageSize as nn, AltChunkOptions as no, DropDownListOptions as nr, RsidsOptions as nt, DocumentBackgroundOptions as o, MathScriptType as oa, FlatTextOptions as oi, ColumnsAttributes as on, ContentTypeDefault as oo, FormFieldTextType as or, ConcreteNumberingOptions as ot, settingsDesc as p, LineRuleType as pa, VerticalAnchor as pi, CustomXmlRowOptions as pn, bibliographyDesc as po, PositionalTabLeader as pr, LevelsOptions as pt, MailMergeDocType as q, RunStylePropertiesOptions as qa, YearShort as qi, MathChild as qn, ChartMediaData as qr, PageBorderDisplay as qt, FeaturesOptions as r, VerticalPositionAlign as ra, WpsShapeCoreOptions as ri, DocGridAttributesProperties as rn, AltChunkCollection as ro, FormFieldCommonOptions as rr, SettingsOptions as rt, CustomPropertiesInput as s, MathStyleType as sa, NormalAutofitOptions as si, ColumnAttributes as sn, ContentTypeOverride as so, TextInputOptions as sr, AbstractNumberingOptions as st, CorePropertiesInput as t, NumberFormat as ta, WpgMediaData as ti, PageSizeAttributes as tn, BorderStyle as to, CheckBoxOptions as tr, RevisionViewOptions as tt, AppPropertiesInput as u, TabStopPosition as ua, TextHorzOverflowType as ui, CustomXmlCellOptions as un, contentTypesDesc as uo, RubyAlign as ur, parseNumberingDefinitions as ut, DocxDocument as v, CnfConditionalOptions as va, WpgGroupCoreOptions as vi, tableDesc as vn, SimpleFieldOptions as vr, GlossaryDocumentOptions as vt, DivOptions as w, VerticalAlignTable as wa, ParagraphPropertiesOptionsBase as wi, TableRowPropertiesOptions as wn, ImageOptions as wr, sectionMarginDefaults as wt, parseDocument as x, SectionVerticalAlign as xa, LevelParagraphStylePropertiesOptions as xi, TableRowOptions as xn, SmartArtNode as xr, SectionPropertiesChangeOptions as xt, DocxPartRefs as y, BordersOptions as ya, WpgGroupOptions as yi, TableOptions as yn, WpgGroupRunOptions as yr, glossaryDesc as yt, CaptionOptions as z, SdtPropertiesOptions as za, MonthLong as zi, TableAnchorType as zn, createWrapThrough as zr, SectionType as zt };
|
|
3564
|
+
//# sourceMappingURL=core-properties-BMagGcpC.d.mts.map
|