cdk-common 2.0.29 → 2.0.30

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 (93) hide show
  1. package/.jsii +2 -2
  2. package/lib/main.js +1 -1
  3. package/node_modules/graceful-fs/package.json +1 -1
  4. package/node_modules/graceful-fs/polyfills.js +4 -2
  5. package/node_modules/table/README.md +79 -1
  6. package/node_modules/table/dist/src/alignSpanningCell.d.ts +7 -0
  7. package/node_modules/table/dist/src/alignSpanningCell.js +44 -0
  8. package/node_modules/table/dist/src/alignSpanningCell.js.map +1 -0
  9. package/node_modules/table/dist/src/alignString.js.map +1 -0
  10. package/node_modules/table/dist/src/alignTableData.js +7 -1
  11. package/node_modules/table/dist/src/alignTableData.js.map +1 -0
  12. package/node_modules/table/dist/src/calculateCellHeight.js.map +1 -0
  13. package/node_modules/table/dist/src/calculateMaximumColumnWidths.d.ts +7 -0
  14. package/node_modules/table/dist/src/calculateMaximumColumnWidths.js +36 -0
  15. package/node_modules/table/dist/src/calculateMaximumColumnWidths.js.map +1 -0
  16. package/node_modules/table/dist/src/calculateOutputColumnWidths.d.ts +2 -0
  17. package/node_modules/table/dist/src/calculateOutputColumnWidths.js +10 -0
  18. package/node_modules/table/dist/src/calculateOutputColumnWidths.js.map +1 -0
  19. package/node_modules/table/dist/src/calculateRowHeights.js +28 -5
  20. package/node_modules/table/dist/src/calculateRowHeights.js.map +1 -0
  21. package/node_modules/table/dist/src/calculateSpanningCellWidth.d.ts +3 -0
  22. package/node_modules/table/dist/src/calculateSpanningCellWidth.js +26 -0
  23. package/node_modules/table/dist/src/calculateSpanningCellWidth.js.map +1 -0
  24. package/node_modules/table/dist/src/createStream.js +2 -1
  25. package/node_modules/table/dist/src/createStream.js.map +1 -0
  26. package/node_modules/table/dist/src/drawBorder.d.ts +27 -19
  27. package/node_modules/table/dist/src/drawBorder.js +164 -63
  28. package/node_modules/table/dist/src/drawBorder.js.map +1 -0
  29. package/node_modules/table/dist/src/drawContent.d.ts +10 -5
  30. package/node_modules/table/dist/src/drawContent.js +31 -7
  31. package/node_modules/table/dist/src/drawContent.js.map +1 -0
  32. package/node_modules/table/dist/src/drawRow.d.ts +6 -2
  33. package/node_modules/table/dist/src/drawRow.js +6 -2
  34. package/node_modules/table/dist/src/drawRow.js.map +1 -0
  35. package/node_modules/table/dist/src/drawTable.d.ts +1 -1
  36. package/node_modules/table/dist/src/drawTable.js +10 -18
  37. package/node_modules/table/dist/src/drawTable.js.map +1 -0
  38. package/node_modules/table/dist/src/generated/validators.d.ts +2 -2
  39. package/node_modules/table/dist/src/generated/validators.js +746 -223
  40. package/node_modules/table/dist/src/generated/validators.js.map +1 -0
  41. package/node_modules/table/dist/src/getBorderCharacters.js +16 -0
  42. package/node_modules/table/dist/src/getBorderCharacters.js.map +1 -0
  43. package/node_modules/table/dist/src/index.js.map +1 -0
  44. package/node_modules/table/dist/src/injectHeaderConfig.d.ts +3 -0
  45. package/node_modules/table/dist/src/injectHeaderConfig.js +29 -0
  46. package/node_modules/table/dist/src/injectHeaderConfig.js.map +1 -0
  47. package/node_modules/table/dist/src/makeRangeConfig.d.ts +3 -0
  48. package/node_modules/table/dist/src/makeRangeConfig.js +18 -0
  49. package/node_modules/table/dist/src/makeRangeConfig.js.map +1 -0
  50. package/node_modules/table/dist/src/makeStreamConfig.js.map +1 -0
  51. package/node_modules/table/dist/src/makeTableConfig.d.ts +2 -2
  52. package/node_modules/table/dist/src/makeTableConfig.js +26 -29
  53. package/node_modules/table/dist/src/makeTableConfig.js.map +1 -0
  54. package/node_modules/table/dist/src/mapDataUsingRowHeights.d.ts +2 -0
  55. package/node_modules/table/dist/src/mapDataUsingRowHeights.js +17 -10
  56. package/node_modules/table/dist/src/mapDataUsingRowHeights.js.map +1 -0
  57. package/node_modules/table/dist/src/padTableData.js +7 -1
  58. package/node_modules/table/dist/src/padTableData.js.map +1 -0
  59. package/node_modules/table/dist/src/schemas/config.json +95 -0
  60. package/node_modules/table/dist/src/schemas/shared.json +139 -0
  61. package/node_modules/table/dist/src/schemas/streamConfig.json +25 -0
  62. package/node_modules/table/dist/src/spanningCellManager.d.ts +21 -0
  63. package/node_modules/table/dist/src/spanningCellManager.js +86 -0
  64. package/node_modules/table/dist/src/spanningCellManager.js.map +1 -0
  65. package/node_modules/table/dist/src/stringifyTableData.js.map +1 -0
  66. package/node_modules/table/dist/src/table.js +9 -5
  67. package/node_modules/table/dist/src/table.js.map +1 -0
  68. package/node_modules/table/dist/src/truncateTableData.d.ts +2 -2
  69. package/node_modules/table/dist/src/truncateTableData.js +2 -2
  70. package/node_modules/table/dist/src/truncateTableData.js.map +1 -0
  71. package/node_modules/table/dist/src/types/api.d.ts +21 -5
  72. package/node_modules/table/dist/src/types/api.js.map +1 -0
  73. package/node_modules/table/dist/src/types/internal.js.map +1 -0
  74. package/node_modules/table/dist/src/utils.d.ts +10 -1
  75. package/node_modules/table/dist/src/utils.js +51 -1
  76. package/node_modules/table/dist/src/utils.js.map +1 -0
  77. package/node_modules/table/dist/src/validateConfig.js.map +1 -0
  78. package/node_modules/table/dist/src/validateSpanningCellConfig.d.ts +3 -0
  79. package/node_modules/table/dist/src/validateSpanningCellConfig.js +46 -0
  80. package/node_modules/table/dist/src/validateSpanningCellConfig.js.map +1 -0
  81. package/node_modules/table/dist/src/validateTableData.js.map +1 -0
  82. package/node_modules/table/dist/src/wrapCell.js.map +1 -0
  83. package/node_modules/table/dist/src/wrapString.js.map +1 -0
  84. package/node_modules/table/dist/src/wrapWord.js +2 -2
  85. package/node_modules/table/dist/src/wrapWord.js.map +1 -0
  86. package/node_modules/table/package.json +2 -3
  87. package/package.json +2 -2
  88. package/node_modules/table/dist/src/calculateCellWidths.d.ts +0 -5
  89. package/node_modules/table/dist/src/calculateCellWidths.js +0 -17
  90. package/node_modules/table/dist/src/calculateColumnWidths.d.ts +0 -6
  91. package/node_modules/table/dist/src/calculateColumnWidths.js +0 -17
  92. package/node_modules/table/dist/src/drawHeader.d.ts +0 -2
  93. package/node_modules/table/dist/src/drawHeader.js +0 -30
@@ -47,6 +47,50 @@ const schema13 = {
47
47
  },
48
48
  "singleLine": {
49
49
  "typeof": "boolean"
50
+ },
51
+ "spanningCells": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "object",
55
+ "properties": {
56
+ "col": {
57
+ "type": "integer",
58
+ "minimum": 0
59
+ },
60
+ "row": {
61
+ "type": "integer",
62
+ "minimum": 0
63
+ },
64
+ "colSpan": {
65
+ "type": "integer",
66
+ "minimum": 1
67
+ },
68
+ "rowSpan": {
69
+ "type": "integer",
70
+ "minimum": 1
71
+ },
72
+ "alignment": {
73
+ "$ref": "shared.json#/definitions/alignment"
74
+ },
75
+ "verticalAlignment": {
76
+ "$ref": "shared.json#/definitions/verticalAlignment"
77
+ },
78
+ "wrapWord": {
79
+ "type": "boolean"
80
+ },
81
+ "truncate": {
82
+ "type": "integer"
83
+ },
84
+ "paddingLeft": {
85
+ "type": "integer"
86
+ },
87
+ "paddingRight": {
88
+ "type": "integer"
89
+ }
90
+ },
91
+ "required": ["row", "col"],
92
+ "additionalProperties": false
93
+ }
50
94
  }
51
95
  },
52
96
  "additionalProperties": false
@@ -101,6 +145,18 @@ const schema15 = {
101
145
  },
102
146
  "joinJoin": {
103
147
  "$ref": "#/definitions/border"
148
+ },
149
+ "joinMiddleUp": {
150
+ "$ref": "#/definitions/border"
151
+ },
152
+ "joinMiddleDown": {
153
+ "$ref": "#/definitions/border"
154
+ },
155
+ "joinMiddleLeft": {
156
+ "$ref": "#/definitions/border"
157
+ },
158
+ "joinMiddleRight": {
159
+ "$ref": "#/definitions/border"
104
160
  }
105
161
  },
106
162
  "additionalProperties": false
@@ -333,6 +389,50 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
333
389
  errors = vErrors.length;
334
390
  }
335
391
  }
392
+ if (data.joinMiddleUp !== undefined) {
393
+ if (!(validate46(data.joinMiddleUp, {
394
+ instancePath: instancePath + "/joinMiddleUp",
395
+ parentData: data,
396
+ parentDataProperty: "joinMiddleUp",
397
+ rootData
398
+ }))) {
399
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
400
+ errors = vErrors.length;
401
+ }
402
+ }
403
+ if (data.joinMiddleDown !== undefined) {
404
+ if (!(validate46(data.joinMiddleDown, {
405
+ instancePath: instancePath + "/joinMiddleDown",
406
+ parentData: data,
407
+ parentDataProperty: "joinMiddleDown",
408
+ rootData
409
+ }))) {
410
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
411
+ errors = vErrors.length;
412
+ }
413
+ }
414
+ if (data.joinMiddleLeft !== undefined) {
415
+ if (!(validate46(data.joinMiddleLeft, {
416
+ instancePath: instancePath + "/joinMiddleLeft",
417
+ parentData: data,
418
+ parentDataProperty: "joinMiddleLeft",
419
+ rootData
420
+ }))) {
421
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
422
+ errors = vErrors.length;
423
+ }
424
+ }
425
+ if (data.joinMiddleRight !== undefined) {
426
+ if (!(validate46(data.joinMiddleRight, {
427
+ instancePath: instancePath + "/joinMiddleRight",
428
+ parentData: data,
429
+ parentDataProperty: "joinMiddleRight",
430
+ rootData
431
+ }))) {
432
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
433
+ errors = vErrors.length;
434
+ }
435
+ }
336
436
  }
337
437
  else {
338
438
  const err1 = {
@@ -360,7 +460,7 @@ const schema17 = {
360
460
  "enum": ["left", "right", "center", "justify"]
361
461
  };
362
462
  const func0 = require("ajv/dist/runtime/equal").default;
363
- function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
463
+ function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
364
464
  let vErrors = null;
365
465
  let errors = 0;
366
466
  if (typeof data !== "string") {
@@ -399,7 +499,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
399
499
  }
400
500
  errors++;
401
501
  }
402
- validate64.errors = vErrors;
502
+ validate68.errors = vErrors;
403
503
  return errors === 0;
404
504
  }
405
505
  const schema18 = {
@@ -426,8 +526,7 @@ const schema19 = {
426
526
  "$ref": "#/definitions/alignment"
427
527
  },
428
528
  "verticalAlignment": {
429
- "type": "string",
430
- "enum": ["top", "middle", "bottom"]
529
+ "$ref": "#/definitions/verticalAlignment"
431
530
  },
432
531
  "width": {
433
532
  "type": "integer",
@@ -448,7 +547,7 @@ const schema19 = {
448
547
  },
449
548
  "additionalProperties": false
450
549
  };
451
- function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
550
+ function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
452
551
  let vErrors = null;
453
552
  let errors = 0;
454
553
  if (typeof data !== "string") {
@@ -487,10 +586,56 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
487
586
  }
488
587
  errors++;
489
588
  }
490
- validate68.errors = vErrors;
589
+ validate72.errors = vErrors;
491
590
  return errors === 0;
492
591
  }
493
- function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
592
+ const schema21 = {
593
+ "type": "string",
594
+ "enum": ["top", "middle", "bottom"]
595
+ };
596
+ function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
597
+ let vErrors = null;
598
+ let errors = 0;
599
+ if (typeof data !== "string") {
600
+ const err0 = {
601
+ instancePath,
602
+ schemaPath: "#/type",
603
+ keyword: "type",
604
+ params: {
605
+ type: "string"
606
+ },
607
+ message: "must be string"
608
+ };
609
+ if (vErrors === null) {
610
+ vErrors = [err0];
611
+ }
612
+ else {
613
+ vErrors.push(err0);
614
+ }
615
+ errors++;
616
+ }
617
+ if (!(((data === "top") || (data === "middle")) || (data === "bottom"))) {
618
+ const err1 = {
619
+ instancePath,
620
+ schemaPath: "#/enum",
621
+ keyword: "enum",
622
+ params: {
623
+ allowedValues: schema21.enum
624
+ },
625
+ message: "must be equal to one of the allowed values"
626
+ };
627
+ if (vErrors === null) {
628
+ vErrors = [err1];
629
+ }
630
+ else {
631
+ vErrors.push(err1);
632
+ }
633
+ errors++;
634
+ }
635
+ validate74.errors = vErrors;
636
+ return errors === 0;
637
+ }
638
+ function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
494
639
  let vErrors = null;
495
640
  let errors = 0;
496
641
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -515,59 +660,31 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
515
660
  }
516
661
  }
517
662
  if (data.alignment !== undefined) {
518
- if (!(validate68(data.alignment, {
663
+ if (!(validate72(data.alignment, {
519
664
  instancePath: instancePath + "/alignment",
520
665
  parentData: data,
521
666
  parentDataProperty: "alignment",
522
667
  rootData
523
668
  }))) {
524
- vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
669
+ vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);
525
670
  errors = vErrors.length;
526
671
  }
527
672
  }
528
673
  if (data.verticalAlignment !== undefined) {
529
- let data1 = data.verticalAlignment;
530
- if (typeof data1 !== "string") {
531
- const err1 = {
532
- instancePath: instancePath + "/verticalAlignment",
533
- schemaPath: "#/properties/verticalAlignment/type",
534
- keyword: "type",
535
- params: {
536
- type: "string"
537
- },
538
- message: "must be string"
539
- };
540
- if (vErrors === null) {
541
- vErrors = [err1];
542
- }
543
- else {
544
- vErrors.push(err1);
545
- }
546
- errors++;
547
- }
548
- if (!(((data1 === "top") || (data1 === "middle")) || (data1 === "bottom"))) {
549
- const err2 = {
550
- instancePath: instancePath + "/verticalAlignment",
551
- schemaPath: "#/properties/verticalAlignment/enum",
552
- keyword: "enum",
553
- params: {
554
- allowedValues: schema19.properties.verticalAlignment.enum
555
- },
556
- message: "must be equal to one of the allowed values"
557
- };
558
- if (vErrors === null) {
559
- vErrors = [err2];
560
- }
561
- else {
562
- vErrors.push(err2);
563
- }
564
- errors++;
674
+ if (!(validate74(data.verticalAlignment, {
675
+ instancePath: instancePath + "/verticalAlignment",
676
+ parentData: data,
677
+ parentDataProperty: "verticalAlignment",
678
+ rootData
679
+ }))) {
680
+ vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
681
+ errors = vErrors.length;
565
682
  }
566
683
  }
567
684
  if (data.width !== undefined) {
568
685
  let data2 = data.width;
569
686
  if (!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) {
570
- const err3 = {
687
+ const err1 = {
571
688
  instancePath: instancePath + "/width",
572
689
  schemaPath: "#/properties/width/type",
573
690
  keyword: "type",
@@ -577,16 +694,16 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
577
694
  message: "must be integer"
578
695
  };
579
696
  if (vErrors === null) {
580
- vErrors = [err3];
697
+ vErrors = [err1];
581
698
  }
582
699
  else {
583
- vErrors.push(err3);
700
+ vErrors.push(err1);
584
701
  }
585
702
  errors++;
586
703
  }
587
704
  if ((typeof data2 == "number") && (isFinite(data2))) {
588
705
  if (data2 < 1 || isNaN(data2)) {
589
- const err4 = {
706
+ const err2 = {
590
707
  instancePath: instancePath + "/width",
591
708
  schemaPath: "#/properties/width/minimum",
592
709
  keyword: "minimum",
@@ -597,10 +714,10 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
597
714
  message: "must be >= 1"
598
715
  };
599
716
  if (vErrors === null) {
600
- vErrors = [err4];
717
+ vErrors = [err2];
601
718
  }
602
719
  else {
603
- vErrors.push(err4);
720
+ vErrors.push(err2);
604
721
  }
605
722
  errors++;
606
723
  }
@@ -608,7 +725,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
608
725
  }
609
726
  if (data.wrapWord !== undefined) {
610
727
  if (typeof data.wrapWord !== "boolean") {
611
- const err5 = {
728
+ const err3 = {
612
729
  instancePath: instancePath + "/wrapWord",
613
730
  schemaPath: "#/properties/wrapWord/type",
614
731
  keyword: "type",
@@ -618,10 +735,10 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
618
735
  message: "must be boolean"
619
736
  };
620
737
  if (vErrors === null) {
621
- vErrors = [err5];
738
+ vErrors = [err3];
622
739
  }
623
740
  else {
624
- vErrors.push(err5);
741
+ vErrors.push(err3);
625
742
  }
626
743
  errors++;
627
744
  }
@@ -629,7 +746,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
629
746
  if (data.truncate !== undefined) {
630
747
  let data4 = data.truncate;
631
748
  if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
632
- const err6 = {
749
+ const err4 = {
633
750
  instancePath: instancePath + "/truncate",
634
751
  schemaPath: "#/properties/truncate/type",
635
752
  keyword: "type",
@@ -639,10 +756,10 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
639
756
  message: "must be integer"
640
757
  };
641
758
  if (vErrors === null) {
642
- vErrors = [err6];
759
+ vErrors = [err4];
643
760
  }
644
761
  else {
645
- vErrors.push(err6);
762
+ vErrors.push(err4);
646
763
  }
647
764
  errors++;
648
765
  }
@@ -650,7 +767,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
650
767
  if (data.paddingLeft !== undefined) {
651
768
  let data5 = data.paddingLeft;
652
769
  if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
653
- const err7 = {
770
+ const err5 = {
654
771
  instancePath: instancePath + "/paddingLeft",
655
772
  schemaPath: "#/properties/paddingLeft/type",
656
773
  keyword: "type",
@@ -660,10 +777,10 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
660
777
  message: "must be integer"
661
778
  };
662
779
  if (vErrors === null) {
663
- vErrors = [err7];
780
+ vErrors = [err5];
664
781
  }
665
782
  else {
666
- vErrors.push(err7);
783
+ vErrors.push(err5);
667
784
  }
668
785
  errors++;
669
786
  }
@@ -671,7 +788,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
671
788
  if (data.paddingRight !== undefined) {
672
789
  let data6 = data.paddingRight;
673
790
  if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
674
- const err8 = {
791
+ const err6 = {
675
792
  instancePath: instancePath + "/paddingRight",
676
793
  schemaPath: "#/properties/paddingRight/type",
677
794
  keyword: "type",
@@ -681,17 +798,17 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
681
798
  message: "must be integer"
682
799
  };
683
800
  if (vErrors === null) {
684
- vErrors = [err8];
801
+ vErrors = [err6];
685
802
  }
686
803
  else {
687
- vErrors.push(err8);
804
+ vErrors.push(err6);
688
805
  }
689
806
  errors++;
690
807
  }
691
808
  }
692
809
  }
693
810
  else {
694
- const err9 = {
811
+ const err7 = {
695
812
  instancePath,
696
813
  schemaPath: "#/type",
697
814
  keyword: "type",
@@ -701,17 +818,17 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
701
818
  message: "must be object"
702
819
  };
703
820
  if (vErrors === null) {
704
- vErrors = [err9];
821
+ vErrors = [err7];
705
822
  }
706
823
  else {
707
- vErrors.push(err9);
824
+ vErrors.push(err7);
708
825
  }
709
826
  errors++;
710
827
  }
711
- validate67.errors = vErrors;
828
+ validate71.errors = vErrors;
712
829
  return errors === 0;
713
830
  }
714
- function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
831
+ function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
715
832
  let vErrors = null;
716
833
  let errors = 0;
717
834
  const _errs0 = errors;
@@ -741,13 +858,13 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
741
858
  }
742
859
  for (const key1 in data) {
743
860
  if (pattern0.test(key1)) {
744
- if (!(validate67(data[key1], {
861
+ if (!(validate71(data[key1], {
745
862
  instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
746
863
  parentData: data,
747
864
  parentDataProperty: key1,
748
865
  rootData
749
866
  }))) {
750
- vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
867
+ vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
751
868
  errors = vErrors.length;
752
869
  }
753
870
  }
@@ -780,13 +897,13 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
780
897
  if (Array.isArray(data)) {
781
898
  const len0 = data.length;
782
899
  for (let i0 = 0; i0 < len0; i0++) {
783
- if (!(validate67(data[i0], {
900
+ if (!(validate71(data[i0], {
784
901
  instancePath: instancePath + "/" + i0,
785
902
  parentData: data,
786
903
  parentDataProperty: i0,
787
904
  rootData
788
905
  }))) {
789
- vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
906
+ vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
790
907
  errors = vErrors.length;
791
908
  }
792
909
  }
@@ -849,10 +966,10 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
849
966
  }
850
967
  }
851
968
  }
852
- validate66.errors = vErrors;
969
+ validate70.errors = vErrors;
853
970
  return errors === 0;
854
971
  }
855
- function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
972
+ function validate79(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
856
973
  let vErrors = null;
857
974
  let errors = 0;
858
975
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -877,59 +994,31 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
877
994
  }
878
995
  }
879
996
  if (data.alignment !== undefined) {
880
- if (!(validate68(data.alignment, {
997
+ if (!(validate72(data.alignment, {
881
998
  instancePath: instancePath + "/alignment",
882
999
  parentData: data,
883
1000
  parentDataProperty: "alignment",
884
1001
  rootData
885
1002
  }))) {
886
- vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
1003
+ vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);
887
1004
  errors = vErrors.length;
888
1005
  }
889
1006
  }
890
1007
  if (data.verticalAlignment !== undefined) {
891
- let data1 = data.verticalAlignment;
892
- if (typeof data1 !== "string") {
893
- const err1 = {
894
- instancePath: instancePath + "/verticalAlignment",
895
- schemaPath: "#/properties/verticalAlignment/type",
896
- keyword: "type",
897
- params: {
898
- type: "string"
899
- },
900
- message: "must be string"
901
- };
902
- if (vErrors === null) {
903
- vErrors = [err1];
904
- }
905
- else {
906
- vErrors.push(err1);
907
- }
908
- errors++;
909
- }
910
- if (!(((data1 === "top") || (data1 === "middle")) || (data1 === "bottom"))) {
911
- const err2 = {
912
- instancePath: instancePath + "/verticalAlignment",
913
- schemaPath: "#/properties/verticalAlignment/enum",
914
- keyword: "enum",
915
- params: {
916
- allowedValues: schema19.properties.verticalAlignment.enum
917
- },
918
- message: "must be equal to one of the allowed values"
919
- };
920
- if (vErrors === null) {
921
- vErrors = [err2];
922
- }
923
- else {
924
- vErrors.push(err2);
925
- }
926
- errors++;
1008
+ if (!(validate74(data.verticalAlignment, {
1009
+ instancePath: instancePath + "/verticalAlignment",
1010
+ parentData: data,
1011
+ parentDataProperty: "verticalAlignment",
1012
+ rootData
1013
+ }))) {
1014
+ vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
1015
+ errors = vErrors.length;
927
1016
  }
928
1017
  }
929
1018
  if (data.width !== undefined) {
930
1019
  let data2 = data.width;
931
1020
  if (!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) {
932
- const err3 = {
1021
+ const err1 = {
933
1022
  instancePath: instancePath + "/width",
934
1023
  schemaPath: "#/properties/width/type",
935
1024
  keyword: "type",
@@ -939,16 +1028,16 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
939
1028
  message: "must be integer"
940
1029
  };
941
1030
  if (vErrors === null) {
942
- vErrors = [err3];
1031
+ vErrors = [err1];
943
1032
  }
944
1033
  else {
945
- vErrors.push(err3);
1034
+ vErrors.push(err1);
946
1035
  }
947
1036
  errors++;
948
1037
  }
949
1038
  if ((typeof data2 == "number") && (isFinite(data2))) {
950
1039
  if (data2 < 1 || isNaN(data2)) {
951
- const err4 = {
1040
+ const err2 = {
952
1041
  instancePath: instancePath + "/width",
953
1042
  schemaPath: "#/properties/width/minimum",
954
1043
  keyword: "minimum",
@@ -959,10 +1048,10 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
959
1048
  message: "must be >= 1"
960
1049
  };
961
1050
  if (vErrors === null) {
962
- vErrors = [err4];
1051
+ vErrors = [err2];
963
1052
  }
964
1053
  else {
965
- vErrors.push(err4);
1054
+ vErrors.push(err2);
966
1055
  }
967
1056
  errors++;
968
1057
  }
@@ -970,7 +1059,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
970
1059
  }
971
1060
  if (data.wrapWord !== undefined) {
972
1061
  if (typeof data.wrapWord !== "boolean") {
973
- const err5 = {
1062
+ const err3 = {
974
1063
  instancePath: instancePath + "/wrapWord",
975
1064
  schemaPath: "#/properties/wrapWord/type",
976
1065
  keyword: "type",
@@ -980,10 +1069,10 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
980
1069
  message: "must be boolean"
981
1070
  };
982
1071
  if (vErrors === null) {
983
- vErrors = [err5];
1072
+ vErrors = [err3];
984
1073
  }
985
1074
  else {
986
- vErrors.push(err5);
1075
+ vErrors.push(err3);
987
1076
  }
988
1077
  errors++;
989
1078
  }
@@ -991,7 +1080,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
991
1080
  if (data.truncate !== undefined) {
992
1081
  let data4 = data.truncate;
993
1082
  if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
994
- const err6 = {
1083
+ const err4 = {
995
1084
  instancePath: instancePath + "/truncate",
996
1085
  schemaPath: "#/properties/truncate/type",
997
1086
  keyword: "type",
@@ -1001,10 +1090,10 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
1001
1090
  message: "must be integer"
1002
1091
  };
1003
1092
  if (vErrors === null) {
1004
- vErrors = [err6];
1093
+ vErrors = [err4];
1005
1094
  }
1006
1095
  else {
1007
- vErrors.push(err6);
1096
+ vErrors.push(err4);
1008
1097
  }
1009
1098
  errors++;
1010
1099
  }
@@ -1012,7 +1101,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
1012
1101
  if (data.paddingLeft !== undefined) {
1013
1102
  let data5 = data.paddingLeft;
1014
1103
  if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
1015
- const err7 = {
1104
+ const err5 = {
1016
1105
  instancePath: instancePath + "/paddingLeft",
1017
1106
  schemaPath: "#/properties/paddingLeft/type",
1018
1107
  keyword: "type",
@@ -1022,10 +1111,10 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
1022
1111
  message: "must be integer"
1023
1112
  };
1024
1113
  if (vErrors === null) {
1025
- vErrors = [err7];
1114
+ vErrors = [err5];
1026
1115
  }
1027
1116
  else {
1028
- vErrors.push(err7);
1117
+ vErrors.push(err5);
1029
1118
  }
1030
1119
  errors++;
1031
1120
  }
@@ -1033,7 +1122,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
1033
1122
  if (data.paddingRight !== undefined) {
1034
1123
  let data6 = data.paddingRight;
1035
1124
  if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
1036
- const err8 = {
1125
+ const err6 = {
1037
1126
  instancePath: instancePath + "/paddingRight",
1038
1127
  schemaPath: "#/properties/paddingRight/type",
1039
1128
  keyword: "type",
@@ -1043,17 +1132,17 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
1043
1132
  message: "must be integer"
1044
1133
  };
1045
1134
  if (vErrors === null) {
1046
- vErrors = [err8];
1135
+ vErrors = [err6];
1047
1136
  }
1048
1137
  else {
1049
- vErrors.push(err8);
1138
+ vErrors.push(err6);
1050
1139
  }
1051
1140
  errors++;
1052
1141
  }
1053
1142
  }
1054
1143
  }
1055
1144
  else {
1056
- const err9 = {
1145
+ const err7 = {
1057
1146
  instancePath,
1058
1147
  schemaPath: "#/type",
1059
1148
  keyword: "type",
@@ -1063,14 +1152,56 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
1063
1152
  message: "must be object"
1064
1153
  };
1065
1154
  if (vErrors === null) {
1066
- vErrors = [err9];
1155
+ vErrors = [err7];
1067
1156
  }
1068
1157
  else {
1069
- vErrors.push(err9);
1158
+ vErrors.push(err7);
1070
1159
  }
1071
1160
  errors++;
1072
1161
  }
1073
- validate73.errors = vErrors;
1162
+ validate79.errors = vErrors;
1163
+ return errors === 0;
1164
+ }
1165
+ function validate84(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1166
+ let vErrors = null;
1167
+ let errors = 0;
1168
+ if (typeof data !== "string") {
1169
+ const err0 = {
1170
+ instancePath,
1171
+ schemaPath: "#/type",
1172
+ keyword: "type",
1173
+ params: {
1174
+ type: "string"
1175
+ },
1176
+ message: "must be string"
1177
+ };
1178
+ if (vErrors === null) {
1179
+ vErrors = [err0];
1180
+ }
1181
+ else {
1182
+ vErrors.push(err0);
1183
+ }
1184
+ errors++;
1185
+ }
1186
+ if (!(((data === "top") || (data === "middle")) || (data === "bottom"))) {
1187
+ const err1 = {
1188
+ instancePath,
1189
+ schemaPath: "#/enum",
1190
+ keyword: "enum",
1191
+ params: {
1192
+ allowedValues: schema21.enum
1193
+ },
1194
+ message: "must be equal to one of the allowed values"
1195
+ };
1196
+ if (vErrors === null) {
1197
+ vErrors = [err1];
1198
+ }
1199
+ else {
1200
+ vErrors.push(err1);
1201
+ }
1202
+ errors++;
1203
+ }
1204
+ validate84.errors = vErrors;
1074
1205
  return errors === 0;
1075
1206
  }
1076
1207
  function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
@@ -1079,7 +1210,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
1079
1210
  let errors = 0;
1080
1211
  if (data && typeof data == "object" && !Array.isArray(data)) {
1081
1212
  for (const key0 in data) {
1082
- if (!(((((((key0 === "border") || (key0 === "header")) || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "drawVerticalLine")) || (key0 === "drawHorizontalLine")) || (key0 === "singleLine"))) {
1213
+ if (!((((((((key0 === "border") || (key0 === "header")) || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "drawVerticalLine")) || (key0 === "drawHorizontalLine")) || (key0 === "singleLine")) || (key0 === "spanningCells"))) {
1083
1214
  const err0 = {
1084
1215
  instancePath,
1085
1216
  schemaPath: "#/additionalProperties",
@@ -1171,13 +1302,13 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
1171
1302
  }
1172
1303
  }
1173
1304
  if (data1.alignment !== undefined) {
1174
- if (!(validate64(data1.alignment, {
1305
+ if (!(validate68(data1.alignment, {
1175
1306
  instancePath: instancePath + "/header/alignment",
1176
1307
  parentData: data1,
1177
1308
  parentDataProperty: "alignment",
1178
1309
  rootData
1179
1310
  }))) {
1180
- vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
1311
+ vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
1181
1312
  errors = vErrors.length;
1182
1313
  }
1183
1314
  }
@@ -1285,24 +1416,24 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
1285
1416
  }
1286
1417
  }
1287
1418
  if (data.columns !== undefined) {
1288
- if (!(validate66(data.columns, {
1419
+ if (!(validate70(data.columns, {
1289
1420
  instancePath: instancePath + "/columns",
1290
1421
  parentData: data,
1291
1422
  parentDataProperty: "columns",
1292
1423
  rootData
1293
1424
  }))) {
1294
- vErrors = vErrors === null ? validate66.errors : vErrors.concat(validate66.errors);
1425
+ vErrors = vErrors === null ? validate70.errors : vErrors.concat(validate70.errors);
1295
1426
  errors = vErrors.length;
1296
1427
  }
1297
1428
  }
1298
1429
  if (data.columnDefault !== undefined) {
1299
- if (!(validate73(data.columnDefault, {
1430
+ if (!(validate79(data.columnDefault, {
1300
1431
  instancePath: instancePath + "/columnDefault",
1301
1432
  parentData: data,
1302
1433
  parentDataProperty: "columnDefault",
1303
1434
  rootData
1304
1435
  }))) {
1305
- vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);
1436
+ vErrors = vErrors === null ? validate79.errors : vErrors.concat(validate79.errors);
1306
1437
  errors = vErrors.length;
1307
1438
  }
1308
1439
  }
@@ -1360,9 +1491,385 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
1360
1491
  errors++;
1361
1492
  }
1362
1493
  }
1494
+ if (data.spanningCells !== undefined) {
1495
+ let data13 = data.spanningCells;
1496
+ if (Array.isArray(data13)) {
1497
+ const len0 = data13.length;
1498
+ for (let i0 = 0; i0 < len0; i0++) {
1499
+ let data14 = data13[i0];
1500
+ if (data14 && typeof data14 == "object" && !Array.isArray(data14)) {
1501
+ if (data14.row === undefined) {
1502
+ const err12 = {
1503
+ instancePath: instancePath + "/spanningCells/" + i0,
1504
+ schemaPath: "#/properties/spanningCells/items/required",
1505
+ keyword: "required",
1506
+ params: {
1507
+ missingProperty: "row"
1508
+ },
1509
+ message: "must have required property '" + "row" + "'"
1510
+ };
1511
+ if (vErrors === null) {
1512
+ vErrors = [err12];
1513
+ }
1514
+ else {
1515
+ vErrors.push(err12);
1516
+ }
1517
+ errors++;
1518
+ }
1519
+ if (data14.col === undefined) {
1520
+ const err13 = {
1521
+ instancePath: instancePath + "/spanningCells/" + i0,
1522
+ schemaPath: "#/properties/spanningCells/items/required",
1523
+ keyword: "required",
1524
+ params: {
1525
+ missingProperty: "col"
1526
+ },
1527
+ message: "must have required property '" + "col" + "'"
1528
+ };
1529
+ if (vErrors === null) {
1530
+ vErrors = [err13];
1531
+ }
1532
+ else {
1533
+ vErrors.push(err13);
1534
+ }
1535
+ errors++;
1536
+ }
1537
+ for (const key2 in data14) {
1538
+ if (!(func8.call(schema13.properties.spanningCells.items.properties, key2))) {
1539
+ const err14 = {
1540
+ instancePath: instancePath + "/spanningCells/" + i0,
1541
+ schemaPath: "#/properties/spanningCells/items/additionalProperties",
1542
+ keyword: "additionalProperties",
1543
+ params: {
1544
+ additionalProperty: key2
1545
+ },
1546
+ message: "must NOT have additional properties"
1547
+ };
1548
+ if (vErrors === null) {
1549
+ vErrors = [err14];
1550
+ }
1551
+ else {
1552
+ vErrors.push(err14);
1553
+ }
1554
+ errors++;
1555
+ }
1556
+ }
1557
+ if (data14.col !== undefined) {
1558
+ let data15 = data14.col;
1559
+ if (!(((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15))) && (isFinite(data15)))) {
1560
+ const err15 = {
1561
+ instancePath: instancePath + "/spanningCells/" + i0 + "/col",
1562
+ schemaPath: "#/properties/spanningCells/items/properties/col/type",
1563
+ keyword: "type",
1564
+ params: {
1565
+ type: "integer"
1566
+ },
1567
+ message: "must be integer"
1568
+ };
1569
+ if (vErrors === null) {
1570
+ vErrors = [err15];
1571
+ }
1572
+ else {
1573
+ vErrors.push(err15);
1574
+ }
1575
+ errors++;
1576
+ }
1577
+ if ((typeof data15 == "number") && (isFinite(data15))) {
1578
+ if (data15 < 0 || isNaN(data15)) {
1579
+ const err16 = {
1580
+ instancePath: instancePath + "/spanningCells/" + i0 + "/col",
1581
+ schemaPath: "#/properties/spanningCells/items/properties/col/minimum",
1582
+ keyword: "minimum",
1583
+ params: {
1584
+ comparison: ">=",
1585
+ limit: 0
1586
+ },
1587
+ message: "must be >= 0"
1588
+ };
1589
+ if (vErrors === null) {
1590
+ vErrors = [err16];
1591
+ }
1592
+ else {
1593
+ vErrors.push(err16);
1594
+ }
1595
+ errors++;
1596
+ }
1597
+ }
1598
+ }
1599
+ if (data14.row !== undefined) {
1600
+ let data16 = data14.row;
1601
+ if (!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))) {
1602
+ const err17 = {
1603
+ instancePath: instancePath + "/spanningCells/" + i0 + "/row",
1604
+ schemaPath: "#/properties/spanningCells/items/properties/row/type",
1605
+ keyword: "type",
1606
+ params: {
1607
+ type: "integer"
1608
+ },
1609
+ message: "must be integer"
1610
+ };
1611
+ if (vErrors === null) {
1612
+ vErrors = [err17];
1613
+ }
1614
+ else {
1615
+ vErrors.push(err17);
1616
+ }
1617
+ errors++;
1618
+ }
1619
+ if ((typeof data16 == "number") && (isFinite(data16))) {
1620
+ if (data16 < 0 || isNaN(data16)) {
1621
+ const err18 = {
1622
+ instancePath: instancePath + "/spanningCells/" + i0 + "/row",
1623
+ schemaPath: "#/properties/spanningCells/items/properties/row/minimum",
1624
+ keyword: "minimum",
1625
+ params: {
1626
+ comparison: ">=",
1627
+ limit: 0
1628
+ },
1629
+ message: "must be >= 0"
1630
+ };
1631
+ if (vErrors === null) {
1632
+ vErrors = [err18];
1633
+ }
1634
+ else {
1635
+ vErrors.push(err18);
1636
+ }
1637
+ errors++;
1638
+ }
1639
+ }
1640
+ }
1641
+ if (data14.colSpan !== undefined) {
1642
+ let data17 = data14.colSpan;
1643
+ if (!(((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17))) && (isFinite(data17)))) {
1644
+ const err19 = {
1645
+ instancePath: instancePath + "/spanningCells/" + i0 + "/colSpan",
1646
+ schemaPath: "#/properties/spanningCells/items/properties/colSpan/type",
1647
+ keyword: "type",
1648
+ params: {
1649
+ type: "integer"
1650
+ },
1651
+ message: "must be integer"
1652
+ };
1653
+ if (vErrors === null) {
1654
+ vErrors = [err19];
1655
+ }
1656
+ else {
1657
+ vErrors.push(err19);
1658
+ }
1659
+ errors++;
1660
+ }
1661
+ if ((typeof data17 == "number") && (isFinite(data17))) {
1662
+ if (data17 < 1 || isNaN(data17)) {
1663
+ const err20 = {
1664
+ instancePath: instancePath + "/spanningCells/" + i0 + "/colSpan",
1665
+ schemaPath: "#/properties/spanningCells/items/properties/colSpan/minimum",
1666
+ keyword: "minimum",
1667
+ params: {
1668
+ comparison: ">=",
1669
+ limit: 1
1670
+ },
1671
+ message: "must be >= 1"
1672
+ };
1673
+ if (vErrors === null) {
1674
+ vErrors = [err20];
1675
+ }
1676
+ else {
1677
+ vErrors.push(err20);
1678
+ }
1679
+ errors++;
1680
+ }
1681
+ }
1682
+ }
1683
+ if (data14.rowSpan !== undefined) {
1684
+ let data18 = data14.rowSpan;
1685
+ if (!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))) {
1686
+ const err21 = {
1687
+ instancePath: instancePath + "/spanningCells/" + i0 + "/rowSpan",
1688
+ schemaPath: "#/properties/spanningCells/items/properties/rowSpan/type",
1689
+ keyword: "type",
1690
+ params: {
1691
+ type: "integer"
1692
+ },
1693
+ message: "must be integer"
1694
+ };
1695
+ if (vErrors === null) {
1696
+ vErrors = [err21];
1697
+ }
1698
+ else {
1699
+ vErrors.push(err21);
1700
+ }
1701
+ errors++;
1702
+ }
1703
+ if ((typeof data18 == "number") && (isFinite(data18))) {
1704
+ if (data18 < 1 || isNaN(data18)) {
1705
+ const err22 = {
1706
+ instancePath: instancePath + "/spanningCells/" + i0 + "/rowSpan",
1707
+ schemaPath: "#/properties/spanningCells/items/properties/rowSpan/minimum",
1708
+ keyword: "minimum",
1709
+ params: {
1710
+ comparison: ">=",
1711
+ limit: 1
1712
+ },
1713
+ message: "must be >= 1"
1714
+ };
1715
+ if (vErrors === null) {
1716
+ vErrors = [err22];
1717
+ }
1718
+ else {
1719
+ vErrors.push(err22);
1720
+ }
1721
+ errors++;
1722
+ }
1723
+ }
1724
+ }
1725
+ if (data14.alignment !== undefined) {
1726
+ if (!(validate68(data14.alignment, {
1727
+ instancePath: instancePath + "/spanningCells/" + i0 + "/alignment",
1728
+ parentData: data14,
1729
+ parentDataProperty: "alignment",
1730
+ rootData
1731
+ }))) {
1732
+ vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
1733
+ errors = vErrors.length;
1734
+ }
1735
+ }
1736
+ if (data14.verticalAlignment !== undefined) {
1737
+ if (!(validate84(data14.verticalAlignment, {
1738
+ instancePath: instancePath + "/spanningCells/" + i0 + "/verticalAlignment",
1739
+ parentData: data14,
1740
+ parentDataProperty: "verticalAlignment",
1741
+ rootData
1742
+ }))) {
1743
+ vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
1744
+ errors = vErrors.length;
1745
+ }
1746
+ }
1747
+ if (data14.wrapWord !== undefined) {
1748
+ if (typeof data14.wrapWord !== "boolean") {
1749
+ const err23 = {
1750
+ instancePath: instancePath + "/spanningCells/" + i0 + "/wrapWord",
1751
+ schemaPath: "#/properties/spanningCells/items/properties/wrapWord/type",
1752
+ keyword: "type",
1753
+ params: {
1754
+ type: "boolean"
1755
+ },
1756
+ message: "must be boolean"
1757
+ };
1758
+ if (vErrors === null) {
1759
+ vErrors = [err23];
1760
+ }
1761
+ else {
1762
+ vErrors.push(err23);
1763
+ }
1764
+ errors++;
1765
+ }
1766
+ }
1767
+ if (data14.truncate !== undefined) {
1768
+ let data22 = data14.truncate;
1769
+ if (!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))) {
1770
+ const err24 = {
1771
+ instancePath: instancePath + "/spanningCells/" + i0 + "/truncate",
1772
+ schemaPath: "#/properties/spanningCells/items/properties/truncate/type",
1773
+ keyword: "type",
1774
+ params: {
1775
+ type: "integer"
1776
+ },
1777
+ message: "must be integer"
1778
+ };
1779
+ if (vErrors === null) {
1780
+ vErrors = [err24];
1781
+ }
1782
+ else {
1783
+ vErrors.push(err24);
1784
+ }
1785
+ errors++;
1786
+ }
1787
+ }
1788
+ if (data14.paddingLeft !== undefined) {
1789
+ let data23 = data14.paddingLeft;
1790
+ if (!(((typeof data23 == "number") && (!(data23 % 1) && !isNaN(data23))) && (isFinite(data23)))) {
1791
+ const err25 = {
1792
+ instancePath: instancePath + "/spanningCells/" + i0 + "/paddingLeft",
1793
+ schemaPath: "#/properties/spanningCells/items/properties/paddingLeft/type",
1794
+ keyword: "type",
1795
+ params: {
1796
+ type: "integer"
1797
+ },
1798
+ message: "must be integer"
1799
+ };
1800
+ if (vErrors === null) {
1801
+ vErrors = [err25];
1802
+ }
1803
+ else {
1804
+ vErrors.push(err25);
1805
+ }
1806
+ errors++;
1807
+ }
1808
+ }
1809
+ if (data14.paddingRight !== undefined) {
1810
+ let data24 = data14.paddingRight;
1811
+ if (!(((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24))) && (isFinite(data24)))) {
1812
+ const err26 = {
1813
+ instancePath: instancePath + "/spanningCells/" + i0 + "/paddingRight",
1814
+ schemaPath: "#/properties/spanningCells/items/properties/paddingRight/type",
1815
+ keyword: "type",
1816
+ params: {
1817
+ type: "integer"
1818
+ },
1819
+ message: "must be integer"
1820
+ };
1821
+ if (vErrors === null) {
1822
+ vErrors = [err26];
1823
+ }
1824
+ else {
1825
+ vErrors.push(err26);
1826
+ }
1827
+ errors++;
1828
+ }
1829
+ }
1830
+ }
1831
+ else {
1832
+ const err27 = {
1833
+ instancePath: instancePath + "/spanningCells/" + i0,
1834
+ schemaPath: "#/properties/spanningCells/items/type",
1835
+ keyword: "type",
1836
+ params: {
1837
+ type: "object"
1838
+ },
1839
+ message: "must be object"
1840
+ };
1841
+ if (vErrors === null) {
1842
+ vErrors = [err27];
1843
+ }
1844
+ else {
1845
+ vErrors.push(err27);
1846
+ }
1847
+ errors++;
1848
+ }
1849
+ }
1850
+ }
1851
+ else {
1852
+ const err28 = {
1853
+ instancePath: instancePath + "/spanningCells",
1854
+ schemaPath: "#/properties/spanningCells/type",
1855
+ keyword: "type",
1856
+ params: {
1857
+ type: "array"
1858
+ },
1859
+ message: "must be array"
1860
+ };
1861
+ if (vErrors === null) {
1862
+ vErrors = [err28];
1863
+ }
1864
+ else {
1865
+ vErrors.push(err28);
1866
+ }
1867
+ errors++;
1868
+ }
1869
+ }
1363
1870
  }
1364
1871
  else {
1365
- const err12 = {
1872
+ const err29 = {
1366
1873
  instancePath,
1367
1874
  schemaPath: "#/type",
1368
1875
  keyword: "type",
@@ -1372,18 +1879,18 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
1372
1879
  message: "must be object"
1373
1880
  };
1374
1881
  if (vErrors === null) {
1375
- vErrors = [err12];
1882
+ vErrors = [err29];
1376
1883
  }
1377
1884
  else {
1378
- vErrors.push(err12);
1885
+ vErrors.push(err29);
1379
1886
  }
1380
1887
  errors++;
1381
1888
  }
1382
1889
  validate43.errors = vErrors;
1383
1890
  return errors === 0;
1384
1891
  }
1385
- exports["streamConfig.json"] = validate76;
1386
- const schema22 = {
1892
+ exports["streamConfig.json"] = validate86;
1893
+ const schema24 = {
1387
1894
  "$id": "streamConfig.json",
1388
1895
  "$schema": "http://json-schema.org/draft-07/schema#",
1389
1896
  "type": "object",
@@ -1408,7 +1915,7 @@ const schema22 = {
1408
1915
  "required": ["columnDefault", "columnCount"],
1409
1916
  "additionalProperties": false
1410
1917
  };
1411
- function validate77(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1918
+ function validate87(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1412
1919
  let vErrors = null;
1413
1920
  let errors = 0;
1414
1921
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1608,6 +2115,50 @@ function validate77(data, { instancePath = "", parentData, parentDataProperty, r
1608
2115
  errors = vErrors.length;
1609
2116
  }
1610
2117
  }
2118
+ if (data.joinMiddleUp !== undefined) {
2119
+ if (!(validate46(data.joinMiddleUp, {
2120
+ instancePath: instancePath + "/joinMiddleUp",
2121
+ parentData: data,
2122
+ parentDataProperty: "joinMiddleUp",
2123
+ rootData
2124
+ }))) {
2125
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
2126
+ errors = vErrors.length;
2127
+ }
2128
+ }
2129
+ if (data.joinMiddleDown !== undefined) {
2130
+ if (!(validate46(data.joinMiddleDown, {
2131
+ instancePath: instancePath + "/joinMiddleDown",
2132
+ parentData: data,
2133
+ parentDataProperty: "joinMiddleDown",
2134
+ rootData
2135
+ }))) {
2136
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
2137
+ errors = vErrors.length;
2138
+ }
2139
+ }
2140
+ if (data.joinMiddleLeft !== undefined) {
2141
+ if (!(validate46(data.joinMiddleLeft, {
2142
+ instancePath: instancePath + "/joinMiddleLeft",
2143
+ parentData: data,
2144
+ parentDataProperty: "joinMiddleLeft",
2145
+ rootData
2146
+ }))) {
2147
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
2148
+ errors = vErrors.length;
2149
+ }
2150
+ }
2151
+ if (data.joinMiddleRight !== undefined) {
2152
+ if (!(validate46(data.joinMiddleRight, {
2153
+ instancePath: instancePath + "/joinMiddleRight",
2154
+ parentData: data,
2155
+ parentDataProperty: "joinMiddleRight",
2156
+ rootData
2157
+ }))) {
2158
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
2159
+ errors = vErrors.length;
2160
+ }
2161
+ }
1611
2162
  }
1612
2163
  else {
1613
2164
  const err1 = {
@@ -1627,10 +2178,10 @@ function validate77(data, { instancePath = "", parentData, parentDataProperty, r
1627
2178
  }
1628
2179
  errors++;
1629
2180
  }
1630
- validate77.errors = vErrors;
2181
+ validate87.errors = vErrors;
1631
2182
  return errors === 0;
1632
2183
  }
1633
- function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2184
+ function validate109(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1634
2185
  let vErrors = null;
1635
2186
  let errors = 0;
1636
2187
  const _errs0 = errors;
@@ -1660,13 +2211,13 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
1660
2211
  }
1661
2212
  for (const key1 in data) {
1662
2213
  if (pattern0.test(key1)) {
1663
- if (!(validate67(data[key1], {
2214
+ if (!(validate71(data[key1], {
1664
2215
  instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
1665
2216
  parentData: data,
1666
2217
  parentDataProperty: key1,
1667
2218
  rootData
1668
2219
  }))) {
1669
- vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
2220
+ vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
1670
2221
  errors = vErrors.length;
1671
2222
  }
1672
2223
  }
@@ -1699,13 +2250,13 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
1699
2250
  if (Array.isArray(data)) {
1700
2251
  const len0 = data.length;
1701
2252
  for (let i0 = 0; i0 < len0; i0++) {
1702
- if (!(validate67(data[i0], {
2253
+ if (!(validate71(data[i0], {
1703
2254
  instancePath: instancePath + "/" + i0,
1704
2255
  parentData: data,
1705
2256
  parentDataProperty: i0,
1706
2257
  rootData
1707
2258
  }))) {
1708
- vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
2259
+ vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
1709
2260
  errors = vErrors.length;
1710
2261
  }
1711
2262
  }
@@ -1768,10 +2319,10 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
1768
2319
  }
1769
2320
  }
1770
2321
  }
1771
- validate95.errors = vErrors;
2322
+ validate109.errors = vErrors;
1772
2323
  return errors === 0;
1773
2324
  }
1774
- function validate99(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2325
+ function validate113(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1775
2326
  let vErrors = null;
1776
2327
  let errors = 0;
1777
2328
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1796,59 +2347,31 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1796
2347
  }
1797
2348
  }
1798
2349
  if (data.alignment !== undefined) {
1799
- if (!(validate68(data.alignment, {
2350
+ if (!(validate72(data.alignment, {
1800
2351
  instancePath: instancePath + "/alignment",
1801
2352
  parentData: data,
1802
2353
  parentDataProperty: "alignment",
1803
2354
  rootData
1804
2355
  }))) {
1805
- vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
2356
+ vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);
1806
2357
  errors = vErrors.length;
1807
2358
  }
1808
2359
  }
1809
2360
  if (data.verticalAlignment !== undefined) {
1810
- let data1 = data.verticalAlignment;
1811
- if (typeof data1 !== "string") {
1812
- const err1 = {
1813
- instancePath: instancePath + "/verticalAlignment",
1814
- schemaPath: "#/properties/verticalAlignment/type",
1815
- keyword: "type",
1816
- params: {
1817
- type: "string"
1818
- },
1819
- message: "must be string"
1820
- };
1821
- if (vErrors === null) {
1822
- vErrors = [err1];
1823
- }
1824
- else {
1825
- vErrors.push(err1);
1826
- }
1827
- errors++;
1828
- }
1829
- if (!(((data1 === "top") || (data1 === "middle")) || (data1 === "bottom"))) {
1830
- const err2 = {
1831
- instancePath: instancePath + "/verticalAlignment",
1832
- schemaPath: "#/properties/verticalAlignment/enum",
1833
- keyword: "enum",
1834
- params: {
1835
- allowedValues: schema19.properties.verticalAlignment.enum
1836
- },
1837
- message: "must be equal to one of the allowed values"
1838
- };
1839
- if (vErrors === null) {
1840
- vErrors = [err2];
1841
- }
1842
- else {
1843
- vErrors.push(err2);
1844
- }
1845
- errors++;
2361
+ if (!(validate74(data.verticalAlignment, {
2362
+ instancePath: instancePath + "/verticalAlignment",
2363
+ parentData: data,
2364
+ parentDataProperty: "verticalAlignment",
2365
+ rootData
2366
+ }))) {
2367
+ vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
2368
+ errors = vErrors.length;
1846
2369
  }
1847
2370
  }
1848
2371
  if (data.width !== undefined) {
1849
2372
  let data2 = data.width;
1850
2373
  if (!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) {
1851
- const err3 = {
2374
+ const err1 = {
1852
2375
  instancePath: instancePath + "/width",
1853
2376
  schemaPath: "#/properties/width/type",
1854
2377
  keyword: "type",
@@ -1858,16 +2381,16 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1858
2381
  message: "must be integer"
1859
2382
  };
1860
2383
  if (vErrors === null) {
1861
- vErrors = [err3];
2384
+ vErrors = [err1];
1862
2385
  }
1863
2386
  else {
1864
- vErrors.push(err3);
2387
+ vErrors.push(err1);
1865
2388
  }
1866
2389
  errors++;
1867
2390
  }
1868
2391
  if ((typeof data2 == "number") && (isFinite(data2))) {
1869
2392
  if (data2 < 1 || isNaN(data2)) {
1870
- const err4 = {
2393
+ const err2 = {
1871
2394
  instancePath: instancePath + "/width",
1872
2395
  schemaPath: "#/properties/width/minimum",
1873
2396
  keyword: "minimum",
@@ -1878,10 +2401,10 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1878
2401
  message: "must be >= 1"
1879
2402
  };
1880
2403
  if (vErrors === null) {
1881
- vErrors = [err4];
2404
+ vErrors = [err2];
1882
2405
  }
1883
2406
  else {
1884
- vErrors.push(err4);
2407
+ vErrors.push(err2);
1885
2408
  }
1886
2409
  errors++;
1887
2410
  }
@@ -1889,7 +2412,7 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1889
2412
  }
1890
2413
  if (data.wrapWord !== undefined) {
1891
2414
  if (typeof data.wrapWord !== "boolean") {
1892
- const err5 = {
2415
+ const err3 = {
1893
2416
  instancePath: instancePath + "/wrapWord",
1894
2417
  schemaPath: "#/properties/wrapWord/type",
1895
2418
  keyword: "type",
@@ -1899,10 +2422,10 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1899
2422
  message: "must be boolean"
1900
2423
  };
1901
2424
  if (vErrors === null) {
1902
- vErrors = [err5];
2425
+ vErrors = [err3];
1903
2426
  }
1904
2427
  else {
1905
- vErrors.push(err5);
2428
+ vErrors.push(err3);
1906
2429
  }
1907
2430
  errors++;
1908
2431
  }
@@ -1910,7 +2433,7 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1910
2433
  if (data.truncate !== undefined) {
1911
2434
  let data4 = data.truncate;
1912
2435
  if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
1913
- const err6 = {
2436
+ const err4 = {
1914
2437
  instancePath: instancePath + "/truncate",
1915
2438
  schemaPath: "#/properties/truncate/type",
1916
2439
  keyword: "type",
@@ -1920,10 +2443,10 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1920
2443
  message: "must be integer"
1921
2444
  };
1922
2445
  if (vErrors === null) {
1923
- vErrors = [err6];
2446
+ vErrors = [err4];
1924
2447
  }
1925
2448
  else {
1926
- vErrors.push(err6);
2449
+ vErrors.push(err4);
1927
2450
  }
1928
2451
  errors++;
1929
2452
  }
@@ -1931,7 +2454,7 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1931
2454
  if (data.paddingLeft !== undefined) {
1932
2455
  let data5 = data.paddingLeft;
1933
2456
  if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
1934
- const err7 = {
2457
+ const err5 = {
1935
2458
  instancePath: instancePath + "/paddingLeft",
1936
2459
  schemaPath: "#/properties/paddingLeft/type",
1937
2460
  keyword: "type",
@@ -1941,10 +2464,10 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1941
2464
  message: "must be integer"
1942
2465
  };
1943
2466
  if (vErrors === null) {
1944
- vErrors = [err7];
2467
+ vErrors = [err5];
1945
2468
  }
1946
2469
  else {
1947
- vErrors.push(err7);
2470
+ vErrors.push(err5);
1948
2471
  }
1949
2472
  errors++;
1950
2473
  }
@@ -1952,7 +2475,7 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1952
2475
  if (data.paddingRight !== undefined) {
1953
2476
  let data6 = data.paddingRight;
1954
2477
  if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
1955
- const err8 = {
2478
+ const err6 = {
1956
2479
  instancePath: instancePath + "/paddingRight",
1957
2480
  schemaPath: "#/properties/paddingRight/type",
1958
2481
  keyword: "type",
@@ -1962,17 +2485,17 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1962
2485
  message: "must be integer"
1963
2486
  };
1964
2487
  if (vErrors === null) {
1965
- vErrors = [err8];
2488
+ vErrors = [err6];
1966
2489
  }
1967
2490
  else {
1968
- vErrors.push(err8);
2491
+ vErrors.push(err6);
1969
2492
  }
1970
2493
  errors++;
1971
2494
  }
1972
2495
  }
1973
2496
  }
1974
2497
  else {
1975
- const err9 = {
2498
+ const err7 = {
1976
2499
  instancePath,
1977
2500
  schemaPath: "#/type",
1978
2501
  keyword: "type",
@@ -1982,17 +2505,17 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
1982
2505
  message: "must be object"
1983
2506
  };
1984
2507
  if (vErrors === null) {
1985
- vErrors = [err9];
2508
+ vErrors = [err7];
1986
2509
  }
1987
2510
  else {
1988
- vErrors.push(err9);
2511
+ vErrors.push(err7);
1989
2512
  }
1990
2513
  errors++;
1991
2514
  }
1992
- validate99.errors = vErrors;
2515
+ validate113.errors = vErrors;
1993
2516
  return errors === 0;
1994
2517
  }
1995
- function validate76(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2518
+ function validate86(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1996
2519
  /*# sourceURL="streamConfig.json" */ ;
1997
2520
  let vErrors = null;
1998
2521
  let errors = 0;
@@ -2054,35 +2577,35 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
2054
2577
  }
2055
2578
  }
2056
2579
  if (data.border !== undefined) {
2057
- if (!(validate77(data.border, {
2580
+ if (!(validate87(data.border, {
2058
2581
  instancePath: instancePath + "/border",
2059
2582
  parentData: data,
2060
2583
  parentDataProperty: "border",
2061
2584
  rootData
2062
2585
  }))) {
2063
- vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);
2586
+ vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
2064
2587
  errors = vErrors.length;
2065
2588
  }
2066
2589
  }
2067
2590
  if (data.columns !== undefined) {
2068
- if (!(validate95(data.columns, {
2591
+ if (!(validate109(data.columns, {
2069
2592
  instancePath: instancePath + "/columns",
2070
2593
  parentData: data,
2071
2594
  parentDataProperty: "columns",
2072
2595
  rootData
2073
2596
  }))) {
2074
- vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);
2597
+ vErrors = vErrors === null ? validate109.errors : vErrors.concat(validate109.errors);
2075
2598
  errors = vErrors.length;
2076
2599
  }
2077
2600
  }
2078
2601
  if (data.columnDefault !== undefined) {
2079
- if (!(validate99(data.columnDefault, {
2602
+ if (!(validate113(data.columnDefault, {
2080
2603
  instancePath: instancePath + "/columnDefault",
2081
2604
  parentData: data,
2082
2605
  parentDataProperty: "columnDefault",
2083
2606
  rootData
2084
2607
  }))) {
2085
- vErrors = vErrors === null ? validate99.errors : vErrors.concat(validate99.errors);
2608
+ vErrors = vErrors === null ? validate113.errors : vErrors.concat(validate113.errors);
2086
2609
  errors = vErrors.length;
2087
2610
  }
2088
2611
  }
@@ -2165,7 +2688,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
2165
2688
  }
2166
2689
  errors++;
2167
2690
  }
2168
- validate76.errors = vErrors;
2691
+ validate86.errors = vErrors;
2169
2692
  return errors === 0;
2170
2693
  }
2171
2694
  //# sourceMappingURL=validators.js.map