@hmcts/ccd-case-ui-toolkit 7.4.15-accessibility-issue → 7.4.15-accessibility-fixes
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.
|
@@ -4959,7 +4959,7 @@ class FieldsUtils {
|
|
|
4959
4959
|
|
|
4960
4960
|
// @ts-nocheck
|
|
4961
4961
|
// This file is generated by npm run generate:condition-parser. Do not edit by hand.
|
|
4962
|
-
// @generated by Peggy 5.1.
|
|
4962
|
+
// @generated by Peggy 5.1.1.
|
|
4963
4963
|
//
|
|
4964
4964
|
// https://peggyjs.org/
|
|
4965
4965
|
class peg$SyntaxError extends SyntaxError {
|
|
@@ -5014,10 +5014,9 @@ class peg$SyntaxError extends SyntaxError {
|
|
|
5014
5014
|
}
|
|
5015
5015
|
return s;
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5017
|
+
function escape(s, special) {
|
|
5018
5018
|
return unicodeEscape(s
|
|
5019
|
-
.replace(
|
|
5020
|
-
.replace(/"/g, "\\\"")
|
|
5019
|
+
.replace(special, "\\$&")
|
|
5021
5020
|
.replace(/\0/g, "\\0")
|
|
5022
5021
|
.replace(/\t/g, "\\t")
|
|
5023
5022
|
.replace(/\n/g, "\\n")
|
|
@@ -5025,18 +5024,11 @@ class peg$SyntaxError extends SyntaxError {
|
|
|
5025
5024
|
.replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
|
|
5026
5025
|
.replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
|
|
5027
5026
|
}
|
|
5027
|
+
function literalEscape(s) {
|
|
5028
|
+
return escape(s, /[\\"]/g);
|
|
5029
|
+
}
|
|
5028
5030
|
function classEscape(s) {
|
|
5029
|
-
return
|
|
5030
|
-
.replace(/\\/g, "\\\\")
|
|
5031
|
-
.replace(/\]/g, "\\]")
|
|
5032
|
-
.replace(/\^/g, "\\^")
|
|
5033
|
-
.replace(/-/g, "\\-")
|
|
5034
|
-
.replace(/\0/g, "\\0")
|
|
5035
|
-
.replace(/\t/g, "\\t")
|
|
5036
|
-
.replace(/\n/g, "\\n")
|
|
5037
|
-
.replace(/\r/g, "\\r")
|
|
5038
|
-
.replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
|
|
5039
|
-
.replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
|
|
5031
|
+
return escape(s, /[\\\]^-]/g);
|
|
5040
5032
|
}
|
|
5041
5033
|
const DESCRIBE_EXPECTATION_FNS = {
|
|
5042
5034
|
literal(expectation) {
|
|
@@ -5109,11 +5101,6 @@ function peg$parse(input, options) {
|
|
|
5109
5101
|
const peg$c7 = "=";
|
|
5110
5102
|
const peg$c8 = "!=";
|
|
5111
5103
|
const peg$c9 = "CONTAINS";
|
|
5112
|
-
const peg$r0 = /^[a-zA-Z]/;
|
|
5113
|
-
const peg$r1 = /^[A-Za-z0-9._\-]/;
|
|
5114
|
-
const peg$r2 = /^[0-9]/;
|
|
5115
|
-
const peg$r3 = /^[A-Za-z0-9.,* _&()\/\-]/;
|
|
5116
|
-
const peg$r4 = /^[ \t]/;
|
|
5117
5104
|
const peg$e0 = peg$literalExpectation("AND", false);
|
|
5118
5105
|
const peg$e1 = peg$literalExpectation("OR", false);
|
|
5119
5106
|
const peg$e2 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
|
|
@@ -5150,6 +5137,7 @@ function peg$parse(input, options) {
|
|
|
5150
5137
|
let peg$maxFailExpected = options.peg$maxFailExpected || [];
|
|
5151
5138
|
let peg$silentFails = options.peg$silentFails | 0;
|
|
5152
5139
|
let peg$result;
|
|
5140
|
+
let peg$charCode;
|
|
5153
5141
|
if (options.startRule) {
|
|
5154
5142
|
if (!(options.startRule in peg$startRuleFunctions)) {
|
|
5155
5143
|
throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
|
|
@@ -5288,10 +5276,12 @@ function peg$parse(input, options) {
|
|
|
5288
5276
|
s1 = peg$parseFormulaTerm();
|
|
5289
5277
|
if (s1 !== peg$FAILED) {
|
|
5290
5278
|
s2 = [];
|
|
5291
|
-
|
|
5292
|
-
while (s3 !== peg$FAILED) {
|
|
5293
|
-
s2.push(s3);
|
|
5279
|
+
for (;;) {
|
|
5294
5280
|
s3 = peg$parseJoinComparator();
|
|
5281
|
+
if (s3 === peg$FAILED) {
|
|
5282
|
+
break;
|
|
5283
|
+
}
|
|
5284
|
+
s2.push(s3);
|
|
5295
5285
|
}
|
|
5296
5286
|
peg$savedPos = s0;
|
|
5297
5287
|
s0 = peg$f0(s1, s2);
|
|
@@ -5459,14 +5449,14 @@ function peg$parse(input, options) {
|
|
|
5459
5449
|
let s0, s1, s2;
|
|
5460
5450
|
s0 = peg$currPos;
|
|
5461
5451
|
s1 = [];
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
s2 = peg$parseLetter();
|
|
5452
|
+
for (;;) {
|
|
5453
|
+
s2 = peg$parseLetter();
|
|
5454
|
+
if (s2 === peg$FAILED) {
|
|
5455
|
+
break;
|
|
5467
5456
|
}
|
|
5457
|
+
s1.push(s2);
|
|
5468
5458
|
}
|
|
5469
|
-
|
|
5459
|
+
if (s1.length < 1) {
|
|
5470
5460
|
s1 = peg$FAILED;
|
|
5471
5461
|
}
|
|
5472
5462
|
if (s1 !== peg$FAILED) {
|
|
@@ -5479,7 +5469,7 @@ function peg$parse(input, options) {
|
|
|
5479
5469
|
function peg$parseLetter() {
|
|
5480
5470
|
let s0;
|
|
5481
5471
|
s0 = input.charAt(peg$currPos);
|
|
5482
|
-
if (peg$
|
|
5472
|
+
if ((peg$charCode = s0.charCodeAt(0), (peg$charCode >= 97 && peg$charCode <= 122) || (peg$charCode >= 65 && peg$charCode <= 90))) {
|
|
5483
5473
|
peg$currPos++;
|
|
5484
5474
|
}
|
|
5485
5475
|
else {
|
|
@@ -5553,32 +5543,23 @@ function peg$parse(input, options) {
|
|
|
5553
5543
|
let s0, s1, s2;
|
|
5554
5544
|
s0 = peg$currPos;
|
|
5555
5545
|
s1 = [];
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
peg$
|
|
5559
|
-
|
|
5560
|
-
else {
|
|
5561
|
-
s2 = peg$FAILED;
|
|
5562
|
-
if (peg$silentFails === 0) {
|
|
5563
|
-
peg$fail(peg$e3);
|
|
5546
|
+
for (;;) {
|
|
5547
|
+
s2 = input.charAt(peg$currPos);
|
|
5548
|
+
if ((peg$charCode = s2.charCodeAt(0), (peg$charCode >= 65 && peg$charCode <= 90) || (peg$charCode >= 97 && peg$charCode <= 122) || (peg$charCode >= 48 && peg$charCode <= 57) || peg$charCode === 46 || peg$charCode === 95 || peg$charCode === 45)) {
|
|
5549
|
+
peg$currPos++;
|
|
5564
5550
|
}
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
s2 = input.charAt(peg$currPos);
|
|
5570
|
-
if (peg$r1.test(s2)) {
|
|
5571
|
-
peg$currPos++;
|
|
5572
|
-
}
|
|
5573
|
-
else {
|
|
5574
|
-
s2 = peg$FAILED;
|
|
5575
|
-
if (peg$silentFails === 0) {
|
|
5576
|
-
peg$fail(peg$e3);
|
|
5577
|
-
}
|
|
5551
|
+
else {
|
|
5552
|
+
s2 = peg$FAILED;
|
|
5553
|
+
if (peg$silentFails === 0) {
|
|
5554
|
+
peg$fail(peg$e3);
|
|
5578
5555
|
}
|
|
5579
5556
|
}
|
|
5557
|
+
if (s2 === peg$FAILED) {
|
|
5558
|
+
break;
|
|
5559
|
+
}
|
|
5560
|
+
s1.push(s2);
|
|
5580
5561
|
}
|
|
5581
|
-
|
|
5562
|
+
if (s1.length < 1) {
|
|
5582
5563
|
s1 = peg$FAILED;
|
|
5583
5564
|
}
|
|
5584
5565
|
if (s1 !== peg$FAILED) {
|
|
@@ -5619,32 +5600,23 @@ function peg$parse(input, options) {
|
|
|
5619
5600
|
function peg$parsenumber() {
|
|
5620
5601
|
let s0, s1;
|
|
5621
5602
|
s0 = [];
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
peg$
|
|
5625
|
-
|
|
5626
|
-
else {
|
|
5627
|
-
s1 = peg$FAILED;
|
|
5628
|
-
if (peg$silentFails === 0) {
|
|
5629
|
-
peg$fail(peg$e6);
|
|
5603
|
+
for (;;) {
|
|
5604
|
+
s1 = input.charAt(peg$currPos);
|
|
5605
|
+
if ((peg$charCode = s1.charCodeAt(0), (peg$charCode >= 48 && peg$charCode <= 57))) {
|
|
5606
|
+
peg$currPos++;
|
|
5630
5607
|
}
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
s1 = input.charAt(peg$currPos);
|
|
5636
|
-
if (peg$r2.test(s1)) {
|
|
5637
|
-
peg$currPos++;
|
|
5638
|
-
}
|
|
5639
|
-
else {
|
|
5640
|
-
s1 = peg$FAILED;
|
|
5641
|
-
if (peg$silentFails === 0) {
|
|
5642
|
-
peg$fail(peg$e6);
|
|
5643
|
-
}
|
|
5608
|
+
else {
|
|
5609
|
+
s1 = peg$FAILED;
|
|
5610
|
+
if (peg$silentFails === 0) {
|
|
5611
|
+
peg$fail(peg$e6);
|
|
5644
5612
|
}
|
|
5645
5613
|
}
|
|
5614
|
+
if (s1 === peg$FAILED) {
|
|
5615
|
+
break;
|
|
5616
|
+
}
|
|
5617
|
+
s0.push(s1);
|
|
5646
5618
|
}
|
|
5647
|
-
|
|
5619
|
+
if (s0.length < 1) {
|
|
5648
5620
|
s0 = peg$FAILED;
|
|
5649
5621
|
}
|
|
5650
5622
|
return s0;
|
|
@@ -5664,20 +5636,9 @@ function peg$parse(input, options) {
|
|
|
5664
5636
|
}
|
|
5665
5637
|
if (s1 !== peg$FAILED) {
|
|
5666
5638
|
s2 = [];
|
|
5667
|
-
|
|
5668
|
-
if (peg$r3.test(s3)) {
|
|
5669
|
-
peg$currPos++;
|
|
5670
|
-
}
|
|
5671
|
-
else {
|
|
5672
|
-
s3 = peg$FAILED;
|
|
5673
|
-
if (peg$silentFails === 0) {
|
|
5674
|
-
peg$fail(peg$e8);
|
|
5675
|
-
}
|
|
5676
|
-
}
|
|
5677
|
-
while (s3 !== peg$FAILED) {
|
|
5678
|
-
s2.push(s3);
|
|
5639
|
+
for (;;) {
|
|
5679
5640
|
s3 = input.charAt(peg$currPos);
|
|
5680
|
-
if (peg$
|
|
5641
|
+
if ((peg$charCode = s3.charCodeAt(0), (peg$charCode >= 65 && peg$charCode <= 90) || (peg$charCode >= 97 && peg$charCode <= 122) || (peg$charCode >= 48 && peg$charCode <= 57) || peg$charCode === 46 || peg$charCode === 44 || peg$charCode === 42 || peg$charCode === 32 || peg$charCode === 95 || peg$charCode === 38 || peg$charCode === 40 || peg$charCode === 41 || peg$charCode === 47 || peg$charCode === 45)) {
|
|
5681
5642
|
peg$currPos++;
|
|
5682
5643
|
}
|
|
5683
5644
|
else {
|
|
@@ -5686,6 +5647,10 @@ function peg$parse(input, options) {
|
|
|
5686
5647
|
peg$fail(peg$e8);
|
|
5687
5648
|
}
|
|
5688
5649
|
}
|
|
5650
|
+
if (s3 === peg$FAILED) {
|
|
5651
|
+
break;
|
|
5652
|
+
}
|
|
5653
|
+
s2.push(s3);
|
|
5689
5654
|
}
|
|
5690
5655
|
if (input.charCodeAt(peg$currPos) === 34) {
|
|
5691
5656
|
s3 = peg$c4;
|
|
@@ -5816,7 +5781,7 @@ function peg$parse(input, options) {
|
|
|
5816
5781
|
let s0, s1;
|
|
5817
5782
|
peg$silentFails++;
|
|
5818
5783
|
s0 = input.charAt(peg$currPos);
|
|
5819
|
-
if (peg$
|
|
5784
|
+
if ((peg$charCode = s0.charCodeAt(0), peg$charCode === 32 || peg$charCode === 9)) {
|
|
5820
5785
|
peg$currPos++;
|
|
5821
5786
|
}
|
|
5822
5787
|
else {
|
|
@@ -5838,14 +5803,14 @@ function peg$parse(input, options) {
|
|
|
5838
5803
|
let s0, s1;
|
|
5839
5804
|
peg$silentFails++;
|
|
5840
5805
|
s0 = [];
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
s1 = peg$parsews();
|
|
5806
|
+
for (;;) {
|
|
5807
|
+
s1 = peg$parsews();
|
|
5808
|
+
if (s1 === peg$FAILED) {
|
|
5809
|
+
break;
|
|
5846
5810
|
}
|
|
5811
|
+
s0.push(s1);
|
|
5847
5812
|
}
|
|
5848
|
-
|
|
5813
|
+
if (s0.length < 1) {
|
|
5849
5814
|
s0 = peg$FAILED;
|
|
5850
5815
|
}
|
|
5851
5816
|
peg$silentFails--;
|