@hmcts/ccd-case-ui-toolkit 7.4.16-moment-update → 7.4.17-1661-assessibility-issue
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 +467 -400
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/index.d.ts +45 -34
- package/index.d.ts.map +1 -1
- package/package.json +9 -8
|
@@ -18,16 +18,13 @@ import moment from 'moment';
|
|
|
18
18
|
import * as _ from 'underscore';
|
|
19
19
|
import 'reflect-metadata';
|
|
20
20
|
import { StateMachine } from '@edium/fsm';
|
|
21
|
-
import * as i1$3 from '@angular/material/
|
|
22
|
-
import {
|
|
23
|
-
import { MatDialogConfig } from '@angular/material/dialog';
|
|
21
|
+
import * as i1$3 from '@angular/material/dialog';
|
|
22
|
+
import { MatDialogConfig, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
24
23
|
import * as marked from 'marked';
|
|
25
24
|
import * as i1$4 from 'ngx-markdown';
|
|
26
25
|
import { MarkdownModule } from 'ngx-markdown';
|
|
27
|
-
import * as i6 from '@angular/material/
|
|
28
|
-
import {
|
|
29
|
-
import * as i7 from '@angular/material/legacy-core';
|
|
30
|
-
import { MAT_LEGACY_DATE_LOCALE } from '@angular/material/legacy-core';
|
|
26
|
+
import * as i6 from '@angular/material/autocomplete';
|
|
27
|
+
import { MatAutocompleteTrigger, MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
31
28
|
import * as i3 from '@hmcts/ccpay-web-component';
|
|
32
29
|
import { PaymentLibModule } from '@hmcts/ccpay-web-component';
|
|
33
30
|
import { v4 } from 'uuid';
|
|
@@ -45,22 +42,23 @@ import { OverlayModule } from '@angular/cdk/overlay';
|
|
|
45
42
|
import * as i6$1 from '@angular/cdk/tree';
|
|
46
43
|
import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
47
44
|
import { cloneDeep } from 'lodash';
|
|
48
|
-
import * as i4$2 from '@
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import
|
|
52
|
-
import
|
|
45
|
+
import * as i4$2 from '@ngxmc/datetime-picker';
|
|
46
|
+
import { NgxMatDatepickerActions, NgxMatDatetimepicker, NgxMatDatepickerApply, NgxMatDatepickerInput } from '@ngxmc/datetime-picker';
|
|
47
|
+
import { MAT_DATE_FORMATS, MAT_DATE_LOCALE, DateAdapter } from '@angular/material/core';
|
|
48
|
+
import { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
49
|
+
import * as i5$1 from '@angular/material/form-field';
|
|
50
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
53
51
|
import * as i6$2 from '@angular/material/datepicker';
|
|
54
52
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
55
|
-
import * as i15 from '@angular/material/
|
|
56
|
-
import {
|
|
53
|
+
import * as i15 from '@angular/material/input';
|
|
54
|
+
import { MatInputModule } from '@angular/material/input';
|
|
57
55
|
import * as i14 from '@hmcts/media-viewer';
|
|
58
56
|
import { MediaViewerModule } from '@hmcts/media-viewer';
|
|
59
57
|
import { PortalModule } from '@angular/cdk/portal';
|
|
60
58
|
import * as i2$1 from 'ngx-pagination';
|
|
61
59
|
import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
|
|
62
|
-
import * as i10 from '@angular/material/
|
|
63
|
-
import {
|
|
60
|
+
import * as i10 from '@angular/material/tabs';
|
|
61
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
64
62
|
import { compressToUTF16, decompressFromUTF16 } from 'lz-string';
|
|
65
63
|
|
|
66
64
|
const _c0$1a = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
@@ -867,11 +865,11 @@ class HeaderBarComponent {
|
|
|
867
865
|
i0.ɵɵtextInterpolate(ctx.username);
|
|
868
866
|
i0.ɵɵadvance(2);
|
|
869
867
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 12, "Sign Out"));
|
|
870
|
-
} }, dependencies: [i5.NgIf, i1.RpxTranslatePipe], styles: [".
|
|
868
|
+
} }, dependencies: [i5.NgIf, i1.RpxTranslatePipe], styles: [".global-header[_ngcontent-%COMP%]:after, .global-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]:after, .global-header[_ngcontent-%COMP%] .header-username[_ngcontent-%COMP%]:after, .title[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}.global-header[_ngcontent-%COMP%]{background-color:#000;width:100%}.global-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16pt;line-height:1.25}@media(min-width:641px){.global-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:20pt;line-height:1.3}}@media print{.global-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:12pt}}.global-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{float:left;font-weight:700;color:#fff;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}@media(min-width:769px){.global-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{width:50%}}@media screen and (max-width:379px){.global-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{width:auto;float:none}}.global-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%] .header-title-span[_ngcontent-%COMP%]{padding-left:22px}.global-header[_ngcontent-%COMP%] .header-username[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:12pt;line-height:1.25}@media(min-width:641px){.global-header[_ngcontent-%COMP%] .header-username[_ngcontent-%COMP%]{font-size:14pt;line-height:1.4285714286}}@media print{.global-header[_ngcontent-%COMP%] .header-username[_ngcontent-%COMP%]{font-size:11pt}}.global-header[_ngcontent-%COMP%] .header-username[_ngcontent-%COMP%]{float:right;text-align:right;color:#fff;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}@media(min-width:769px){.global-header[_ngcontent-%COMP%] .header-username[_ngcontent-%COMP%]{width:50%}}.global-header[_ngcontent-%COMP%] .header-username[_ngcontent-%COMP%] .header-username-span[_ngcontent-%COMP%]{padding-right:15px}#global-header[_ngcontent-%COMP%] .full-screen[_ngcontent-%COMP%]{max-width:100%}.title[_ngcontent-%COMP%]{font-weight:700;color:#fff;font-size:24px}.title-solicitor[_ngcontent-%COMP%]{float:left}.proposition-right[_ngcontent-%COMP%]{float:right;padding-top:5px}#global-header.with-proposition[_ngcontent-%COMP%] .header-wrapper[_ngcontent-%COMP%] .header-logo[_ngcontent-%COMP%]{width:27%}#global-header.with-proposition[_ngcontent-%COMP%] .header-wrapper[_ngcontent-%COMP%] .header-proposition[_ngcontent-%COMP%]{width:100%;float:none}#global-header.with-proposition[_ngcontent-%COMP%] .header-wrapper[_ngcontent-%COMP%] .header-proposition[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin:0}#user-name[_ngcontent-%COMP%], #sign-out[_ngcontent-%COMP%]{font-size:16px;font-weight:700;border:none;color:#fff;margin:0 0 0 9px;text-decoration:none;background-color:#000}#user-name[_ngcontent-%COMP%]:focus, #sign-out[_ngcontent-%COMP%]:focus{color:#fff}#sign-out[_ngcontent-%COMP%]:hover{text-decoration:underline}"] });
|
|
871
869
|
}
|
|
872
870
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HeaderBarComponent, [{
|
|
873
871
|
type: Component,
|
|
874
|
-
args: [{ selector: 'cut-header-bar', standalone: false, template: "<header role=\"banner\" id=\"global-header\" class=\"with-proposition\">\n <div [class.full-screen]=\"!isSolicitor\" class=\"header-wrapper\">\n\n <div class=\"header-global\" [class.header-logo]=\"isSolicitor\">\n <div *ngIf=\"isSolicitor\">\n <a href=\"https://www.gov.uk\" title=\"Go to the GOV.UK homepage\" id=\"logo\" class=\"content\" style=\"margin-left: 0px;\">\n <img src=\"/img/gov.uk_logotype_crown_invert_trans.png?0.23.0\" width=\"36\" height=\"32\" alt=\"\"> {{'GOV.UK'}}\n </a>\n </div>\n <div class=\"global-header\" *ngIf=\"!isSolicitor\">\n <div class=\"title\">\n <span>{{title | rpxTranslate}}</span>\n </div>\n </div>\n </div>\n\n <div class=\"header-proposition\">\n <div class=\"content\">\n <a href=\"#proposition-links\" class=\"js-header-toggle menu\">{{'Menu' | rpxTranslate}}</a>\n <div *ngIf=\"isSolicitor\" id=\"proposition-menu\">\n <div class=\"title-solicitor\">\n <span id=\"proposition-name\">{{title | rpxTranslate}}</span>\n <ng-content select=\"[headerNavigation]\"></ng-content>\n </div>\n </div>\n\n <div class=\"proposition-right\">\n <span id=\"user-name\">{{username}}</span>\n <button type=\"button\" class=\"govuk-js-link\" (click)=\"signOut()\" id=\"sign-out\">{{'Sign Out' | rpxTranslate}}</button>\n </div>\n </div>\n </div>\n\n </div>\n</header>\n", styles: [".
|
|
872
|
+
args: [{ selector: 'cut-header-bar', standalone: false, template: "<header role=\"banner\" id=\"global-header\" class=\"with-proposition\">\n <div [class.full-screen]=\"!isSolicitor\" class=\"header-wrapper\">\n\n <div class=\"header-global\" [class.header-logo]=\"isSolicitor\">\n <div *ngIf=\"isSolicitor\">\n <a href=\"https://www.gov.uk\" title=\"Go to the GOV.UK homepage\" id=\"logo\" class=\"content\" style=\"margin-left: 0px;\">\n <img src=\"/img/gov.uk_logotype_crown_invert_trans.png?0.23.0\" width=\"36\" height=\"32\" alt=\"\"> {{'GOV.UK'}}\n </a>\n </div>\n <div class=\"global-header\" *ngIf=\"!isSolicitor\">\n <div class=\"title\">\n <span>{{title | rpxTranslate}}</span>\n </div>\n </div>\n </div>\n\n <div class=\"header-proposition\">\n <div class=\"content\">\n <a href=\"#proposition-links\" class=\"js-header-toggle menu\">{{'Menu' | rpxTranslate}}</a>\n <div *ngIf=\"isSolicitor\" id=\"proposition-menu\">\n <div class=\"title-solicitor\">\n <span id=\"proposition-name\">{{title | rpxTranslate}}</span>\n <ng-content select=\"[headerNavigation]\"></ng-content>\n </div>\n </div>\n\n <div class=\"proposition-right\">\n <span id=\"user-name\">{{username}}</span>\n <button type=\"button\" class=\"govuk-js-link\" (click)=\"signOut()\" id=\"sign-out\">{{'Sign Out' | rpxTranslate}}</button>\n </div>\n </div>\n </div>\n\n </div>\n</header>\n", styles: [".global-header:after,.global-header .header-title:after,.global-header .header-username:after,.title:after{content:\"\";display:block;clear:both}.govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.global-header{background-color:#000;width:100%}.global-header .header-title{font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16pt;line-height:1.25}@media(min-width:641px){.global-header .header-title{font-size:20pt;line-height:1.3}}@media print{.global-header .header-title{font-size:12pt}}.global-header .header-title{float:left;font-weight:700;color:#fff;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}@media(min-width:769px){.global-header .header-title{width:50%}}@media screen and (max-width:379px){.global-header .header-title{width:auto;float:none}}.global-header .header-title .header-title-span{padding-left:22px}.global-header .header-username{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:12pt;line-height:1.25}@media(min-width:641px){.global-header .header-username{font-size:14pt;line-height:1.4285714286}}@media print{.global-header .header-username{font-size:11pt}}.global-header .header-username{float:right;text-align:right;color:#fff;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}@media(min-width:769px){.global-header .header-username{width:50%}}.global-header .header-username .header-username-span{padding-right:15px}#global-header .full-screen{max-width:100%}.title{font-weight:700;color:#fff;font-size:24px}.title-solicitor{float:left}.proposition-right{float:right;padding-top:5px}#global-header.with-proposition .header-wrapper .header-logo{width:27%}#global-header.with-proposition .header-wrapper .header-proposition{width:100%;float:none}#global-header.with-proposition .header-wrapper .header-proposition .content{margin:0}#user-name,#sign-out{font-size:16px;font-weight:700;border:none;color:#fff;margin:0 0 0 9px;text-decoration:none;background-color:#000}#user-name:focus,#sign-out:focus{color:#fff}#sign-out:hover{text-decoration:underline}\n"] }]
|
|
875
873
|
}], () => [{ type: ProfileService, decorators: [{
|
|
876
874
|
type: Optional
|
|
877
875
|
}] }, { type: ProfileNotifier, decorators: [{
|
|
@@ -4959,7 +4957,7 @@ class FieldsUtils {
|
|
|
4959
4957
|
|
|
4960
4958
|
// @ts-nocheck
|
|
4961
4959
|
// This file is generated by npm run generate:condition-parser. Do not edit by hand.
|
|
4962
|
-
// @generated by Peggy 5.1.
|
|
4960
|
+
// @generated by Peggy 5.1.1.
|
|
4963
4961
|
//
|
|
4964
4962
|
// https://peggyjs.org/
|
|
4965
4963
|
class peg$SyntaxError extends SyntaxError {
|
|
@@ -5014,10 +5012,9 @@ class peg$SyntaxError extends SyntaxError {
|
|
|
5014
5012
|
}
|
|
5015
5013
|
return s;
|
|
5016
5014
|
}
|
|
5017
|
-
function
|
|
5015
|
+
function escape(s, special) {
|
|
5018
5016
|
return unicodeEscape(s
|
|
5019
|
-
.replace(
|
|
5020
|
-
.replace(/"/g, "\\\"")
|
|
5017
|
+
.replace(special, "\\$&")
|
|
5021
5018
|
.replace(/\0/g, "\\0")
|
|
5022
5019
|
.replace(/\t/g, "\\t")
|
|
5023
5020
|
.replace(/\n/g, "\\n")
|
|
@@ -5025,18 +5022,11 @@ class peg$SyntaxError extends SyntaxError {
|
|
|
5025
5022
|
.replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
|
|
5026
5023
|
.replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
|
|
5027
5024
|
}
|
|
5025
|
+
function literalEscape(s) {
|
|
5026
|
+
return escape(s, /[\\"]/g);
|
|
5027
|
+
}
|
|
5028
5028
|
function classEscape(s) {
|
|
5029
|
-
return
|
|
5030
|
-
.replace(/\\/g, "\\\\")
|
|
5031
|
-
.replace(/\]/g, "\\]")
|
|
5032
|
-
.replace(/\^/g, "\\^")
|
|
5033
|
-
.replace(/-/g, "\\-")
|
|
5034
|
-
.replace(/\0/g, "\\0")
|
|
5035
|
-
.replace(/\t/g, "\\t")
|
|
5036
|
-
.replace(/\n/g, "\\n")
|
|
5037
|
-
.replace(/\r/g, "\\r")
|
|
5038
|
-
.replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
|
|
5039
|
-
.replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
|
|
5029
|
+
return escape(s, /[\\\]^-]/g);
|
|
5040
5030
|
}
|
|
5041
5031
|
const DESCRIBE_EXPECTATION_FNS = {
|
|
5042
5032
|
literal(expectation) {
|
|
@@ -5109,11 +5099,6 @@ function peg$parse(input, options) {
|
|
|
5109
5099
|
const peg$c7 = "=";
|
|
5110
5100
|
const peg$c8 = "!=";
|
|
5111
5101
|
const peg$c9 = "CONTAINS";
|
|
5112
|
-
const peg$r0 = /^[a-zA-Z]/;
|
|
5113
|
-
const peg$r1 = /^[A-Za-z0-9._\-]/;
|
|
5114
|
-
const peg$r2 = /^[0-9]/;
|
|
5115
|
-
const peg$r3 = /^[A-Za-z0-9.,* _&()\/\-]/;
|
|
5116
|
-
const peg$r4 = /^[ \t]/;
|
|
5117
5102
|
const peg$e0 = peg$literalExpectation("AND", false);
|
|
5118
5103
|
const peg$e1 = peg$literalExpectation("OR", false);
|
|
5119
5104
|
const peg$e2 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
|
|
@@ -5150,6 +5135,7 @@ function peg$parse(input, options) {
|
|
|
5150
5135
|
let peg$maxFailExpected = options.peg$maxFailExpected || [];
|
|
5151
5136
|
let peg$silentFails = options.peg$silentFails | 0;
|
|
5152
5137
|
let peg$result;
|
|
5138
|
+
let peg$charCode;
|
|
5153
5139
|
if (options.startRule) {
|
|
5154
5140
|
if (!(options.startRule in peg$startRuleFunctions)) {
|
|
5155
5141
|
throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
|
|
@@ -5288,10 +5274,12 @@ function peg$parse(input, options) {
|
|
|
5288
5274
|
s1 = peg$parseFormulaTerm();
|
|
5289
5275
|
if (s1 !== peg$FAILED) {
|
|
5290
5276
|
s2 = [];
|
|
5291
|
-
|
|
5292
|
-
while (s3 !== peg$FAILED) {
|
|
5293
|
-
s2.push(s3);
|
|
5277
|
+
for (;;) {
|
|
5294
5278
|
s3 = peg$parseJoinComparator();
|
|
5279
|
+
if (s3 === peg$FAILED) {
|
|
5280
|
+
break;
|
|
5281
|
+
}
|
|
5282
|
+
s2.push(s3);
|
|
5295
5283
|
}
|
|
5296
5284
|
peg$savedPos = s0;
|
|
5297
5285
|
s0 = peg$f0(s1, s2);
|
|
@@ -5459,14 +5447,14 @@ function peg$parse(input, options) {
|
|
|
5459
5447
|
let s0, s1, s2;
|
|
5460
5448
|
s0 = peg$currPos;
|
|
5461
5449
|
s1 = [];
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
s2 = peg$parseLetter();
|
|
5450
|
+
for (;;) {
|
|
5451
|
+
s2 = peg$parseLetter();
|
|
5452
|
+
if (s2 === peg$FAILED) {
|
|
5453
|
+
break;
|
|
5467
5454
|
}
|
|
5455
|
+
s1.push(s2);
|
|
5468
5456
|
}
|
|
5469
|
-
|
|
5457
|
+
if (s1.length < 1) {
|
|
5470
5458
|
s1 = peg$FAILED;
|
|
5471
5459
|
}
|
|
5472
5460
|
if (s1 !== peg$FAILED) {
|
|
@@ -5479,7 +5467,7 @@ function peg$parse(input, options) {
|
|
|
5479
5467
|
function peg$parseLetter() {
|
|
5480
5468
|
let s0;
|
|
5481
5469
|
s0 = input.charAt(peg$currPos);
|
|
5482
|
-
if (peg$
|
|
5470
|
+
if ((peg$charCode = s0.charCodeAt(0), (peg$charCode >= 97 && peg$charCode <= 122) || (peg$charCode >= 65 && peg$charCode <= 90))) {
|
|
5483
5471
|
peg$currPos++;
|
|
5484
5472
|
}
|
|
5485
5473
|
else {
|
|
@@ -5553,32 +5541,23 @@ function peg$parse(input, options) {
|
|
|
5553
5541
|
let s0, s1, s2;
|
|
5554
5542
|
s0 = peg$currPos;
|
|
5555
5543
|
s1 = [];
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
peg$
|
|
5559
|
-
|
|
5560
|
-
else {
|
|
5561
|
-
s2 = peg$FAILED;
|
|
5562
|
-
if (peg$silentFails === 0) {
|
|
5563
|
-
peg$fail(peg$e3);
|
|
5544
|
+
for (;;) {
|
|
5545
|
+
s2 = input.charAt(peg$currPos);
|
|
5546
|
+
if ((peg$charCode = s2.charCodeAt(0), (peg$charCode >= 65 && peg$charCode <= 90) || (peg$charCode >= 97 && peg$charCode <= 122) || (peg$charCode >= 48 && peg$charCode <= 57) || peg$charCode === 46 || peg$charCode === 95 || peg$charCode === 45)) {
|
|
5547
|
+
peg$currPos++;
|
|
5564
5548
|
}
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
s2 = input.charAt(peg$currPos);
|
|
5570
|
-
if (peg$r1.test(s2)) {
|
|
5571
|
-
peg$currPos++;
|
|
5572
|
-
}
|
|
5573
|
-
else {
|
|
5574
|
-
s2 = peg$FAILED;
|
|
5575
|
-
if (peg$silentFails === 0) {
|
|
5576
|
-
peg$fail(peg$e3);
|
|
5577
|
-
}
|
|
5549
|
+
else {
|
|
5550
|
+
s2 = peg$FAILED;
|
|
5551
|
+
if (peg$silentFails === 0) {
|
|
5552
|
+
peg$fail(peg$e3);
|
|
5578
5553
|
}
|
|
5579
5554
|
}
|
|
5555
|
+
if (s2 === peg$FAILED) {
|
|
5556
|
+
break;
|
|
5557
|
+
}
|
|
5558
|
+
s1.push(s2);
|
|
5580
5559
|
}
|
|
5581
|
-
|
|
5560
|
+
if (s1.length < 1) {
|
|
5582
5561
|
s1 = peg$FAILED;
|
|
5583
5562
|
}
|
|
5584
5563
|
if (s1 !== peg$FAILED) {
|
|
@@ -5619,32 +5598,23 @@ function peg$parse(input, options) {
|
|
|
5619
5598
|
function peg$parsenumber() {
|
|
5620
5599
|
let s0, s1;
|
|
5621
5600
|
s0 = [];
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
peg$
|
|
5625
|
-
|
|
5626
|
-
else {
|
|
5627
|
-
s1 = peg$FAILED;
|
|
5628
|
-
if (peg$silentFails === 0) {
|
|
5629
|
-
peg$fail(peg$e6);
|
|
5601
|
+
for (;;) {
|
|
5602
|
+
s1 = input.charAt(peg$currPos);
|
|
5603
|
+
if ((peg$charCode = s1.charCodeAt(0), (peg$charCode >= 48 && peg$charCode <= 57))) {
|
|
5604
|
+
peg$currPos++;
|
|
5630
5605
|
}
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
s1 = input.charAt(peg$currPos);
|
|
5636
|
-
if (peg$r2.test(s1)) {
|
|
5637
|
-
peg$currPos++;
|
|
5638
|
-
}
|
|
5639
|
-
else {
|
|
5640
|
-
s1 = peg$FAILED;
|
|
5641
|
-
if (peg$silentFails === 0) {
|
|
5642
|
-
peg$fail(peg$e6);
|
|
5643
|
-
}
|
|
5606
|
+
else {
|
|
5607
|
+
s1 = peg$FAILED;
|
|
5608
|
+
if (peg$silentFails === 0) {
|
|
5609
|
+
peg$fail(peg$e6);
|
|
5644
5610
|
}
|
|
5645
5611
|
}
|
|
5612
|
+
if (s1 === peg$FAILED) {
|
|
5613
|
+
break;
|
|
5614
|
+
}
|
|
5615
|
+
s0.push(s1);
|
|
5646
5616
|
}
|
|
5647
|
-
|
|
5617
|
+
if (s0.length < 1) {
|
|
5648
5618
|
s0 = peg$FAILED;
|
|
5649
5619
|
}
|
|
5650
5620
|
return s0;
|
|
@@ -5664,20 +5634,9 @@ function peg$parse(input, options) {
|
|
|
5664
5634
|
}
|
|
5665
5635
|
if (s1 !== peg$FAILED) {
|
|
5666
5636
|
s2 = [];
|
|
5667
|
-
|
|
5668
|
-
if (peg$r3.test(s3)) {
|
|
5669
|
-
peg$currPos++;
|
|
5670
|
-
}
|
|
5671
|
-
else {
|
|
5672
|
-
s3 = peg$FAILED;
|
|
5673
|
-
if (peg$silentFails === 0) {
|
|
5674
|
-
peg$fail(peg$e8);
|
|
5675
|
-
}
|
|
5676
|
-
}
|
|
5677
|
-
while (s3 !== peg$FAILED) {
|
|
5678
|
-
s2.push(s3);
|
|
5637
|
+
for (;;) {
|
|
5679
5638
|
s3 = input.charAt(peg$currPos);
|
|
5680
|
-
if (peg$
|
|
5639
|
+
if ((peg$charCode = s3.charCodeAt(0), (peg$charCode >= 65 && peg$charCode <= 90) || (peg$charCode >= 97 && peg$charCode <= 122) || (peg$charCode >= 48 && peg$charCode <= 57) || peg$charCode === 46 || peg$charCode === 44 || peg$charCode === 42 || peg$charCode === 32 || peg$charCode === 95 || peg$charCode === 38 || peg$charCode === 40 || peg$charCode === 41 || peg$charCode === 47 || peg$charCode === 45)) {
|
|
5681
5640
|
peg$currPos++;
|
|
5682
5641
|
}
|
|
5683
5642
|
else {
|
|
@@ -5686,6 +5645,10 @@ function peg$parse(input, options) {
|
|
|
5686
5645
|
peg$fail(peg$e8);
|
|
5687
5646
|
}
|
|
5688
5647
|
}
|
|
5648
|
+
if (s3 === peg$FAILED) {
|
|
5649
|
+
break;
|
|
5650
|
+
}
|
|
5651
|
+
s2.push(s3);
|
|
5689
5652
|
}
|
|
5690
5653
|
if (input.charCodeAt(peg$currPos) === 34) {
|
|
5691
5654
|
s3 = peg$c4;
|
|
@@ -5816,7 +5779,7 @@ function peg$parse(input, options) {
|
|
|
5816
5779
|
let s0, s1;
|
|
5817
5780
|
peg$silentFails++;
|
|
5818
5781
|
s0 = input.charAt(peg$currPos);
|
|
5819
|
-
if (peg$
|
|
5782
|
+
if ((peg$charCode = s0.charCodeAt(0), peg$charCode === 32 || peg$charCode === 9)) {
|
|
5820
5783
|
peg$currPos++;
|
|
5821
5784
|
}
|
|
5822
5785
|
else {
|
|
@@ -5838,14 +5801,14 @@ function peg$parse(input, options) {
|
|
|
5838
5801
|
let s0, s1;
|
|
5839
5802
|
peg$silentFails++;
|
|
5840
5803
|
s0 = [];
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
s1 = peg$parsews();
|
|
5804
|
+
for (;;) {
|
|
5805
|
+
s1 = peg$parsews();
|
|
5806
|
+
if (s1 === peg$FAILED) {
|
|
5807
|
+
break;
|
|
5846
5808
|
}
|
|
5809
|
+
s0.push(s1);
|
|
5847
5810
|
}
|
|
5848
|
-
|
|
5811
|
+
if (s0.length < 1) {
|
|
5849
5812
|
s0 = peg$FAILED;
|
|
5850
5813
|
}
|
|
5851
5814
|
peg$silentFails--;
|
|
@@ -12203,7 +12166,7 @@ class SaveOrDiscardDialogComponent {
|
|
|
12203
12166
|
this.result = 'Discard';
|
|
12204
12167
|
this.matDialogRef.close(this.result);
|
|
12205
12168
|
}
|
|
12206
|
-
static ɵfac = function SaveOrDiscardDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$3.
|
|
12169
|
+
static ɵfac = function SaveOrDiscardDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
|
|
12207
12170
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SaveOrDiscardDialogComponent, selectors: [["ccd-save-or-discard-dialog"]], standalone: false, decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Save", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Discard", 1, "button", "button-secondary", 3, "click"]], template: function SaveOrDiscardDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12208
12171
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
|
|
12209
12172
|
i0.ɵɵlistener("click", function SaveOrDiscardDialogComponent_Template_h2_click_2_listener() { return ctx.cancel(); });
|
|
@@ -12241,7 +12204,7 @@ class SaveOrDiscardDialogComponent {
|
|
|
12241
12204
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SaveOrDiscardDialogComponent, [{
|
|
12242
12205
|
type: Component,
|
|
12243
12206
|
args: [{ selector: 'ccd-save-or-discard-dialog', standalone: false, template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Would you like to save changes to this page?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">{{'You will be taken back to your case list.' | rpxTranslate}}</span>\n </div>\n <div>\n <button type=\"button\" title=\"Save\" class=\"button action-button\" (click)=\"save()\">{{'Save' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Discard\" class=\"button button-secondary\" (click)=\"discard()\">{{'Discard' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}@media(prefers-color-scheme:dark){.dialog-title,.dialog-info{color:#000}}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
|
|
12244
|
-
}], () => [{ type: i1$3.
|
|
12207
|
+
}], () => [{ type: i1$3.MatDialogRef }], null); })();
|
|
12245
12208
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SaveOrDiscardDialogComponent, { className: "SaveOrDiscardDialogComponent", filePath: "lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.ts", lineNumber: 10 }); })();
|
|
12246
12209
|
|
|
12247
12210
|
function initDialog() {
|
|
@@ -12798,16 +12761,23 @@ class CaseEditPageComponent {
|
|
|
12798
12761
|
* This builds the form with data from the previous pages
|
|
12799
12762
|
* EUI-3732 - Breathing space data not persisted on Previous button click with ExpUI Demo
|
|
12800
12763
|
*/
|
|
12801
|
-
toPreviousPage() {
|
|
12764
|
+
async toPreviousPage() {
|
|
12802
12765
|
this.clearValidationErrors();
|
|
12803
12766
|
const caseEventData = this.buildCaseEventData(true);
|
|
12804
12767
|
caseEventData.data = caseEventData.event_data;
|
|
12805
12768
|
this.updateFormData(caseEventData);
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
this.
|
|
12769
|
+
try {
|
|
12770
|
+
await this.previous();
|
|
12771
|
+
if (this.getPageNumber() !== undefined) {
|
|
12772
|
+
this.previousStep();
|
|
12773
|
+
}
|
|
12774
|
+
}
|
|
12775
|
+
catch (error) {
|
|
12776
|
+
this.handleError(error);
|
|
12777
|
+
}
|
|
12778
|
+
finally {
|
|
12779
|
+
this.focusService.focus();
|
|
12809
12780
|
}
|
|
12810
|
-
this.focusService.focus();
|
|
12811
12781
|
}
|
|
12812
12782
|
// Adding validation message to show it as Error Summary
|
|
12813
12783
|
generateErrorMessage(fields, container, path, sourceFromComplexField) {
|
|
@@ -13015,8 +12985,8 @@ class CaseEditPageComponent {
|
|
|
13015
12985
|
this.updateFormData(jsonData);
|
|
13016
12986
|
}
|
|
13017
12987
|
this.saveDraft();
|
|
13018
|
-
this.next();
|
|
13019
|
-
}, error => {
|
|
12988
|
+
void this.next().catch((error) => this.handleError(error));
|
|
12989
|
+
}, (error) => {
|
|
13020
12990
|
this.handleError(error);
|
|
13021
12991
|
});
|
|
13022
12992
|
CaseEditPageComponent.scrollToTop();
|
|
@@ -13347,7 +13317,7 @@ class CaseEditPageComponent {
|
|
|
13347
13317
|
}
|
|
13348
13318
|
return caseField.id;
|
|
13349
13319
|
}
|
|
13350
|
-
static ɵfac = function CaseEditPageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.
|
|
13320
|
+
static ɵfac = function CaseEditPageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatDialog), 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)); };
|
|
13351
13321
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], viewQuery: function CaseEditPageComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13352
13322
|
i0.ɵɵviewQuery(CaseEditFormComponent, 5);
|
|
13353
13323
|
} if (rf & 2) {
|
|
@@ -13385,7 +13355,7 @@ class CaseEditPageComponent {
|
|
|
13385
13355
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
|
|
13386
13356
|
type: Component,
|
|
13387
13357
|
args: [{ selector: 'ccd-case-edit-page', standalone: false, template: "<ng-container *ngIf=\"eventTrigger\">\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]=\"demoteCaseTitleHeadingLevel(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 <div id=\"fieldset-case-data\">\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 </div>\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: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
13388
|
-
}], () => [{ type: CaseEditComponent }, { type: i1$2.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.
|
|
13358
|
+
}], () => [{ type: CaseEditComponent }, { type: i1$2.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: MultipageComponentStateService }, { type: AddressesService }, { type: LinkedCasesService }, { type: CaseFlagStateService }, { type: FocusService }], { caseEditFormComponents: [{
|
|
13389
13359
|
type: ViewChildren,
|
|
13390
13360
|
args: [CaseEditFormComponent]
|
|
13391
13361
|
}] }); })();
|
|
@@ -16394,7 +16364,7 @@ class RemoveDialogComponent {
|
|
|
16394
16364
|
this.result = 'Cancel';
|
|
16395
16365
|
this.matDialogRef.close(this.result);
|
|
16396
16366
|
}
|
|
16397
|
-
static ɵfac = function RemoveDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$3.
|
|
16367
|
+
static ɵfac = function RemoveDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
|
|
16398
16368
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], standalone: false, decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16399
16369
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
|
|
16400
16370
|
i0.ɵɵlistener("click", function RemoveDialogComponent_Template_h2_click_2_listener() { return ctx.cancel(); });
|
|
@@ -16432,7 +16402,7 @@ class RemoveDialogComponent {
|
|
|
16432
16402
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RemoveDialogComponent, [{
|
|
16433
16403
|
type: Component,
|
|
16434
16404
|
args: [{ selector: 'ccd-remove-dialog', standalone: false, template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Are you sure you want to remove the item?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">\n {{'You are about to permanently remove an item, are you sure you want to remove this item?' | rpxTranslate}}\n </span>\n </div>\n <div>\n <button type=\"button\" title=\"Remove\" class=\"button action-button\" (click)=\"remove()\">{{'Remove' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Cancel\" class=\"button button-secondary\" (click)=\"cancel()\">{{'Cancel' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}@media(prefers-color-scheme:dark){.dialog-title,.dialog-info{color:#000}}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
|
|
16435
|
-
}], () => [{ type: i1$3.
|
|
16405
|
+
}], () => [{ type: i1$3.MatDialogRef }], null); })();
|
|
16436
16406
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RemoveDialogComponent, { className: "RemoveDialogComponent", filePath: "lib/shared/components/dialogs/remove-dialog/remove-dialog.component.ts", lineNumber: 10 }); })();
|
|
16437
16407
|
|
|
16438
16408
|
const _c0$W = ["collectionItem"];
|
|
@@ -16854,7 +16824,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16854
16824
|
const notSimple = ['Collection', 'Complex'];
|
|
16855
16825
|
return notSimple.indexOf(caseField.field_type.collection_field_type.type) < 0;
|
|
16856
16826
|
}
|
|
16857
|
-
static ɵfac = function WriteCollectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.
|
|
16827
|
+
static ɵfac = function WriteCollectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
16858
16828
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
16859
16829
|
i0.ɵɵviewQuery(_c0$W, 5);
|
|
16860
16830
|
} if (rf & 2) {
|
|
@@ -16889,13 +16859,13 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16889
16859
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCollectionFieldComponent, [{
|
|
16890
16860
|
type: Component,
|
|
16891
16861
|
args: [{ selector: 'ccd-write-collection-field', standalone: false, template: "<div class=\"form-group\" [id]=\"id()\">\n\n <div class=\"panel collection-indicator\">\n\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"!caseField.hidden\">\n {{(caseField | ccdFieldLabel)}}\n </h2>\n <button class=\"button write-collection-add-item__top\" type=\"button\" (click)=\"addItem(true)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\">{{'Add new' | rpxTranslate}}</button>\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"caseField.hint_text || formArray.errors\">\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">\n <ccd-markdown [content]=\"caseField.hint_text | rpxTranslate\"></ccd-markdown>\n </span>\n <span *ngIf=\"formArray.errors\" class=\"error-message\">\n {{(formArray.errors | ccdFirstError:caseField.label)}}\n </span>\n </h2>\n\n <div class=\"form-group\" [hidden]=\"caseField.hidden\" *ngIf=\"caseField.value && caseField.value.length\">\n <fieldset class=\"govuk-fieldset\">\n <div *ngFor=\"let item of collItems; let i = index; trackBy: trackByCollectionItem\" #collectionItem\n [id]=\"this.buildIdPrefix(i) + i\" class=\"form-group\">\n <div class=\"collection-title\">\n <div class=\"float-left\">\n <legend class=\"govuk-fieldset__legend\">\n <label [for]=\"item.prefix + i\"><h3 class=\"heading-h3\">{{itemLabel(i) | rpxTranslate}}</h3></label>\n </legend>\n </div>\n <div class=\"float-right\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"openModal(i)\"\n [disabled]=\"isNotAuthorisedToDelete(i)\"\n attr.aria-label=\"Remove {{ itemLabel(i) }}\">{{'Remove' | rpxTranslate}}</button>\n </div>\n </div>\n <ccd-field-write [caseField]=\"item.caseField\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"item.container\"\n [idPrefix]=\"item.prefix\"\n [hidden]=\"item.caseField.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </div>\n </fieldset>\n </div>\n\n <button class=\"button write-collection-add-item__bottom\" type=\"button\" (click)=\"addItem(false)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\" *ngIf=\"caseField.value && caseField.value.length\">{{'Add new' | rpxTranslate }}</button>\n\n </div>\n\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.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}}@media print{.complex-panel .complex-panel-title{font-size:14pt}}.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"] }]
|
|
16892
|
-
}], () => [{ type: i1$3.
|
|
16862
|
+
}], () => [{ type: i1$3.MatDialog }, { type: ProfileNotifier }, { type: i0.ChangeDetectorRef }], { caseFields: [{
|
|
16893
16863
|
type: Input
|
|
16894
16864
|
}], items: [{
|
|
16895
16865
|
type: ViewChildren,
|
|
16896
16866
|
args: ['collectionItem']
|
|
16897
16867
|
}] }); })();
|
|
16898
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCollectionFieldComponent, { className: "WriteCollectionFieldComponent", filePath: "lib/shared/components/palette/collection/write-collection-field.component.ts", lineNumber:
|
|
16868
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCollectionFieldComponent, { className: "WriteCollectionFieldComponent", filePath: "lib/shared/components/palette/collection/write-collection-field.component.ts", lineNumber: 31 }); })();
|
|
16899
16869
|
|
|
16900
16870
|
function ReadComplexFieldComponent_ccd_read_complex_field_raw_1_Template(rf, ctx) { if (rf & 1) {
|
|
16901
16871
|
i0.ɵɵelement(0, "ccd-read-complex-field-raw", 4);
|
|
@@ -17116,7 +17086,7 @@ class DocumentDialogComponent {
|
|
|
17116
17086
|
this.result = 'Cancel';
|
|
17117
17087
|
this.matDialogRef.close(this.result);
|
|
17118
17088
|
}
|
|
17119
|
-
static ɵfac = function DocumentDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$3.
|
|
17089
|
+
static ɵfac = function DocumentDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
|
|
17120
17090
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], standalone: false, decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17121
17091
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
|
|
17122
17092
|
i0.ɵɵlistener("click", function DocumentDialogComponent_Template_h2_click_2_listener() { return ctx.cancel(); });
|
|
@@ -17154,7 +17124,7 @@ class DocumentDialogComponent {
|
|
|
17154
17124
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocumentDialogComponent, [{
|
|
17155
17125
|
type: Component,
|
|
17156
17126
|
args: [{ selector: 'ccd-document-dialog', standalone: false, template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Are you sure you want to replace the existing file?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">{{'You are about to delete the original file uploaded. Are you sure you want to proceed?' | rpxTranslate}}</span>\n </div>\n <div>\n <button type=\"button\" title=\"Replace\" class=\"button action-button\" (click)=\"replace()\">{{'Replace file' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Cancel\" class=\"button button-secondary\" (click)=\"cancel()\">{{'Cancel' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}@media(prefers-color-scheme:dark){.dialog-title,.dialog-info{color:#000}}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
|
|
17157
|
-
}], () => [{ type: i1$3.
|
|
17127
|
+
}], () => [{ type: i1$3.MatDialogRef }], null); })();
|
|
17158
17128
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DocumentDialogComponent, { className: "DocumentDialogComponent", filePath: "lib/shared/components/dialogs/document-dialog/document-dialog.component.ts", lineNumber: 10 }); })();
|
|
17159
17129
|
|
|
17160
17130
|
class FileUploadStateService {
|
|
@@ -17549,7 +17519,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17549
17519
|
this.valid = false;
|
|
17550
17520
|
this.fileUploadStateService.setUploadInProgress(false);
|
|
17551
17521
|
}
|
|
17552
|
-
static ɵfac = function WriteDocumentFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.
|
|
17522
|
+
static ɵfac = function WriteDocumentFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
17553
17523
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
17554
17524
|
i0.ɵɵviewQuery(_c0$V, 5);
|
|
17555
17525
|
} if (rf & 2) {
|
|
@@ -17610,11 +17580,11 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17610
17580
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
|
|
17611
17581
|
type: Component,
|
|
17612
17582
|
args: [{ selector: 'ccd-write-document-field', standalone: false, template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">\n <markdown [data]=\"caseField.hint_text | rpxTranslate\"></markdown>\n </span>\n <span class=\"error-message\"\n role=\"alert\"\n tabindex=\"0\"\n [hidden]=\"!(fileUploadMessages && !valid)\">\n {{ fileUploadMessages | rpxTranslate }}\n </span>\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\" (keyup)=\"fileSelectEvent()\"></div>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"file\" (keydown.Tab)=\"fileValidationsOnTab()\" (change)=\"fileChangeEvent($event, caseField.field_type.regular_expression)\"\n accept=\"{{caseField.field_type.regular_expression}}\" #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button class=\"button button-secondary\" type=\"button\" aria-label=\"Cancel upload\" (click)=\"cancelUpload()\" [disabled]=\"!isUploadInProgress()\">{{'Cancel upload' | rpxTranslate}}</button>\n</div>\n" }]
|
|
17613
|
-
}], () => [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.
|
|
17583
|
+
}], () => [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatDialog }, { type: FileUploadStateService }, { type: JurisdictionService }, { type: SessionStorageService }], { fileInput: [{
|
|
17614
17584
|
type: ViewChild,
|
|
17615
17585
|
args: ['fileInput', { static: false }]
|
|
17616
17586
|
}] }); })();
|
|
17617
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDocumentFieldComponent, { className: "WriteDocumentFieldComponent", filePath: "lib/shared/components/palette/document/write-document-field.component.ts", lineNumber:
|
|
17587
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDocumentFieldComponent, { className: "WriteDocumentFieldComponent", filePath: "lib/shared/components/palette/document/write-document-field.component.ts", lineNumber: 25 }); })();
|
|
17618
17588
|
|
|
17619
17589
|
class DynamicListPipe {
|
|
17620
17590
|
static EMPTY = '';
|
|
@@ -17781,6 +17751,30 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17781
17751
|
}], null, null); })();
|
|
17782
17752
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDynamicListFieldComponent, { className: "WriteDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.ts", lineNumber: 10 }); })();
|
|
17783
17753
|
|
|
17754
|
+
function MarkdownComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
17755
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
17756
|
+
i0.ɵɵelementContainerStart(0);
|
|
17757
|
+
i0.ɵɵelementStart(1, "markdown", 2);
|
|
17758
|
+
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
17759
|
+
i0.ɵɵlistener("click", function MarkdownComponent_ng_container_0_Template_markdown_click_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.interceptClick($event)); });
|
|
17760
|
+
i0.ɵɵelementEnd();
|
|
17761
|
+
i0.ɵɵelementContainerEnd();
|
|
17762
|
+
} if (rf & 2) {
|
|
17763
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
17764
|
+
i0.ɵɵadvance();
|
|
17765
|
+
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 2, ctx_r1.content))("inline", true);
|
|
17766
|
+
} }
|
|
17767
|
+
function MarkdownComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
17768
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
17769
|
+
i0.ɵɵelementStart(0, "div")(1, "markdown", 3);
|
|
17770
|
+
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
17771
|
+
i0.ɵɵlistener("click", function MarkdownComponent_ng_template_1_Template_markdown_click_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.interceptClick($event)); });
|
|
17772
|
+
i0.ɵɵelementEnd()();
|
|
17773
|
+
} if (rf & 2) {
|
|
17774
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
17775
|
+
i0.ɵɵadvance();
|
|
17776
|
+
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 1, ctx_r1.content));
|
|
17777
|
+
} }
|
|
17784
17778
|
class MarkdownComponent {
|
|
17785
17779
|
router;
|
|
17786
17780
|
renderer;
|
|
@@ -17788,6 +17782,7 @@ class MarkdownComponent {
|
|
|
17788
17782
|
cdr;
|
|
17789
17783
|
content;
|
|
17790
17784
|
renderUrlToTextFeature = true;
|
|
17785
|
+
inline = false;
|
|
17791
17786
|
constructor(router, renderer, ngZone, cdr) {
|
|
17792
17787
|
this.router = router;
|
|
17793
17788
|
this.renderer = renderer;
|
|
@@ -17854,23 +17849,22 @@ class MarkdownComponent {
|
|
|
17854
17849
|
return markdownLinkRegex.test(inputString);
|
|
17855
17850
|
}
|
|
17856
17851
|
static ɵfac = function MarkdownComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MarkdownComponent)(i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
17857
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature" }, standalone: false, decls: 3, vars:
|
|
17858
|
-
i0.ɵɵ
|
|
17859
|
-
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
17860
|
-
i0.ɵɵlistener("click", function MarkdownComponent_Template_markdown_click_1_listener($event) { return ctx.interceptClick($event); });
|
|
17861
|
-
i0.ɵɵelementEnd()();
|
|
17852
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature", inline: "inline" }, standalone: false, decls: 3, vars: 2, consts: [["blockMarkdown", ""], [4, "ngIf", "ngIfElse"], [1, "markdown", 3, "click", "data", "inline"], [1, "markdown", 3, "click", "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17853
|
+
i0.ɵɵtemplate(0, MarkdownComponent_ng_container_0_Template, 3, 4, "ng-container", 1)(1, MarkdownComponent_ng_template_1_Template, 3, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
17862
17854
|
} if (rf & 2) {
|
|
17863
|
-
i0.ɵɵ
|
|
17864
|
-
i0.ɵɵproperty("
|
|
17865
|
-
} }, dependencies: [i1$4.MarkdownComponent, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
|
|
17855
|
+
const blockMarkdown_r4 = i0.ɵɵreference(2);
|
|
17856
|
+
i0.ɵɵproperty("ngIf", ctx.inline)("ngIfElse", blockMarkdown_r4);
|
|
17857
|
+
} }, dependencies: [i5.NgIf, i1$4.MarkdownComponent, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
|
|
17866
17858
|
}
|
|
17867
17859
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
|
|
17868
17860
|
type: Component,
|
|
17869
|
-
args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\"></markdown></div>\n" }]
|
|
17861
|
+
args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"inline; else blockMarkdown\">\n <markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\" [inline]=\"true\"></markdown>\n</ng-container>\n<ng-template #blockMarkdown>\n <div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\"></markdown></div>\n</ng-template>\n" }]
|
|
17870
17862
|
}], () => [{ type: i1$2.Router }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], { content: [{
|
|
17871
17863
|
type: Input
|
|
17872
17864
|
}], renderUrlToTextFeature: [{
|
|
17873
17865
|
type: Input
|
|
17866
|
+
}], inline: [{
|
|
17867
|
+
type: Input
|
|
17874
17868
|
}] }); })();
|
|
17875
17869
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber: 12 }); })();
|
|
17876
17870
|
|
|
@@ -17971,10 +17965,10 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
17971
17965
|
i0.ɵɵelementStart(1, "div", 8)(2, "input", 9);
|
|
17972
17966
|
i0.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onCheckChange($event)); });
|
|
17973
17967
|
i0.ɵɵelementEnd();
|
|
17974
|
-
i0.ɵɵelementStart(3, "label", 10);
|
|
17975
|
-
i0.ɵɵelement(
|
|
17976
|
-
i0.ɵɵpipe(
|
|
17977
|
-
i0.ɵɵelementEnd()();
|
|
17968
|
+
i0.ɵɵelementStart(3, "label", 10)(4, "span", 5);
|
|
17969
|
+
i0.ɵɵelement(5, "ccd-markdown", 11);
|
|
17970
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
17971
|
+
i0.ɵɵelementEnd()()();
|
|
17978
17972
|
i0.ɵɵelementContainerEnd();
|
|
17979
17973
|
} if (rf & 2) {
|
|
17980
17974
|
const checkbox_r3 = ctx.$implicit;
|
|
@@ -17983,8 +17977,8 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
17983
17977
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r0.createElementId(checkbox_r3.code)))("name", i0.ɵɵinterpolate(ctx_r0.id()))("value", checkbox_r3.code)("checked", ctx_r0.isSelected(checkbox_r3.code));
|
|
17984
17978
|
i0.ɵɵadvance();
|
|
17985
17979
|
i0.ɵɵproperty("for", i0.ɵɵinterpolate(ctx_r0.createElementId(checkbox_r3.code)));
|
|
17986
|
-
i0.ɵɵadvance();
|
|
17987
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(
|
|
17980
|
+
i0.ɵɵadvance(2);
|
|
17981
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(6, 11, checkbox_r3.label))("renderUrlToTextFeature", false)("inline", true);
|
|
17988
17982
|
} }
|
|
17989
17983
|
class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
17990
17984
|
checkboxes;
|
|
@@ -18048,11 +18042,11 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
18048
18042
|
}
|
|
18049
18043
|
}
|
|
18050
18044
|
static ɵfac = /*@__PURE__*/ (() => { let ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory; return function WriteDynamicMultiSelectListFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory || (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent)))(__ngFactoryType__ || WriteDynamicMultiSelectListFieldComponent); }; })();
|
|
18051
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "change", "id", "name", "value", "checked"], [
|
|
18045
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "change", "id", "name", "value", "checked"], [3, "for"], [3, "content", "renderUrlToTextFeature", "inline"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18052
18046
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
18053
18047
|
i0.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1)(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2)(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
18054
18048
|
i0.ɵɵelementEnd();
|
|
18055
|
-
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template,
|
|
18049
|
+
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 7, 13, "ng-container", 4);
|
|
18056
18050
|
i0.ɵɵelementEnd()();
|
|
18057
18051
|
} if (rf & 2) {
|
|
18058
18052
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$T, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
@@ -18068,7 +18062,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
18068
18062
|
}
|
|
18069
18063
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
18070
18064
|
type: Component,
|
|
18071
|
-
args: [{ selector: 'ccd-write-dynamic-multi-select-list-field', standalone: false, template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && checkboxes.touched}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span *ngIf=\"caseField.label\" class=\"form-label\">{{caseField | ccdFieldLabel}}</span>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text}}</span>\n <span *ngIf=\"checkboxes.errors && checkboxes.touched\" class=\"error-message\">{{checkboxes.errors |\n ccdFirstError}}</span>\n </legend>\n\n <ng-container *ngFor=\"let checkbox of caseField.list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" id=\"{{ createElementId(checkbox.code) }}\" name=\"{{ id() }}\" type=\"checkbox\"\n [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label
|
|
18065
|
+
args: [{ selector: 'ccd-write-dynamic-multi-select-list-field', standalone: false, template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && checkboxes.touched}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span *ngIf=\"caseField.label\" class=\"form-label\">{{caseField | ccdFieldLabel}}</span>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text}}</span>\n <span *ngIf=\"checkboxes.errors && checkboxes.touched\" class=\"error-message\">{{checkboxes.errors |\n ccdFirstError}}</span>\n </legend>\n\n <ng-container *ngFor=\"let checkbox of caseField.list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" id=\"{{ createElementId(checkbox.code) }}\" name=\"{{ id() }}\" type=\"checkbox\"\n [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label for=\"{{ createElementId(checkbox.code) }}\">\n <span class=\"form-label\">\n <ccd-markdown [content]=\"checkbox.label | rpxTranslate\" [renderUrlToTextFeature]=\"false\" [inline]=\"true\"></ccd-markdown>\n </span>\n </label>\n </div>\n\n </ng-container>\n\n </fieldset>\n\n</div>\n", styles: ["ccd-markdown{display:inline-block}\n"] }]
|
|
18072
18066
|
}], null, null); })();
|
|
18073
18067
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDynamicMultiSelectListFieldComponent, { className: "WriteDynamicMultiSelectListFieldComponent", filePath: "lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.ts", lineNumber: 11 }); })();
|
|
18074
18068
|
|
|
@@ -18686,17 +18680,15 @@ function WriteJudicialUserFieldComponent_span_4_Template(rf, ctx) { if (rf & 1)
|
|
|
18686
18680
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r1.errors, ctx_r1.caseField.label), " ");
|
|
18687
18681
|
} }
|
|
18688
18682
|
function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
18689
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
18690
18683
|
i0.ɵɵelementStart(0, "mat-option", 13);
|
|
18691
|
-
i0.ɵɵlistener("onSelectionChange", function WriteJudicialUserFieldComponent_mat_option_8_Template_mat_option_onSelectionChange_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectionChange($event)); });
|
|
18692
18684
|
i0.ɵɵtext(1);
|
|
18693
18685
|
i0.ɵɵelementEnd();
|
|
18694
18686
|
} if (rf & 2) {
|
|
18695
|
-
const
|
|
18687
|
+
const judicialUser_r3 = ctx.$implicit;
|
|
18696
18688
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
18697
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$j, !ctx_r1.showAutocomplete))("value",
|
|
18689
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$j, !ctx_r1.showAutocomplete))("value", judicialUser_r3);
|
|
18698
18690
|
i0.ɵɵadvance();
|
|
18699
|
-
i0.ɵɵtextInterpolate2(" ", (
|
|
18691
|
+
i0.ɵɵtextInterpolate2(" ", (judicialUser_r3 == null ? null : judicialUser_r3.fullName) ? judicialUser_r3.fullName : "", "", (judicialUser_r3 == null ? null : judicialUser_r3.emailId) ? " (" + judicialUser_r3.emailId + ")" : "", " ");
|
|
18700
18692
|
} }
|
|
18701
18693
|
function WriteJudicialUserFieldComponent_mat_option_10_Template(rf, ctx) { if (rf & 1) {
|
|
18702
18694
|
i0.ɵɵelementStart(0, "mat-option", 14);
|
|
@@ -18715,6 +18707,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
18715
18707
|
compoundPipe;
|
|
18716
18708
|
validatorsService;
|
|
18717
18709
|
caseNotifier;
|
|
18710
|
+
autocompleteTrigger;
|
|
18718
18711
|
minSearchCharacters = 2;
|
|
18719
18712
|
judicialUserControl;
|
|
18720
18713
|
jurisdiction;
|
|
@@ -18817,18 +18810,27 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
18817
18810
|
: undefined;
|
|
18818
18811
|
}
|
|
18819
18812
|
onSelectionChange(event) {
|
|
18820
|
-
// The
|
|
18813
|
+
// The selected option value is a JudicialUserModel object instance; use this to update both the caseField
|
|
18821
18814
|
// value and the values of the two FormControls for the idamId and personalCode properties of the JudicialUser
|
|
18822
18815
|
// complex field type (these values will appear in the data payload for validation and submission)
|
|
18823
18816
|
this.caseField.value = {
|
|
18824
|
-
idamId: event.
|
|
18825
|
-
personalCode: event.
|
|
18817
|
+
idamId: event.option.value.idamId,
|
|
18818
|
+
personalCode: event.option.value.personalCode
|
|
18826
18819
|
};
|
|
18827
18820
|
this.complexGroup.get('idamId')?.setValue(this.caseField.value.idamId);
|
|
18828
18821
|
this.complexGroup.get('personalCode')?.setValue(this.caseField.value.personalCode);
|
|
18829
18822
|
this.judicialUserSelected = true;
|
|
18830
18823
|
}
|
|
18831
18824
|
onBlur(event) {
|
|
18825
|
+
if (this.autocompleteTrigger?.panelOpen) {
|
|
18826
|
+
return;
|
|
18827
|
+
}
|
|
18828
|
+
this.updateValueAfterBlur(event);
|
|
18829
|
+
}
|
|
18830
|
+
onAutocompleteClosed() {
|
|
18831
|
+
this.updateValueAfterBlur({ relatedTarget: null });
|
|
18832
|
+
}
|
|
18833
|
+
updateValueAfterBlur(event) {
|
|
18832
18834
|
// If the user types into the JudicialUser field but doesn't select a value from the autocomplete list, reset the
|
|
18833
18835
|
// FormControl value to null to ensure it fails validation (can check the event.relatedTarget property)
|
|
18834
18836
|
if (event.relatedTarget?.role !== 'option' && !this.judicialUserSelected) {
|
|
@@ -18858,7 +18860,12 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
18858
18860
|
this.notifierSubscription?.unsubscribe();
|
|
18859
18861
|
}
|
|
18860
18862
|
static ɵfac = function WriteJudicialUserFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteJudicialUserFieldComponent)(i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseFlagRefdataService), i0.ɵɵdirectiveInject(IsCompoundPipe), i0.ɵɵdirectiveInject(FormValidatorsService), i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
18861
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteJudicialUserFieldComponent, selectors: [["ccd-write-judicial-user-field"]],
|
|
18863
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteJudicialUserFieldComponent, selectors: [["ccd-write-judicial-user-field"]], viewQuery: function WriteJudicialUserFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
18864
|
+
i0.ɵɵviewQuery(MatAutocompleteTrigger, 5);
|
|
18865
|
+
} if (rf & 2) {
|
|
18866
|
+
let _t;
|
|
18867
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.autocompleteTrigger = _t.first);
|
|
18868
|
+
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 17, consts: [["autoComplete", "matAutocomplete"], [1, "form-group", 3, "formGroup", "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "bottom-30", 3, "blur", "id", "formControl", "matAutocomplete"], ["autoActiveFirstOption", "", 3, "optionSelected", "closed", "displayWith"], ["class", "select-option", 3, "ngClass", "value", 4, "ngFor", "ngForOf"], ["class", "select-option", "disabled", "", 4, "ngIf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "select-option", 3, "ngClass", "value"], ["disabled", "", 1, "select-option"]], template: function WriteJudicialUserFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18862
18869
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
18863
18870
|
i0.ɵɵelementStart(0, "div", 1)(1, "label", 2);
|
|
18864
18871
|
i0.ɵɵtemplate(2, WriteJudicialUserFieldComponent_span_2_Template, 3, 3, "span", 3);
|
|
@@ -18868,12 +18875,13 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
18868
18875
|
i0.ɵɵlistener("blur", function WriteJudicialUserFieldComponent_Template_input_blur_5_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBlur($event)); });
|
|
18869
18876
|
i0.ɵɵelementEnd();
|
|
18870
18877
|
i0.ɵɵelementStart(6, "mat-autocomplete", 7, 0);
|
|
18878
|
+
i0.ɵɵlistener("optionSelected", function WriteJudicialUserFieldComponent_Template_mat_autocomplete_optionSelected_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onSelectionChange($event)); })("closed", function WriteJudicialUserFieldComponent_Template_mat_autocomplete_closed_6_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onAutocompleteClosed()); });
|
|
18871
18879
|
i0.ɵɵtemplate(8, WriteJudicialUserFieldComponent_mat_option_8_Template, 2, 6, "mat-option", 8);
|
|
18872
18880
|
i0.ɵɵpipe(9, "async");
|
|
18873
18881
|
i0.ɵɵtemplate(10, WriteJudicialUserFieldComponent_mat_option_10_Template, 2, 0, "mat-option", 9)(11, WriteJudicialUserFieldComponent_mat_option_11_Template, 2, 0, "mat-option", 9);
|
|
18874
18882
|
i0.ɵɵelementEnd()();
|
|
18875
18883
|
} if (rf & 2) {
|
|
18876
|
-
const
|
|
18884
|
+
const autoComplete_r4 = i0.ɵɵreference(7);
|
|
18877
18885
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$O, !!ctx.judicialUserControl && ctx.errors));
|
|
18878
18886
|
i0.ɵɵadvance();
|
|
18879
18887
|
i0.ɵɵproperty("for", ctx.id());
|
|
@@ -18884,7 +18892,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
18884
18892
|
i0.ɵɵadvance();
|
|
18885
18893
|
i0.ɵɵproperty("ngIf", ctx.errors);
|
|
18886
18894
|
i0.ɵɵadvance();
|
|
18887
|
-
i0.ɵɵproperty("id", ctx.id())("formControl", ctx.judicialUserControl)("matAutocomplete",
|
|
18895
|
+
i0.ɵɵproperty("id", ctx.id())("formControl", ctx.judicialUserControl)("matAutocomplete", autoComplete_r4);
|
|
18888
18896
|
i0.ɵɵadvance();
|
|
18889
18897
|
i0.ɵɵproperty("displayWith", ctx.displayJudicialUser);
|
|
18890
18898
|
i0.ɵɵadvance(2);
|
|
@@ -18893,16 +18901,22 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
18893
18901
|
i0.ɵɵproperty("ngIf", ctx.noResults && ctx.searchTerm && ctx.searchTerm.length > ctx.minSearchCharacters && ctx.showAutocomplete);
|
|
18894
18902
|
i0.ɵɵadvance();
|
|
18895
18903
|
i0.ɵɵproperty("ngIf", ctx.invalidSearchTerm);
|
|
18896
|
-
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormControlDirective, i4.FormGroupDirective, i6.
|
|
18904
|
+
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormControlDirective, i4.FormGroupDirective, i6.MatAutocomplete, i6.MatOption, i6.MatAutocompleteTrigger, i5.AsyncPipe, FieldLabelPipe, FirstErrorPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
|
|
18897
18905
|
}
|
|
18898
18906
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
|
|
18899
18907
|
type: Component,
|
|
18900
|
-
args: [{ selector: 'ccd-write-judicial-user-field', standalone: false, template: "<div class=\"form-group\" [formGroup]=\"formGroup\" [ngClass]=\"{'form-group-error': !!judicialUserControl && errors}\">\n <label [for]=\"id()\">\n <span *ngIf=\"caseField.label\" class=\"form-label\">\n {{caseField | ccdFieldLabel}}\n </span>\n </label>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">\n {{caseField.hint_text}}\n </span>\n <span class=\"error-message\" *ngIf=\"errors\">\n {{errors | ccdFirstError:caseField.label}}\n </span>\n <input class=\"form-control bottom-30\" [id]=\"id()\"\n [formControl]=\"judicialUserControl\" [matAutocomplete]=\"autoComplete\" (blur)=\"onBlur($event)\">\n <mat-autocomplete autoActiveFirstOption #autoComplete=\"matAutocomplete\" [displayWith]=\"displayJudicialUser\">\n <mat-option *ngFor=\"let judicialUser of filteredJudicialUsers$ | async\"\n class=\"select-option\" [ngClass]=\"{'hide-autocomplete': !showAutocomplete}\"\n [value]=\"judicialUser\"
|
|
18901
|
-
}], () => [{ type: JurisdictionService }, { type: SessionStorageService }, { type: CaseFlagRefdataService }, { type: IsCompoundPipe }, { type: FormValidatorsService }, { type: CaseNotifier }],
|
|
18902
|
-
|
|
18908
|
+
args: [{ selector: 'ccd-write-judicial-user-field', standalone: false, template: "<div class=\"form-group\" [formGroup]=\"formGroup\" [ngClass]=\"{'form-group-error': !!judicialUserControl && errors}\">\n <label [for]=\"id()\">\n <span *ngIf=\"caseField.label\" class=\"form-label\">\n {{caseField | ccdFieldLabel}}\n </span>\n </label>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">\n {{caseField.hint_text}}\n </span>\n <span class=\"error-message\" *ngIf=\"errors\">\n {{errors | ccdFirstError:caseField.label}}\n </span>\n <input class=\"form-control bottom-30\" [id]=\"id()\"\n [formControl]=\"judicialUserControl\" [matAutocomplete]=\"autoComplete\" (blur)=\"onBlur($event)\">\n <mat-autocomplete autoActiveFirstOption #autoComplete=\"matAutocomplete\" [displayWith]=\"displayJudicialUser\"\n (optionSelected)=\"onSelectionChange($event)\" (closed)=\"onAutocompleteClosed()\">\n <mat-option *ngFor=\"let judicialUser of filteredJudicialUsers$ | async\"\n class=\"select-option\" [ngClass]=\"{'hide-autocomplete': !showAutocomplete}\"\n [value]=\"judicialUser\">\n {{judicialUser?.fullName ? judicialUser.fullName : ''}}{{judicialUser?.emailId ? ' (' + judicialUser.emailId + ')' : ''}}\n </mat-option>\n <mat-option *ngIf=\"noResults && searchTerm && searchTerm.length > minSearchCharacters && showAutocomplete\" class=\"select-option\" disabled>\n No results found\n </mat-option>\n <mat-option *ngIf=\"invalidSearchTerm\" class=\"select-option\" disabled>\n Invalid search term\n </mat-option>\n </mat-autocomplete>\n</div>\n", styles: [".mat-option:hover{background:#2596be}.mat-option.select-option:hover{background:#1d70b8;color:#fff}.hide-autocomplete{display:none}\n"] }]
|
|
18909
|
+
}], () => [{ type: JurisdictionService }, { type: SessionStorageService }, { type: CaseFlagRefdataService }, { type: IsCompoundPipe }, { type: FormValidatorsService }, { type: CaseNotifier }], { autocompleteTrigger: [{
|
|
18910
|
+
type: ViewChild,
|
|
18911
|
+
args: [MatAutocompleteTrigger]
|
|
18912
|
+
}] }); })();
|
|
18913
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteJudicialUserFieldComponent, { className: "WriteJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/write-judicial-user-field.component.ts", lineNumber: 19 }); })();
|
|
18903
18914
|
|
|
18904
18915
|
function ReadStaffUserFieldComponent_ccd_loading_spinner_0_Template(rf, ctx) { if (rf & 1) {
|
|
18905
|
-
i0.ɵɵelement(0, "ccd-loading-spinner");
|
|
18916
|
+
i0.ɵɵelement(0, "ccd-loading-spinner", 1);
|
|
18917
|
+
} if (rf & 2) {
|
|
18918
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
18919
|
+
i0.ɵɵproperty("loading", ctx_r0.showSpinner)("hidden", !ctx_r0.showSpinner);
|
|
18906
18920
|
} }
|
|
18907
18921
|
class ReadStaffUserFieldComponent extends AbstractFieldReadComponent {
|
|
18908
18922
|
caseworkerService;
|
|
@@ -18936,8 +18950,8 @@ class ReadStaffUserFieldComponent extends AbstractFieldReadComponent {
|
|
|
18936
18950
|
}
|
|
18937
18951
|
}
|
|
18938
18952
|
static ɵfac = function ReadStaffUserFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadStaffUserFieldComponent)(i0.ɵɵdirectiveInject(CaseworkerService), i0.ɵɵdirectiveInject(JurisdictionService)); };
|
|
18939
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadStaffUserFieldComponent, selectors: [["ccd-read-staff-user-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[4, "ngIf"]], template: function ReadStaffUserFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18940
|
-
i0.ɵɵtemplate(0, ReadStaffUserFieldComponent_ccd_loading_spinner_0_Template, 1,
|
|
18953
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadStaffUserFieldComponent, selectors: [["ccd-read-staff-user-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[3, "loading", "hidden", 4, "ngIf"], [3, "loading", "hidden"]], template: function ReadStaffUserFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18954
|
+
i0.ɵɵtemplate(0, ReadStaffUserFieldComponent_ccd_loading_spinner_0_Template, 1, 2, "ccd-loading-spinner", 0);
|
|
18941
18955
|
i0.ɵɵelementStart(1, "span");
|
|
18942
18956
|
i0.ɵɵtext(2);
|
|
18943
18957
|
i0.ɵɵelementEnd();
|
|
@@ -18949,7 +18963,7 @@ class ReadStaffUserFieldComponent extends AbstractFieldReadComponent {
|
|
|
18949
18963
|
}
|
|
18950
18964
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadStaffUserFieldComponent, [{
|
|
18951
18965
|
type: Component,
|
|
18952
|
-
args: [{ selector: 'ccd-read-staff-user-field', standalone: false, template: "<ccd-loading-spinner *ngIf=\"showSpinner\"></ccd-loading-spinner>\n<span>{{ displayName }}</span
|
|
18966
|
+
args: [{ selector: 'ccd-read-staff-user-field', standalone: false, template: "<ccd-loading-spinner *ngIf=\"showSpinner\" [loading]=\"showSpinner\" [hidden]=\"!showSpinner\"></ccd-loading-spinner>\n<span>{{ displayName }}</span>" }]
|
|
18953
18967
|
}], () => [{ type: CaseworkerService }, { type: JurisdictionService }], null); })();
|
|
18954
18968
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadStaffUserFieldComponent, { className: "ReadStaffUserFieldComponent", filePath: "lib/shared/components/palette/staff-user/read-staff-user-field.component.ts", lineNumber: 13 }); })();
|
|
18955
18969
|
|
|
@@ -19211,7 +19225,7 @@ class WriteStaffUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
19211
19225
|
i0.ɵɵproperty("ngIf", ctx.noResults && ctx.searchTerm && ctx.searchTerm.length > ctx.minSearchCharacters && ctx.showAutocomplete);
|
|
19212
19226
|
i0.ɵɵadvance();
|
|
19213
19227
|
i0.ɵɵproperty("ngIf", ctx.invalidSearchTerm);
|
|
19214
|
-
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormControlDirective, i4.FormGroupDirective, i6.
|
|
19228
|
+
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormControlDirective, i4.FormGroupDirective, i6.MatAutocomplete, i6.MatOption, i6.MatAutocompleteTrigger, i5.AsyncPipe], encapsulation: 2 });
|
|
19215
19229
|
}
|
|
19216
19230
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteStaffUserFieldComponent, [{
|
|
19217
19231
|
type: Component,
|
|
@@ -26652,7 +26666,18 @@ const richTextNodes = {
|
|
|
26652
26666
|
}, 0]
|
|
26653
26667
|
}
|
|
26654
26668
|
};
|
|
26655
|
-
const
|
|
26669
|
+
const richTextMarks = {
|
|
26670
|
+
...marks,
|
|
26671
|
+
em: {
|
|
26672
|
+
...marks.em,
|
|
26673
|
+
toDOM: () => ['i', 0]
|
|
26674
|
+
},
|
|
26675
|
+
strong: {
|
|
26676
|
+
...marks.strong,
|
|
26677
|
+
toDOM: () => ['b', 0]
|
|
26678
|
+
}
|
|
26679
|
+
};
|
|
26680
|
+
const richTextSchema = new Schema({ nodes: richTextNodes, marks: richTextMarks });
|
|
26656
26681
|
class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
26657
26682
|
editorHost;
|
|
26658
26683
|
editor;
|
|
@@ -27490,6 +27515,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27490
27515
|
this.removeUnsupportedMarkup(documentElement);
|
|
27491
27516
|
this.normaliseDateRangeSpacing(documentElement);
|
|
27492
27517
|
this.removeUnsupportedAttributes(documentElement);
|
|
27518
|
+
this.normaliseDocmosisInlineFormatting(documentElement);
|
|
27493
27519
|
const hasMeaningfulContent = this.hasMeaningfulRichTextContent(documentElement);
|
|
27494
27520
|
if (hasMeaningfulContent) {
|
|
27495
27521
|
this.preserveDocmosisBlankParagraphs(documentElement);
|
|
@@ -27515,6 +27541,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27515
27541
|
this.removeUnsupportedMarkup(documentElement);
|
|
27516
27542
|
this.normaliseDateRangeSpacing(documentElement);
|
|
27517
27543
|
this.removeUnsupportedAttributes(documentElement);
|
|
27544
|
+
this.normaliseDocmosisInlineFormatting(documentElement);
|
|
27518
27545
|
const hasMeaningfulContent = this.hasMeaningfulRichTextContent(documentElement);
|
|
27519
27546
|
if (hasMeaningfulContent) {
|
|
27520
27547
|
this.preserveDocmosisBlankParagraphs(documentElement);
|
|
@@ -27531,6 +27558,24 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27531
27558
|
preserveDocmosisBlankParagraphs(documentElement) {
|
|
27532
27559
|
this.replaceBlankParagraphContent(documentElement, '\u00a0');
|
|
27533
27560
|
}
|
|
27561
|
+
/**
|
|
27562
|
+
* Uses the presentational tags supported by Docmosis while continuing to
|
|
27563
|
+
* accept the equivalent semantic tags when existing content is loaded.
|
|
27564
|
+
*/
|
|
27565
|
+
normaliseDocmosisInlineFormatting(documentElement) {
|
|
27566
|
+
this.replaceElements(documentElement, 'strong', 'b');
|
|
27567
|
+
this.replaceElements(documentElement, 'em', 'i');
|
|
27568
|
+
}
|
|
27569
|
+
replaceElements(documentElement, sourceTag, targetTag) {
|
|
27570
|
+
const elements = Array.prototype.slice.call(documentElement.body.querySelectorAll(sourceTag));
|
|
27571
|
+
elements.forEach((element) => {
|
|
27572
|
+
const replacement = documentElement.createElement(targetTag);
|
|
27573
|
+
while (element.firstChild) {
|
|
27574
|
+
replacement.appendChild(element.firstChild);
|
|
27575
|
+
}
|
|
27576
|
+
element.replaceWith(replacement);
|
|
27577
|
+
});
|
|
27578
|
+
}
|
|
27534
27579
|
hasMeaningfulRichTextContent(documentElement) {
|
|
27535
27580
|
const visibleText = (documentElement.body.textContent || '')
|
|
27536
27581
|
.replace(/[\s\u00a0\u200b-\u200d\ufeff]/g, '');
|
|
@@ -29266,7 +29311,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
29266
29311
|
type: ViewChild,
|
|
29267
29312
|
args: ['editorHost']
|
|
29268
29313
|
}] }); })();
|
|
29269
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteRichTextAreaFieldComponent, { className: "WriteRichTextAreaFieldComponent", filePath: "lib/shared/components/palette/rich-text-area/write-rich-text-area-field.component.ts", lineNumber:
|
|
29314
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteRichTextAreaFieldComponent, { className: "WriteRichTextAreaFieldComponent", filePath: "lib/shared/components/palette/rich-text-area/write-rich-text-area-field.component.ts", lineNumber: 151 }); })();
|
|
29270
29315
|
|
|
29271
29316
|
class ReadTextFieldComponent extends AbstractFieldReadComponent {
|
|
29272
29317
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextFieldComponent_BaseFactory; return function ReadTextFieldComponent_Factory(__ngFactoryType__) { return (ɵReadTextFieldComponent_BaseFactory || (ɵReadTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextFieldComponent)))(__ngFactoryType__ || ReadTextFieldComponent); }; })();
|
|
@@ -30007,11 +30052,11 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
30007
30052
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
30008
30053
|
i0.ɵɵadvance();
|
|
30009
30054
|
i0.ɵɵproperty("ngIf", ctx.withLabel && !ctx.isLabel() && (!ctx.isComplex() || ctx.isCaseLink()))("ngIfElse", caseFieldValue_r2);
|
|
30010
|
-
} }, dependencies: [i5.NgIf, i5.NgTemplateOutlet, i1.RpxTranslatePipe], styles: [".case-field[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}.case-field[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:15px}@media(min-width:641px){.case-field[_ngcontent-%COMP%]{margin-bottom:30px}}.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}@media print{.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:14pt}}.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}@media print{.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:14pt}}
|
|
30055
|
+
} }, dependencies: [i5.NgIf, i5.NgTemplateOutlet, i1.RpxTranslatePipe], styles: [".form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}.case-field[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}.case-field[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:15px}@media(min-width:641px){.case-field[_ngcontent-%COMP%]{margin-bottom:30px}}.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}@media print{.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:14pt}}.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}@media print{.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:14pt}}"] });
|
|
30011
30056
|
}
|
|
30012
30057
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldReadLabelComponent, [{
|
|
30013
30058
|
type: Component,
|
|
30014
|
-
args: [{ selector: 'ccd-field-read-label', standalone: false, template: "<div [hidden]=\"caseField.hidden\" [class.grey-bar]=\"canHaveGreyBar && !caseField.hiddenCannotChange\">\n <dl class=\"case-field\" *ngIf=\"withLabel && !isLabel() && (!isComplex() || isCaseLink()); else caseFieldValue\">\n <dt class=\"case-field__label\">{{caseField.label | rpxTranslate}}</dt>\n <dd class=\"case-field__value\">\n <ng-container *ngTemplateOutlet=\"caseFieldValue\"></ng-container>\n </dd>\n </dl>\n <ng-template #caseFieldValue>\n <ng-content></ng-content>\n </ng-template>\n</div>\n", styles: [".case-field:after{content:\"\";display:block;clear:both}.govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.case-field{box-sizing:border-box;margin-bottom:15px}@media(min-width:641px){.case-field{margin-bottom:30px}}.case-field .case-field__label{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.case-field .case-field__label{font-size:19px;line-height:1.3157894737}}@media print{.case-field .case-field__label{font-size:14pt}}.case-field .case-field__value{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.case-field .case-field__value{font-size:19px;line-height:1.3157894737}}@media print{.case-field .case-field__value{font-size:14pt}}
|
|
30059
|
+
args: [{ selector: 'ccd-field-read-label', standalone: false, template: "<div [hidden]=\"caseField.hidden\" [class.grey-bar]=\"canHaveGreyBar && !caseField.hiddenCannotChange\">\n <dl class=\"case-field\" *ngIf=\"withLabel && !isLabel() && (!isComplex() || isCaseLink()); else caseFieldValue\">\n <dt class=\"case-field__label\">{{caseField.label | rpxTranslate}}</dt>\n <dd class=\"case-field__value\">\n <ng-container *ngTemplateOutlet=\"caseFieldValue\"></ng-container>\n </dd>\n </dl>\n <ng-template #caseFieldValue>\n <ng-content></ng-content>\n </ng-template>\n</div>\n", styles: [".form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}.case-field:after{content:\"\";display:block;clear:both}.govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.case-field{box-sizing:border-box;margin-bottom:15px}@media(min-width:641px){.case-field{margin-bottom:30px}}.case-field .case-field__label{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.case-field .case-field__label{font-size:19px;line-height:1.3157894737}}@media print{.case-field .case-field__label{font-size:14pt}}.case-field .case-field__value{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.case-field .case-field__value{font-size:19px;line-height:1.3157894737}}@media print{.case-field .case-field__value{font-size:14pt}}\n"] }]
|
|
30015
30060
|
}], null, { withLabel: [{
|
|
30016
30061
|
type: Input
|
|
30017
30062
|
}] }); })();
|
|
@@ -30129,7 +30174,7 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
30129
30174
|
}
|
|
30130
30175
|
return null;
|
|
30131
30176
|
}
|
|
30132
|
-
static ɵfac = function CaseFileViewFolderSelectorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.
|
|
30177
|
+
static ɵfac = function CaseFileViewFolderSelectorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
30133
30178
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], standalone: false, decls: 14, vars: 2, consts: [["folder", ""], ["tabindex", "0", "aria-label", "close", 1, "close", 3, "click", "keyup"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], ["href", "#", 1, "cancel", 3, "click"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "click", "keyup", "name", "id"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
30134
30179
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
30135
30180
|
i0.ɵɵelementStart(0, "span", 1);
|
|
@@ -30163,9 +30208,9 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
30163
30208
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
30164
30209
|
type: Component,
|
|
30165
30210
|
args: [{ selector: 'xui-case-file-view-folder-selector', encapsulation: ViewEncapsulation.None, standalone: false, template: "<span tabindex=\"0\" aria-label=\"close\" class=\"close\" (click)=\"cancel()\" (keyup)=\"$event.key === 'Enter' ? cancel() : null\"></span>\n<h2 class=\"govuk-heading-l\">Move File</h2>\n<p>Where do you want to move \"{{ data.document.document_filename }}\" file?</p>\n<div class=\"folders govuk-radios govuk-radios--conditional\">\n <ng-container *ngFor=\"let cat of currentCategories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:cat,level:1}\"></ng-container>\n </ng-container>\n</div>\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"save()\">Save</button>\n <a (click)=\"cancel(); $event.preventDefault()\" class=\"cancel\" href=\"#\">Cancel</a>\n</div>\n\n<ng-template #folder let-cat=\"cat\" let-level=\"level\">\n <div class=\"folder govuk-radios__item\">\n <input class=\"govuk-radios__input\" type=\"radio\" name=\"level-{{level}}\" [id]=\"cat.category_id\" (click)=\"handleChange($event)\" (keyup)=\"$event.key === 'Enter' ? handleChange($event) : null\" />\n <label class=\"govuk-label govuk-radios__label\" [for]=\"cat.category_id\">\n <img class=\"iconImg\" src=\"/assets/images/folder.png\" alt=\"Folder icon\" />\n {{ cat.category_name }}\n </label>\n <ng-container *ngFor=\"let subcat of cat.sub_categories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:subcat,level:level+1}\"></ng-container>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #CCC;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #CCC}.folders>.folder{display:block}input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat center center;cursor:pointer}.cancel{cursor:pointer}.cdk-overlay-pane{overflow:auto;background:#fff}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}\n"] }]
|
|
30166
|
-
}], () => [{ type: i1$3.
|
|
30211
|
+
}], () => [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
30167
30212
|
type: Inject,
|
|
30168
|
-
args: [
|
|
30213
|
+
args: [MAT_DIALOG_DATA]
|
|
30169
30214
|
}] }], null); })();
|
|
30170
30215
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderSelectorComponent, { className: "CaseFileViewFolderSelectorComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.ts", lineNumber: 13 }); })();
|
|
30171
30216
|
|
|
@@ -30896,7 +30941,7 @@ class CaseFileViewFolderComponent {
|
|
|
30896
30941
|
a.click();
|
|
30897
30942
|
a.remove();
|
|
30898
30943
|
}
|
|
30899
|
-
static ɵfac = function CaseFileViewFolderComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.
|
|
30944
|
+
static ɵfac = function CaseFileViewFolderComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog)); };
|
|
30900
30945
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, standalone: false, decls: 12, vars: 3, consts: [["role", "search", 1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["for", "document-search", 1, "govuk-visually-hidden"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], ["id", "document-folders-header-title", "aria-hidden", "true", 1, "document-folders-header__title"], ["role", "toolbar", "aria-label", "Document list actions", "aria-labelledby", "document-folders-header-title", 1, "document-folders-header__flex"], [3, "expandAll", "collapseAll"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], ["role", "tree", "aria-label", "Case documents", 3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], ["type", "button", 1, "node", "case-file__node", 3, "click"], ["disabled", "", "aria-hidden", "true", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", "aria-hidden", "true", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-upload-timestamp"], [1, "node__document-options", "case-file__action"], [3, "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction", "allowMoving"], [1, "document-tree-container__node", "document-tree-container__folder"], ["type", "button", "cdkTreeNodeToggle", "", 1, "node"], ["aria-hidden", "true", 1, "node__icon"], ["alt", "Folder icon", "aria-hidden", "true", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["role", "group"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
30901
30946
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "label", 2);
|
|
30902
30947
|
i0.ɵɵtext(3, " Search by document name ");
|
|
@@ -30925,7 +30970,7 @@ class CaseFileViewFolderComponent {
|
|
|
30925
30970
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
30926
30971
|
type: Component,
|
|
30927
30972
|
args: [{ selector: 'ccd-case-file-view-folder', standalone: false, template: "<div class=\"document-filter-container\" role=\"search\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <label\n class=\"govuk-visually-hidden\"\n for=\"document-search\">\n Search by document name\n </label>\n <input\n class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"/>\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\" id=\"document-folders-header-title\" aria-hidden=\"true\">\n Documents ({{ documentCount }})\n </div>\n <div\n class=\"document-folders-header__flex\"\n role=\"toolbar\"\n aria-label=\"Document list actions\"\n aria-labelledby=\"document-folders-header-title\">\n <ccd-case-file-view-folder-toggle\n (expandAll)=\"expandAll($event)\"\n (collapseAll)=\"collapseAll($event)\">\n </ccd-case-file-view-folder-toggle>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\">\n </ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree\n [dataSource]=\"nestedDataSource\"\n [treeControl]=\"nestedTreeControl\"\n role=\"tree\"\n aria-label=\"Case documents\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button\n type=\"button\"\n class=\"node case-file__node\"\n [attr.aria-label]=\"node.name\"\n (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled aria-hidden=\"true\">\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\"\n class=\"node__iconImg\"\n alt=\"Document icon\"\n aria-hidden=\"true\"\n />\n </div>\n <span class=\"node__name node-name-document\" [attr.title]=\"node.name\">\n {{ node.name }}\n <br />\n <span class=\"node__document-upload-timestamp\">{{\n node.upload_timestamp | ccdDate: \"local\":\"dd MMM yyyy HH:mm\"\n }}</span>\n </span>\n </button>\n <div class=\"node__document-options case-file__action\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button\n type=\"button\"\n class=\"node\"\n cdkTreeNodeToggle\n [attr.aria-expanded]=\"nestedTreeControl.isExpanded(node)\"\n [attr.aria-label]=\"node.name + ' folder, ' + node.childDocumentCount + ' documents'\">\n <div class=\"node__icon\" aria-hidden=\"true\">\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node)\n ? '/assets/images/folder-open.png'\n : '/assets/images/folder.png'\n \"\n alt=\"Folder icon\"\n aria-hidden=\"true\" />\n <span class=\"node__count\">{{ node.childDocumentCount }}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{ node.name }}</span>\n </button>\n <div\n role=\"group\"\n [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-folders-header__flex{display:flex;flex-direction:row}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}.node__document-upload-timestamp{font-size:.8rem;float:left;padding-left:10px}.node.case-file__node{width:80%;float:left}.node__document-options.case-file__action{width:15%;float:left;box-sizing:border-box;padding:12px}\n"] }]
|
|
30928
|
-
}], () => [{ type: WindowService }, { type: i1$2.Router }, { type: DocumentManagementService }, { type: i1$3.
|
|
30973
|
+
}], () => [{ type: WindowService }, { type: i1$2.Router }, { type: DocumentManagementService }, { type: i1$3.MatDialog }], { categoriesAndDocuments: [{
|
|
30929
30974
|
type: Input
|
|
30930
30975
|
}], allowMoving: [{
|
|
30931
30976
|
type: Input
|
|
@@ -35077,7 +35122,7 @@ class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
|
35077
35122
|
this.dateControl.setValue('');
|
|
35078
35123
|
}
|
|
35079
35124
|
}
|
|
35080
|
-
static ɵfac = function DatetimePickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DatetimePickerComponent)(i0.ɵɵdirectiveInject(FormatTranslatorService), i0.ɵɵdirectiveInject(
|
|
35125
|
+
static ɵfac = function DatetimePickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DatetimePickerComponent)(i0.ɵɵdirectiveInject(FormatTranslatorService), i0.ɵɵdirectiveInject(MAT_DATE_FORMATS)); };
|
|
35081
35126
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
35082
35127
|
i0.ɵɵviewQuery(_c0$i, 5);
|
|
35083
35128
|
i0.ɵɵviewQuery(_c1$6, 5);
|
|
@@ -35086,13 +35131,13 @@ class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
|
35086
35131
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.datetimePicker = _t.first);
|
|
35087
35132
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
35088
35133
|
} }, inputs: { dateControl: "dateControl" }, standalone: false, features: [i0.ɵɵProvidersFeature([
|
|
35089
|
-
{ provide:
|
|
35134
|
+
{ provide: MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
35090
35135
|
{
|
|
35091
|
-
provide:
|
|
35092
|
-
useClass:
|
|
35093
|
-
deps: [
|
|
35136
|
+
provide: DateAdapter,
|
|
35137
|
+
useClass: MomentDateAdapter,
|
|
35138
|
+
deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
35094
35139
|
},
|
|
35095
|
-
{ provide:
|
|
35140
|
+
{ provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
35096
35141
|
]), i0.ɵɵInheritDefinitionFeature], decls: 17, vars: 27, consts: [["input", ""], ["picker", ""], [1, "govuk-form-group", "bottom-30", 3, "id", "ngClass"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "datepicker-container"], ["ng-model-options", "{timezone:'utc'}", 1, "govuk-input", 3, "focusin", "focusout", "dateChange", "min", "max", "formControl", "ngxMatDatetimePicker"], ["matSuffix", "", "id", "pickerOpener", 3, "for"], [3, "yearSelected", "monthSelected", "opened", "color", "touchUi", "hideTime", "startView", "stepHour", "stepSecond", "stepMinute", "showSeconds", "showSpinners", "disableMinute", "enableMeridian"], ["mat-raised-button", "", "color", "primary", "ngxMatDatepickerApply", ""], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function DatetimePickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35097
35142
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
35098
35143
|
i0.ɵɵelementStart(0, "div", 2)(1, "fieldset")(2, "legend");
|
|
@@ -35127,22 +35172,22 @@ class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
|
35127
35172
|
i0.ɵɵproperty("for", picker_r3);
|
|
35128
35173
|
i0.ɵɵadvance();
|
|
35129
35174
|
i0.ɵɵproperty("color", ctx.color)("touchUi", ctx.touchUi)("hideTime", ctx.hideTime)("startView", ctx.startView)("stepHour", ctx.stepHour)("stepSecond", ctx.stepSecond)("stepMinute", ctx.stepMinute)("showSeconds", ctx.showSeconds)("showSpinners", ctx.showSpinners)("disableMinute", ctx.disableMinute)("enableMeridian", ctx.enableMeridian);
|
|
35130
|
-
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, i4$2.
|
|
35175
|
+
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, i4$2.NgxMatDatepickerActions, i4$2.NgxMatDatepickerApply, i4$2.NgxMatDatepickerInput, i4$2.NgxMatDatetimepicker, i5$1.MatSuffix, i6$2.MatDatepickerToggle, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base{width:32px;height:32px;padding:5px 0 0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base:focus{outline:1px solid #fd0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px;background:#fff}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;column-width:20px;text-transform:uppercase}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true],.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-pressed=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{padding-top:0;justify-content:flex-start;padding-left:15px}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.526315em 1em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:auto;min-width:96px;white-space:nowrap;overflow:visible;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions{margin-top:16px;padding:8px 8px 28px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions button{background-color:#00823b;position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.526315em 1em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:auto;min-width:96px;white-space:nowrap;overflow:visible;cursor:pointer}\n"], encapsulation: 2 });
|
|
35131
35176
|
}
|
|
35132
35177
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatetimePickerComponent, [{
|
|
35133
35178
|
type: Component,
|
|
35134
35179
|
args: [{ selector: 'ccd-datetime-picker', encapsulation: ViewEncapsulation.None, providers: [
|
|
35135
|
-
{ provide:
|
|
35180
|
+
{ provide: MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
35136
35181
|
{
|
|
35137
|
-
provide:
|
|
35138
|
-
useClass:
|
|
35139
|
-
deps: [
|
|
35182
|
+
provide: DateAdapter,
|
|
35183
|
+
useClass: MomentDateAdapter,
|
|
35184
|
+
deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
35140
35185
|
},
|
|
35141
|
-
{ provide:
|
|
35186
|
+
{ provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
35142
35187
|
], standalone: false, template: "<div class=\"govuk-form-group bottom-30\" [id]=\"caseField.id\"\n [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && dateControl.dirty}\">\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.errors && dateControl.dirty && !(minError || maxError)\">{{(dateControl.errors | ccdFirstError:caseField.label)}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && minError\">{{'This date is older than the minimum date allowed' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && maxError\">{{'This date is later than the maximum date allowed' | rpxTranslate}}</span>\n </legend>\n <div class=\"datepicker-container\">\n <input class=\"govuk-input\"\n #input\n attr.aria-label=\"Please enter a date and time in the format | rpxTranslate {{dateTimeEntryFormat}}\"\n [min]=\"minDate(caseField)\"\n [max]=\"maxDate(caseField)\"\n [formControl]=\"dateControl\"\n [ngxMatDatetimePicker]=\"picker\"\n (focusin)=\"focusIn()\"\n (focusout)=\"focusOut()\"\n (dateChange)=\"valueChanged()\"\n ng-model-options=\"{timezone:'utc'}\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" id=\"pickerOpener\"></mat-datepicker-toggle>\n <ngx-mat-datetime-picker #picker\n [color]=\"color\"\n [touchUi]=\"touchUi\"\n [hideTime]=\"hideTime\"\n [startView]=\"startView\"\n [stepHour]=\"stepHour\"\n [stepSecond]=\"stepSecond\"\n [stepMinute]=\"stepMinute\"\n [showSeconds]=\"showSeconds\"\n [showSpinners]=\"showSpinners\"\n [disableMinute]=\"disableMinute\"\n [enableMeridian]=\"enableMeridian\"\n (yearSelected)=\"yearSelected($event)\"\n (monthSelected)=\"monthSelected($event)\"\n (opened)=\"toggleClick()\"\n >\n <ngx-mat-datepicker-actions>\n <button mat-raised-button color=\"primary\" ngxMatDatepickerApply>Confirm</button>\n </ngx-mat-datepicker-actions>\n </ngx-mat-datetime-picker>\n </div>\n </fieldset>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base{width:32px;height:32px;padding:5px 0 0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base:focus{outline:1px solid #fd0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px;background:#fff}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;column-width:20px;text-transform:uppercase}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true],.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-pressed=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{padding-top:0;justify-content:flex-start;padding-left:15px}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.526315em 1em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:auto;min-width:96px;white-space:nowrap;overflow:visible;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions{margin-top:16px;padding:8px 8px 28px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions button{background-color:#00823b;position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.526315em 1em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:auto;min-width:96px;white-space:nowrap;overflow:visible;cursor:pointer}\n"] }]
|
|
35143
35188
|
}], () => [{ type: FormatTranslatorService }, { type: undefined, decorators: [{
|
|
35144
35189
|
type: Inject,
|
|
35145
|
-
args: [
|
|
35190
|
+
args: [MAT_DATE_FORMATS]
|
|
35146
35191
|
}] }], { datetimePicker: [{
|
|
35147
35192
|
type: ViewChild,
|
|
35148
35193
|
args: ['picker', { static: false }]
|
|
@@ -35152,7 +35197,7 @@ class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
|
35152
35197
|
}], dateControl: [{
|
|
35153
35198
|
type: Input
|
|
35154
35199
|
}] }); })();
|
|
35155
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DatetimePickerComponent, { className: "DatetimePickerComponent", filePath: "lib/shared/components/palette/datetime-picker/datetime-picker.component.ts", lineNumber:
|
|
35200
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DatetimePickerComponent, { className: "DatetimePickerComponent", filePath: "lib/shared/components/palette/datetime-picker/datetime-picker.component.ts", lineNumber: 31 }); })();
|
|
35156
35201
|
|
|
35157
35202
|
class DocumentUrlPipe {
|
|
35158
35203
|
appConfig;
|
|
@@ -36304,7 +36349,7 @@ class ReadOrganisationFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
36304
36349
|
}] }); })();
|
|
36305
36350
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldRawComponent, { className: "ReadOrganisationFieldRawComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field-raw.component.ts", lineNumber: 16 }); })();
|
|
36306
36351
|
|
|
36307
|
-
function
|
|
36352
|
+
function ReadOrganisationFieldTableComponent_table_13_Template(rf, ctx) { if (rf & 1) {
|
|
36308
36353
|
i0.ɵɵelementStart(0, "table", 1)(1, "tr", 6);
|
|
36309
36354
|
i0.ɵɵelement(2, "th", 7);
|
|
36310
36355
|
i0.ɵɵelementStart(3, "td", 8)(4, "span", 4);
|
|
@@ -36352,29 +36397,31 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
36352
36397
|
}
|
|
36353
36398
|
}
|
|
36354
36399
|
static ɵfac = function ReadOrganisationFieldTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadOrganisationFieldTableComponent)(i0.ɵɵdirectiveInject(OrganisationService), i0.ɵɵdirectiveInject(OrganisationConverter)); };
|
|
36355
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
36400
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 15, vars: 9, consts: [[1, "complex-panel"], [1, "complex-field-table"], [1, "complex-field-title"], [1, "complex-panel-title"], [1, "text-16"], ["class", "complex-field-table", 4, "ngIf"], [1, "complex-panel-compound-field"], [2, "display", "none"], [1, "label-width-medium"], [3, "content"]], template: function ReadOrganisationFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
36356
36401
|
i0.ɵɵelementStart(0, "div", 0)(1, "table", 1);
|
|
36357
36402
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
36358
36403
|
i0.ɵɵelementStart(3, "tbody")(4, "tr")(5, "th", 2)(6, "dl", 3)(7, "dt")(8, "span", 4);
|
|
36359
36404
|
i0.ɵɵtext(9);
|
|
36360
36405
|
i0.ɵɵpipe(10, "rpxTranslate");
|
|
36361
|
-
i0.ɵɵelementEnd()()
|
|
36362
|
-
i0.ɵɵ
|
|
36363
|
-
i0.ɵɵ
|
|
36364
|
-
i0.ɵɵ
|
|
36406
|
+
i0.ɵɵelementEnd()();
|
|
36407
|
+
i0.ɵɵelement(11, "dd");
|
|
36408
|
+
i0.ɵɵelementEnd()();
|
|
36409
|
+
i0.ɵɵelementStart(12, "td");
|
|
36410
|
+
i0.ɵɵtemplate(13, ReadOrganisationFieldTableComponent_table_13_Template, 16, 5, "table", 5);
|
|
36411
|
+
i0.ɵɵpipe(14, "async");
|
|
36365
36412
|
i0.ɵɵelementEnd()()()()();
|
|
36366
36413
|
} if (rf & 2) {
|
|
36367
36414
|
i0.ɵɵadvance();
|
|
36368
36415
|
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 3, "complex organisation field table"));
|
|
36369
36416
|
i0.ɵɵadvance(8);
|
|
36370
36417
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 5, ctx.caseField.label));
|
|
36371
|
-
i0.ɵɵadvance(
|
|
36372
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
36418
|
+
i0.ɵɵadvance(4);
|
|
36419
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(14, 7, ctx.selectedOrg$));
|
|
36373
36420
|
} }, dependencies: [i5.NgIf, MarkdownComponent, i5.AsyncPipe, i1.RpxTranslatePipe], styles: [".govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}.hmcts-banner[_ngcontent-%COMP%]{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{font-weight:700}.govuk-hint[_ngcontent-%COMP%]{font-size:1.1rem}.name-header[_ngcontent-%COMP%]{font-weight:700;margin-top:10px;font-size:18px}.td-address[_ngcontent-%COMP%]{width:90%;padding-top:2px}.td-select[_ngcontent-%COMP%]{width:10%}.warning-panel[_ngcontent-%COMP%]{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{padding-left:15px}.complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{border:none}.complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > th[_ngcontent-%COMP%], .complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.complex-field-title[_ngcontent-%COMP%]{width:300px}.label-width-small[_ngcontent-%COMP%]{width:100px}.label-width-medium[_ngcontent-%COMP%]{width:150px}.scroll-container[_ngcontent-%COMP%]{height:600px;overflow-y:scroll}.no-result-message[_ngcontent-%COMP%]{margin-top:15px}"] });
|
|
36374
36421
|
}
|
|
36375
36422
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadOrganisationFieldTableComponent, [{
|
|
36376
36423
|
type: Component,
|
|
36377
|
-
args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
|
|
36424
|
+
args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n <dd></dd>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
|
|
36378
36425
|
}], () => [{ type: OrganisationService }, { type: OrganisationConverter }], { caseFields: [{
|
|
36379
36426
|
type: Input
|
|
36380
36427
|
}] }); })();
|
|
@@ -36751,7 +36798,7 @@ class PaletteModule {
|
|
|
36751
36798
|
QualifyingQuestionService,
|
|
36752
36799
|
QueryManagementUtils,
|
|
36753
36800
|
QueryManagementService,
|
|
36754
|
-
{ provide:
|
|
36801
|
+
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
36755
36802
|
], imports: [CommonModule,
|
|
36756
36803
|
RouterModule,
|
|
36757
36804
|
FormsModule,
|
|
@@ -36768,20 +36815,19 @@ class PaletteModule {
|
|
|
36768
36815
|
LabelSubstitutorModule,
|
|
36769
36816
|
TranslatedMarkdownModule,
|
|
36770
36817
|
MarkdownModule.forChild(),
|
|
36771
|
-
|
|
36772
|
-
|
|
36773
|
-
|
|
36774
|
-
|
|
36775
|
-
MatLegacyInputModule,
|
|
36818
|
+
NgxMatDatepickerActions,
|
|
36819
|
+
NgxMatDatetimepicker,
|
|
36820
|
+
MatFormFieldModule,
|
|
36821
|
+
MatInputModule,
|
|
36776
36822
|
MatDatepickerModule,
|
|
36777
|
-
|
|
36823
|
+
MatAutocompleteModule,
|
|
36778
36824
|
CdkTreeModule,
|
|
36779
36825
|
OverlayModule,
|
|
36780
36826
|
PaymentLibModule,
|
|
36781
36827
|
RpxTranslationModule.forChild(),
|
|
36782
36828
|
CdkTreeModule,
|
|
36783
36829
|
OverlayModule,
|
|
36784
|
-
|
|
36830
|
+
MatDialogModule,
|
|
36785
36831
|
MediaViewerModule,
|
|
36786
36832
|
LoadingModule,
|
|
36787
36833
|
MarkdownComponentModule,
|
|
@@ -36798,10 +36844,7 @@ class PaletteModule {
|
|
|
36798
36844
|
undo: 'Undo',
|
|
36799
36845
|
redo: 'Redo'
|
|
36800
36846
|
}
|
|
36801
|
-
}),
|
|
36802
|
-
NgxMatNativeDateModule,
|
|
36803
|
-
NgxMatTimepickerModule,
|
|
36804
|
-
TabsModule,
|
|
36847
|
+
}), TabsModule,
|
|
36805
36848
|
PaletteUtilsModule,
|
|
36806
36849
|
PipesModule,
|
|
36807
36850
|
MarkdownComponentModule] });
|
|
@@ -36826,20 +36869,21 @@ class PaletteModule {
|
|
|
36826
36869
|
LabelSubstitutorModule,
|
|
36827
36870
|
TranslatedMarkdownModule,
|
|
36828
36871
|
MarkdownModule.forChild(),
|
|
36829
|
-
|
|
36830
|
-
|
|
36831
|
-
|
|
36832
|
-
|
|
36833
|
-
|
|
36872
|
+
NgxMatDatepickerActions,
|
|
36873
|
+
NgxMatDatepickerApply,
|
|
36874
|
+
NgxMatDatepickerInput,
|
|
36875
|
+
NgxMatDatetimepicker,
|
|
36876
|
+
MatFormFieldModule,
|
|
36877
|
+
MatInputModule,
|
|
36834
36878
|
MatDatepickerModule,
|
|
36835
|
-
|
|
36879
|
+
MatAutocompleteModule,
|
|
36836
36880
|
CdkTreeModule,
|
|
36837
36881
|
OverlayModule,
|
|
36838
36882
|
PaymentLibModule,
|
|
36839
36883
|
RpxTranslationModule.forChild(),
|
|
36840
36884
|
CdkTreeModule,
|
|
36841
36885
|
OverlayModule,
|
|
36842
|
-
|
|
36886
|
+
MatDialogModule,
|
|
36843
36887
|
MediaViewerModule,
|
|
36844
36888
|
LoadingModule,
|
|
36845
36889
|
MarkdownComponentModule,
|
|
@@ -36871,9 +36915,10 @@ class PaletteModule {
|
|
|
36871
36915
|
...PALETTE_COMPONENTS
|
|
36872
36916
|
],
|
|
36873
36917
|
exports: [
|
|
36874
|
-
|
|
36875
|
-
|
|
36876
|
-
|
|
36918
|
+
NgxMatDatepickerActions,
|
|
36919
|
+
NgxMatDatepickerApply,
|
|
36920
|
+
NgxMatDatepickerInput,
|
|
36921
|
+
NgxMatDatetimepicker,
|
|
36877
36922
|
TabsModule,
|
|
36878
36923
|
PaletteUtilsModule,
|
|
36879
36924
|
PipesModule,
|
|
@@ -36896,7 +36941,7 @@ class PaletteModule {
|
|
|
36896
36941
|
QualifyingQuestionService,
|
|
36897
36942
|
QueryManagementUtils,
|
|
36898
36943
|
QueryManagementService,
|
|
36899
|
-
{ provide:
|
|
36944
|
+
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
36900
36945
|
],
|
|
36901
36946
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
36902
36947
|
}]
|
|
@@ -37052,24 +37097,26 @@ class PaletteModule {
|
|
|
37052
37097
|
FormModule,
|
|
37053
37098
|
TabsModule,
|
|
37054
37099
|
LabelSubstitutorModule,
|
|
37055
|
-
TranslatedMarkdownModule, i1$4.MarkdownModule,
|
|
37056
|
-
|
|
37057
|
-
|
|
37058
|
-
|
|
37059
|
-
|
|
37100
|
+
TranslatedMarkdownModule, i1$4.MarkdownModule, NgxMatDatepickerActions,
|
|
37101
|
+
NgxMatDatepickerApply,
|
|
37102
|
+
NgxMatDatepickerInput,
|
|
37103
|
+
NgxMatDatetimepicker,
|
|
37104
|
+
MatFormFieldModule,
|
|
37105
|
+
MatInputModule,
|
|
37060
37106
|
MatDatepickerModule,
|
|
37061
|
-
|
|
37107
|
+
MatAutocompleteModule,
|
|
37062
37108
|
CdkTreeModule,
|
|
37063
37109
|
OverlayModule,
|
|
37064
37110
|
PaymentLibModule, i1.RpxTranslationModule, CdkTreeModule,
|
|
37065
37111
|
OverlayModule,
|
|
37066
|
-
|
|
37112
|
+
MatDialogModule,
|
|
37067
37113
|
MediaViewerModule,
|
|
37068
37114
|
LoadingModule,
|
|
37069
37115
|
MarkdownComponentModule,
|
|
37070
|
-
ErrorsModule, i3$1.NgxEditorModule], exports: [
|
|
37071
|
-
|
|
37072
|
-
|
|
37116
|
+
ErrorsModule, i3$1.NgxEditorModule], exports: [NgxMatDatepickerActions,
|
|
37117
|
+
NgxMatDatepickerApply,
|
|
37118
|
+
NgxMatDatepickerInput,
|
|
37119
|
+
NgxMatDatetimepicker,
|
|
37073
37120
|
TabsModule,
|
|
37074
37121
|
PaletteUtilsModule,
|
|
37075
37122
|
PipesModule,
|
|
@@ -37260,7 +37307,7 @@ i0.ɵɵsetComponentScope(
|
|
|
37260
37307
|
// Components for case flags
|
|
37261
37308
|
CaseFlagTableComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
|
|
37262
37309
|
i0.ɵɵsetComponentScope(SelectFlagTypeComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.CheckboxControlValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName]; }, function () { return [i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
|
|
37263
|
-
i0.ɵɵsetComponentScope(SearchLanguageInterpreterComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i15.
|
|
37310
|
+
i0.ɵɵsetComponentScope(SearchLanguageInterpreterComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i15.MatInput, i6.MatAutocomplete, i6.MatOption, i6.MatAutocompleteTrigger]; }, function () { return [i5.AsyncPipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe,
|
|
37264
37311
|
LanguageInterpreterDisplayPipe]; });
|
|
37265
37312
|
i0.ɵɵsetComponentScope(ManageCaseFlagsComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective]; }, function () { return [i1.RpxTranslatePipe, ManageCaseFlagsLabelDisplayPipe]; });
|
|
37266
37313
|
i0.ɵɵsetComponentScope(UpdateFlagComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i5.NgTemplateOutlet, i4.DefaultValueAccessor, i4.CheckboxControlValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName]; }, function () { return [i1.RpxTranslatePipe, UpdateFlagTitleDisplayPipe]; });
|
|
@@ -38045,26 +38092,41 @@ class CaseProgressComponent {
|
|
|
38045
38092
|
}] }); })();
|
|
38046
38093
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseProgressComponent, { className: "CaseProgressComponent", filePath: "lib/shared/components/case-editor/case-progress/case-progress.component.ts", lineNumber: 18 }); })();
|
|
38047
38094
|
|
|
38095
|
+
function LoadingSpinnerComponent_p_2_Template(rf, ctx) { if (rf & 1) {
|
|
38096
|
+
i0.ɵɵelementStart(0, "p");
|
|
38097
|
+
i0.ɵɵtext(1);
|
|
38098
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
38099
|
+
i0.ɵɵelementEnd();
|
|
38100
|
+
} if (rf & 2) {
|
|
38101
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
38102
|
+
i0.ɵɵadvance();
|
|
38103
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.loadingText));
|
|
38104
|
+
} }
|
|
38105
|
+
function LoadingSpinnerComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
38106
|
+
i0.ɵɵelement(0, "div", 4);
|
|
38107
|
+
} }
|
|
38048
38108
|
class LoadingSpinnerComponent {
|
|
38049
38109
|
loadingText = 'Loading';
|
|
38110
|
+
loading = true;
|
|
38050
38111
|
static ɵfac = function LoadingSpinnerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LoadingSpinnerComponent)(); };
|
|
38051
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoadingSpinnerComponent, selectors: [["ccd-loading-spinner"]], inputs: { loadingText: "loadingText" }, standalone: false, decls:
|
|
38052
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)
|
|
38053
|
-
i0.ɵɵ
|
|
38054
|
-
i0.ɵɵpipe(4, "rpxTranslate");
|
|
38055
|
-
i0.ɵɵelementEnd();
|
|
38056
|
-
i0.ɵɵelement(5, "div", 2);
|
|
38112
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoadingSpinnerComponent, selectors: [["ccd-loading-spinner"]], inputs: { loadingText: "loadingText", loading: "loading" }, standalone: false, decls: 4, vars: 2, consts: [["role", "status", "aria-live", "polite", "aria-atomic", "true", 1, "spinner-container"], [1, "spinner-inner-container"], [4, "ngIf"], ["class", "spinner", "style", "margin: auto;", 4, "ngIf"], [1, "spinner", 2, "margin", "auto"]], template: function LoadingSpinnerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
38113
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
38114
|
+
i0.ɵɵtemplate(2, LoadingSpinnerComponent_p_2_Template, 3, 3, "p", 2)(3, LoadingSpinnerComponent_div_3_Template, 1, 0, "div", 3);
|
|
38057
38115
|
i0.ɵɵelementEnd()();
|
|
38058
38116
|
} if (rf & 2) {
|
|
38059
|
-
i0.ɵɵadvance(
|
|
38060
|
-
i0.ɵɵ
|
|
38061
|
-
|
|
38117
|
+
i0.ɵɵadvance(2);
|
|
38118
|
+
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
38119
|
+
i0.ɵɵadvance();
|
|
38120
|
+
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
38121
|
+
} }, dependencies: [i5.NgIf, i1.RpxTranslatePipe], styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:#ffffff80;z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{border:10px solid #dddddd;border-top:10px solid #000000;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], encapsulation: 2 });
|
|
38062
38122
|
}
|
|
38063
38123
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingSpinnerComponent, [{
|
|
38064
38124
|
type: Component,
|
|
38065
|
-
args: [{ selector: 'ccd-loading-spinner', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"spinner-container\">\n <div class=\"spinner-inner-container\">\n <p>{{loadingText | rpxTranslate}}</p>\n <div class=\"spinner\" style=\"margin: auto;\"></div>\n </div>\n</div>\n", styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:#ffffff80;z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{border:10px solid #dddddd;border-top:10px solid #000000;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
38125
|
+
args: [{ selector: 'ccd-loading-spinner', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"spinner-container\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">\n <div class=\"spinner-inner-container\">\n <p *ngIf=\"loading\">{{loadingText | rpxTranslate}}</p>\n <div *ngIf=\"loading\" class=\"spinner\" style=\"margin: auto;\"></div>\n </div>\n</div>\n", styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:#ffffff80;z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{border:10px solid #dddddd;border-top:10px solid #000000;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
38066
38126
|
}], null, { loadingText: [{
|
|
38067
38127
|
type: Input
|
|
38128
|
+
}], loading: [{
|
|
38129
|
+
type: Input
|
|
38068
38130
|
}] }); })();
|
|
38069
38131
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoadingSpinnerComponent, { className: "LoadingSpinnerComponent", filePath: "lib/shared/components/loading-spinner/loading-spinner.component.ts", lineNumber: 11 }); })();
|
|
38070
38132
|
|
|
@@ -40794,7 +40856,10 @@ class CaseViewComponent {
|
|
|
40794
40856
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseViewComponent, { className: "CaseViewComponent", filePath: "lib/shared/components/case-viewer/case-view/case-view.component.ts", lineNumber: 19 }); })();
|
|
40795
40857
|
|
|
40796
40858
|
function CaseBasicAccessViewComponent_ccd_loading_spinner_0_Template(rf, ctx) { if (rf & 1) {
|
|
40797
|
-
i0.ɵɵelement(0, "ccd-loading-spinner");
|
|
40859
|
+
i0.ɵɵelement(0, "ccd-loading-spinner", 11);
|
|
40860
|
+
} if (rf & 2) {
|
|
40861
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
40862
|
+
i0.ɵɵproperty("loading", ctx_r0.showSpinner)("hidden", !ctx_r0.showSpinner);
|
|
40798
40863
|
} }
|
|
40799
40864
|
function CaseBasicAccessViewComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
40800
40865
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -40837,11 +40902,11 @@ function CaseBasicAccessViewComponent_ng_container_7_Template(rf, ctx) { if (rf
|
|
|
40837
40902
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 1, "This could be because it's outside your jurisdiction, or you may be excluded from the case. If you request access to this case, it will be logged for auditing purposes"), ".");
|
|
40838
40903
|
} }
|
|
40839
40904
|
function CaseBasicAccessViewComponent_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
40840
|
-
i0.ɵɵelementStart(0, "div",
|
|
40905
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "dt", 13);
|
|
40841
40906
|
i0.ɵɵtext(2);
|
|
40842
40907
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
40843
40908
|
i0.ɵɵelementEnd();
|
|
40844
|
-
i0.ɵɵelementStart(4, "dd",
|
|
40909
|
+
i0.ɵɵelementStart(4, "dd", 14);
|
|
40845
40910
|
i0.ɵɵtext(5);
|
|
40846
40911
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
40847
40912
|
i0.ɵɵelementEnd()();
|
|
@@ -40853,11 +40918,11 @@ function CaseBasicAccessViewComponent_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
|
40853
40918
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, ctx_r0.caseDetails.basicFields.caseNameHmctsInternal));
|
|
40854
40919
|
} }
|
|
40855
40920
|
function CaseBasicAccessViewComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
40856
|
-
i0.ɵɵelementStart(0, "div",
|
|
40921
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "dt", 13);
|
|
40857
40922
|
i0.ɵɵtext(2);
|
|
40858
40923
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
40859
40924
|
i0.ɵɵelementEnd();
|
|
40860
|
-
i0.ɵɵelementStart(4, "dd",
|
|
40925
|
+
i0.ɵɵelementStart(4, "dd", 14);
|
|
40861
40926
|
i0.ɵɵtext(5);
|
|
40862
40927
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
40863
40928
|
i0.ɵɵelementEnd()();
|
|
@@ -40869,11 +40934,11 @@ function CaseBasicAccessViewComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
40869
40934
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, ctx_r0.caseDetails.case_type.jurisdiction.name));
|
|
40870
40935
|
} }
|
|
40871
40936
|
function CaseBasicAccessViewComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
40872
|
-
i0.ɵɵelementStart(0, "div",
|
|
40937
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "dt", 13);
|
|
40873
40938
|
i0.ɵɵtext(2);
|
|
40874
40939
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
40875
40940
|
i0.ɵɵelementEnd();
|
|
40876
|
-
i0.ɵɵelementStart(4, "dd",
|
|
40941
|
+
i0.ɵɵelementStart(4, "dd", 14);
|
|
40877
40942
|
i0.ɵɵtext(5);
|
|
40878
40943
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
40879
40944
|
i0.ɵɵelementEnd()();
|
|
@@ -40885,11 +40950,11 @@ function CaseBasicAccessViewComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
40885
40950
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, ctx_r0.caseDetails.state.description));
|
|
40886
40951
|
} }
|
|
40887
40952
|
function CaseBasicAccessViewComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
40888
|
-
i0.ɵɵelementStart(0, "div",
|
|
40953
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "dt", 13);
|
|
40889
40954
|
i0.ɵɵtext(2);
|
|
40890
40955
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
40891
40956
|
i0.ɵɵelementEnd();
|
|
40892
|
-
i0.ɵɵelementStart(4, "dd",
|
|
40957
|
+
i0.ɵɵelementStart(4, "dd", 14);
|
|
40893
40958
|
i0.ɵɵtext(5);
|
|
40894
40959
|
i0.ɵɵpipe(6, "titlecase");
|
|
40895
40960
|
i0.ɵɵelementEnd()();
|
|
@@ -40901,11 +40966,11 @@ function CaseBasicAccessViewComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
40901
40966
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, ctx_r0.courtOrHearingCentre));
|
|
40902
40967
|
} }
|
|
40903
40968
|
function CaseBasicAccessViewComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
40904
|
-
i0.ɵɵelementStart(0, "div",
|
|
40969
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "dt", 13);
|
|
40905
40970
|
i0.ɵɵtext(2);
|
|
40906
40971
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
40907
40972
|
i0.ɵɵelementEnd();
|
|
40908
|
-
i0.ɵɵelementStart(4, "dd",
|
|
40973
|
+
i0.ɵɵelementStart(4, "dd", 14);
|
|
40909
40974
|
i0.ɵɵtext(5);
|
|
40910
40975
|
i0.ɵɵpipe(6, "titlecase");
|
|
40911
40976
|
i0.ɵɵpipe(7, "rpxTranslate");
|
|
@@ -40957,29 +41022,29 @@ class CaseBasicAccessViewComponent {
|
|
|
40957
41022
|
return accessType === 'CHALLENGED' ? 'challenged-access-request' : 'specific-access-request';
|
|
40958
41023
|
}
|
|
40959
41024
|
static ɵfac = function CaseBasicAccessViewComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseBasicAccessViewComponent)(i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i1$2.Router)); };
|
|
40960
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseBasicAccessViewComponent, selectors: [["ccd-case-basic-access-view"]], inputs: { caseDetails: "caseDetails", accessType: "accessType" }, standalone: false, decls: 29, vars: 23, consts: [[4, "ngIf"], ["type", "information"], [1, "heading-h1"], [1, "govuk-heading-m"], [1, "govuk-summary-list"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-button-group"], [1, "govuk-button", "govuk-!-margin-right-3", 3, "routerLink"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "#", 1, "govuk-body", 3, "click"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key", "summary-key"], [1, "govuk-summary-list__value"]], template: function CaseBasicAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
40961
|
-
i0.ɵɵtemplate(0, CaseBasicAccessViewComponent_ccd_loading_spinner_0_Template, 1,
|
|
41025
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseBasicAccessViewComponent, selectors: [["ccd-case-basic-access-view"]], inputs: { caseDetails: "caseDetails", accessType: "accessType" }, standalone: false, decls: 29, vars: 23, consts: [[3, "loading", "hidden", 4, "ngIf"], ["type", "information"], [4, "ngIf"], [1, "heading-h1"], [1, "govuk-heading-m"], [1, "govuk-summary-list"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-button-group"], [1, "govuk-button", "govuk-!-margin-right-3", 3, "routerLink"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "#", 1, "govuk-body", 3, "click"], [3, "loading", "hidden"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key", "summary-key"], [1, "govuk-summary-list__value"]], template: function CaseBasicAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
41026
|
+
i0.ɵɵtemplate(0, CaseBasicAccessViewComponent_ccd_loading_spinner_0_Template, 1, 2, "ccd-loading-spinner", 0);
|
|
40962
41027
|
i0.ɵɵelementStart(1, "div")(2, "cut-alert", 1);
|
|
40963
|
-
i0.ɵɵtemplate(3, CaseBasicAccessViewComponent_ng_container_3_Template, 6, 11, "ng-container",
|
|
41028
|
+
i0.ɵɵtemplate(3, CaseBasicAccessViewComponent_ng_container_3_Template, 6, 11, "ng-container", 2)(4, CaseBasicAccessViewComponent_ng_container_4_Template, 3, 3, "ng-container", 2);
|
|
40964
41029
|
i0.ɵɵelement(5, "br");
|
|
40965
|
-
i0.ɵɵtemplate(6, CaseBasicAccessViewComponent_ng_container_6_Template, 3, 3, "ng-container",
|
|
41030
|
+
i0.ɵɵtemplate(6, CaseBasicAccessViewComponent_ng_container_6_Template, 3, 3, "ng-container", 2)(7, CaseBasicAccessViewComponent_ng_container_7_Template, 3, 3, "ng-container", 2);
|
|
40966
41031
|
i0.ɵɵelementEnd();
|
|
40967
|
-
i0.ɵɵelementStart(8, "h1",
|
|
41032
|
+
i0.ɵɵelementStart(8, "h1", 3);
|
|
40968
41033
|
i0.ɵɵtext(9);
|
|
40969
41034
|
i0.ɵɵpipe(10, "ccdCaseReference");
|
|
40970
41035
|
i0.ɵɵelementEnd();
|
|
40971
|
-
i0.ɵɵelementStart(11, "h2",
|
|
41036
|
+
i0.ɵɵelementStart(11, "h2", 4);
|
|
40972
41037
|
i0.ɵɵtext(12);
|
|
40973
41038
|
i0.ɵɵpipe(13, "rpxTranslate");
|
|
40974
41039
|
i0.ɵɵelementEnd();
|
|
40975
|
-
i0.ɵɵelementStart(14, "dl",
|
|
40976
|
-
i0.ɵɵtemplate(15, CaseBasicAccessViewComponent_div_15_Template, 7, 6, "div",
|
|
41040
|
+
i0.ɵɵelementStart(14, "dl", 5);
|
|
41041
|
+
i0.ɵɵtemplate(15, CaseBasicAccessViewComponent_div_15_Template, 7, 6, "div", 6)(16, CaseBasicAccessViewComponent_div_16_Template, 7, 6, "div", 6)(17, CaseBasicAccessViewComponent_div_17_Template, 7, 6, "div", 6)(18, CaseBasicAccessViewComponent_div_18_Template, 7, 6, "div", 6)(19, CaseBasicAccessViewComponent_div_19_Template, 8, 8, "div", 6);
|
|
40977
41042
|
i0.ɵɵelementEnd()();
|
|
40978
|
-
i0.ɵɵelementStart(20, "div",
|
|
41043
|
+
i0.ɵɵelementStart(20, "div", 7)(21, "button", 8);
|
|
40979
41044
|
i0.ɵɵtext(22);
|
|
40980
41045
|
i0.ɵɵpipe(23, "rpxTranslate");
|
|
40981
41046
|
i0.ɵɵelementEnd();
|
|
40982
|
-
i0.ɵɵelementStart(24, "div",
|
|
41047
|
+
i0.ɵɵelementStart(24, "div", 9)(25, "p")(26, "a", 10);
|
|
40983
41048
|
i0.ɵɵlistener("click", function CaseBasicAccessViewComponent_Template_a_click_26_listener($event) { ctx.onCancel(); return $event.preventDefault(); });
|
|
40984
41049
|
i0.ɵɵtext(27);
|
|
40985
41050
|
i0.ɵɵpipe(28, "rpxTranslate");
|
|
@@ -41018,7 +41083,7 @@ class CaseBasicAccessViewComponent {
|
|
|
41018
41083
|
}
|
|
41019
41084
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseBasicAccessViewComponent, [{
|
|
41020
41085
|
type: Component,
|
|
41021
|
-
args: [{ selector: 'ccd-case-basic-access-view', standalone: false, template: "<ccd-loading-spinner
|
|
41086
|
+
args: [{ selector: 'ccd-case-basic-access-view', standalone: false, template: "<ccd-loading-spinner *ngIf=\"showSpinner\" [loading]=\"showSpinner\" [hidden]=\"!showSpinner\"></ccd-loading-spinner>\n<div>\n <cut-alert type=\"information\">\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">{{'This case requires' | rpxTranslate}} {{accessType | rpxTranslate | lowercase}} {{'access' | rpxTranslate}}.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">{{'Authorisation is needed to access this case' | rpxTranslate}}</ng-container>\n <br />\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">{{'This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes' | rpxTranslate}}.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">{{\"This could be because it's outside your jurisdiction, or you may be excluded from the case. If you request access to this case, it will be logged for auditing purposes\" | rpxTranslate }}.</ng-container>\n </cut-alert>\n <h1 class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n <h2 class=\"govuk-heading-m\">{{'Case details' | rpxTranslate}}</h2>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.basicFields?.caseNameHmctsInternal\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Case name' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.basicFields.caseNameHmctsInternal | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.case_type?.jurisdiction?.name\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Service' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.case_type.jurisdiction.name | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.state?.description\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'State' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.state.description | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"courtOrHearingCentre\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Court or hearing centre' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{courtOrHearingCentre | titlecase}}</dd>\n </div>\n\n <div class=\"govuk-summary-list__row\" *ngIf=\"accessType\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Access' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{accessType | titlecase | rpxTranslate}}</dd>\n </div>\n </dl>\n</div>\n<div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" [routerLink]=\"getRequestUrl(accessType)\">\n {{'Request access' | rpxTranslate}}\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class=\"govuk-body\" (click)=\"onCancel(); $event.preventDefault()\" href=\"#\">\n {{'Cancel' | rpxTranslate}}\n </a>\n </p>\n </div>\n</div>\n" }]
|
|
41022
41087
|
}], () => [{ type: CasesService }, { type: i1$2.Router }], { caseDetails: [{
|
|
41023
41088
|
type: Input
|
|
41024
41089
|
}], accessType: [{
|
|
@@ -41046,7 +41111,7 @@ class DeleteOrCancelDialogComponent {
|
|
|
41046
41111
|
this.result = 'Cancel';
|
|
41047
41112
|
this.matDialogRef.close(this.result);
|
|
41048
41113
|
}
|
|
41049
|
-
static ɵfac = function DeleteOrCancelDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$3.
|
|
41114
|
+
static ɵfac = function DeleteOrCancelDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
|
|
41050
41115
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DeleteOrCancelDialogComponent, selectors: [["ccd-delete-or-cancel-dialog"]], standalone: false, decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Delete", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DeleteOrCancelDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
41051
41116
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
|
|
41052
41117
|
i0.ɵɵlistener("click", function DeleteOrCancelDialogComponent_Template_h2_click_2_listener() { return ctx.cancel(); });
|
|
@@ -41084,7 +41149,7 @@ class DeleteOrCancelDialogComponent {
|
|
|
41084
41149
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeleteOrCancelDialogComponent, [{
|
|
41085
41150
|
type: Component,
|
|
41086
41151
|
args: [{ selector: 'ccd-delete-or-cancel-dialog', standalone: false, template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Are you sure you want to delete this draft?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">{{'You are about to delete this draft. Are you sure you want to proceed?' | rpxTranslate}}</span>\n </div>\n <div>\n <button type=\"button\" title=\"Delete\" class=\"button action-button\" (click)=\"delete()\">{{'Delete draft' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Cancel\" class=\"button button-secondary\" (click)=\"cancel()\">{{'Cancel' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}@media(prefers-color-scheme:dark){.dialog-title,.dialog-info{color:#000}}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
|
|
41087
|
-
}], () => [{ type: i1$3.
|
|
41152
|
+
}], () => [{ type: i1$3.MatDialogRef }], null); })();
|
|
41088
41153
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DeleteOrCancelDialogComponent, { className: "DeleteOrCancelDialogComponent", filePath: "lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.ts", lineNumber: 10 }); })();
|
|
41089
41154
|
|
|
41090
41155
|
class DialogsModule {
|
|
@@ -41249,7 +41314,8 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template(rf, ctx)
|
|
|
41249
41314
|
i0.ɵɵelementEnd();
|
|
41250
41315
|
} if (rf & 2) {
|
|
41251
41316
|
const tab_r6 = ctx.$implicit;
|
|
41252
|
-
i0.ɵɵproperty("
|
|
41317
|
+
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 2, tab_r6.label));
|
|
41318
|
+
i0.ɵɵattribute("data-case-tab-id", tab_r6.id);
|
|
41253
41319
|
} }
|
|
41254
41320
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_4_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
41255
41321
|
i0.ɵɵelementStart(0, "th", 38)(1, "div", 39);
|
|
@@ -41339,8 +41405,9 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx)
|
|
|
41339
41405
|
} if (rf & 2) {
|
|
41340
41406
|
const tab_r8 = ctx.$implicit;
|
|
41341
41407
|
const curIdx_r9 = ctx.index;
|
|
41342
|
-
i0.ɵɵproperty("
|
|
41408
|
+
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 3, tab_r8.label));
|
|
41343
41409
|
i0.ɵɵariaProperty("aria-label", curIdx_r9 === 0 ? tab_r8.label + ", Please use left and right arrow keys to navigate case tabs" : i0.ɵɵpipeBind1(2, 5, ""));
|
|
41410
|
+
i0.ɵɵattribute("data-case-tab-id", tab_r8.id);
|
|
41344
41411
|
} }
|
|
41345
41412
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_5_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
41346
41413
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -41360,7 +41427,8 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template(rf, ctx)
|
|
|
41360
41427
|
i0.ɵɵelementEnd();
|
|
41361
41428
|
} if (rf & 2) {
|
|
41362
41429
|
const tab_r10 = ctx.$implicit;
|
|
41363
|
-
i0.ɵɵproperty("
|
|
41430
|
+
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 2, tab_r10.label));
|
|
41431
|
+
i0.ɵɵattribute("data-case-tab-id", tab_r10.id);
|
|
41364
41432
|
} }
|
|
41365
41433
|
function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
41366
41434
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
@@ -41835,13 +41903,13 @@ class CaseFullAccessViewComponent {
|
|
|
41835
41903
|
this.errorNotifierService.announceError(null);
|
|
41836
41904
|
this.alertService.clear();
|
|
41837
41905
|
}
|
|
41838
|
-
static ɵfac = function CaseFullAccessViewComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$3.
|
|
41906
|
+
static ɵfac = function CaseFullAccessViewComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i5.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1.RpxTranslatePipe), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CaseFlagStateService), i0.ɵɵdirectiveInject(i0.NgZone)); };
|
|
41839
41907
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) { if (rf & 1) {
|
|
41840
41908
|
i0.ɵɵviewQuery(_c0$c, 5);
|
|
41841
41909
|
} if (rf & 2) {
|
|
41842
41910
|
let _t;
|
|
41843
41911
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
41844
|
-
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["tabGroup", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "onTriggerChange", "onTriggerSubmit", "isDisabled", "triggers", "triggerText", "eventId"], [3, "linkClicked", "notificationBannerConfig"], ["animationDuration", "0ms", 3, "selectedIndexChange", "disableRipple", "selectedIndex", "selectedIndex"], [3, "
|
|
41912
|
+
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["tabGroup", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "onTriggerChange", "onTriggerSubmit", "isDisabled", "triggers", "triggerText", "eventId"], [3, "linkClicked", "notificationBannerConfig"], ["animationDuration", "0ms", 3, "selectedIndexChange", "disableRipple", "selectedIndex", "selectedIndex"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label", "aria-label", 4, "ngFor", "ngForOf"], [3, "label"], ["matTabContent", ""], [3, "label", "aria-label"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["scope", "row", 3, "id", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseFields", "caseField", "caseReference"], ["scope", "row", 3, "id"], [1, "case-viewer-label", "text-16"], [1, "compound-field"], ["role", "rowheader", 3, "id"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
41845
41913
|
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 14, 12, "div", 1)(1, CaseFullAccessViewComponent_div_1_Template, 8, 7, "div", 1);
|
|
41846
41914
|
i0.ɵɵelementStart(2, "ccd-callback-errors", 2);
|
|
41847
41915
|
i0.ɵɵlistener("callbackErrorsContext", function CaseFullAccessViewComponent_Template_ccd_callback_errors_callbackErrorsContext_2_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
@@ -41879,8 +41947,8 @@ class CaseFullAccessViewComponent {
|
|
|
41879
41947
|
}
|
|
41880
41948
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
41881
41949
|
type: Component,
|
|
41882
|
-
args: [{ selector: 'ccd-case-full-access-view', standalone: false, template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\" [(selectedIndex)]=\"selectedTabIndex\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <ng-container *ngIf=\"tab.id === 'tasks'\">\n <exui-tasks-ce></exui-tasks-ce>\n </ng-container>\n <ng-container *ngIf=\"tab.id === 'roles-and-access'\">\n <exui-roles-and-access-ce></exui-roles-and-access-ce>\n </ng-container>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\" [aria-label]=\"curIdx === 0 ? tab.label + ', Please use left and right arrow keys to navigate case tabs' : '' | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-label]=\"'case viewer table' | rpxTranslate\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup?.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th [id]=\"'case-viewer-field-label--' + field.id\" scope=\"row\" *ngIf=\"!isFieldToHaveNoLabel(field) && field.label\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup?.controls['data']\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <td role=\"rowheader\" [attr.aria-label]=\"(field.label || field.id) | rpxTranslate\" [id]=\"'case-viewer-field-read--' + field.id\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <ng-container *ngIf=\"tab.id === 'hearings'\">\n <exui-case-hearings-ce></exui-case-hearings-ce>\n </ng-container>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n </div>\n</div>\n", styles: ["th,.compound-field>td{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.compound-field>td{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
|
|
41883
|
-
}], () => [{ type: i0.NgZone }, { type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.
|
|
41950
|
+
args: [{ selector: 'ccd-case-full-access-view', standalone: false, template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <!-- Let Material generate header IDs so URL tab fragments do not trigger anchor scrolling. -->\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\" [(selectedIndex)]=\"selectedTabIndex\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [attr.data-case-tab-id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <ng-container *ngIf=\"tab.id === 'tasks'\">\n <exui-tasks-ce></exui-tasks-ce>\n </ng-container>\n <ng-container *ngIf=\"tab.id === 'roles-and-access'\">\n <exui-roles-and-access-ce></exui-roles-and-access-ce>\n </ng-container>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [attr.data-case-tab-id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\" [aria-label]=\"curIdx === 0 ? tab.label + ', Please use left and right arrow keys to navigate case tabs' : '' | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-label]=\"'case viewer table' | rpxTranslate\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup?.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th [id]=\"'case-viewer-field-label--' + field.id\" scope=\"row\" *ngIf=\"!isFieldToHaveNoLabel(field) && field.label\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup?.controls['data']\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <td role=\"rowheader\" [attr.aria-label]=\"(field.label || field.id) | rpxTranslate\" [id]=\"'case-viewer-field-read--' + field.id\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [attr.data-case-tab-id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <ng-container *ngIf=\"tab.id === 'hearings'\">\n <exui-case-hearings-ce></exui-case-hearings-ce>\n </ng-container>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n </div>\n</div>\n", styles: ["th,.compound-field>td{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.compound-field>td{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
|
|
41951
|
+
}], () => [{ type: i0.NgZone }, { type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1.RpxTranslatePipe }, { type: LoadingService }, { type: LinkedCasesService }, { type: CaseFlagStateService }, { type: i0.NgZone }], { hasPrint: [{
|
|
41884
41952
|
type: Input
|
|
41885
41953
|
}], hasEventSelector: [{
|
|
41886
41954
|
type: Input
|
|
@@ -44447,7 +44515,7 @@ class CaseViewerModule {
|
|
|
44447
44515
|
CaseEditorModule,
|
|
44448
44516
|
ConditionalShowModule,
|
|
44449
44517
|
CaseHistoryModule,
|
|
44450
|
-
|
|
44518
|
+
MatTabsModule,
|
|
44451
44519
|
ReactiveFormsModule,
|
|
44452
44520
|
AlertModule,
|
|
44453
44521
|
LabelSubstitutorModule,
|
|
@@ -44472,7 +44540,7 @@ class CaseViewerModule {
|
|
|
44472
44540
|
CaseEditorModule,
|
|
44473
44541
|
ConditionalShowModule,
|
|
44474
44542
|
CaseHistoryModule,
|
|
44475
|
-
|
|
44543
|
+
MatTabsModule,
|
|
44476
44544
|
ReactiveFormsModule,
|
|
44477
44545
|
AlertModule,
|
|
44478
44546
|
LabelSubstitutorModule,
|
|
@@ -44541,7 +44609,7 @@ class CaseViewerModule {
|
|
|
44541
44609
|
CaseEditorModule,
|
|
44542
44610
|
ConditionalShowModule,
|
|
44543
44611
|
CaseHistoryModule,
|
|
44544
|
-
|
|
44612
|
+
MatTabsModule,
|
|
44545
44613
|
ReactiveFormsModule,
|
|
44546
44614
|
AlertModule,
|
|
44547
44615
|
LabelSubstitutorModule, i1.RpxTranslationModule, BannersModule,
|
|
@@ -44553,7 +44621,7 @@ i0.ɵɵsetComponentScope(CaseEventTriggerComponent, function () { return [i5.NgI
|
|
|
44553
44621
|
i0.ɵɵsetComponentScope(CasePrinterComponent, function () { return [i5.NgForOf, i5.NgIf, CaseHeaderComponent]; }, function () { return [i1.RpxTranslatePipe, PrintUrlPipe]; });
|
|
44554
44622
|
i0.ɵɵsetComponentScope(CaseViewerComponent, function () { return [i5.NgIf, CaseFullAccessViewComponent,
|
|
44555
44623
|
CaseBasicAccessViewComponent]; }, []);
|
|
44556
|
-
i0.ɵɵsetComponentScope(CaseFullAccessViewComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i1$2.RouterLink, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, EventTriggerComponent, FieldReadComponent, i10.
|
|
44624
|
+
i0.ɵɵsetComponentScope(CaseFullAccessViewComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i1$2.RouterLink, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, EventTriggerComponent, FieldReadComponent, i10.MatTabContent, i10.MatTab, i10.MatTabGroup, LabelSubstitutorDirective, NotificationBannerComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, CcdTabFieldsPipe, i1.RpxTranslatePipe]; });
|
|
44557
44625
|
i0.ɵɵsetComponentScope(CaseViewComponent, function () { return [i5.NgIf, CaseViewerComponent]; }, []);
|
|
44558
44626
|
i0.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, function () { return [i5.NgClass, i5.NgIf, i4.ɵNgNoValidate, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, AlertComponent, ErrorMessageComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
44559
44627
|
i0.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, function () { return [i5.NgClass, i5.NgIf, i4.ɵNgNoValidate, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, AlertComponent, ErrorMessageComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
@@ -45458,11 +45526,11 @@ i0.ɵɵsetComponentScope(SearchFiltersWrapperComponent, function () { return [i5
|
|
|
45458
45526
|
|
|
45459
45527
|
const _c0 = (a0, a1, a2) => ({ itemsPerPage: a0, currentPage: a1, totalItems: a2 });
|
|
45460
45528
|
const _c1 = () => ["value"];
|
|
45461
|
-
function
|
|
45462
|
-
i0.ɵɵelementStart(0, "div",
|
|
45529
|
+
function SearchResultComponent_table_3_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
45530
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "span", 14);
|
|
45463
45531
|
i0.ɵɵtext(2, "!");
|
|
45464
45532
|
i0.ɵɵelementEnd();
|
|
45465
|
-
i0.ɵɵelementStart(3, "strong",
|
|
45533
|
+
i0.ɵɵelementStart(3, "strong", 15)(4, "span", 16);
|
|
45466
45534
|
i0.ɵɵtext(5);
|
|
45467
45535
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
45468
45536
|
i0.ɵɵelementEnd();
|
|
@@ -45478,54 +45546,49 @@ function SearchResultComponent_table_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
45478
45546
|
i0.ɵɵadvance(2);
|
|
45479
45547
|
i0.ɵɵtextInterpolate3(" ", i0.ɵɵpipeBind1(8, 6, "The total size of the result set is"), " ", i0.ɵɵpipeBind1(9, 8, ctx_r0.paginationMetadata.totalResultsCount), ". ", i0.ɵɵpipeBind1(10, 10, "Only the first 10,000 records are available for display."), " ");
|
|
45480
45548
|
} }
|
|
45481
|
-
function
|
|
45482
|
-
i0.ɵɵelementStart(0, "div",
|
|
45483
|
-
i0.ɵɵ
|
|
45484
|
-
i0.ɵɵpipe(
|
|
45485
|
-
i0.ɵɵelementStart(
|
|
45486
|
-
i0.ɵɵtext(
|
|
45487
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
45488
|
-
i0.ɵɵelementStart(6, "span", 18);
|
|
45489
|
-
i0.ɵɵtext(7);
|
|
45549
|
+
function SearchResultComponent_table_3_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
45550
|
+
i0.ɵɵelementStart(0, "div", 17)(1, "span", 18);
|
|
45551
|
+
i0.ɵɵtext(2);
|
|
45552
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
45553
|
+
i0.ɵɵelementStart(4, "span", 19);
|
|
45554
|
+
i0.ɵɵtext(5);
|
|
45490
45555
|
i0.ɵɵelementEnd();
|
|
45491
|
-
i0.ɵɵtext(
|
|
45492
|
-
i0.ɵɵpipe(
|
|
45493
|
-
i0.ɵɵelementStart(
|
|
45494
|
-
i0.ɵɵtext(
|
|
45556
|
+
i0.ɵɵtext(6);
|
|
45557
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
45558
|
+
i0.ɵɵelementStart(8, "span", 19);
|
|
45559
|
+
i0.ɵɵtext(9);
|
|
45495
45560
|
i0.ɵɵelementEnd();
|
|
45496
|
-
i0.ɵɵtext(
|
|
45497
|
-
i0.ɵɵpipe(
|
|
45498
|
-
i0.ɵɵelementStart(
|
|
45499
|
-
i0.ɵɵtext(
|
|
45561
|
+
i0.ɵɵtext(10);
|
|
45562
|
+
i0.ɵɵpipe(11, "rpxTranslate");
|
|
45563
|
+
i0.ɵɵelementStart(12, "span", 19);
|
|
45564
|
+
i0.ɵɵtext(13);
|
|
45500
45565
|
i0.ɵɵelementEnd();
|
|
45501
|
-
i0.ɵɵtext(
|
|
45502
|
-
i0.ɵɵpipe(
|
|
45566
|
+
i0.ɵɵtext(14);
|
|
45567
|
+
i0.ɵɵpipe(15, "rpxTranslate");
|
|
45503
45568
|
i0.ɵɵelementEnd()();
|
|
45504
45569
|
} if (rf & 2) {
|
|
45505
45570
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
45506
|
-
i0.ɵɵadvance();
|
|
45507
|
-
i0.ɵɵ
|
|
45508
|
-
i0.ɵɵadvance(3);
|
|
45509
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
|
|
45571
|
+
i0.ɵɵadvance(2);
|
|
45572
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 7, "Showing"), " ");
|
|
45510
45573
|
i0.ɵɵadvance(3);
|
|
45511
45574
|
i0.ɵɵtextInterpolate(ctx_r0.getFirstResult());
|
|
45512
45575
|
i0.ɵɵadvance();
|
|
45513
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
45576
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 9, "to"), " ");
|
|
45514
45577
|
i0.ɵɵadvance(3);
|
|
45515
45578
|
i0.ɵɵtextInterpolate(ctx_r0.getLastResult());
|
|
45516
45579
|
i0.ɵɵadvance();
|
|
45517
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
45580
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 11, "of"), " ");
|
|
45518
45581
|
i0.ɵɵadvance(3);
|
|
45519
45582
|
i0.ɵɵtextInterpolate(ctx_r0.getTotalResults());
|
|
45520
45583
|
i0.ɵɵadvance();
|
|
45521
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
45584
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 13, "results"));
|
|
45522
45585
|
} }
|
|
45523
|
-
function
|
|
45586
|
+
function SearchResultComponent_table_3_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
45524
45587
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
45525
|
-
i0.ɵɵelementStart(0, "div",
|
|
45588
|
+
i0.ɵɵelementStart(0, "div", 20);
|
|
45526
45589
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
45527
|
-
i0.ɵɵelementStart(2, "span")(3, "a",
|
|
45528
|
-
i0.ɵɵlistener("click", function
|
|
45590
|
+
i0.ɵɵelementStart(2, "span")(3, "a", 21);
|
|
45591
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_3_div_7_Template_a_click_3_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); ctx_r0.clearSelection(); return i0.ɵɵresetView($event.preventDefault()); });
|
|
45529
45592
|
i0.ɵɵtext(4);
|
|
45530
45593
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
45531
45594
|
i0.ɵɵelementEnd()()();
|
|
@@ -45534,12 +45597,12 @@ function SearchResultComponent_table_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
45534
45597
|
i0.ɵɵadvance(4);
|
|
45535
45598
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, "Reset case selection"));
|
|
45536
45599
|
} }
|
|
45537
|
-
function
|
|
45600
|
+
function SearchResultComponent_table_3_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
45538
45601
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
45539
|
-
i0.ɵɵelementStart(0, "td",
|
|
45540
|
-
i0.ɵɵlistener("change", function
|
|
45602
|
+
i0.ɵɵelementStart(0, "td", 22)(1, "div", 23)(2, "input", 24);
|
|
45603
|
+
i0.ɵɵlistener("change", function SearchResultComponent_table_3_td_10_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.selectAll()); });
|
|
45541
45604
|
i0.ɵɵelementEnd();
|
|
45542
|
-
i0.ɵɵelement(3, "label",
|
|
45605
|
+
i0.ɵɵelement(3, "label", 25);
|
|
45543
45606
|
i0.ɵɵelementEnd()();
|
|
45544
45607
|
} if (rf & 2) {
|
|
45545
45608
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -45548,11 +45611,11 @@ function SearchResultComponent_table_0_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
45548
45611
|
i0.ɵɵadvance();
|
|
45549
45612
|
i0.ɵɵattribute("aria-labelledby", "select-all");
|
|
45550
45613
|
} }
|
|
45551
|
-
function
|
|
45614
|
+
function SearchResultComponent_table_3_th_11_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
45552
45615
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
45553
|
-
i0.ɵɵelementStart(0, "div",
|
|
45616
|
+
i0.ɵɵelementStart(0, "div", 29)(1, "a", 30);
|
|
45554
45617
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
45555
|
-
i0.ɵɵlistener("click", function
|
|
45618
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_3_th_11_div_5_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r6); const col_r5 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); ctx_r0.sort(col_r5); return i0.ɵɵresetView($event.preventDefault()); })("keyup.enter", function SearchResultComponent_table_3_th_11_div_5_Template_a_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r6); const col_r5 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); });
|
|
45556
45619
|
i0.ɵɵelementEnd()();
|
|
45557
45620
|
} if (rf & 2) {
|
|
45558
45621
|
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
@@ -45561,14 +45624,14 @@ function SearchResultComponent_table_0_th_11_div_5_Template(rf, ctx) { if (rf &
|
|
|
45561
45624
|
i0.ɵɵproperty("innerHTML", ctx_r0.sortWidget(col_r5), i0.ɵɵsanitizeHtml);
|
|
45562
45625
|
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 2, "Sort " + col_r5.label));
|
|
45563
45626
|
} }
|
|
45564
|
-
function
|
|
45627
|
+
function SearchResultComponent_table_3_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
45565
45628
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
45566
|
-
i0.ɵɵelementStart(0, "th",
|
|
45567
|
-
i0.ɵɵlistener("click", function
|
|
45629
|
+
i0.ɵɵelementStart(0, "th", 26)(1, "div")(2, "div", 27);
|
|
45630
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_3_th_11_Template_div_click_2_listener() { const col_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); })("keyup", function SearchResultComponent_table_3_th_11_Template_div_keyup_2_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.noop()); });
|
|
45568
45631
|
i0.ɵɵtext(3);
|
|
45569
45632
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
45570
45633
|
i0.ɵɵelementEnd();
|
|
45571
|
-
i0.ɵɵtemplate(5,
|
|
45634
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_3_th_11_div_5_Template, 3, 4, "div", 28);
|
|
45572
45635
|
i0.ɵɵelementEnd()();
|
|
45573
45636
|
} if (rf & 2) {
|
|
45574
45637
|
const col_r5 = ctx.$implicit;
|
|
@@ -45579,17 +45642,17 @@ function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
45579
45642
|
i0.ɵɵadvance(2);
|
|
45580
45643
|
i0.ɵɵproperty("ngIf", ctx_r0.comparator(col_r5));
|
|
45581
45644
|
} }
|
|
45582
|
-
function
|
|
45583
|
-
i0.ɵɵelementStart(0, "th",
|
|
45645
|
+
function SearchResultComponent_table_3_th_12_Template(rf, ctx) { if (rf & 1) {
|
|
45646
|
+
i0.ɵɵelementStart(0, "th", 31);
|
|
45584
45647
|
i0.ɵɵtext(1, "\u200B");
|
|
45585
45648
|
i0.ɵɵelementEnd();
|
|
45586
45649
|
} }
|
|
45587
|
-
function
|
|
45650
|
+
function SearchResultComponent_table_3_ng_container_14_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
45588
45651
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
45589
|
-
i0.ɵɵelementStart(0, "td",
|
|
45590
|
-
i0.ɵɵlistener("change", function
|
|
45652
|
+
i0.ɵɵelementStart(0, "td", 35)(1, "div", 23)(2, "input", 36);
|
|
45653
|
+
i0.ɵɵlistener("change", function SearchResultComponent_table_3_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r7); const result_r8 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.changeSelection(result_r8)); });
|
|
45591
45654
|
i0.ɵɵelementEnd();
|
|
45592
|
-
i0.ɵɵelement(3, "label",
|
|
45655
|
+
i0.ɵɵelement(3, "label", 37);
|
|
45593
45656
|
i0.ɵɵelementEnd()();
|
|
45594
45657
|
} if (rf & 2) {
|
|
45595
45658
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -45600,24 +45663,24 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
|
|
|
45600
45663
|
i0.ɵɵproperty("for", i0.ɵɵinterpolate1("select-", result_r8.case_id));
|
|
45601
45664
|
i0.ɵɵattribute("aria-labelledby", "select-" + result_r8.case_id);
|
|
45602
45665
|
} }
|
|
45603
|
-
function
|
|
45604
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
45666
|
+
function SearchResultComponent_table_3_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
|
|
45667
|
+
i0.ɵɵelement(0, "ccd-field-read", 45);
|
|
45605
45668
|
} if (rf & 2) {
|
|
45606
45669
|
const col_r9 = i0.ɵɵnextContext(3).$implicit;
|
|
45607
45670
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
45608
45671
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
45609
45672
|
i0.ɵɵproperty("caseField", ctx_r0.getColumnsWithPrefix(result_r8.columns[col_r9.case_field_id], result_r8))("contextFields", result_r8.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(3, _c1));
|
|
45610
45673
|
} }
|
|
45611
|
-
function
|
|
45674
|
+
function SearchResultComponent_table_3_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
45612
45675
|
i0.ɵɵtext(0);
|
|
45613
45676
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
45614
45677
|
} if (rf & 2) {
|
|
45615
45678
|
const result_r8 = i0.ɵɵnextContext(4).$implicit;
|
|
45616
45679
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r8.case_id));
|
|
45617
45680
|
} }
|
|
45618
|
-
function
|
|
45619
|
-
i0.ɵɵelementContainerStart(0,
|
|
45620
|
-
i0.ɵɵtemplate(1,
|
|
45681
|
+
function SearchResultComponent_table_3_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
45682
|
+
i0.ɵɵelementContainerStart(0, 43);
|
|
45683
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_3_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 44)(2, SearchResultComponent_table_3_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
45621
45684
|
i0.ɵɵelementContainerEnd();
|
|
45622
45685
|
} if (rf & 2) {
|
|
45623
45686
|
const case_reference_r10 = i0.ɵɵreference(3);
|
|
@@ -45627,10 +45690,10 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
45627
45690
|
i0.ɵɵadvance();
|
|
45628
45691
|
i0.ɵɵproperty("ngIf", ctx_r0.draftPrefixOrGet(col_r9, result_r8))("ngIfElse", case_reference_r10);
|
|
45629
45692
|
} }
|
|
45630
|
-
function
|
|
45631
|
-
i0.ɵɵelementStart(0, "a",
|
|
45693
|
+
function SearchResultComponent_table_3_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
45694
|
+
i0.ɵɵelementStart(0, "a", 41);
|
|
45632
45695
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
45633
|
-
i0.ɵɵtemplate(2,
|
|
45696
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_3_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 42);
|
|
45634
45697
|
i0.ɵɵelementEnd();
|
|
45635
45698
|
} if (rf & 2) {
|
|
45636
45699
|
const result_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -45640,9 +45703,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf
|
|
|
45640
45703
|
i0.ɵɵadvance(2);
|
|
45641
45704
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideRows);
|
|
45642
45705
|
} }
|
|
45643
|
-
function
|
|
45644
|
-
i0.ɵɵelementStart(0, "div",
|
|
45645
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
45706
|
+
function SearchResultComponent_table_3_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
45707
|
+
i0.ɵɵelementStart(0, "div", 43);
|
|
45708
|
+
i0.ɵɵelement(1, "ccd-field-read", 45);
|
|
45646
45709
|
i0.ɵɵelementEnd();
|
|
45647
45710
|
} if (rf & 2) {
|
|
45648
45711
|
const col_r9 = i0.ɵɵnextContext().$implicit;
|
|
@@ -45652,9 +45715,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(
|
|
|
45652
45715
|
i0.ɵɵadvance();
|
|
45653
45716
|
i0.ɵɵproperty("caseField", result_r8.columns[col_r9.case_field_id])("contextFields", result_r8.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c1));
|
|
45654
45717
|
} }
|
|
45655
|
-
function
|
|
45656
|
-
i0.ɵɵelementStart(0, "td",
|
|
45657
|
-
i0.ɵɵtemplate(1,
|
|
45718
|
+
function SearchResultComponent_table_3_ng_container_14_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
45719
|
+
i0.ɵɵelementStart(0, "td", 38);
|
|
45720
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_3_ng_container_14_tr_1_td_2_a_1_Template, 3, 6, "a", 39)(2, SearchResultComponent_table_3_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 40);
|
|
45658
45721
|
i0.ɵɵelementEnd();
|
|
45659
45722
|
} if (rf & 2) {
|
|
45660
45723
|
const colIndex_r11 = ctx.index;
|
|
@@ -45663,9 +45726,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ct
|
|
|
45663
45726
|
i0.ɵɵadvance();
|
|
45664
45727
|
i0.ɵɵproperty("ngIf", colIndex_r11 != 0);
|
|
45665
45728
|
} }
|
|
45666
|
-
function
|
|
45729
|
+
function SearchResultComponent_table_3_ng_container_14_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
45667
45730
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
45668
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
45731
|
+
i0.ɵɵelement(2, "ccd-activity", 46);
|
|
45669
45732
|
i0.ɵɵelementEnd()();
|
|
45670
45733
|
} if (rf & 2) {
|
|
45671
45734
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -45675,9 +45738,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ct
|
|
|
45675
45738
|
i0.ɵɵadvance();
|
|
45676
45739
|
i0.ɵɵproperty("caseId", result_r8.case_id)("displayMode", ctx_r0.ICON);
|
|
45677
45740
|
} }
|
|
45678
|
-
function
|
|
45741
|
+
function SearchResultComponent_table_3_ng_container_14_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
45679
45742
|
i0.ɵɵelementStart(0, "tr");
|
|
45680
|
-
i0.ɵɵtemplate(1,
|
|
45743
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_3_ng_container_14_tr_1_td_1_Template, 4, 9, "td", 33)(2, SearchResultComponent_table_3_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 34)(3, SearchResultComponent_table_3_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 2);
|
|
45681
45744
|
i0.ɵɵelementEnd();
|
|
45682
45745
|
} if (rf & 2) {
|
|
45683
45746
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -45688,9 +45751,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) {
|
|
|
45688
45751
|
i0.ɵɵadvance();
|
|
45689
45752
|
i0.ɵɵproperty("ngIf", ctx_r0.activityEnabled());
|
|
45690
45753
|
} }
|
|
45691
|
-
function
|
|
45754
|
+
function SearchResultComponent_table_3_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
45692
45755
|
i0.ɵɵelementContainerStart(0);
|
|
45693
|
-
i0.ɵɵtemplate(1,
|
|
45756
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_3_ng_container_14_tr_1_Template, 4, 3, "tr", 32);
|
|
45694
45757
|
i0.ɵɵpipe(2, "paginate");
|
|
45695
45758
|
i0.ɵɵelementContainerEnd();
|
|
45696
45759
|
} if (rf & 2) {
|
|
@@ -45698,12 +45761,12 @@ function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (r
|
|
|
45698
45761
|
i0.ɵɵadvance();
|
|
45699
45762
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(2, 1, ctx_r0.resultView.results, i0.ɵɵpureFunction3(4, _c0, ctx_r0.paginationPageSize, ctx_r0.selected.page, ctx_r0.resultTotal)));
|
|
45700
45763
|
} }
|
|
45701
|
-
function
|
|
45764
|
+
function SearchResultComponent_table_3_ng_container_15_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
45702
45765
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
45703
|
-
i0.ɵɵelementStart(0, "td",
|
|
45704
|
-
i0.ɵɵlistener("change", function
|
|
45766
|
+
i0.ɵɵelementStart(0, "td", 35)(1, "div", 23)(2, "input", 47);
|
|
45767
|
+
i0.ɵɵlistener("change", function SearchResultComponent_table_3_ng_container_15_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r12); const result_r13 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.changeSelection(result_r13)); })("keyup", function SearchResultComponent_table_3_ng_container_15_tr_1_td_1_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r12); const result_r13 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.onKeyUp($event, result_r13)); });
|
|
45705
45768
|
i0.ɵɵelementEnd();
|
|
45706
|
-
i0.ɵɵelement(3, "label",
|
|
45769
|
+
i0.ɵɵelement(3, "label", 37);
|
|
45707
45770
|
i0.ɵɵelementEnd()();
|
|
45708
45771
|
} if (rf & 2) {
|
|
45709
45772
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -45714,24 +45777,24 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ct
|
|
|
45714
45777
|
i0.ɵɵproperty("for", i0.ɵɵinterpolate1("select-", result_r13.case_id));
|
|
45715
45778
|
i0.ɵɵattribute("aria-labelledby", "select-" + result_r13.case_id);
|
|
45716
45779
|
} }
|
|
45717
|
-
function
|
|
45718
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
45780
|
+
function SearchResultComponent_table_3_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
|
|
45781
|
+
i0.ɵɵelement(0, "ccd-field-read", 45);
|
|
45719
45782
|
} if (rf & 2) {
|
|
45720
45783
|
const col_r14 = i0.ɵɵnextContext(3).$implicit;
|
|
45721
45784
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
45722
45785
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
45723
45786
|
i0.ɵɵproperty("caseField", ctx_r0.getColumnsWithPrefix(result_r13.columns[col_r14.case_field_id], result_r13))("contextFields", result_r13.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(3, _c1));
|
|
45724
45787
|
} }
|
|
45725
|
-
function
|
|
45788
|
+
function SearchResultComponent_table_3_ng_container_15_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
45726
45789
|
i0.ɵɵtext(0);
|
|
45727
45790
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
45728
45791
|
} if (rf & 2) {
|
|
45729
45792
|
const result_r13 = i0.ɵɵnextContext(4).$implicit;
|
|
45730
45793
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r13.case_id));
|
|
45731
45794
|
} }
|
|
45732
|
-
function
|
|
45733
|
-
i0.ɵɵelementContainerStart(0,
|
|
45734
|
-
i0.ɵɵtemplate(1,
|
|
45795
|
+
function SearchResultComponent_table_3_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
45796
|
+
i0.ɵɵelementContainerStart(0, 43);
|
|
45797
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_3_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 44)(2, SearchResultComponent_table_3_ng_container_15_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
45735
45798
|
i0.ɵɵelementContainerEnd();
|
|
45736
45799
|
} if (rf & 2) {
|
|
45737
45800
|
const case_reference_r15 = i0.ɵɵreference(3);
|
|
@@ -45741,10 +45804,10 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
|
|
|
45741
45804
|
i0.ɵɵadvance();
|
|
45742
45805
|
i0.ɵɵproperty("ngIf", ctx_r0.draftPrefixOrGet(col_r14, result_r13))("ngIfElse", case_reference_r15);
|
|
45743
45806
|
} }
|
|
45744
|
-
function
|
|
45745
|
-
i0.ɵɵelementStart(0, "a",
|
|
45807
|
+
function SearchResultComponent_table_3_ng_container_15_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
45808
|
+
i0.ɵɵelementStart(0, "a", 41);
|
|
45746
45809
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
45747
|
-
i0.ɵɵtemplate(2,
|
|
45810
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_3_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 42);
|
|
45748
45811
|
i0.ɵɵelementEnd();
|
|
45749
45812
|
} if (rf & 2) {
|
|
45750
45813
|
const result_r13 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -45754,9 +45817,9 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf
|
|
|
45754
45817
|
i0.ɵɵadvance(2);
|
|
45755
45818
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideRows);
|
|
45756
45819
|
} }
|
|
45757
|
-
function
|
|
45758
|
-
i0.ɵɵelementStart(0, "div",
|
|
45759
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
45820
|
+
function SearchResultComponent_table_3_ng_container_15_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
45821
|
+
i0.ɵɵelementStart(0, "div", 43);
|
|
45822
|
+
i0.ɵɵelement(1, "ccd-field-read", 45);
|
|
45760
45823
|
i0.ɵɵelementEnd();
|
|
45761
45824
|
} if (rf & 2) {
|
|
45762
45825
|
const col_r14 = i0.ɵɵnextContext().$implicit;
|
|
@@ -45766,9 +45829,9 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(
|
|
|
45766
45829
|
i0.ɵɵadvance();
|
|
45767
45830
|
i0.ɵɵproperty("caseField", result_r13.columns[col_r14.case_field_id])("contextFields", result_r13.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c1));
|
|
45768
45831
|
} }
|
|
45769
|
-
function
|
|
45770
|
-
i0.ɵɵelementStart(0, "td",
|
|
45771
|
-
i0.ɵɵtemplate(1,
|
|
45832
|
+
function SearchResultComponent_table_3_ng_container_15_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
45833
|
+
i0.ɵɵelementStart(0, "td", 38);
|
|
45834
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_3_ng_container_15_tr_1_td_2_a_1_Template, 3, 6, "a", 39)(2, SearchResultComponent_table_3_ng_container_15_tr_1_td_2_div_2_Template, 2, 6, "div", 40);
|
|
45772
45835
|
i0.ɵɵelementEnd();
|
|
45773
45836
|
} if (rf & 2) {
|
|
45774
45837
|
const colIndex_r16 = ctx.index;
|
|
@@ -45777,9 +45840,9 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ct
|
|
|
45777
45840
|
i0.ɵɵadvance();
|
|
45778
45841
|
i0.ɵɵproperty("ngIf", colIndex_r16 != 0);
|
|
45779
45842
|
} }
|
|
45780
|
-
function
|
|
45843
|
+
function SearchResultComponent_table_3_ng_container_15_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
45781
45844
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
45782
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
45845
|
+
i0.ɵɵelement(2, "ccd-activity", 46);
|
|
45783
45846
|
i0.ɵɵelementEnd()();
|
|
45784
45847
|
} if (rf & 2) {
|
|
45785
45848
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -45789,9 +45852,9 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ct
|
|
|
45789
45852
|
i0.ɵɵadvance();
|
|
45790
45853
|
i0.ɵɵproperty("caseId", result_r13.case_id)("displayMode", ctx_r0.ICON);
|
|
45791
45854
|
} }
|
|
45792
|
-
function
|
|
45855
|
+
function SearchResultComponent_table_3_ng_container_15_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
45793
45856
|
i0.ɵɵelementStart(0, "tr");
|
|
45794
|
-
i0.ɵɵtemplate(1,
|
|
45857
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_3_ng_container_15_tr_1_td_1_Template, 4, 9, "td", 33)(2, SearchResultComponent_table_3_ng_container_15_tr_1_td_2_Template, 3, 2, "td", 34)(3, SearchResultComponent_table_3_ng_container_15_tr_1_td_3_Template, 3, 4, "td", 2);
|
|
45795
45858
|
i0.ɵɵelementEnd();
|
|
45796
45859
|
} if (rf & 2) {
|
|
45797
45860
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -45802,9 +45865,9 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) {
|
|
|
45802
45865
|
i0.ɵɵadvance();
|
|
45803
45866
|
i0.ɵɵproperty("ngIf", ctx_r0.activityEnabled());
|
|
45804
45867
|
} }
|
|
45805
|
-
function
|
|
45868
|
+
function SearchResultComponent_table_3_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
45806
45869
|
i0.ɵɵelementContainerStart(0);
|
|
45807
|
-
i0.ɵɵtemplate(1,
|
|
45870
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_3_ng_container_15_tr_1_Template, 4, 3, "tr", 32);
|
|
45808
45871
|
i0.ɵɵpipe(2, "ccdSortSearchResult");
|
|
45809
45872
|
i0.ɵɵpipe(3, "paginate");
|
|
45810
45873
|
i0.ɵɵelementContainerEnd();
|
|
@@ -45813,18 +45876,18 @@ function SearchResultComponent_table_0_ng_container_15_Template(rf, ctx) { if (r
|
|
|
45813
45876
|
i0.ɵɵadvance();
|
|
45814
45877
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(3, 4, i0.ɵɵpipeBind2(2, 1, ctx_r0.resultView.results, ctx_r0.sortParameters), i0.ɵɵpureFunction3(7, _c0, ctx_r0.paginationPageSize, ctx_r0.selected.page, ctx_r0.resultTotal)));
|
|
45815
45878
|
} }
|
|
45816
|
-
function
|
|
45817
|
-
i0.ɵɵelementStart(0, "table")(1, "caption")(2, "h2",
|
|
45879
|
+
function SearchResultComponent_table_3_Template(rf, ctx) { if (rf & 1) {
|
|
45880
|
+
i0.ɵɵelementStart(0, "table")(1, "caption")(2, "h2", 5);
|
|
45818
45881
|
i0.ɵɵtext(3);
|
|
45819
45882
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
45820
45883
|
i0.ɵɵelementEnd();
|
|
45821
|
-
i0.ɵɵtemplate(5,
|
|
45884
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_3_div_5_Template, 11, 12, "div", 6)(6, SearchResultComponent_table_3_div_6_Template, 16, 15, "div", 7)(7, SearchResultComponent_table_3_div_7_Template, 6, 6, "div", 8);
|
|
45822
45885
|
i0.ɵɵelementEnd();
|
|
45823
|
-
i0.ɵɵelementStart(8, "thead")(9, "tr",
|
|
45824
|
-
i0.ɵɵtemplate(10,
|
|
45886
|
+
i0.ɵɵelementStart(8, "thead")(9, "tr", 9);
|
|
45887
|
+
i0.ɵɵtemplate(10, SearchResultComponent_table_3_td_10_Template, 4, 3, "td", 10)(11, SearchResultComponent_table_3_th_11_Template, 6, 5, "th", 11)(12, SearchResultComponent_table_3_th_12_Template, 2, 0, "th", 12);
|
|
45825
45888
|
i0.ɵɵelementEnd()();
|
|
45826
45889
|
i0.ɵɵelementStart(13, "tbody");
|
|
45827
|
-
i0.ɵɵtemplate(14,
|
|
45890
|
+
i0.ɵɵtemplate(14, SearchResultComponent_table_3_ng_container_14_Template, 3, 8, "ng-container", 2)(15, SearchResultComponent_table_3_ng_container_15_Template, 4, 11, "ng-container", 2);
|
|
45828
45891
|
i0.ɵɵelementEnd()();
|
|
45829
45892
|
} if (rf & 2) {
|
|
45830
45893
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -45847,24 +45910,15 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
45847
45910
|
i0.ɵɵadvance();
|
|
45848
45911
|
i0.ɵɵproperty("ngIf", !ctx_r0.consumerSortingEnabled);
|
|
45849
45912
|
} }
|
|
45850
|
-
function
|
|
45913
|
+
function SearchResultComponent_ccd_pagination_4_Template(rf, ctx) { if (rf & 1) {
|
|
45851
45914
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
45852
|
-
i0.ɵɵelementStart(0, "ccd-pagination",
|
|
45853
|
-
i0.ɵɵlistener("pageChange", function
|
|
45915
|
+
i0.ɵɵelementStart(0, "ccd-pagination", 48);
|
|
45916
|
+
i0.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_4_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.goToPage($event)); });
|
|
45854
45917
|
i0.ɵɵelementEnd();
|
|
45855
45918
|
} if (rf & 2) {
|
|
45856
45919
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
45857
45920
|
i0.ɵɵproperty("visibilityLabel", ctx_r0.hideRows ? "hidden" : "visible")("autoHide", true)("maxSize", 8)("screenReaderPaginationLabel", "Pagination")("screenReaderPageLabel", ctx_r0.page)("screenReaderCurrentLabel", "You're on page");
|
|
45858
45921
|
} }
|
|
45859
|
-
function SearchResultComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
45860
|
-
i0.ɵɵelementStart(0, "div", 48);
|
|
45861
|
-
i0.ɵɵtext(1);
|
|
45862
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
45863
|
-
i0.ɵɵelementEnd();
|
|
45864
|
-
} if (rf & 2) {
|
|
45865
|
-
i0.ɵɵadvance();
|
|
45866
|
-
i0.ɵɵtextInterpolate1("\n", i0.ɵɵpipeBind1(2, 1, "No cases found. Try using different filters."), "\n");
|
|
45867
|
-
} }
|
|
45868
45922
|
class SearchResultComponent {
|
|
45869
45923
|
activityService;
|
|
45870
45924
|
caseReferencePipe;
|
|
@@ -46209,19 +46263,32 @@ class SearchResultComponent {
|
|
|
46209
46263
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
46210
46264
|
noop() { }
|
|
46211
46265
|
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)); };
|
|
46212
|
-
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:
|
|
46213
|
-
i0.ɵɵ
|
|
46266
|
+
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: 8, vars: 10, consts: [["case_reference", ""], ["role", "status", "aria-live", "polite", "aria-atomic", "true", 1, "govuk-visually-hidden"], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["role", "status", "aria-live", "polite", "aria-atomic", "true"], ["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-visually-hidden"], [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"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
46267
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
46268
|
+
i0.ɵɵtext(1);
|
|
46269
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
46270
|
+
i0.ɵɵelementEnd();
|
|
46271
|
+
i0.ɵɵtemplate(3, SearchResultComponent_table_3_Template, 16, 11, "table", 2)(4, SearchResultComponent_ccd_pagination_4_Template, 1, 6, "ccd-pagination", 3);
|
|
46272
|
+
i0.ɵɵelementStart(5, "div", 4);
|
|
46273
|
+
i0.ɵɵtext(6);
|
|
46274
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
46275
|
+
i0.ɵɵelementEnd();
|
|
46214
46276
|
} if (rf & 2) {
|
|
46277
|
+
i0.ɵɵadvance();
|
|
46278
|
+
i0.ɵɵtextInterpolate1(" ", ctx.hasResults() || ctx.hasDrafts() ? ctx.getTotalResults() + " " + i0.ɵɵpipeBind1(2, 6, "results have been found") : "", "\n");
|
|
46279
|
+
i0.ɵɵadvance(2);
|
|
46215
46280
|
i0.ɵɵproperty("ngIf", ctx.hasResults() || ctx.hasDrafts());
|
|
46216
46281
|
i0.ɵɵadvance();
|
|
46217
46282
|
i0.ɵɵproperty("ngIf", ctx.hasResults());
|
|
46218
46283
|
i0.ɵɵadvance();
|
|
46219
|
-
i0.ɵɵ
|
|
46284
|
+
i0.ɵɵclassProp("notification", !(ctx.hasResults() || ctx.hasDrafts()));
|
|
46285
|
+
i0.ɵɵadvance();
|
|
46286
|
+
i0.ɵɵtextInterpolate1("\n", !(ctx.hasResults() || ctx.hasDrafts()) ? i0.ɵɵpipeBind1(7, 8, "No cases found. Try using different filters.") : "", "\n");
|
|
46220
46287
|
} }, styles: [".govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:top}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:16px;word-wrap:break-word}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:left}table[_ngcontent-%COMP%] .caseid-col[_ngcontent-%COMP%]{white-space:nowrap}.notification[_ngcontent-%COMP%]{text-align:center;padding:30px 0;margin-top:75px}a[_ngcontent-%COMP%]:hover{color:#005ea5}.search-result-reset-link[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}.search-result-column-header[_ngcontent-%COMP%]{width:unset;table-layout:normal}.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:table-cell;width:auto}@media screen and (max-width:379px){.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;float:right}}.search-result-column-label[_ngcontent-%COMP%]{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort[_ngcontent-%COMP%]{font-size:16px}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium[_ngcontent-%COMP%]{margin-top:-20px}.govuk-table__checkbox[_ngcontent-%COMP%]{vertical-align:middle;padding-left:3px}#search-result-heading__text[_ngcontent-%COMP%]:focus{outline:none}"] });
|
|
46221
46288
|
}
|
|
46222
46289
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
46223
46290
|
type: Component,
|
|
46224
|
-
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-visually-hidden\">{{'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\" role=\"status\">\n{{'No cases found. Try using different filters.' | rpxTranslate}}\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}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"] }]
|
|
46291
|
+
args: [{ selector: 'ccd-search-result', standalone: false, template: "<div class=\"govuk-visually-hidden\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">\n {{(hasResults() || hasDrafts()) ? (getTotalResults() + ' ' + ('results have been found' | rpxTranslate)) : ''}}\n</div>\n\n<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-visually-hidden\">{{'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 <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 [class.notification]=\"!(hasResults() || hasDrafts())\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">\n{{!(hasResults() || hasDrafts()) ? ('No cases found. Try using different filters.' | rpxTranslate) : ''}}\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}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"] }]
|
|
46225
46292
|
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
|
|
46226
46293
|
type: Input
|
|
46227
46294
|
}], jurisdiction: [{
|