docx-wasm 0.4.12-beta10 → 0.4.12-beta12

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.
Files changed (38) hide show
  1. package/dist/node/json/bindings/BorderType.d.ts +1 -1
  2. package/dist/node/json/bindings/BorderType.js +0 -1
  3. package/dist/node/json/bindings/BorderType.js.map +1 -1
  4. package/dist/node/json/bindings/TableCellBorder.d.ts +9 -0
  5. package/dist/node/json/bindings/TableCellBorder.js +3 -0
  6. package/dist/node/json/bindings/TableCellBorder.js.map +1 -0
  7. package/dist/node/json/bindings/TableCellBorderPosition.d.ts +1 -0
  8. package/dist/node/json/bindings/TableCellBorderPosition.js +3 -0
  9. package/dist/node/json/bindings/TableCellBorderPosition.js.map +1 -0
  10. package/dist/node/json/bindings/TableCellBorders.d.ts +11 -0
  11. package/dist/node/json/bindings/TableCellBorders.js +3 -0
  12. package/dist/node/json/bindings/TableCellBorders.js.map +1 -0
  13. package/dist/node/json/table.d.ts +3 -1
  14. package/dist/node/pkg/docx_wasm.d.ts +127 -127
  15. package/dist/node/pkg/docx_wasm.js +23 -23
  16. package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
  17. package/dist/web/json/bindings/BorderType.d.ts +1 -1
  18. package/dist/web/json/bindings/BorderType.js +0 -1
  19. package/dist/web/json/bindings/BorderType.js.map +1 -1
  20. package/dist/web/json/bindings/TableCellBorder.d.ts +9 -0
  21. package/dist/web/json/bindings/TableCellBorder.js +2 -0
  22. package/dist/web/json/bindings/TableCellBorder.js.map +1 -0
  23. package/dist/web/json/bindings/TableCellBorderPosition.d.ts +1 -0
  24. package/dist/web/json/bindings/TableCellBorderPosition.js +2 -0
  25. package/dist/web/json/bindings/TableCellBorderPosition.js.map +1 -0
  26. package/dist/web/json/bindings/TableCellBorders.d.ts +11 -0
  27. package/dist/web/json/bindings/TableCellBorders.js +2 -0
  28. package/dist/web/json/bindings/TableCellBorders.js.map +1 -0
  29. package/dist/web/json/table.d.ts +3 -1
  30. package/dist/web/pkg/docx_wasm.d.ts +127 -127
  31. package/dist/web/pkg/docx_wasm_bg.js +23 -23
  32. package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
  33. package/js/json/bindings/BorderType.ts +1 -2
  34. package/js/json/bindings/TableCellBorder.ts +4 -0
  35. package/js/json/bindings/TableCellBorderPosition.ts +2 -0
  36. package/js/json/bindings/TableCellBorders.ts +3 -0
  37. package/js/json/table.ts +5 -1
  38. package/package.json +1 -1
@@ -1 +1 @@
1
- export declare type BorderType = "nil" | "none" | "single" | "thick" | "double" | "dotted" | "dashed" | "dotdash" | "dotdotdash" | "triple" | "thinthicksmallgap" | "thickthinsmallgap" | "thinthickthinsmallgap" | "thinthickmediumgap" | "thickthinmediumgap" | "thinthickthinmediumgap" | "thinthicklargegap" | "thickthinlargegap" | "thinthickthinlargegap" | "wave" | "doublewave" | "dashsmallgap" | "dashdotstroked" | "threedemboss" | "threedengrave" | "outset" | "inset" | "apples" | "archedscallops" | "babypacifier" | "babyrattle";
1
+ export declare type BorderType = "nil" | "none" | "single" | "thick" | "double" | "dotted" | "dashed" | "dotDash" | "dotDotDash" | "triple" | "thinThickSmallGap" | "thickThinSmallGap" | "thinThickThinSmallGap" | "thinThickMediumGap" | "thickThinMediumGap" | "thinThickThinMediumGap" | "thinThickLargeGap" | "thickThinLargeGap" | "thinThickThinLargeGap" | "wave" | "doubleWave" | "dashSmallGap" | "dashDotStroked" | "threeDEmboss" | "threeDEngrave" | "outset" | "inset" | "apples" | "archedScallops" | "babyPacifier" | "babyRattle";
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=BorderType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BorderType.js","sourceRoot":"","sources":["../../../../js/json/bindings/BorderType.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
1
+ {"version":3,"file":"BorderType.js","sourceRoot":"","sources":["../../../../js/json/bindings/BorderType.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import type { BorderType } from "./BorderType";
2
+ import type { TableCellBorderPosition } from "./TableCellBorderPosition";
3
+ export interface TableCellBorder {
4
+ borderType: BorderType;
5
+ size: number;
6
+ color: string;
7
+ position: TableCellBorderPosition;
8
+ space: number;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TableCellBorder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCellBorder.js","sourceRoot":"","sources":["../../../../js/json/bindings/TableCellBorder.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare type TableCellBorderPosition = "left" | "right" | "top" | "bottom" | "insideH" | "insideV" | "tl2Br" | "tr2Bl";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TableCellBorderPosition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCellBorderPosition.js","sourceRoot":"","sources":["../../../../js/json/bindings/TableCellBorderPosition.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { TableCellBorder } from "./TableCellBorder";
2
+ export interface TableCellBorders {
3
+ top: TableCellBorder | null;
4
+ left: TableCellBorder | null;
5
+ bottom: TableCellBorder | null;
6
+ right: TableCellBorder | null;
7
+ insideH: TableCellBorder | null;
8
+ insideV: TableCellBorder | null;
9
+ tr2Bl: TableCellBorder | null;
10
+ tl2Br: TableCellBorder | null;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TableCellBorders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCellBorders.js","sourceRoot":"","sources":["../../../../js/json/bindings/TableCellBorders.ts"],"names":[],"mappings":""}
@@ -6,6 +6,8 @@ import { ShadingJSON } from "./shading";
6
6
  import { TableLayoutType } from "../table";
7
7
  import { DeleteJSONData, InsertJSONData } from "..";
8
8
  import { StructuredTagJSON } from "./structured-data-tag";
9
+ import { TableCellBorder } from "./bindings/TableCellBorder";
10
+ export { TableCellBorder as TableCellBorderJSON } from "./bindings/TableCellBorder";
9
11
  export declare type TableCellChildJSON = ParagraphJSON | TableJSON | StructuredTagJSON;
10
12
  export declare type WidthType = "dxa" | "auto" | "pct" | "nil";
11
13
  export { TextDirectionType } from "../table-cell";
@@ -15,7 +17,7 @@ export declare type TableCellPropertyJSON = {
15
17
  width: number;
16
18
  widthType: WidthType;
17
19
  } | null;
18
- borders?: any | null;
20
+ borders?: TableCellBorder | null;
19
21
  gridSpan?: number | null;
20
22
  verticalMerge?: "restart" | "continue" | null;
21
23
  verticalAlign?: "top" | "center" | "bottom" | null;
@@ -156,6 +156,19 @@ export enum LineSpacingType {
156
156
  }
157
157
  /**
158
158
  */
159
+ export enum SpecialIndentKind {
160
+ FirstLine,
161
+ Hanging,
162
+ }
163
+ /**
164
+ */
165
+ export enum VMergeType {
166
+ Continue,
167
+ Restart,
168
+ Unsupported,
169
+ }
170
+ /**
171
+ */
159
172
  export enum RelativeFromHType {
160
173
  /**
161
174
  * Specifies that the horizontal positioning shall be
@@ -216,13 +229,6 @@ export enum RelativeFromVType {
216
229
  }
217
230
  /**
218
231
  */
219
- export enum VMergeType {
220
- Continue,
221
- Restart,
222
- Unsupported,
223
- }
224
- /**
225
- */
226
232
  export enum PageOrientationType {
227
233
  Landscape,
228
234
  Portrait,
@@ -252,6 +258,95 @@ export enum TextDirectionType {
252
258
  }
253
259
  /**
254
260
  */
261
+ export enum TableBorderPosition {
262
+ Left,
263
+ Right,
264
+ Top,
265
+ Bottom,
266
+ InsideH,
267
+ InsideV,
268
+ }
269
+ /**
270
+ */
271
+ export enum TableCellBorderPosition {
272
+ Left,
273
+ Right,
274
+ Top,
275
+ Bottom,
276
+ InsideH,
277
+ InsideV,
278
+ Tl2br,
279
+ Tr2bl,
280
+ }
281
+ /**
282
+ */
283
+ export enum ParagraphBorderPosition {
284
+ Left,
285
+ Right,
286
+ Top,
287
+ Bottom,
288
+ Between,
289
+ Bar,
290
+ }
291
+ /**
292
+ */
293
+ export enum BorderType {
294
+ Nil,
295
+ None,
296
+ Single,
297
+ Thick,
298
+ Double,
299
+ Dotted,
300
+ Dashed,
301
+ DotDash,
302
+ DotDotDash,
303
+ Triple,
304
+ ThinThickSmallGap,
305
+ ThickThinSmallGap,
306
+ ThinThickThinSmallGap,
307
+ ThinThickMediumGap,
308
+ ThickThinMediumGap,
309
+ ThinThickThinMediumGap,
310
+ ThinThickLargeGap,
311
+ ThickThinLargeGap,
312
+ ThinThickThinLargeGap,
313
+ Wave,
314
+ DoubleWave,
315
+ DashSmallGap,
316
+ DashDotStroked,
317
+ ThreeDEmboss,
318
+ ThreeDEngrave,
319
+ Outset,
320
+ Inset,
321
+ Apples,
322
+ ArchedScallops,
323
+ BabyPacifier,
324
+ BabyRattle,
325
+ }
326
+ /**
327
+ */
328
+ export enum StyleType {
329
+ Paragraph,
330
+ Character,
331
+ Numbering,
332
+ Table,
333
+ Unsupported,
334
+ }
335
+ /**
336
+ */
337
+ export enum TabValueType {
338
+ Bar,
339
+ Center,
340
+ Clear,
341
+ Decimal,
342
+ End,
343
+ Right,
344
+ Num,
345
+ Start,
346
+ Left,
347
+ }
348
+ /**
349
+ */
255
350
  export enum DocGridType {
256
351
  Default,
257
352
  Lines,
@@ -260,6 +355,12 @@ export enum DocGridType {
260
355
  }
261
356
  /**
262
357
  */
358
+ export enum HyperlinkType {
359
+ Anchor,
360
+ External,
361
+ }
362
+ /**
363
+ */
263
364
  export enum ShdType {
264
365
  Nil,
265
366
  Clear,
@@ -302,60 +403,6 @@ export enum ShdType {
302
403
  }
303
404
  /**
304
405
  */
305
- export enum StyleType {
306
- Paragraph,
307
- Character,
308
- Numbering,
309
- Table,
310
- Unsupported,
311
- }
312
- /**
313
- */
314
- export enum TabValueType {
315
- Bar,
316
- Center,
317
- Clear,
318
- Decimal,
319
- End,
320
- Right,
321
- Num,
322
- Start,
323
- Left,
324
- }
325
- /**
326
- */
327
- export enum TableBorderPosition {
328
- Left,
329
- Right,
330
- Top,
331
- Bottom,
332
- InsideH,
333
- InsideV,
334
- }
335
- /**
336
- */
337
- export enum TableCellBorderPosition {
338
- Left,
339
- Right,
340
- Top,
341
- Bottom,
342
- InsideH,
343
- InsideV,
344
- Tl2br,
345
- Tr2bl,
346
- }
347
- /**
348
- */
349
- export enum ParagraphBorderPosition {
350
- Left,
351
- Right,
352
- Top,
353
- Bottom,
354
- Between,
355
- Bar,
356
- }
357
- /**
358
- */
359
406
  export enum CharacterSpacingValues {
360
407
  DoNotCompress,
361
408
  CompressPunctuation,
@@ -364,12 +411,6 @@ export enum CharacterSpacingValues {
364
411
  }
365
412
  /**
366
413
  */
367
- export enum HyperlinkType {
368
- Anchor,
369
- External,
370
- }
371
- /**
372
- */
373
414
  export enum TableAlignmentType {
374
415
  Center,
375
416
  Left,
@@ -377,12 +418,6 @@ export enum TableAlignmentType {
377
418
  }
378
419
  /**
379
420
  */
380
- export enum TableLayoutType {
381
- Fixed,
382
- Autofit,
383
- }
384
- /**
385
- */
386
421
  export enum AlignmentType {
387
422
  Both,
388
423
  Center,
@@ -404,6 +439,21 @@ export enum BreakType {
404
439
  }
405
440
  /**
406
441
  */
442
+ export enum TableLayoutType {
443
+ Fixed,
444
+ Autofit,
445
+ }
446
+ /**
447
+ */
448
+ export enum TextAlignmentType {
449
+ Auto,
450
+ Baseline,
451
+ Bottom,
452
+ Center,
453
+ Top,
454
+ }
455
+ /**
456
+ */
407
457
  export enum DrawingPositionType {
408
458
  Anchor,
409
459
  Inline,
@@ -419,15 +469,6 @@ export enum PicAlign {
419
469
  }
420
470
  /**
421
471
  */
422
- export enum TextAlignmentType {
423
- Auto,
424
- Baseline,
425
- Bottom,
426
- Center,
427
- Top,
428
- }
429
- /**
430
- */
431
472
  export enum VertAlignType {
432
473
  Baseline,
433
474
  SuperScript,
@@ -444,41 +485,6 @@ export enum VAlignType {
444
485
  }
445
486
  /**
446
487
  */
447
- export enum BorderType {
448
- Nil,
449
- None,
450
- Single,
451
- Thick,
452
- Double,
453
- Dotted,
454
- Dashed,
455
- DotDash,
456
- DotDotDash,
457
- Triple,
458
- ThinThickSmallGap,
459
- ThickThinSmallGap,
460
- ThinThickThinSmallGap,
461
- ThinThickMediumGap,
462
- ThickThinMediumGap,
463
- ThinThickThinMediumGap,
464
- ThinThickLargeGap,
465
- ThickThinLargeGap,
466
- ThinThickThinLargeGap,
467
- Wave,
468
- DoubleWave,
469
- DashSmallGap,
470
- DashDotStroked,
471
- ThreeDEmboss,
472
- ThreeDEngrave,
473
- Outset,
474
- Inset,
475
- Apples,
476
- ArchedScallops,
477
- BabyPacifier,
478
- BabyRattle,
479
- }
480
- /**
481
- */
482
488
  export enum HeightRule {
483
489
  Auto,
484
490
  AtLeast,
@@ -501,13 +507,6 @@ export enum FieldCharType {
501
507
  }
502
508
  /**
503
509
  */
504
- export enum FontPitchType {
505
- Default,
506
- Fixed,
507
- Variable,
508
- }
509
- /**
510
- */
511
510
  export enum TabLeaderType {
512
511
  Dot,
513
512
  Heavy,
@@ -527,9 +526,10 @@ export enum WidthType {
527
526
  }
528
527
  /**
529
528
  */
530
- export enum SpecialIndentKind {
531
- FirstLine,
532
- Hanging,
529
+ export enum FontPitchType {
530
+ Default,
531
+ Fixed,
532
+ Variable,
533
533
  }
534
534
  /**
535
535
  */
@@ -456,6 +456,12 @@ module.exports.createParagraph = function() {
456
456
  module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
457
457
  /**
458
458
  */
459
+ module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
460
+ /**
461
+ */
462
+ module.exports.VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
463
+ /**
464
+ */
459
465
  module.exports.RelativeFromHType = Object.freeze({
460
466
  /**
461
467
  * Specifies that the horizontal positioning shall be
@@ -506,9 +512,6 @@ RightMargin:7,"7":"RightMargin", });
506
512
  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", });
507
513
  /**
508
514
  */
509
- module.exports.VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
510
- /**
511
- */
512
515
  module.exports.PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
513
516
  /**
514
517
  */
@@ -518,10 +521,16 @@ module.exports.SectionType = Object.freeze({ NextPage:0,"0":"NextPage",NextColum
518
521
  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", });
519
522
  /**
520
523
  */
521
- module.exports.DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
524
+ module.exports.TableBorderPosition = 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", });
522
525
  /**
523
526
  */
524
- 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", });
527
+ 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", });
528
+ /**
529
+ */
530
+ module.exports.ParagraphBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",Between:4,"4":"Between",Bar:5,"5":"Bar", });
531
+ /**
532
+ */
533
+ 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", });
525
534
  /**
526
535
  */
527
536
  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", });
@@ -530,31 +539,31 @@ module.exports.StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character
530
539
  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", });
531
540
  /**
532
541
  */
533
- module.exports.TableBorderPosition = 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", });
542
+ module.exports.DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
534
543
  /**
535
544
  */
536
- 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", });
545
+ module.exports.HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
537
546
  /**
538
547
  */
539
- module.exports.ParagraphBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",Between:4,"4":"Between",Bar:5,"5":"Bar", });
548
+ 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", });
540
549
  /**
541
550
  */
542
551
  module.exports.CharacterSpacingValues = Object.freeze({ DoNotCompress:0,"0":"DoNotCompress",CompressPunctuation:1,"1":"CompressPunctuation",CompressPunctuationAndJapaneseKana:2,"2":"CompressPunctuationAndJapaneseKana",Unsupported:3,"3":"Unsupported", });
543
552
  /**
544
553
  */
545
- module.exports.HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
554
+ module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
546
555
  /**
547
556
  */
548
- module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
557
+ module.exports.AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",Start:3,"3":"Start",End:4,"4":"End",Left:5,"5":"Left",Right:6,"6":"Right",Justified:7,"7":"Justified",Unsupported:8,"8":"Unsupported", });
549
558
  /**
550
559
  */
551
- module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
560
+ module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
552
561
  /**
553
562
  */
554
- module.exports.AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",Start:3,"3":"Start",End:4,"4":"End",Left:5,"5":"Left",Right:6,"6":"Right",Justified:7,"7":"Justified",Unsupported:8,"8":"Unsupported", });
563
+ module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
555
564
  /**
556
565
  */
557
- module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
566
+ module.exports.TextAlignmentType = Object.freeze({ Auto:0,"0":"Auto",Baseline:1,"1":"Baseline",Bottom:2,"2":"Bottom",Center:3,"3":"Center",Top:4,"4":"Top", });
558
567
  /**
559
568
  */
560
569
  module.exports.DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:1,"1":"Inline", });
@@ -563,18 +572,12 @@ module.exports.DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inlin
563
572
  module.exports.PicAlign = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Center:2,"2":"Center",Bottom:3,"3":"Bottom",Top:4,"4":"Top", });
564
573
  /**
565
574
  */
566
- module.exports.TextAlignmentType = Object.freeze({ Auto:0,"0":"Auto",Baseline:1,"1":"Baseline",Bottom:2,"2":"Bottom",Center:3,"3":"Center",Top:4,"4":"Top", });
567
- /**
568
- */
569
575
  module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
570
576
  /**
571
577
  */
572
578
  module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
573
579
  /**
574
580
  */
575
- 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", });
576
- /**
577
- */
578
581
  module.exports.HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
579
582
  /**
580
583
  */
@@ -584,16 +587,13 @@ module.exports.LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1
584
587
  module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
585
588
  /**
586
589
  */
587
- module.exports.FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
588
- /**
589
- */
590
590
  module.exports.TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy",Hyphen:2,"2":"Hyphen",MiddleDot:3,"3":"MiddleDot",None:4,"4":"None",Underscore:5,"5":"Underscore", });
591
591
  /**
592
592
  */
593
593
  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", });
594
594
  /**
595
595
  */
596
- module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
596
+ module.exports.FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
597
597
  /**
598
598
  */
599
599
  class AbstractNumbering {
Binary file
@@ -1 +1 @@
1
- export declare type BorderType = "nil" | "none" | "single" | "thick" | "double" | "dotted" | "dashed" | "dotdash" | "dotdotdash" | "triple" | "thinthicksmallgap" | "thickthinsmallgap" | "thinthickthinsmallgap" | "thinthickmediumgap" | "thickthinmediumgap" | "thinthickthinmediumgap" | "thinthicklargegap" | "thickthinlargegap" | "thinthickthinlargegap" | "wave" | "doublewave" | "dashsmallgap" | "dashdotstroked" | "threedemboss" | "threedengrave" | "outset" | "inset" | "apples" | "archedscallops" | "babypacifier" | "babyrattle";
1
+ export declare type BorderType = "nil" | "none" | "single" | "thick" | "double" | "dotted" | "dashed" | "dotDash" | "dotDotDash" | "triple" | "thinThickSmallGap" | "thickThinSmallGap" | "thinThickThinSmallGap" | "thinThickMediumGap" | "thickThinMediumGap" | "thinThickThinMediumGap" | "thinThickLargeGap" | "thickThinLargeGap" | "thinThickThinLargeGap" | "wave" | "doubleWave" | "dashSmallGap" | "dashDotStroked" | "threeDEmboss" | "threeDEngrave" | "outset" | "inset" | "apples" | "archedScallops" | "babyPacifier" | "babyRattle";
@@ -1,3 +1,2 @@
1
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
1
  export {};
3
2
  //# sourceMappingURL=BorderType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BorderType.js","sourceRoot":"","sources":["../../../../js/json/bindings/BorderType.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
1
+ {"version":3,"file":"BorderType.js","sourceRoot":"","sources":["../../../../js/json/bindings/BorderType.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import type { BorderType } from "./BorderType";
2
+ import type { TableCellBorderPosition } from "./TableCellBorderPosition";
3
+ export interface TableCellBorder {
4
+ borderType: BorderType;
5
+ size: number;
6
+ color: string;
7
+ position: TableCellBorderPosition;
8
+ space: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TableCellBorder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCellBorder.js","sourceRoot":"","sources":["../../../../js/json/bindings/TableCellBorder.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare type TableCellBorderPosition = "left" | "right" | "top" | "bottom" | "insideH" | "insideV" | "tl2Br" | "tr2Bl";
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TableCellBorderPosition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCellBorderPosition.js","sourceRoot":"","sources":["../../../../js/json/bindings/TableCellBorderPosition.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { TableCellBorder } from "./TableCellBorder";
2
+ export interface TableCellBorders {
3
+ top: TableCellBorder | null;
4
+ left: TableCellBorder | null;
5
+ bottom: TableCellBorder | null;
6
+ right: TableCellBorder | null;
7
+ insideH: TableCellBorder | null;
8
+ insideV: TableCellBorder | null;
9
+ tr2Bl: TableCellBorder | null;
10
+ tl2Br: TableCellBorder | null;
11
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TableCellBorders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCellBorders.js","sourceRoot":"","sources":["../../../../js/json/bindings/TableCellBorders.ts"],"names":[],"mappings":""}
@@ -6,6 +6,8 @@ import { ShadingJSON } from "./shading";
6
6
  import { TableLayoutType } from "../table";
7
7
  import { DeleteJSONData, InsertJSONData } from "..";
8
8
  import { StructuredTagJSON } from "./structured-data-tag";
9
+ import { TableCellBorder } from "./bindings/TableCellBorder";
10
+ export { TableCellBorder as TableCellBorderJSON } from "./bindings/TableCellBorder";
9
11
  export declare type TableCellChildJSON = ParagraphJSON | TableJSON | StructuredTagJSON;
10
12
  export declare type WidthType = "dxa" | "auto" | "pct" | "nil";
11
13
  export { TextDirectionType } from "../table-cell";
@@ -15,7 +17,7 @@ export declare type TableCellPropertyJSON = {
15
17
  width: number;
16
18
  widthType: WidthType;
17
19
  } | null;
18
- borders?: any | null;
20
+ borders?: TableCellBorder | null;
19
21
  gridSpan?: number | null;
20
22
  verticalMerge?: "restart" | "continue" | null;
21
23
  verticalAlign?: "top" | "center" | "bottom" | null;
@@ -156,6 +156,19 @@ export enum LineSpacingType {
156
156
  }
157
157
  /**
158
158
  */
159
+ export enum SpecialIndentKind {
160
+ FirstLine,
161
+ Hanging,
162
+ }
163
+ /**
164
+ */
165
+ export enum VMergeType {
166
+ Continue,
167
+ Restart,
168
+ Unsupported,
169
+ }
170
+ /**
171
+ */
159
172
  export enum RelativeFromHType {
160
173
  /**
161
174
  * Specifies that the horizontal positioning shall be
@@ -216,13 +229,6 @@ export enum RelativeFromVType {
216
229
  }
217
230
  /**
218
231
  */
219
- export enum VMergeType {
220
- Continue,
221
- Restart,
222
- Unsupported,
223
- }
224
- /**
225
- */
226
232
  export enum PageOrientationType {
227
233
  Landscape,
228
234
  Portrait,
@@ -252,6 +258,95 @@ export enum TextDirectionType {
252
258
  }
253
259
  /**
254
260
  */
261
+ export enum TableBorderPosition {
262
+ Left,
263
+ Right,
264
+ Top,
265
+ Bottom,
266
+ InsideH,
267
+ InsideV,
268
+ }
269
+ /**
270
+ */
271
+ export enum TableCellBorderPosition {
272
+ Left,
273
+ Right,
274
+ Top,
275
+ Bottom,
276
+ InsideH,
277
+ InsideV,
278
+ Tl2br,
279
+ Tr2bl,
280
+ }
281
+ /**
282
+ */
283
+ export enum ParagraphBorderPosition {
284
+ Left,
285
+ Right,
286
+ Top,
287
+ Bottom,
288
+ Between,
289
+ Bar,
290
+ }
291
+ /**
292
+ */
293
+ export enum BorderType {
294
+ Nil,
295
+ None,
296
+ Single,
297
+ Thick,
298
+ Double,
299
+ Dotted,
300
+ Dashed,
301
+ DotDash,
302
+ DotDotDash,
303
+ Triple,
304
+ ThinThickSmallGap,
305
+ ThickThinSmallGap,
306
+ ThinThickThinSmallGap,
307
+ ThinThickMediumGap,
308
+ ThickThinMediumGap,
309
+ ThinThickThinMediumGap,
310
+ ThinThickLargeGap,
311
+ ThickThinLargeGap,
312
+ ThinThickThinLargeGap,
313
+ Wave,
314
+ DoubleWave,
315
+ DashSmallGap,
316
+ DashDotStroked,
317
+ ThreeDEmboss,
318
+ ThreeDEngrave,
319
+ Outset,
320
+ Inset,
321
+ Apples,
322
+ ArchedScallops,
323
+ BabyPacifier,
324
+ BabyRattle,
325
+ }
326
+ /**
327
+ */
328
+ export enum StyleType {
329
+ Paragraph,
330
+ Character,
331
+ Numbering,
332
+ Table,
333
+ Unsupported,
334
+ }
335
+ /**
336
+ */
337
+ export enum TabValueType {
338
+ Bar,
339
+ Center,
340
+ Clear,
341
+ Decimal,
342
+ End,
343
+ Right,
344
+ Num,
345
+ Start,
346
+ Left,
347
+ }
348
+ /**
349
+ */
255
350
  export enum DocGridType {
256
351
  Default,
257
352
  Lines,
@@ -260,6 +355,12 @@ export enum DocGridType {
260
355
  }
261
356
  /**
262
357
  */
358
+ export enum HyperlinkType {
359
+ Anchor,
360
+ External,
361
+ }
362
+ /**
363
+ */
263
364
  export enum ShdType {
264
365
  Nil,
265
366
  Clear,
@@ -302,60 +403,6 @@ export enum ShdType {
302
403
  }
303
404
  /**
304
405
  */
305
- export enum StyleType {
306
- Paragraph,
307
- Character,
308
- Numbering,
309
- Table,
310
- Unsupported,
311
- }
312
- /**
313
- */
314
- export enum TabValueType {
315
- Bar,
316
- Center,
317
- Clear,
318
- Decimal,
319
- End,
320
- Right,
321
- Num,
322
- Start,
323
- Left,
324
- }
325
- /**
326
- */
327
- export enum TableBorderPosition {
328
- Left,
329
- Right,
330
- Top,
331
- Bottom,
332
- InsideH,
333
- InsideV,
334
- }
335
- /**
336
- */
337
- export enum TableCellBorderPosition {
338
- Left,
339
- Right,
340
- Top,
341
- Bottom,
342
- InsideH,
343
- InsideV,
344
- Tl2br,
345
- Tr2bl,
346
- }
347
- /**
348
- */
349
- export enum ParagraphBorderPosition {
350
- Left,
351
- Right,
352
- Top,
353
- Bottom,
354
- Between,
355
- Bar,
356
- }
357
- /**
358
- */
359
406
  export enum CharacterSpacingValues {
360
407
  DoNotCompress,
361
408
  CompressPunctuation,
@@ -364,12 +411,6 @@ export enum CharacterSpacingValues {
364
411
  }
365
412
  /**
366
413
  */
367
- export enum HyperlinkType {
368
- Anchor,
369
- External,
370
- }
371
- /**
372
- */
373
414
  export enum TableAlignmentType {
374
415
  Center,
375
416
  Left,
@@ -377,12 +418,6 @@ export enum TableAlignmentType {
377
418
  }
378
419
  /**
379
420
  */
380
- export enum TableLayoutType {
381
- Fixed,
382
- Autofit,
383
- }
384
- /**
385
- */
386
421
  export enum AlignmentType {
387
422
  Both,
388
423
  Center,
@@ -404,6 +439,21 @@ export enum BreakType {
404
439
  }
405
440
  /**
406
441
  */
442
+ export enum TableLayoutType {
443
+ Fixed,
444
+ Autofit,
445
+ }
446
+ /**
447
+ */
448
+ export enum TextAlignmentType {
449
+ Auto,
450
+ Baseline,
451
+ Bottom,
452
+ Center,
453
+ Top,
454
+ }
455
+ /**
456
+ */
407
457
  export enum DrawingPositionType {
408
458
  Anchor,
409
459
  Inline,
@@ -419,15 +469,6 @@ export enum PicAlign {
419
469
  }
420
470
  /**
421
471
  */
422
- export enum TextAlignmentType {
423
- Auto,
424
- Baseline,
425
- Bottom,
426
- Center,
427
- Top,
428
- }
429
- /**
430
- */
431
472
  export enum VertAlignType {
432
473
  Baseline,
433
474
  SuperScript,
@@ -444,41 +485,6 @@ export enum VAlignType {
444
485
  }
445
486
  /**
446
487
  */
447
- export enum BorderType {
448
- Nil,
449
- None,
450
- Single,
451
- Thick,
452
- Double,
453
- Dotted,
454
- Dashed,
455
- DotDash,
456
- DotDotDash,
457
- Triple,
458
- ThinThickSmallGap,
459
- ThickThinSmallGap,
460
- ThinThickThinSmallGap,
461
- ThinThickMediumGap,
462
- ThickThinMediumGap,
463
- ThinThickThinMediumGap,
464
- ThinThickLargeGap,
465
- ThickThinLargeGap,
466
- ThinThickThinLargeGap,
467
- Wave,
468
- DoubleWave,
469
- DashSmallGap,
470
- DashDotStroked,
471
- ThreeDEmboss,
472
- ThreeDEngrave,
473
- Outset,
474
- Inset,
475
- Apples,
476
- ArchedScallops,
477
- BabyPacifier,
478
- BabyRattle,
479
- }
480
- /**
481
- */
482
488
  export enum HeightRule {
483
489
  Auto,
484
490
  AtLeast,
@@ -501,13 +507,6 @@ export enum FieldCharType {
501
507
  }
502
508
  /**
503
509
  */
504
- export enum FontPitchType {
505
- Default,
506
- Fixed,
507
- Variable,
508
- }
509
- /**
510
- */
511
510
  export enum TabLeaderType {
512
511
  Dot,
513
512
  Heavy,
@@ -527,9 +526,10 @@ export enum WidthType {
527
526
  }
528
527
  /**
529
528
  */
530
- export enum SpecialIndentKind {
531
- FirstLine,
532
- Hanging,
529
+ export enum FontPitchType {
530
+ Default,
531
+ Fixed,
532
+ Variable,
533
533
  }
534
534
  /**
535
535
  */
@@ -457,6 +457,12 @@ export function createParagraph() {
457
457
  export const LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
458
458
  /**
459
459
  */
460
+ export const SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
461
+ /**
462
+ */
463
+ export const VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
464
+ /**
465
+ */
460
466
  export const RelativeFromHType = Object.freeze({
461
467
  /**
462
468
  * Specifies that the horizontal positioning shall be
@@ -507,9 +513,6 @@ RightMargin:7,"7":"RightMargin", });
507
513
  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", });
508
514
  /**
509
515
  */
510
- export const VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
511
- /**
512
- */
513
516
  export const PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
514
517
  /**
515
518
  */
@@ -519,10 +522,16 @@ export const SectionType = Object.freeze({ NextPage:0,"0":"NextPage",NextColumn:
519
522
  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", });
520
523
  /**
521
524
  */
522
- export const DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
525
+ export const TableBorderPosition = 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", });
523
526
  /**
524
527
  */
525
- 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", });
528
+ 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", });
529
+ /**
530
+ */
531
+ export const ParagraphBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",Between:4,"4":"Between",Bar:5,"5":"Bar", });
532
+ /**
533
+ */
534
+ 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", });
526
535
  /**
527
536
  */
528
537
  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", });
@@ -531,31 +540,31 @@ export const StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1
531
540
  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", });
532
541
  /**
533
542
  */
534
- export const TableBorderPosition = 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", });
543
+ export const DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
535
544
  /**
536
545
  */
537
- 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", });
546
+ export const HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
538
547
  /**
539
548
  */
540
- export const ParagraphBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",Between:4,"4":"Between",Bar:5,"5":"Bar", });
549
+ 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", });
541
550
  /**
542
551
  */
543
552
  export const CharacterSpacingValues = Object.freeze({ DoNotCompress:0,"0":"DoNotCompress",CompressPunctuation:1,"1":"CompressPunctuation",CompressPunctuationAndJapaneseKana:2,"2":"CompressPunctuationAndJapaneseKana",Unsupported:3,"3":"Unsupported", });
544
553
  /**
545
554
  */
546
- export const HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
555
+ export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
547
556
  /**
548
557
  */
549
- export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
558
+ export const AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",Start:3,"3":"Start",End:4,"4":"End",Left:5,"5":"Left",Right:6,"6":"Right",Justified:7,"7":"Justified",Unsupported:8,"8":"Unsupported", });
550
559
  /**
551
560
  */
552
- export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
561
+ export const BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
553
562
  /**
554
563
  */
555
- export const AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",Start:3,"3":"Start",End:4,"4":"End",Left:5,"5":"Left",Right:6,"6":"Right",Justified:7,"7":"Justified",Unsupported:8,"8":"Unsupported", });
564
+ export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
556
565
  /**
557
566
  */
558
- export const BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
567
+ export const TextAlignmentType = Object.freeze({ Auto:0,"0":"Auto",Baseline:1,"1":"Baseline",Bottom:2,"2":"Bottom",Center:3,"3":"Center",Top:4,"4":"Top", });
559
568
  /**
560
569
  */
561
570
  export const DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:1,"1":"Inline", });
@@ -564,18 +573,12 @@ export const DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:
564
573
  export const PicAlign = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Center:2,"2":"Center",Bottom:3,"3":"Bottom",Top:4,"4":"Top", });
565
574
  /**
566
575
  */
567
- export const TextAlignmentType = Object.freeze({ Auto:0,"0":"Auto",Baseline:1,"1":"Baseline",Bottom:2,"2":"Bottom",Center:3,"3":"Center",Top:4,"4":"Top", });
568
- /**
569
- */
570
576
  export const VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
571
577
  /**
572
578
  */
573
579
  export const VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
574
580
  /**
575
581
  */
576
- 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", });
577
- /**
578
- */
579
582
  export const HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
580
583
  /**
581
584
  */
@@ -585,16 +588,13 @@ export const LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"
585
588
  export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
586
589
  /**
587
590
  */
588
- export const FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
589
- /**
590
- */
591
591
  export const TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy",Hyphen:2,"2":"Hyphen",MiddleDot:3,"3":"MiddleDot",None:4,"4":"None",Underscore:5,"5":"Underscore", });
592
592
  /**
593
593
  */
594
594
  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", });
595
595
  /**
596
596
  */
597
- export const SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
597
+ export const FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
598
598
  /**
599
599
  */
600
600
  export class AbstractNumbering {
Binary file
@@ -1,3 +1,2 @@
1
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
1
 
3
- export type BorderType = "nil" | "none" | "single" | "thick" | "double" | "dotted" | "dashed" | "dotdash" | "dotdotdash" | "triple" | "thinthicksmallgap" | "thickthinsmallgap" | "thinthickthinsmallgap" | "thinthickmediumgap" | "thickthinmediumgap" | "thinthickthinmediumgap" | "thinthicklargegap" | "thickthinlargegap" | "thinthickthinlargegap" | "wave" | "doublewave" | "dashsmallgap" | "dashdotstroked" | "threedemboss" | "threedengrave" | "outset" | "inset" | "apples" | "archedscallops" | "babypacifier" | "babyrattle";
2
+ export type BorderType = "nil" | "none" | "single" | "thick" | "double" | "dotted" | "dashed" | "dotDash" | "dotDotDash" | "triple" | "thinThickSmallGap" | "thickThinSmallGap" | "thinThickThinSmallGap" | "thinThickMediumGap" | "thickThinMediumGap" | "thinThickThinMediumGap" | "thinThickLargeGap" | "thickThinLargeGap" | "thinThickThinLargeGap" | "wave" | "doubleWave" | "dashSmallGap" | "dashDotStroked" | "threeDEmboss" | "threeDEngrave" | "outset" | "inset" | "apples" | "archedScallops" | "babyPacifier" | "babyRattle";
@@ -0,0 +1,4 @@
1
+ import type { BorderType } from "./BorderType";
2
+ import type { TableCellBorderPosition } from "./TableCellBorderPosition";
3
+
4
+ export interface TableCellBorder { borderType: BorderType, size: number, color: string, position: TableCellBorderPosition, space: number, }
@@ -0,0 +1,2 @@
1
+
2
+ export type TableCellBorderPosition = "left" | "right" | "top" | "bottom" | "insideH" | "insideV" | "tl2Br" | "tr2Bl";
@@ -0,0 +1,3 @@
1
+ import type { TableCellBorder } from "./TableCellBorder";
2
+
3
+ export interface TableCellBorders { top: TableCellBorder | null, left: TableCellBorder | null, bottom: TableCellBorder | null, right: TableCellBorder | null, insideH: TableCellBorder | null, insideV: TableCellBorder | null, tr2Bl: TableCellBorder | null, tl2Br: TableCellBorder | null, }
package/js/json/table.ts CHANGED
@@ -7,6 +7,10 @@ import { TableLayoutType } from "../table";
7
7
  import { DeleteJSONData, InsertJSONData } from "..";
8
8
  import { StructuredTagJSON } from "./structured-data-tag";
9
9
 
10
+ import { TableCellBorder } from "./bindings/TableCellBorder";
11
+
12
+ export { TableCellBorder as TableCellBorderJSON } from "./bindings/TableCellBorder";
13
+
10
14
  export type TableCellChildJSON = ParagraphJSON | TableJSON | StructuredTagJSON;
11
15
 
12
16
  export type WidthType = "dxa" | "auto" | "pct" | "nil";
@@ -20,7 +24,7 @@ export type TableCellPropertyJSON = {
20
24
  width: number;
21
25
  widthType: WidthType;
22
26
  } | null;
23
- borders?: any | null;
27
+ borders?: TableCellBorder | null;
24
28
  gridSpan?: number | null;
25
29
  verticalMerge?: "restart" | "continue" | null;
26
30
  verticalAlign?: "top" | "center" | "bottom" | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docx-wasm",
3
- "version": "0.4.12-beta10",
3
+ "version": "0.4.12-beta12",
4
4
  "main": "dist/node/index.js",
5
5
  "browser": "dist/web/index.js",
6
6
  "author": "bokuweb <bokuweb12@gmail.com>",