table 6.0.2 → 6.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +3 -2
  2. package/dist/alignString.js +7 -3
  3. package/dist/alignString.js.flow +4 -3
  4. package/dist/alignString.js.map +1 -1
  5. package/dist/alignTableData.js.map +1 -1
  6. package/dist/calculateCellHeight.js +3 -1
  7. package/dist/calculateCellHeight.js.flow +2 -1
  8. package/dist/calculateCellHeight.js.map +1 -1
  9. package/dist/calculateCellWidthIndex.js.map +1 -1
  10. package/dist/calculateMaximumColumnWidthIndex.js.map +1 -1
  11. package/dist/calculateRowHeightIndex.js +9 -3
  12. package/dist/calculateRowHeightIndex.js.flow +4 -3
  13. package/dist/calculateRowHeightIndex.js.map +1 -1
  14. package/dist/createStream.js +4 -2
  15. package/dist/createStream.js.flow +3 -2
  16. package/dist/createStream.js.map +1 -1
  17. package/dist/drawBorder.js.map +1 -1
  18. package/dist/drawRow.js.map +1 -1
  19. package/dist/drawTable.js.map +1 -1
  20. package/dist/getBorderCharacters.js.map +1 -1
  21. package/dist/index.js +3 -3
  22. package/dist/makeConfig.js +11 -15
  23. package/dist/makeConfig.js.flow +6 -5
  24. package/dist/makeConfig.js.map +1 -1
  25. package/dist/makeStreamConfig.js +11 -15
  26. package/dist/makeStreamConfig.js.flow +6 -7
  27. package/dist/makeStreamConfig.js.map +1 -1
  28. package/dist/mapDataUsingRowHeightIndex.js +7 -6
  29. package/dist/mapDataUsingRowHeightIndex.js.flow +3 -3
  30. package/dist/mapDataUsingRowHeightIndex.js.map +1 -1
  31. package/dist/padTableData.js.map +1 -1
  32. package/dist/schemas/config.json +4 -98
  33. package/dist/schemas/shared.json +98 -0
  34. package/dist/schemas/streamConfig.json +4 -98
  35. package/dist/stringifyTableData.js.map +1 -1
  36. package/dist/table.js.map +1 -1
  37. package/dist/truncateTableData.js +7 -6
  38. package/dist/truncateTableData.js.flow +4 -4
  39. package/dist/truncateTableData.js.map +1 -1
  40. package/dist/validateConfig.js +40 -751
  41. package/dist/validateConfig.js.flow +4 -10
  42. package/dist/validateConfig.js.map +1 -1
  43. package/dist/validateTableData.js +11 -39
  44. package/dist/validateTableData.js.map +1 -1
  45. package/dist/validators.js +1472 -0
  46. package/dist/wrapCell.js.map +1 -1
  47. package/dist/wrapString.js.map +1 -1
  48. package/dist/wrapWord.js.map +1 -1
  49. package/package.json +22 -19
  50. package/dist/validateStreamConfig.js +0 -741
@@ -0,0 +1,1472 @@
1
+ "use strict";
2
+ exports["config.json"] = validate43;
3
+ const schema13 = {
4
+ "$id": "config.json",
5
+ "$schema": "http://json-schema.org/draft-07/schema#",
6
+ "type": "object",
7
+ "properties": {
8
+ "border": {
9
+ "$ref": "shared.json#/definitions/borders"
10
+ },
11
+ "columns": {
12
+ "$ref": "shared.json#/definitions/columns"
13
+ },
14
+ "columnDefault": {
15
+ "$ref": "shared.json#/definitions/column"
16
+ },
17
+ "drawHorizontalLine": {
18
+ "typeof": "function"
19
+ }
20
+ },
21
+ "additionalProperties": false
22
+ };
23
+ const schema15 = {
24
+ "type": "object",
25
+ "properties": {
26
+ "topBody": {
27
+ "$ref": "#/definitions/border"
28
+ },
29
+ "topJoin": {
30
+ "$ref": "#/definitions/border"
31
+ },
32
+ "topLeft": {
33
+ "$ref": "#/definitions/border"
34
+ },
35
+ "topRight": {
36
+ "$ref": "#/definitions/border"
37
+ },
38
+ "bottomBody": {
39
+ "$ref": "#/definitions/border"
40
+ },
41
+ "bottomJoin": {
42
+ "$ref": "#/definitions/border"
43
+ },
44
+ "bottomLeft": {
45
+ "$ref": "#/definitions/border"
46
+ },
47
+ "bottomRight": {
48
+ "$ref": "#/definitions/border"
49
+ },
50
+ "bodyLeft": {
51
+ "$ref": "#/definitions/border"
52
+ },
53
+ "bodyRight": {
54
+ "$ref": "#/definitions/border"
55
+ },
56
+ "bodyJoin": {
57
+ "$ref": "#/definitions/border"
58
+ },
59
+ "joinBody": {
60
+ "$ref": "#/definitions/border"
61
+ },
62
+ "joinLeft": {
63
+ "$ref": "#/definitions/border"
64
+ },
65
+ "joinRight": {
66
+ "$ref": "#/definitions/border"
67
+ },
68
+ "joinJoin": {
69
+ "$ref": "#/definitions/border"
70
+ }
71
+ },
72
+ "additionalProperties": false
73
+ };
74
+ const schema16 = {
75
+ "type": "string"
76
+ };
77
+
78
+ function validate46(data, {
79
+ dataPath = "",
80
+ parentData,
81
+ parentDataProperty,
82
+ rootData = data
83
+ } = {}) {
84
+ let vErrors = null;
85
+ let errors = 0;
86
+ if (typeof data !== "string") {
87
+ const err0 = {
88
+ keyword: "type",
89
+ dataPath,
90
+ schemaPath: "#/type",
91
+ params: {
92
+ type: "string"
93
+ },
94
+ message: "should be string"
95
+ };
96
+ if (vErrors === null) {
97
+ vErrors = [err0];
98
+ } else {
99
+ vErrors.push(err0);
100
+ }
101
+ errors++;
102
+ }
103
+ validate46.errors = vErrors;
104
+ return errors === 0;
105
+ }
106
+
107
+ function validate45(data, {
108
+ dataPath = "",
109
+ parentData,
110
+ parentDataProperty,
111
+ rootData = data
112
+ } = {}) {
113
+ let vErrors = null;
114
+ let errors = 0;
115
+ if (data && typeof data == "object" && !Array.isArray(data)) {
116
+ for (const key0 in data) {
117
+ if (!(schema15.properties.hasOwnProperty(key0))) {
118
+ const err0 = {
119
+ keyword: "additionalProperties",
120
+ dataPath,
121
+ schemaPath: "#/additionalProperties",
122
+ params: {
123
+ additionalProperty: key0
124
+ },
125
+ message: "should NOT have additional properties"
126
+ };
127
+ if (vErrors === null) {
128
+ vErrors = [err0];
129
+ } else {
130
+ vErrors.push(err0);
131
+ }
132
+ errors++;
133
+ }
134
+ }
135
+ if (data.topBody !== undefined) {
136
+ if (!(validate46(data.topBody, {
137
+ dataPath: dataPath + "/topBody",
138
+ parentData: data,
139
+ parentDataProperty: "topBody",
140
+ rootData
141
+ }))) {
142
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
143
+ errors = vErrors.length;
144
+ }
145
+ }
146
+ if (data.topJoin !== undefined) {
147
+ if (!(validate46(data.topJoin, {
148
+ dataPath: dataPath + "/topJoin",
149
+ parentData: data,
150
+ parentDataProperty: "topJoin",
151
+ rootData
152
+ }))) {
153
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
154
+ errors = vErrors.length;
155
+ }
156
+ }
157
+ if (data.topLeft !== undefined) {
158
+ if (!(validate46(data.topLeft, {
159
+ dataPath: dataPath + "/topLeft",
160
+ parentData: data,
161
+ parentDataProperty: "topLeft",
162
+ rootData
163
+ }))) {
164
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
165
+ errors = vErrors.length;
166
+ }
167
+ }
168
+ if (data.topRight !== undefined) {
169
+ if (!(validate46(data.topRight, {
170
+ dataPath: dataPath + "/topRight",
171
+ parentData: data,
172
+ parentDataProperty: "topRight",
173
+ rootData
174
+ }))) {
175
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
176
+ errors = vErrors.length;
177
+ }
178
+ }
179
+ if (data.bottomBody !== undefined) {
180
+ if (!(validate46(data.bottomBody, {
181
+ dataPath: dataPath + "/bottomBody",
182
+ parentData: data,
183
+ parentDataProperty: "bottomBody",
184
+ rootData
185
+ }))) {
186
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
187
+ errors = vErrors.length;
188
+ }
189
+ }
190
+ if (data.bottomJoin !== undefined) {
191
+ if (!(validate46(data.bottomJoin, {
192
+ dataPath: dataPath + "/bottomJoin",
193
+ parentData: data,
194
+ parentDataProperty: "bottomJoin",
195
+ rootData
196
+ }))) {
197
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
198
+ errors = vErrors.length;
199
+ }
200
+ }
201
+ if (data.bottomLeft !== undefined) {
202
+ if (!(validate46(data.bottomLeft, {
203
+ dataPath: dataPath + "/bottomLeft",
204
+ parentData: data,
205
+ parentDataProperty: "bottomLeft",
206
+ rootData
207
+ }))) {
208
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
209
+ errors = vErrors.length;
210
+ }
211
+ }
212
+ if (data.bottomRight !== undefined) {
213
+ if (!(validate46(data.bottomRight, {
214
+ dataPath: dataPath + "/bottomRight",
215
+ parentData: data,
216
+ parentDataProperty: "bottomRight",
217
+ rootData
218
+ }))) {
219
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
220
+ errors = vErrors.length;
221
+ }
222
+ }
223
+ if (data.bodyLeft !== undefined) {
224
+ if (!(validate46(data.bodyLeft, {
225
+ dataPath: dataPath + "/bodyLeft",
226
+ parentData: data,
227
+ parentDataProperty: "bodyLeft",
228
+ rootData
229
+ }))) {
230
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
231
+ errors = vErrors.length;
232
+ }
233
+ }
234
+ if (data.bodyRight !== undefined) {
235
+ if (!(validate46(data.bodyRight, {
236
+ dataPath: dataPath + "/bodyRight",
237
+ parentData: data,
238
+ parentDataProperty: "bodyRight",
239
+ rootData
240
+ }))) {
241
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
242
+ errors = vErrors.length;
243
+ }
244
+ }
245
+ if (data.bodyJoin !== undefined) {
246
+ if (!(validate46(data.bodyJoin, {
247
+ dataPath: dataPath + "/bodyJoin",
248
+ parentData: data,
249
+ parentDataProperty: "bodyJoin",
250
+ rootData
251
+ }))) {
252
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
253
+ errors = vErrors.length;
254
+ }
255
+ }
256
+ if (data.joinBody !== undefined) {
257
+ if (!(validate46(data.joinBody, {
258
+ dataPath: dataPath + "/joinBody",
259
+ parentData: data,
260
+ parentDataProperty: "joinBody",
261
+ rootData
262
+ }))) {
263
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
264
+ errors = vErrors.length;
265
+ }
266
+ }
267
+ if (data.joinLeft !== undefined) {
268
+ if (!(validate46(data.joinLeft, {
269
+ dataPath: dataPath + "/joinLeft",
270
+ parentData: data,
271
+ parentDataProperty: "joinLeft",
272
+ rootData
273
+ }))) {
274
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
275
+ errors = vErrors.length;
276
+ }
277
+ }
278
+ if (data.joinRight !== undefined) {
279
+ if (!(validate46(data.joinRight, {
280
+ dataPath: dataPath + "/joinRight",
281
+ parentData: data,
282
+ parentDataProperty: "joinRight",
283
+ rootData
284
+ }))) {
285
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
286
+ errors = vErrors.length;
287
+ }
288
+ }
289
+ if (data.joinJoin !== undefined) {
290
+ if (!(validate46(data.joinJoin, {
291
+ dataPath: dataPath + "/joinJoin",
292
+ parentData: data,
293
+ parentDataProperty: "joinJoin",
294
+ rootData
295
+ }))) {
296
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
297
+ errors = vErrors.length;
298
+ }
299
+ }
300
+ } else {
301
+ const err1 = {
302
+ keyword: "type",
303
+ dataPath,
304
+ schemaPath: "#/type",
305
+ params: {
306
+ type: "object"
307
+ },
308
+ message: "should be object"
309
+ };
310
+ if (vErrors === null) {
311
+ vErrors = [err1];
312
+ } else {
313
+ vErrors.push(err1);
314
+ }
315
+ errors++;
316
+ }
317
+ validate45.errors = vErrors;
318
+ return errors === 0;
319
+ }
320
+ const schema17 = {
321
+ "type": "object",
322
+ "patternProperties": {
323
+ "^[0-9]+$": {
324
+ "$ref": "#/definitions/column"
325
+ }
326
+ },
327
+ "additionalProperties": false
328
+ };
329
+ const pattern0 = new RegExp("^[0-9]+$", "u");
330
+ const schema18 = {
331
+ "type": "object",
332
+ "properties": {
333
+ "alignment": {
334
+ "type": "string",
335
+ "enum": ["left", "right", "center"]
336
+ },
337
+ "width": {
338
+ "type": "number"
339
+ },
340
+ "wrapWord": {
341
+ "type": "boolean"
342
+ },
343
+ "truncate": {
344
+ "type": "number"
345
+ },
346
+ "paddingLeft": {
347
+ "type": "number"
348
+ },
349
+ "paddingRight": {
350
+ "type": "number"
351
+ }
352
+ },
353
+ "additionalProperties": false
354
+ };
355
+ const func0 = require("ajv/dist/compile/equal");
356
+
357
+ function validate64(data, {
358
+ dataPath = "",
359
+ parentData,
360
+ parentDataProperty,
361
+ rootData = data
362
+ } = {}) {
363
+ let vErrors = null;
364
+ let errors = 0;
365
+ if (data && typeof data == "object" && !Array.isArray(data)) {
366
+ for (const key0 in data) {
367
+ if (!((((((key0 === "alignment") || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
368
+ const err0 = {
369
+ keyword: "additionalProperties",
370
+ dataPath,
371
+ schemaPath: "#/additionalProperties",
372
+ params: {
373
+ additionalProperty: key0
374
+ },
375
+ message: "should NOT have additional properties"
376
+ };
377
+ if (vErrors === null) {
378
+ vErrors = [err0];
379
+ } else {
380
+ vErrors.push(err0);
381
+ }
382
+ errors++;
383
+ }
384
+ }
385
+ if (data.alignment !== undefined) {
386
+ let data0 = data.alignment;
387
+ if (typeof data0 !== "string") {
388
+ const err1 = {
389
+ keyword: "type",
390
+ dataPath: dataPath + "/alignment",
391
+ schemaPath: "#/properties/alignment/type",
392
+ params: {
393
+ type: "string"
394
+ },
395
+ message: "should be string"
396
+ };
397
+ if (vErrors === null) {
398
+ vErrors = [err1];
399
+ } else {
400
+ vErrors.push(err1);
401
+ }
402
+ errors++;
403
+ }
404
+ if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
405
+ const err2 = {
406
+ keyword: "enum",
407
+ dataPath: dataPath + "/alignment",
408
+ schemaPath: "#/properties/alignment/enum",
409
+ params: {
410
+ allowedValues: schema18.properties.alignment.enum
411
+ },
412
+ message: "should be equal to one of the allowed values"
413
+ };
414
+ if (vErrors === null) {
415
+ vErrors = [err2];
416
+ } else {
417
+ vErrors.push(err2);
418
+ }
419
+ errors++;
420
+ }
421
+ }
422
+ if (data.width !== undefined) {
423
+ let data1 = data.width;
424
+ if (!((typeof data1 == "number") && (isFinite(data1)))) {
425
+ const err3 = {
426
+ keyword: "type",
427
+ dataPath: dataPath + "/width",
428
+ schemaPath: "#/properties/width/type",
429
+ params: {
430
+ type: "number"
431
+ },
432
+ message: "should be number"
433
+ };
434
+ if (vErrors === null) {
435
+ vErrors = [err3];
436
+ } else {
437
+ vErrors.push(err3);
438
+ }
439
+ errors++;
440
+ }
441
+ }
442
+ if (data.wrapWord !== undefined) {
443
+ if (typeof data.wrapWord !== "boolean") {
444
+ const err4 = {
445
+ keyword: "type",
446
+ dataPath: dataPath + "/wrapWord",
447
+ schemaPath: "#/properties/wrapWord/type",
448
+ params: {
449
+ type: "boolean"
450
+ },
451
+ message: "should be boolean"
452
+ };
453
+ if (vErrors === null) {
454
+ vErrors = [err4];
455
+ } else {
456
+ vErrors.push(err4);
457
+ }
458
+ errors++;
459
+ }
460
+ }
461
+ if (data.truncate !== undefined) {
462
+ let data3 = data.truncate;
463
+ if (!((typeof data3 == "number") && (isFinite(data3)))) {
464
+ const err5 = {
465
+ keyword: "type",
466
+ dataPath: dataPath + "/truncate",
467
+ schemaPath: "#/properties/truncate/type",
468
+ params: {
469
+ type: "number"
470
+ },
471
+ message: "should be number"
472
+ };
473
+ if (vErrors === null) {
474
+ vErrors = [err5];
475
+ } else {
476
+ vErrors.push(err5);
477
+ }
478
+ errors++;
479
+ }
480
+ }
481
+ if (data.paddingLeft !== undefined) {
482
+ let data4 = data.paddingLeft;
483
+ if (!((typeof data4 == "number") && (isFinite(data4)))) {
484
+ const err6 = {
485
+ keyword: "type",
486
+ dataPath: dataPath + "/paddingLeft",
487
+ schemaPath: "#/properties/paddingLeft/type",
488
+ params: {
489
+ type: "number"
490
+ },
491
+ message: "should be number"
492
+ };
493
+ if (vErrors === null) {
494
+ vErrors = [err6];
495
+ } else {
496
+ vErrors.push(err6);
497
+ }
498
+ errors++;
499
+ }
500
+ }
501
+ if (data.paddingRight !== undefined) {
502
+ let data5 = data.paddingRight;
503
+ if (!((typeof data5 == "number") && (isFinite(data5)))) {
504
+ const err7 = {
505
+ keyword: "type",
506
+ dataPath: dataPath + "/paddingRight",
507
+ schemaPath: "#/properties/paddingRight/type",
508
+ params: {
509
+ type: "number"
510
+ },
511
+ message: "should be number"
512
+ };
513
+ if (vErrors === null) {
514
+ vErrors = [err7];
515
+ } else {
516
+ vErrors.push(err7);
517
+ }
518
+ errors++;
519
+ }
520
+ }
521
+ } else {
522
+ const err8 = {
523
+ keyword: "type",
524
+ dataPath,
525
+ schemaPath: "#/type",
526
+ params: {
527
+ type: "object"
528
+ },
529
+ message: "should be object"
530
+ };
531
+ if (vErrors === null) {
532
+ vErrors = [err8];
533
+ } else {
534
+ vErrors.push(err8);
535
+ }
536
+ errors++;
537
+ }
538
+ validate64.errors = vErrors;
539
+ return errors === 0;
540
+ }
541
+
542
+ function validate63(data, {
543
+ dataPath = "",
544
+ parentData,
545
+ parentDataProperty,
546
+ rootData = data
547
+ } = {}) {
548
+ let vErrors = null;
549
+ let errors = 0;
550
+ if (data && typeof data == "object" && !Array.isArray(data)) {
551
+ for (const key0 in data) {
552
+ if (!(pattern0.test(key0))) {
553
+ const err0 = {
554
+ keyword: "additionalProperties",
555
+ dataPath,
556
+ schemaPath: "#/additionalProperties",
557
+ params: {
558
+ additionalProperty: key0
559
+ },
560
+ message: "should NOT have additional properties"
561
+ };
562
+ if (vErrors === null) {
563
+ vErrors = [err0];
564
+ } else {
565
+ vErrors.push(err0);
566
+ }
567
+ errors++;
568
+ }
569
+ }
570
+ for (const key1 in data) {
571
+ if (pattern0.test(key1)) {
572
+ if (!(validate64(data[key1], {
573
+ dataPath: dataPath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
574
+ parentData: data,
575
+ parentDataProperty: key1,
576
+ rootData
577
+ }))) {
578
+ vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
579
+ errors = vErrors.length;
580
+ }
581
+ }
582
+ }
583
+ } else {
584
+ const err1 = {
585
+ keyword: "type",
586
+ dataPath,
587
+ schemaPath: "#/type",
588
+ params: {
589
+ type: "object"
590
+ },
591
+ message: "should be object"
592
+ };
593
+ if (vErrors === null) {
594
+ vErrors = [err1];
595
+ } else {
596
+ vErrors.push(err1);
597
+ }
598
+ errors++;
599
+ }
600
+ validate63.errors = vErrors;
601
+ return errors === 0;
602
+ }
603
+
604
+ function validate67(data, {
605
+ dataPath = "",
606
+ parentData,
607
+ parentDataProperty,
608
+ rootData = data
609
+ } = {}) {
610
+ let vErrors = null;
611
+ let errors = 0;
612
+ if (data && typeof data == "object" && !Array.isArray(data)) {
613
+ for (const key0 in data) {
614
+ if (!((((((key0 === "alignment") || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
615
+ const err0 = {
616
+ keyword: "additionalProperties",
617
+ dataPath,
618
+ schemaPath: "#/additionalProperties",
619
+ params: {
620
+ additionalProperty: key0
621
+ },
622
+ message: "should NOT have additional properties"
623
+ };
624
+ if (vErrors === null) {
625
+ vErrors = [err0];
626
+ } else {
627
+ vErrors.push(err0);
628
+ }
629
+ errors++;
630
+ }
631
+ }
632
+ if (data.alignment !== undefined) {
633
+ let data0 = data.alignment;
634
+ if (typeof data0 !== "string") {
635
+ const err1 = {
636
+ keyword: "type",
637
+ dataPath: dataPath + "/alignment",
638
+ schemaPath: "#/properties/alignment/type",
639
+ params: {
640
+ type: "string"
641
+ },
642
+ message: "should be string"
643
+ };
644
+ if (vErrors === null) {
645
+ vErrors = [err1];
646
+ } else {
647
+ vErrors.push(err1);
648
+ }
649
+ errors++;
650
+ }
651
+ if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
652
+ const err2 = {
653
+ keyword: "enum",
654
+ dataPath: dataPath + "/alignment",
655
+ schemaPath: "#/properties/alignment/enum",
656
+ params: {
657
+ allowedValues: schema18.properties.alignment.enum
658
+ },
659
+ message: "should be equal to one of the allowed values"
660
+ };
661
+ if (vErrors === null) {
662
+ vErrors = [err2];
663
+ } else {
664
+ vErrors.push(err2);
665
+ }
666
+ errors++;
667
+ }
668
+ }
669
+ if (data.width !== undefined) {
670
+ let data1 = data.width;
671
+ if (!((typeof data1 == "number") && (isFinite(data1)))) {
672
+ const err3 = {
673
+ keyword: "type",
674
+ dataPath: dataPath + "/width",
675
+ schemaPath: "#/properties/width/type",
676
+ params: {
677
+ type: "number"
678
+ },
679
+ message: "should be number"
680
+ };
681
+ if (vErrors === null) {
682
+ vErrors = [err3];
683
+ } else {
684
+ vErrors.push(err3);
685
+ }
686
+ errors++;
687
+ }
688
+ }
689
+ if (data.wrapWord !== undefined) {
690
+ if (typeof data.wrapWord !== "boolean") {
691
+ const err4 = {
692
+ keyword: "type",
693
+ dataPath: dataPath + "/wrapWord",
694
+ schemaPath: "#/properties/wrapWord/type",
695
+ params: {
696
+ type: "boolean"
697
+ },
698
+ message: "should be boolean"
699
+ };
700
+ if (vErrors === null) {
701
+ vErrors = [err4];
702
+ } else {
703
+ vErrors.push(err4);
704
+ }
705
+ errors++;
706
+ }
707
+ }
708
+ if (data.truncate !== undefined) {
709
+ let data3 = data.truncate;
710
+ if (!((typeof data3 == "number") && (isFinite(data3)))) {
711
+ const err5 = {
712
+ keyword: "type",
713
+ dataPath: dataPath + "/truncate",
714
+ schemaPath: "#/properties/truncate/type",
715
+ params: {
716
+ type: "number"
717
+ },
718
+ message: "should be number"
719
+ };
720
+ if (vErrors === null) {
721
+ vErrors = [err5];
722
+ } else {
723
+ vErrors.push(err5);
724
+ }
725
+ errors++;
726
+ }
727
+ }
728
+ if (data.paddingLeft !== undefined) {
729
+ let data4 = data.paddingLeft;
730
+ if (!((typeof data4 == "number") && (isFinite(data4)))) {
731
+ const err6 = {
732
+ keyword: "type",
733
+ dataPath: dataPath + "/paddingLeft",
734
+ schemaPath: "#/properties/paddingLeft/type",
735
+ params: {
736
+ type: "number"
737
+ },
738
+ message: "should be number"
739
+ };
740
+ if (vErrors === null) {
741
+ vErrors = [err6];
742
+ } else {
743
+ vErrors.push(err6);
744
+ }
745
+ errors++;
746
+ }
747
+ }
748
+ if (data.paddingRight !== undefined) {
749
+ let data5 = data.paddingRight;
750
+ if (!((typeof data5 == "number") && (isFinite(data5)))) {
751
+ const err7 = {
752
+ keyword: "type",
753
+ dataPath: dataPath + "/paddingRight",
754
+ schemaPath: "#/properties/paddingRight/type",
755
+ params: {
756
+ type: "number"
757
+ },
758
+ message: "should be number"
759
+ };
760
+ if (vErrors === null) {
761
+ vErrors = [err7];
762
+ } else {
763
+ vErrors.push(err7);
764
+ }
765
+ errors++;
766
+ }
767
+ }
768
+ } else {
769
+ const err8 = {
770
+ keyword: "type",
771
+ dataPath,
772
+ schemaPath: "#/type",
773
+ params: {
774
+ type: "object"
775
+ },
776
+ message: "should be object"
777
+ };
778
+ if (vErrors === null) {
779
+ vErrors = [err8];
780
+ } else {
781
+ vErrors.push(err8);
782
+ }
783
+ errors++;
784
+ }
785
+ validate67.errors = vErrors;
786
+ return errors === 0;
787
+ }
788
+
789
+ function validate43(data, {
790
+ dataPath = "",
791
+ parentData,
792
+ parentDataProperty,
793
+ rootData = data
794
+ } = {}) {
795
+ /*# sourceURL="config.json" */ ;
796
+ let vErrors = null;
797
+ let errors = 0;
798
+ if (data && typeof data == "object" && !Array.isArray(data)) {
799
+ for (const key0 in data) {
800
+ if (!((((key0 === "border") || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "drawHorizontalLine"))) {
801
+ const err0 = {
802
+ keyword: "additionalProperties",
803
+ dataPath,
804
+ schemaPath: "#/additionalProperties",
805
+ params: {
806
+ additionalProperty: key0
807
+ },
808
+ message: "should NOT have additional properties"
809
+ };
810
+ if (vErrors === null) {
811
+ vErrors = [err0];
812
+ } else {
813
+ vErrors.push(err0);
814
+ }
815
+ errors++;
816
+ }
817
+ }
818
+ if (data.border !== undefined) {
819
+ if (!(validate45(data.border, {
820
+ dataPath: dataPath + "/border",
821
+ parentData: data,
822
+ parentDataProperty: "border",
823
+ rootData
824
+ }))) {
825
+ vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
826
+ errors = vErrors.length;
827
+ }
828
+ }
829
+ if (data.columns !== undefined) {
830
+ if (!(validate63(data.columns, {
831
+ dataPath: dataPath + "/columns",
832
+ parentData: data,
833
+ parentDataProperty: "columns",
834
+ rootData
835
+ }))) {
836
+ vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
837
+ errors = vErrors.length;
838
+ }
839
+ }
840
+ if (data.columnDefault !== undefined) {
841
+ if (!(validate67(data.columnDefault, {
842
+ dataPath: dataPath + "/columnDefault",
843
+ parentData: data,
844
+ parentDataProperty: "columnDefault",
845
+ rootData
846
+ }))) {
847
+ vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
848
+ errors = vErrors.length;
849
+ }
850
+ }
851
+ if (data.drawHorizontalLine !== undefined) {
852
+ if (typeof data.drawHorizontalLine != "function") {
853
+ const err1 = {
854
+ keyword: "typeof",
855
+ dataPath: dataPath + "/drawHorizontalLine",
856
+ schemaPath: "#/properties/drawHorizontalLine/typeof",
857
+ params: {},
858
+ message: "should pass \"typeof\" keyword validation"
859
+ };
860
+ if (vErrors === null) {
861
+ vErrors = [err1];
862
+ } else {
863
+ vErrors.push(err1);
864
+ }
865
+ errors++;
866
+ }
867
+ }
868
+ } else {
869
+ const err2 = {
870
+ keyword: "type",
871
+ dataPath,
872
+ schemaPath: "#/type",
873
+ params: {
874
+ type: "object"
875
+ },
876
+ message: "should be object"
877
+ };
878
+ if (vErrors === null) {
879
+ vErrors = [err2];
880
+ } else {
881
+ vErrors.push(err2);
882
+ }
883
+ errors++;
884
+ }
885
+ validate43.errors = vErrors;
886
+ return errors === 0;
887
+ }
888
+ exports["streamConfig.json"] = validate69;
889
+ const schema20 = {
890
+ "$id": "streamConfig.json",
891
+ "$schema": "http://json-schema.org/draft-07/schema#",
892
+ "type": "object",
893
+ "properties": {
894
+ "border": {
895
+ "$ref": "shared.json#/definitions/borders"
896
+ },
897
+ "columns": {
898
+ "$ref": "shared.json#/definitions/columns"
899
+ },
900
+ "columnDefault": {
901
+ "$ref": "shared.json#/definitions/column"
902
+ },
903
+ "columnCount": {
904
+ "type": "number"
905
+ }
906
+ },
907
+ "additionalProperties": false
908
+ };
909
+
910
+ function validate70(data, {
911
+ dataPath = "",
912
+ parentData,
913
+ parentDataProperty,
914
+ rootData = data
915
+ } = {}) {
916
+ let vErrors = null;
917
+ let errors = 0;
918
+ if (data && typeof data == "object" && !Array.isArray(data)) {
919
+ for (const key0 in data) {
920
+ if (!(schema15.properties.hasOwnProperty(key0))) {
921
+ const err0 = {
922
+ keyword: "additionalProperties",
923
+ dataPath,
924
+ schemaPath: "#/additionalProperties",
925
+ params: {
926
+ additionalProperty: key0
927
+ },
928
+ message: "should NOT have additional properties"
929
+ };
930
+ if (vErrors === null) {
931
+ vErrors = [err0];
932
+ } else {
933
+ vErrors.push(err0);
934
+ }
935
+ errors++;
936
+ }
937
+ }
938
+ if (data.topBody !== undefined) {
939
+ if (!(validate46(data.topBody, {
940
+ dataPath: dataPath + "/topBody",
941
+ parentData: data,
942
+ parentDataProperty: "topBody",
943
+ rootData
944
+ }))) {
945
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
946
+ errors = vErrors.length;
947
+ }
948
+ }
949
+ if (data.topJoin !== undefined) {
950
+ if (!(validate46(data.topJoin, {
951
+ dataPath: dataPath + "/topJoin",
952
+ parentData: data,
953
+ parentDataProperty: "topJoin",
954
+ rootData
955
+ }))) {
956
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
957
+ errors = vErrors.length;
958
+ }
959
+ }
960
+ if (data.topLeft !== undefined) {
961
+ if (!(validate46(data.topLeft, {
962
+ dataPath: dataPath + "/topLeft",
963
+ parentData: data,
964
+ parentDataProperty: "topLeft",
965
+ rootData
966
+ }))) {
967
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
968
+ errors = vErrors.length;
969
+ }
970
+ }
971
+ if (data.topRight !== undefined) {
972
+ if (!(validate46(data.topRight, {
973
+ dataPath: dataPath + "/topRight",
974
+ parentData: data,
975
+ parentDataProperty: "topRight",
976
+ rootData
977
+ }))) {
978
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
979
+ errors = vErrors.length;
980
+ }
981
+ }
982
+ if (data.bottomBody !== undefined) {
983
+ if (!(validate46(data.bottomBody, {
984
+ dataPath: dataPath + "/bottomBody",
985
+ parentData: data,
986
+ parentDataProperty: "bottomBody",
987
+ rootData
988
+ }))) {
989
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
990
+ errors = vErrors.length;
991
+ }
992
+ }
993
+ if (data.bottomJoin !== undefined) {
994
+ if (!(validate46(data.bottomJoin, {
995
+ dataPath: dataPath + "/bottomJoin",
996
+ parentData: data,
997
+ parentDataProperty: "bottomJoin",
998
+ rootData
999
+ }))) {
1000
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1001
+ errors = vErrors.length;
1002
+ }
1003
+ }
1004
+ if (data.bottomLeft !== undefined) {
1005
+ if (!(validate46(data.bottomLeft, {
1006
+ dataPath: dataPath + "/bottomLeft",
1007
+ parentData: data,
1008
+ parentDataProperty: "bottomLeft",
1009
+ rootData
1010
+ }))) {
1011
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1012
+ errors = vErrors.length;
1013
+ }
1014
+ }
1015
+ if (data.bottomRight !== undefined) {
1016
+ if (!(validate46(data.bottomRight, {
1017
+ dataPath: dataPath + "/bottomRight",
1018
+ parentData: data,
1019
+ parentDataProperty: "bottomRight",
1020
+ rootData
1021
+ }))) {
1022
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1023
+ errors = vErrors.length;
1024
+ }
1025
+ }
1026
+ if (data.bodyLeft !== undefined) {
1027
+ if (!(validate46(data.bodyLeft, {
1028
+ dataPath: dataPath + "/bodyLeft",
1029
+ parentData: data,
1030
+ parentDataProperty: "bodyLeft",
1031
+ rootData
1032
+ }))) {
1033
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1034
+ errors = vErrors.length;
1035
+ }
1036
+ }
1037
+ if (data.bodyRight !== undefined) {
1038
+ if (!(validate46(data.bodyRight, {
1039
+ dataPath: dataPath + "/bodyRight",
1040
+ parentData: data,
1041
+ parentDataProperty: "bodyRight",
1042
+ rootData
1043
+ }))) {
1044
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1045
+ errors = vErrors.length;
1046
+ }
1047
+ }
1048
+ if (data.bodyJoin !== undefined) {
1049
+ if (!(validate46(data.bodyJoin, {
1050
+ dataPath: dataPath + "/bodyJoin",
1051
+ parentData: data,
1052
+ parentDataProperty: "bodyJoin",
1053
+ rootData
1054
+ }))) {
1055
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1056
+ errors = vErrors.length;
1057
+ }
1058
+ }
1059
+ if (data.joinBody !== undefined) {
1060
+ if (!(validate46(data.joinBody, {
1061
+ dataPath: dataPath + "/joinBody",
1062
+ parentData: data,
1063
+ parentDataProperty: "joinBody",
1064
+ rootData
1065
+ }))) {
1066
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1067
+ errors = vErrors.length;
1068
+ }
1069
+ }
1070
+ if (data.joinLeft !== undefined) {
1071
+ if (!(validate46(data.joinLeft, {
1072
+ dataPath: dataPath + "/joinLeft",
1073
+ parentData: data,
1074
+ parentDataProperty: "joinLeft",
1075
+ rootData
1076
+ }))) {
1077
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1078
+ errors = vErrors.length;
1079
+ }
1080
+ }
1081
+ if (data.joinRight !== undefined) {
1082
+ if (!(validate46(data.joinRight, {
1083
+ dataPath: dataPath + "/joinRight",
1084
+ parentData: data,
1085
+ parentDataProperty: "joinRight",
1086
+ rootData
1087
+ }))) {
1088
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1089
+ errors = vErrors.length;
1090
+ }
1091
+ }
1092
+ if (data.joinJoin !== undefined) {
1093
+ if (!(validate46(data.joinJoin, {
1094
+ dataPath: dataPath + "/joinJoin",
1095
+ parentData: data,
1096
+ parentDataProperty: "joinJoin",
1097
+ rootData
1098
+ }))) {
1099
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1100
+ errors = vErrors.length;
1101
+ }
1102
+ }
1103
+ } else {
1104
+ const err1 = {
1105
+ keyword: "type",
1106
+ dataPath,
1107
+ schemaPath: "#/type",
1108
+ params: {
1109
+ type: "object"
1110
+ },
1111
+ message: "should be object"
1112
+ };
1113
+ if (vErrors === null) {
1114
+ vErrors = [err1];
1115
+ } else {
1116
+ vErrors.push(err1);
1117
+ }
1118
+ errors++;
1119
+ }
1120
+ validate70.errors = vErrors;
1121
+ return errors === 0;
1122
+ }
1123
+
1124
+ function validate87(data, {
1125
+ dataPath = "",
1126
+ parentData,
1127
+ parentDataProperty,
1128
+ rootData = data
1129
+ } = {}) {
1130
+ let vErrors = null;
1131
+ let errors = 0;
1132
+ if (data && typeof data == "object" && !Array.isArray(data)) {
1133
+ for (const key0 in data) {
1134
+ if (!(pattern0.test(key0))) {
1135
+ const err0 = {
1136
+ keyword: "additionalProperties",
1137
+ dataPath,
1138
+ schemaPath: "#/additionalProperties",
1139
+ params: {
1140
+ additionalProperty: key0
1141
+ },
1142
+ message: "should NOT have additional properties"
1143
+ };
1144
+ if (vErrors === null) {
1145
+ vErrors = [err0];
1146
+ } else {
1147
+ vErrors.push(err0);
1148
+ }
1149
+ errors++;
1150
+ }
1151
+ }
1152
+ for (const key1 in data) {
1153
+ if (pattern0.test(key1)) {
1154
+ if (!(validate64(data[key1], {
1155
+ dataPath: dataPath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
1156
+ parentData: data,
1157
+ parentDataProperty: key1,
1158
+ rootData
1159
+ }))) {
1160
+ vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
1161
+ errors = vErrors.length;
1162
+ }
1163
+ }
1164
+ }
1165
+ } else {
1166
+ const err1 = {
1167
+ keyword: "type",
1168
+ dataPath,
1169
+ schemaPath: "#/type",
1170
+ params: {
1171
+ type: "object"
1172
+ },
1173
+ message: "should be object"
1174
+ };
1175
+ if (vErrors === null) {
1176
+ vErrors = [err1];
1177
+ } else {
1178
+ vErrors.push(err1);
1179
+ }
1180
+ errors++;
1181
+ }
1182
+ validate87.errors = vErrors;
1183
+ return errors === 0;
1184
+ }
1185
+
1186
+ function validate90(data, {
1187
+ dataPath = "",
1188
+ parentData,
1189
+ parentDataProperty,
1190
+ rootData = data
1191
+ } = {}) {
1192
+ let vErrors = null;
1193
+ let errors = 0;
1194
+ if (data && typeof data == "object" && !Array.isArray(data)) {
1195
+ for (const key0 in data) {
1196
+ if (!((((((key0 === "alignment") || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
1197
+ const err0 = {
1198
+ keyword: "additionalProperties",
1199
+ dataPath,
1200
+ schemaPath: "#/additionalProperties",
1201
+ params: {
1202
+ additionalProperty: key0
1203
+ },
1204
+ message: "should NOT have additional properties"
1205
+ };
1206
+ if (vErrors === null) {
1207
+ vErrors = [err0];
1208
+ } else {
1209
+ vErrors.push(err0);
1210
+ }
1211
+ errors++;
1212
+ }
1213
+ }
1214
+ if (data.alignment !== undefined) {
1215
+ let data0 = data.alignment;
1216
+ if (typeof data0 !== "string") {
1217
+ const err1 = {
1218
+ keyword: "type",
1219
+ dataPath: dataPath + "/alignment",
1220
+ schemaPath: "#/properties/alignment/type",
1221
+ params: {
1222
+ type: "string"
1223
+ },
1224
+ message: "should be string"
1225
+ };
1226
+ if (vErrors === null) {
1227
+ vErrors = [err1];
1228
+ } else {
1229
+ vErrors.push(err1);
1230
+ }
1231
+ errors++;
1232
+ }
1233
+ if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
1234
+ const err2 = {
1235
+ keyword: "enum",
1236
+ dataPath: dataPath + "/alignment",
1237
+ schemaPath: "#/properties/alignment/enum",
1238
+ params: {
1239
+ allowedValues: schema18.properties.alignment.enum
1240
+ },
1241
+ message: "should be equal to one of the allowed values"
1242
+ };
1243
+ if (vErrors === null) {
1244
+ vErrors = [err2];
1245
+ } else {
1246
+ vErrors.push(err2);
1247
+ }
1248
+ errors++;
1249
+ }
1250
+ }
1251
+ if (data.width !== undefined) {
1252
+ let data1 = data.width;
1253
+ if (!((typeof data1 == "number") && (isFinite(data1)))) {
1254
+ const err3 = {
1255
+ keyword: "type",
1256
+ dataPath: dataPath + "/width",
1257
+ schemaPath: "#/properties/width/type",
1258
+ params: {
1259
+ type: "number"
1260
+ },
1261
+ message: "should be number"
1262
+ };
1263
+ if (vErrors === null) {
1264
+ vErrors = [err3];
1265
+ } else {
1266
+ vErrors.push(err3);
1267
+ }
1268
+ errors++;
1269
+ }
1270
+ }
1271
+ if (data.wrapWord !== undefined) {
1272
+ if (typeof data.wrapWord !== "boolean") {
1273
+ const err4 = {
1274
+ keyword: "type",
1275
+ dataPath: dataPath + "/wrapWord",
1276
+ schemaPath: "#/properties/wrapWord/type",
1277
+ params: {
1278
+ type: "boolean"
1279
+ },
1280
+ message: "should be boolean"
1281
+ };
1282
+ if (vErrors === null) {
1283
+ vErrors = [err4];
1284
+ } else {
1285
+ vErrors.push(err4);
1286
+ }
1287
+ errors++;
1288
+ }
1289
+ }
1290
+ if (data.truncate !== undefined) {
1291
+ let data3 = data.truncate;
1292
+ if (!((typeof data3 == "number") && (isFinite(data3)))) {
1293
+ const err5 = {
1294
+ keyword: "type",
1295
+ dataPath: dataPath + "/truncate",
1296
+ schemaPath: "#/properties/truncate/type",
1297
+ params: {
1298
+ type: "number"
1299
+ },
1300
+ message: "should be number"
1301
+ };
1302
+ if (vErrors === null) {
1303
+ vErrors = [err5];
1304
+ } else {
1305
+ vErrors.push(err5);
1306
+ }
1307
+ errors++;
1308
+ }
1309
+ }
1310
+ if (data.paddingLeft !== undefined) {
1311
+ let data4 = data.paddingLeft;
1312
+ if (!((typeof data4 == "number") && (isFinite(data4)))) {
1313
+ const err6 = {
1314
+ keyword: "type",
1315
+ dataPath: dataPath + "/paddingLeft",
1316
+ schemaPath: "#/properties/paddingLeft/type",
1317
+ params: {
1318
+ type: "number"
1319
+ },
1320
+ message: "should be number"
1321
+ };
1322
+ if (vErrors === null) {
1323
+ vErrors = [err6];
1324
+ } else {
1325
+ vErrors.push(err6);
1326
+ }
1327
+ errors++;
1328
+ }
1329
+ }
1330
+ if (data.paddingRight !== undefined) {
1331
+ let data5 = data.paddingRight;
1332
+ if (!((typeof data5 == "number") && (isFinite(data5)))) {
1333
+ const err7 = {
1334
+ keyword: "type",
1335
+ dataPath: dataPath + "/paddingRight",
1336
+ schemaPath: "#/properties/paddingRight/type",
1337
+ params: {
1338
+ type: "number"
1339
+ },
1340
+ message: "should be number"
1341
+ };
1342
+ if (vErrors === null) {
1343
+ vErrors = [err7];
1344
+ } else {
1345
+ vErrors.push(err7);
1346
+ }
1347
+ errors++;
1348
+ }
1349
+ }
1350
+ } else {
1351
+ const err8 = {
1352
+ keyword: "type",
1353
+ dataPath,
1354
+ schemaPath: "#/type",
1355
+ params: {
1356
+ type: "object"
1357
+ },
1358
+ message: "should be object"
1359
+ };
1360
+ if (vErrors === null) {
1361
+ vErrors = [err8];
1362
+ } else {
1363
+ vErrors.push(err8);
1364
+ }
1365
+ errors++;
1366
+ }
1367
+ validate90.errors = vErrors;
1368
+ return errors === 0;
1369
+ }
1370
+
1371
+ function validate69(data, {
1372
+ dataPath = "",
1373
+ parentData,
1374
+ parentDataProperty,
1375
+ rootData = data
1376
+ } = {}) {
1377
+ /*# sourceURL="streamConfig.json" */ ;
1378
+ let vErrors = null;
1379
+ let errors = 0;
1380
+ if (data && typeof data == "object" && !Array.isArray(data)) {
1381
+ for (const key0 in data) {
1382
+ if (!((((key0 === "border") || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "columnCount"))) {
1383
+ const err0 = {
1384
+ keyword: "additionalProperties",
1385
+ dataPath,
1386
+ schemaPath: "#/additionalProperties",
1387
+ params: {
1388
+ additionalProperty: key0
1389
+ },
1390
+ message: "should NOT have additional properties"
1391
+ };
1392
+ if (vErrors === null) {
1393
+ vErrors = [err0];
1394
+ } else {
1395
+ vErrors.push(err0);
1396
+ }
1397
+ errors++;
1398
+ }
1399
+ }
1400
+ if (data.border !== undefined) {
1401
+ if (!(validate70(data.border, {
1402
+ dataPath: dataPath + "/border",
1403
+ parentData: data,
1404
+ parentDataProperty: "border",
1405
+ rootData
1406
+ }))) {
1407
+ vErrors = vErrors === null ? validate70.errors : vErrors.concat(validate70.errors);
1408
+ errors = vErrors.length;
1409
+ }
1410
+ }
1411
+ if (data.columns !== undefined) {
1412
+ if (!(validate87(data.columns, {
1413
+ dataPath: dataPath + "/columns",
1414
+ parentData: data,
1415
+ parentDataProperty: "columns",
1416
+ rootData
1417
+ }))) {
1418
+ vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
1419
+ errors = vErrors.length;
1420
+ }
1421
+ }
1422
+ if (data.columnDefault !== undefined) {
1423
+ if (!(validate90(data.columnDefault, {
1424
+ dataPath: dataPath + "/columnDefault",
1425
+ parentData: data,
1426
+ parentDataProperty: "columnDefault",
1427
+ rootData
1428
+ }))) {
1429
+ vErrors = vErrors === null ? validate90.errors : vErrors.concat(validate90.errors);
1430
+ errors = vErrors.length;
1431
+ }
1432
+ }
1433
+ if (data.columnCount !== undefined) {
1434
+ let data3 = data.columnCount;
1435
+ if (!((typeof data3 == "number") && (isFinite(data3)))) {
1436
+ const err1 = {
1437
+ keyword: "type",
1438
+ dataPath: dataPath + "/columnCount",
1439
+ schemaPath: "#/properties/columnCount/type",
1440
+ params: {
1441
+ type: "number"
1442
+ },
1443
+ message: "should be number"
1444
+ };
1445
+ if (vErrors === null) {
1446
+ vErrors = [err1];
1447
+ } else {
1448
+ vErrors.push(err1);
1449
+ }
1450
+ errors++;
1451
+ }
1452
+ }
1453
+ } else {
1454
+ const err2 = {
1455
+ keyword: "type",
1456
+ dataPath,
1457
+ schemaPath: "#/type",
1458
+ params: {
1459
+ type: "object"
1460
+ },
1461
+ message: "should be object"
1462
+ };
1463
+ if (vErrors === null) {
1464
+ vErrors = [err2];
1465
+ } else {
1466
+ vErrors.push(err2);
1467
+ }
1468
+ errors++;
1469
+ }
1470
+ validate69.errors = vErrors;
1471
+ return errors === 0;
1472
+ }