@hmcts/ccd-case-ui-toolkit 7.4.15-accessibility-fixes → 7.4.15-default-focus
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.
|
@@ -4055,6 +4055,7 @@ class CaseTab {
|
|
|
4055
4055
|
order;
|
|
4056
4056
|
fields;
|
|
4057
4057
|
show_condition;
|
|
4058
|
+
defaultFocus;
|
|
4058
4059
|
}
|
|
4059
4060
|
__decorate([
|
|
4060
4061
|
Type(() => CaseField),
|
|
@@ -4959,7 +4960,7 @@ class FieldsUtils {
|
|
|
4959
4960
|
|
|
4960
4961
|
// @ts-nocheck
|
|
4961
4962
|
// This file is generated by npm run generate:condition-parser. Do not edit by hand.
|
|
4962
|
-
// @generated by Peggy 5.1.
|
|
4963
|
+
// @generated by Peggy 5.1.0.
|
|
4963
4964
|
//
|
|
4964
4965
|
// https://peggyjs.org/
|
|
4965
4966
|
class peg$SyntaxError extends SyntaxError {
|
|
@@ -5014,9 +5015,10 @@ class peg$SyntaxError extends SyntaxError {
|
|
|
5014
5015
|
}
|
|
5015
5016
|
return s;
|
|
5016
5017
|
}
|
|
5017
|
-
function
|
|
5018
|
+
function literalEscape(s) {
|
|
5018
5019
|
return unicodeEscape(s
|
|
5019
|
-
.replace(
|
|
5020
|
+
.replace(/\\/g, "\\\\")
|
|
5021
|
+
.replace(/"/g, "\\\"")
|
|
5020
5022
|
.replace(/\0/g, "\\0")
|
|
5021
5023
|
.replace(/\t/g, "\\t")
|
|
5022
5024
|
.replace(/\n/g, "\\n")
|
|
@@ -5024,11 +5026,18 @@ class peg$SyntaxError extends SyntaxError {
|
|
|
5024
5026
|
.replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
|
|
5025
5027
|
.replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
|
|
5026
5028
|
}
|
|
5027
|
-
function literalEscape(s) {
|
|
5028
|
-
return escape(s, /[\\"]/g);
|
|
5029
|
-
}
|
|
5030
5029
|
function classEscape(s) {
|
|
5031
|
-
return
|
|
5030
|
+
return unicodeEscape(s
|
|
5031
|
+
.replace(/\\/g, "\\\\")
|
|
5032
|
+
.replace(/\]/g, "\\]")
|
|
5033
|
+
.replace(/\^/g, "\\^")
|
|
5034
|
+
.replace(/-/g, "\\-")
|
|
5035
|
+
.replace(/\0/g, "\\0")
|
|
5036
|
+
.replace(/\t/g, "\\t")
|
|
5037
|
+
.replace(/\n/g, "\\n")
|
|
5038
|
+
.replace(/\r/g, "\\r")
|
|
5039
|
+
.replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
|
|
5040
|
+
.replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
|
|
5032
5041
|
}
|
|
5033
5042
|
const DESCRIBE_EXPECTATION_FNS = {
|
|
5034
5043
|
literal(expectation) {
|
|
@@ -5101,6 +5110,11 @@ function peg$parse(input, options) {
|
|
|
5101
5110
|
const peg$c7 = "=";
|
|
5102
5111
|
const peg$c8 = "!=";
|
|
5103
5112
|
const peg$c9 = "CONTAINS";
|
|
5113
|
+
const peg$r0 = /^[a-zA-Z]/;
|
|
5114
|
+
const peg$r1 = /^[A-Za-z0-9._\-]/;
|
|
5115
|
+
const peg$r2 = /^[0-9]/;
|
|
5116
|
+
const peg$r3 = /^[A-Za-z0-9.,* _&()\/\-]/;
|
|
5117
|
+
const peg$r4 = /^[ \t]/;
|
|
5104
5118
|
const peg$e0 = peg$literalExpectation("AND", false);
|
|
5105
5119
|
const peg$e1 = peg$literalExpectation("OR", false);
|
|
5106
5120
|
const peg$e2 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
|
|
@@ -5137,7 +5151,6 @@ function peg$parse(input, options) {
|
|
|
5137
5151
|
let peg$maxFailExpected = options.peg$maxFailExpected || [];
|
|
5138
5152
|
let peg$silentFails = options.peg$silentFails | 0;
|
|
5139
5153
|
let peg$result;
|
|
5140
|
-
let peg$charCode;
|
|
5141
5154
|
if (options.startRule) {
|
|
5142
5155
|
if (!(options.startRule in peg$startRuleFunctions)) {
|
|
5143
5156
|
throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
|
|
@@ -5276,12 +5289,10 @@ function peg$parse(input, options) {
|
|
|
5276
5289
|
s1 = peg$parseFormulaTerm();
|
|
5277
5290
|
if (s1 !== peg$FAILED) {
|
|
5278
5291
|
s2 = [];
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
if (s3 === peg$FAILED) {
|
|
5282
|
-
break;
|
|
5283
|
-
}
|
|
5292
|
+
s3 = peg$parseJoinComparator();
|
|
5293
|
+
while (s3 !== peg$FAILED) {
|
|
5284
5294
|
s2.push(s3);
|
|
5295
|
+
s3 = peg$parseJoinComparator();
|
|
5285
5296
|
}
|
|
5286
5297
|
peg$savedPos = s0;
|
|
5287
5298
|
s0 = peg$f0(s1, s2);
|
|
@@ -5449,14 +5460,14 @@ function peg$parse(input, options) {
|
|
|
5449
5460
|
let s0, s1, s2;
|
|
5450
5461
|
s0 = peg$currPos;
|
|
5451
5462
|
s1 = [];
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5463
|
+
s2 = peg$parseLetter();
|
|
5464
|
+
if (s2 !== peg$FAILED) {
|
|
5465
|
+
while (s2 !== peg$FAILED) {
|
|
5466
|
+
s1.push(s2);
|
|
5467
|
+
s2 = peg$parseLetter();
|
|
5456
5468
|
}
|
|
5457
|
-
s1.push(s2);
|
|
5458
5469
|
}
|
|
5459
|
-
|
|
5470
|
+
else {
|
|
5460
5471
|
s1 = peg$FAILED;
|
|
5461
5472
|
}
|
|
5462
5473
|
if (s1 !== peg$FAILED) {
|
|
@@ -5469,7 +5480,7 @@ function peg$parse(input, options) {
|
|
|
5469
5480
|
function peg$parseLetter() {
|
|
5470
5481
|
let s0;
|
|
5471
5482
|
s0 = input.charAt(peg$currPos);
|
|
5472
|
-
if (
|
|
5483
|
+
if (peg$r0.test(s0)) {
|
|
5473
5484
|
peg$currPos++;
|
|
5474
5485
|
}
|
|
5475
5486
|
else {
|
|
@@ -5543,23 +5554,32 @@ function peg$parse(input, options) {
|
|
|
5543
5554
|
let s0, s1, s2;
|
|
5544
5555
|
s0 = peg$currPos;
|
|
5545
5556
|
s1 = [];
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5557
|
+
s2 = input.charAt(peg$currPos);
|
|
5558
|
+
if (peg$r1.test(s2)) {
|
|
5559
|
+
peg$currPos++;
|
|
5560
|
+
}
|
|
5561
|
+
else {
|
|
5562
|
+
s2 = peg$FAILED;
|
|
5563
|
+
if (peg$silentFails === 0) {
|
|
5564
|
+
peg$fail(peg$e3);
|
|
5550
5565
|
}
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5566
|
+
}
|
|
5567
|
+
if (s2 !== peg$FAILED) {
|
|
5568
|
+
while (s2 !== peg$FAILED) {
|
|
5569
|
+
s1.push(s2);
|
|
5570
|
+
s2 = input.charAt(peg$currPos);
|
|
5571
|
+
if (peg$r1.test(s2)) {
|
|
5572
|
+
peg$currPos++;
|
|
5573
|
+
}
|
|
5574
|
+
else {
|
|
5575
|
+
s2 = peg$FAILED;
|
|
5576
|
+
if (peg$silentFails === 0) {
|
|
5577
|
+
peg$fail(peg$e3);
|
|
5578
|
+
}
|
|
5555
5579
|
}
|
|
5556
5580
|
}
|
|
5557
|
-
if (s2 === peg$FAILED) {
|
|
5558
|
-
break;
|
|
5559
|
-
}
|
|
5560
|
-
s1.push(s2);
|
|
5561
5581
|
}
|
|
5562
|
-
|
|
5582
|
+
else {
|
|
5563
5583
|
s1 = peg$FAILED;
|
|
5564
5584
|
}
|
|
5565
5585
|
if (s1 !== peg$FAILED) {
|
|
@@ -5600,23 +5620,32 @@ function peg$parse(input, options) {
|
|
|
5600
5620
|
function peg$parsenumber() {
|
|
5601
5621
|
let s0, s1;
|
|
5602
5622
|
s0 = [];
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5623
|
+
s1 = input.charAt(peg$currPos);
|
|
5624
|
+
if (peg$r2.test(s1)) {
|
|
5625
|
+
peg$currPos++;
|
|
5626
|
+
}
|
|
5627
|
+
else {
|
|
5628
|
+
s1 = peg$FAILED;
|
|
5629
|
+
if (peg$silentFails === 0) {
|
|
5630
|
+
peg$fail(peg$e6);
|
|
5607
5631
|
}
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5632
|
+
}
|
|
5633
|
+
if (s1 !== peg$FAILED) {
|
|
5634
|
+
while (s1 !== peg$FAILED) {
|
|
5635
|
+
s0.push(s1);
|
|
5636
|
+
s1 = input.charAt(peg$currPos);
|
|
5637
|
+
if (peg$r2.test(s1)) {
|
|
5638
|
+
peg$currPos++;
|
|
5639
|
+
}
|
|
5640
|
+
else {
|
|
5641
|
+
s1 = peg$FAILED;
|
|
5642
|
+
if (peg$silentFails === 0) {
|
|
5643
|
+
peg$fail(peg$e6);
|
|
5644
|
+
}
|
|
5612
5645
|
}
|
|
5613
5646
|
}
|
|
5614
|
-
if (s1 === peg$FAILED) {
|
|
5615
|
-
break;
|
|
5616
|
-
}
|
|
5617
|
-
s0.push(s1);
|
|
5618
5647
|
}
|
|
5619
|
-
|
|
5648
|
+
else {
|
|
5620
5649
|
s0 = peg$FAILED;
|
|
5621
5650
|
}
|
|
5622
5651
|
return s0;
|
|
@@ -5636,9 +5665,20 @@ function peg$parse(input, options) {
|
|
|
5636
5665
|
}
|
|
5637
5666
|
if (s1 !== peg$FAILED) {
|
|
5638
5667
|
s2 = [];
|
|
5639
|
-
|
|
5668
|
+
s3 = input.charAt(peg$currPos);
|
|
5669
|
+
if (peg$r3.test(s3)) {
|
|
5670
|
+
peg$currPos++;
|
|
5671
|
+
}
|
|
5672
|
+
else {
|
|
5673
|
+
s3 = peg$FAILED;
|
|
5674
|
+
if (peg$silentFails === 0) {
|
|
5675
|
+
peg$fail(peg$e8);
|
|
5676
|
+
}
|
|
5677
|
+
}
|
|
5678
|
+
while (s3 !== peg$FAILED) {
|
|
5679
|
+
s2.push(s3);
|
|
5640
5680
|
s3 = input.charAt(peg$currPos);
|
|
5641
|
-
if (
|
|
5681
|
+
if (peg$r3.test(s3)) {
|
|
5642
5682
|
peg$currPos++;
|
|
5643
5683
|
}
|
|
5644
5684
|
else {
|
|
@@ -5647,10 +5687,6 @@ function peg$parse(input, options) {
|
|
|
5647
5687
|
peg$fail(peg$e8);
|
|
5648
5688
|
}
|
|
5649
5689
|
}
|
|
5650
|
-
if (s3 === peg$FAILED) {
|
|
5651
|
-
break;
|
|
5652
|
-
}
|
|
5653
|
-
s2.push(s3);
|
|
5654
5690
|
}
|
|
5655
5691
|
if (input.charCodeAt(peg$currPos) === 34) {
|
|
5656
5692
|
s3 = peg$c4;
|
|
@@ -5781,7 +5817,7 @@ function peg$parse(input, options) {
|
|
|
5781
5817
|
let s0, s1;
|
|
5782
5818
|
peg$silentFails++;
|
|
5783
5819
|
s0 = input.charAt(peg$currPos);
|
|
5784
|
-
if (
|
|
5820
|
+
if (peg$r4.test(s0)) {
|
|
5785
5821
|
peg$currPos++;
|
|
5786
5822
|
}
|
|
5787
5823
|
else {
|
|
@@ -5803,14 +5839,14 @@ function peg$parse(input, options) {
|
|
|
5803
5839
|
let s0, s1;
|
|
5804
5840
|
peg$silentFails++;
|
|
5805
5841
|
s0 = [];
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5842
|
+
s1 = peg$parsews();
|
|
5843
|
+
if (s1 !== peg$FAILED) {
|
|
5844
|
+
while (s1 !== peg$FAILED) {
|
|
5845
|
+
s0.push(s1);
|
|
5846
|
+
s1 = peg$parsews();
|
|
5810
5847
|
}
|
|
5811
|
-
s0.push(s1);
|
|
5812
5848
|
}
|
|
5813
|
-
|
|
5849
|
+
else {
|
|
5814
5850
|
s0 = peg$FAILED;
|
|
5815
5851
|
}
|
|
5816
5852
|
peg$silentFails--;
|
|
@@ -17746,30 +17782,6 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17746
17782
|
}], null, null); })();
|
|
17747
17783
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDynamicListFieldComponent, { className: "WriteDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.ts", lineNumber: 10 }); })();
|
|
17748
17784
|
|
|
17749
|
-
function MarkdownComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
17750
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
17751
|
-
i0.ɵɵelementContainerStart(0);
|
|
17752
|
-
i0.ɵɵelementStart(1, "markdown", 2);
|
|
17753
|
-
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
17754
|
-
i0.ɵɵlistener("click", function MarkdownComponent_ng_container_0_Template_markdown_click_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.interceptClick($event)); });
|
|
17755
|
-
i0.ɵɵelementEnd();
|
|
17756
|
-
i0.ɵɵelementContainerEnd();
|
|
17757
|
-
} if (rf & 2) {
|
|
17758
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
17759
|
-
i0.ɵɵadvance();
|
|
17760
|
-
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 2, ctx_r1.content))("inline", true);
|
|
17761
|
-
} }
|
|
17762
|
-
function MarkdownComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
17763
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
17764
|
-
i0.ɵɵelementStart(0, "div")(1, "markdown", 3);
|
|
17765
|
-
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
17766
|
-
i0.ɵɵlistener("click", function MarkdownComponent_ng_template_1_Template_markdown_click_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.interceptClick($event)); });
|
|
17767
|
-
i0.ɵɵelementEnd()();
|
|
17768
|
-
} if (rf & 2) {
|
|
17769
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
17770
|
-
i0.ɵɵadvance();
|
|
17771
|
-
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 1, ctx_r1.content));
|
|
17772
|
-
} }
|
|
17773
17785
|
class MarkdownComponent {
|
|
17774
17786
|
router;
|
|
17775
17787
|
renderer;
|
|
@@ -17777,7 +17789,6 @@ class MarkdownComponent {
|
|
|
17777
17789
|
cdr;
|
|
17778
17790
|
content;
|
|
17779
17791
|
renderUrlToTextFeature = true;
|
|
17780
|
-
inline = false;
|
|
17781
17792
|
constructor(router, renderer, ngZone, cdr) {
|
|
17782
17793
|
this.router = router;
|
|
17783
17794
|
this.renderer = renderer;
|
|
@@ -17844,22 +17855,23 @@ class MarkdownComponent {
|
|
|
17844
17855
|
return markdownLinkRegex.test(inputString);
|
|
17845
17856
|
}
|
|
17846
17857
|
static ɵfac = function MarkdownComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MarkdownComponent)(i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
17847
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature"
|
|
17848
|
-
i0.ɵɵ
|
|
17858
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature" }, standalone: false, decls: 3, vars: 3, consts: [[1, "markdown", 3, "click", "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17859
|
+
i0.ɵɵelementStart(0, "div")(1, "markdown", 0);
|
|
17860
|
+
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
17861
|
+
i0.ɵɵlistener("click", function MarkdownComponent_Template_markdown_click_1_listener($event) { return ctx.interceptClick($event); });
|
|
17862
|
+
i0.ɵɵelementEnd()();
|
|
17849
17863
|
} if (rf & 2) {
|
|
17850
|
-
|
|
17851
|
-
i0.ɵɵproperty("
|
|
17852
|
-
} }, dependencies: [
|
|
17864
|
+
i0.ɵɵadvance();
|
|
17865
|
+
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 1, ctx.content));
|
|
17866
|
+
} }, dependencies: [i1$4.MarkdownComponent, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
|
|
17853
17867
|
}
|
|
17854
17868
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
|
|
17855
17869
|
type: Component,
|
|
17856
|
-
args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<
|
|
17870
|
+
args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\"></markdown></div>\n" }]
|
|
17857
17871
|
}], () => [{ type: i1$2.Router }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], { content: [{
|
|
17858
17872
|
type: Input
|
|
17859
17873
|
}], renderUrlToTextFeature: [{
|
|
17860
17874
|
type: Input
|
|
17861
|
-
}], inline: [{
|
|
17862
|
-
type: Input
|
|
17863
17875
|
}] }); })();
|
|
17864
17876
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber: 12 }); })();
|
|
17865
17877
|
|
|
@@ -17960,10 +17972,10 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
17960
17972
|
i0.ɵɵelementStart(1, "div", 8)(2, "input", 9);
|
|
17961
17973
|
i0.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onCheckChange($event)); });
|
|
17962
17974
|
i0.ɵɵelementEnd();
|
|
17963
|
-
i0.ɵɵelementStart(3, "label", 10)
|
|
17964
|
-
i0.ɵɵelement(
|
|
17965
|
-
i0.ɵɵpipe(
|
|
17966
|
-
i0.ɵɵelementEnd()()
|
|
17975
|
+
i0.ɵɵelementStart(3, "label", 10);
|
|
17976
|
+
i0.ɵɵelement(4, "ccd-markdown", 11);
|
|
17977
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
17978
|
+
i0.ɵɵelementEnd()();
|
|
17967
17979
|
i0.ɵɵelementContainerEnd();
|
|
17968
17980
|
} if (rf & 2) {
|
|
17969
17981
|
const checkbox_r3 = ctx.$implicit;
|
|
@@ -17972,8 +17984,8 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
17972
17984
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r0.createElementId(checkbox_r3.code)))("name", i0.ɵɵinterpolate(ctx_r0.id()))("value", checkbox_r3.code)("checked", ctx_r0.isSelected(checkbox_r3.code));
|
|
17973
17985
|
i0.ɵɵadvance();
|
|
17974
17986
|
i0.ɵɵproperty("for", i0.ɵɵinterpolate(ctx_r0.createElementId(checkbox_r3.code)));
|
|
17975
|
-
i0.ɵɵadvance(
|
|
17976
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(
|
|
17987
|
+
i0.ɵɵadvance();
|
|
17988
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(5, 10, checkbox_r3.label))("renderUrlToTextFeature", false);
|
|
17977
17989
|
} }
|
|
17978
17990
|
class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
17979
17991
|
checkboxes;
|
|
@@ -18037,11 +18049,11 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
18037
18049
|
}
|
|
18038
18050
|
}
|
|
18039
18051
|
static ɵfac = /*@__PURE__*/ (() => { let ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory; return function WriteDynamicMultiSelectListFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory || (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent)))(__ngFactoryType__ || WriteDynamicMultiSelectListFieldComponent); }; })();
|
|
18040
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "change", "id", "name", "value", "checked"], [3, "for"], [3, "content", "renderUrlToTextFeature"
|
|
18052
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "change", "id", "name", "value", "checked"], [1, "form-label", 3, "for"], [3, "content", "renderUrlToTextFeature"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18041
18053
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
18042
18054
|
i0.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1)(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2)(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
18043
18055
|
i0.ɵɵelementEnd();
|
|
18044
|
-
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template,
|
|
18056
|
+
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 6, 12, "ng-container", 4);
|
|
18045
18057
|
i0.ɵɵelementEnd()();
|
|
18046
18058
|
} if (rf & 2) {
|
|
18047
18059
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$T, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
@@ -18057,7 +18069,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
18057
18069
|
}
|
|
18058
18070
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
18059
18071
|
type: Component,
|
|
18060
|
-
args: [{ selector: 'ccd-write-dynamic-multi-select-list-field', standalone: false, template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && checkboxes.touched}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span *ngIf=\"caseField.label\" class=\"form-label\">{{caseField | ccdFieldLabel}}</span>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text}}</span>\n <span *ngIf=\"checkboxes.errors && checkboxes.touched\" class=\"error-message\">{{checkboxes.errors |\n ccdFirstError}}</span>\n </legend>\n\n <ng-container *ngFor=\"let checkbox of caseField.list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" id=\"{{ createElementId(checkbox.code) }}\" name=\"{{ id() }}\" type=\"checkbox\"\n [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label for=\"{{ createElementId(checkbox.code) }}\">\n <
|
|
18072
|
+
args: [{ selector: 'ccd-write-dynamic-multi-select-list-field', standalone: false, template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && checkboxes.touched}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span *ngIf=\"caseField.label\" class=\"form-label\">{{caseField | ccdFieldLabel}}</span>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text}}</span>\n <span *ngIf=\"checkboxes.errors && checkboxes.touched\" class=\"error-message\">{{checkboxes.errors |\n ccdFirstError}}</span>\n </legend>\n\n <ng-container *ngFor=\"let checkbox of caseField.list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" id=\"{{ createElementId(checkbox.code) }}\" name=\"{{ id() }}\" type=\"checkbox\"\n [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label class=\"form-label\" for=\"{{ createElementId(checkbox.code) }}\">\n <ccd-markdown [content]=\"checkbox.label | rpxTranslate\" [renderUrlToTextFeature]=\"false\"></ccd-markdown>\n </label>\n </div>\n\n </ng-container>\n\n </fieldset>\n\n</div>\n", styles: ["ccd-markdown{display:inline-block}\n"] }]
|
|
18061
18073
|
}], null, null); })();
|
|
18062
18074
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDynamicMultiSelectListFieldComponent, { className: "WriteDynamicMultiSelectListFieldComponent", filePath: "lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.ts", lineNumber: 11 }); })();
|
|
18063
18075
|
|
|
@@ -36293,7 +36305,7 @@ class ReadOrganisationFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
36293
36305
|
}] }); })();
|
|
36294
36306
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldRawComponent, { className: "ReadOrganisationFieldRawComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field-raw.component.ts", lineNumber: 16 }); })();
|
|
36295
36307
|
|
|
36296
|
-
function
|
|
36308
|
+
function ReadOrganisationFieldTableComponent_table_12_Template(rf, ctx) { if (rf & 1) {
|
|
36297
36309
|
i0.ɵɵelementStart(0, "table", 1)(1, "tr", 6);
|
|
36298
36310
|
i0.ɵɵelement(2, "th", 7);
|
|
36299
36311
|
i0.ɵɵelementStart(3, "td", 8)(4, "span", 4);
|
|
@@ -36341,31 +36353,29 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
36341
36353
|
}
|
|
36342
36354
|
}
|
|
36343
36355
|
static ɵfac = function ReadOrganisationFieldTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadOrganisationFieldTableComponent)(i0.ɵɵdirectiveInject(OrganisationService), i0.ɵɵdirectiveInject(OrganisationConverter)); };
|
|
36344
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
36356
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 14, vars: 9, consts: [[1, "complex-panel"], [1, "complex-field-table"], [1, "complex-field-title"], [1, "complex-panel-title"], [1, "text-16"], ["class", "complex-field-table", 4, "ngIf"], [1, "complex-panel-compound-field"], [2, "display", "none"], [1, "label-width-medium"], [3, "content"]], template: function ReadOrganisationFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
36345
36357
|
i0.ɵɵelementStart(0, "div", 0)(1, "table", 1);
|
|
36346
36358
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
36347
36359
|
i0.ɵɵelementStart(3, "tbody")(4, "tr")(5, "th", 2)(6, "dl", 3)(7, "dt")(8, "span", 4);
|
|
36348
36360
|
i0.ɵɵtext(9);
|
|
36349
36361
|
i0.ɵɵpipe(10, "rpxTranslate");
|
|
36350
|
-
i0.ɵɵelementEnd()();
|
|
36351
|
-
i0.ɵɵ
|
|
36352
|
-
i0.ɵɵ
|
|
36353
|
-
i0.ɵɵ
|
|
36354
|
-
i0.ɵɵtemplate(13, ReadOrganisationFieldTableComponent_table_13_Template, 16, 5, "table", 5);
|
|
36355
|
-
i0.ɵɵpipe(14, "async");
|
|
36362
|
+
i0.ɵɵelementEnd()()()();
|
|
36363
|
+
i0.ɵɵelementStart(11, "td");
|
|
36364
|
+
i0.ɵɵtemplate(12, ReadOrganisationFieldTableComponent_table_12_Template, 16, 5, "table", 5);
|
|
36365
|
+
i0.ɵɵpipe(13, "async");
|
|
36356
36366
|
i0.ɵɵelementEnd()()()()();
|
|
36357
36367
|
} if (rf & 2) {
|
|
36358
36368
|
i0.ɵɵadvance();
|
|
36359
36369
|
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 3, "complex organisation field table"));
|
|
36360
36370
|
i0.ɵɵadvance(8);
|
|
36361
36371
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 5, ctx.caseField.label));
|
|
36362
|
-
i0.ɵɵadvance(
|
|
36363
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
36372
|
+
i0.ɵɵadvance(3);
|
|
36373
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 7, ctx.selectedOrg$));
|
|
36364
36374
|
} }, dependencies: [i5.NgIf, MarkdownComponent, i5.AsyncPipe, i1.RpxTranslatePipe], styles: [".govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}.hmcts-banner[_ngcontent-%COMP%]{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{font-weight:700}.govuk-hint[_ngcontent-%COMP%]{font-size:1.1rem}.name-header[_ngcontent-%COMP%]{font-weight:700;margin-top:10px;font-size:18px}.td-address[_ngcontent-%COMP%]{width:90%;padding-top:2px}.td-select[_ngcontent-%COMP%]{width:10%}.warning-panel[_ngcontent-%COMP%]{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{padding-left:15px}.complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{border:none}.complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > th[_ngcontent-%COMP%], .complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.complex-field-title[_ngcontent-%COMP%]{width:300px}.label-width-small[_ngcontent-%COMP%]{width:100px}.label-width-medium[_ngcontent-%COMP%]{width:150px}.scroll-container[_ngcontent-%COMP%]{height:600px;overflow-y:scroll}.no-result-message[_ngcontent-%COMP%]{margin-top:15px}"] });
|
|
36365
36375
|
}
|
|
36366
36376
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadOrganisationFieldTableComponent, [{
|
|
36367
36377
|
type: Component,
|
|
36368
|
-
args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n
|
|
36378
|
+
args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
|
|
36369
36379
|
}], () => [{ type: OrganisationService }, { type: OrganisationConverter }], { caseFields: [{
|
|
36370
36380
|
type: Input
|
|
36371
36381
|
}] }); })();
|
|
@@ -41623,7 +41633,12 @@ class CaseFullAccessViewComponent {
|
|
|
41623
41633
|
let hashValue = url.substring(url.indexOf('#') + 1);
|
|
41624
41634
|
const hasHash = url.includes('#');
|
|
41625
41635
|
const isSpecialTabPath = url.includes('roles-and-access') || url.includes('tasks') || url.includes('hearings');
|
|
41626
|
-
|
|
41636
|
+
// TODO: Remove defaultFocusDemo once QA'd
|
|
41637
|
+
const defaultFocusDemo = url.includes('default-focus-demo');
|
|
41638
|
+
if (defaultFocusDemo) {
|
|
41639
|
+
this.caseDetails.tabs[Number(url.substring(url.indexOf('default-focus-demo-') + 19))].defaultFocus = true;
|
|
41640
|
+
}
|
|
41641
|
+
if (defaultFocusDemo || (!hasHash && !isSpecialTabPath)) {
|
|
41627
41642
|
const paths = url.split('/');
|
|
41628
41643
|
const lastPath = decodeURIComponent(paths[paths.length - 1]);
|
|
41629
41644
|
let foundTab = null;
|
|
@@ -41647,10 +41662,13 @@ class CaseFullAccessViewComponent {
|
|
|
41647
41662
|
});
|
|
41648
41663
|
}
|
|
41649
41664
|
else {
|
|
41650
|
-
this.caseDetails.tabs
|
|
41665
|
+
this.caseDetails.tabs = this.orderService.sort(this.caseDetails.tabs);
|
|
41666
|
+
// Presuming default focus only set for one tab here - multiple tabs with default focus are not handled as is a contradiction
|
|
41667
|
+
let preSelectTab = this.caseDetails.tabs.find((tab) => tab.defaultFocus === true) ?? null;
|
|
41668
|
+
// Attempt to pre-select the tab based on the preferred label for the current case type
|
|
41651
41669
|
const preferredLabel = FieldsUtils.defaultTabList?.[this.caseDetails?.case_type?.id];
|
|
41652
|
-
|
|
41653
|
-
if (preferredLabel) {
|
|
41670
|
+
// If no tab has default focus, attempt to use the preferred label for the current case type
|
|
41671
|
+
if (!preSelectTab && preferredLabel) {
|
|
41654
41672
|
preSelectTab = this.caseDetails.tabs.find((tab) => (tab.label === preferredLabel) || (tab.id === preferredLabel)) ?? null;
|
|
41655
41673
|
}
|
|
41656
41674
|
if (!preSelectTab) {
|