@hmcts/ccd-case-ui-toolkit 7.3.68-3003-3005-3066 → 7.3.68-4216-v2
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/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +1151 -307
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/index.d.ts +30 -43
- package/index.d.ts.map +1 -1
- package/package.json +4 -5
|
@@ -17,7 +17,6 @@ import moment from 'moment';
|
|
|
17
17
|
import { __decorate, __metadata } from 'tslib';
|
|
18
18
|
import * as _ from 'underscore';
|
|
19
19
|
import 'reflect-metadata';
|
|
20
|
-
import { generate } from 'pegjs';
|
|
21
20
|
import { StateMachine } from '@edium/fsm';
|
|
22
21
|
import * as i1$3 from '@angular/material/legacy-dialog';
|
|
23
22
|
import { MAT_LEGACY_DIALOG_DATA, MatLegacyDialogModule } from '@angular/material/legacy-dialog';
|
|
@@ -3565,7 +3564,6 @@ class CaseField {
|
|
|
3565
3564
|
acls;
|
|
3566
3565
|
metadata;
|
|
3567
3566
|
formatted_value;
|
|
3568
|
-
hmctsServiceId;
|
|
3569
3567
|
retain_hidden_value;
|
|
3570
3568
|
wizardProps;
|
|
3571
3569
|
_value;
|
|
@@ -3962,7 +3960,6 @@ class CaseView {
|
|
|
3962
3960
|
events;
|
|
3963
3961
|
metadataFields;
|
|
3964
3962
|
basicFields;
|
|
3965
|
-
hmctsServiceId;
|
|
3966
3963
|
case_flag;
|
|
3967
3964
|
}
|
|
3968
3965
|
__decorate([
|
|
@@ -4800,107 +4797,1036 @@ class FieldsUtils {
|
|
|
4800
4797
|
type: Injectable
|
|
4801
4798
|
}], null, null); })();
|
|
4802
4799
|
|
|
4803
|
-
|
|
4800
|
+
// @ts-nocheck
|
|
4801
|
+
// This file is generated by npm run generate:condition-parser. Do not edit by hand.
|
|
4802
|
+
// @generated by Peggy 5.1.0.
|
|
4803
|
+
//
|
|
4804
|
+
// https://peggyjs.org/
|
|
4805
|
+
class peg$SyntaxError extends SyntaxError {
|
|
4806
|
+
constructor(message, expected, found, location) {
|
|
4807
|
+
super(message);
|
|
4808
|
+
this.expected = expected;
|
|
4809
|
+
this.found = found;
|
|
4810
|
+
this.location = location;
|
|
4811
|
+
this.name = "SyntaxError";
|
|
4812
|
+
}
|
|
4813
|
+
format(sources) {
|
|
4814
|
+
let str = "Error: " + this.message;
|
|
4815
|
+
if (this.location) {
|
|
4816
|
+
let src = null;
|
|
4817
|
+
const st = sources.find(s => s.source === this.location.source);
|
|
4818
|
+
if (st) {
|
|
4819
|
+
src = st.text.split(/\r\n|\n|\r/g);
|
|
4820
|
+
}
|
|
4821
|
+
const s = this.location.start;
|
|
4822
|
+
const offset_s = (this.location.source && (typeof this.location.source.offset === "function"))
|
|
4823
|
+
? this.location.source.offset(s)
|
|
4824
|
+
: s;
|
|
4825
|
+
const loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;
|
|
4826
|
+
if (src) {
|
|
4827
|
+
const e = this.location.end;
|
|
4828
|
+
const filler = "".padEnd(offset_s.line.toString().length, " ");
|
|
4829
|
+
const line = src[s.line - 1];
|
|
4830
|
+
const last = s.line === e.line ? e.column : line.length + 1;
|
|
4831
|
+
const hatLen = (last - s.column) || 1;
|
|
4832
|
+
str += "\n --> " + loc + "\n"
|
|
4833
|
+
+ filler + " |\n"
|
|
4834
|
+
+ offset_s.line + " | " + line + "\n"
|
|
4835
|
+
+ filler + " | " + "".padEnd(s.column - 1, " ")
|
|
4836
|
+
+ "".padEnd(hatLen, "^");
|
|
4837
|
+
}
|
|
4838
|
+
else {
|
|
4839
|
+
str += "\n at " + loc;
|
|
4840
|
+
}
|
|
4841
|
+
}
|
|
4842
|
+
return str;
|
|
4843
|
+
}
|
|
4844
|
+
static buildMessage(expected, found) {
|
|
4845
|
+
function hex(ch) {
|
|
4846
|
+
return ch.codePointAt(0).toString(16).toUpperCase();
|
|
4847
|
+
}
|
|
4848
|
+
const nonPrintable = Object.prototype.hasOwnProperty.call(RegExp.prototype, "unicode")
|
|
4849
|
+
? new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]", "gu")
|
|
4850
|
+
: null;
|
|
4851
|
+
function unicodeEscape(s) {
|
|
4852
|
+
if (nonPrintable) {
|
|
4853
|
+
return s.replace(nonPrintable, ch => "\\u{" + hex(ch) + "}");
|
|
4854
|
+
}
|
|
4855
|
+
return s;
|
|
4856
|
+
}
|
|
4857
|
+
function literalEscape(s) {
|
|
4858
|
+
return unicodeEscape(s
|
|
4859
|
+
.replace(/\\/g, "\\\\")
|
|
4860
|
+
.replace(/"/g, "\\\"")
|
|
4861
|
+
.replace(/\0/g, "\\0")
|
|
4862
|
+
.replace(/\t/g, "\\t")
|
|
4863
|
+
.replace(/\n/g, "\\n")
|
|
4864
|
+
.replace(/\r/g, "\\r")
|
|
4865
|
+
.replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
|
|
4866
|
+
.replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
|
|
4867
|
+
}
|
|
4868
|
+
function classEscape(s) {
|
|
4869
|
+
return unicodeEscape(s
|
|
4870
|
+
.replace(/\\/g, "\\\\")
|
|
4871
|
+
.replace(/\]/g, "\\]")
|
|
4872
|
+
.replace(/\^/g, "\\^")
|
|
4873
|
+
.replace(/-/g, "\\-")
|
|
4874
|
+
.replace(/\0/g, "\\0")
|
|
4875
|
+
.replace(/\t/g, "\\t")
|
|
4876
|
+
.replace(/\n/g, "\\n")
|
|
4877
|
+
.replace(/\r/g, "\\r")
|
|
4878
|
+
.replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
|
|
4879
|
+
.replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
|
|
4880
|
+
}
|
|
4881
|
+
const DESCRIBE_EXPECTATION_FNS = {
|
|
4882
|
+
literal(expectation) {
|
|
4883
|
+
return "\"" + literalEscape(expectation.text) + "\"";
|
|
4884
|
+
},
|
|
4885
|
+
class(expectation) {
|
|
4886
|
+
const escapedParts = expectation.parts.map(part => (Array.isArray(part)
|
|
4887
|
+
? classEscape(part[0]) + "-" + classEscape(part[1])
|
|
4888
|
+
: classEscape(part)));
|
|
4889
|
+
return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]" + (expectation.unicode ? "u" : "");
|
|
4890
|
+
},
|
|
4891
|
+
any() {
|
|
4892
|
+
return "any character";
|
|
4893
|
+
},
|
|
4894
|
+
end() {
|
|
4895
|
+
return "end of input";
|
|
4896
|
+
},
|
|
4897
|
+
other(expectation) {
|
|
4898
|
+
return expectation.description;
|
|
4899
|
+
},
|
|
4900
|
+
};
|
|
4901
|
+
function describeExpectation(expectation) {
|
|
4902
|
+
return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
|
|
4903
|
+
}
|
|
4904
|
+
function describeExpected(expected) {
|
|
4905
|
+
const descriptions = expected.map(describeExpectation);
|
|
4906
|
+
descriptions.sort();
|
|
4907
|
+
if (descriptions.length > 0) {
|
|
4908
|
+
let j = 1;
|
|
4909
|
+
for (let i = 1; i < descriptions.length; i++) {
|
|
4910
|
+
if (descriptions[i - 1] !== descriptions[i]) {
|
|
4911
|
+
descriptions[j] = descriptions[i];
|
|
4912
|
+
j++;
|
|
4913
|
+
}
|
|
4914
|
+
}
|
|
4915
|
+
descriptions.length = j;
|
|
4916
|
+
}
|
|
4917
|
+
switch (descriptions.length) {
|
|
4918
|
+
case 1:
|
|
4919
|
+
return descriptions[0];
|
|
4920
|
+
case 2:
|
|
4921
|
+
return descriptions[0] + " or " + descriptions[1];
|
|
4922
|
+
default:
|
|
4923
|
+
return descriptions.slice(0, -1).join(", ")
|
|
4924
|
+
+ ", or "
|
|
4925
|
+
+ descriptions[descriptions.length - 1];
|
|
4926
|
+
}
|
|
4927
|
+
}
|
|
4928
|
+
function describeFound(found) {
|
|
4929
|
+
return found ? "\"" + literalEscape(found) + "\"" : "end of input";
|
|
4930
|
+
}
|
|
4931
|
+
return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
function peg$parse(input, options) {
|
|
4935
|
+
options = options !== undefined ? options : {};
|
|
4936
|
+
const peg$FAILED = {};
|
|
4937
|
+
const peg$source = options.grammarSource;
|
|
4938
|
+
const peg$startRuleFunctions = {
|
|
4939
|
+
Start: peg$parseStart,
|
|
4940
|
+
};
|
|
4941
|
+
let peg$startRuleFunction = peg$parseStart;
|
|
4942
|
+
const peg$c0 = "AND";
|
|
4943
|
+
const peg$c1 = "OR";
|
|
4944
|
+
const peg$c2 = "[";
|
|
4945
|
+
const peg$c3 = "]";
|
|
4946
|
+
const peg$c4 = "\"";
|
|
4947
|
+
const peg$c5 = "(";
|
|
4948
|
+
const peg$c6 = ")";
|
|
4949
|
+
const peg$c7 = "=";
|
|
4950
|
+
const peg$c8 = "!=";
|
|
4951
|
+
const peg$c9 = "CONTAINS";
|
|
4952
|
+
const peg$r0 = /^[a-zA-Z]/;
|
|
4953
|
+
const peg$r1 = /^[A-Za-z0-9._\-]/;
|
|
4954
|
+
const peg$r2 = /^[0-9]/;
|
|
4955
|
+
const peg$r3 = /^[A-Za-z0-9.,* _&()\/\-]/;
|
|
4956
|
+
const peg$r4 = /^[ \t]/;
|
|
4957
|
+
const peg$e0 = peg$literalExpectation("AND", false);
|
|
4958
|
+
const peg$e1 = peg$literalExpectation("OR", false);
|
|
4959
|
+
const peg$e2 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
|
|
4960
|
+
const peg$e3 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], ".", "_", "-"], false, false, false);
|
|
4961
|
+
const peg$e4 = peg$literalExpectation("[", false);
|
|
4962
|
+
const peg$e5 = peg$literalExpectation("]", false);
|
|
4963
|
+
const peg$e6 = peg$classExpectation([["0", "9"]], false, false, false);
|
|
4964
|
+
const peg$e7 = peg$literalExpectation("\"", false);
|
|
4965
|
+
const peg$e8 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], ".", ",", "*", " ", "_", "&", "(", ")", "/", "-"], false, false, false);
|
|
4966
|
+
const peg$e9 = peg$literalExpectation("(", false);
|
|
4967
|
+
const peg$e10 = peg$literalExpectation(")", false);
|
|
4968
|
+
const peg$e11 = peg$literalExpectation("=", false);
|
|
4969
|
+
const peg$e12 = peg$literalExpectation("!=", false);
|
|
4970
|
+
const peg$e13 = peg$literalExpectation("CONTAINS", false);
|
|
4971
|
+
const peg$e14 = peg$otherExpectation("Whitespace");
|
|
4972
|
+
const peg$e15 = peg$classExpectation([" ", "\t"], false, false, false);
|
|
4973
|
+
const peg$e16 = peg$otherExpectation("One or more whitespaces");
|
|
4974
|
+
function peg$f0(formula, join) { return flat([[formula], join[0]], 1); }
|
|
4975
|
+
function peg$f1(eq, joins) { return flat([eq, flat(joins)]); }
|
|
4976
|
+
function peg$f2(comp, eq) { return [comp, eq]; }
|
|
4977
|
+
function peg$f3(comp, f) { return [comp, f]; }
|
|
4978
|
+
function peg$f4(fr, op, val) { return { fieldReference: fr, comparator: op, value: val }; }
|
|
4979
|
+
function peg$f5(c) { return c; }
|
|
4980
|
+
function peg$f6(c) { return c; }
|
|
4981
|
+
function peg$f7(l) { return l.join(""); }
|
|
4982
|
+
function peg$f8(v) { return v.join(""); }
|
|
4983
|
+
function peg$f9(v) { return parseInt(v.join("")); }
|
|
4984
|
+
function peg$f10(s1, fr, s2) { return s1 + fr + s2; }
|
|
4985
|
+
function peg$f11(characters) { return characters.join(""); }
|
|
4986
|
+
function peg$f12(val) { return val.join(""); }
|
|
4987
|
+
let peg$currPos = options.peg$currPos | 0;
|
|
4988
|
+
let peg$savedPos = peg$currPos;
|
|
4989
|
+
const peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
4990
|
+
let peg$maxFailPos = peg$currPos;
|
|
4991
|
+
let peg$maxFailExpected = options.peg$maxFailExpected || [];
|
|
4992
|
+
let peg$silentFails = options.peg$silentFails | 0;
|
|
4993
|
+
let peg$result;
|
|
4994
|
+
if (options.startRule) {
|
|
4995
|
+
if (!(options.startRule in peg$startRuleFunctions)) {
|
|
4996
|
+
throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
|
|
4997
|
+
}
|
|
4998
|
+
peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
|
|
4999
|
+
}
|
|
5000
|
+
function text() {
|
|
5001
|
+
return input.substring(peg$savedPos, peg$currPos);
|
|
5002
|
+
}
|
|
5003
|
+
function offset() {
|
|
5004
|
+
return peg$savedPos;
|
|
5005
|
+
}
|
|
5006
|
+
function range() {
|
|
5007
|
+
return {
|
|
5008
|
+
source: peg$source,
|
|
5009
|
+
start: peg$savedPos,
|
|
5010
|
+
end: peg$currPos,
|
|
5011
|
+
};
|
|
5012
|
+
}
|
|
5013
|
+
function location() {
|
|
5014
|
+
return peg$computeLocation(peg$savedPos, peg$currPos);
|
|
5015
|
+
}
|
|
5016
|
+
function expected(description, location) {
|
|
5017
|
+
location = location !== undefined
|
|
5018
|
+
? location
|
|
5019
|
+
: peg$computeLocation(peg$savedPos, peg$currPos);
|
|
5020
|
+
throw peg$buildStructuredError([peg$otherExpectation(description)], input.substring(peg$savedPos, peg$currPos), location);
|
|
5021
|
+
}
|
|
5022
|
+
function error(message, location) {
|
|
5023
|
+
location = location !== undefined
|
|
5024
|
+
? location
|
|
5025
|
+
: peg$computeLocation(peg$savedPos, peg$currPos);
|
|
5026
|
+
throw peg$buildSimpleError(message, location);
|
|
5027
|
+
}
|
|
5028
|
+
function peg$getUnicode(pos = peg$currPos) {
|
|
5029
|
+
const cp = input.codePointAt(pos);
|
|
5030
|
+
if (cp === undefined) {
|
|
5031
|
+
return "";
|
|
5032
|
+
}
|
|
5033
|
+
return String.fromCodePoint(cp);
|
|
5034
|
+
}
|
|
5035
|
+
function peg$literalExpectation(text, ignoreCase) {
|
|
5036
|
+
return { type: "literal", text, ignoreCase };
|
|
5037
|
+
}
|
|
5038
|
+
function peg$classExpectation(parts, inverted, ignoreCase, unicode) {
|
|
5039
|
+
return { type: "class", parts, inverted, ignoreCase, unicode };
|
|
5040
|
+
}
|
|
5041
|
+
function peg$anyExpectation() {
|
|
5042
|
+
return { type: "any" };
|
|
5043
|
+
}
|
|
5044
|
+
function peg$endExpectation() {
|
|
5045
|
+
return { type: "end" };
|
|
5046
|
+
}
|
|
5047
|
+
function peg$otherExpectation(description) {
|
|
5048
|
+
return { type: "other", description };
|
|
5049
|
+
}
|
|
5050
|
+
function peg$computePosDetails(pos) {
|
|
5051
|
+
let details = peg$posDetailsCache[pos];
|
|
5052
|
+
let p;
|
|
5053
|
+
if (details) {
|
|
5054
|
+
return details;
|
|
5055
|
+
}
|
|
5056
|
+
else {
|
|
5057
|
+
if (pos >= peg$posDetailsCache.length) {
|
|
5058
|
+
p = peg$posDetailsCache.length - 1;
|
|
5059
|
+
}
|
|
5060
|
+
else {
|
|
5061
|
+
p = pos;
|
|
5062
|
+
while (!peg$posDetailsCache[--p]) { }
|
|
5063
|
+
}
|
|
5064
|
+
details = peg$posDetailsCache[p];
|
|
5065
|
+
details = {
|
|
5066
|
+
line: details.line,
|
|
5067
|
+
column: details.column,
|
|
5068
|
+
};
|
|
5069
|
+
while (p < pos) {
|
|
5070
|
+
if (input.charCodeAt(p) === 10) {
|
|
5071
|
+
details.line++;
|
|
5072
|
+
details.column = 1;
|
|
5073
|
+
}
|
|
5074
|
+
else {
|
|
5075
|
+
details.column++;
|
|
5076
|
+
}
|
|
5077
|
+
p++;
|
|
5078
|
+
}
|
|
5079
|
+
peg$posDetailsCache[pos] = details;
|
|
5080
|
+
return details;
|
|
5081
|
+
}
|
|
5082
|
+
}
|
|
5083
|
+
function peg$computeLocation(startPos, endPos, offset) {
|
|
5084
|
+
const startPosDetails = peg$computePosDetails(startPos);
|
|
5085
|
+
const endPosDetails = peg$computePosDetails(endPos);
|
|
5086
|
+
const res = {
|
|
5087
|
+
source: peg$source,
|
|
5088
|
+
start: {
|
|
5089
|
+
offset: startPos,
|
|
5090
|
+
line: startPosDetails.line,
|
|
5091
|
+
column: startPosDetails.column,
|
|
5092
|
+
},
|
|
5093
|
+
end: {
|
|
5094
|
+
offset: endPos,
|
|
5095
|
+
line: endPosDetails.line,
|
|
5096
|
+
column: endPosDetails.column,
|
|
5097
|
+
},
|
|
5098
|
+
};
|
|
5099
|
+
if (offset && peg$source && (typeof peg$source.offset === "function")) {
|
|
5100
|
+
res.start = peg$source.offset(res.start);
|
|
5101
|
+
res.end = peg$source.offset(res.end);
|
|
5102
|
+
}
|
|
5103
|
+
return res;
|
|
5104
|
+
}
|
|
5105
|
+
function peg$fail(expected) {
|
|
5106
|
+
if (peg$currPos < peg$maxFailPos) {
|
|
5107
|
+
return;
|
|
5108
|
+
}
|
|
5109
|
+
if (peg$currPos > peg$maxFailPos) {
|
|
5110
|
+
peg$maxFailPos = peg$currPos;
|
|
5111
|
+
peg$maxFailExpected = [];
|
|
5112
|
+
}
|
|
5113
|
+
peg$maxFailExpected.push(expected);
|
|
5114
|
+
}
|
|
5115
|
+
function peg$buildSimpleError(message, location) {
|
|
5116
|
+
return new peg$SyntaxError(message, null, null, location);
|
|
5117
|
+
}
|
|
5118
|
+
function peg$buildStructuredError(expected, found, location) {
|
|
5119
|
+
return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected, found), expected, found, location);
|
|
5120
|
+
}
|
|
5121
|
+
function peg$parseStart() {
|
|
5122
|
+
let s0;
|
|
5123
|
+
s0 = peg$parseFormula();
|
|
5124
|
+
return s0;
|
|
5125
|
+
}
|
|
5126
|
+
function peg$parseFormula() {
|
|
5127
|
+
let s0;
|
|
5128
|
+
s0 = peg$parseEnclosedFormula();
|
|
5129
|
+
if (s0 === peg$FAILED) {
|
|
5130
|
+
s0 = peg$parseOpenFormula();
|
|
5131
|
+
}
|
|
5132
|
+
return s0;
|
|
5133
|
+
}
|
|
5134
|
+
function peg$parseEnclosedFormula() {
|
|
5135
|
+
let s0, s1, s2, s3, s4, s5;
|
|
5136
|
+
s0 = peg$currPos;
|
|
5137
|
+
s1 = peg$parsebracket();
|
|
5138
|
+
if (s1 !== peg$FAILED) {
|
|
5139
|
+
s2 = peg$parseOpenFormula();
|
|
5140
|
+
if (s2 !== peg$FAILED) {
|
|
5141
|
+
s3 = peg$parsebracket();
|
|
5142
|
+
if (s3 !== peg$FAILED) {
|
|
5143
|
+
s4 = [];
|
|
5144
|
+
s5 = peg$parseJoinComparator();
|
|
5145
|
+
while (s5 !== peg$FAILED) {
|
|
5146
|
+
s4.push(s5);
|
|
5147
|
+
s5 = peg$parseJoinComparator();
|
|
5148
|
+
}
|
|
5149
|
+
peg$savedPos = s0;
|
|
5150
|
+
s0 = peg$f0(s2, s4);
|
|
5151
|
+
}
|
|
5152
|
+
else {
|
|
5153
|
+
peg$currPos = s0;
|
|
5154
|
+
s0 = peg$FAILED;
|
|
5155
|
+
}
|
|
5156
|
+
}
|
|
5157
|
+
else {
|
|
5158
|
+
peg$currPos = s0;
|
|
5159
|
+
s0 = peg$FAILED;
|
|
5160
|
+
}
|
|
5161
|
+
}
|
|
5162
|
+
else {
|
|
5163
|
+
peg$currPos = s0;
|
|
5164
|
+
s0 = peg$FAILED;
|
|
5165
|
+
}
|
|
5166
|
+
return s0;
|
|
5167
|
+
}
|
|
5168
|
+
function peg$parseOpenFormula() {
|
|
5169
|
+
let s0, s1, s2, s3;
|
|
5170
|
+
s0 = peg$currPos;
|
|
5171
|
+
s1 = peg$parseOpenEqualityCheck();
|
|
5172
|
+
if (s1 !== peg$FAILED) {
|
|
5173
|
+
s2 = [];
|
|
5174
|
+
s3 = peg$parseJoinComparator();
|
|
5175
|
+
while (s3 !== peg$FAILED) {
|
|
5176
|
+
s2.push(s3);
|
|
5177
|
+
s3 = peg$parseJoinComparator();
|
|
5178
|
+
}
|
|
5179
|
+
peg$savedPos = s0;
|
|
5180
|
+
s0 = peg$f1(s1, s2);
|
|
5181
|
+
}
|
|
5182
|
+
else {
|
|
5183
|
+
peg$currPos = s0;
|
|
5184
|
+
s0 = peg$FAILED;
|
|
5185
|
+
}
|
|
5186
|
+
return s0;
|
|
5187
|
+
}
|
|
5188
|
+
function peg$parseJoinComparator() {
|
|
5189
|
+
let s0, s1, s2;
|
|
5190
|
+
s0 = peg$currPos;
|
|
5191
|
+
s1 = peg$parseComparator();
|
|
5192
|
+
if (s1 !== peg$FAILED) {
|
|
5193
|
+
s2 = peg$parseOpenEqualityCheck();
|
|
5194
|
+
if (s2 !== peg$FAILED) {
|
|
5195
|
+
peg$savedPos = s0;
|
|
5196
|
+
s0 = peg$f2(s1, s2);
|
|
5197
|
+
}
|
|
5198
|
+
else {
|
|
5199
|
+
peg$currPos = s0;
|
|
5200
|
+
s0 = peg$FAILED;
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5203
|
+
else {
|
|
5204
|
+
peg$currPos = s0;
|
|
5205
|
+
s0 = peg$FAILED;
|
|
5206
|
+
}
|
|
5207
|
+
if (s0 === peg$FAILED) {
|
|
5208
|
+
s0 = peg$parseCompoundJoinComparator();
|
|
5209
|
+
}
|
|
5210
|
+
return s0;
|
|
5211
|
+
}
|
|
5212
|
+
function peg$parseCompoundJoinComparator() {
|
|
5213
|
+
let s0, s1, s2, s3, s4;
|
|
5214
|
+
s0 = peg$currPos;
|
|
5215
|
+
s1 = peg$parseComparator();
|
|
5216
|
+
if (s1 !== peg$FAILED) {
|
|
5217
|
+
s2 = peg$parsebracket();
|
|
5218
|
+
if (s2 !== peg$FAILED) {
|
|
5219
|
+
s3 = peg$parseOpenFormula();
|
|
5220
|
+
if (s3 !== peg$FAILED) {
|
|
5221
|
+
s4 = peg$parsebracket();
|
|
5222
|
+
if (s4 !== peg$FAILED) {
|
|
5223
|
+
peg$savedPos = s0;
|
|
5224
|
+
s0 = peg$f3(s1, s3);
|
|
5225
|
+
}
|
|
5226
|
+
else {
|
|
5227
|
+
peg$currPos = s0;
|
|
5228
|
+
s0 = peg$FAILED;
|
|
5229
|
+
}
|
|
5230
|
+
}
|
|
5231
|
+
else {
|
|
5232
|
+
peg$currPos = s0;
|
|
5233
|
+
s0 = peg$FAILED;
|
|
5234
|
+
}
|
|
5235
|
+
}
|
|
5236
|
+
else {
|
|
5237
|
+
peg$currPos = s0;
|
|
5238
|
+
s0 = peg$FAILED;
|
|
5239
|
+
}
|
|
5240
|
+
}
|
|
5241
|
+
else {
|
|
5242
|
+
peg$currPos = s0;
|
|
5243
|
+
s0 = peg$FAILED;
|
|
5244
|
+
}
|
|
5245
|
+
return s0;
|
|
5246
|
+
}
|
|
5247
|
+
function peg$parseOpenEqualityCheck() {
|
|
5248
|
+
let s0, s1, s2, s3, s4, s5;
|
|
5249
|
+
s0 = peg$currPos;
|
|
5250
|
+
s1 = peg$parseFieldRef();
|
|
5251
|
+
if (s1 !== peg$FAILED) {
|
|
5252
|
+
s2 = peg$parse_();
|
|
5253
|
+
if (s2 === peg$FAILED) {
|
|
5254
|
+
s2 = null;
|
|
5255
|
+
}
|
|
5256
|
+
s3 = peg$parseoperator();
|
|
5257
|
+
if (s3 !== peg$FAILED) {
|
|
5258
|
+
s4 = peg$parse_();
|
|
5259
|
+
if (s4 === peg$FAILED) {
|
|
5260
|
+
s4 = null;
|
|
5261
|
+
}
|
|
5262
|
+
s5 = peg$parseValue();
|
|
5263
|
+
if (s5 !== peg$FAILED) {
|
|
5264
|
+
peg$savedPos = s0;
|
|
5265
|
+
s0 = peg$f4(s1, s3, s5);
|
|
5266
|
+
}
|
|
5267
|
+
else {
|
|
5268
|
+
peg$currPos = s0;
|
|
5269
|
+
s0 = peg$FAILED;
|
|
5270
|
+
}
|
|
5271
|
+
}
|
|
5272
|
+
else {
|
|
5273
|
+
peg$currPos = s0;
|
|
5274
|
+
s0 = peg$FAILED;
|
|
5275
|
+
}
|
|
5276
|
+
}
|
|
5277
|
+
else {
|
|
5278
|
+
peg$currPos = s0;
|
|
5279
|
+
s0 = peg$FAILED;
|
|
5280
|
+
}
|
|
5281
|
+
return s0;
|
|
5282
|
+
}
|
|
5283
|
+
function peg$parseComparator() {
|
|
5284
|
+
let s0, s1, s2, s3;
|
|
5285
|
+
s0 = peg$currPos;
|
|
5286
|
+
s1 = peg$parse_();
|
|
5287
|
+
if (s1 === peg$FAILED) {
|
|
5288
|
+
s1 = null;
|
|
5289
|
+
}
|
|
5290
|
+
if (input.substr(peg$currPos, 3) === peg$c0) {
|
|
5291
|
+
s2 = peg$c0;
|
|
5292
|
+
peg$currPos += 3;
|
|
5293
|
+
}
|
|
5294
|
+
else {
|
|
5295
|
+
s2 = peg$FAILED;
|
|
5296
|
+
if (peg$silentFails === 0) {
|
|
5297
|
+
peg$fail(peg$e0);
|
|
5298
|
+
}
|
|
5299
|
+
}
|
|
5300
|
+
if (s2 !== peg$FAILED) {
|
|
5301
|
+
s3 = peg$parse_();
|
|
5302
|
+
if (s3 === peg$FAILED) {
|
|
5303
|
+
s3 = null;
|
|
5304
|
+
}
|
|
5305
|
+
peg$savedPos = s0;
|
|
5306
|
+
s0 = peg$f5(s2);
|
|
5307
|
+
}
|
|
5308
|
+
else {
|
|
5309
|
+
peg$currPos = s0;
|
|
5310
|
+
s0 = peg$FAILED;
|
|
5311
|
+
}
|
|
5312
|
+
if (s0 === peg$FAILED) {
|
|
5313
|
+
s0 = peg$currPos;
|
|
5314
|
+
s1 = peg$parse_();
|
|
5315
|
+
if (s1 === peg$FAILED) {
|
|
5316
|
+
s1 = null;
|
|
5317
|
+
}
|
|
5318
|
+
if (input.substr(peg$currPos, 2) === peg$c1) {
|
|
5319
|
+
s2 = peg$c1;
|
|
5320
|
+
peg$currPos += 2;
|
|
5321
|
+
}
|
|
5322
|
+
else {
|
|
5323
|
+
s2 = peg$FAILED;
|
|
5324
|
+
if (peg$silentFails === 0) {
|
|
5325
|
+
peg$fail(peg$e1);
|
|
5326
|
+
}
|
|
5327
|
+
}
|
|
5328
|
+
if (s2 !== peg$FAILED) {
|
|
5329
|
+
s3 = peg$parse_();
|
|
5330
|
+
if (s3 === peg$FAILED) {
|
|
5331
|
+
s3 = null;
|
|
5332
|
+
}
|
|
5333
|
+
peg$savedPos = s0;
|
|
5334
|
+
s0 = peg$f6(s2);
|
|
5335
|
+
}
|
|
5336
|
+
else {
|
|
5337
|
+
peg$currPos = s0;
|
|
5338
|
+
s0 = peg$FAILED;
|
|
5339
|
+
}
|
|
5340
|
+
}
|
|
5341
|
+
return s0;
|
|
5342
|
+
}
|
|
5343
|
+
function peg$parseWord() {
|
|
5344
|
+
let s0, s1, s2;
|
|
5345
|
+
s0 = peg$currPos;
|
|
5346
|
+
s1 = [];
|
|
5347
|
+
s2 = peg$parseLetter();
|
|
5348
|
+
if (s2 !== peg$FAILED) {
|
|
5349
|
+
while (s2 !== peg$FAILED) {
|
|
5350
|
+
s1.push(s2);
|
|
5351
|
+
s2 = peg$parseLetter();
|
|
5352
|
+
}
|
|
5353
|
+
}
|
|
5354
|
+
else {
|
|
5355
|
+
s1 = peg$FAILED;
|
|
5356
|
+
}
|
|
5357
|
+
if (s1 !== peg$FAILED) {
|
|
5358
|
+
peg$savedPos = s0;
|
|
5359
|
+
s1 = peg$f7(s1);
|
|
5360
|
+
}
|
|
5361
|
+
s0 = s1;
|
|
5362
|
+
return s0;
|
|
5363
|
+
}
|
|
5364
|
+
function peg$parseLetter() {
|
|
5365
|
+
let s0;
|
|
5366
|
+
s0 = input.charAt(peg$currPos);
|
|
5367
|
+
if (peg$r0.test(s0)) {
|
|
5368
|
+
peg$currPos++;
|
|
5369
|
+
}
|
|
5370
|
+
else {
|
|
5371
|
+
s0 = peg$FAILED;
|
|
5372
|
+
if (peg$silentFails === 0) {
|
|
5373
|
+
peg$fail(peg$e2);
|
|
5374
|
+
}
|
|
5375
|
+
}
|
|
5376
|
+
return s0;
|
|
5377
|
+
}
|
|
5378
|
+
function peg$parseValue() {
|
|
5379
|
+
let s0, s1;
|
|
5380
|
+
s0 = peg$parsequotedValue();
|
|
5381
|
+
if (s0 === peg$FAILED) {
|
|
5382
|
+
s0 = peg$currPos;
|
|
5383
|
+
s1 = peg$parseWord();
|
|
5384
|
+
if (s1 !== peg$FAILED) {
|
|
5385
|
+
peg$savedPos = s0;
|
|
5386
|
+
s1 = peg$f8(s1);
|
|
5387
|
+
}
|
|
5388
|
+
s0 = s1;
|
|
5389
|
+
if (s0 === peg$FAILED) {
|
|
5390
|
+
s0 = peg$currPos;
|
|
5391
|
+
s1 = peg$parsenumber();
|
|
5392
|
+
if (s1 !== peg$FAILED) {
|
|
5393
|
+
peg$savedPos = s0;
|
|
5394
|
+
s1 = peg$f9(s1);
|
|
5395
|
+
}
|
|
5396
|
+
s0 = s1;
|
|
5397
|
+
}
|
|
5398
|
+
}
|
|
5399
|
+
return s0;
|
|
5400
|
+
}
|
|
5401
|
+
function peg$parseFieldRef() {
|
|
5402
|
+
let s0;
|
|
5403
|
+
s0 = peg$parseFieldReference();
|
|
5404
|
+
if (s0 === peg$FAILED) {
|
|
5405
|
+
s0 = peg$parseMetadataFieldReference();
|
|
5406
|
+
}
|
|
5407
|
+
return s0;
|
|
5408
|
+
}
|
|
5409
|
+
function peg$parseMetadataFieldReference() {
|
|
5410
|
+
let s0, s1, s2, s3;
|
|
5411
|
+
s0 = peg$currPos;
|
|
5412
|
+
s1 = peg$parseopenSquare();
|
|
5413
|
+
if (s1 !== peg$FAILED) {
|
|
5414
|
+
s2 = peg$parseFieldReference();
|
|
5415
|
+
if (s2 !== peg$FAILED) {
|
|
5416
|
+
s3 = peg$parsecloseSquare();
|
|
5417
|
+
if (s3 !== peg$FAILED) {
|
|
5418
|
+
peg$savedPos = s0;
|
|
5419
|
+
s0 = peg$f10(s1, s2, s3);
|
|
5420
|
+
}
|
|
5421
|
+
else {
|
|
5422
|
+
peg$currPos = s0;
|
|
5423
|
+
s0 = peg$FAILED;
|
|
5424
|
+
}
|
|
5425
|
+
}
|
|
5426
|
+
else {
|
|
5427
|
+
peg$currPos = s0;
|
|
5428
|
+
s0 = peg$FAILED;
|
|
5429
|
+
}
|
|
5430
|
+
}
|
|
5431
|
+
else {
|
|
5432
|
+
peg$currPos = s0;
|
|
5433
|
+
s0 = peg$FAILED;
|
|
5434
|
+
}
|
|
5435
|
+
return s0;
|
|
5436
|
+
}
|
|
5437
|
+
function peg$parseFieldReference() {
|
|
5438
|
+
let s0, s1, s2;
|
|
5439
|
+
s0 = peg$currPos;
|
|
5440
|
+
s1 = [];
|
|
5441
|
+
s2 = input.charAt(peg$currPos);
|
|
5442
|
+
if (peg$r1.test(s2)) {
|
|
5443
|
+
peg$currPos++;
|
|
5444
|
+
}
|
|
5445
|
+
else {
|
|
5446
|
+
s2 = peg$FAILED;
|
|
5447
|
+
if (peg$silentFails === 0) {
|
|
5448
|
+
peg$fail(peg$e3);
|
|
5449
|
+
}
|
|
5450
|
+
}
|
|
5451
|
+
if (s2 !== peg$FAILED) {
|
|
5452
|
+
while (s2 !== peg$FAILED) {
|
|
5453
|
+
s1.push(s2);
|
|
5454
|
+
s2 = input.charAt(peg$currPos);
|
|
5455
|
+
if (peg$r1.test(s2)) {
|
|
5456
|
+
peg$currPos++;
|
|
5457
|
+
}
|
|
5458
|
+
else {
|
|
5459
|
+
s2 = peg$FAILED;
|
|
5460
|
+
if (peg$silentFails === 0) {
|
|
5461
|
+
peg$fail(peg$e3);
|
|
5462
|
+
}
|
|
5463
|
+
}
|
|
5464
|
+
}
|
|
5465
|
+
}
|
|
5466
|
+
else {
|
|
5467
|
+
s1 = peg$FAILED;
|
|
5468
|
+
}
|
|
5469
|
+
if (s1 !== peg$FAILED) {
|
|
5470
|
+
peg$savedPos = s0;
|
|
5471
|
+
s1 = peg$f11(s1);
|
|
5472
|
+
}
|
|
5473
|
+
s0 = s1;
|
|
5474
|
+
return s0;
|
|
5475
|
+
}
|
|
5476
|
+
function peg$parseopenSquare() {
|
|
5477
|
+
let s0;
|
|
5478
|
+
if (input.charCodeAt(peg$currPos) === 91) {
|
|
5479
|
+
s0 = peg$c2;
|
|
5480
|
+
peg$currPos++;
|
|
5481
|
+
}
|
|
5482
|
+
else {
|
|
5483
|
+
s0 = peg$FAILED;
|
|
5484
|
+
if (peg$silentFails === 0) {
|
|
5485
|
+
peg$fail(peg$e4);
|
|
5486
|
+
}
|
|
5487
|
+
}
|
|
5488
|
+
return s0;
|
|
5489
|
+
}
|
|
5490
|
+
function peg$parsecloseSquare() {
|
|
5491
|
+
let s0;
|
|
5492
|
+
if (input.charCodeAt(peg$currPos) === 93) {
|
|
5493
|
+
s0 = peg$c3;
|
|
5494
|
+
peg$currPos++;
|
|
5495
|
+
}
|
|
5496
|
+
else {
|
|
5497
|
+
s0 = peg$FAILED;
|
|
5498
|
+
if (peg$silentFails === 0) {
|
|
5499
|
+
peg$fail(peg$e5);
|
|
5500
|
+
}
|
|
5501
|
+
}
|
|
5502
|
+
return s0;
|
|
5503
|
+
}
|
|
5504
|
+
function peg$parsenumber() {
|
|
5505
|
+
let s0, s1;
|
|
5506
|
+
s0 = [];
|
|
5507
|
+
s1 = input.charAt(peg$currPos);
|
|
5508
|
+
if (peg$r2.test(s1)) {
|
|
5509
|
+
peg$currPos++;
|
|
5510
|
+
}
|
|
5511
|
+
else {
|
|
5512
|
+
s1 = peg$FAILED;
|
|
5513
|
+
if (peg$silentFails === 0) {
|
|
5514
|
+
peg$fail(peg$e6);
|
|
5515
|
+
}
|
|
5516
|
+
}
|
|
5517
|
+
if (s1 !== peg$FAILED) {
|
|
5518
|
+
while (s1 !== peg$FAILED) {
|
|
5519
|
+
s0.push(s1);
|
|
5520
|
+
s1 = input.charAt(peg$currPos);
|
|
5521
|
+
if (peg$r2.test(s1)) {
|
|
5522
|
+
peg$currPos++;
|
|
5523
|
+
}
|
|
5524
|
+
else {
|
|
5525
|
+
s1 = peg$FAILED;
|
|
5526
|
+
if (peg$silentFails === 0) {
|
|
5527
|
+
peg$fail(peg$e6);
|
|
5528
|
+
}
|
|
5529
|
+
}
|
|
5530
|
+
}
|
|
5531
|
+
}
|
|
5532
|
+
else {
|
|
5533
|
+
s0 = peg$FAILED;
|
|
5534
|
+
}
|
|
5535
|
+
return s0;
|
|
5536
|
+
}
|
|
5537
|
+
function peg$parsequotedValue() {
|
|
5538
|
+
let s0, s1, s2, s3;
|
|
5539
|
+
s0 = peg$currPos;
|
|
5540
|
+
if (input.charCodeAt(peg$currPos) === 34) {
|
|
5541
|
+
s1 = peg$c4;
|
|
5542
|
+
peg$currPos++;
|
|
5543
|
+
}
|
|
5544
|
+
else {
|
|
5545
|
+
s1 = peg$FAILED;
|
|
5546
|
+
if (peg$silentFails === 0) {
|
|
5547
|
+
peg$fail(peg$e7);
|
|
5548
|
+
}
|
|
5549
|
+
}
|
|
5550
|
+
if (s1 !== peg$FAILED) {
|
|
5551
|
+
s2 = [];
|
|
5552
|
+
s3 = input.charAt(peg$currPos);
|
|
5553
|
+
if (peg$r3.test(s3)) {
|
|
5554
|
+
peg$currPos++;
|
|
5555
|
+
}
|
|
5556
|
+
else {
|
|
5557
|
+
s3 = peg$FAILED;
|
|
5558
|
+
if (peg$silentFails === 0) {
|
|
5559
|
+
peg$fail(peg$e8);
|
|
5560
|
+
}
|
|
5561
|
+
}
|
|
5562
|
+
while (s3 !== peg$FAILED) {
|
|
5563
|
+
s2.push(s3);
|
|
5564
|
+
s3 = input.charAt(peg$currPos);
|
|
5565
|
+
if (peg$r3.test(s3)) {
|
|
5566
|
+
peg$currPos++;
|
|
5567
|
+
}
|
|
5568
|
+
else {
|
|
5569
|
+
s3 = peg$FAILED;
|
|
5570
|
+
if (peg$silentFails === 0) {
|
|
5571
|
+
peg$fail(peg$e8);
|
|
5572
|
+
}
|
|
5573
|
+
}
|
|
5574
|
+
}
|
|
5575
|
+
if (input.charCodeAt(peg$currPos) === 34) {
|
|
5576
|
+
s3 = peg$c4;
|
|
5577
|
+
peg$currPos++;
|
|
5578
|
+
}
|
|
5579
|
+
else {
|
|
5580
|
+
s3 = peg$FAILED;
|
|
5581
|
+
if (peg$silentFails === 0) {
|
|
5582
|
+
peg$fail(peg$e7);
|
|
5583
|
+
}
|
|
5584
|
+
}
|
|
5585
|
+
if (s3 !== peg$FAILED) {
|
|
5586
|
+
peg$savedPos = s0;
|
|
5587
|
+
s0 = peg$f12(s2);
|
|
5588
|
+
}
|
|
5589
|
+
else {
|
|
5590
|
+
peg$currPos = s0;
|
|
5591
|
+
s0 = peg$FAILED;
|
|
5592
|
+
}
|
|
5593
|
+
}
|
|
5594
|
+
else {
|
|
5595
|
+
peg$currPos = s0;
|
|
5596
|
+
s0 = peg$FAILED;
|
|
5597
|
+
}
|
|
5598
|
+
return s0;
|
|
5599
|
+
}
|
|
5600
|
+
function peg$parsebracket() {
|
|
5601
|
+
let s0, s1, s2, s3;
|
|
5602
|
+
s0 = peg$currPos;
|
|
5603
|
+
s1 = peg$parse_();
|
|
5604
|
+
if (s1 === peg$FAILED) {
|
|
5605
|
+
s1 = null;
|
|
5606
|
+
}
|
|
5607
|
+
s2 = [];
|
|
5608
|
+
if (input.charCodeAt(peg$currPos) === 40) {
|
|
5609
|
+
s3 = peg$c5;
|
|
5610
|
+
peg$currPos++;
|
|
5611
|
+
}
|
|
5612
|
+
else {
|
|
5613
|
+
s3 = peg$FAILED;
|
|
5614
|
+
if (peg$silentFails === 0) {
|
|
5615
|
+
peg$fail(peg$e9);
|
|
5616
|
+
}
|
|
5617
|
+
}
|
|
5618
|
+
if (s3 !== peg$FAILED) {
|
|
5619
|
+
while (s3 !== peg$FAILED) {
|
|
5620
|
+
s2.push(s3);
|
|
5621
|
+
if (input.charCodeAt(peg$currPos) === 40) {
|
|
5622
|
+
s3 = peg$c5;
|
|
5623
|
+
peg$currPos++;
|
|
5624
|
+
}
|
|
5625
|
+
else {
|
|
5626
|
+
s3 = peg$FAILED;
|
|
5627
|
+
if (peg$silentFails === 0) {
|
|
5628
|
+
peg$fail(peg$e9);
|
|
5629
|
+
}
|
|
5630
|
+
}
|
|
5631
|
+
}
|
|
5632
|
+
}
|
|
5633
|
+
else {
|
|
5634
|
+
s2 = peg$FAILED;
|
|
5635
|
+
}
|
|
5636
|
+
if (s2 !== peg$FAILED) {
|
|
5637
|
+
s3 = peg$parse_();
|
|
5638
|
+
if (s3 === peg$FAILED) {
|
|
5639
|
+
s3 = null;
|
|
5640
|
+
}
|
|
5641
|
+
s1 = [s1, s2, s3];
|
|
5642
|
+
s0 = s1;
|
|
5643
|
+
}
|
|
5644
|
+
else {
|
|
5645
|
+
peg$currPos = s0;
|
|
5646
|
+
s0 = peg$FAILED;
|
|
5647
|
+
}
|
|
5648
|
+
if (s0 === peg$FAILED) {
|
|
5649
|
+
s0 = peg$currPos;
|
|
5650
|
+
s1 = peg$parse_();
|
|
5651
|
+
if (s1 === peg$FAILED) {
|
|
5652
|
+
s1 = null;
|
|
5653
|
+
}
|
|
5654
|
+
s2 = [];
|
|
5655
|
+
if (input.charCodeAt(peg$currPos) === 41) {
|
|
5656
|
+
s3 = peg$c6;
|
|
5657
|
+
peg$currPos++;
|
|
5658
|
+
}
|
|
5659
|
+
else {
|
|
5660
|
+
s3 = peg$FAILED;
|
|
5661
|
+
if (peg$silentFails === 0) {
|
|
5662
|
+
peg$fail(peg$e10);
|
|
5663
|
+
}
|
|
5664
|
+
}
|
|
5665
|
+
if (s3 !== peg$FAILED) {
|
|
5666
|
+
while (s3 !== peg$FAILED) {
|
|
5667
|
+
s2.push(s3);
|
|
5668
|
+
if (input.charCodeAt(peg$currPos) === 41) {
|
|
5669
|
+
s3 = peg$c6;
|
|
5670
|
+
peg$currPos++;
|
|
5671
|
+
}
|
|
5672
|
+
else {
|
|
5673
|
+
s3 = peg$FAILED;
|
|
5674
|
+
if (peg$silentFails === 0) {
|
|
5675
|
+
peg$fail(peg$e10);
|
|
5676
|
+
}
|
|
5677
|
+
}
|
|
5678
|
+
}
|
|
5679
|
+
}
|
|
5680
|
+
else {
|
|
5681
|
+
s2 = peg$FAILED;
|
|
5682
|
+
}
|
|
5683
|
+
if (s2 !== peg$FAILED) {
|
|
5684
|
+
s3 = peg$parse_();
|
|
5685
|
+
if (s3 === peg$FAILED) {
|
|
5686
|
+
s3 = null;
|
|
5687
|
+
}
|
|
5688
|
+
s1 = [s1, s2, s3];
|
|
5689
|
+
s0 = s1;
|
|
5690
|
+
}
|
|
5691
|
+
else {
|
|
5692
|
+
peg$currPos = s0;
|
|
5693
|
+
s0 = peg$FAILED;
|
|
5694
|
+
}
|
|
5695
|
+
}
|
|
5696
|
+
return s0;
|
|
5697
|
+
}
|
|
5698
|
+
function peg$parseoperator() {
|
|
5699
|
+
let s0;
|
|
5700
|
+
if (input.charCodeAt(peg$currPos) === 61) {
|
|
5701
|
+
s0 = peg$c7;
|
|
5702
|
+
peg$currPos++;
|
|
5703
|
+
}
|
|
5704
|
+
else {
|
|
5705
|
+
s0 = peg$FAILED;
|
|
5706
|
+
if (peg$silentFails === 0) {
|
|
5707
|
+
peg$fail(peg$e11);
|
|
5708
|
+
}
|
|
5709
|
+
}
|
|
5710
|
+
if (s0 === peg$FAILED) {
|
|
5711
|
+
if (input.substr(peg$currPos, 2) === peg$c8) {
|
|
5712
|
+
s0 = peg$c8;
|
|
5713
|
+
peg$currPos += 2;
|
|
5714
|
+
}
|
|
5715
|
+
else {
|
|
5716
|
+
s0 = peg$FAILED;
|
|
5717
|
+
if (peg$silentFails === 0) {
|
|
5718
|
+
peg$fail(peg$e12);
|
|
5719
|
+
}
|
|
5720
|
+
}
|
|
5721
|
+
if (s0 === peg$FAILED) {
|
|
5722
|
+
if (input.substr(peg$currPos, 8) === peg$c9) {
|
|
5723
|
+
s0 = peg$c9;
|
|
5724
|
+
peg$currPos += 8;
|
|
5725
|
+
}
|
|
5726
|
+
else {
|
|
5727
|
+
s0 = peg$FAILED;
|
|
5728
|
+
if (peg$silentFails === 0) {
|
|
5729
|
+
peg$fail(peg$e13);
|
|
5730
|
+
}
|
|
5731
|
+
}
|
|
5732
|
+
}
|
|
5733
|
+
}
|
|
5734
|
+
return s0;
|
|
5735
|
+
}
|
|
5736
|
+
function peg$parsews() {
|
|
5737
|
+
let s0, s1;
|
|
5738
|
+
peg$silentFails++;
|
|
5739
|
+
s0 = input.charAt(peg$currPos);
|
|
5740
|
+
if (peg$r4.test(s0)) {
|
|
5741
|
+
peg$currPos++;
|
|
5742
|
+
}
|
|
5743
|
+
else {
|
|
5744
|
+
s0 = peg$FAILED;
|
|
5745
|
+
if (peg$silentFails === 0) {
|
|
5746
|
+
peg$fail(peg$e15);
|
|
5747
|
+
}
|
|
5748
|
+
}
|
|
5749
|
+
peg$silentFails--;
|
|
5750
|
+
if (s0 === peg$FAILED) {
|
|
5751
|
+
s1 = peg$FAILED;
|
|
5752
|
+
if (peg$silentFails === 0) {
|
|
5753
|
+
peg$fail(peg$e14);
|
|
5754
|
+
}
|
|
5755
|
+
}
|
|
5756
|
+
return s0;
|
|
5757
|
+
}
|
|
5758
|
+
function peg$parse_() {
|
|
5759
|
+
let s0, s1;
|
|
5760
|
+
peg$silentFails++;
|
|
5761
|
+
s0 = [];
|
|
5762
|
+
s1 = peg$parsews();
|
|
5763
|
+
if (s1 !== peg$FAILED) {
|
|
5764
|
+
while (s1 !== peg$FAILED) {
|
|
5765
|
+
s0.push(s1);
|
|
5766
|
+
s1 = peg$parsews();
|
|
5767
|
+
}
|
|
5768
|
+
}
|
|
5769
|
+
else {
|
|
5770
|
+
s0 = peg$FAILED;
|
|
5771
|
+
}
|
|
5772
|
+
peg$silentFails--;
|
|
5773
|
+
if (s0 === peg$FAILED) {
|
|
5774
|
+
s1 = peg$FAILED;
|
|
5775
|
+
if (peg$silentFails === 0) {
|
|
5776
|
+
peg$fail(peg$e16);
|
|
5777
|
+
}
|
|
5778
|
+
}
|
|
5779
|
+
return s0;
|
|
5780
|
+
}
|
|
4804
5781
|
function flat(arr, depth = 1) {
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
5782
|
+
var flatten = function (arr, depth = 1) {
|
|
5783
|
+
if (depth)
|
|
5784
|
+
return arr;
|
|
5785
|
+
// Otherwise, concatenate into the parent array
|
|
5786
|
+
return arr.reduce(function (acc, val) {
|
|
5787
|
+
return acc.concat(Array.isArray(val) ? flatten(val, depth - 1) : val);
|
|
5788
|
+
}, []);
|
|
5789
|
+
};
|
|
5790
|
+
return flatten(arr, depth - 1);
|
|
5791
|
+
}
|
|
5792
|
+
peg$result = peg$startRuleFunction();
|
|
5793
|
+
const peg$success = (peg$result !== peg$FAILED && peg$currPos === input.length);
|
|
5794
|
+
function peg$throw() {
|
|
5795
|
+
if (peg$result !== peg$FAILED && peg$currPos < input.length) {
|
|
5796
|
+
peg$fail(peg$endExpectation());
|
|
5797
|
+
}
|
|
5798
|
+
throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? peg$getUnicode(peg$maxFailPos) : null, peg$maxFailPos < input.length
|
|
5799
|
+
? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)
|
|
5800
|
+
: peg$computeLocation(peg$maxFailPos, peg$maxFailPos));
|
|
5801
|
+
}
|
|
5802
|
+
if (options.peg$library) {
|
|
5803
|
+
return /** @type {any} */ ({
|
|
5804
|
+
peg$result,
|
|
5805
|
+
peg$currPos,
|
|
5806
|
+
peg$FAILED,
|
|
5807
|
+
peg$maxFailExpected,
|
|
5808
|
+
peg$maxFailPos,
|
|
5809
|
+
peg$success,
|
|
5810
|
+
peg$throw: peg$success ? undefined : peg$throw,
|
|
5811
|
+
});
|
|
4816
5812
|
}
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
= bracket formula:OpenFormula bracket join:(JoinComparator)*
|
|
4828
|
-
{ return flat([ [formula], join[0] ], 1) }
|
|
4829
|
-
|
|
4830
|
-
OpenFormula
|
|
4831
|
-
= eq:OpenEqualityCheck joins:(JoinComparator)*
|
|
4832
|
-
{ return flat([ eq, flat(joins) ]) }
|
|
4833
|
-
|
|
4834
|
-
JoinComparator
|
|
4835
|
-
= comp:Comparator eq:OpenEqualityCheck
|
|
4836
|
-
{ return [comp, eq]; }
|
|
4837
|
-
/ CompoundJoinComparator
|
|
4838
|
-
|
|
4839
|
-
CompoundJoinComparator
|
|
4840
|
-
= comp:Comparator bracket f:OpenFormula bracket
|
|
4841
|
-
{ return [comp, f ] }
|
|
4842
|
-
|
|
4843
|
-
OpenEqualityCheck
|
|
4844
|
-
= fr:FieldRef _? op:operator _? val:Value
|
|
4845
|
-
{ return { fieldReference: fr, comparator: op, value: val } }
|
|
4846
|
-
|
|
4847
|
-
Comparator
|
|
4848
|
-
= _? c:'AND' _?
|
|
4849
|
-
{ return c; }
|
|
4850
|
-
/ _? c:'OR' _?
|
|
4851
|
-
{ return c; }
|
|
4852
|
-
|
|
4853
|
-
Word
|
|
4854
|
-
= l:Letter+
|
|
4855
|
-
{ return l.join(""); }
|
|
4856
|
-
|
|
4857
|
-
Letter
|
|
4858
|
-
= [a-zA-Z]
|
|
4859
|
-
|
|
4860
|
-
Value
|
|
4861
|
-
= v:quotedValue / v:Word
|
|
4862
|
-
{ return v.join("") }
|
|
4863
|
-
/ v:number
|
|
4864
|
-
{ return parseInt(v.join("")) }
|
|
4865
|
-
|
|
4866
|
-
FieldRef
|
|
4867
|
-
= FieldReference / MetadataFieldReference
|
|
4868
|
-
|
|
4869
|
-
MetadataFieldReference
|
|
4870
|
-
= s1:openSquare fr:FieldReference s2:closeSquare
|
|
4871
|
-
{ return s1 + fr + s2 }
|
|
4872
|
-
|
|
4873
|
-
FieldReference
|
|
4874
|
-
= characters:[A-Za-z0-9._-]+ { return characters.join(""); }
|
|
4875
|
-
|
|
4876
|
-
openSquare
|
|
4877
|
-
= "["
|
|
4878
|
-
|
|
4879
|
-
closeSquare
|
|
4880
|
-
= "]"
|
|
4881
|
-
|
|
4882
|
-
number
|
|
4883
|
-
= [0-9]+
|
|
4884
|
-
|
|
4885
|
-
quotedValue
|
|
4886
|
-
= '"'val:[A-Za-z0-9.,* _&()/-]*'"'
|
|
4887
|
-
{ return val.join(""); }
|
|
4888
|
-
|
|
4889
|
-
bracket
|
|
4890
|
-
= (_? "("+ _? / _? ")"+ _? )
|
|
4891
|
-
|
|
4892
|
-
operator
|
|
4893
|
-
= "=" / "!=" / "CONTAINS"
|
|
4894
|
-
|
|
4895
|
-
ws "Whitespace"
|
|
4896
|
-
= [ \t]
|
|
4897
|
-
|
|
4898
|
-
_ "One or more whitespaces"
|
|
4899
|
-
= ws+
|
|
5813
|
+
if (peg$success) {
|
|
5814
|
+
return peg$result;
|
|
5815
|
+
}
|
|
5816
|
+
else {
|
|
5817
|
+
peg$throw();
|
|
5818
|
+
}
|
|
5819
|
+
}
|
|
5820
|
+
const peg$allowedStartRules = [
|
|
5821
|
+
"Start"
|
|
5822
|
+
];
|
|
4900
5823
|
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
5824
|
+
var parser = /*#__PURE__*/Object.freeze({
|
|
5825
|
+
__proto__: null,
|
|
5826
|
+
StartRules: peg$allowedStartRules,
|
|
5827
|
+
SyntaxError: peg$SyntaxError,
|
|
5828
|
+
parse: peg$parse
|
|
5829
|
+
});
|
|
4904
5830
|
|
|
4905
5831
|
class ConditionParser {
|
|
4906
5832
|
static logger = new StructuredLoggerService();
|
|
@@ -4914,7 +5840,7 @@ class ConditionParser {
|
|
|
4914
5840
|
return null;
|
|
4915
5841
|
}
|
|
4916
5842
|
condition = condition.replace(/CONTAINS/g, ' CONTAINS');
|
|
4917
|
-
return
|
|
5843
|
+
return parser.parse(condition.trim(), {});
|
|
4918
5844
|
}
|
|
4919
5845
|
/**
|
|
4920
5846
|
* Evaluate the current fields against the conditions
|
|
@@ -8403,6 +9329,26 @@ class WindowService {
|
|
|
8403
9329
|
type: Injectable
|
|
8404
9330
|
}], null, null); })();
|
|
8405
9331
|
|
|
9332
|
+
class FocusService {
|
|
9333
|
+
/** unique ID of DOM element this service will focus on */
|
|
9334
|
+
elementIdToFocus = 'focusService-elementIdToFocus';
|
|
9335
|
+
/**
|
|
9336
|
+
* Focus on a specific element with the elementIdToFocus.
|
|
9337
|
+
* If there is no element in the DOM, no action is taken.
|
|
9338
|
+
*/
|
|
9339
|
+
focus() {
|
|
9340
|
+
const elementToFocus = document.getElementById(this.elementIdToFocus);
|
|
9341
|
+
if (elementToFocus) {
|
|
9342
|
+
elementToFocus.focus();
|
|
9343
|
+
}
|
|
9344
|
+
}
|
|
9345
|
+
static ɵfac = function FocusService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FocusService)(); };
|
|
9346
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FocusService, factory: FocusService.ɵfac });
|
|
9347
|
+
}
|
|
9348
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FocusService, [{
|
|
9349
|
+
type: Injectable
|
|
9350
|
+
}], null, null); })();
|
|
9351
|
+
|
|
8406
9352
|
class WorkbasketInputFilterService {
|
|
8407
9353
|
httpService;
|
|
8408
9354
|
appConfig;
|
|
@@ -9125,22 +10071,19 @@ class CaseworkerService {
|
|
|
9125
10071
|
|
|
9126
10072
|
class CaseNotifier {
|
|
9127
10073
|
casesService;
|
|
9128
|
-
caseFlagRefdataService;
|
|
9129
10074
|
static CASE_NAME = 'caseNameHmctsInternal';
|
|
9130
10075
|
static CASE_LOCATION = 'caseManagementLocation';
|
|
9131
10076
|
caseViewSource = new BehaviorSubject(new CaseView());
|
|
9132
|
-
hmctsServiceIdByCaseType = new Map();
|
|
9133
10077
|
caseView = this.caseViewSource.asObservable();
|
|
9134
10078
|
cachedCaseView;
|
|
9135
|
-
constructor(casesService
|
|
10079
|
+
constructor(casesService) {
|
|
9136
10080
|
this.casesService = casesService;
|
|
9137
|
-
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
9138
10081
|
}
|
|
9139
10082
|
removeCachedCase() {
|
|
9140
10083
|
this.cachedCaseView = null;
|
|
9141
10084
|
}
|
|
9142
10085
|
announceCase(c) {
|
|
9143
|
-
this.
|
|
10086
|
+
this.caseViewSource.next(c);
|
|
9144
10087
|
}
|
|
9145
10088
|
fetchAndRefresh(cid) {
|
|
9146
10089
|
return this.casesService
|
|
@@ -9148,10 +10091,8 @@ class CaseNotifier {
|
|
|
9148
10091
|
.pipe(map(caseView => {
|
|
9149
10092
|
this.cachedCaseView = plainToClassFromExist(new CaseView(), caseView);
|
|
9150
10093
|
this.setBasicFields(this.cachedCaseView.tabs);
|
|
10094
|
+
this.announceCase(this.cachedCaseView);
|
|
9151
10095
|
return this.cachedCaseView;
|
|
9152
|
-
}), switchMap(caseView => this.resolveHmctsServiceId(caseView)), map(caseView => {
|
|
9153
|
-
this.announceCase(caseView);
|
|
9154
|
-
return caseView;
|
|
9155
10096
|
}));
|
|
9156
10097
|
}
|
|
9157
10098
|
setBasicFields(tabs) {
|
|
@@ -9166,32 +10107,12 @@ class CaseNotifier {
|
|
|
9166
10107
|
}
|
|
9167
10108
|
});
|
|
9168
10109
|
}
|
|
9169
|
-
|
|
9170
|
-
const caseTypeId = caseView?.case_type?.id;
|
|
9171
|
-
if (!caseTypeId || !this.caseFlagRefdataService) {
|
|
9172
|
-
return of(caseView);
|
|
9173
|
-
}
|
|
9174
|
-
if (this.hmctsServiceIdByCaseType.has(caseTypeId)) {
|
|
9175
|
-
caseView.hmctsServiceId = this.hmctsServiceIdByCaseType.get(caseTypeId);
|
|
9176
|
-
return of(caseView);
|
|
9177
|
-
}
|
|
9178
|
-
return this.caseFlagRefdataService.getHmctsServiceDetailsByCaseType(caseTypeId).pipe(map((serviceDetails) => {
|
|
9179
|
-
const hmctsServiceId = serviceDetails?.find((serviceDetail) => !!serviceDetail.service_code)?.service_code;
|
|
9180
|
-
if (hmctsServiceId) {
|
|
9181
|
-
this.hmctsServiceIdByCaseType.set(caseTypeId, hmctsServiceId);
|
|
9182
|
-
caseView.hmctsServiceId = hmctsServiceId;
|
|
9183
|
-
}
|
|
9184
|
-
return caseView;
|
|
9185
|
-
}), catchError(() => of(caseView)));
|
|
9186
|
-
}
|
|
9187
|
-
static ɵfac = function CaseNotifier_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseNotifier)(i0.ɵɵinject(CasesService), i0.ɵɵinject(CaseFlagRefdataService, 8)); };
|
|
10110
|
+
static ɵfac = function CaseNotifier_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseNotifier)(i0.ɵɵinject(CasesService)); };
|
|
9188
10111
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseNotifier, factory: CaseNotifier.ɵfac });
|
|
9189
10112
|
}
|
|
9190
10113
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseNotifier, [{
|
|
9191
10114
|
type: Injectable
|
|
9192
|
-
}], () => [{ type: CasesService },
|
|
9193
|
-
type: Optional
|
|
9194
|
-
}] }], null); })();
|
|
10115
|
+
}], () => [{ type: CasesService }], null); })();
|
|
9195
10116
|
|
|
9196
10117
|
var Permissions;
|
|
9197
10118
|
(function (Permissions) {
|
|
@@ -10190,7 +11111,7 @@ class CaseEditComponent {
|
|
|
10190
11111
|
return of(true);
|
|
10191
11112
|
}
|
|
10192
11113
|
finishEventCompletionLogic(eventResponse) {
|
|
10193
|
-
this.caseNotifier.
|
|
11114
|
+
this.caseNotifier.removeCachedCase();
|
|
10194
11115
|
this.sessionStorageService.removeItem('eventUrl');
|
|
10195
11116
|
const confirmation = this.buildConfirmation(eventResponse);
|
|
10196
11117
|
if (confirmation && (confirmation.getHeader() || confirmation.getBody())) {
|
|
@@ -10948,6 +11869,7 @@ function CaseEditFormComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
10948
11869
|
} }
|
|
10949
11870
|
class CaseEditFormComponent {
|
|
10950
11871
|
formValueService;
|
|
11872
|
+
conditionalShowFormDirectives;
|
|
10951
11873
|
fields = [];
|
|
10952
11874
|
formGroup;
|
|
10953
11875
|
caseFields = [];
|
|
@@ -10995,8 +11917,17 @@ class CaseEditFormComponent {
|
|
|
10995
11917
|
const current = JSON.stringify(this.formValueService.sanitise(changes));
|
|
10996
11918
|
this.initial !== current ? this.valuesChanged.emit(true) : this.valuesChanged.emit(false);
|
|
10997
11919
|
}
|
|
11920
|
+
// EXUI-4675 - needed for the race condition caused by the debounce in ConditionalShowFormDirective
|
|
11921
|
+
syncConditionalShowStates() {
|
|
11922
|
+
this.conditionalShowFormDirectives?.forEach(directive => directive.evalAllShowHideConditions());
|
|
11923
|
+
}
|
|
10998
11924
|
static ɵfac = function CaseEditFormComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseEditFormComponent)(i0.ɵɵdirectiveInject(FormValueService)); };
|
|
10999
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditFormComponent, selectors: [["ccd-case-edit-form"]],
|
|
11925
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditFormComponent, selectors: [["ccd-case-edit-form"]], viewQuery: function CaseEditFormComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11926
|
+
i0.ɵɵviewQuery(ConditionalShowFormDirective, 5);
|
|
11927
|
+
} if (rf & 2) {
|
|
11928
|
+
let _t;
|
|
11929
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.conditionalShowFormDirectives = _t);
|
|
11930
|
+
} }, inputs: { fields: "fields", formGroup: "formGroup", caseFields: "caseFields", pageChangeSubject: "pageChangeSubject" }, outputs: { valuesChanged: "valuesChanged" }, standalone: false, decls: 1, vars: 1, consts: [["CompoundRow", ""], ["ccdConditionalShowForm", "", 3, "formGroup", "caseFields", "contextFields", 4, "ngFor", "ngForOf"], ["ccdConditionalShowForm", "", 3, "formGroup", "caseFields", "contextFields"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], [3, "ngSwitch"], [3, "caseField", "caseFields", "withLabel", "formGroup", 4, "ngSwitchCase"], [4, "ngSwitchCase"], [3, "caseField", "caseFields", "withLabel", "formGroup"], [4, "ngIf", "ngIfElse"], [3, "caseField", "caseFields", "formGroup", "idPrefix", "hidden"]], template: function CaseEditFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11000
11931
|
i0.ɵɵtemplate(0, CaseEditFormComponent_ng_container_0_Template, 6, 11, "ng-container", 1);
|
|
11001
11932
|
} if (rf & 2) {
|
|
11002
11933
|
i0.ɵɵproperty("ngForOf", ctx.fields);
|
|
@@ -11005,7 +11936,10 @@ class CaseEditFormComponent {
|
|
|
11005
11936
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditFormComponent, [{
|
|
11006
11937
|
type: Component,
|
|
11007
11938
|
args: [{ selector: 'ccd-case-edit-form', standalone: false, template: "<ng-container ccdConditionalShowForm [formGroup]=\"formGroup\" [caseFields]=\"fields\" [contextFields]=\"caseFields\"\n *ngFor=\"let field of fields\">\n\n <div ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"formGroup\" [contextFields]=\"caseFields\">\n <ng-container [ngSwitch]=\"field | ccdIsReadOnlyAndNotCollection\">\n\n <ccd-field-read *ngSwitchCase=\"true\" [caseField]=\"field\" [caseFields]=\"caseFields\" [withLabel]=\"true\"\n [formGroup]=\"formGroup\" [attr.field_id]=\"field.id\"\n [attr.field_type]=\"field.field_type.type\"></ccd-field-read>\n <ng-container *ngSwitchCase=\"false\">\n\n <ng-container *ngIf=\"!(field | ccdIsCompound); else CompoundRow\">\n <ccd-field-write [caseField]=\"field\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [idPrefix]=\"\"\n [hidden]=\"field.hidden\"\n [attr.field_id]=\"field.id\"\n [attr.field_type]=\"field.field_type.type\">\n </ccd-field-write>\n </ng-container>\n\n <ng-template #CompoundRow>\n <ccd-field-write [caseField]=\"field\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [idPrefix]=\"field.id + '_'\"\n [hidden]=\"field.hidden\"\n [attr.field_id]=\"field.id\"\n [attr.field_type]=\"field.field_type.type\"></ccd-field-write>\n </ng-template>\n </ng-container>\n </ng-container>\n </div>\n</ng-container>\n" }]
|
|
11008
|
-
}], () => [{ type: FormValueService }], {
|
|
11939
|
+
}], () => [{ type: FormValueService }], { conditionalShowFormDirectives: [{
|
|
11940
|
+
type: ViewChildren,
|
|
11941
|
+
args: [ConditionalShowFormDirective]
|
|
11942
|
+
}], fields: [{
|
|
11009
11943
|
type: Input
|
|
11010
11944
|
}], formGroup: [{
|
|
11011
11945
|
type: Input
|
|
@@ -11016,7 +11950,7 @@ class CaseEditFormComponent {
|
|
|
11016
11950
|
}], valuesChanged: [{
|
|
11017
11951
|
type: Output
|
|
11018
11952
|
}] }); })();
|
|
11019
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditFormComponent, { className: "CaseEditFormComponent", filePath: "lib/shared/components/case-editor/case-edit-form/case-edit-form.component.ts", lineNumber:
|
|
11953
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditFormComponent, { className: "CaseEditFormComponent", filePath: "lib/shared/components/case-editor/case-edit-form/case-edit-form.component.ts", lineNumber: 14 }); })();
|
|
11020
11954
|
|
|
11021
11955
|
class CaseEditDataService {
|
|
11022
11956
|
details$ = new BehaviorSubject(null);
|
|
@@ -11521,6 +12455,7 @@ class CaseEditPageComponent {
|
|
|
11521
12455
|
addressService;
|
|
11522
12456
|
linkedCasesService;
|
|
11523
12457
|
caseFlagStateService;
|
|
12458
|
+
focusService;
|
|
11524
12459
|
static RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
|
|
11525
12460
|
static NEW_FORM_DISCARD = 'NEW_FORM_DISCARD';
|
|
11526
12461
|
static NEW_FORM_SAVE = 'NEW_FORM_CHANGED_SAVE';
|
|
@@ -11553,16 +12488,11 @@ class CaseEditPageComponent {
|
|
|
11553
12488
|
saveDraftSub;
|
|
11554
12489
|
caseFormValidationErrorsSub;
|
|
11555
12490
|
logger = new StructuredLoggerService();
|
|
12491
|
+
caseEditFormComponents;
|
|
11556
12492
|
static scrollToTop() {
|
|
11557
12493
|
window.scrollTo(0, 0);
|
|
11558
12494
|
}
|
|
11559
|
-
|
|
11560
|
-
const topContainer = document.getElementById('top');
|
|
11561
|
-
if (topContainer) {
|
|
11562
|
-
topContainer.focus();
|
|
11563
|
-
}
|
|
11564
|
-
}
|
|
11565
|
-
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService, multipageComponentStateService, addressService, linkedCasesService, caseFlagStateService) {
|
|
12495
|
+
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService, multipageComponentStateService, addressService, linkedCasesService, caseFlagStateService, focusService) {
|
|
11566
12496
|
this.caseEdit = caseEdit;
|
|
11567
12497
|
this.route = route;
|
|
11568
12498
|
this.formValueService = formValueService;
|
|
@@ -11578,6 +12508,7 @@ class CaseEditPageComponent {
|
|
|
11578
12508
|
this.addressService = addressService;
|
|
11579
12509
|
this.linkedCasesService = linkedCasesService;
|
|
11580
12510
|
this.caseFlagStateService = caseFlagStateService;
|
|
12511
|
+
this.focusService = focusService;
|
|
11581
12512
|
this.multipageComponentStateService.setInstigator(this);
|
|
11582
12513
|
}
|
|
11583
12514
|
onFinalNext() {
|
|
@@ -11642,7 +12573,7 @@ class CaseEditPageComponent {
|
|
|
11642
12573
|
}
|
|
11643
12574
|
this.triggerText = this.getTriggerText();
|
|
11644
12575
|
});
|
|
11645
|
-
|
|
12576
|
+
this.focusService.focus();
|
|
11646
12577
|
this.caseEditFormSub = this.caseEditDataService.caseEditForm$.subscribe({
|
|
11647
12578
|
next: editForm => this.editForm = editForm
|
|
11648
12579
|
});
|
|
@@ -11703,7 +12634,7 @@ class CaseEditPageComponent {
|
|
|
11703
12634
|
if (this.getPageNumber() !== undefined) {
|
|
11704
12635
|
this.previousStep();
|
|
11705
12636
|
}
|
|
11706
|
-
|
|
12637
|
+
this.focusService.focus();
|
|
11707
12638
|
}
|
|
11708
12639
|
// Adding validation message to show it as Error Summary
|
|
11709
12640
|
generateErrorMessage(fields, container, path, sourceFromComplexField) {
|
|
@@ -11870,6 +12801,7 @@ class CaseEditPageComponent {
|
|
|
11870
12801
|
}
|
|
11871
12802
|
this.clearValidationErrors();
|
|
11872
12803
|
this.checkForStagesCompleted();
|
|
12804
|
+
this.caseEditFormComponents?.forEach(component => component.syncConditionalShowStates());
|
|
11873
12805
|
if (this.currentPageIsNotValid()) {
|
|
11874
12806
|
// The generateErrorMessage method filters out the hidden fields.
|
|
11875
12807
|
// The error message for LinkedCases journey will never get displayed because the
|
|
@@ -11912,7 +12844,7 @@ class CaseEditPageComponent {
|
|
|
11912
12844
|
// purposes)
|
|
11913
12845
|
this.removeAllJudicialUserFormControls(this.currentPage, this.editForm);
|
|
11914
12846
|
}
|
|
11915
|
-
|
|
12847
|
+
this.focusService.focus();
|
|
11916
12848
|
}
|
|
11917
12849
|
updateFormData(jsonData) {
|
|
11918
12850
|
for (const caseFieldId of Object.keys(jsonData.data)) {
|
|
@@ -12031,6 +12963,8 @@ class CaseEditPageComponent {
|
|
|
12031
12963
|
else {
|
|
12032
12964
|
this.caseEdit.cancelled.emit();
|
|
12033
12965
|
}
|
|
12966
|
+
// clear CaseView cache to allow any incidental changes to get picked up once the edit has cancelled
|
|
12967
|
+
this.caseEdit.caseNotifier.removeCachedCase();
|
|
12034
12968
|
this.clearValidationErrors();
|
|
12035
12969
|
this.multipageComponentStateService.reset();
|
|
12036
12970
|
}
|
|
@@ -12076,7 +13010,7 @@ class CaseEditPageComponent {
|
|
|
12076
13010
|
: CaseEditPageComponent.TRIGGER_TEXT_START;
|
|
12077
13011
|
return this.canNavigateToSummaryPage()
|
|
12078
13012
|
? textBasedOnCanSaveDraft
|
|
12079
|
-
: 'Submit';
|
|
13013
|
+
: this.eventTrigger.end_button_label || 'Submit';
|
|
12080
13014
|
}
|
|
12081
13015
|
discard() {
|
|
12082
13016
|
if (this.route.snapshot.queryParamMap.get(CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
|
|
@@ -12204,8 +13138,13 @@ class CaseEditPageComponent {
|
|
|
12204
13138
|
}
|
|
12205
13139
|
});
|
|
12206
13140
|
}
|
|
12207
|
-
static ɵfac = function CaseEditPageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(MultipageComponentStateService), i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CaseFlagStateService)); };
|
|
12208
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]],
|
|
13141
|
+
static ɵfac = function CaseEditPageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(MultipageComponentStateService), i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CaseFlagStateService), i0.ɵɵdirectiveInject(FocusService)); };
|
|
13142
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], viewQuery: function CaseEditPageComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13143
|
+
i0.ɵɵviewQuery(CaseEditFormComponent, 5);
|
|
13144
|
+
} if (rf & 2) {
|
|
13145
|
+
let _t;
|
|
13146
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.caseEditFormComponents = _t);
|
|
13147
|
+
} }, standalone: false, decls: 12, vars: 11, consts: [["titleBlock", ""], ["idBlock", ""], [4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["tabindex", "0", 1, "validation-error", 3, "click", "keyup.enter"], [1, "form", 3, "submit", "formGroup"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["type", "button", 1, "govuk-js-link", 3, "click"], ["id", "caseEditForm", 3, "valuesChanged", "fields", "formGroup", "caseFields", "pageChangeSubject"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12209
13148
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
12210
13149
|
i0.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 2)(1, CaseEditPageComponent_div_1_Template, 1, 0, "div", 3)(2, CaseEditPageComponent_ng_template_2_Template, 3, 7, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(4, CaseEditPageComponent_ng_template_4_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(6, CaseEditPageComponent_div_6_Template, 5, 4, "div", 4);
|
|
12211
13150
|
i0.ɵɵelement(7, "ccd-case-edit-generic-errors", 5);
|
|
@@ -12237,8 +13176,11 @@ class CaseEditPageComponent {
|
|
|
12237
13176
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
|
|
12238
13177
|
type: Component,
|
|
12239
13178
|
args: [{ selector: 'ccd-case-edit-page', standalone: false, template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data'] | rpxTranslate\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" (keyup.enter)=\"navigateToErrorElement(validationError.id)\" tabindex=\"0\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"nextStep()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"toPreviousPage()\" *ngIf=\"!isAtStart()\" [disabled]=\"isDisabled()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><button type=\"button\" (click)=\"cancel()\" class=\"govuk-js-link\">{{getCancelText() | rpxTranslate}}</button></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
12240
|
-
}], () => [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: MultipageComponentStateService }, { type: AddressesService }, { type: LinkedCasesService }, { type: CaseFlagStateService }],
|
|
12241
|
-
|
|
13179
|
+
}], () => [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: MultipageComponentStateService }, { type: AddressesService }, { type: LinkedCasesService }, { type: CaseFlagStateService }, { type: FocusService }], { caseEditFormComponents: [{
|
|
13180
|
+
type: ViewChildren,
|
|
13181
|
+
args: [CaseEditFormComponent]
|
|
13182
|
+
}] }); })();
|
|
13183
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 37 }); })();
|
|
12242
13184
|
|
|
12243
13185
|
class CallbackErrorsContext {
|
|
12244
13186
|
triggerText;
|
|
@@ -13365,14 +14307,6 @@ var PaletteContext;
|
|
|
13365
14307
|
PaletteContext["TABLE_VIEW"] = "TABLE_VIEW";
|
|
13366
14308
|
})(PaletteContext || (PaletteContext = {}));
|
|
13367
14309
|
|
|
13368
|
-
// Identifies whether a read palette value came from persisted case data or the current edit form.
|
|
13369
|
-
// Form-origin DateTime values on Check Your Answers must not be service-local adjusted before submit.
|
|
13370
|
-
var PaletteValueOrigin;
|
|
13371
|
-
(function (PaletteValueOrigin) {
|
|
13372
|
-
PaletteValueOrigin["BACKEND"] = "BACKEND";
|
|
13373
|
-
PaletteValueOrigin["FORM"] = "FORM";
|
|
13374
|
-
})(PaletteValueOrigin || (PaletteValueOrigin = {}));
|
|
13375
|
-
|
|
13376
14310
|
class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
13377
14311
|
caseReference;
|
|
13378
14312
|
topLevelFormGroup;
|
|
@@ -13380,14 +14314,13 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
|
13380
14314
|
* Optional. Enable context-aware rendering of fields.
|
|
13381
14315
|
*/
|
|
13382
14316
|
context = PaletteContext.DEFAULT;
|
|
13383
|
-
valueOrigin = PaletteValueOrigin.BACKEND;
|
|
13384
14317
|
ngOnInit() {
|
|
13385
14318
|
if (!this.caseField.metadata) {
|
|
13386
14319
|
this.registerControl(new FormControl(this.caseField.value));
|
|
13387
14320
|
}
|
|
13388
14321
|
}
|
|
13389
14322
|
static ɵfac = /*@__PURE__*/ (() => { let ɵAbstractFieldReadComponent_BaseFactory; return function AbstractFieldReadComponent_Factory(__ngFactoryType__) { return (ɵAbstractFieldReadComponent_BaseFactory || (ɵAbstractFieldReadComponent_BaseFactory = i0.ɵɵgetInheritedFactory(AbstractFieldReadComponent)))(__ngFactoryType__ || AbstractFieldReadComponent); }; })();
|
|
13390
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldReadComponent, inputs: { caseReference: "caseReference", topLevelFormGroup: "topLevelFormGroup", context: "context"
|
|
14323
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldReadComponent, inputs: { caseReference: "caseReference", topLevelFormGroup: "topLevelFormGroup", context: "context" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
13391
14324
|
}
|
|
13392
14325
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractFieldReadComponent, [{
|
|
13393
14326
|
type: Directive
|
|
@@ -13397,8 +14330,6 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
|
13397
14330
|
type: Input
|
|
13398
14331
|
}], context: [{
|
|
13399
14332
|
type: Input
|
|
13400
|
-
}], valueOrigin: [{
|
|
13401
|
-
type: Input
|
|
13402
14333
|
}] }); })();
|
|
13403
14334
|
|
|
13404
14335
|
const _c0$Y = ["journeyChild"];
|
|
@@ -15136,7 +16067,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
15136
16067
|
} if (rf & 2) {
|
|
15137
16068
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
15138
16069
|
i0.ɵɵadvance(4);
|
|
15139
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(
|
|
16070
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(4, _c0$V, ctx_r0.caseField.label, ctx_r0.caseField.label, ctx_r0.caseField.field_type.collection_field_type, ctx_r0.caseField.display_context_parameter, ctx_r0.caseField.value, ctx_r0.caseField.hidden, ctx_r0.caseField))("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup);
|
|
15140
16071
|
} }
|
|
15141
16072
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
15142
16073
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
@@ -15147,11 +16078,11 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
15147
16078
|
const i_r3 = ctx.index;
|
|
15148
16079
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
15149
16080
|
i0.ɵɵadvance(2);
|
|
15150
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(
|
|
16081
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(5, _c1$m, i_r3 + "", ctx_r0.caseField.label + " " + (i_r3 + 1), ctx_r0.caseField.field_type.collection_field_type, item_r2.value, ctx_r0.caseField.hidden, ctx_r0.caseField))("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.buildIdPrefix(i_r3));
|
|
15151
16082
|
} }
|
|
15152
16083
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
15153
16084
|
i0.ɵɵelementStart(0, "tbody");
|
|
15154
|
-
i0.ɵɵtemplate(1, ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template, 3,
|
|
16085
|
+
i0.ɵɵtemplate(1, ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template, 3, 12, "tr", 6);
|
|
15155
16086
|
i0.ɵɵelementEnd();
|
|
15156
16087
|
} if (rf & 2) {
|
|
15157
16088
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -15161,7 +16092,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf
|
|
|
15161
16092
|
function ReadCollectionFieldComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
15162
16093
|
i0.ɵɵelementStart(0, "table", 1);
|
|
15163
16094
|
i0.ɵɵelementContainerStart(1, 2);
|
|
15164
|
-
i0.ɵɵtemplate(2, ReadCollectionFieldComponent_table_0_tbody_2_Template, 5,
|
|
16095
|
+
i0.ɵɵtemplate(2, ReadCollectionFieldComponent_table_0_tbody_2_Template, 5, 12, "tbody", 3)(3, ReadCollectionFieldComponent_table_0_tbody_3_Template, 2, 1, "tbody", 3);
|
|
15165
16096
|
i0.ɵɵelementContainerEnd();
|
|
15166
16097
|
i0.ɵɵelementEnd();
|
|
15167
16098
|
} if (rf & 2) {
|
|
@@ -15189,7 +16120,7 @@ class ReadCollectionFieldComponent extends AbstractFieldReadComponent {
|
|
|
15189
16120
|
return prefix;
|
|
15190
16121
|
}
|
|
15191
16122
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadCollectionFieldComponent_BaseFactory; return function ReadCollectionFieldComponent_Factory(__ngFactoryType__) { return (ɵReadCollectionFieldComponent_BaseFactory || (ɵReadCollectionFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadCollectionFieldComponent)))(__ngFactoryType__ || ReadCollectionFieldComponent); }; })();
|
|
15192
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadCollectionFieldComponent, selectors: [["ccd-read-collection-field"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "collection-field-table", "aria-describedby", "collection table", 4, "ngIf"], ["aria-describedby", "collection table", 1, "collection-field-table"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["id", "hiddenHeader", 2, "display", "none"], [3, "caseField", "context", "
|
|
16123
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadCollectionFieldComponent, selectors: [["ccd-read-collection-field"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "collection-field-table", "aria-describedby", "collection table", 4, "ngIf"], ["aria-describedby", "collection table", 1, "collection-field-table"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["id", "hiddenHeader", 2, "display", "none"], [3, "caseField", "context", "caseFields", "topLevelFormGroup"], [4, "ngFor", "ngForOf"], [3, "caseField", "context", "caseFields", "topLevelFormGroup", "idPrefix"]], template: function ReadCollectionFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15193
16124
|
i0.ɵɵtemplate(0, ReadCollectionFieldComponent_table_0_Template, 4, 3, "table", 0);
|
|
15194
16125
|
} if (rf & 2) {
|
|
15195
16126
|
i0.ɵɵproperty("ngIf", ctx.caseField.value && ctx.caseField.value.length);
|
|
@@ -15197,7 +16128,7 @@ class ReadCollectionFieldComponent extends AbstractFieldReadComponent {
|
|
|
15197
16128
|
}
|
|
15198
16129
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadCollectionFieldComponent, [{
|
|
15199
16130
|
type: Component,
|
|
15200
|
-
args: [{ selector: 'ccd-read-collection-field', standalone: false, template: "<table *ngIf=\"caseField.value && caseField.value.length \" class=\"collection-field-table\" aria-describedby=\"collection table\">\n <ng-container [ngSwitch]=\"isDisplayContextParameterAvailable\">\n <tbody *ngSwitchCase=\"true\">\n <tr>\n <th id=\"hiddenHeader\" style=\"display: none;\"></th>\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: caseField.label,\n label: caseField.label,\n field_type: caseField.field_type.collection_field_type,\n display_context_parameter: caseField.display_context_parameter,\n value: caseField.value,\n hidden: caseField.hidden,\n parent: caseField\n }\"\n [context]=\"context\"\n [
|
|
16131
|
+
args: [{ selector: 'ccd-read-collection-field', standalone: false, template: "<table *ngIf=\"caseField.value && caseField.value.length \" class=\"collection-field-table\" aria-describedby=\"collection table\">\n <ng-container [ngSwitch]=\"isDisplayContextParameterAvailable\">\n <tbody *ngSwitchCase=\"true\">\n <tr>\n <th id=\"hiddenHeader\" style=\"display: none;\"></th>\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: caseField.label,\n label: caseField.label,\n field_type: caseField.field_type.collection_field_type,\n display_context_parameter: caseField.display_context_parameter,\n value: caseField.value,\n hidden: caseField.hidden,\n parent: caseField\n }\"\n [context]=\"context\"\n [caseFields]=\"caseFields\"\n [topLevelFormGroup]=\"topLevelFormGroup\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n <tbody *ngSwitchCase=\"false\">\n <tr *ngFor=\"let item of caseField.value; let i = index\">\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: i + '',\n label: caseField.label + ' ' + (i + 1),\n field_type: caseField.field_type.collection_field_type,\n value: item.value,\n hidden: caseField.hidden,\n parent: caseField\n }\"\n [context]=\"context\"\n [caseFields]=\"caseFields\"\n [topLevelFormGroup]=\"topLevelFormGroup\"\n [idPrefix]=\"buildIdPrefix(i)\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n </ng-container>\n</table>\n", styles: [".collection-field-table tr:first-child>td{padding-top:0}.collection-field-table tr:last-child>td{border-bottom:none}.collection-field-table td.collection-actions{width:1px;white-space:nowrap}.error-spacing{margin-top:10px}.collection-title{height:51px}.float-left{float:left;padding-top:8px}.float-right{float:right}.complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}.collection-indicator{border-left:solid 5px #b1b4b6}\n"] }]
|
|
15201
16132
|
}], null, { caseFields: [{
|
|
15202
16133
|
type: Input
|
|
15203
16134
|
}] }); })();
|
|
@@ -15720,19 +16651,19 @@ function ReadComplexFieldComponent_ccd_read_complex_field_raw_1_Template(rf, ctx
|
|
|
15720
16651
|
i0.ɵɵelement(0, "ccd-read-complex-field-raw", 4);
|
|
15721
16652
|
} if (rf & 2) {
|
|
15722
16653
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15723
|
-
i0.ɵɵproperty("caseField", ctx_r0.caseField)("caseFields", ctx_r0.caseFields)("context", ctx_r0.context)("
|
|
16654
|
+
i0.ɵɵproperty("caseField", ctx_r0.caseField)("caseFields", ctx_r0.caseFields)("context", ctx_r0.context)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.idPrefix);
|
|
15724
16655
|
} }
|
|
15725
16656
|
function ReadComplexFieldComponent_ccd_read_complex_field_collection_table_2_Template(rf, ctx) { if (rf & 1) {
|
|
15726
16657
|
i0.ɵɵelement(0, "ccd-read-complex-field-collection-table", 5);
|
|
15727
16658
|
} if (rf & 2) {
|
|
15728
16659
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15729
|
-
i0.ɵɵproperty("caseField", ctx_r0.caseField)("context", ctx_r0.context)("
|
|
16660
|
+
i0.ɵɵproperty("caseField", ctx_r0.caseField)("context", ctx_r0.context)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.idPrefix);
|
|
15730
16661
|
} }
|
|
15731
16662
|
function ReadComplexFieldComponent_ccd_read_complex_field_table_3_Template(rf, ctx) { if (rf & 1) {
|
|
15732
16663
|
i0.ɵɵelement(0, "ccd-read-complex-field-table", 4);
|
|
15733
16664
|
} if (rf & 2) {
|
|
15734
16665
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15735
|
-
i0.ɵɵproperty("caseField", ctx_r0.caseField)("caseFields", ctx_r0.caseFields)("context", ctx_r0.context)("
|
|
16666
|
+
i0.ɵɵproperty("caseField", ctx_r0.caseField)("caseFields", ctx_r0.caseFields)("context", ctx_r0.context)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.idPrefix);
|
|
15736
16667
|
} }
|
|
15737
16668
|
class ReadComplexFieldComponent extends AbstractFieldReadComponent {
|
|
15738
16669
|
caseFields = [];
|
|
@@ -15766,9 +16697,9 @@ class ReadComplexFieldComponent extends AbstractFieldReadComponent {
|
|
|
15766
16697
|
}
|
|
15767
16698
|
}
|
|
15768
16699
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldComponent_BaseFactory; return function ReadComplexFieldComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldComponent_BaseFactory || (ɵReadComplexFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldComponent)))(__ngFactoryType__ || ReadComplexFieldComponent); }; })();
|
|
15769
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldComponent, selectors: [["ccd-read-complex-field"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 3, consts: [[3, "ngSwitch"], [3, "caseField", "caseFields", "context", "
|
|
16700
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldComponent, selectors: [["ccd-read-complex-field"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 3, consts: [[3, "ngSwitch"], [3, "caseField", "caseFields", "context", "topLevelFormGroup", "idPrefix", 4, "ngSwitchCase"], [3, "caseField", "context", "topLevelFormGroup", "idPrefix", 4, "ngSwitchCase"], [3, "caseField", "caseFields", "context", "topLevelFormGroup", "idPrefix", 4, "ngSwitchDefault"], [3, "caseField", "caseFields", "context", "topLevelFormGroup", "idPrefix"], [3, "caseField", "context", "topLevelFormGroup", "idPrefix"]], template: function ReadComplexFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15770
16701
|
i0.ɵɵelementContainerStart(0, 0);
|
|
15771
|
-
i0.ɵɵtemplate(1, ReadComplexFieldComponent_ccd_read_complex_field_raw_1_Template, 1,
|
|
16702
|
+
i0.ɵɵtemplate(1, ReadComplexFieldComponent_ccd_read_complex_field_raw_1_Template, 1, 5, "ccd-read-complex-field-raw", 1)(2, ReadComplexFieldComponent_ccd_read_complex_field_collection_table_2_Template, 1, 4, "ccd-read-complex-field-collection-table", 2)(3, ReadComplexFieldComponent_ccd_read_complex_field_table_3_Template, 1, 5, "ccd-read-complex-field-table", 3);
|
|
15772
16703
|
i0.ɵɵelementContainerEnd();
|
|
15773
16704
|
} if (rf & 2) {
|
|
15774
16705
|
i0.ɵɵproperty("ngSwitch", ctx.context);
|
|
@@ -15780,50 +16711,15 @@ class ReadComplexFieldComponent extends AbstractFieldReadComponent {
|
|
|
15780
16711
|
}
|
|
15781
16712
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldComponent, [{
|
|
15782
16713
|
type: Component,
|
|
15783
|
-
args: [{ selector: 'ccd-read-complex-field', standalone: false, template: "<ng-container [ngSwitch]=\"context\">\n <ccd-read-complex-field-raw\n *ngSwitchCase=\"paletteContext.CHECK_YOUR_ANSWER\"\n [caseField]=\"caseField\"\n [caseFields]=\"caseFields\"\n [context]=\"context\"\n [
|
|
16714
|
+
args: [{ selector: 'ccd-read-complex-field', standalone: false, template: "<ng-container [ngSwitch]=\"context\">\n <ccd-read-complex-field-raw\n *ngSwitchCase=\"paletteContext.CHECK_YOUR_ANSWER\"\n [caseField]=\"caseField\"\n [caseFields]=\"caseFields\"\n [context]=\"context\"\n [topLevelFormGroup]=\"topLevelFormGroup\"\n [idPrefix]=\"idPrefix\"\n ></ccd-read-complex-field-raw>\n <ccd-read-complex-field-collection-table\n *ngSwitchCase=\"paletteContext.TABLE_VIEW\"\n [caseField]=\"caseField\"\n [context]=\"context\"\n [topLevelFormGroup]=\"topLevelFormGroup\"\n [idPrefix]=\"idPrefix\"\n ></ccd-read-complex-field-collection-table>\n <ccd-read-complex-field-table\n *ngSwitchDefault\n [caseField]=\"caseField\"\n [caseFields]=\"caseFields\"\n [context]=\"context\"\n [topLevelFormGroup]=\"topLevelFormGroup\"\n [idPrefix]=\"idPrefix\"\n ></ccd-read-complex-field-table>\n</ng-container>\n" }]
|
|
15784
16715
|
}], null, { caseFields: [{
|
|
15785
16716
|
type: Input
|
|
15786
16717
|
}] }); })();
|
|
15787
16718
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldComponent, { className: "ReadComplexFieldComponent", filePath: "lib/shared/components/palette/complex/read-complex-field.component.ts", lineNumber: 11 }); })();
|
|
15788
16719
|
|
|
15789
16720
|
class ReadDateFieldComponent extends AbstractFieldReadComponent {
|
|
15790
|
-
|
|
15791
|
-
static
|
|
15792
|
-
caseSubscription;
|
|
15793
|
-
caseHmctsServiceId;
|
|
15794
|
-
constructor(caseNotifier) {
|
|
15795
|
-
super();
|
|
15796
|
-
this.caseNotifier = caseNotifier;
|
|
15797
|
-
}
|
|
15798
|
-
ngOnInit() {
|
|
15799
|
-
super.ngOnInit();
|
|
15800
|
-
this.caseSubscription = this.caseNotifier?.caseView.subscribe((caseDetails) => {
|
|
15801
|
-
this.caseHmctsServiceId = caseDetails?.hmctsServiceId;
|
|
15802
|
-
});
|
|
15803
|
-
}
|
|
15804
|
-
ngOnDestroy() {
|
|
15805
|
-
if (this.caseSubscription) {
|
|
15806
|
-
this.caseSubscription.unsubscribe();
|
|
15807
|
-
}
|
|
15808
|
-
}
|
|
15809
|
-
// Most services display DateTime values as received from CCD; only the services listed in SERVICES_RENDERED_IN_LOCAL_TIME need converting to local time.
|
|
15810
|
-
get timeZone() {
|
|
15811
|
-
return this.shouldRenderInLocalTime() ? 'local' : 'utc';
|
|
15812
|
-
}
|
|
15813
|
-
shouldRenderInLocalTime() {
|
|
15814
|
-
return !this.isFormOriginField() &&
|
|
15815
|
-
ReadDateFieldComponent.SERVICES_RENDERED_IN_LOCAL_TIME.includes(this.getHmctsServiceId());
|
|
15816
|
-
}
|
|
15817
|
-
isFormOriginField() {
|
|
15818
|
-
return this.valueOrigin === PaletteValueOrigin.FORM;
|
|
15819
|
-
}
|
|
15820
|
-
getHmctsServiceId() {
|
|
15821
|
-
if (typeof this.caseField?.hmctsServiceId === 'string') {
|
|
15822
|
-
return this.caseField.hmctsServiceId;
|
|
15823
|
-
}
|
|
15824
|
-
return this.caseHmctsServiceId;
|
|
15825
|
-
}
|
|
15826
|
-
static ɵfac = function ReadDateFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadDateFieldComponent)(i0.ɵɵdirectiveInject(CaseNotifier, 8)); };
|
|
16721
|
+
timeZone = 'utc';
|
|
16722
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵReadDateFieldComponent_BaseFactory; return function ReadDateFieldComponent_Factory(__ngFactoryType__) { return (ɵReadDateFieldComponent_BaseFactory || (ɵReadDateFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadDateFieldComponent)))(__ngFactoryType__ || ReadDateFieldComponent); }; })();
|
|
15827
16723
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadDateFieldComponent, selectors: [["ccd-read-date-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 5, consts: [[1, "text-16"]], template: function ReadDateFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15828
16724
|
i0.ɵɵelementStart(0, "span", 0);
|
|
15829
16725
|
i0.ɵɵtext(1);
|
|
@@ -15831,20 +16727,18 @@ class ReadDateFieldComponent extends AbstractFieldReadComponent {
|
|
|
15831
16727
|
i0.ɵɵelementEnd();
|
|
15832
16728
|
} if (rf & 2) {
|
|
15833
16729
|
i0.ɵɵadvance();
|
|
15834
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(2, 1, ctx.caseField.value,
|
|
16730
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(2, 1, ctx.caseField.value, "utc", ctx.caseField.dateTimeDisplayFormat));
|
|
15835
16731
|
} }, dependencies: [DatePipe], encapsulation: 2 });
|
|
15836
16732
|
}
|
|
15837
16733
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadDateFieldComponent, [{
|
|
15838
16734
|
type: Component,
|
|
15839
16735
|
args: [{
|
|
15840
16736
|
selector: 'ccd-read-date-field',
|
|
15841
|
-
template: `<span class="text-16">{{caseField.value | ccdDate:
|
|
16737
|
+
template: `<span class="text-16">{{caseField.value | ccdDate:'utc':caseField.dateTimeDisplayFormat}}</span>`,
|
|
15842
16738
|
standalone: false
|
|
15843
16739
|
}]
|
|
15844
|
-
}],
|
|
15845
|
-
|
|
15846
|
-
}] }], null); })();
|
|
15847
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDateFieldComponent, { className: "ReadDateFieldComponent", filePath: "lib/shared/components/palette/date/read-date-field.component.ts", lineNumber: 13 }); })();
|
|
16740
|
+
}], null, null); })();
|
|
16741
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDateFieldComponent, { className: "ReadDateFieldComponent", filePath: "lib/shared/components/palette/date/read-date-field.component.ts", lineNumber: 9 }); })();
|
|
15848
16742
|
|
|
15849
16743
|
function WriteDateContainerFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
15850
16744
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -25341,7 +26235,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
25341
26235
|
component.instance['parent'] = this.parent;
|
|
25342
26236
|
component.instance['caseReference'] = this.caseReference;
|
|
25343
26237
|
component.instance['context'] = this.context;
|
|
25344
|
-
component.instance['valueOrigin'] = this.valueOrigin;
|
|
25345
26238
|
component.instance['labelCanBeTranslated'] = this.labelCanBeTranslated(this.caseField);
|
|
25346
26239
|
this.fieldContainer?.insert(component.hostView);
|
|
25347
26240
|
});
|
|
@@ -29753,11 +30646,11 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
29753
30646
|
i0.ɵɵadvance();
|
|
29754
30647
|
i0.ɵɵproperty("hidden", field_r1.hidden || field_r1.field_type.type === "Label");
|
|
29755
30648
|
i0.ɵɵadvance(2);
|
|
29756
|
-
i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(4,
|
|
30649
|
+
i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(4, 8, field_r1.label) : field_r1.label);
|
|
29757
30650
|
i0.ɵɵadvance(2);
|
|
29758
30651
|
i0.ɵɵproperty("hidden", field_r1.hidden);
|
|
29759
30652
|
i0.ɵɵadvance();
|
|
29760
|
-
i0.ɵɵproperty("caseField", field_r1)("context", ctx_r1.context)("
|
|
30653
|
+
i0.ɵɵproperty("caseField", field_r1)("context", ctx_r1.context)("caseFields", ctx_r1.caseFields)("topLevelFormGroup", ctx_r1.topLevelFormGroup)("idPrefix", ctx_r1.idPrefix);
|
|
29761
30654
|
} }
|
|
29762
30655
|
/**
|
|
29763
30656
|
* Display a complex type fields as a list of values without labels.
|
|
@@ -29766,9 +30659,9 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
29766
30659
|
class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
29767
30660
|
caseFields = [];
|
|
29768
30661
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldRawComponent_BaseFactory; return function ReadComplexFieldRawComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldRawComponent_BaseFactory || (ɵReadComplexFieldRawComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldRawComponent)))(__ngFactoryType__ || ReadComplexFieldRawComponent); }; })();
|
|
29769
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldRawComponent, selectors: [["ccd-read-complex-field-raw"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 12, consts: [[1, "complex-raw"], [4, "ngFor", "ngForOf"], [3, "hidden"], [1, "text-16"], [3, "caseField", "context", "
|
|
30662
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldRawComponent, selectors: [["ccd-read-complex-field-raw"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 12, consts: [[1, "complex-raw"], [4, "ngFor", "ngForOf"], [3, "hidden"], [1, "text-16"], [3, "caseField", "context", "caseFields", "topLevelFormGroup", "idPrefix"]], template: function ReadComplexFieldRawComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29770
30663
|
i0.ɵɵelementStart(0, "dl", 0);
|
|
29771
|
-
i0.ɵɵtemplate(1, ReadComplexFieldRawComponent_ng_container_1_Template, 7,
|
|
30664
|
+
i0.ɵɵtemplate(1, ReadComplexFieldRawComponent_ng_container_1_Template, 7, 10, "ng-container", 1);
|
|
29772
30665
|
i0.ɵɵpipe(2, "ccdReadFieldsFilter");
|
|
29773
30666
|
i0.ɵɵelementEnd();
|
|
29774
30667
|
} if (rf & 2) {
|
|
@@ -29778,7 +30671,7 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
29778
30671
|
}
|
|
29779
30672
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
|
|
29780
30673
|
type: Component,
|
|
29781
|
-
args: [{ selector: 'ccd-read-complex-field-raw', standalone: false, template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{isTranslatable(field) ? (field.label | rpxTranslate) : field.label}}</span></dt>\n <dd [hidden]=\"field.hidden\">\n <ccd-field-read [caseField]=\"field\" [context]=\"context\" [
|
|
30674
|
+
args: [{ selector: 'ccd-read-complex-field-raw', standalone: false, template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{isTranslatable(field) ? (field.label | rpxTranslate) : field.label}}</span></dt>\n <dd [hidden]=\"field.hidden\">\n <ccd-field-read [caseField]=\"field\" [context]=\"context\" [caseFields]=\"caseFields\" [topLevelFormGroup]=\"topLevelFormGroup\" [idPrefix]=\"idPrefix\"></ccd-field-read>\n </dd>\n </ng-container>\n</dl>\n", styles: ["dl.complex-raw{list-style-type:none;margin:5px 0 10px}dl.complex-raw dl.complex-raw{padding-left:2ch}dl.complex-raw dt{font-weight:700}\n"] }]
|
|
29782
30675
|
}], null, { caseFields: [{
|
|
29783
30676
|
type: Input
|
|
29784
30677
|
}] }); })();
|
|
@@ -29797,7 +30690,7 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_container_1_Template(r
|
|
|
29797
30690
|
i0.ɵɵadvance();
|
|
29798
30691
|
i0.ɵɵproperty("hidden", field_r1.hidden);
|
|
29799
30692
|
i0.ɵɵadvance(3);
|
|
29800
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context)
|
|
30693
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context);
|
|
29801
30694
|
} }
|
|
29802
30695
|
function ReadComplexFieldTableComponent_ng_container_9_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
29803
30696
|
i0.ɵɵelementStart(0, "tr", 10)(1, "th", 11)(2, "span", 3);
|
|
@@ -29812,15 +30705,15 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_template_3_Template(rf
|
|
|
29812
30705
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
29813
30706
|
i0.ɵɵproperty("hidden", field_r1.hidden);
|
|
29814
30707
|
i0.ɵɵadvance(3);
|
|
29815
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
30708
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, field_r1.label));
|
|
29816
30709
|
i0.ɵɵadvance(4);
|
|
29817
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context)
|
|
30710
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context);
|
|
29818
30711
|
} }
|
|
29819
30712
|
function ReadComplexFieldTableComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
29820
30713
|
i0.ɵɵelementContainerStart(0);
|
|
29821
|
-
i0.ɵɵtemplate(1, ReadComplexFieldTableComponent_ng_container_9_ng_container_1_Template, 5,
|
|
30714
|
+
i0.ɵɵtemplate(1, ReadComplexFieldTableComponent_ng_container_9_ng_container_1_Template, 5, 5, "ng-container", 6);
|
|
29822
30715
|
i0.ɵɵpipe(2, "ccdIsCompound");
|
|
29823
|
-
i0.ɵɵtemplate(3, ReadComplexFieldTableComponent_ng_container_9_ng_template_3_Template, 8,
|
|
30716
|
+
i0.ɵɵtemplate(3, ReadComplexFieldTableComponent_ng_container_9_ng_template_3_Template, 8, 8, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
29824
30717
|
i0.ɵɵelementContainerEnd();
|
|
29825
30718
|
} if (rf & 2) {
|
|
29826
30719
|
const field_r1 = ctx.$implicit;
|
|
@@ -29847,7 +30740,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29847
30740
|
this.path = ReadComplexFieldTableComponent.DUMMY_STRING_PRE + this.idPrefix + ReadComplexFieldTableComponent.DUMMY_STRING_POST;
|
|
29848
30741
|
}
|
|
29849
30742
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldTableComponent_BaseFactory; return function ReadComplexFieldTableComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldTableComponent_BaseFactory || (ɵReadComplexFieldTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent)))(__ngFactoryType__ || ReadComplexFieldTableComponent); }; })();
|
|
29850
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 17, consts: [["SimpleRow", ""], [1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseFields", "caseField", "context"
|
|
30743
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 17, consts: [["SimpleRow", ""], [1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseFields", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29851
30744
|
i0.ɵɵelementStart(0, "div", 1)(1, "dl", 2)(2, "dt")(3, "span", 3);
|
|
29852
30745
|
i0.ɵɵtext(4);
|
|
29853
30746
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -29867,7 +30760,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29867
30760
|
}
|
|
29868
30761
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldTableComponent, [{
|
|
29869
30762
|
type: Component,
|
|
29870
|
-
args: [{ selector: 'ccd-read-complex-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :path :idPrefix\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n <tr class=\"complex-panel-compound-field\" [hidden]=\"field.hidden\">\n <td colspan=\"2\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"
|
|
30763
|
+
args: [{ selector: 'ccd-read-complex-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :path :idPrefix\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n <tr class=\"complex-panel-compound-field\" [hidden]=\"field.hidden\">\n <td colspan=\"2\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-simple-field\" [hidden]=\"field.hidden\">\n <th id=\"complex-panel-simple-field-label\"><span class=\"text-16\">{{field.label | rpxTranslate}}</span></th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}\n"] }]
|
|
29871
30764
|
}], null, { caseFields: [{
|
|
29872
30765
|
type: Input
|
|
29873
30766
|
}] }); })();
|
|
@@ -29901,7 +30794,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2
|
|
|
29901
30794
|
const item_r7 = i0.ɵɵnextContext().$implicit;
|
|
29902
30795
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
29903
30796
|
i0.ɵɵadvance();
|
|
29904
|
-
i0.ɵɵproperty("caseField", ctx_r2.toCaseField(heading_r6, item_r7[heading_r6].label, ctx_r2.columnsHorizontalLabel[heading_r6].type, item_r7[heading_r6]))("context", ctx_r2.context)
|
|
30797
|
+
i0.ɵɵproperty("caseField", ctx_r2.toCaseField(heading_r6, item_r7[heading_r6].label, ctx_r2.columnsHorizontalLabel[heading_r6].type, item_r7[heading_r6]))("context", ctx_r2.context);
|
|
29905
30798
|
} }
|
|
29906
30799
|
function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
29907
30800
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -29911,7 +30804,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2
|
|
|
29911
30804
|
function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
29912
30805
|
i0.ɵɵelementContainerStart(0);
|
|
29913
30806
|
i0.ɵɵelementStart(1, "td", 4);
|
|
29914
|
-
i0.ɵɵtemplate(2, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_div_2_Template, 2,
|
|
30807
|
+
i0.ɵɵtemplate(2, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_div_2_Template, 2, 2, "div", 17)(3, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_ng_template_3_Template, 2, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
29915
30808
|
i0.ɵɵelementEnd();
|
|
29916
30809
|
i0.ɵɵelementContainerEnd();
|
|
29917
30810
|
} if (rf & 2) {
|
|
@@ -29930,14 +30823,14 @@ function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_1
|
|
|
29930
30823
|
const item_r7 = i0.ɵɵnextContext().$implicit;
|
|
29931
30824
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
29932
30825
|
i0.ɵɵadvance();
|
|
29933
|
-
i0.ɵɵproperty("caseField", ctx_r2.toCaseField("", vLabel_r9.label, vLabel_r9.field_type, item_r7[vLabel_r9.id]))("context", ctx_r2.context)
|
|
30826
|
+
i0.ɵɵproperty("caseField", ctx_r2.toCaseField("", vLabel_r9.label, vLabel_r9.field_type, item_r7[vLabel_r9.id]))("context", ctx_r2.context);
|
|
29934
30827
|
} }
|
|
29935
30828
|
function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
29936
30829
|
i0.ɵɵelementStart(0, "tr", 21)(1, "th", 8)(2, "span", 4);
|
|
29937
30830
|
i0.ɵɵtext(3);
|
|
29938
30831
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
29939
30832
|
i0.ɵɵelementEnd()();
|
|
29940
|
-
i0.ɵɵtemplate(5, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_1_td_5_Template, 2,
|
|
30833
|
+
i0.ɵɵtemplate(5, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_1_td_5_Template, 2, 2, "td", 22);
|
|
29941
30834
|
i0.ɵɵelementEnd();
|
|
29942
30835
|
} if (rf & 2) {
|
|
29943
30836
|
const vLabel_r9 = i0.ɵɵnextContext().$implicit;
|
|
@@ -29956,7 +30849,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_1
|
|
|
29956
30849
|
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
29957
30850
|
i0.ɵɵproperty("hidden", caseField_r10);
|
|
29958
30851
|
i0.ɵɵadvance(3);
|
|
29959
|
-
i0.ɵɵproperty("caseField", caseField_r10)("context", ctx_r2.context)
|
|
30852
|
+
i0.ɵɵproperty("caseField", caseField_r10)("context", ctx_r2.context);
|
|
29960
30853
|
} }
|
|
29961
30854
|
function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_2_ng_container_2_ng_template_3_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
29962
30855
|
i0.ɵɵelementStart(0, "td")(1, "span", 4);
|
|
@@ -29966,11 +30859,11 @@ function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_1
|
|
|
29966
30859
|
const caseField_r10 = i0.ɵɵnextContext(2).$implicit;
|
|
29967
30860
|
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
29968
30861
|
i0.ɵɵadvance(2);
|
|
29969
|
-
i0.ɵɵproperty("caseField", caseField_r10)("context", ctx_r2.context)
|
|
30862
|
+
i0.ɵɵproperty("caseField", caseField_r10)("context", ctx_r2.context);
|
|
29970
30863
|
} }
|
|
29971
30864
|
function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_2_ng_container_2_ng_template_3_td_6_Template(rf, ctx) { if (rf & 1) {
|
|
29972
30865
|
i0.ɵɵelementStart(0, "td");
|
|
29973
|
-
i0.ɵɵelement(1, "ccd-read-case-link-field",
|
|
30866
|
+
i0.ɵɵelement(1, "ccd-read-case-link-field", 18);
|
|
29974
30867
|
i0.ɵɵelementEnd();
|
|
29975
30868
|
} if (rf & 2) {
|
|
29976
30869
|
const caseField_r10 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -29985,7 +30878,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_1
|
|
|
29985
30878
|
i0.ɵɵtext(3);
|
|
29986
30879
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
29987
30880
|
i0.ɵɵelementEnd()();
|
|
29988
|
-
i0.ɵɵtemplate(5, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_2_ng_container_2_ng_template_3_td_5_Template, 3,
|
|
30881
|
+
i0.ɵɵtemplate(5, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_2_ng_container_2_ng_template_3_td_5_Template, 3, 2, "td", 27)(6, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_2_ng_container_2_ng_template_3_td_6_Template, 2, 2, "td", 27);
|
|
29989
30882
|
i0.ɵɵelementEnd();
|
|
29990
30883
|
} if (rf & 2) {
|
|
29991
30884
|
const caseField_r10 = i0.ɵɵnextContext().$implicit;
|
|
@@ -30001,7 +30894,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_1
|
|
|
30001
30894
|
} }
|
|
30002
30895
|
function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
30003
30896
|
i0.ɵɵelementContainerStart(0);
|
|
30004
|
-
i0.ɵɵtemplate(1, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_2_ng_container_2_tr_1_Template, 4,
|
|
30897
|
+
i0.ɵɵtemplate(1, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_2_ng_container_2_tr_1_Template, 4, 3, "tr", 24);
|
|
30005
30898
|
i0.ɵɵpipe(2, "ccdIsCompound");
|
|
30006
30899
|
i0.ɵɵtemplate(3, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_11_tr_2_ng_container_2_ng_template_3_Template, 7, 6, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
30007
30900
|
i0.ɵɵelementContainerEnd();
|
|
@@ -30219,7 +31112,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
30219
31112
|
return result;
|
|
30220
31113
|
}
|
|
30221
31114
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldCollectionTableComponent_BaseFactory; return function ReadComplexFieldCollectionTableComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldCollectionTableComponent_BaseFactory || (ɵReadComplexFieldCollectionTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldCollectionTableComponent)))(__ngFactoryType__ || ReadComplexFieldCollectionTableComponent); }; })();
|
|
30222
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldCollectionTableComponent, selectors: [["ccd-read-complex-field-collection-table"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 6, consts: [["showEmptyTd", ""], ["SimpleRow", ""], [1, "complex-panel", 3, "hidden"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex panel table", 1, "complex-panel-table"], ["scope", "col", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], ["scope", "col"], ["href", "#", 1, "sort-widget", 3, "click", "keyup.enter", "innerHTML"], [1, "new-table-row", "accordion-heading", 3, "keyup", "click"], [2, "float", "right"], ["href", "#", 3, "click"], ["alt", "accordion-img", 1, "accordion-image", 3, "src"], [3, "hidden"], [3, "colSpan"], ["aria-describedby", "complex panel table expanded", 1, "complex-panel-table"], [4, "ngIf", "ngIfElse"], [3, "caseField", "context"
|
|
31115
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldCollectionTableComponent, selectors: [["ccd-read-complex-field-collection-table"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 6, consts: [["showEmptyTd", ""], ["SimpleRow", ""], [1, "complex-panel", 3, "hidden"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex panel table", 1, "complex-panel-table"], ["scope", "col", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], ["scope", "col"], ["href", "#", 1, "sort-widget", 3, "click", "keyup.enter", "innerHTML"], [1, "new-table-row", "accordion-heading", 3, "keyup", "click"], [2, "float", "right"], ["href", "#", 3, "click"], ["alt", "accordion-img", 1, "accordion-image", 3, "src"], [3, "hidden"], [3, "colSpan"], ["aria-describedby", "complex panel table expanded", 1, "complex-panel-table"], [4, "ngIf", "ngIfElse"], [3, "caseField", "context"], ["class", "complex-panel-simple-field accordion-body", 3, "hidden", 4, "ngIf"], [3, "hidden", 4, "ngIf"], [1, "complex-panel-simple-field", "accordion-body", 3, "hidden"], ["class", "text-16", 4, "ngIf"], ["colspan", "2"], ["class", "complex-panel-compound-field", 3, "hidden", 4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], [1, "complex-panel-nested-field", 3, "hidden"], [4, "ngIf"]], template: function ReadComplexFieldCollectionTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
30223
31116
|
i0.ɵɵelementStart(0, "div", 2)(1, "dl", 3)(2, "dt")(3, "span", 4);
|
|
30224
31117
|
i0.ɵɵtext(4);
|
|
30225
31118
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -30244,7 +31137,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
30244
31137
|
}
|
|
30245
31138
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldCollectionTableComponent, [{
|
|
30246
31139
|
type: Component,
|
|
30247
|
-
args: [{ selector: 'ccd-read-complex-field-collection-table', standalone: false, template: "<div class=\"complex-panel\" [hidden]=\"caseField.hidden\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n <dd></dd>\n </dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex panel table\">\n <tbody>\n <!-- <COMPLEX table field header>-->\n <tr>\n <th *ngFor=\"let heading of columns\" scope=\"col\">\n <span class=\"text-16\">{{columnsAllLabels[heading].label | rpxTranslate}}</span>\n <a href=\"#\"\n (click)=\"sortRowsByColumns(heading); $event.preventDefault()\"\n (keyup.enter)=\"sortRowsByColumns(heading)\"\n class=\"sort-widget\"\n [attr.aria-label]=\"'Sort ' + columnsAllLabels[heading].label | rpxTranslate\"\n [innerHTML]=\"sortWidget(columnsAllLabels[heading])\"></a>\n </th>\n <th></th>\n </tr>\n <!-- </COMPLEX table field header>-->\n <ng-container *ngFor=\"let item of rows; let i = index;\">\n <!-- <COMPLEX table collapsed view>-->\n <tr class=\"new-table-row accordion-heading\" (keyup)=\"$event.key === 'Enter' ? (isHidden[i] = !isHidden[i]) : null\" (click)=\"isHidden[i] = !isHidden[i]\"\n [class.last-accordion]=\"isHidden[i]\">\n <ng-container *ngFor=\"let heading of columns\">\n <td class=\"text-16\">\n <div *ngIf=\"item[heading]; else showEmptyTd\">\n <ccd-field-read\n [caseField]=\"toCaseField(heading, item[heading].label, columnsHorizontalLabel[heading].type, item[heading])\"\n [context]=\"context\"
|
|
31140
|
+
args: [{ selector: 'ccd-read-complex-field-collection-table', standalone: false, template: "<div class=\"complex-panel\" [hidden]=\"caseField.hidden\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n <dd></dd>\n </dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex panel table\">\n <tbody>\n <!-- <COMPLEX table field header>-->\n <tr>\n <th *ngFor=\"let heading of columns\" scope=\"col\">\n <span class=\"text-16\">{{columnsAllLabels[heading].label | rpxTranslate}}</span>\n <a href=\"#\"\n (click)=\"sortRowsByColumns(heading); $event.preventDefault()\"\n (keyup.enter)=\"sortRowsByColumns(heading)\"\n class=\"sort-widget\"\n [attr.aria-label]=\"'Sort ' + columnsAllLabels[heading].label | rpxTranslate\"\n [innerHTML]=\"sortWidget(columnsAllLabels[heading])\"></a>\n </th>\n <th></th>\n </tr>\n <!-- </COMPLEX table field header>-->\n <ng-container *ngFor=\"let item of rows; let i = index;\">\n <!-- <COMPLEX table collapsed view>-->\n <tr class=\"new-table-row accordion-heading\" (keyup)=\"$event.key === 'Enter' ? (isHidden[i] = !isHidden[i]) : null\" (click)=\"isHidden[i] = !isHidden[i]\"\n [class.last-accordion]=\"isHidden[i]\">\n <ng-container *ngFor=\"let heading of columns\">\n <td class=\"text-16\">\n <div *ngIf=\"item[heading]; else showEmptyTd\">\n <ccd-field-read\n [caseField]=\"toCaseField(heading, item[heading].label, columnsHorizontalLabel[heading].type, item[heading])\"\n [context]=\"context\"></ccd-field-read>\n </div>\n <ng-template #showEmptyTd>\n <div> </div>\n </ng-template>\n </td>\n </ng-container>\n <td>\n <div style=\"float: right;\">\n <a href=\"#\" (click)=\"$event.preventDefault()\"> <img src=\"{{ getImage(i) }}\" alt=\"accordion-img\" class=\"accordion-image\"/></a>\n </div>\n </td>\n </tr>\n <!-- </COMPLEX table collapsed view>-->\n <!-- <COMPLEX table expanded view>-->\n <tr [hidden]=\"isHidden[i]\">\n <td [colSpan]=\"columns.length + 1\">\n <table class=\"complex-panel-table\" aria-describedby=\"complex panel table expanded\">\n <tbody>\n <ng-container\n *ngFor=\"let vLabel of columnsVerticalLabel | keyvalue: keepOriginalOrder | ccdCollectionTableCaseFieldsFilter: caseField: rows[i] | ccdReadFieldsFilter:true :undefined :true\">\n <!-- <COMPLEX table expandable body simple field>-->\n <tr class=\"complex-panel-simple-field accordion-body\" *ngIf=\"item[vLabel.id]\" [hidden]=\"vLabel.hidden\">\n <th scope=\"col\"><span class=\"text-16\">{{ vLabel.label | rpxTranslate }}</span></th>\n <td *ngIf=\"vLabel['type'] !== 'Complex'\" class=\"text-16\">\n <ccd-field-read [caseField]=\"toCaseField('', vLabel.label, vLabel.field_type, item[vLabel.id])\"\n [context]=\"context\"></ccd-field-read>\n </td>\n </tr>\n <!-- </COMPLEX table expandable body simple field>-->\n\n <!-- <COMPLEX table expandable body complex field>-->\n <tr *ngIf=\"vLabel['type'] === 'Complex' && addCaseFieldValue(vLabel, item[vLabel.id])\" [hidden]=\"vLabel.hidden\">\n <td colspan=\"2\">\n <ng-container *ngFor=\"let caseField of vLabel | ccdReadFieldsFilter:true :undefined :true\">\n <tr class=\"complex-panel-compound-field\" *ngIf=\"(caseField | ccdIsCompound); else SimpleRow\" [hidden]=\"caseField\">\n <td colspan=\"2\">\n <span class=\"text-16\"><ccd-field-read [caseField]=\"caseField\" [context]=\"context\"></ccd-field-read></span>\n </td>\n </tr>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-nested-field\" [hidden]=\"caseField.hidden\">\n <th scope=\"col\"><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></th>\n <td *ngIf=\"!item[vLabel.id]?.hasOwnProperty('CaseReference')\">\n <span class=\"text-16\"><ccd-field-read [caseField]=\"caseField\" [context]=\"context\"></ccd-field-read></span>\n </td>\n <td *ngIf=\"item[vLabel.id]?.hasOwnProperty('CaseReference')\">\n <ccd-read-case-link-field [caseField]=\"addCaseReferenceValue(caseField, item[vLabel.id].CaseReference)\" [context]=\"context\"></ccd-read-case-link-field>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </td>\n </tr>\n <!-- <COMPLEX table expandable body complex field>-->\n </ng-container>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- </COMPLEX table expanded view>-->\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th{border-bottom:none}.complex-panel .complex-panel-table th{padding-left:5px;font-weight:700;border-bottom:none}.complex-panel .complex-panel-table td{padding-left:5px;padding-top:0;padding-bottom:0;border-bottom:none}.complex-panel .new-table-row{border-top:1px solid #bfc1c3}.complex-panel .complex-panel-simple-field th{padding-left:5px;padding-top:0;padding-bottom:0;width:295px}.complex-panel .complex-panel-nested-field th{padding-left:33px;padding-top:0;padding-bottom:0;width:200px}.complex-panel .complex-panel-compound-field td{padding:5px;border-bottom:none}.sort-widget{cursor:pointer;text-decoration:none;color:#0b0c0c}.accordion-wrapper{margin-bottom:20px}.accordion-wrapper .heading-medium{margin:0}.accordion-wrapper .accordion-heading{border-top:1px solid #bfc1c3;padding-top:20px;padding-bottom:10px;height:20px;cursor:pointer}.accordion-wrapper .accordion-heading .accordion-image{width:25px;margin-right:20px}.accordion-wrapper .accordion-body{margin-top:20px;margin-right:20px}.accordion-wrapper .last-accordion{border-bottom:1px solid #bfc1c3;padding-bottom:30px}\n"] }]
|
|
30248
31141
|
}], null, null); })();
|
|
30249
31142
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldCollectionTableComponent, { className: "ReadComplexFieldCollectionTableComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-collection-table.component.ts", lineNumber: 13 }); })();
|
|
30250
31143
|
|
|
@@ -32830,13 +33723,13 @@ function CaseEditSubmitComponent_div_12_ng_container_1_ng_container_7_ng_contain
|
|
|
32830
33723
|
i0.ɵɵadvance();
|
|
32831
33724
|
i0.ɵɵattribute("colspan", ctx_r1.isLabel(field_r3) ? "2" : "1");
|
|
32832
33725
|
i0.ɵɵadvance();
|
|
32833
|
-
i0.ɵɵproperty("formGroup", ctx_r1.editForm.controls["data"])("topLevelFormGroup", ctx_r1.editForm.controls["data"])("caseField", ctx_r1.summaryCaseField(field_r3))("context", ctx_r1.paletteContext)("
|
|
33726
|
+
i0.ɵɵproperty("formGroup", ctx_r1.editForm.controls["data"])("topLevelFormGroup", ctx_r1.editForm.controls["data"])("caseField", ctx_r1.summaryCaseField(field_r3))("context", ctx_r1.paletteContext)("caseFields", ctx_r1.contextFields);
|
|
32834
33727
|
i0.ɵɵadvance();
|
|
32835
33728
|
i0.ɵɵproperty("ngIf", !ctx_r1.caseEdit.isCaseFlagSubmission);
|
|
32836
33729
|
} }
|
|
32837
33730
|
function CaseEditSubmitComponent_div_12_ng_container_1_ng_container_7_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
32838
33731
|
i0.ɵɵelementContainerStart(0);
|
|
32839
|
-
i0.ɵɵtemplate(1, CaseEditSubmitComponent_div_12_ng_container_1_ng_container_7_ng_container_1_ng_container_1_ng_container_1_Template, 6,
|
|
33732
|
+
i0.ɵɵtemplate(1, CaseEditSubmitComponent_div_12_ng_container_1_ng_container_7_ng_container_1_ng_container_1_ng_container_1_Template, 6, 12, "ng-container", 7);
|
|
32840
33733
|
i0.ɵɵelementContainerEnd();
|
|
32841
33734
|
} if (rf & 2) {
|
|
32842
33735
|
const field_r3 = ctx.$implicit;
|
|
@@ -32901,7 +33794,7 @@ function CaseEditSubmitComponent_div_12_ng_container_2_ng_container_3_tr_3_Templ
|
|
|
32901
33794
|
i0.ɵɵadvance(2);
|
|
32902
33795
|
i0.ɵɵtextInterpolate(field_r6.label);
|
|
32903
33796
|
i0.ɵɵadvance(2);
|
|
32904
|
-
i0.ɵɵproperty("formGroup", ctx_r1.editForm.controls["data"])("caseField", ctx_r1.summaryCaseField(field_r6))
|
|
33797
|
+
i0.ɵɵproperty("formGroup", ctx_r1.editForm.controls["data"])("caseField", ctx_r1.summaryCaseField(field_r6));
|
|
32905
33798
|
} }
|
|
32906
33799
|
function CaseEditSubmitComponent_div_12_ng_container_2_ng_container_3_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
32907
33800
|
i0.ɵɵelementStart(0, "tr", 36)(1, "td", 37);
|
|
@@ -32912,12 +33805,12 @@ function CaseEditSubmitComponent_div_12_ng_container_2_ng_container_3_tr_4_Templ
|
|
|
32912
33805
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
32913
33806
|
i0.ɵɵproperty("caseField", field_r6)("formGroup", ctx_r1.editForm.controls["data"])("contextFields", ctx_r1.contextFields);
|
|
32914
33807
|
i0.ɵɵadvance(2);
|
|
32915
|
-
i0.ɵɵproperty("formGroup", ctx_r1.editForm.controls["data"])("caseField", ctx_r1.summaryCaseField(field_r6))("caseFields", ctx_r1.contextFields)
|
|
33808
|
+
i0.ɵɵproperty("formGroup", ctx_r1.editForm.controls["data"])("caseField", ctx_r1.summaryCaseField(field_r6))("caseFields", ctx_r1.contextFields);
|
|
32916
33809
|
} }
|
|
32917
33810
|
function CaseEditSubmitComponent_div_12_ng_container_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
32918
33811
|
i0.ɵɵelementContainerStart(0)(1, 29);
|
|
32919
33812
|
i0.ɵɵpipe(2, "ccdIsCompound");
|
|
32920
|
-
i0.ɵɵtemplate(3, CaseEditSubmitComponent_div_12_ng_container_2_ng_container_3_tr_3_Template, 5,
|
|
33813
|
+
i0.ɵɵtemplate(3, CaseEditSubmitComponent_div_12_ng_container_2_ng_container_3_tr_3_Template, 5, 6, "tr", 30)(4, CaseEditSubmitComponent_div_12_ng_container_2_ng_container_3_tr_4_Template, 3, 6, "tr", 31);
|
|
32921
33814
|
i0.ɵɵelementContainerEnd()();
|
|
32922
33815
|
} if (rf & 2) {
|
|
32923
33816
|
const field_r6 = ctx.$implicit;
|
|
@@ -33037,7 +33930,6 @@ class CaseEditSubmitComponent {
|
|
|
33037
33930
|
profile;
|
|
33038
33931
|
showSummaryFields;
|
|
33039
33932
|
paletteContext = PaletteContext.CHECK_YOUR_ANSWER;
|
|
33040
|
-
paletteValueOrigin = PaletteValueOrigin;
|
|
33041
33933
|
profileSubscription;
|
|
33042
33934
|
contextFields;
|
|
33043
33935
|
task;
|
|
@@ -33337,7 +34229,7 @@ class CaseEditSubmitComponent {
|
|
|
33337
34229
|
return this.placeholderService.resolvePlaceholders(fields, stringToResolve);
|
|
33338
34230
|
}
|
|
33339
34231
|
static ɵfac = function CaseEditSubmitComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseEditSubmitComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(MultipageComponentStateService), i0.ɵɵdirectiveInject(FormValidatorsService), i0.ɵɵdirectiveInject(CaseFlagStateService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(PlaceholderService)); };
|
|
33340
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], standalone: false, decls: 25, vars: 24, consts: [["titleBlock", ""], ["idBlock", ""], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], [3, "error"], [3, "callbackErrorsContext", "callbackErrorsSubject"], [1, "check-your-answers", 3, "submit", "formGroup"], [4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "#", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content", "text-16"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "
|
|
34232
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], standalone: false, decls: 25, vars: 24, consts: [["titleBlock", ""], ["idBlock", ""], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], [3, "error"], [3, "callbackErrorsContext", "callbackErrorsSubject"], [1, "check-your-answers", 3, "submit", "formGroup"], [4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "#", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content", "text-16"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "#", 3, "click", 4, "ngIf"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group", 3, "ngClass"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["class", "error-message", 4, "ngIf"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], [1, "error-message"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditSubmitComponent_Template(rf, ctx) { if (rf & 1) {
|
|
33341
34233
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
33342
34234
|
i0.ɵɵelementStart(0, "div")(1, "h1", 2);
|
|
33343
34235
|
i0.ɵɵtext(2);
|
|
@@ -33398,7 +34290,7 @@ class CaseEditSubmitComponent {
|
|
|
33398
34290
|
}
|
|
33399
34291
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
33400
34292
|
type: Component,
|
|
33401
|
-
args: [{ selector: 'ccd-case-edit-submit', standalone: false, template: "<div>\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data'] | rpxTranslate\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content text-16\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [
|
|
34293
|
+
args: [{ selector: 'ccd-case-edit-submit', standalone: false, template: "<div>\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data'] | rpxTranslate\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content text-16\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id); $event.preventDefault()\"\n href=\"#\">\n <span class=\"text-16\" attr.aria-label=\"{{'Change' | rpxTranslate}} {{ field.label | rpxTranslate }}\">\n {{'Change' | rpxTranslate}}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-describedby=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!summary && !summary.valid && (summary.dirty || summary.touched)}\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <span class=\"error-message\" *ngIf=\"summary?.errors && (summary.dirty || summary.touched)\">\n {{summary.errors | ccdFirstError: eventSummaryLabel | rpxTranslate}}\n </span>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\"\n [ngClass]=\"{'govuk-input--error': summary?.errors && (summary.dirty || summary.touched)}\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!description && !description.valid && (description.dirty || description.touched)}\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <span class=\"error-message\" *ngIf=\"description?.errors && (description.dirty || description.touched)\">\n {{description.errors | ccdFirstError: eventDescriptionLabel | rpxTranslate}}\n </span>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n [ngClass]=\"{'govuk-input--error': description?.errors && (description.dirty || description.touched)}\" maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n </div>\n <ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n </ccd-case-event-completion>\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel(); $event.preventDefault()\" href=\"#\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n\n", styles: ["#fieldset-case-data{margin-bottom:30px}#fieldset-case-data th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}#confirmation-header{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body{width:630px;background-color:#fff}.valign-top{vertical-align:top}.summary-fields{margin-bottom:30px}.summary-fields tbody tr th,.summary-fields tbody tr td{border-bottom:0px}a.disabled{pointer-events:none;cursor:default}.case-field-label{width:45%}.case-field-content{width:50%}.no-bottom-border{border-bottom:none}.case-field-change{width:5%}.refresh-modal-backdrop{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.refresh-modal{background:#fff;padding:24px;max-width:520px;width:90%;box-shadow:0 8px 24px #0003;border-radius:4px;text-align:center}.refresh-modal .button{margin-top:12px}\n"] }]
|
|
33402
34294
|
}], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: MultipageComponentStateService }, { type: FormValidatorsService }, { type: CaseFlagStateService }, { type: LinkedCasesService }, { type: PlaceholderService }], null); })();
|
|
33403
34295
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditSubmitComponent, { className: "CaseEditSubmitComponent", filePath: "lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts", lineNumber: 32 }); })();
|
|
33404
34296
|
|
|
@@ -33623,7 +34515,8 @@ class CaseEditorModule {
|
|
|
33623
34515
|
EventCompletionStateMachineService,
|
|
33624
34516
|
CaseFlagStateService,
|
|
33625
34517
|
ValidPageListCaseFieldsService,
|
|
33626
|
-
MultipageComponentStateService
|
|
34518
|
+
MultipageComponentStateService,
|
|
34519
|
+
FocusService
|
|
33627
34520
|
], imports: [CommonModule,
|
|
33628
34521
|
RouterModule,
|
|
33629
34522
|
FormsModule,
|
|
@@ -33706,7 +34599,8 @@ class CaseEditorModule {
|
|
|
33706
34599
|
EventCompletionStateMachineService,
|
|
33707
34600
|
CaseFlagStateService,
|
|
33708
34601
|
ValidPageListCaseFieldsService,
|
|
33709
|
-
MultipageComponentStateService
|
|
34602
|
+
MultipageComponentStateService,
|
|
34603
|
+
FocusService
|
|
33710
34604
|
]
|
|
33711
34605
|
}]
|
|
33712
34606
|
}], null, null); })();
|
|
@@ -40089,9 +40983,6 @@ class CreateCaseFiltersComponent {
|
|
|
40089
40983
|
this.jurisdictions = jurisdictions;
|
|
40090
40984
|
this.selectJurisdiction(this.jurisdictions, this.filterJurisdictionControl);
|
|
40091
40985
|
});
|
|
40092
|
-
if (document.getElementById('cc-jurisdiction')) {
|
|
40093
|
-
document.getElementById('cc-jurisdiction').focus();
|
|
40094
|
-
}
|
|
40095
40986
|
}
|
|
40096
40987
|
onJurisdictionIdChange() {
|
|
40097
40988
|
this.resetCaseType();
|
|
@@ -41230,7 +42121,6 @@ class SearchResultComponent {
|
|
|
41230
42121
|
placeholderService;
|
|
41231
42122
|
browserService;
|
|
41232
42123
|
sessionStorageService;
|
|
41233
|
-
caseFlagRefdataService;
|
|
41234
42124
|
static PARAM_JURISDICTION = 'jurisdiction';
|
|
41235
42125
|
static PARAM_CASE_TYPE = 'case-type';
|
|
41236
42126
|
static PARAM_CASE_STATE = 'case-state';
|
|
@@ -41262,15 +42152,12 @@ class SearchResultComponent {
|
|
|
41262
42152
|
draftsCount;
|
|
41263
42153
|
consumerSortParameters = { column: null, order: null, type: null };
|
|
41264
42154
|
selectedCases = [];
|
|
41265
|
-
|
|
41266
|
-
pendingHmctsServiceIdCaseTypes = new Set();
|
|
41267
|
-
constructor(searchResultViewItemComparatorFactory, appConfig, activityService, caseReferencePipe, placeholderService, browserService, sessionStorageService, caseFlagRefdataService) {
|
|
42155
|
+
constructor(searchResultViewItemComparatorFactory, appConfig, activityService, caseReferencePipe, placeholderService, browserService, sessionStorageService) {
|
|
41268
42156
|
this.activityService = activityService;
|
|
41269
42157
|
this.caseReferencePipe = caseReferencePipe;
|
|
41270
42158
|
this.placeholderService = placeholderService;
|
|
41271
42159
|
this.browserService = browserService;
|
|
41272
42160
|
this.sessionStorageService = sessionStorageService;
|
|
41273
|
-
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
41274
42161
|
this.searchResultViewItemComparatorFactory = searchResultViewItemComparatorFactory;
|
|
41275
42162
|
this.paginationPageSize = appConfig.getPaginationPageSize();
|
|
41276
42163
|
this.hideRows = false;
|
|
@@ -41300,7 +42187,6 @@ class SearchResultComponent {
|
|
|
41300
42187
|
return a.order - b.order;
|
|
41301
42188
|
});
|
|
41302
42189
|
this.hydrateResultView();
|
|
41303
|
-
this.resolveHmctsServiceIdsForResults();
|
|
41304
42190
|
this.draftsCount = this.draftsCount ? this.draftsCount : this.numberOfDrafts();
|
|
41305
42191
|
}
|
|
41306
42192
|
if (changes['page']) {
|
|
@@ -41448,48 +42334,8 @@ class SearchResultComponent {
|
|
|
41448
42334
|
value: result.case_fields[col.case_field_id],
|
|
41449
42335
|
display_context_parameter: col.display_context_parameter,
|
|
41450
42336
|
display_context: col.display_context,
|
|
41451
|
-
hmctsServiceId: this.hmctsServiceIdByCaseType.get(this.getCaseTypeId(result)) || ''
|
|
41452
42337
|
});
|
|
41453
42338
|
}
|
|
41454
|
-
resolveHmctsServiceIdsForResults() {
|
|
41455
|
-
this.resultView.results.forEach((result) => {
|
|
41456
|
-
const caseTypeId = this.getCaseTypeId(result);
|
|
41457
|
-
if (!caseTypeId || !this.caseFlagRefdataService) {
|
|
41458
|
-
return;
|
|
41459
|
-
}
|
|
41460
|
-
if (this.hmctsServiceIdByCaseType.has(caseTypeId)) {
|
|
41461
|
-
this.applyHmctsServiceIdToResultFields(caseTypeId, this.hmctsServiceIdByCaseType.get(caseTypeId));
|
|
41462
|
-
return;
|
|
41463
|
-
}
|
|
41464
|
-
if (this.pendingHmctsServiceIdCaseTypes.has(caseTypeId)) {
|
|
41465
|
-
return;
|
|
41466
|
-
}
|
|
41467
|
-
this.pendingHmctsServiceIdCaseTypes.add(caseTypeId);
|
|
41468
|
-
this.caseFlagRefdataService.getHmctsServiceDetailsByCaseType(caseTypeId).subscribe({
|
|
41469
|
-
next: (serviceDetails) => {
|
|
41470
|
-
const hmctsServiceId = serviceDetails?.find((serviceDetail) => !!serviceDetail.service_code)?.service_code;
|
|
41471
|
-
if (hmctsServiceId) {
|
|
41472
|
-
this.hmctsServiceIdByCaseType.set(caseTypeId, hmctsServiceId);
|
|
41473
|
-
this.applyHmctsServiceIdToResultFields(caseTypeId, hmctsServiceId);
|
|
41474
|
-
}
|
|
41475
|
-
},
|
|
41476
|
-
error: () => this.pendingHmctsServiceIdCaseTypes.delete(caseTypeId),
|
|
41477
|
-
complete: () => this.pendingHmctsServiceIdCaseTypes.delete(caseTypeId)
|
|
41478
|
-
});
|
|
41479
|
-
});
|
|
41480
|
-
}
|
|
41481
|
-
applyHmctsServiceIdToResultFields(caseTypeId, hmctsServiceId) {
|
|
41482
|
-
this.resultView.results
|
|
41483
|
-
.filter((result) => this.getCaseTypeId(result) === caseTypeId)
|
|
41484
|
-
.forEach((result) => {
|
|
41485
|
-
Object.keys(result.columns || {}).forEach((columnId) => {
|
|
41486
|
-
result.columns[columnId].hmctsServiceId = hmctsServiceId;
|
|
41487
|
-
});
|
|
41488
|
-
});
|
|
41489
|
-
}
|
|
41490
|
-
getCaseTypeId(result) {
|
|
41491
|
-
return result?.case_fields?.['[CASE_TYPE]'] || this.caseType?.id;
|
|
41492
|
-
}
|
|
41493
42339
|
getColumnsWithPrefix(col, result) {
|
|
41494
42340
|
col.value = this.draftPrefixOrGet(col, result);
|
|
41495
42341
|
col.value = this.placeholderService.resolvePlaceholders(result.case_fields, col.value);
|
|
@@ -41612,7 +42458,7 @@ class SearchResultComponent {
|
|
|
41612
42458
|
}
|
|
41613
42459
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
41614
42460
|
noop() { }
|
|
41615
|
-
static ɵfac = function SearchResultComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SearchResultComponent)(i0.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ActivityService), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(BrowserService), i0.ɵɵdirectiveInject(SessionStorageService)
|
|
42461
|
+
static ɵfac = function SearchResultComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SearchResultComponent)(i0.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ActivityService), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(BrowserService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
41616
42462
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", 4, "ngIf"], ["class", "search-result-column-header", "scope", "col", 4, "ngFor", "ngForOf"], ["style", "width: 110px;", "scope", "col", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], [1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], [1, "reset-selection"], ["href", "#", 1, "search-result-reset-link", 3, "click"], [1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["scope", "col", 1, "search-result-column-header"], [1, "search-result-column-label", 3, "click", "keyup"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "#", 1, "sort-widget", 3, "click", "keyup.enter", "innerHTML"], ["scope", "col", 2, "width", "110px"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["scope", "col", 1, "govuk-table__checkbox"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [3, "pageChange", "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel"], [1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
41617
42463
|
i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 16, 11, "table", 1)(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 2)(2, SearchResultComponent_div_2_Template, 4, 6, "div", 3);
|
|
41618
42464
|
} if (rf & 2) {
|
|
@@ -41626,9 +42472,7 @@ class SearchResultComponent {
|
|
|
41626
42472
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
41627
42473
|
type: Component,
|
|
41628
42474
|
args: [{ selector: 'ccd-search-result', standalone: false, template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\">\n <output [attr.aria-label]=\"getTotalResults() + ' ' + ('results have been found' | rpxTranslate)\"></output>\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"#\" (click)=\"clearSelection(); $event.preventDefault()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\" [attr.aria-labelledby]=\"'select-all'\">\n </label>\n </div>\n </td>\n <th *ngFor=\"let col of resultView.columns\" class=\"search-result-column-header\"\n [attr.aria-sort]=\"isSortAscending(col) === null ? null : (isSortAscending(col) ? 'ascending' : 'descending')\" scope=\"col\">\n <div>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\" (keyup)=\"noop()\">\n {{ isTranslatable(col) ? (col.label | rpxTranslate) : col.label }}\n </div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col); $event.preventDefault()\" (keyup.enter)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" [attr.aria-label]=\"'Sort ' + col.label | rpxTranslate\" href=\"#\"></a>\n </div>\n </div>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\" scope=\"col\">​</th>\n </tr>\n </thead>\n\n <tbody>\n <!-- sorted by consumer -->\n <ng-container *ngIf=\"consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\" [attr.aria-labelledby]=\"'select-' + result.case_id\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n <!-- sorted by toolkit -->\n <ng-container *ngIf=\"!consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | ccdSortSearchResult : sortParameters | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" (keyup)=\"onKeyUp($event, result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\" [attr.aria-labelledby]=\"'select-' + result.case_id\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n\n </tbody>\n</table>\n\n<ccd-pagination\n *ngIf=\"hasResults()\"\n (pageChange)=\"goToPage($event)\"\n [visibilityLabel]=\"hideRows ? 'hidden' : 'visible'\"\n [autoHide]=\"true\"\n [maxSize]=\"8\"\n [screenReaderPaginationLabel]=\"'Pagination'\"\n [screenReaderPageLabel]=\"page\"\n [screenReaderCurrentLabel]=\"'You\\'re on page'\"></ccd-pagination>\n\n<div *ngIf=\"!(hasResults() || hasDrafts())\" class=\"notification\"\n[attr.aria-describedby]=\"'No cases found. Try using different filters.' | rpxTranslate\">\n{{'No cases found. Try using different filters.' | rpxTranslate}}\n</div>\n", styles: ["table thead tr th{vertical-align:top}table tbody tr td{font-size:16px;word-wrap:break-word}table tbody tr td a{float:left}table .caseid-col{white-space:nowrap}.notification{text-align:center;padding:30px 0;margin-top:75px}a:hover{color:#005ea5}.search-result-reset-link{padding-right:15px;padding-left:15px}.search-result-column-header{width:unset;table-layout:normal}.search-result-column-header div{display:table-cell;width:auto}@media screen and (max-width:379px){.search-result-column-header div{display:block;float:right}}.search-result-column-label{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort{font-size:16px}.sort-widget{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium{margin-top:-20px}.govuk-table__checkbox{vertical-align:middle;padding-left:3px}#search-result-heading__text:focus{outline:none}\n"] }]
|
|
41629
|
-
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }, {
|
|
41630
|
-
type: Optional
|
|
41631
|
-
}] }], { caseLinkUrlTemplate: [{
|
|
42475
|
+
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
|
|
41632
42476
|
type: Input
|
|
41633
42477
|
}], jurisdiction: [{
|
|
41634
42478
|
type: Input
|
|
@@ -41663,7 +42507,7 @@ class SearchResultComponent {
|
|
|
41663
42507
|
}], sortHandler: [{
|
|
41664
42508
|
type: Output
|
|
41665
42509
|
}] }); })();
|
|
41666
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchResultComponent, { className: "SearchResultComponent", filePath: "lib/shared/components/search-result/search-result.component.ts", lineNumber:
|
|
42510
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchResultComponent, { className: "SearchResultComponent", filePath: "lib/shared/components/search-result/search-result.component.ts", lineNumber: 19 }); })();
|
|
41667
42511
|
|
|
41668
42512
|
class SearchResultModule {
|
|
41669
42513
|
static ɵfac = function SearchResultModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SearchResultModule)(); };
|
|
@@ -41964,5 +42808,5 @@ class TestRouteSnapshotBuilder {
|
|
|
41964
42808
|
* Generated bundle index. Do not edit.
|
|
41965
42809
|
*/
|
|
41966
42810
|
|
|
41967
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, PaletteValueOrigin, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, safeJsonParse, textFieldType, viewerRouting };
|
|
42811
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FocusService, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, safeJsonParse, textFieldType, viewerRouting };
|
|
41968
42812
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map
|