table 6.0.6 → 6.1.0

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