table 6.3.4 → 6.6.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.
- package/README.md +20 -25
- package/dist/alignString.d.ts +2 -3
- package/dist/alignString.js +21 -7
- package/dist/alignTableData.d.ts +1 -2
- package/dist/alignTableData.js +7 -5
- package/dist/calculateCellHeight.d.ts +4 -2
- package/dist/calculateCellHeight.js +8 -12
- package/dist/calculateCellWidths.d.ts +5 -0
- package/dist/{calculateCellWidthIndex.js → calculateCellWidths.js} +6 -6
- package/dist/{calculateMaximumColumnWidthIndex.d.ts → calculateColumnWidths.d.ts} +0 -0
- package/dist/calculateColumnWidths.js +16 -0
- package/dist/calculateRowHeights.d.ts +5 -0
- package/dist/calculateRowHeights.js +18 -0
- package/dist/createStream.d.ts +1 -2
- package/dist/createStream.js +29 -30
- package/dist/drawBorder.d.ts +4 -4
- package/dist/drawBorder.js +16 -13
- package/dist/drawContent.d.ts +11 -0
- package/dist/drawContent.js +26 -0
- package/dist/drawRow.d.ts +1 -2
- package/dist/drawRow.js +11 -13
- package/dist/drawTable.d.ts +1 -2
- package/dist/drawTable.js +22 -31
- package/dist/generated/validators.d.ts +2 -2
- package/dist/generated/validators.js +464 -163
- package/dist/getBorderCharacters.d.ts +1 -2
- package/dist/getBorderCharacters.js +3 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -9
- package/dist/makeConfig.d.ts +1 -2
- package/dist/makeConfig.js +12 -19
- package/dist/makeStreamConfig.d.ts +1 -2
- package/dist/makeStreamConfig.js +8 -19
- package/dist/mapDataUsingRowHeights.d.ts +2 -0
- package/dist/mapDataUsingRowHeights.js +29 -0
- package/dist/padTableData.d.ts +1 -2
- package/dist/padTableData.js +6 -4
- package/dist/stringifyTableData.d.ts +1 -2
- package/dist/stringifyTableData.js +7 -2
- package/dist/table.d.ts +1 -2
- package/dist/table.js +23 -24
- package/dist/truncateTableData.d.ts +1 -2
- package/dist/truncateTableData.js +6 -4
- package/dist/types/api.d.ts +2 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +93 -0
- package/dist/validateConfig.d.ts +1 -2
- package/dist/validateConfig.js +3 -1
- package/dist/validateTableData.d.ts +1 -2
- package/dist/validateTableData.js +5 -2
- package/dist/wrapCell.d.ts +1 -2
- package/dist/wrapCell.js +9 -9
- package/dist/wrapString.d.ts +1 -2
- package/dist/wrapString.js +3 -1
- package/dist/wrapWord.d.ts +1 -2
- package/dist/wrapWord.js +25 -12
- package/package.json +3 -2
- package/dist/calculateCellWidthIndex.d.ts +0 -6
- package/dist/calculateMaximumColumnWidthIndex.js +0 -24
- package/dist/calculateRowHeightIndex.d.ts +0 -6
- package/dist/calculateRowHeightIndex.js +0 -24
- package/dist/drawHorizontalContent.d.ts +0 -11
- package/dist/drawHorizontalContent.js +0 -18
- package/dist/mapDataUsingRowHeightIndex.d.ts +0 -3
- package/dist/mapDataUsingRowHeightIndex.js +0 -26
|
@@ -317,13 +317,20 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
317
317
|
return errors === 0;
|
|
318
318
|
}
|
|
319
319
|
const schema17 = {
|
|
320
|
-
"
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
320
|
+
"oneOf": [{
|
|
321
|
+
"type": "object",
|
|
322
|
+
"patternProperties": {
|
|
323
|
+
"^[0-9]+$": {
|
|
324
|
+
"$ref": "#/definitions/column"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"additionalProperties": false
|
|
328
|
+
}, {
|
|
329
|
+
"type": "array",
|
|
330
|
+
"items": {
|
|
331
|
+
"$ref": "#/definitions/column"
|
|
332
|
+
}
|
|
333
|
+
}]
|
|
327
334
|
};
|
|
328
335
|
const pattern0 = new RegExp("^[0-9]+$", "u");
|
|
329
336
|
const schema18 = {
|
|
@@ -331,10 +338,10 @@ const schema18 = {
|
|
|
331
338
|
"properties": {
|
|
332
339
|
"alignment": {
|
|
333
340
|
"type": "string",
|
|
334
|
-
"enum": ["left", "right", "center"]
|
|
341
|
+
"enum": ["left", "right", "center", "justify"]
|
|
335
342
|
},
|
|
336
343
|
"width": {
|
|
337
|
-
"
|
|
344
|
+
"$ref": "#/definitions/naturalNumber"
|
|
338
345
|
},
|
|
339
346
|
"wrapWord": {
|
|
340
347
|
"type": "boolean"
|
|
@@ -352,6 +359,75 @@ const schema18 = {
|
|
|
352
359
|
"additionalProperties": false
|
|
353
360
|
};
|
|
354
361
|
const func0 = require("ajv/dist/runtime/equal").default;
|
|
362
|
+
const schema19 = {
|
|
363
|
+
"type": "number",
|
|
364
|
+
"minimum": 1,
|
|
365
|
+
"multipleOf": 1
|
|
366
|
+
};
|
|
367
|
+
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
368
|
+
let vErrors = null;
|
|
369
|
+
let errors = 0;
|
|
370
|
+
if ((typeof data == "number") && (isFinite(data))) {
|
|
371
|
+
if (data < 1 || isNaN(data)) {
|
|
372
|
+
const err0 = {
|
|
373
|
+
instancePath,
|
|
374
|
+
schemaPath: "#/minimum",
|
|
375
|
+
keyword: "minimum",
|
|
376
|
+
params: {
|
|
377
|
+
comparison: ">=",
|
|
378
|
+
limit: 1
|
|
379
|
+
},
|
|
380
|
+
message: "must be >= 1"
|
|
381
|
+
};
|
|
382
|
+
if (vErrors === null) {
|
|
383
|
+
vErrors = [err0];
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
vErrors.push(err0);
|
|
387
|
+
}
|
|
388
|
+
errors++;
|
|
389
|
+
}
|
|
390
|
+
let res0;
|
|
391
|
+
if ((1 === 0 || (res0 = data / 1, res0 !== parseInt(res0)))) {
|
|
392
|
+
const err1 = {
|
|
393
|
+
instancePath,
|
|
394
|
+
schemaPath: "#/multipleOf",
|
|
395
|
+
keyword: "multipleOf",
|
|
396
|
+
params: {
|
|
397
|
+
multipleOf: 1
|
|
398
|
+
},
|
|
399
|
+
message: "must be multiple of 1"
|
|
400
|
+
};
|
|
401
|
+
if (vErrors === null) {
|
|
402
|
+
vErrors = [err1];
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
vErrors.push(err1);
|
|
406
|
+
}
|
|
407
|
+
errors++;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
else {
|
|
411
|
+
const err2 = {
|
|
412
|
+
instancePath,
|
|
413
|
+
schemaPath: "#/type",
|
|
414
|
+
keyword: "type",
|
|
415
|
+
params: {
|
|
416
|
+
type: "number"
|
|
417
|
+
},
|
|
418
|
+
message: "must be number"
|
|
419
|
+
};
|
|
420
|
+
if (vErrors === null) {
|
|
421
|
+
vErrors = [err2];
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
vErrors.push(err2);
|
|
425
|
+
}
|
|
426
|
+
errors++;
|
|
427
|
+
}
|
|
428
|
+
validate65.errors = vErrors;
|
|
429
|
+
return errors === 0;
|
|
430
|
+
}
|
|
355
431
|
function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
356
432
|
let vErrors = null;
|
|
357
433
|
let errors = 0;
|
|
@@ -396,7 +472,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
396
472
|
}
|
|
397
473
|
errors++;
|
|
398
474
|
}
|
|
399
|
-
if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
|
|
475
|
+
if (!((((data0 === "left") || (data0 === "right")) || (data0 === "center")) || (data0 === "justify"))) {
|
|
400
476
|
const err2 = {
|
|
401
477
|
instancePath: instancePath + "/alignment",
|
|
402
478
|
schemaPath: "#/properties/alignment/enum",
|
|
@@ -416,29 +492,19 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
416
492
|
}
|
|
417
493
|
}
|
|
418
494
|
if (data.width !== undefined) {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
},
|
|
428
|
-
message: "must be number"
|
|
429
|
-
};
|
|
430
|
-
if (vErrors === null) {
|
|
431
|
-
vErrors = [err3];
|
|
432
|
-
}
|
|
433
|
-
else {
|
|
434
|
-
vErrors.push(err3);
|
|
435
|
-
}
|
|
436
|
-
errors++;
|
|
495
|
+
if (!(validate65(data.width, {
|
|
496
|
+
instancePath: instancePath + "/width",
|
|
497
|
+
parentData: data,
|
|
498
|
+
parentDataProperty: "width",
|
|
499
|
+
rootData
|
|
500
|
+
}))) {
|
|
501
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
502
|
+
errors = vErrors.length;
|
|
437
503
|
}
|
|
438
504
|
}
|
|
439
505
|
if (data.wrapWord !== undefined) {
|
|
440
506
|
if (typeof data.wrapWord !== "boolean") {
|
|
441
|
-
const
|
|
507
|
+
const err3 = {
|
|
442
508
|
instancePath: instancePath + "/wrapWord",
|
|
443
509
|
schemaPath: "#/properties/wrapWord/type",
|
|
444
510
|
keyword: "type",
|
|
@@ -448,10 +514,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
448
514
|
message: "must be boolean"
|
|
449
515
|
};
|
|
450
516
|
if (vErrors === null) {
|
|
451
|
-
vErrors = [
|
|
517
|
+
vErrors = [err3];
|
|
452
518
|
}
|
|
453
519
|
else {
|
|
454
|
-
vErrors.push(
|
|
520
|
+
vErrors.push(err3);
|
|
455
521
|
}
|
|
456
522
|
errors++;
|
|
457
523
|
}
|
|
@@ -459,7 +525,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
459
525
|
if (data.truncate !== undefined) {
|
|
460
526
|
let data3 = data.truncate;
|
|
461
527
|
if (!((typeof data3 == "number") && (isFinite(data3)))) {
|
|
462
|
-
const
|
|
528
|
+
const err4 = {
|
|
463
529
|
instancePath: instancePath + "/truncate",
|
|
464
530
|
schemaPath: "#/properties/truncate/type",
|
|
465
531
|
keyword: "type",
|
|
@@ -469,10 +535,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
469
535
|
message: "must be number"
|
|
470
536
|
};
|
|
471
537
|
if (vErrors === null) {
|
|
472
|
-
vErrors = [
|
|
538
|
+
vErrors = [err4];
|
|
473
539
|
}
|
|
474
540
|
else {
|
|
475
|
-
vErrors.push(
|
|
541
|
+
vErrors.push(err4);
|
|
476
542
|
}
|
|
477
543
|
errors++;
|
|
478
544
|
}
|
|
@@ -480,7 +546,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
480
546
|
if (data.paddingLeft !== undefined) {
|
|
481
547
|
let data4 = data.paddingLeft;
|
|
482
548
|
if (!((typeof data4 == "number") && (isFinite(data4)))) {
|
|
483
|
-
const
|
|
549
|
+
const err5 = {
|
|
484
550
|
instancePath: instancePath + "/paddingLeft",
|
|
485
551
|
schemaPath: "#/properties/paddingLeft/type",
|
|
486
552
|
keyword: "type",
|
|
@@ -490,10 +556,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
490
556
|
message: "must be number"
|
|
491
557
|
};
|
|
492
558
|
if (vErrors === null) {
|
|
493
|
-
vErrors = [
|
|
559
|
+
vErrors = [err5];
|
|
494
560
|
}
|
|
495
561
|
else {
|
|
496
|
-
vErrors.push(
|
|
562
|
+
vErrors.push(err5);
|
|
497
563
|
}
|
|
498
564
|
errors++;
|
|
499
565
|
}
|
|
@@ -501,7 +567,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
501
567
|
if (data.paddingRight !== undefined) {
|
|
502
568
|
let data5 = data.paddingRight;
|
|
503
569
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
504
|
-
const
|
|
570
|
+
const err6 = {
|
|
505
571
|
instancePath: instancePath + "/paddingRight",
|
|
506
572
|
schemaPath: "#/properties/paddingRight/type",
|
|
507
573
|
keyword: "type",
|
|
@@ -511,17 +577,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
511
577
|
message: "must be number"
|
|
512
578
|
};
|
|
513
579
|
if (vErrors === null) {
|
|
514
|
-
vErrors = [
|
|
580
|
+
vErrors = [err6];
|
|
515
581
|
}
|
|
516
582
|
else {
|
|
517
|
-
vErrors.push(
|
|
583
|
+
vErrors.push(err6);
|
|
518
584
|
}
|
|
519
585
|
errors++;
|
|
520
586
|
}
|
|
521
587
|
}
|
|
522
588
|
}
|
|
523
589
|
else {
|
|
524
|
-
const
|
|
590
|
+
const err7 = {
|
|
525
591
|
instancePath,
|
|
526
592
|
schemaPath: "#/type",
|
|
527
593
|
keyword: "type",
|
|
@@ -531,10 +597,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
531
597
|
message: "must be object"
|
|
532
598
|
};
|
|
533
599
|
if (vErrors === null) {
|
|
534
|
-
vErrors = [
|
|
600
|
+
vErrors = [err7];
|
|
535
601
|
}
|
|
536
602
|
else {
|
|
537
|
-
vErrors.push(
|
|
603
|
+
vErrors.push(err7);
|
|
538
604
|
}
|
|
539
605
|
errors++;
|
|
540
606
|
}
|
|
@@ -544,12 +610,16 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
544
610
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
545
611
|
let vErrors = null;
|
|
546
612
|
let errors = 0;
|
|
613
|
+
const _errs0 = errors;
|
|
614
|
+
let valid0 = false;
|
|
615
|
+
let passing0 = null;
|
|
616
|
+
const _errs1 = errors;
|
|
547
617
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
548
618
|
for (const key0 in data) {
|
|
549
619
|
if (!(pattern0.test(key0))) {
|
|
550
620
|
const err0 = {
|
|
551
621
|
instancePath,
|
|
552
|
-
schemaPath: "#/additionalProperties",
|
|
622
|
+
schemaPath: "#/oneOf/0/additionalProperties",
|
|
553
623
|
keyword: "additionalProperties",
|
|
554
624
|
params: {
|
|
555
625
|
additionalProperty: key0
|
|
@@ -582,7 +652,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
582
652
|
else {
|
|
583
653
|
const err1 = {
|
|
584
654
|
instancePath,
|
|
585
|
-
schemaPath: "#/type",
|
|
655
|
+
schemaPath: "#/oneOf/0/type",
|
|
586
656
|
keyword: "type",
|
|
587
657
|
params: {
|
|
588
658
|
type: "object"
|
|
@@ -597,10 +667,88 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
597
667
|
}
|
|
598
668
|
errors++;
|
|
599
669
|
}
|
|
670
|
+
var _valid0 = _errs1 === errors;
|
|
671
|
+
if (_valid0) {
|
|
672
|
+
valid0 = true;
|
|
673
|
+
passing0 = 0;
|
|
674
|
+
}
|
|
675
|
+
const _errs5 = errors;
|
|
676
|
+
if (Array.isArray(data)) {
|
|
677
|
+
const len0 = data.length;
|
|
678
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
679
|
+
if (!(validate64(data[i0], {
|
|
680
|
+
instancePath: instancePath + "/" + i0,
|
|
681
|
+
parentData: data,
|
|
682
|
+
parentDataProperty: i0,
|
|
683
|
+
rootData
|
|
684
|
+
}))) {
|
|
685
|
+
vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
|
|
686
|
+
errors = vErrors.length;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
else {
|
|
691
|
+
const err2 = {
|
|
692
|
+
instancePath,
|
|
693
|
+
schemaPath: "#/oneOf/1/type",
|
|
694
|
+
keyword: "type",
|
|
695
|
+
params: {
|
|
696
|
+
type: "array"
|
|
697
|
+
},
|
|
698
|
+
message: "must be array"
|
|
699
|
+
};
|
|
700
|
+
if (vErrors === null) {
|
|
701
|
+
vErrors = [err2];
|
|
702
|
+
}
|
|
703
|
+
else {
|
|
704
|
+
vErrors.push(err2);
|
|
705
|
+
}
|
|
706
|
+
errors++;
|
|
707
|
+
}
|
|
708
|
+
var _valid0 = _errs5 === errors;
|
|
709
|
+
if (_valid0 && valid0) {
|
|
710
|
+
valid0 = false;
|
|
711
|
+
passing0 = [passing0, 1];
|
|
712
|
+
}
|
|
713
|
+
else {
|
|
714
|
+
if (_valid0) {
|
|
715
|
+
valid0 = true;
|
|
716
|
+
passing0 = 1;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
if (!valid0) {
|
|
720
|
+
const err3 = {
|
|
721
|
+
instancePath,
|
|
722
|
+
schemaPath: "#/oneOf",
|
|
723
|
+
keyword: "oneOf",
|
|
724
|
+
params: {
|
|
725
|
+
passingSchemas: passing0
|
|
726
|
+
},
|
|
727
|
+
message: "must match exactly one schema in oneOf"
|
|
728
|
+
};
|
|
729
|
+
if (vErrors === null) {
|
|
730
|
+
vErrors = [err3];
|
|
731
|
+
}
|
|
732
|
+
else {
|
|
733
|
+
vErrors.push(err3);
|
|
734
|
+
}
|
|
735
|
+
errors++;
|
|
736
|
+
}
|
|
737
|
+
else {
|
|
738
|
+
errors = _errs0;
|
|
739
|
+
if (vErrors !== null) {
|
|
740
|
+
if (_errs0) {
|
|
741
|
+
vErrors.length = _errs0;
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
vErrors = null;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}
|
|
600
748
|
validate63.errors = vErrors;
|
|
601
749
|
return errors === 0;
|
|
602
750
|
}
|
|
603
|
-
function
|
|
751
|
+
function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
604
752
|
let vErrors = null;
|
|
605
753
|
let errors = 0;
|
|
606
754
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -644,7 +792,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
644
792
|
}
|
|
645
793
|
errors++;
|
|
646
794
|
}
|
|
647
|
-
if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
|
|
795
|
+
if (!((((data0 === "left") || (data0 === "right")) || (data0 === "center")) || (data0 === "justify"))) {
|
|
648
796
|
const err2 = {
|
|
649
797
|
instancePath: instancePath + "/alignment",
|
|
650
798
|
schemaPath: "#/properties/alignment/enum",
|
|
@@ -664,29 +812,19 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
664
812
|
}
|
|
665
813
|
}
|
|
666
814
|
if (data.width !== undefined) {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
},
|
|
676
|
-
message: "must be number"
|
|
677
|
-
};
|
|
678
|
-
if (vErrors === null) {
|
|
679
|
-
vErrors = [err3];
|
|
680
|
-
}
|
|
681
|
-
else {
|
|
682
|
-
vErrors.push(err3);
|
|
683
|
-
}
|
|
684
|
-
errors++;
|
|
815
|
+
if (!(validate65(data.width, {
|
|
816
|
+
instancePath: instancePath + "/width",
|
|
817
|
+
parentData: data,
|
|
818
|
+
parentDataProperty: "width",
|
|
819
|
+
rootData
|
|
820
|
+
}))) {
|
|
821
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
822
|
+
errors = vErrors.length;
|
|
685
823
|
}
|
|
686
824
|
}
|
|
687
825
|
if (data.wrapWord !== undefined) {
|
|
688
826
|
if (typeof data.wrapWord !== "boolean") {
|
|
689
|
-
const
|
|
827
|
+
const err3 = {
|
|
690
828
|
instancePath: instancePath + "/wrapWord",
|
|
691
829
|
schemaPath: "#/properties/wrapWord/type",
|
|
692
830
|
keyword: "type",
|
|
@@ -696,10 +834,10 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
696
834
|
message: "must be boolean"
|
|
697
835
|
};
|
|
698
836
|
if (vErrors === null) {
|
|
699
|
-
vErrors = [
|
|
837
|
+
vErrors = [err3];
|
|
700
838
|
}
|
|
701
839
|
else {
|
|
702
|
-
vErrors.push(
|
|
840
|
+
vErrors.push(err3);
|
|
703
841
|
}
|
|
704
842
|
errors++;
|
|
705
843
|
}
|
|
@@ -707,7 +845,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
707
845
|
if (data.truncate !== undefined) {
|
|
708
846
|
let data3 = data.truncate;
|
|
709
847
|
if (!((typeof data3 == "number") && (isFinite(data3)))) {
|
|
710
|
-
const
|
|
848
|
+
const err4 = {
|
|
711
849
|
instancePath: instancePath + "/truncate",
|
|
712
850
|
schemaPath: "#/properties/truncate/type",
|
|
713
851
|
keyword: "type",
|
|
@@ -717,10 +855,10 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
717
855
|
message: "must be number"
|
|
718
856
|
};
|
|
719
857
|
if (vErrors === null) {
|
|
720
|
-
vErrors = [
|
|
858
|
+
vErrors = [err4];
|
|
721
859
|
}
|
|
722
860
|
else {
|
|
723
|
-
vErrors.push(
|
|
861
|
+
vErrors.push(err4);
|
|
724
862
|
}
|
|
725
863
|
errors++;
|
|
726
864
|
}
|
|
@@ -728,7 +866,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
728
866
|
if (data.paddingLeft !== undefined) {
|
|
729
867
|
let data4 = data.paddingLeft;
|
|
730
868
|
if (!((typeof data4 == "number") && (isFinite(data4)))) {
|
|
731
|
-
const
|
|
869
|
+
const err5 = {
|
|
732
870
|
instancePath: instancePath + "/paddingLeft",
|
|
733
871
|
schemaPath: "#/properties/paddingLeft/type",
|
|
734
872
|
keyword: "type",
|
|
@@ -738,10 +876,10 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
738
876
|
message: "must be number"
|
|
739
877
|
};
|
|
740
878
|
if (vErrors === null) {
|
|
741
|
-
vErrors = [
|
|
879
|
+
vErrors = [err5];
|
|
742
880
|
}
|
|
743
881
|
else {
|
|
744
|
-
vErrors.push(
|
|
882
|
+
vErrors.push(err5);
|
|
745
883
|
}
|
|
746
884
|
errors++;
|
|
747
885
|
}
|
|
@@ -749,7 +887,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
749
887
|
if (data.paddingRight !== undefined) {
|
|
750
888
|
let data5 = data.paddingRight;
|
|
751
889
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
752
|
-
const
|
|
890
|
+
const err6 = {
|
|
753
891
|
instancePath: instancePath + "/paddingRight",
|
|
754
892
|
schemaPath: "#/properties/paddingRight/type",
|
|
755
893
|
keyword: "type",
|
|
@@ -759,17 +897,17 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
759
897
|
message: "must be number"
|
|
760
898
|
};
|
|
761
899
|
if (vErrors === null) {
|
|
762
|
-
vErrors = [
|
|
900
|
+
vErrors = [err6];
|
|
763
901
|
}
|
|
764
902
|
else {
|
|
765
|
-
vErrors.push(
|
|
903
|
+
vErrors.push(err6);
|
|
766
904
|
}
|
|
767
905
|
errors++;
|
|
768
906
|
}
|
|
769
907
|
}
|
|
770
908
|
}
|
|
771
909
|
else {
|
|
772
|
-
const
|
|
910
|
+
const err7 = {
|
|
773
911
|
instancePath,
|
|
774
912
|
schemaPath: "#/type",
|
|
775
913
|
keyword: "type",
|
|
@@ -779,14 +917,14 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
779
917
|
message: "must be object"
|
|
780
918
|
};
|
|
781
919
|
if (vErrors === null) {
|
|
782
|
-
vErrors = [
|
|
920
|
+
vErrors = [err7];
|
|
783
921
|
}
|
|
784
922
|
else {
|
|
785
|
-
vErrors.push(
|
|
923
|
+
vErrors.push(err7);
|
|
786
924
|
}
|
|
787
925
|
errors++;
|
|
788
926
|
}
|
|
789
|
-
|
|
927
|
+
validate70.errors = vErrors;
|
|
790
928
|
return errors === 0;
|
|
791
929
|
}
|
|
792
930
|
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
@@ -837,13 +975,13 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
837
975
|
}
|
|
838
976
|
}
|
|
839
977
|
if (data.columnDefault !== undefined) {
|
|
840
|
-
if (!(
|
|
978
|
+
if (!(validate70(data.columnDefault, {
|
|
841
979
|
instancePath: instancePath + "/columnDefault",
|
|
842
980
|
parentData: data,
|
|
843
981
|
parentDataProperty: "columnDefault",
|
|
844
982
|
rootData
|
|
845
983
|
}))) {
|
|
846
|
-
vErrors = vErrors === null ?
|
|
984
|
+
vErrors = vErrors === null ? validate70.errors : vErrors.concat(validate70.errors);
|
|
847
985
|
errors = vErrors.length;
|
|
848
986
|
}
|
|
849
987
|
}
|
|
@@ -923,8 +1061,8 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
923
1061
|
validate43.errors = vErrors;
|
|
924
1062
|
return errors === 0;
|
|
925
1063
|
}
|
|
926
|
-
exports["streamConfig.json"] =
|
|
927
|
-
const
|
|
1064
|
+
exports["streamConfig.json"] = validate73;
|
|
1065
|
+
const schema21 = {
|
|
928
1066
|
"$id": "streamConfig.json",
|
|
929
1067
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
930
1068
|
"type": "object",
|
|
@@ -939,15 +1077,16 @@ const schema20 = {
|
|
|
939
1077
|
"$ref": "shared.json#/definitions/column"
|
|
940
1078
|
},
|
|
941
1079
|
"columnCount": {
|
|
942
|
-
"
|
|
1080
|
+
"$ref": "shared.json#/definitions/naturalNumber"
|
|
943
1081
|
},
|
|
944
1082
|
"drawVerticalLine": {
|
|
945
1083
|
"typeof": "function"
|
|
946
1084
|
}
|
|
947
1085
|
},
|
|
1086
|
+
"required": ["columnDefault", "columnCount"],
|
|
948
1087
|
"additionalProperties": false
|
|
949
1088
|
};
|
|
950
|
-
function
|
|
1089
|
+
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
951
1090
|
let vErrors = null;
|
|
952
1091
|
let errors = 0;
|
|
953
1092
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1155,18 +1294,22 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1155
1294
|
}
|
|
1156
1295
|
errors++;
|
|
1157
1296
|
}
|
|
1158
|
-
|
|
1297
|
+
validate74.errors = vErrors;
|
|
1159
1298
|
return errors === 0;
|
|
1160
1299
|
}
|
|
1161
|
-
function
|
|
1300
|
+
function validate91(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1162
1301
|
let vErrors = null;
|
|
1163
1302
|
let errors = 0;
|
|
1303
|
+
const _errs0 = errors;
|
|
1304
|
+
let valid0 = false;
|
|
1305
|
+
let passing0 = null;
|
|
1306
|
+
const _errs1 = errors;
|
|
1164
1307
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1165
1308
|
for (const key0 in data) {
|
|
1166
1309
|
if (!(pattern0.test(key0))) {
|
|
1167
1310
|
const err0 = {
|
|
1168
1311
|
instancePath,
|
|
1169
|
-
schemaPath: "#/additionalProperties",
|
|
1312
|
+
schemaPath: "#/oneOf/0/additionalProperties",
|
|
1170
1313
|
keyword: "additionalProperties",
|
|
1171
1314
|
params: {
|
|
1172
1315
|
additionalProperty: key0
|
|
@@ -1199,7 +1342,7 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1199
1342
|
else {
|
|
1200
1343
|
const err1 = {
|
|
1201
1344
|
instancePath,
|
|
1202
|
-
schemaPath: "#/type",
|
|
1345
|
+
schemaPath: "#/oneOf/0/type",
|
|
1203
1346
|
keyword: "type",
|
|
1204
1347
|
params: {
|
|
1205
1348
|
type: "object"
|
|
@@ -1214,10 +1357,88 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1214
1357
|
}
|
|
1215
1358
|
errors++;
|
|
1216
1359
|
}
|
|
1217
|
-
|
|
1360
|
+
var _valid0 = _errs1 === errors;
|
|
1361
|
+
if (_valid0) {
|
|
1362
|
+
valid0 = true;
|
|
1363
|
+
passing0 = 0;
|
|
1364
|
+
}
|
|
1365
|
+
const _errs5 = errors;
|
|
1366
|
+
if (Array.isArray(data)) {
|
|
1367
|
+
const len0 = data.length;
|
|
1368
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
1369
|
+
if (!(validate64(data[i0], {
|
|
1370
|
+
instancePath: instancePath + "/" + i0,
|
|
1371
|
+
parentData: data,
|
|
1372
|
+
parentDataProperty: i0,
|
|
1373
|
+
rootData
|
|
1374
|
+
}))) {
|
|
1375
|
+
vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
|
|
1376
|
+
errors = vErrors.length;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
else {
|
|
1381
|
+
const err2 = {
|
|
1382
|
+
instancePath,
|
|
1383
|
+
schemaPath: "#/oneOf/1/type",
|
|
1384
|
+
keyword: "type",
|
|
1385
|
+
params: {
|
|
1386
|
+
type: "array"
|
|
1387
|
+
},
|
|
1388
|
+
message: "must be array"
|
|
1389
|
+
};
|
|
1390
|
+
if (vErrors === null) {
|
|
1391
|
+
vErrors = [err2];
|
|
1392
|
+
}
|
|
1393
|
+
else {
|
|
1394
|
+
vErrors.push(err2);
|
|
1395
|
+
}
|
|
1396
|
+
errors++;
|
|
1397
|
+
}
|
|
1398
|
+
var _valid0 = _errs5 === errors;
|
|
1399
|
+
if (_valid0 && valid0) {
|
|
1400
|
+
valid0 = false;
|
|
1401
|
+
passing0 = [passing0, 1];
|
|
1402
|
+
}
|
|
1403
|
+
else {
|
|
1404
|
+
if (_valid0) {
|
|
1405
|
+
valid0 = true;
|
|
1406
|
+
passing0 = 1;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
if (!valid0) {
|
|
1410
|
+
const err3 = {
|
|
1411
|
+
instancePath,
|
|
1412
|
+
schemaPath: "#/oneOf",
|
|
1413
|
+
keyword: "oneOf",
|
|
1414
|
+
params: {
|
|
1415
|
+
passingSchemas: passing0
|
|
1416
|
+
},
|
|
1417
|
+
message: "must match exactly one schema in oneOf"
|
|
1418
|
+
};
|
|
1419
|
+
if (vErrors === null) {
|
|
1420
|
+
vErrors = [err3];
|
|
1421
|
+
}
|
|
1422
|
+
else {
|
|
1423
|
+
vErrors.push(err3);
|
|
1424
|
+
}
|
|
1425
|
+
errors++;
|
|
1426
|
+
}
|
|
1427
|
+
else {
|
|
1428
|
+
errors = _errs0;
|
|
1429
|
+
if (vErrors !== null) {
|
|
1430
|
+
if (_errs0) {
|
|
1431
|
+
vErrors.length = _errs0;
|
|
1432
|
+
}
|
|
1433
|
+
else {
|
|
1434
|
+
vErrors = null;
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
validate91.errors = vErrors;
|
|
1218
1439
|
return errors === 0;
|
|
1219
1440
|
}
|
|
1220
|
-
function
|
|
1441
|
+
function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1221
1442
|
let vErrors = null;
|
|
1222
1443
|
let errors = 0;
|
|
1223
1444
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1261,7 +1482,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1261
1482
|
}
|
|
1262
1483
|
errors++;
|
|
1263
1484
|
}
|
|
1264
|
-
if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
|
|
1485
|
+
if (!((((data0 === "left") || (data0 === "right")) || (data0 === "center")) || (data0 === "justify"))) {
|
|
1265
1486
|
const err2 = {
|
|
1266
1487
|
instancePath: instancePath + "/alignment",
|
|
1267
1488
|
schemaPath: "#/properties/alignment/enum",
|
|
@@ -1281,29 +1502,19 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1281
1502
|
}
|
|
1282
1503
|
}
|
|
1283
1504
|
if (data.width !== undefined) {
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
},
|
|
1293
|
-
message: "must be number"
|
|
1294
|
-
};
|
|
1295
|
-
if (vErrors === null) {
|
|
1296
|
-
vErrors = [err3];
|
|
1297
|
-
}
|
|
1298
|
-
else {
|
|
1299
|
-
vErrors.push(err3);
|
|
1300
|
-
}
|
|
1301
|
-
errors++;
|
|
1505
|
+
if (!(validate65(data.width, {
|
|
1506
|
+
instancePath: instancePath + "/width",
|
|
1507
|
+
parentData: data,
|
|
1508
|
+
parentDataProperty: "width",
|
|
1509
|
+
rootData
|
|
1510
|
+
}))) {
|
|
1511
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
1512
|
+
errors = vErrors.length;
|
|
1302
1513
|
}
|
|
1303
1514
|
}
|
|
1304
1515
|
if (data.wrapWord !== undefined) {
|
|
1305
1516
|
if (typeof data.wrapWord !== "boolean") {
|
|
1306
|
-
const
|
|
1517
|
+
const err3 = {
|
|
1307
1518
|
instancePath: instancePath + "/wrapWord",
|
|
1308
1519
|
schemaPath: "#/properties/wrapWord/type",
|
|
1309
1520
|
keyword: "type",
|
|
@@ -1313,10 +1524,10 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1313
1524
|
message: "must be boolean"
|
|
1314
1525
|
};
|
|
1315
1526
|
if (vErrors === null) {
|
|
1316
|
-
vErrors = [
|
|
1527
|
+
vErrors = [err3];
|
|
1317
1528
|
}
|
|
1318
1529
|
else {
|
|
1319
|
-
vErrors.push(
|
|
1530
|
+
vErrors.push(err3);
|
|
1320
1531
|
}
|
|
1321
1532
|
errors++;
|
|
1322
1533
|
}
|
|
@@ -1324,7 +1535,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1324
1535
|
if (data.truncate !== undefined) {
|
|
1325
1536
|
let data3 = data.truncate;
|
|
1326
1537
|
if (!((typeof data3 == "number") && (isFinite(data3)))) {
|
|
1327
|
-
const
|
|
1538
|
+
const err4 = {
|
|
1328
1539
|
instancePath: instancePath + "/truncate",
|
|
1329
1540
|
schemaPath: "#/properties/truncate/type",
|
|
1330
1541
|
keyword: "type",
|
|
@@ -1334,10 +1545,10 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1334
1545
|
message: "must be number"
|
|
1335
1546
|
};
|
|
1336
1547
|
if (vErrors === null) {
|
|
1337
|
-
vErrors = [
|
|
1548
|
+
vErrors = [err4];
|
|
1338
1549
|
}
|
|
1339
1550
|
else {
|
|
1340
|
-
vErrors.push(
|
|
1551
|
+
vErrors.push(err4);
|
|
1341
1552
|
}
|
|
1342
1553
|
errors++;
|
|
1343
1554
|
}
|
|
@@ -1345,7 +1556,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1345
1556
|
if (data.paddingLeft !== undefined) {
|
|
1346
1557
|
let data4 = data.paddingLeft;
|
|
1347
1558
|
if (!((typeof data4 == "number") && (isFinite(data4)))) {
|
|
1348
|
-
const
|
|
1559
|
+
const err5 = {
|
|
1349
1560
|
instancePath: instancePath + "/paddingLeft",
|
|
1350
1561
|
schemaPath: "#/properties/paddingLeft/type",
|
|
1351
1562
|
keyword: "type",
|
|
@@ -1355,10 +1566,10 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1355
1566
|
message: "must be number"
|
|
1356
1567
|
};
|
|
1357
1568
|
if (vErrors === null) {
|
|
1358
|
-
vErrors = [
|
|
1569
|
+
vErrors = [err5];
|
|
1359
1570
|
}
|
|
1360
1571
|
else {
|
|
1361
|
-
vErrors.push(
|
|
1572
|
+
vErrors.push(err5);
|
|
1362
1573
|
}
|
|
1363
1574
|
errors++;
|
|
1364
1575
|
}
|
|
@@ -1366,7 +1577,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1366
1577
|
if (data.paddingRight !== undefined) {
|
|
1367
1578
|
let data5 = data.paddingRight;
|
|
1368
1579
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
1369
|
-
const
|
|
1580
|
+
const err6 = {
|
|
1370
1581
|
instancePath: instancePath + "/paddingRight",
|
|
1371
1582
|
schemaPath: "#/properties/paddingRight/type",
|
|
1372
1583
|
keyword: "type",
|
|
@@ -1376,17 +1587,17 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1376
1587
|
message: "must be number"
|
|
1377
1588
|
};
|
|
1378
1589
|
if (vErrors === null) {
|
|
1379
|
-
vErrors = [
|
|
1590
|
+
vErrors = [err6];
|
|
1380
1591
|
}
|
|
1381
1592
|
else {
|
|
1382
|
-
vErrors.push(
|
|
1593
|
+
vErrors.push(err6);
|
|
1383
1594
|
}
|
|
1384
1595
|
errors++;
|
|
1385
1596
|
}
|
|
1386
1597
|
}
|
|
1387
1598
|
}
|
|
1388
1599
|
else {
|
|
1389
|
-
const
|
|
1600
|
+
const err7 = {
|
|
1390
1601
|
instancePath,
|
|
1391
1602
|
schemaPath: "#/type",
|
|
1392
1603
|
keyword: "type",
|
|
@@ -1396,24 +1607,124 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1396
1607
|
message: "must be object"
|
|
1397
1608
|
};
|
|
1398
1609
|
if (vErrors === null) {
|
|
1399
|
-
vErrors = [
|
|
1610
|
+
vErrors = [err7];
|
|
1400
1611
|
}
|
|
1401
1612
|
else {
|
|
1402
|
-
vErrors.push(
|
|
1613
|
+
vErrors.push(err7);
|
|
1403
1614
|
}
|
|
1404
1615
|
errors++;
|
|
1405
1616
|
}
|
|
1406
|
-
|
|
1617
|
+
validate95.errors = vErrors;
|
|
1407
1618
|
return errors === 0;
|
|
1408
1619
|
}
|
|
1409
|
-
function
|
|
1620
|
+
function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1621
|
+
let vErrors = null;
|
|
1622
|
+
let errors = 0;
|
|
1623
|
+
if ((typeof data == "number") && (isFinite(data))) {
|
|
1624
|
+
if (data < 1 || isNaN(data)) {
|
|
1625
|
+
const err0 = {
|
|
1626
|
+
instancePath,
|
|
1627
|
+
schemaPath: "#/minimum",
|
|
1628
|
+
keyword: "minimum",
|
|
1629
|
+
params: {
|
|
1630
|
+
comparison: ">=",
|
|
1631
|
+
limit: 1
|
|
1632
|
+
},
|
|
1633
|
+
message: "must be >= 1"
|
|
1634
|
+
};
|
|
1635
|
+
if (vErrors === null) {
|
|
1636
|
+
vErrors = [err0];
|
|
1637
|
+
}
|
|
1638
|
+
else {
|
|
1639
|
+
vErrors.push(err0);
|
|
1640
|
+
}
|
|
1641
|
+
errors++;
|
|
1642
|
+
}
|
|
1643
|
+
let res0;
|
|
1644
|
+
if ((1 === 0 || (res0 = data / 1, res0 !== parseInt(res0)))) {
|
|
1645
|
+
const err1 = {
|
|
1646
|
+
instancePath,
|
|
1647
|
+
schemaPath: "#/multipleOf",
|
|
1648
|
+
keyword: "multipleOf",
|
|
1649
|
+
params: {
|
|
1650
|
+
multipleOf: 1
|
|
1651
|
+
},
|
|
1652
|
+
message: "must be multiple of 1"
|
|
1653
|
+
};
|
|
1654
|
+
if (vErrors === null) {
|
|
1655
|
+
vErrors = [err1];
|
|
1656
|
+
}
|
|
1657
|
+
else {
|
|
1658
|
+
vErrors.push(err1);
|
|
1659
|
+
}
|
|
1660
|
+
errors++;
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
else {
|
|
1664
|
+
const err2 = {
|
|
1665
|
+
instancePath,
|
|
1666
|
+
schemaPath: "#/type",
|
|
1667
|
+
keyword: "type",
|
|
1668
|
+
params: {
|
|
1669
|
+
type: "number"
|
|
1670
|
+
},
|
|
1671
|
+
message: "must be number"
|
|
1672
|
+
};
|
|
1673
|
+
if (vErrors === null) {
|
|
1674
|
+
vErrors = [err2];
|
|
1675
|
+
}
|
|
1676
|
+
else {
|
|
1677
|
+
vErrors.push(err2);
|
|
1678
|
+
}
|
|
1679
|
+
errors++;
|
|
1680
|
+
}
|
|
1681
|
+
validate98.errors = vErrors;
|
|
1682
|
+
return errors === 0;
|
|
1683
|
+
}
|
|
1684
|
+
function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1410
1685
|
/*# sourceURL="streamConfig.json" */ ;
|
|
1411
1686
|
let vErrors = null;
|
|
1412
1687
|
let errors = 0;
|
|
1413
1688
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1689
|
+
if (data.columnDefault === undefined) {
|
|
1690
|
+
const err0 = {
|
|
1691
|
+
instancePath,
|
|
1692
|
+
schemaPath: "#/required",
|
|
1693
|
+
keyword: "required",
|
|
1694
|
+
params: {
|
|
1695
|
+
missingProperty: "columnDefault"
|
|
1696
|
+
},
|
|
1697
|
+
message: "must have required property '" + "columnDefault" + "'"
|
|
1698
|
+
};
|
|
1699
|
+
if (vErrors === null) {
|
|
1700
|
+
vErrors = [err0];
|
|
1701
|
+
}
|
|
1702
|
+
else {
|
|
1703
|
+
vErrors.push(err0);
|
|
1704
|
+
}
|
|
1705
|
+
errors++;
|
|
1706
|
+
}
|
|
1707
|
+
if (data.columnCount === undefined) {
|
|
1708
|
+
const err1 = {
|
|
1709
|
+
instancePath,
|
|
1710
|
+
schemaPath: "#/required",
|
|
1711
|
+
keyword: "required",
|
|
1712
|
+
params: {
|
|
1713
|
+
missingProperty: "columnCount"
|
|
1714
|
+
},
|
|
1715
|
+
message: "must have required property '" + "columnCount" + "'"
|
|
1716
|
+
};
|
|
1717
|
+
if (vErrors === null) {
|
|
1718
|
+
vErrors = [err1];
|
|
1719
|
+
}
|
|
1720
|
+
else {
|
|
1721
|
+
vErrors.push(err1);
|
|
1722
|
+
}
|
|
1723
|
+
errors++;
|
|
1724
|
+
}
|
|
1414
1725
|
for (const key0 in data) {
|
|
1415
1726
|
if (!(((((key0 === "border") || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "columnCount")) || (key0 === "drawVerticalLine"))) {
|
|
1416
|
-
const
|
|
1727
|
+
const err2 = {
|
|
1417
1728
|
instancePath,
|
|
1418
1729
|
schemaPath: "#/additionalProperties",
|
|
1419
1730
|
keyword: "additionalProperties",
|
|
@@ -1423,71 +1734,61 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1423
1734
|
message: "must NOT have additional properties"
|
|
1424
1735
|
};
|
|
1425
1736
|
if (vErrors === null) {
|
|
1426
|
-
vErrors = [
|
|
1737
|
+
vErrors = [err2];
|
|
1427
1738
|
}
|
|
1428
1739
|
else {
|
|
1429
|
-
vErrors.push(
|
|
1740
|
+
vErrors.push(err2);
|
|
1430
1741
|
}
|
|
1431
1742
|
errors++;
|
|
1432
1743
|
}
|
|
1433
1744
|
}
|
|
1434
1745
|
if (data.border !== undefined) {
|
|
1435
|
-
if (!(
|
|
1746
|
+
if (!(validate74(data.border, {
|
|
1436
1747
|
instancePath: instancePath + "/border",
|
|
1437
1748
|
parentData: data,
|
|
1438
1749
|
parentDataProperty: "border",
|
|
1439
1750
|
rootData
|
|
1440
1751
|
}))) {
|
|
1441
|
-
vErrors = vErrors === null ?
|
|
1752
|
+
vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
|
|
1442
1753
|
errors = vErrors.length;
|
|
1443
1754
|
}
|
|
1444
1755
|
}
|
|
1445
1756
|
if (data.columns !== undefined) {
|
|
1446
|
-
if (!(
|
|
1757
|
+
if (!(validate91(data.columns, {
|
|
1447
1758
|
instancePath: instancePath + "/columns",
|
|
1448
1759
|
parentData: data,
|
|
1449
1760
|
parentDataProperty: "columns",
|
|
1450
1761
|
rootData
|
|
1451
1762
|
}))) {
|
|
1452
|
-
vErrors = vErrors === null ?
|
|
1763
|
+
vErrors = vErrors === null ? validate91.errors : vErrors.concat(validate91.errors);
|
|
1453
1764
|
errors = vErrors.length;
|
|
1454
1765
|
}
|
|
1455
1766
|
}
|
|
1456
1767
|
if (data.columnDefault !== undefined) {
|
|
1457
|
-
if (!(
|
|
1768
|
+
if (!(validate95(data.columnDefault, {
|
|
1458
1769
|
instancePath: instancePath + "/columnDefault",
|
|
1459
1770
|
parentData: data,
|
|
1460
1771
|
parentDataProperty: "columnDefault",
|
|
1461
1772
|
rootData
|
|
1462
1773
|
}))) {
|
|
1463
|
-
vErrors = vErrors === null ?
|
|
1774
|
+
vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);
|
|
1464
1775
|
errors = vErrors.length;
|
|
1465
1776
|
}
|
|
1466
1777
|
}
|
|
1467
1778
|
if (data.columnCount !== undefined) {
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
},
|
|
1477
|
-
message: "must be number"
|
|
1478
|
-
};
|
|
1479
|
-
if (vErrors === null) {
|
|
1480
|
-
vErrors = [err1];
|
|
1481
|
-
}
|
|
1482
|
-
else {
|
|
1483
|
-
vErrors.push(err1);
|
|
1484
|
-
}
|
|
1485
|
-
errors++;
|
|
1779
|
+
if (!(validate98(data.columnCount, {
|
|
1780
|
+
instancePath: instancePath + "/columnCount",
|
|
1781
|
+
parentData: data,
|
|
1782
|
+
parentDataProperty: "columnCount",
|
|
1783
|
+
rootData
|
|
1784
|
+
}))) {
|
|
1785
|
+
vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors);
|
|
1786
|
+
errors = vErrors.length;
|
|
1486
1787
|
}
|
|
1487
1788
|
}
|
|
1488
1789
|
if (data.drawVerticalLine !== undefined) {
|
|
1489
1790
|
if (typeof data.drawVerticalLine != "function") {
|
|
1490
|
-
const
|
|
1791
|
+
const err3 = {
|
|
1491
1792
|
instancePath: instancePath + "/drawVerticalLine",
|
|
1492
1793
|
schemaPath: "#/properties/drawVerticalLine/typeof",
|
|
1493
1794
|
keyword: "typeof",
|
|
@@ -1495,17 +1796,17 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1495
1796
|
message: "should pass \"typeof\" keyword validation"
|
|
1496
1797
|
};
|
|
1497
1798
|
if (vErrors === null) {
|
|
1498
|
-
vErrors = [
|
|
1799
|
+
vErrors = [err3];
|
|
1499
1800
|
}
|
|
1500
1801
|
else {
|
|
1501
|
-
vErrors.push(
|
|
1802
|
+
vErrors.push(err3);
|
|
1502
1803
|
}
|
|
1503
1804
|
errors++;
|
|
1504
1805
|
}
|
|
1505
1806
|
}
|
|
1506
1807
|
}
|
|
1507
1808
|
else {
|
|
1508
|
-
const
|
|
1809
|
+
const err4 = {
|
|
1509
1810
|
instancePath,
|
|
1510
1811
|
schemaPath: "#/type",
|
|
1511
1812
|
keyword: "type",
|
|
@@ -1515,13 +1816,13 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1515
1816
|
message: "must be object"
|
|
1516
1817
|
};
|
|
1517
1818
|
if (vErrors === null) {
|
|
1518
|
-
vErrors = [
|
|
1819
|
+
vErrors = [err4];
|
|
1519
1820
|
}
|
|
1520
1821
|
else {
|
|
1521
|
-
vErrors.push(
|
|
1822
|
+
vErrors.push(err4);
|
|
1522
1823
|
}
|
|
1523
1824
|
errors++;
|
|
1524
1825
|
}
|
|
1525
|
-
|
|
1826
|
+
validate73.errors = vErrors;
|
|
1526
1827
|
return errors === 0;
|
|
1527
1828
|
}
|