docx-wasm 0.0.276-rc2 → 0.0.276-rc5
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/node/json/bindings/FieldChar.d.ts +5 -0
- package/dist/node/json/bindings/FieldChar.js +3 -0
- package/dist/node/json/bindings/FieldChar.js.map +1 -0
- package/dist/node/json/bindings/FieldCharType.d.ts +1 -0
- package/dist/node/json/bindings/FieldCharType.js +3 -0
- package/dist/node/json/bindings/FieldCharType.js.map +1 -0
- package/dist/node/json/bindings/InstrHyperlink.d.ts +4 -0
- package/dist/node/json/bindings/InstrHyperlink.js +3 -0
- package/dist/node/json/bindings/InstrHyperlink.js.map +1 -0
- package/dist/node/json/index.d.ts +1 -1
- package/dist/node/json/run.d.ts +14 -1
- package/dist/node/pkg/docx_wasm.d.ts +53 -53
- package/dist/node/pkg/docx_wasm.js +12 -12
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/json/bindings/FieldChar.d.ts +5 -0
- package/dist/web/json/bindings/FieldChar.js +2 -0
- package/dist/web/json/bindings/FieldChar.js.map +1 -0
- package/dist/web/json/bindings/FieldCharType.d.ts +1 -0
- package/dist/web/json/bindings/FieldCharType.js +2 -0
- package/dist/web/json/bindings/FieldCharType.js.map +1 -0
- package/dist/web/json/bindings/InstrHyperlink.d.ts +4 -0
- package/dist/web/json/bindings/InstrHyperlink.js +2 -0
- package/dist/web/json/bindings/InstrHyperlink.js.map +1 -0
- package/dist/web/json/index.d.ts +1 -1
- package/dist/web/json/run.d.ts +14 -1
- package/dist/web/pkg/docx_wasm.d.ts +53 -53
- package/dist/web/pkg/docx_wasm_bg.js +12 -12
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/js/json/bindings/FieldChar.ts +3 -0
- package/js/json/bindings/FieldCharType.ts +2 -0
- package/js/json/bindings/InstrHyperlink.ts +2 -0
- package/js/json/index.ts +1 -1
- package/js/json/run.ts +18 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldChar.js","sourceRoot":"","sources":["../../../../js/json/bindings/FieldChar.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type FieldCharType = "begin" | "separate" | "end" | "unsupported";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldCharType.js","sourceRoot":"","sources":["../../../../js/json/bindings/FieldCharType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InstrHyperlink.js","sourceRoot":"","sources":["../../../../js/json/bindings/InstrHyperlink.ts"],"names":[],"mappings":""}
|
|
@@ -46,7 +46,7 @@ export declare type DocxJSON = {
|
|
|
46
46
|
fontTable: {};
|
|
47
47
|
themes: ThemeJSON[];
|
|
48
48
|
images: [string, string, string, string][];
|
|
49
|
-
hyperlinks: [string, string, string
|
|
49
|
+
hyperlinks: [string, string, string][];
|
|
50
50
|
};
|
|
51
51
|
export declare type SettingsJSON = {
|
|
52
52
|
docId: string | null;
|
package/dist/node/json/run.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { CommentRangeStartJSON, CommentRangeEndJSON } from "..";
|
|
|
4
4
|
import { BorderType } from "../border";
|
|
5
5
|
import { InsertJSON, DeleteJSON } from "./paragraph";
|
|
6
6
|
import { VertAlignType } from "../run";
|
|
7
|
+
import { FieldChar } from "./bindings/FieldChar";
|
|
8
|
+
import { InstrHyperlink } from "./bindings/InstrHyperlink";
|
|
7
9
|
export declare type TextBorderJSON = {
|
|
8
10
|
borderType: BorderType;
|
|
9
11
|
size: number;
|
|
@@ -41,7 +43,7 @@ export declare type RunPropertyJSON = {
|
|
|
41
43
|
del?: DeleteJSON["data"] | null;
|
|
42
44
|
strike?: boolean;
|
|
43
45
|
};
|
|
44
|
-
export declare type RunChildJSON = TextJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | ShapeJSON | CommentRangeStartJSON | CommentRangeEndJSON;
|
|
46
|
+
export declare type RunChildJSON = TextJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | ShapeJSON | CommentRangeStartJSON | CommentRangeEndJSON | FieldCharJSON | InstrTextJSON;
|
|
45
47
|
export declare type TextJSON = {
|
|
46
48
|
type: "text";
|
|
47
49
|
data: {
|
|
@@ -72,3 +74,14 @@ export declare type RunJSON = {
|
|
|
72
74
|
children: RunChildJSON[];
|
|
73
75
|
};
|
|
74
76
|
};
|
|
77
|
+
export declare type FieldCharJSON = {
|
|
78
|
+
type: "fieldChar";
|
|
79
|
+
data: FieldChar;
|
|
80
|
+
};
|
|
81
|
+
export declare type InstrTextJSON = {
|
|
82
|
+
type: "instrText";
|
|
83
|
+
data: {
|
|
84
|
+
type: "hyperlink";
|
|
85
|
+
data: InstrHyperlink;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -197,6 +197,35 @@ export enum VMergeType {
|
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
199
|
*/
|
|
200
|
+
export enum TextDirectionType {
|
|
201
|
+
Lr,
|
|
202
|
+
LrV,
|
|
203
|
+
Rl,
|
|
204
|
+
RlV,
|
|
205
|
+
Tb,
|
|
206
|
+
TbV,
|
|
207
|
+
TbRlV,
|
|
208
|
+
TbRl,
|
|
209
|
+
BtLr,
|
|
210
|
+
LrTbV,
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
*/
|
|
214
|
+
export enum BreakType {
|
|
215
|
+
Page,
|
|
216
|
+
Column,
|
|
217
|
+
TextWrapping,
|
|
218
|
+
Unsupported,
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
*/
|
|
222
|
+
export enum LineSpacingType {
|
|
223
|
+
Auto,
|
|
224
|
+
AtLeast,
|
|
225
|
+
Exact,
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
*/
|
|
200
229
|
export enum ShdType {
|
|
201
230
|
Nil,
|
|
202
231
|
Clear,
|
|
@@ -239,35 +268,6 @@ export enum ShdType {
|
|
|
239
268
|
}
|
|
240
269
|
/**
|
|
241
270
|
*/
|
|
242
|
-
export enum TextDirectionType {
|
|
243
|
-
Lr,
|
|
244
|
-
LrV,
|
|
245
|
-
Rl,
|
|
246
|
-
RlV,
|
|
247
|
-
Tb,
|
|
248
|
-
TbV,
|
|
249
|
-
TbRlV,
|
|
250
|
-
TbRl,
|
|
251
|
-
BtLr,
|
|
252
|
-
LrTbV,
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
*/
|
|
256
|
-
export enum BreakType {
|
|
257
|
-
Page,
|
|
258
|
-
Column,
|
|
259
|
-
TextWrapping,
|
|
260
|
-
Unsupported,
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
*/
|
|
264
|
-
export enum LineSpacingType {
|
|
265
|
-
Auto,
|
|
266
|
-
AtLeast,
|
|
267
|
-
Exact,
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
*/
|
|
271
271
|
export enum VertAlignType {
|
|
272
272
|
Baseline,
|
|
273
273
|
SuperScript,
|
|
@@ -319,6 +319,14 @@ export enum BorderType {
|
|
|
319
319
|
}
|
|
320
320
|
/**
|
|
321
321
|
*/
|
|
322
|
+
export enum FieldCharType {
|
|
323
|
+
Begin,
|
|
324
|
+
Separate,
|
|
325
|
+
End,
|
|
326
|
+
Unsupported,
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
*/
|
|
322
330
|
export enum PageOrientationType {
|
|
323
331
|
Landscape,
|
|
324
332
|
Portrait,
|
|
@@ -338,13 +346,6 @@ export enum TableAlignmentType {
|
|
|
338
346
|
}
|
|
339
347
|
/**
|
|
340
348
|
*/
|
|
341
|
-
export enum FontPitchType {
|
|
342
|
-
Default,
|
|
343
|
-
Fixed,
|
|
344
|
-
Variable,
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
*/
|
|
348
349
|
export enum SectionType {
|
|
349
350
|
NextPage,
|
|
350
351
|
NextColumn,
|
|
@@ -376,6 +377,22 @@ export enum TableCellBorderPosition {
|
|
|
376
377
|
}
|
|
377
378
|
/**
|
|
378
379
|
*/
|
|
380
|
+
export enum FontPitchType {
|
|
381
|
+
Default,
|
|
382
|
+
Fixed,
|
|
383
|
+
Variable,
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
*/
|
|
387
|
+
export enum StyleType {
|
|
388
|
+
Paragraph,
|
|
389
|
+
Character,
|
|
390
|
+
Numbering,
|
|
391
|
+
Table,
|
|
392
|
+
Unsupported,
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
*/
|
|
379
396
|
export enum WidthType {
|
|
380
397
|
Dxa,
|
|
381
398
|
Auto,
|
|
@@ -393,14 +410,6 @@ export enum DocGridType {
|
|
|
393
410
|
}
|
|
394
411
|
/**
|
|
395
412
|
*/
|
|
396
|
-
export enum FieldCharType {
|
|
397
|
-
Begin,
|
|
398
|
-
Separate,
|
|
399
|
-
End,
|
|
400
|
-
Unsupported,
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
*/
|
|
404
413
|
export enum RelativeFromHType {
|
|
405
414
|
/**
|
|
406
415
|
* Specifies that the horizontal positioning shall be
|
|
@@ -461,15 +470,6 @@ export enum RelativeFromVType {
|
|
|
461
470
|
}
|
|
462
471
|
/**
|
|
463
472
|
*/
|
|
464
|
-
export enum StyleType {
|
|
465
|
-
Paragraph,
|
|
466
|
-
Character,
|
|
467
|
-
Numbering,
|
|
468
|
-
Table,
|
|
469
|
-
Unsupported,
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
*/
|
|
473
473
|
export enum TabValueType {
|
|
474
474
|
Bar,
|
|
475
475
|
Center,
|
|
@@ -446,9 +446,6 @@ module.exports.TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heav
|
|
|
446
446
|
module.exports.VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
|
|
447
447
|
/**
|
|
448
448
|
*/
|
|
449
|
-
module.exports.ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
450
|
-
/**
|
|
451
|
-
*/
|
|
452
449
|
module.exports.TextDirectionType = Object.freeze({ Lr:0,"0":"Lr",LrV:1,"1":"LrV",Rl:2,"2":"Rl",RlV:3,"3":"RlV",Tb:4,"4":"Tb",TbV:5,"5":"TbV",TbRlV:6,"6":"TbRlV",TbRl:7,"7":"TbRl",BtLr:8,"8":"BtLr",LrTbV:9,"9":"LrTbV", });
|
|
453
450
|
/**
|
|
454
451
|
*/
|
|
@@ -458,6 +455,9 @@ module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Colum
|
|
|
458
455
|
module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
459
456
|
/**
|
|
460
457
|
*/
|
|
458
|
+
module.exports.ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
459
|
+
/**
|
|
460
|
+
*/
|
|
461
461
|
module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
462
462
|
/**
|
|
463
463
|
*/
|
|
@@ -467,6 +467,9 @@ module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center
|
|
|
467
467
|
module.exports.BorderType = Object.freeze({ Nil:0,"0":"Nil",None:1,"1":"None",Single:2,"2":"Single",Thick:3,"3":"Thick",Double:4,"4":"Double",Dotted:5,"5":"Dotted",Dashed:6,"6":"Dashed",DotDash:7,"7":"DotDash",DotDotDash:8,"8":"DotDotDash",Triple:9,"9":"Triple",ThinThickSmallGap:10,"10":"ThinThickSmallGap",ThickThinSmallGap:11,"11":"ThickThinSmallGap",ThinThickThinSmallGap:12,"12":"ThinThickThinSmallGap",ThinThickMediumGap:13,"13":"ThinThickMediumGap",ThickThinMediumGap:14,"14":"ThickThinMediumGap",ThinThickThinMediumGap:15,"15":"ThinThickThinMediumGap",ThinThickLargeGap:16,"16":"ThinThickLargeGap",ThickThinLargeGap:17,"17":"ThickThinLargeGap",ThinThickThinLargeGap:18,"18":"ThinThickThinLargeGap",Wave:19,"19":"Wave",DoubleWave:20,"20":"DoubleWave",DashSmallGap:21,"21":"DashSmallGap",DashDotStroked:22,"22":"DashDotStroked",ThreeDEmboss:23,"23":"ThreeDEmboss",ThreeDEngrave:24,"24":"ThreeDEngrave",Outset:25,"25":"Outset",Inset:26,"26":"Inset",Apples:27,"27":"Apples",ArchedScallops:28,"28":"ArchedScallops",BabyPacifier:29,"29":"BabyPacifier",BabyRattle:30,"30":"BabyRattle", });
|
|
468
468
|
/**
|
|
469
469
|
*/
|
|
470
|
+
module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
471
|
+
/**
|
|
472
|
+
*/
|
|
470
473
|
module.exports.PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
471
474
|
/**
|
|
472
475
|
*/
|
|
@@ -476,9 +479,6 @@ module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",H
|
|
|
476
479
|
module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
477
480
|
/**
|
|
478
481
|
*/
|
|
479
|
-
module.exports.FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
|
|
480
|
-
/**
|
|
481
|
-
*/
|
|
482
482
|
module.exports.SectionType = Object.freeze({ NextPage:0,"0":"NextPage",NextColumn:1,"1":"NextColumn",Continuous:2,"2":"Continuous",EvenPage:3,"3":"EvenPage",OddPage:4,"4":"OddPage", });
|
|
483
483
|
/**
|
|
484
484
|
*/
|
|
@@ -488,13 +488,16 @@ module.exports.TableBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"
|
|
|
488
488
|
module.exports.TableCellBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
|
|
489
489
|
/**
|
|
490
490
|
*/
|
|
491
|
-
module.exports.
|
|
491
|
+
module.exports.FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
|
|
492
492
|
/**
|
|
493
493
|
*/
|
|
494
|
-
module.exports.
|
|
494
|
+
module.exports.StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
|
|
495
495
|
/**
|
|
496
496
|
*/
|
|
497
|
-
module.exports.
|
|
497
|
+
module.exports.WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
|
|
498
|
+
/**
|
|
499
|
+
*/
|
|
500
|
+
module.exports.DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
|
|
498
501
|
/**
|
|
499
502
|
*/
|
|
500
503
|
module.exports.RelativeFromHType = Object.freeze({
|
|
@@ -547,9 +550,6 @@ RightMargin:7,"7":"RightMargin", });
|
|
|
547
550
|
module.exports.RelativeFromVType = Object.freeze({ BottomMargin:0,"0":"BottomMargin",InsideMargin:1,"1":"InsideMargin",Line:2,"2":"Line",Margin:3,"3":"Margin",OutsizeMargin:4,"4":"OutsizeMargin",Page:5,"5":"Page",Paragraph:6,"6":"Paragraph",TopMargin:7,"7":"TopMargin", });
|
|
548
551
|
/**
|
|
549
552
|
*/
|
|
550
|
-
module.exports.StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
|
|
551
|
-
/**
|
|
552
|
-
*/
|
|
553
553
|
module.exports.TabValueType = Object.freeze({ Bar:0,"0":"Bar",Center:1,"1":"Center",Clear:2,"2":"Clear",Decimal:3,"3":"Decimal",End:4,"4":"End",Right:5,"5":"Right",Num:6,"6":"Num",Start:7,"7":"Start",Left:8,"8":"Left", });
|
|
554
554
|
/**
|
|
555
555
|
*/
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldChar.js","sourceRoot":"","sources":["../../../../js/json/bindings/FieldChar.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type FieldCharType = "begin" | "separate" | "end" | "unsupported";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldCharType.js","sourceRoot":"","sources":["../../../../js/json/bindings/FieldCharType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InstrHyperlink.js","sourceRoot":"","sources":["../../../../js/json/bindings/InstrHyperlink.ts"],"names":[],"mappings":""}
|
package/dist/web/json/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare type DocxJSON = {
|
|
|
46
46
|
fontTable: {};
|
|
47
47
|
themes: ThemeJSON[];
|
|
48
48
|
images: [string, string, string, string][];
|
|
49
|
-
hyperlinks: [string, string, string
|
|
49
|
+
hyperlinks: [string, string, string][];
|
|
50
50
|
};
|
|
51
51
|
export declare type SettingsJSON = {
|
|
52
52
|
docId: string | null;
|
package/dist/web/json/run.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { CommentRangeStartJSON, CommentRangeEndJSON } from "..";
|
|
|
4
4
|
import { BorderType } from "../border";
|
|
5
5
|
import { InsertJSON, DeleteJSON } from "./paragraph";
|
|
6
6
|
import { VertAlignType } from "../run";
|
|
7
|
+
import { FieldChar } from "./bindings/FieldChar";
|
|
8
|
+
import { InstrHyperlink } from "./bindings/InstrHyperlink";
|
|
7
9
|
export declare type TextBorderJSON = {
|
|
8
10
|
borderType: BorderType;
|
|
9
11
|
size: number;
|
|
@@ -41,7 +43,7 @@ export declare type RunPropertyJSON = {
|
|
|
41
43
|
del?: DeleteJSON["data"] | null;
|
|
42
44
|
strike?: boolean;
|
|
43
45
|
};
|
|
44
|
-
export declare type RunChildJSON = TextJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | ShapeJSON | CommentRangeStartJSON | CommentRangeEndJSON;
|
|
46
|
+
export declare type RunChildJSON = TextJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | ShapeJSON | CommentRangeStartJSON | CommentRangeEndJSON | FieldCharJSON | InstrTextJSON;
|
|
45
47
|
export declare type TextJSON = {
|
|
46
48
|
type: "text";
|
|
47
49
|
data: {
|
|
@@ -72,3 +74,14 @@ export declare type RunJSON = {
|
|
|
72
74
|
children: RunChildJSON[];
|
|
73
75
|
};
|
|
74
76
|
};
|
|
77
|
+
export declare type FieldCharJSON = {
|
|
78
|
+
type: "fieldChar";
|
|
79
|
+
data: FieldChar;
|
|
80
|
+
};
|
|
81
|
+
export declare type InstrTextJSON = {
|
|
82
|
+
type: "instrText";
|
|
83
|
+
data: {
|
|
84
|
+
type: "hyperlink";
|
|
85
|
+
data: InstrHyperlink;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -197,6 +197,35 @@ export enum VMergeType {
|
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
199
|
*/
|
|
200
|
+
export enum TextDirectionType {
|
|
201
|
+
Lr,
|
|
202
|
+
LrV,
|
|
203
|
+
Rl,
|
|
204
|
+
RlV,
|
|
205
|
+
Tb,
|
|
206
|
+
TbV,
|
|
207
|
+
TbRlV,
|
|
208
|
+
TbRl,
|
|
209
|
+
BtLr,
|
|
210
|
+
LrTbV,
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
*/
|
|
214
|
+
export enum BreakType {
|
|
215
|
+
Page,
|
|
216
|
+
Column,
|
|
217
|
+
TextWrapping,
|
|
218
|
+
Unsupported,
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
*/
|
|
222
|
+
export enum LineSpacingType {
|
|
223
|
+
Auto,
|
|
224
|
+
AtLeast,
|
|
225
|
+
Exact,
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
*/
|
|
200
229
|
export enum ShdType {
|
|
201
230
|
Nil,
|
|
202
231
|
Clear,
|
|
@@ -239,35 +268,6 @@ export enum ShdType {
|
|
|
239
268
|
}
|
|
240
269
|
/**
|
|
241
270
|
*/
|
|
242
|
-
export enum TextDirectionType {
|
|
243
|
-
Lr,
|
|
244
|
-
LrV,
|
|
245
|
-
Rl,
|
|
246
|
-
RlV,
|
|
247
|
-
Tb,
|
|
248
|
-
TbV,
|
|
249
|
-
TbRlV,
|
|
250
|
-
TbRl,
|
|
251
|
-
BtLr,
|
|
252
|
-
LrTbV,
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
*/
|
|
256
|
-
export enum BreakType {
|
|
257
|
-
Page,
|
|
258
|
-
Column,
|
|
259
|
-
TextWrapping,
|
|
260
|
-
Unsupported,
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
*/
|
|
264
|
-
export enum LineSpacingType {
|
|
265
|
-
Auto,
|
|
266
|
-
AtLeast,
|
|
267
|
-
Exact,
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
*/
|
|
271
271
|
export enum VertAlignType {
|
|
272
272
|
Baseline,
|
|
273
273
|
SuperScript,
|
|
@@ -319,6 +319,14 @@ export enum BorderType {
|
|
|
319
319
|
}
|
|
320
320
|
/**
|
|
321
321
|
*/
|
|
322
|
+
export enum FieldCharType {
|
|
323
|
+
Begin,
|
|
324
|
+
Separate,
|
|
325
|
+
End,
|
|
326
|
+
Unsupported,
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
*/
|
|
322
330
|
export enum PageOrientationType {
|
|
323
331
|
Landscape,
|
|
324
332
|
Portrait,
|
|
@@ -338,13 +346,6 @@ export enum TableAlignmentType {
|
|
|
338
346
|
}
|
|
339
347
|
/**
|
|
340
348
|
*/
|
|
341
|
-
export enum FontPitchType {
|
|
342
|
-
Default,
|
|
343
|
-
Fixed,
|
|
344
|
-
Variable,
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
*/
|
|
348
349
|
export enum SectionType {
|
|
349
350
|
NextPage,
|
|
350
351
|
NextColumn,
|
|
@@ -376,6 +377,22 @@ export enum TableCellBorderPosition {
|
|
|
376
377
|
}
|
|
377
378
|
/**
|
|
378
379
|
*/
|
|
380
|
+
export enum FontPitchType {
|
|
381
|
+
Default,
|
|
382
|
+
Fixed,
|
|
383
|
+
Variable,
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
*/
|
|
387
|
+
export enum StyleType {
|
|
388
|
+
Paragraph,
|
|
389
|
+
Character,
|
|
390
|
+
Numbering,
|
|
391
|
+
Table,
|
|
392
|
+
Unsupported,
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
*/
|
|
379
396
|
export enum WidthType {
|
|
380
397
|
Dxa,
|
|
381
398
|
Auto,
|
|
@@ -393,14 +410,6 @@ export enum DocGridType {
|
|
|
393
410
|
}
|
|
394
411
|
/**
|
|
395
412
|
*/
|
|
396
|
-
export enum FieldCharType {
|
|
397
|
-
Begin,
|
|
398
|
-
Separate,
|
|
399
|
-
End,
|
|
400
|
-
Unsupported,
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
*/
|
|
404
413
|
export enum RelativeFromHType {
|
|
405
414
|
/**
|
|
406
415
|
* Specifies that the horizontal positioning shall be
|
|
@@ -461,15 +470,6 @@ export enum RelativeFromVType {
|
|
|
461
470
|
}
|
|
462
471
|
/**
|
|
463
472
|
*/
|
|
464
|
-
export enum StyleType {
|
|
465
|
-
Paragraph,
|
|
466
|
-
Character,
|
|
467
|
-
Numbering,
|
|
468
|
-
Table,
|
|
469
|
-
Unsupported,
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
*/
|
|
473
473
|
export enum TabValueType {
|
|
474
474
|
Bar,
|
|
475
475
|
Center,
|
|
@@ -447,9 +447,6 @@ export const TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy"
|
|
|
447
447
|
export const VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
|
|
448
448
|
/**
|
|
449
449
|
*/
|
|
450
|
-
export const ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
451
|
-
/**
|
|
452
|
-
*/
|
|
453
450
|
export const TextDirectionType = Object.freeze({ Lr:0,"0":"Lr",LrV:1,"1":"LrV",Rl:2,"2":"Rl",RlV:3,"3":"RlV",Tb:4,"4":"Tb",TbV:5,"5":"TbV",TbRlV:6,"6":"TbRlV",TbRl:7,"7":"TbRl",BtLr:8,"8":"BtLr",LrTbV:9,"9":"LrTbV", });
|
|
454
451
|
/**
|
|
455
452
|
*/
|
|
@@ -459,6 +456,9 @@ export const BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column"
|
|
|
459
456
|
export const LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
460
457
|
/**
|
|
461
458
|
*/
|
|
459
|
+
export const ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
460
|
+
/**
|
|
461
|
+
*/
|
|
462
462
|
export const VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
463
463
|
/**
|
|
464
464
|
*/
|
|
@@ -468,6 +468,9 @@ export const VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",
|
|
|
468
468
|
export const BorderType = Object.freeze({ Nil:0,"0":"Nil",None:1,"1":"None",Single:2,"2":"Single",Thick:3,"3":"Thick",Double:4,"4":"Double",Dotted:5,"5":"Dotted",Dashed:6,"6":"Dashed",DotDash:7,"7":"DotDash",DotDotDash:8,"8":"DotDotDash",Triple:9,"9":"Triple",ThinThickSmallGap:10,"10":"ThinThickSmallGap",ThickThinSmallGap:11,"11":"ThickThinSmallGap",ThinThickThinSmallGap:12,"12":"ThinThickThinSmallGap",ThinThickMediumGap:13,"13":"ThinThickMediumGap",ThickThinMediumGap:14,"14":"ThickThinMediumGap",ThinThickThinMediumGap:15,"15":"ThinThickThinMediumGap",ThinThickLargeGap:16,"16":"ThinThickLargeGap",ThickThinLargeGap:17,"17":"ThickThinLargeGap",ThinThickThinLargeGap:18,"18":"ThinThickThinLargeGap",Wave:19,"19":"Wave",DoubleWave:20,"20":"DoubleWave",DashSmallGap:21,"21":"DashSmallGap",DashDotStroked:22,"22":"DashDotStroked",ThreeDEmboss:23,"23":"ThreeDEmboss",ThreeDEngrave:24,"24":"ThreeDEngrave",Outset:25,"25":"Outset",Inset:26,"26":"Inset",Apples:27,"27":"Apples",ArchedScallops:28,"28":"ArchedScallops",BabyPacifier:29,"29":"BabyPacifier",BabyRattle:30,"30":"BabyRattle", });
|
|
469
469
|
/**
|
|
470
470
|
*/
|
|
471
|
+
export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
472
|
+
/**
|
|
473
|
+
*/
|
|
471
474
|
export const PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
472
475
|
/**
|
|
473
476
|
*/
|
|
@@ -477,9 +480,6 @@ export const SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Han
|
|
|
477
480
|
export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
478
481
|
/**
|
|
479
482
|
*/
|
|
480
|
-
export const FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
|
|
481
|
-
/**
|
|
482
|
-
*/
|
|
483
483
|
export const SectionType = Object.freeze({ NextPage:0,"0":"NextPage",NextColumn:1,"1":"NextColumn",Continuous:2,"2":"Continuous",EvenPage:3,"3":"EvenPage",OddPage:4,"4":"OddPage", });
|
|
484
484
|
/**
|
|
485
485
|
*/
|
|
@@ -489,13 +489,16 @@ export const TableBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1"
|
|
|
489
489
|
export const TableCellBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
|
|
490
490
|
/**
|
|
491
491
|
*/
|
|
492
|
-
export const
|
|
492
|
+
export const FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
|
|
493
493
|
/**
|
|
494
494
|
*/
|
|
495
|
-
export const
|
|
495
|
+
export const StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
|
|
496
496
|
/**
|
|
497
497
|
*/
|
|
498
|
-
export const
|
|
498
|
+
export const WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
|
|
499
|
+
/**
|
|
500
|
+
*/
|
|
501
|
+
export const DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
|
|
499
502
|
/**
|
|
500
503
|
*/
|
|
501
504
|
export const RelativeFromHType = Object.freeze({
|
|
@@ -548,9 +551,6 @@ RightMargin:7,"7":"RightMargin", });
|
|
|
548
551
|
export const RelativeFromVType = Object.freeze({ BottomMargin:0,"0":"BottomMargin",InsideMargin:1,"1":"InsideMargin",Line:2,"2":"Line",Margin:3,"3":"Margin",OutsizeMargin:4,"4":"OutsizeMargin",Page:5,"5":"Page",Paragraph:6,"6":"Paragraph",TopMargin:7,"7":"TopMargin", });
|
|
549
552
|
/**
|
|
550
553
|
*/
|
|
551
|
-
export const StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
|
|
552
|
-
/**
|
|
553
|
-
*/
|
|
554
554
|
export const TabValueType = Object.freeze({ Bar:0,"0":"Bar",Center:1,"1":"Center",Clear:2,"2":"Clear",Decimal:3,"3":"Decimal",End:4,"4":"End",Right:5,"5":"Right",Num:6,"6":"Num",Start:7,"7":"Start",Left:8,"8":"Left", });
|
|
555
555
|
/**
|
|
556
556
|
*/
|
|
Binary file
|
package/js/json/index.ts
CHANGED
|
@@ -49,7 +49,7 @@ export type DocxJSON = {
|
|
|
49
49
|
themes: ThemeJSON[];
|
|
50
50
|
//(id, path, base64 encoded original image data, base64 encoded png image data)
|
|
51
51
|
images: [string, string, string, string][];
|
|
52
|
-
hyperlinks: [string, string, string
|
|
52
|
+
hyperlinks: [string, string, string][];
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
export type SettingsJSON = {
|
package/js/json/run.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { CommentRangeStartJSON, CommentRangeEndJSON } from "..";
|
|
|
4
4
|
import { BorderType } from "../border";
|
|
5
5
|
import { InsertJSON, DeleteJSON } from "./paragraph";
|
|
6
6
|
import { VertAlignType } from "../run";
|
|
7
|
+
import { FieldChar } from "./bindings/FieldChar";
|
|
8
|
+
import { InstrHyperlink } from "./bindings/InstrHyperlink";
|
|
7
9
|
|
|
8
10
|
export type TextBorderJSON = {
|
|
9
11
|
borderType: BorderType;
|
|
@@ -53,7 +55,9 @@ export type RunChildJSON =
|
|
|
53
55
|
| DrawingJSON
|
|
54
56
|
| ShapeJSON
|
|
55
57
|
| CommentRangeStartJSON
|
|
56
|
-
| CommentRangeEndJSON
|
|
58
|
+
| CommentRangeEndJSON
|
|
59
|
+
| FieldCharJSON
|
|
60
|
+
| InstrTextJSON;
|
|
57
61
|
|
|
58
62
|
export type TextJSON = {
|
|
59
63
|
type: "text";
|
|
@@ -89,3 +93,16 @@ export type RunJSON = {
|
|
|
89
93
|
children: RunChildJSON[];
|
|
90
94
|
};
|
|
91
95
|
};
|
|
96
|
+
|
|
97
|
+
export type FieldCharJSON = {
|
|
98
|
+
type: "fieldChar";
|
|
99
|
+
data: FieldChar;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export type InstrTextJSON = {
|
|
103
|
+
type: "instrText";
|
|
104
|
+
data: {
|
|
105
|
+
type: "hyperlink";
|
|
106
|
+
data: InstrHyperlink;
|
|
107
|
+
};
|
|
108
|
+
};
|