@hmcts/ccd-case-ui-toolkit 7.3.43 → 7.3.44-4300
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.
|
@@ -58,7 +58,7 @@ import * as i10 from '@angular/material/legacy-tabs';
|
|
|
58
58
|
import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
|
|
59
59
|
import { compressToUTF16, decompressFromUTF16 } from 'lz-string';
|
|
60
60
|
|
|
61
|
-
const _c0$
|
|
61
|
+
const _c0$18 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
62
62
|
const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
63
63
|
function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
64
64
|
i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
|
|
@@ -136,7 +136,7 @@ class FooterComponent {
|
|
|
136
136
|
workhours;
|
|
137
137
|
static ɵfac = function FooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FooterComponent)(); };
|
|
138
138
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, standalone: false, ngContentSelectors: _c1$u, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
139
|
-
i0.ɵɵprojectionDef(_c0$
|
|
139
|
+
i0.ɵɵprojectionDef(_c0$18);
|
|
140
140
|
i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
|
|
141
141
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
|
|
142
142
|
i0.ɵɵelementEnd()();
|
|
@@ -163,7 +163,7 @@ class FooterComponent {
|
|
|
163
163
|
}] }); })();
|
|
164
164
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 9 }); })();
|
|
165
165
|
|
|
166
|
-
const _c0$
|
|
166
|
+
const _c0$17 = [[["", "headerNavigation", ""]]];
|
|
167
167
|
const _c1$t = ["[headerNavigation]"];
|
|
168
168
|
function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
169
169
|
i0.ɵɵelementStart(0, "div")(1, "a", 12);
|
|
@@ -206,7 +206,7 @@ class HeaderBarComponent {
|
|
|
206
206
|
}
|
|
207
207
|
static ɵfac = function HeaderBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HeaderBarComponent)(); };
|
|
208
208
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, standalone: false, ngContentSelectors: _c1$t, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["type", "button", "id", "sign-out", 1, "govuk-js-link", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
209
|
-
i0.ɵɵprojectionDef(_c0$
|
|
209
|
+
i0.ɵɵprojectionDef(_c0$17);
|
|
210
210
|
i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
|
|
211
211
|
i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 4, 1, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
|
|
212
212
|
i0.ɵɵelementEnd();
|
|
@@ -256,13 +256,13 @@ class HeaderBarComponent {
|
|
|
256
256
|
}] }); })();
|
|
257
257
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 9 }); })();
|
|
258
258
|
|
|
259
|
-
const _c0$
|
|
259
|
+
const _c0$16 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
260
260
|
const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
261
261
|
class NavigationComponent {
|
|
262
262
|
isSolicitor;
|
|
263
263
|
static ɵfac = function NavigationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavigationComponent)(); };
|
|
264
264
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, standalone: false, ngContentSelectors: _c1$s, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
265
|
-
i0.ɵɵprojectionDef(_c0$
|
|
265
|
+
i0.ɵɵprojectionDef(_c0$16);
|
|
266
266
|
i0.ɵɵelementStart(0, "div")(1, "nav", 0);
|
|
267
267
|
i0.ɵɵprojection(2);
|
|
268
268
|
i0.ɵɵprojection(3, 1);
|
|
@@ -380,12 +380,12 @@ class HeadersModule {
|
|
|
380
380
|
}], null, null); })();
|
|
381
381
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
|
|
382
382
|
|
|
383
|
-
const _c0$
|
|
383
|
+
const _c0$15 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
384
384
|
const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
385
385
|
class BodyComponent {
|
|
386
386
|
static ɵfac = function BodyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BodyComponent)(); };
|
|
387
387
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], standalone: false, ngContentSelectors: _c1$r, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
388
|
-
i0.ɵɵprojectionDef(_c0$
|
|
388
|
+
i0.ɵɵprojectionDef(_c0$15);
|
|
389
389
|
i0.ɵɵelementStart(0, "div", 0);
|
|
390
390
|
i0.ɵɵprojection(1);
|
|
391
391
|
i0.ɵɵprojection(2, 1);
|
|
@@ -399,7 +399,7 @@ class BodyComponent {
|
|
|
399
399
|
}], null, null); })();
|
|
400
400
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BodyComponent, { className: "BodyComponent", filePath: "lib/components/body/body.component.ts", lineNumber: 10 }); })();
|
|
401
401
|
|
|
402
|
-
const _c0$
|
|
402
|
+
const _c0$14 = a0 => ({ "govuk-input--error": a0 });
|
|
403
403
|
function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
404
404
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
405
405
|
i0.ɵɵelementStart(0, "div", 15)(1, "span", 8);
|
|
@@ -416,7 +416,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
|
416
416
|
i0.ɵɵadvance();
|
|
417
417
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Hour"));
|
|
418
418
|
i0.ɵɵadvance(2);
|
|
419
|
-
i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
419
|
+
i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
|
|
420
420
|
i0.ɵɵattribute("aria-labelledby", "hour-label-" + ctx_r6.hourId());
|
|
421
421
|
} }
|
|
422
422
|
function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -435,7 +435,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
|
435
435
|
i0.ɵɵadvance();
|
|
436
436
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Minute"));
|
|
437
437
|
i0.ɵɵadvance(2);
|
|
438
|
-
i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
438
|
+
i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
|
|
439
439
|
i0.ɵɵattribute("aria-labelledby", "minute-label-" + ctx_r6.minuteId());
|
|
440
440
|
} }
|
|
441
441
|
function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -454,7 +454,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
|
454
454
|
i0.ɵɵadvance();
|
|
455
455
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Second"));
|
|
456
456
|
i0.ɵɵadvance(2);
|
|
457
|
-
i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
457
|
+
i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
|
|
458
458
|
i0.ɵɵattribute("aria-labelledby", "second-label-" + ctx_r6.secondId());
|
|
459
459
|
} }
|
|
460
460
|
class DateInputComponent {
|
|
@@ -690,21 +690,21 @@ class DateInputComponent {
|
|
|
690
690
|
i0.ɵɵadvance();
|
|
691
691
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 24, "Day"));
|
|
692
692
|
i0.ɵɵadvance(2);
|
|
693
|
-
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$
|
|
693
|
+
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$14, ctx.isInvalid));
|
|
694
694
|
i0.ɵɵattribute("aria-labelledby", "day-label-" + ctx.dayId());
|
|
695
695
|
i0.ɵɵadvance(3);
|
|
696
696
|
i0.ɵɵattribute("id", "month-label-" + ctx.monthId());
|
|
697
697
|
i0.ɵɵadvance();
|
|
698
698
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 26, "Month"));
|
|
699
699
|
i0.ɵɵadvance(2);
|
|
700
|
-
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$
|
|
700
|
+
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$14, ctx.isInvalid));
|
|
701
701
|
i0.ɵɵattribute("aria-labelledby", "month-label-" + ctx.monthId());
|
|
702
702
|
i0.ɵɵadvance(3);
|
|
703
703
|
i0.ɵɵattribute("id", "year-label-" + ctx.yearId());
|
|
704
704
|
i0.ɵɵadvance();
|
|
705
705
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 28, "Year"));
|
|
706
706
|
i0.ɵɵadvance(2);
|
|
707
|
-
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$
|
|
707
|
+
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$14, ctx.isInvalid));
|
|
708
708
|
i0.ɵɵattribute("aria-labelledby", "year-label-" + ctx.yearId());
|
|
709
709
|
i0.ɵɵadvance(2);
|
|
710
710
|
i0.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
@@ -741,7 +741,7 @@ class DateInputComponent {
|
|
|
741
741
|
}] }); })();
|
|
742
742
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateInputComponent, { className: "DateInputComponent", filePath: "lib/components/form/date-input/date-input.component.ts", lineNumber: 21 }); })();
|
|
743
743
|
|
|
744
|
-
const _c0$
|
|
744
|
+
const _c0$13 = ["*"];
|
|
745
745
|
function AlertComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
746
746
|
i0.ɵɵelementContainerStart(0);
|
|
747
747
|
i0.ɵɵnamespaceSVG();
|
|
@@ -791,7 +791,7 @@ class AlertComponent {
|
|
|
791
791
|
showIcon = true;
|
|
792
792
|
alertMessageType = AlertMessageType;
|
|
793
793
|
static ɵfac = function AlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertComponent)(); };
|
|
794
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, standalone: false, ngContentSelectors: _c0$
|
|
794
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, standalone: false, ngContentSelectors: _c0$13, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
795
795
|
i0.ɵɵprojectionDef();
|
|
796
796
|
i0.ɵɵelementStart(0, "div", 0);
|
|
797
797
|
i0.ɵɵelementContainerStart(1, 1);
|
|
@@ -993,11 +993,11 @@ class NotificationBannerComponent {
|
|
|
993
993
|
i0.ɵɵtemplate(0, NotificationBannerComponent_div_0_Template, 14, 10, "div", 0);
|
|
994
994
|
} if (rf & 2) {
|
|
995
995
|
i0.ɵɵproperty("ngIf", ctx.notificationBannerConfig);
|
|
996
|
-
} }, dependencies: [i5.NgClass, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase], styles: [".govuk-notification-banner[_ngcontent-%COMP%] .govuk-notification-banner__content[_ngcontent-%COMP%] .govuk-notification-banner__heading[_ngcontent-%COMP%]{margin-left:0;max-width:
|
|
996
|
+
} }, dependencies: [i5.NgClass, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase], styles: [".govuk-notification-banner[_ngcontent-%COMP%] .govuk-notification-banner__content[_ngcontent-%COMP%] .govuk-notification-banner__heading[_ngcontent-%COMP%]{margin-left:0;max-width:fit-content}.govuk-notification-banner[_ngcontent-%COMP%] .govuk-notification-banner__content[_ngcontent-%COMP%] .govuk-notification-banner__heading[_ngcontent-%COMP%] .govuk-notification-banner__link[_ngcontent-%COMP%]{margin-left:10px}.notification-banner-information[_ngcontent-%COMP%], .notification-banner-error[_ngcontent-%COMP%]{background-color:#d4351c;border:5px solid #d4351c}.notification-banner-warning[_ngcontent-%COMP%]{background-color:#912b88;border:5px solid #912b88}.notification-banner-success[_ngcontent-%COMP%]{background-color:#006435;border:5px solid #006435}"] });
|
|
997
997
|
}
|
|
998
998
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NotificationBannerComponent, [{
|
|
999
999
|
type: Component,
|
|
1000
|
-
args: [{ selector: 'ccd-notification-banner', standalone: false, template: "<div *ngIf=\"notificationBannerConfig\"\n class=\"govuk-notification-banner\"\n [ngClass]=\"notificationBannerConfig.headerClass\"\n role=\"region\"\n aria-labelledby=\"govuk-notification-banner-title\"\n data-module=\"govuk-notification-banner\">\n\n <div class=\"govuk-notification-banner__header\">\n <h2 class=\"govuk-notification-banner__title\" id=\"govuk-notification-banner-title\">\n {{notificationBannerConfig.headingText}}\n </h2>\n </div>\n <div class=\"govuk-notification-banner__content\">\n <p class=\"govuk-notification-banner__heading\">\n <ng-container [ngSwitch]=\"notificationBannerConfig.bannerType\">\n <ng-container *ngSwitchCase=\"notificationBannerType.WARNING\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.ERROR\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.SUCCESS\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path d=\"M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.INFORMATION\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n </ng-container>\n </ng-container>\n {{notificationBannerConfig.description}}\n <a *ngIf=\"notificationBannerConfig.showLink && !notificationBannerConfig.triggerOutputEvent\"\n class=\"govuk-notification-banner__link\"\n href=\"{{notificationBannerConfig.linkUrl}}\">{{notificationBannerConfig.linkText}}</a>\n <a *ngIf=\"notificationBannerConfig.showLink && notificationBannerConfig.triggerOutputEvent\"\n class=\"govuk-notification-banner__link\"\n href=\"#\"\n (click)=\"onLinkClick(notificationBannerConfig.triggerOutputEventText); $event.preventDefault()\">{{notificationBannerConfig.linkText}}</a>\n </p>\n </div>\n</div>\n", styles: [".govuk-notification-banner .govuk-notification-banner__content .govuk-notification-banner__heading{margin-left:0;max-width:
|
|
1000
|
+
args: [{ selector: 'ccd-notification-banner', standalone: false, template: "<div *ngIf=\"notificationBannerConfig\"\n class=\"govuk-notification-banner\"\n [ngClass]=\"notificationBannerConfig.headerClass\"\n role=\"region\"\n aria-labelledby=\"govuk-notification-banner-title\"\n data-module=\"govuk-notification-banner\">\n\n <div class=\"govuk-notification-banner__header\">\n <h2 class=\"govuk-notification-banner__title\" id=\"govuk-notification-banner-title\">\n {{notificationBannerConfig.headingText}}\n </h2>\n </div>\n <div class=\"govuk-notification-banner__content\">\n <p class=\"govuk-notification-banner__heading\">\n <ng-container [ngSwitch]=\"notificationBannerConfig.bannerType\">\n <ng-container *ngSwitchCase=\"notificationBannerType.WARNING\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.ERROR\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.SUCCESS\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path d=\"M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.INFORMATION\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n </ng-container>\n </ng-container>\n {{notificationBannerConfig.description}}\n <a *ngIf=\"notificationBannerConfig.showLink && !notificationBannerConfig.triggerOutputEvent\"\n class=\"govuk-notification-banner__link\"\n href=\"{{notificationBannerConfig.linkUrl}}\">{{notificationBannerConfig.linkText}}</a>\n <a *ngIf=\"notificationBannerConfig.showLink && notificationBannerConfig.triggerOutputEvent\"\n class=\"govuk-notification-banner__link\"\n href=\"#\"\n (click)=\"onLinkClick(notificationBannerConfig.triggerOutputEventText); $event.preventDefault()\">{{notificationBannerConfig.linkText}}</a>\n </p>\n </div>\n</div>\n", styles: [".govuk-notification-banner .govuk-notification-banner__content .govuk-notification-banner__heading{margin-left:0;max-width:fit-content}.govuk-notification-banner .govuk-notification-banner__content .govuk-notification-banner__heading .govuk-notification-banner__link{margin-left:10px}.notification-banner-information,.notification-banner-error{background-color:#d4351c;border:5px solid #d4351c}.notification-banner-warning{background-color:#912b88;border:5px solid #912b88}.notification-banner-success{background-color:#006435;border:5px solid #006435}\n"] }]
|
|
1001
1001
|
}], null, { notificationBannerConfig: [{
|
|
1002
1002
|
type: Input
|
|
1003
1003
|
}], linkClicked: [{
|
|
@@ -1005,14 +1005,14 @@ class NotificationBannerComponent {
|
|
|
1005
1005
|
}] }); })();
|
|
1006
1006
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 11 }); })();
|
|
1007
1007
|
|
|
1008
|
-
const _c0$
|
|
1008
|
+
const _c0$12 = ["*"];
|
|
1009
1009
|
const _c1$q = a0 => ({ "js-hidden": a0 });
|
|
1010
1010
|
class TabComponent {
|
|
1011
1011
|
id;
|
|
1012
1012
|
title;
|
|
1013
1013
|
selected;
|
|
1014
1014
|
static ɵfac = function TabComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TabComponent)(); };
|
|
1015
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, standalone: false, ngContentSelectors: _c0$
|
|
1015
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, standalone: false, ngContentSelectors: _c0$12, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1016
1016
|
i0.ɵɵprojectionDef();
|
|
1017
1017
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1018
1018
|
i0.ɵɵprojection(1);
|
|
@@ -1034,7 +1034,7 @@ class TabComponent {
|
|
|
1034
1034
|
}] }); })();
|
|
1035
1035
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 11 }); })();
|
|
1036
1036
|
|
|
1037
|
-
const _c0$
|
|
1037
|
+
const _c0$11 = ["tab"];
|
|
1038
1038
|
const _c1$p = ["*"];
|
|
1039
1039
|
const _c2$4 = () => ["."];
|
|
1040
1040
|
const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
|
|
@@ -1081,7 +1081,7 @@ class TabsComponent {
|
|
|
1081
1081
|
let _t;
|
|
1082
1082
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
|
|
1083
1083
|
} }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1084
|
-
i0.ɵɵviewQuery(_c0$
|
|
1084
|
+
i0.ɵɵviewQuery(_c0$11, 5);
|
|
1085
1085
|
} if (rf & 2) {
|
|
1086
1086
|
let _t;
|
|
1087
1087
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
@@ -1140,7 +1140,7 @@ class TabsModule {
|
|
|
1140
1140
|
RouterModule, i1.RpxTranslationModule], exports: [TabsComponent,
|
|
1141
1141
|
TabComponent] }); })();
|
|
1142
1142
|
|
|
1143
|
-
const _c0
|
|
1143
|
+
const _c0$10 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
|
|
1144
1144
|
class ActivityBannerComponent {
|
|
1145
1145
|
bannerType;
|
|
1146
1146
|
description;
|
|
@@ -1159,7 +1159,7 @@ class ActivityBannerComponent {
|
|
|
1159
1159
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
1160
1160
|
i0.ɵɵelementEnd()();
|
|
1161
1161
|
} if (rf & 2) {
|
|
1162
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0
|
|
1162
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$10, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1163
1163
|
i0.ɵɵadvance(2);
|
|
1164
1164
|
i0.ɵɵproperty("alt", i0.ɵɵinterpolate(i0.ɵɵpipeBind1(3, 6, ctx.description)))("src", i0.ɵɵinterpolate(ctx.imageLink), i0.ɵɵsanitizeUrl);
|
|
1165
1165
|
i0.ɵɵadvance(3);
|
|
@@ -12125,7 +12125,7 @@ class CaseEventCompletionComponent {
|
|
|
12125
12125
|
}] }); })();
|
|
12126
12126
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEventCompletionComponent, { className: "CaseEventCompletionComponent", filePath: "lib/shared/components/case-editor/case-event-completion/case-event-completion.component.ts", lineNumber: 21 }); })();
|
|
12127
12127
|
|
|
12128
|
-
const _c0
|
|
12128
|
+
const _c0$$ = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
|
|
12129
12129
|
class CaseEventCompletionTaskCancelledComponent {
|
|
12130
12130
|
context;
|
|
12131
12131
|
notifyEventCompletionCancelled = new EventEmitter();
|
|
@@ -12194,7 +12194,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
12194
12194
|
i0.ɵɵadvance(4);
|
|
12195
12195
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
|
|
12196
12196
|
i0.ɵɵadvance(2);
|
|
12197
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0
|
|
12197
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$$, ctx.jurisdiction, ctx.caseType, ctx.caseId));
|
|
12198
12198
|
i0.ɵɵadvance();
|
|
12199
12199
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
|
|
12200
12200
|
} }, dependencies: [i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
@@ -12209,7 +12209,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
12209
12209
|
}] }); })();
|
|
12210
12210
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEventCompletionTaskCancelledComponent, { className: "CaseEventCompletionTaskCancelledComponent", filePath: "lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.ts", lineNumber: 10 }); })();
|
|
12211
12211
|
|
|
12212
|
-
const _c0$
|
|
12212
|
+
const _c0$_ = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
|
|
12213
12213
|
function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
12214
12214
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
12215
12215
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
|
|
@@ -12262,7 +12262,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
|
|
|
12262
12262
|
i0.ɵɵadvance(4);
|
|
12263
12263
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
|
|
12264
12264
|
i0.ɵɵadvance(2);
|
|
12265
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$
|
|
12265
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$_, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
|
|
12266
12266
|
i0.ɵɵadvance();
|
|
12267
12267
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
|
|
12268
12268
|
} }
|
|
@@ -12668,7 +12668,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12668
12668
|
}] }); })();
|
|
12669
12669
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 22 }); })();
|
|
12670
12670
|
|
|
12671
|
-
const _c0$
|
|
12671
|
+
const _c0$Z = ["writeComplexFieldComponent"];
|
|
12672
12672
|
const _c1$o = a0 => ({ "form-group-error": a0 });
|
|
12673
12673
|
const _c2$3 = a0 => ({ "govuk-input--error": a0 });
|
|
12674
12674
|
function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -12934,7 +12934,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12934
12934
|
}
|
|
12935
12935
|
static ɵfac = function WriteAddressFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
12936
12936
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12937
|
-
i0.ɵɵviewQuery(_c0$
|
|
12937
|
+
i0.ɵɵviewQuery(_c0$Z, 5);
|
|
12938
12938
|
i0.ɵɵviewQuery(FocusElementDirective, 5);
|
|
12939
12939
|
} if (rf & 2) {
|
|
12940
12940
|
let _t;
|
|
@@ -12997,7 +12997,7 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
|
12997
12997
|
type: Input
|
|
12998
12998
|
}] }); })();
|
|
12999
12999
|
|
|
13000
|
-
const _c0$
|
|
13000
|
+
const _c0$Y = ["journeyChild"];
|
|
13001
13001
|
class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
|
|
13002
13002
|
multipageComponentStateService;
|
|
13003
13003
|
journeyStartPageNumber = 0;
|
|
@@ -13072,7 +13072,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
|
|
|
13072
13072
|
;
|
|
13073
13073
|
static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
13074
13074
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13075
|
-
i0.ɵɵviewQuery(_c0$
|
|
13075
|
+
i0.ɵɵviewQuery(_c0$Y, 5);
|
|
13076
13076
|
} if (rf & 2) {
|
|
13077
13077
|
let _t;
|
|
13078
13078
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
|
|
@@ -13087,7 +13087,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
|
|
|
13087
13087
|
args: ['journeyChild']
|
|
13088
13088
|
}] }); })();
|
|
13089
13089
|
|
|
13090
|
-
const _c0$
|
|
13090
|
+
const _c0$X = ["journeyChild"];
|
|
13091
13091
|
class AbstractJourneyComponent {
|
|
13092
13092
|
multipageComponentStateService;
|
|
13093
13093
|
journeyStartPageNumber = 0;
|
|
@@ -13149,7 +13149,7 @@ class AbstractJourneyComponent {
|
|
|
13149
13149
|
onPageChange() { }
|
|
13150
13150
|
static ɵfac = function AbstractJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
13151
13151
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13152
|
-
i0.ɵɵviewQuery(_c0$
|
|
13152
|
+
i0.ɵɵviewQuery(_c0$X, 5);
|
|
13153
13153
|
} if (rf & 2) {
|
|
13154
13154
|
let _t;
|
|
13155
13155
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
|
|
@@ -13375,6 +13375,110 @@ class CaseFileViewFieldComponent {
|
|
|
13375
13375
|
}], () => [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }, { type: WindowService }, { type: CaseNotifier }, { type: AbstractAppConfig }], null); })();
|
|
13376
13376
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFieldComponent, { className: "CaseFileViewFieldComponent", filePath: "lib/shared/components/palette/case-file-view/case-file-view-field.component.ts", lineNumber: 18 }); })();
|
|
13377
13377
|
|
|
13378
|
+
const PVP_FLAG_CODE = 'PF0021';
|
|
13379
|
+
const PVP_DISPLAY_TEXT = 'POTENTIALLY VIOLENT PERSON';
|
|
13380
|
+
function isPvpFlag(flagDetail) {
|
|
13381
|
+
return flagDetail?.flagCode === PVP_FLAG_CODE;
|
|
13382
|
+
}
|
|
13383
|
+
function hasPvpFlag(flagsWithFormGroupPath) {
|
|
13384
|
+
return !!flagsWithFormGroupPath?.flags?.details?.some(isPvpFlag);
|
|
13385
|
+
}
|
|
13386
|
+
function isActivePvpFlag(flagDetail) {
|
|
13387
|
+
return isPvpFlag(flagDetail) && flagDetail?.status === CaseFlagStatus.ACTIVE;
|
|
13388
|
+
}
|
|
13389
|
+
function hasActivePvpFlag(flagsWithFormGroupPath) {
|
|
13390
|
+
return !!flagsWithFormGroupPath?.flags?.details?.some(isActivePvpFlag);
|
|
13391
|
+
}
|
|
13392
|
+
function getFlagCreationTime(flagDetail) {
|
|
13393
|
+
const createdDateValue = flagDetail?.dateTimeCreated;
|
|
13394
|
+
const createdMoment = createdDateValue instanceof Date
|
|
13395
|
+
? moment(createdDateValue)
|
|
13396
|
+
: moment(createdDateValue, moment.ISO_8601, true);
|
|
13397
|
+
return createdMoment.valueOf();
|
|
13398
|
+
}
|
|
13399
|
+
function compareByCreationDateDesc(flagA, flagB) {
|
|
13400
|
+
return getFlagCreationTime(flagB) - getFlagCreationTime(flagA);
|
|
13401
|
+
}
|
|
13402
|
+
function prioritisePvpFlags(flagDetails = []) {
|
|
13403
|
+
const activePvpFlags = [];
|
|
13404
|
+
const remainingFlags = [];
|
|
13405
|
+
flagDetails.forEach((flagDetail) => {
|
|
13406
|
+
if (isActivePvpFlag(flagDetail)) {
|
|
13407
|
+
activePvpFlags.push(flagDetail);
|
|
13408
|
+
}
|
|
13409
|
+
else {
|
|
13410
|
+
remainingFlags.push(flagDetail);
|
|
13411
|
+
}
|
|
13412
|
+
});
|
|
13413
|
+
remainingFlags.sort(compareByCreationDateDesc);
|
|
13414
|
+
return [...activePvpFlags, ...remainingFlags];
|
|
13415
|
+
}
|
|
13416
|
+
function prioritisePvpParties(partyFlagsData = []) {
|
|
13417
|
+
const pvpParties = [];
|
|
13418
|
+
const nonPvpParties = [];
|
|
13419
|
+
partyFlagsData.forEach((partyFlags) => {
|
|
13420
|
+
const prioritisedPartyFlags = {
|
|
13421
|
+
...partyFlags,
|
|
13422
|
+
flags: {
|
|
13423
|
+
...partyFlags.flags,
|
|
13424
|
+
details: partyFlags?.flags?.details ? prioritisePvpFlags(partyFlags.flags.details) : partyFlags?.flags?.details
|
|
13425
|
+
}
|
|
13426
|
+
};
|
|
13427
|
+
if (hasActivePvpFlag(prioritisedPartyFlags)) {
|
|
13428
|
+
pvpParties.push(prioritisedPartyFlags);
|
|
13429
|
+
}
|
|
13430
|
+
else {
|
|
13431
|
+
nonPvpParties.push(prioritisedPartyFlags);
|
|
13432
|
+
}
|
|
13433
|
+
});
|
|
13434
|
+
return [...pvpParties, ...nonPvpParties];
|
|
13435
|
+
}
|
|
13436
|
+
function hasActivePvpFlagInCaseFields(caseFields = []) {
|
|
13437
|
+
return caseFields
|
|
13438
|
+
.filter((caseField) => !FieldsUtils.isFlagLauncherCaseField(caseField) && caseField.value)
|
|
13439
|
+
.some((caseField) => hasActivePvpFlagInCaseField(caseField));
|
|
13440
|
+
}
|
|
13441
|
+
function hasActivePvpFlagInCaseField(caseField, currentValue) {
|
|
13442
|
+
const fieldType = caseField?.field_type;
|
|
13443
|
+
const value = caseField?.value ? caseField.value : currentValue;
|
|
13444
|
+
if (fieldType?.type === 'Complex') {
|
|
13445
|
+
return hasActivePvpFlagInComplexField(caseField, value);
|
|
13446
|
+
}
|
|
13447
|
+
if (fieldType?.type === 'Collection') {
|
|
13448
|
+
return hasActivePvpFlagInCollectionField(caseField, value);
|
|
13449
|
+
}
|
|
13450
|
+
return false;
|
|
13451
|
+
}
|
|
13452
|
+
function hasActivePvpFlagInComplexField(caseField, value) {
|
|
13453
|
+
if (FieldsUtils.isFlagsCaseField(caseField)) {
|
|
13454
|
+
return hasActivePvpFlagInFlagsValue(value);
|
|
13455
|
+
}
|
|
13456
|
+
const complexFields = caseField?.field_type?.complex_fields;
|
|
13457
|
+
if (!complexFields || !value || !FieldsUtils.isNonEmptyObject(value)) {
|
|
13458
|
+
return false;
|
|
13459
|
+
}
|
|
13460
|
+
return complexFields.some((subField) => hasActivePvpFlagInCaseField(subField, value[subField.id]));
|
|
13461
|
+
}
|
|
13462
|
+
function hasActivePvpFlagInCollectionField(caseField, value) {
|
|
13463
|
+
if (!value || !Array.isArray(value)) {
|
|
13464
|
+
return false;
|
|
13465
|
+
}
|
|
13466
|
+
const collectionFieldType = caseField?.field_type?.collection_field_type;
|
|
13467
|
+
if (FieldsUtils.isFlagsFieldType(collectionFieldType)) {
|
|
13468
|
+
return value.some((item) => hasActivePvpFlagInFlagsValue(item?.value));
|
|
13469
|
+
}
|
|
13470
|
+
if (collectionFieldType?.type !== 'Complex' || !collectionFieldType.complex_fields) {
|
|
13471
|
+
return false;
|
|
13472
|
+
}
|
|
13473
|
+
return value.some((item) => collectionFieldType.complex_fields.some((subField) => hasActivePvpFlagInCaseField(subField, item?.value?.[subField.id])));
|
|
13474
|
+
}
|
|
13475
|
+
function hasActivePvpFlagInFlagsValue(value) {
|
|
13476
|
+
if (!value || !FieldsUtils.isNonEmptyObject(value) || !value.details || !Array.isArray(value.details)) {
|
|
13477
|
+
return false;
|
|
13478
|
+
}
|
|
13479
|
+
return value.details.some((detail) => isActivePvpFlag(detail?.value ?? detail));
|
|
13480
|
+
}
|
|
13481
|
+
|
|
13378
13482
|
function ReadCaseFlagFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
13379
13483
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
13380
13484
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -13541,6 +13645,8 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
|
|
|
13541
13645
|
this.partyLevelCaseFlagData.filter((f) => !f.flags.groupId).forEach((f) => uniquePartyData.push(f));
|
|
13542
13646
|
this.partyLevelCaseFlagData = uniquePartyData;
|
|
13543
13647
|
}
|
|
13648
|
+
// Prioritise active PVP flags (PF0021), then order the remaining flags by creation date (most recent first).
|
|
13649
|
+
this.partyLevelCaseFlagData = prioritisePvpParties(this.partyLevelCaseFlagData);
|
|
13544
13650
|
// There will be only one case-level flags instance containing all case-level flag details
|
|
13545
13651
|
this.caseLevelCaseFlagData = this.flagsData.find((instance) => instance.pathToFlagsFormGroup === this.caseLevelCaseFlagsFieldId);
|
|
13546
13652
|
}
|
|
@@ -13643,7 +13749,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
|
|
|
13643
13749
|
type: Component,
|
|
13644
13750
|
args: [{ selector: 'ccd-read-case-flag-field', standalone: false, template: "<ng-container *ngIf=\"context === paletteContext.CHECK_YOUR_ANSWER\">\n <ccd-case-flag-summary-list\n [flagForSummaryDisplay]=\"flagForSummaryDisplay\"\n [displayContextParameter]=\"displayContextParameter\"\n (changeButtonEmitter)=\"navigateBackToForm($event)\">\n </ccd-case-flag-summary-list>\n</ng-container>\n\n<ng-container *ngIf=\"context !== paletteContext.CHECK_YOUR_ANSWER\">\n <ng-container [ngSwitch]=\"displayContextParameter\">\n <ng-container *ngSwitchCase=\"caseFlagDisplayContextParameter.READ_EXTERNAL\">\n <h2 id=\"read-case-flag-title\" class=\"govuk-heading-l\">\n {{ 'Support requested' | rpxTranslate }}\n </h2>\n\n <div *ngFor=\"let flagData of partyLevelCaseFlagData\">\n <ccd-case-flag-table *ngIf=\"flagData.flags.partyName\"\n [tableCaption]=\"''\"\n [flagData]=\"flagData\"\n [firstColumnHeader]=\"flagData.flags.partyName\"\n [caseFlagsExternalUser]=\"caseFlagsExternalUser\"\n ></ccd-case-flag-table>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <h2 id=\"read-case-flag-title\" class=\"govuk-heading-l\">\n {{ 'Case flags' | rpxTranslate }}\n </h2>\n\n <div *ngFor=\"let flagData of partyLevelCaseFlagData\">\n <ccd-case-flag-table *ngIf=\"flagData.flags.partyName\"\n [tableCaption]=\"flagData.flags.partyName\"\n [flagData]=\"flagData\"\n [firstColumnHeader]=\"'Party level flags' | rpxTranslate\"\n ></ccd-case-flag-table>\n </div>\n <div *ngIf=\"caseLevelCaseFlagData\">\n <ccd-case-flag-table\n [tableCaption]=\"'Case level flags' | rpxTranslate\"\n [flagData]=\"caseLevelCaseFlagData\"\n [firstColumnHeader]=\"'Case flags' | rpxTranslate\"\n ></ccd-case-flag-table>\n </div>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".govuk-heading-l{margin-top:30px}\n"] }]
|
|
13645
13751
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: CaseFlagStateService }], null); })();
|
|
13646
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseFlagFieldComponent, { className: "ReadCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/read-case-flag-field.component.ts", lineNumber:
|
|
13752
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseFlagFieldComponent, { className: "ReadCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/read-case-flag-field.component.ts", lineNumber: 18 }); })();
|
|
13647
13753
|
|
|
13648
13754
|
function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
13649
13755
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -14499,7 +14605,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
|
|
|
14499
14605
|
}], null, null); })();
|
|
14500
14606
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseLinkFieldComponent, { className: "ReadCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/read-case-link-field.component.ts", lineNumber: 9 }); })();
|
|
14501
14607
|
|
|
14502
|
-
const _c0$
|
|
14608
|
+
const _c0$W = ["writeComplexFieldComponent"];
|
|
14503
14609
|
const _c1$n = a0 => ({ "form-group-error": a0 });
|
|
14504
14610
|
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
14505
14611
|
i0.ɵɵelementStart(0, "span", 6);
|
|
@@ -14580,7 +14686,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14580
14686
|
}
|
|
14581
14687
|
static ɵfac = /*@__PURE__*/ (() => { let ɵWriteCaseLinkFieldComponent_BaseFactory; return function WriteCaseLinkFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteCaseLinkFieldComponent_BaseFactory || (ɵWriteCaseLinkFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent)))(__ngFactoryType__ || WriteCaseLinkFieldComponent); }; })();
|
|
14582
14688
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
14583
|
-
i0.ɵɵviewQuery(_c0$
|
|
14689
|
+
i0.ɵɵviewQuery(_c0$W, 5);
|
|
14584
14690
|
} if (rf & 2) {
|
|
14585
14691
|
let _t;
|
|
14586
14692
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
@@ -14614,7 +14720,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14614
14720
|
}] }); })();
|
|
14615
14721
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 12 }); })();
|
|
14616
14722
|
|
|
14617
|
-
const _c0$
|
|
14723
|
+
const _c0$V = (a0, a1, a2, a3, a4, a5, a6) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5, parent: a6 });
|
|
14618
14724
|
const _c1$m = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4, parent: a5 });
|
|
14619
14725
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
14620
14726
|
i0.ɵɵelementStart(0, "tbody")(1, "tr");
|
|
@@ -14625,7 +14731,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
14625
14731
|
} if (rf & 2) {
|
|
14626
14732
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
14627
14733
|
i0.ɵɵadvance(4);
|
|
14628
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(4, _c0$
|
|
14734
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(4, _c0$V, ctx_r0.caseField.label, ctx_r0.caseField.label, ctx_r0.caseField.field_type.collection_field_type, ctx_r0.caseField.display_context_parameter, ctx_r0.caseField.value, ctx_r0.caseField.hidden, ctx_r0.caseField))("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup);
|
|
14629
14735
|
} }
|
|
14630
14736
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
14631
14737
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
@@ -14747,7 +14853,7 @@ class RemoveDialogComponent {
|
|
|
14747
14853
|
}], () => [{ type: i1$3.MatLegacyDialogRef }], null); })();
|
|
14748
14854
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RemoveDialogComponent, { className: "RemoveDialogComponent", filePath: "lib/shared/components/dialogs/remove-dialog/remove-dialog.component.ts", lineNumber: 10 }); })();
|
|
14749
14855
|
|
|
14750
|
-
const _c0$
|
|
14856
|
+
const _c0$U = ["collectionItem"];
|
|
14751
14857
|
function WriteCollectionFieldComponent_h2_2_Template(rf, ctx) { if (rf & 1) {
|
|
14752
14858
|
i0.ɵɵelementStart(0, "h2", 7);
|
|
14753
14859
|
i0.ɵɵtext(1);
|
|
@@ -15145,7 +15251,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15145
15251
|
}
|
|
15146
15252
|
static ɵfac = function WriteCollectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
15147
15253
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15148
|
-
i0.ɵɵviewQuery(_c0$
|
|
15254
|
+
i0.ɵɵviewQuery(_c0$U, 5);
|
|
15149
15255
|
} if (rf & 2) {
|
|
15150
15256
|
let _t;
|
|
15151
15257
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
@@ -15464,7 +15570,7 @@ class FileUploadStateService {
|
|
|
15464
15570
|
type: Injectable
|
|
15465
15571
|
}], null, null); })();
|
|
15466
15572
|
|
|
15467
|
-
const _c0$
|
|
15573
|
+
const _c0$T = ["fileInput"];
|
|
15468
15574
|
const _c1$l = a0 => ({ "form-group-error bottom-30": a0 });
|
|
15469
15575
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
15470
15576
|
i0.ɵɵelementStart(0, "span", 12);
|
|
@@ -15845,7 +15951,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15845
15951
|
}
|
|
15846
15952
|
static ɵfac = function WriteDocumentFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
15847
15953
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15848
|
-
i0.ɵɵviewQuery(_c0$
|
|
15954
|
+
i0.ɵɵviewQuery(_c0$T, 5);
|
|
15849
15955
|
} if (rf & 2) {
|
|
15850
15956
|
let _t;
|
|
15851
15957
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
@@ -15960,7 +16066,7 @@ class ReadDynamicListFieldComponent extends AbstractFieldReadComponent {
|
|
|
15960
16066
|
}], null, null); })();
|
|
15961
16067
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicListFieldComponent, { className: "ReadDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.ts", lineNumber: 9 }); })();
|
|
15962
16068
|
|
|
15963
|
-
const _c0$
|
|
16069
|
+
const _c0$S = a0 => ({ "form-group-error": a0 });
|
|
15964
16070
|
function WriteDynamicListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
15965
16071
|
i0.ɵɵelementStart(0, "span", 8);
|
|
15966
16072
|
i0.ɵɵtext(1);
|
|
@@ -16048,7 +16154,7 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16048
16154
|
i0.ɵɵtemplate(10, WriteDynamicListFieldComponent_option_10_Template, 3, 4, "option", 7);
|
|
16049
16155
|
i0.ɵɵelementEnd()();
|
|
16050
16156
|
} if (rf & 2) {
|
|
16051
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$
|
|
16157
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$S, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
16052
16158
|
i0.ɵɵadvance();
|
|
16053
16159
|
i0.ɵɵproperty("for", ctx.id());
|
|
16054
16160
|
i0.ɵɵadvance();
|
|
@@ -16227,7 +16333,7 @@ class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponen
|
|
|
16227
16333
|
}], null, null); })();
|
|
16228
16334
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicMultiSelectListFieldComponent, { className: "ReadDynamicMultiSelectListFieldComponent", filePath: "lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.ts", lineNumber: 10 }); })();
|
|
16229
16335
|
|
|
16230
|
-
const _c0$
|
|
16336
|
+
const _c0$R = a0 => ({ "error": a0 });
|
|
16231
16337
|
function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
16232
16338
|
i0.ɵɵelementStart(0, "span", 5);
|
|
16233
16339
|
i0.ɵɵtext(1);
|
|
@@ -16347,7 +16453,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
16347
16453
|
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 6, 12, "ng-container", 4);
|
|
16348
16454
|
i0.ɵɵelementEnd()();
|
|
16349
16455
|
} if (rf & 2) {
|
|
16350
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
16456
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$R, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
16351
16457
|
i0.ɵɵadvance(3);
|
|
16352
16458
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
16353
16459
|
i0.ɵɵadvance();
|
|
@@ -16427,7 +16533,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
|
16427
16533
|
}], null, null); })();
|
|
16428
16534
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicRadioListFieldComponent, { className: "ReadDynamicRadioListFieldComponent", filePath: "lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.ts", lineNumber: 9 }); })();
|
|
16429
16535
|
|
|
16430
|
-
const _c0$
|
|
16536
|
+
const _c0$Q = a0 => ({ "form-group-error": a0 });
|
|
16431
16537
|
const _c1$k = a0 => ({ selected: a0 });
|
|
16432
16538
|
function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16433
16539
|
i0.ɵɵelementStart(0, "span", 7);
|
|
@@ -16522,7 +16628,7 @@ class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16522
16628
|
i0.ɵɵelementContainerEnd();
|
|
16523
16629
|
i0.ɵɵelementEnd()();
|
|
16524
16630
|
} if (rf & 2) {
|
|
16525
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
16631
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$Q, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
16526
16632
|
i0.ɵɵadvance(3);
|
|
16527
16633
|
i0.ɵɵproperty("for", ctx.id());
|
|
16528
16634
|
i0.ɵɵadvance();
|
|
@@ -16576,7 +16682,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
|
|
|
16576
16682
|
}], null, null); })();
|
|
16577
16683
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 11 }); })();
|
|
16578
16684
|
|
|
16579
|
-
const _c0$
|
|
16685
|
+
const _c0$P = a0 => ({ "form-group-error": a0 });
|
|
16580
16686
|
const _c1$j = a0 => ({ "govuk-input--error": a0 });
|
|
16581
16687
|
function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
16582
16688
|
i0.ɵɵelementStart(0, "span", 6);
|
|
@@ -16622,7 +16728,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16622
16728
|
i0.ɵɵelement(5, "input", 5);
|
|
16623
16729
|
i0.ɵɵelementEnd();
|
|
16624
16730
|
} if (rf & 2) {
|
|
16625
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
16731
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$P, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
16626
16732
|
i0.ɵɵadvance();
|
|
16627
16733
|
i0.ɵɵproperty("for", ctx.id());
|
|
16628
16734
|
i0.ɵɵadvance();
|
|
@@ -16664,7 +16770,7 @@ class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
|
|
|
16664
16770
|
}], null, null); })();
|
|
16665
16771
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedListFieldComponent, { className: "ReadFixedListFieldComponent", filePath: "lib/shared/components/palette/fixed-list/read-fixed-list-field.component.ts", lineNumber: 9 }); })();
|
|
16666
16772
|
|
|
16667
|
-
const _c0$
|
|
16773
|
+
const _c0$O = a0 => ({ "form-group-error": a0 });
|
|
16668
16774
|
function WriteFixedListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
16669
16775
|
i0.ɵɵelementStart(0, "span", 8);
|
|
16670
16776
|
i0.ɵɵtext(1);
|
|
@@ -16739,7 +16845,7 @@ class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16739
16845
|
i0.ɵɵtemplate(8, WriteFixedListFieldComponent_option_8_Template, 3, 4, "option", 7);
|
|
16740
16846
|
i0.ɵɵelementEnd()();
|
|
16741
16847
|
} if (rf & 2) {
|
|
16742
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
16848
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$O, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
16743
16849
|
i0.ɵɵadvance();
|
|
16744
16850
|
i0.ɵɵproperty("for", ctx.id());
|
|
16745
16851
|
i0.ɵɵadvance();
|
|
@@ -16802,7 +16908,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
|
16802
16908
|
}], null, null); })();
|
|
16803
16909
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedRadioListFieldComponent, { className: "ReadFixedRadioListFieldComponent", filePath: "lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.ts", lineNumber: 9 }); })();
|
|
16804
16910
|
|
|
16805
|
-
const _c0$
|
|
16911
|
+
const _c0$N = a0 => ({ "form-group-error": a0 });
|
|
16806
16912
|
const _c1$i = a0 => ({ selected: a0 });
|
|
16807
16913
|
function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16808
16914
|
i0.ɵɵelementStart(0, "span", 6);
|
|
@@ -16870,7 +16976,7 @@ class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16870
16976
|
i0.ɵɵelementContainerEnd();
|
|
16871
16977
|
i0.ɵɵelementEnd()();
|
|
16872
16978
|
} if (rf & 2) {
|
|
16873
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
16979
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$N, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
16874
16980
|
i0.ɵɵadvance(3);
|
|
16875
16981
|
i0.ɵɵproperty("for", ctx.id());
|
|
16876
16982
|
i0.ɵɵadvance();
|
|
@@ -16946,7 +17052,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
|
|
|
16946
17052
|
}], () => [{ type: JurisdictionService }], null); })();
|
|
16947
17053
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 12 }); })();
|
|
16948
17054
|
|
|
16949
|
-
const _c0$
|
|
17055
|
+
const _c0$M = a0 => ({ "form-group-error": a0 });
|
|
16950
17056
|
const _c1$h = a0 => ({ "hide-autocomplete": a0 });
|
|
16951
17057
|
function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
16952
17058
|
i0.ɵɵelementStart(0, "span", 10);
|
|
@@ -17166,7 +17272,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
17166
17272
|
i0.ɵɵelementEnd()();
|
|
17167
17273
|
} if (rf & 2) {
|
|
17168
17274
|
const autoComplete_r5 = i0.ɵɵreference(7);
|
|
17169
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$
|
|
17275
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$M, !!ctx.judicialUserControl && ctx.errors));
|
|
17170
17276
|
i0.ɵɵadvance();
|
|
17171
17277
|
i0.ɵɵproperty("for", ctx.id());
|
|
17172
17278
|
i0.ɵɵadvance();
|
|
@@ -17631,7 +17737,7 @@ class ValidatorsUtils {
|
|
|
17631
17737
|
args: [{ providedIn: 'root' }]
|
|
17632
17738
|
}], null, null); })();
|
|
17633
17739
|
|
|
17634
|
-
const _c0$
|
|
17740
|
+
const _c0$L = a0 => ({ "govuk-form-group--error": a0 });
|
|
17635
17741
|
const _c1$g = a0 => ({ "table-group-error": a0 });
|
|
17636
17742
|
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
17637
17743
|
i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
|
|
@@ -17698,7 +17804,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
17698
17804
|
i0.ɵɵelementEnd()();
|
|
17699
17805
|
} if (rf & 2) {
|
|
17700
17806
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
17701
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$
|
|
17807
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$L, !!ctx_r1.caseReasonCommentsError));
|
|
17702
17808
|
i0.ɵɵadvance(3);
|
|
17703
17809
|
i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
|
|
17704
17810
|
} }
|
|
@@ -17742,11 +17848,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
17742
17848
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
17743
17849
|
i0.ɵɵproperty("formGroup", ctx_r1.linkCaseForm);
|
|
17744
17850
|
i0.ɵɵadvance();
|
|
17745
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
17851
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$L, !!ctx_r1.caseNumberError));
|
|
17746
17852
|
i0.ɵɵadvance(3);
|
|
17747
17853
|
i0.ɵɵproperty("ngIf", ctx_r1.caseNumberError);
|
|
17748
17854
|
i0.ɵɵadvance(2);
|
|
17749
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
17855
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$L, !!ctx_r1.caseReasonError));
|
|
17750
17856
|
i0.ɵɵadvance(5);
|
|
17751
17857
|
i0.ɵɵproperty("ngIf", ctx_r1.caseReasonError);
|
|
17752
17858
|
i0.ɵɵadvance(2);
|
|
@@ -18174,7 +18280,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
18174
18280
|
i0.ɵɵadvance(4);
|
|
18175
18281
|
i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
18176
18282
|
i0.ɵɵadvance(4);
|
|
18177
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
18283
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$L, !!ctx.noSelectedCaseError));
|
|
18178
18284
|
i0.ɵɵadvance();
|
|
18179
18285
|
i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
|
|
18180
18286
|
i0.ɵɵadvance(18);
|
|
@@ -18767,7 +18873,7 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
|
|
|
18767
18873
|
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], null); })();
|
|
18768
18874
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NoLinkedCasesComponent, { className: "NoLinkedCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.ts", lineNumber: 13 }); })();
|
|
18769
18875
|
|
|
18770
|
-
const _c0$
|
|
18876
|
+
const _c0$K = a0 => ({ "govuk-form-group--error": a0 });
|
|
18771
18877
|
function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
18772
18878
|
i0.ɵɵelementStart(0, "p", 9)(1, "span", 10);
|
|
18773
18879
|
i0.ɵɵtext(2, "Error:");
|
|
@@ -18805,7 +18911,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
18805
18911
|
i0.ɵɵelementEnd()();
|
|
18806
18912
|
} if (rf & 2) {
|
|
18807
18913
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
18808
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
18914
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$K, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
|
|
18809
18915
|
i0.ɵɵadvance();
|
|
18810
18916
|
i0.ɵɵproperty("ngIf", ctx_r0.unlinkErrorMessage);
|
|
18811
18917
|
i0.ɵɵadvance(2);
|
|
@@ -19736,7 +19842,7 @@ class MoneyGbpInputComponent {
|
|
|
19736
19842
|
}] }); })();
|
|
19737
19843
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoneyGbpInputComponent, { className: "MoneyGbpInputComponent", filePath: "lib/shared/components/palette/money-gbp/money-gbp-input.component.ts", lineNumber: 28 }); })();
|
|
19738
19844
|
|
|
19739
|
-
const _c0$
|
|
19845
|
+
const _c0$J = a0 => ({ "form-group-error": a0 });
|
|
19740
19846
|
function WriteMoneyGbpFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
19741
19847
|
i0.ɵɵelementStart(0, "span", 8);
|
|
19742
19848
|
i0.ɵɵtext(1);
|
|
@@ -19785,7 +19891,7 @@ class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
|
|
|
19785
19891
|
i0.ɵɵpipe(9, "ccdIsMandatory");
|
|
19786
19892
|
i0.ɵɵelementEnd()();
|
|
19787
19893
|
} if (rf & 2) {
|
|
19788
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
19894
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$J, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
19789
19895
|
i0.ɵɵadvance();
|
|
19790
19896
|
i0.ɵɵproperty("for", ctx.id());
|
|
19791
19897
|
i0.ɵɵadvance();
|
|
@@ -19844,7 +19950,7 @@ class ReadMultiSelectListFieldComponent extends AbstractFieldReadComponent {
|
|
|
19844
19950
|
}], null, null); })();
|
|
19845
19951
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadMultiSelectListFieldComponent, { className: "ReadMultiSelectListFieldComponent", filePath: "lib/shared/components/palette/multi-select-list/read-multi-select-list-field.component.ts", lineNumber: 10 }); })();
|
|
19846
19952
|
|
|
19847
|
-
const _c0$
|
|
19953
|
+
const _c0$I = a0 => ({ "error": a0 });
|
|
19848
19954
|
function WriteMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
19849
19955
|
i0.ɵɵelementStart(0, "span", 5);
|
|
19850
19956
|
i0.ɵɵtext(1);
|
|
@@ -19945,7 +20051,7 @@ class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
19945
20051
|
i0.ɵɵtemplate(4, WriteMultiSelectListFieldComponent_span_4_Template, 3, 3, "span", 2)(5, WriteMultiSelectListFieldComponent_span_5_Template, 3, 4, "span", 3)(6, WriteMultiSelectListFieldComponent_ng_container_6_Template, 6, 8, "ng-container", 4);
|
|
19946
20052
|
i0.ɵɵelementEnd()();
|
|
19947
20053
|
} if (rf & 2) {
|
|
19948
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
20054
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$I, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
19949
20055
|
i0.ɵɵadvance(3);
|
|
19950
20056
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
19951
20057
|
i0.ɵɵadvance();
|
|
@@ -19984,7 +20090,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
|
|
|
19984
20090
|
}], null, null); })();
|
|
19985
20091
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 9 }); })();
|
|
19986
20092
|
|
|
19987
|
-
const _c0$
|
|
20093
|
+
const _c0$H = a0 => ({ "form-group-error": a0 });
|
|
19988
20094
|
const _c1$f = a0 => ({ "govuk-input--error": a0 });
|
|
19989
20095
|
function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
19990
20096
|
i0.ɵɵelementStart(0, "span", 6);
|
|
@@ -20030,7 +20136,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
|
20030
20136
|
i0.ɵɵelement(5, "input", 5);
|
|
20031
20137
|
i0.ɵɵelementEnd();
|
|
20032
20138
|
} if (rf & 2) {
|
|
20033
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
20139
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$H, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
20034
20140
|
i0.ɵɵadvance();
|
|
20035
20141
|
i0.ɵɵproperty("for", ctx.id());
|
|
20036
20142
|
i0.ɵɵadvance();
|
|
@@ -20209,7 +20315,7 @@ class ReadOrganisationFieldComponent extends AbstractFieldReadComponent {
|
|
|
20209
20315
|
}] }); })();
|
|
20210
20316
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldComponent, { className: "ReadOrganisationFieldComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field.component.ts", lineNumber: 11 }); })();
|
|
20211
20317
|
|
|
20212
|
-
const _c0$
|
|
20318
|
+
const _c0$G = a0 => ({ "scroll-container ": a0 });
|
|
20213
20319
|
function WriteOrganisationFieldComponent_fieldset_1_Template(rf, ctx) { if (rf & 1) {
|
|
20214
20320
|
i0.ɵɵelementStart(0, "fieldset", 3);
|
|
20215
20321
|
i0.ɵɵelement(1, "legend", 4);
|
|
@@ -20288,7 +20394,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { i
|
|
|
20288
20394
|
let tmp_3_0;
|
|
20289
20395
|
let tmp_5_0;
|
|
20290
20396
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
20291
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
20397
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$G, ((tmp_3_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_3_0.length) > 10));
|
|
20292
20398
|
i0.ɵɵadvance(2);
|
|
20293
20399
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
20294
20400
|
i0.ɵɵadvance(2);
|
|
@@ -20684,7 +20790,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
|
|
|
20684
20790
|
}], null, null); })();
|
|
20685
20791
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadPhoneUKFieldComponent, { className: "ReadPhoneUKFieldComponent", filePath: "lib/shared/components/palette/phone-uk/read-phone-uk-field.component.ts", lineNumber: 9 }); })();
|
|
20686
20792
|
|
|
20687
|
-
const _c0$
|
|
20793
|
+
const _c0$F = a0 => ({ "form-group-error": a0 });
|
|
20688
20794
|
const _c1$e = a0 => ({ "govuk-input--error": a0 });
|
|
20689
20795
|
function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
20690
20796
|
i0.ɵɵelementStart(0, "span", 6);
|
|
@@ -20730,7 +20836,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
|
20730
20836
|
i0.ɵɵelement(5, "input", 5);
|
|
20731
20837
|
i0.ɵɵelementEnd();
|
|
20732
20838
|
} if (rf & 2) {
|
|
20733
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
20839
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$F, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
20734
20840
|
i0.ɵɵadvance();
|
|
20735
20841
|
i0.ɵɵproperty("for", ctx.id());
|
|
20736
20842
|
i0.ɵɵadvance();
|
|
@@ -23208,7 +23314,7 @@ class QueryWriteDateInputComponent {
|
|
|
23208
23314
|
}] }); })();
|
|
23209
23315
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteDateInputComponent, { className: "QueryWriteDateInputComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.ts", lineNumber: 16 }); })();
|
|
23210
23316
|
|
|
23211
|
-
const _c0$
|
|
23317
|
+
const _c0$E = a0 => ({ "govuk-form-group--error": a0 });
|
|
23212
23318
|
function QueryWriteRaiseQueryComponent_ccd_query_case_details_header_9_Template(rf, ctx) { if (rf & 1) {
|
|
23213
23319
|
i0.ɵɵelement(0, "ccd-query-case-details-header", 5);
|
|
23214
23320
|
} if (rf & 2) {
|
|
@@ -23288,7 +23394,7 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_50_Template(rf, ctx)
|
|
|
23288
23394
|
} if (rf & 2) {
|
|
23289
23395
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
23290
23396
|
i0.ɵɵadvance();
|
|
23291
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
23397
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null));
|
|
23292
23398
|
i0.ɵɵadvance(4);
|
|
23293
23399
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 3, "What is the date of the hearing?"), " ");
|
|
23294
23400
|
i0.ɵɵadvance(2);
|
|
@@ -23355,7 +23461,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
23355
23461
|
i0.ɵɵadvance(8);
|
|
23356
23462
|
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(10, 23, ctx_r0.serviceMessage));
|
|
23357
23463
|
i0.ɵɵadvance(2);
|
|
23358
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$
|
|
23464
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
|
|
23359
23465
|
i0.ɵɵadvance(3);
|
|
23360
23466
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 25, "Query subject"), " ");
|
|
23361
23467
|
i0.ɵɵadvance(3);
|
|
@@ -23363,7 +23469,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
23363
23469
|
i0.ɵɵadvance(2);
|
|
23364
23470
|
i0.ɵɵproperty("ngIf", ctx_r0.submitted && (ctx_r0.formGroup.get("subject").hasError("required") || ctx_r0.formGroup.get("subject").hasError("maxlength")));
|
|
23365
23471
|
i0.ɵɵadvance(2);
|
|
23366
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$
|
|
23472
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
|
|
23367
23473
|
i0.ɵɵadvance(3);
|
|
23368
23474
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 29, "Query detail"), " ");
|
|
23369
23475
|
i0.ɵɵadvance(3);
|
|
@@ -23374,7 +23480,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
23374
23480
|
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
23375
23481
|
i0.ɵɵproperty("formControlName", "body");
|
|
23376
23482
|
i0.ɵɵadvance(2);
|
|
23377
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$
|
|
23483
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
|
|
23378
23484
|
i0.ɵɵadvance(4);
|
|
23379
23485
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 33, "Is the query hearing related?"), " ");
|
|
23380
23486
|
i0.ɵɵadvance(2);
|
|
@@ -23995,7 +24101,7 @@ class CloseQueryComponent {
|
|
|
23995
24101
|
}] }); })();
|
|
23996
24102
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CloseQueryComponent, { className: "CloseQueryComponent", filePath: "lib/shared/components/palette/query-management/components/close-query/close-query.component.ts", lineNumber: 9 }); })();
|
|
23997
24103
|
|
|
23998
|
-
const _c0$
|
|
24104
|
+
const _c0$D = (a0, a1) => ["/query-management", "query", a0, "4", a1];
|
|
23999
24105
|
function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
24000
24106
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
24001
24107
|
i0.ɵɵelementStart(0, "div", 6)(1, "ccd-query-list", 7);
|
|
@@ -24034,7 +24140,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_conta
|
|
|
24034
24140
|
} if (rf & 2) {
|
|
24035
24141
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
24036
24142
|
i0.ɵɵadvance();
|
|
24037
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$
|
|
24143
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$D, ctx_r1.caseId, ctx_r1.query.id));
|
|
24038
24144
|
i0.ɵɵadvance();
|
|
24039
24145
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
|
|
24040
24146
|
} }
|
|
@@ -24048,7 +24154,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
|
|
|
24048
24154
|
} if (rf & 2) {
|
|
24049
24155
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
24050
24156
|
i0.ɵɵadvance();
|
|
24051
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$
|
|
24157
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$D, ctx_r1.caseId, ctx_r1.query.id));
|
|
24052
24158
|
i0.ɵɵadvance();
|
|
24053
24159
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
|
|
24054
24160
|
} }
|
|
@@ -24236,7 +24342,7 @@ class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
|
|
|
24236
24342
|
}], null, null); })();
|
|
24237
24343
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextAreaFieldComponent, { className: "ReadTextAreaFieldComponent", filePath: "lib/shared/components/palette/text-area/read-text-area-field.component.ts", lineNumber: 9 }); })();
|
|
24238
24344
|
|
|
24239
|
-
const _c0$
|
|
24345
|
+
const _c0$C = a0 => ({ "form-group-error": a0 });
|
|
24240
24346
|
const _c1$d = a0 => ({ "govuk-textarea--error": a0 });
|
|
24241
24347
|
function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
24242
24348
|
i0.ɵɵelementStart(0, "span", 6);
|
|
@@ -24295,7 +24401,7 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
24295
24401
|
i0.ɵɵlistener("input", function WriteTextAreaFieldComponent_Template_textarea_input_5_listener($event) { return ctx.autoGrow($event); });
|
|
24296
24402
|
i0.ɵɵelementEnd()();
|
|
24297
24403
|
} if (rf & 2) {
|
|
24298
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
24404
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
24299
24405
|
i0.ɵɵadvance();
|
|
24300
24406
|
i0.ɵɵproperty("for", ctx.id());
|
|
24301
24407
|
i0.ɵɵadvance();
|
|
@@ -24335,7 +24441,7 @@ class ReadTextFieldComponent extends AbstractFieldReadComponent {
|
|
|
24335
24441
|
}], null, null); })();
|
|
24336
24442
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 9 }); })();
|
|
24337
24443
|
|
|
24338
|
-
const _c0$
|
|
24444
|
+
const _c0$B = a0 => ({ "form-group-error": a0 });
|
|
24339
24445
|
const _c1$c = a0 => ({ "govuk-input--error": a0 });
|
|
24340
24446
|
function WriteTextFieldComponent_label_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
24341
24447
|
i0.ɵɵelementStart(0, "span", 7);
|
|
@@ -24393,7 +24499,7 @@ class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
|
24393
24499
|
i0.ɵɵlistener("blur", function WriteTextFieldComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); });
|
|
24394
24500
|
i0.ɵɵelementEnd()();
|
|
24395
24501
|
} if (rf & 2) {
|
|
24396
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
24502
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
24397
24503
|
i0.ɵɵadvance();
|
|
24398
24504
|
i0.ɵɵproperty("ngIf", !ctx.caseField.hidden);
|
|
24399
24505
|
i0.ɵɵadvance();
|
|
@@ -24534,7 +24640,7 @@ class ReadYesNoFieldComponent extends AbstractFieldReadComponent {
|
|
|
24534
24640
|
}], () => [{ type: YesNoService }], null); })();
|
|
24535
24641
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadYesNoFieldComponent, { className: "ReadYesNoFieldComponent", filePath: "lib/shared/components/palette/yes-no/read-yes-no-field.component.ts", lineNumber: 10 }); })();
|
|
24536
24642
|
|
|
24537
|
-
const _c0$
|
|
24643
|
+
const _c0$A = a0 => ({ "form-group-error": a0 });
|
|
24538
24644
|
const _c1$b = a0 => ({ selected: a0 });
|
|
24539
24645
|
function WriteYesNoFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
24540
24646
|
i0.ɵɵelementStart(0, "span", 7);
|
|
@@ -24606,7 +24712,7 @@ class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
|
24606
24712
|
i0.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template, 5, 14, "div", 6);
|
|
24607
24713
|
i0.ɵɵelementEnd()()();
|
|
24608
24714
|
} if (rf & 2) {
|
|
24609
|
-
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
24715
|
+
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c0$A, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
24610
24716
|
i0.ɵɵadvance(3);
|
|
24611
24717
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
24612
24718
|
i0.ɵɵadvance();
|
|
@@ -24723,7 +24829,7 @@ class PaletteService {
|
|
|
24723
24829
|
type: Injectable
|
|
24724
24830
|
}], null, null); })();
|
|
24725
24831
|
|
|
24726
|
-
const _c0$
|
|
24832
|
+
const _c0$z = ["fieldContainer"];
|
|
24727
24833
|
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
24728
24834
|
class FieldReadComponent extends AbstractFieldReadComponent {
|
|
24729
24835
|
resolver;
|
|
@@ -24772,7 +24878,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
24772
24878
|
}
|
|
24773
24879
|
static ɵfac = function FieldReadComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FieldReadComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
24774
24880
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) { if (rf & 1) {
|
|
24775
|
-
i0.ɵɵviewQuery(_c0$
|
|
24881
|
+
i0.ɵɵviewQuery(_c0$z, 5, ViewContainerRef);
|
|
24776
24882
|
} if (rf & 2) {
|
|
24777
24883
|
let _t;
|
|
24778
24884
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -24801,7 +24907,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
24801
24907
|
}] }); })();
|
|
24802
24908
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadComponent, { className: "FieldReadComponent", filePath: "lib/shared/components/palette/base-field/field-read.component.ts", lineNumber: 16 }); })();
|
|
24803
24909
|
|
|
24804
|
-
const _c0$
|
|
24910
|
+
const _c0$y = ["fieldContainer"];
|
|
24805
24911
|
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
24806
24912
|
class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
24807
24913
|
resolver;
|
|
@@ -24847,7 +24953,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
24847
24953
|
}
|
|
24848
24954
|
static ɵfac = function FieldWriteComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FieldWriteComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
24849
24955
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) { if (rf & 1) {
|
|
24850
|
-
i0.ɵɵviewQuery(_c0$
|
|
24956
|
+
i0.ɵɵviewQuery(_c0$y, 7, ViewContainerRef);
|
|
24851
24957
|
} if (rf & 2) {
|
|
24852
24958
|
let _t;
|
|
24853
24959
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -24871,7 +24977,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
24871
24977
|
}] }); })();
|
|
24872
24978
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldWriteComponent, { className: "FieldWriteComponent", filePath: "lib/shared/components/palette/base-field/field-write.component.ts", lineNumber: 17 }); })();
|
|
24873
24979
|
|
|
24874
|
-
const _c0$
|
|
24980
|
+
const _c0$x = ["*"];
|
|
24875
24981
|
function FieldReadLabelComponent_dl_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
24876
24982
|
i0.ɵɵelementContainer(0);
|
|
24877
24983
|
} }
|
|
@@ -24925,7 +25031,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
24925
25031
|
}
|
|
24926
25032
|
}
|
|
24927
25033
|
static ɵfac = /*@__PURE__*/ (() => { let ɵFieldReadLabelComponent_BaseFactory; return function FieldReadLabelComponent_Factory(__ngFactoryType__) { return (ɵFieldReadLabelComponent_BaseFactory || (ɵFieldReadLabelComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FieldReadLabelComponent)))(__ngFactoryType__ || FieldReadLabelComponent); }; })();
|
|
24928
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$
|
|
25034
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$x, decls: 4, vars: 5, consts: [["caseFieldValue", ""], [3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24929
25035
|
i0.ɵɵprojectionDef();
|
|
24930
25036
|
i0.ɵɵelementStart(0, "div", 1);
|
|
24931
25037
|
i0.ɵɵtemplate(1, FieldReadLabelComponent_dl_1_Template, 6, 4, "dl", 2)(2, FieldReadLabelComponent_ng_template_2_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
@@ -24946,7 +25052,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
24946
25052
|
}] }); })();
|
|
24947
25053
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadLabelComponent, { className: "FieldReadLabelComponent", filePath: "lib/shared/components/palette/base-field/field-read-label.component.ts", lineNumber: 15 }); })();
|
|
24948
25054
|
|
|
24949
|
-
const _c0$
|
|
25055
|
+
const _c0$w = a0 => ({ cat: a0, level: 1 });
|
|
24950
25056
|
const _c1$a = (a0, a1) => ({ cat: a0, level: a1 });
|
|
24951
25057
|
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
24952
25058
|
i0.ɵɵelementContainer(0);
|
|
@@ -24960,7 +25066,7 @@ function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
|
24960
25066
|
i0.ɵɵnextContext();
|
|
24961
25067
|
const folder_r3 = i0.ɵɵreference(13);
|
|
24962
25068
|
i0.ɵɵadvance();
|
|
24963
|
-
i0.ɵɵproperty("ngTemplateOutlet", folder_r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$
|
|
25069
|
+
i0.ɵɵproperty("ngTemplateOutlet", folder_r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$w, cat_r2));
|
|
24964
25070
|
} }
|
|
24965
25071
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
24966
25072
|
i0.ɵɵelementContainer(0);
|
|
@@ -25098,7 +25204,7 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
25098
25204
|
}] }], null); })();
|
|
25099
25205
|
(() => { (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 }); })();
|
|
25100
25206
|
|
|
25101
|
-
const _c0$
|
|
25207
|
+
const _c0$v = [[["", "trigger", ""]]];
|
|
25102
25208
|
const _c1$9 = ["[trigger]"];
|
|
25103
25209
|
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
25104
25210
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -25171,7 +25277,7 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
25171
25277
|
static ɵfac = function CaseFileViewOverlayMenuComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewOverlayMenuComponent)(); };
|
|
25172
25278
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, standalone: false, ngContentSelectors: _c1$9, decls: 5, vars: 5, consts: [["trigger", "cdkOverlayOrigin"], ["type", "button", "cdkOverlayOrigin", "", "aria-haspopup", "true", 1, "overlay-toggle", 3, "click"], ["cdkConnectedOverlay", "", 3, "backdropClick", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], ["tabindex", "0", 1, "overlay-menu__item", 3, "click", "keydown.enter"], ["class", "overlay-menu__itemIcon", "aria-hidden", "true", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], ["aria-hidden", "true", 1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25173
25279
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
25174
|
-
i0.ɵɵprojectionDef(_c0$
|
|
25280
|
+
i0.ɵɵprojectionDef(_c0$v);
|
|
25175
25281
|
i0.ɵɵelementStart(0, "div")(1, "button", 1, 0);
|
|
25176
25282
|
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r1); $event.stopPropagation(); return i0.ɵɵresetView(ctx.setOpen()); });
|
|
25177
25283
|
i0.ɵɵprojection(3, 0, ["aria-hidden", "true"]);
|
|
@@ -25866,7 +25972,7 @@ class CaseFileViewFolderComponent {
|
|
|
25866
25972
|
}] }); })();
|
|
25867
25973
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber: 28 }); })();
|
|
25868
25974
|
|
|
25869
|
-
const _c0$
|
|
25975
|
+
const _c0$u = a0 => ({ "form-group-error": a0 });
|
|
25870
25976
|
function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
25871
25977
|
i0.ɵɵelementStart(0, "span");
|
|
25872
25978
|
i0.ɵɵtext(1);
|
|
@@ -26020,7 +26126,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
26020
26126
|
} if (rf & 2) {
|
|
26021
26127
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
26022
26128
|
i0.ɵɵadvance(2);
|
|
26023
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c0$
|
|
26129
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c0$u, ctx.errorMessages.length > 0));
|
|
26024
26130
|
i0.ɵɵadvance(2);
|
|
26025
26131
|
i0.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
26026
26132
|
i0.ɵɵadvance();
|
|
@@ -26351,6 +26457,7 @@ class CaseFlagSummaryListComponent {
|
|
|
26351
26457
|
}] }); })();
|
|
26352
26458
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFlagSummaryListComponent, { className: "CaseFlagSummaryListComponent", filePath: "lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.ts", lineNumber: 16 }); })();
|
|
26353
26459
|
|
|
26460
|
+
const _c0$t = a0 => ({ "govuk-!-font-weight-bold": a0 });
|
|
26354
26461
|
function CaseFlagTableComponent_table_0_caption_1_Template(rf, ctx) { if (rf & 1) {
|
|
26355
26462
|
i0.ɵɵelementStart(0, "caption", 13);
|
|
26356
26463
|
i0.ɵɵtext(1);
|
|
@@ -26369,8 +26476,33 @@ function CaseFlagTableComponent_table_0_tr_19_Template(rf, ctx) { if (rf & 1) {
|
|
|
26369
26476
|
i0.ɵɵadvance(2);
|
|
26370
26477
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "None"));
|
|
26371
26478
|
} }
|
|
26372
|
-
function
|
|
26373
|
-
i0.ɵɵelementStart(0, "div")
|
|
26479
|
+
function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
26480
|
+
i0.ɵɵelementStart(0, "div");
|
|
26481
|
+
i0.ɵɵnamespaceSVG();
|
|
26482
|
+
i0.ɵɵelementStart(1, "svg", 24);
|
|
26483
|
+
i0.ɵɵelement(2, "path", 25);
|
|
26484
|
+
i0.ɵɵelementEnd();
|
|
26485
|
+
i0.ɵɵnamespaceHTML();
|
|
26486
|
+
i0.ɵɵelementStart(3, "span", 26);
|
|
26487
|
+
i0.ɵɵtext(4);
|
|
26488
|
+
i0.ɵɵelementEnd()();
|
|
26489
|
+
} if (rf & 2) {
|
|
26490
|
+
const ctx_r0 = i0.ɵɵnextContext(4);
|
|
26491
|
+
i0.ɵɵadvance(4);
|
|
26492
|
+
i0.ɵɵtextInterpolate(ctx_r0.pvpDisplayText);
|
|
26493
|
+
} }
|
|
26494
|
+
function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
26495
|
+
i0.ɵɵelementStart(0, "div");
|
|
26496
|
+
i0.ɵɵtext(1);
|
|
26497
|
+
i0.ɵɵpipe(2, "flagFieldDisplay");
|
|
26498
|
+
i0.ɵɵelementEnd();
|
|
26499
|
+
} if (rf & 2) {
|
|
26500
|
+
const flagDetail_r2 = i0.ɵɵnextContext().$implicit;
|
|
26501
|
+
i0.ɵɵadvance();
|
|
26502
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, flagDetail_r2, "name"));
|
|
26503
|
+
} }
|
|
26504
|
+
function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
26505
|
+
i0.ɵɵelementStart(0, "div")(1, "span", 26);
|
|
26374
26506
|
i0.ɵɵtext(2);
|
|
26375
26507
|
i0.ɵɵelementEnd()();
|
|
26376
26508
|
} if (rf & 2) {
|
|
@@ -26378,8 +26510,8 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_15_Template(rf, ctx) {
|
|
|
26378
26510
|
i0.ɵɵadvance(2);
|
|
26379
26511
|
i0.ɵɵtextInterpolate1("Update Reason: ", flagDetail_r2.flagUpdateComment);
|
|
26380
26512
|
} }
|
|
26381
|
-
function
|
|
26382
|
-
i0.ɵɵelementStart(0, "strong",
|
|
26513
|
+
function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_22_Template(rf, ctx) { if (rf & 1) {
|
|
26514
|
+
i0.ɵɵelementStart(0, "strong", 27);
|
|
26383
26515
|
i0.ɵɵtext(1);
|
|
26384
26516
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
26385
26517
|
i0.ɵɵelementEnd();
|
|
@@ -26387,8 +26519,8 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template(rf, ctx
|
|
|
26387
26519
|
i0.ɵɵadvance();
|
|
26388
26520
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Active"));
|
|
26389
26521
|
} }
|
|
26390
|
-
function
|
|
26391
|
-
i0.ɵɵelementStart(0, "strong",
|
|
26522
|
+
function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template(rf, ctx) { if (rf & 1) {
|
|
26523
|
+
i0.ɵɵelementStart(0, "strong", 28);
|
|
26392
26524
|
i0.ɵɵtext(1);
|
|
26393
26525
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
26394
26526
|
i0.ɵɵelementEnd();
|
|
@@ -26396,8 +26528,8 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template(rf, ctx
|
|
|
26396
26528
|
i0.ɵɵadvance();
|
|
26397
26529
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Inactive"));
|
|
26398
26530
|
} }
|
|
26399
|
-
function
|
|
26400
|
-
i0.ɵɵelementStart(0, "strong",
|
|
26531
|
+
function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template(rf, ctx) { if (rf & 1) {
|
|
26532
|
+
i0.ɵɵelementStart(0, "strong", 29);
|
|
26401
26533
|
i0.ɵɵtext(1);
|
|
26402
26534
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
26403
26535
|
i0.ɵɵelementEnd();
|
|
@@ -26405,8 +26537,8 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template(rf, ctx
|
|
|
26405
26537
|
i0.ɵɵadvance();
|
|
26406
26538
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Requested"));
|
|
26407
26539
|
} }
|
|
26408
|
-
function
|
|
26409
|
-
i0.ɵɵelementStart(0, "strong",
|
|
26540
|
+
function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template(rf, ctx) { if (rf & 1) {
|
|
26541
|
+
i0.ɵɵelementStart(0, "strong", 30);
|
|
26410
26542
|
i0.ɵɵtext(1);
|
|
26411
26543
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
26412
26544
|
i0.ɵɵelementEnd();
|
|
@@ -26415,52 +26547,54 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_26_Template(rf, ctx
|
|
|
26415
26547
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Not approved"));
|
|
26416
26548
|
} }
|
|
26417
26549
|
function CaseFlagTableComponent_table_0_tbody_20_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
26418
|
-
i0.ɵɵelementStart(0, "tr", 16)(1, "td", 17)
|
|
26419
|
-
i0.ɵɵ
|
|
26420
|
-
i0.ɵɵ
|
|
26421
|
-
i0.ɵɵ
|
|
26422
|
-
i0.ɵɵ
|
|
26423
|
-
i0.ɵɵtext(6);
|
|
26424
|
-
i0.ɵɵpipe(7, "flagFieldDisplay");
|
|
26550
|
+
i0.ɵɵelementStart(0, "tr", 16)(1, "td", 17);
|
|
26551
|
+
i0.ɵɵtemplate(2, CaseFlagTableComponent_table_0_tbody_20_tr_1_div_2_Template, 5, 1, "div", 11)(3, CaseFlagTableComponent_table_0_tbody_20_tr_1_div_3_Template, 3, 4, "div", 11);
|
|
26552
|
+
i0.ɵɵelementStart(4, "div");
|
|
26553
|
+
i0.ɵɵtext(5);
|
|
26554
|
+
i0.ɵɵpipe(6, "flagFieldDisplay");
|
|
26425
26555
|
i0.ɵɵelementEnd();
|
|
26426
|
-
i0.ɵɵelementStart(
|
|
26427
|
-
i0.ɵɵtext(
|
|
26428
|
-
i0.ɵɵpipe(
|
|
26556
|
+
i0.ɵɵelementStart(7, "div");
|
|
26557
|
+
i0.ɵɵtext(8);
|
|
26558
|
+
i0.ɵɵpipe(9, "flagFieldDisplay");
|
|
26429
26559
|
i0.ɵɵelementEnd()();
|
|
26430
|
-
i0.ɵɵelementStart(
|
|
26431
|
-
i0.ɵɵtext(
|
|
26432
|
-
i0.ɵɵpipe(
|
|
26560
|
+
i0.ɵɵelementStart(10, "td", 17)(11, "div", 18);
|
|
26561
|
+
i0.ɵɵtext(12);
|
|
26562
|
+
i0.ɵɵpipe(13, "flagFieldDisplay");
|
|
26433
26563
|
i0.ɵɵelementEnd();
|
|
26434
|
-
i0.ɵɵtemplate(
|
|
26564
|
+
i0.ɵɵtemplate(14, CaseFlagTableComponent_table_0_tbody_20_tr_1_div_14_Template, 3, 1, "div", 11);
|
|
26435
26565
|
i0.ɵɵelementEnd();
|
|
26436
|
-
i0.ɵɵelementStart(
|
|
26437
|
-
i0.ɵɵtext(
|
|
26438
|
-
i0.ɵɵpipe(
|
|
26566
|
+
i0.ɵɵelementStart(15, "td", 17);
|
|
26567
|
+
i0.ɵɵtext(16);
|
|
26568
|
+
i0.ɵɵpipe(17, "date");
|
|
26439
26569
|
i0.ɵɵelementEnd();
|
|
26440
|
-
i0.ɵɵelementStart(
|
|
26441
|
-
i0.ɵɵtext(
|
|
26442
|
-
i0.ɵɵpipe(
|
|
26570
|
+
i0.ɵɵelementStart(18, "td", 17);
|
|
26571
|
+
i0.ɵɵtext(19);
|
|
26572
|
+
i0.ɵɵpipe(20, "date");
|
|
26443
26573
|
i0.ɵɵelementEnd();
|
|
26444
|
-
i0.ɵɵelementStart(
|
|
26445
|
-
i0.ɵɵtemplate(
|
|
26574
|
+
i0.ɵɵelementStart(21, "td", 19);
|
|
26575
|
+
i0.ɵɵtemplate(22, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_22_Template, 3, 3, "strong", 20)(23, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template, 3, 3, "strong", 21)(24, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template, 3, 3, "strong", 22)(25, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template, 3, 3, "strong", 23);
|
|
26446
26576
|
i0.ɵɵelementEnd()();
|
|
26447
26577
|
} if (rf & 2) {
|
|
26448
26578
|
const flagDetail_r2 = ctx.$implicit;
|
|
26449
26579
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
26580
|
+
i0.ɵɵadvance(2);
|
|
26581
|
+
i0.ɵɵproperty("ngIf", ctx_r0.isActivePvpFlag(flagDetail_r2));
|
|
26582
|
+
i0.ɵɵadvance();
|
|
26583
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.isActivePvpFlag(flagDetail_r2));
|
|
26584
|
+
i0.ɵɵadvance(2);
|
|
26585
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 13, flagDetail_r2, "otherDescription"));
|
|
26450
26586
|
i0.ɵɵadvance(3);
|
|
26451
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(
|
|
26452
|
-
i0.ɵɵadvance(3);
|
|
26453
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 14, flagDetail_r2, "otherDescription"));
|
|
26587
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(9, 16, flagDetail_r2, "subTypeValue"));
|
|
26454
26588
|
i0.ɵɵadvance(3);
|
|
26455
|
-
i0.ɵɵ
|
|
26456
|
-
i0.ɵɵadvance(
|
|
26457
|
-
i0.ɵɵ
|
|
26589
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(28, _c0$t, ctx_r0.isActivePvpFlag(flagDetail_r2)));
|
|
26590
|
+
i0.ɵɵadvance();
|
|
26591
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(13, 19, flagDetail_r2, "flagComment"), " ");
|
|
26458
26592
|
i0.ɵɵadvance(2);
|
|
26459
26593
|
i0.ɵɵproperty("ngIf", !ctx_r0.caseFlagsExternalUser && (flagDetail_r2.status === ctx_r0.caseFlagStatus.NOT_APPROVED || flagDetail_r2.status === ctx_r0.caseFlagStatus.INACTIVE) && flagDetail_r2.flagUpdateComment);
|
|
26460
26594
|
i0.ɵɵadvance(2);
|
|
26461
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(
|
|
26595
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(17, 22, flagDetail_r2.dateTimeCreated, "dd LLL yyyy"));
|
|
26462
26596
|
i0.ɵɵadvance(3);
|
|
26463
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(
|
|
26597
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(20, 25, flagDetail_r2.dateTimeModified, "dd LLL yyyy"));
|
|
26464
26598
|
i0.ɵɵadvance(3);
|
|
26465
26599
|
i0.ɵɵproperty("ngIf", flagDetail_r2.status === ctx_r0.caseFlagStatus.ACTIVE);
|
|
26466
26600
|
i0.ɵɵadvance();
|
|
@@ -26472,7 +26606,7 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_Template(rf, ctx) { if (rf
|
|
|
26472
26606
|
} }
|
|
26473
26607
|
function CaseFlagTableComponent_table_0_tbody_20_Template(rf, ctx) { if (rf & 1) {
|
|
26474
26608
|
i0.ɵɵelementStart(0, "tbody", 10);
|
|
26475
|
-
i0.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_20_tr_1_Template,
|
|
26609
|
+
i0.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_20_tr_1_Template, 26, 30, "tr", 15);
|
|
26476
26610
|
i0.ɵɵelementEnd();
|
|
26477
26611
|
} if (rf & 2) {
|
|
26478
26612
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -26530,11 +26664,18 @@ class CaseFlagTableComponent {
|
|
|
26530
26664
|
flagData;
|
|
26531
26665
|
firstColumnHeader;
|
|
26532
26666
|
caseFlagsExternalUser = false;
|
|
26667
|
+
pvpDisplayText = PVP_DISPLAY_TEXT;
|
|
26533
26668
|
get caseFlagStatus() {
|
|
26534
26669
|
return CaseFlagStatus;
|
|
26535
26670
|
}
|
|
26671
|
+
isPvpFlag(flagDetail) {
|
|
26672
|
+
return isPvpFlag(flagDetail);
|
|
26673
|
+
}
|
|
26674
|
+
isActivePvpFlag(flagDetail) {
|
|
26675
|
+
return isPvpFlag(flagDetail) && flagDetail?.status === CaseFlagStatus.ACTIVE;
|
|
26676
|
+
}
|
|
26536
26677
|
static ɵfac = function CaseFlagTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFlagTableComponent)(); };
|
|
26537
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader", caseFlagsExternalUser: "caseFlagsExternalUser" }, standalone: false, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], ["class", "govuk-table__caption govuk-table__caption--l", 4, "ngIf"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], [1, "govuk-table__caption", "govuk-table__caption--l"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], [1, "govuk-table__cell", "cell-flag-status"], ["class", "govuk-tag govuk-tag--turquoise", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], ["class", "govuk-tag govuk-tag--yellow", 4, "ngIf"], ["class", "govuk-tag govuk-tag--red", 4, "ngIf"], [1, "govuk-!-font-weight-bold"], [1, "govuk-tag", "govuk-tag--turquoise"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--yellow"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
26678
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader", caseFlagsExternalUser: "caseFlagsExternalUser" }, standalone: false, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], ["class", "govuk-table__caption govuk-table__caption--l", 4, "ngIf"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], [1, "govuk-table__caption", "govuk-table__caption--l"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], [3, "ngClass"], [1, "govuk-table__cell", "cell-flag-status"], ["class", "govuk-tag govuk-tag--turquoise", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], ["class", "govuk-tag govuk-tag--yellow", 4, "ngIf"], ["class", "govuk-tag govuk-tag--red", 4, "ngIf"], ["fill", "currentColor", "role", "presentation", "aria-hidden", "true", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], [1, "govuk-!-font-weight-bold"], [1, "govuk-tag", "govuk-tag--turquoise"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--yellow"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
26538
26679
|
i0.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 21, 16, "table", 0);
|
|
26539
26680
|
} if (rf & 2) {
|
|
26540
26681
|
i0.ɵɵproperty("ngIf", ctx.flagData);
|
|
@@ -26542,7 +26683,7 @@ class CaseFlagTableComponent {
|
|
|
26542
26683
|
}
|
|
26543
26684
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFlagTableComponent, [{
|
|
26544
26685
|
type: Component,
|
|
26545
|
-
args: [{ selector: 'ccd-case-flag-table', standalone: false, template: "<table class=\"govuk-table\" *ngIf=\"flagData\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\" *ngIf=\"tableCaption\">{{tableCaption}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header col-party-name\">{{firstColumnHeader}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-comments\">{{'Comments' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-creation-date\">{{'Creation date' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-last-modified\">{{'Last modified' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-flag-status\">{{'Flag status' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr *ngIf=\"!flagData.flags.details || (flagData.flags.details && flagData.flags.details.length === 0)\">\n <td colspan=\"5\">{{'None' | rpxTranslate}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"flagData.flags.details && flagData.flags.details.length > 0\">\n <tr scope=\"row\" class=\"govuk-table__row\" *ngFor=\"let flagDetail of flagData.flags.details\">\n <td class=\"govuk-table__cell\">\n <div>{{flagDetail | flagFieldDisplay:'name'}}</div>\n <div>{{flagDetail | flagFieldDisplay:'otherDescription'}}</div>\n <div>{{flagDetail | flagFieldDisplay:'subTypeValue'}}</div>\n </td>\n <td class=\"govuk-table__cell\">\n <div
|
|
26686
|
+
args: [{ selector: 'ccd-case-flag-table', standalone: false, template: "<table class=\"govuk-table\" *ngIf=\"flagData\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\" *ngIf=\"tableCaption\">{{tableCaption}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header col-party-name\">{{firstColumnHeader}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-comments\">{{'Comments' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-creation-date\">{{'Creation date' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-last-modified\">{{'Last modified' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-flag-status\">{{'Flag status' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr *ngIf=\"!flagData.flags.details || (flagData.flags.details && flagData.flags.details.length === 0)\">\n <td colspan=\"5\">{{'None' | rpxTranslate}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"flagData.flags.details && flagData.flags.details.length > 0\">\n <tr scope=\"row\" class=\"govuk-table__row\" *ngFor=\"let flagDetail of flagData.flags.details\">\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"isActivePvpFlag(flagDetail)\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" aria-hidden=\"true\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\"></path>\n </svg>\n <span class=\"govuk-!-font-weight-bold\">{{pvpDisplayText}}</span>\n </div>\n <div *ngIf=\"!isActivePvpFlag(flagDetail)\">{{flagDetail | flagFieldDisplay:'name'}}</div>\n <div>{{flagDetail | flagFieldDisplay:'otherDescription'}}</div>\n <div>{{flagDetail | flagFieldDisplay:'subTypeValue'}}</div>\n </td>\n <td class=\"govuk-table__cell\">\n <div [ngClass]=\"{'govuk-!-font-weight-bold': isActivePvpFlag(flagDetail)}\">\n {{flagDetail | flagFieldDisplay:'flagComment'}}\n </div>\n <div *ngIf=\"!caseFlagsExternalUser &&\n (flagDetail.status === caseFlagStatus.NOT_APPROVED || flagDetail.status === caseFlagStatus.INACTIVE) &&\n flagDetail.flagUpdateComment\">\n <span class=\"govuk-!-font-weight-bold\">Update Reason: {{flagDetail.flagUpdateComment}}</span>\n </div>\n </td>\n <td class=\"govuk-table__cell\">{{flagDetail.dateTimeCreated | date: 'dd LLL yyyy'}}</td>\n <td class=\"govuk-table__cell\">{{flagDetail.dateTimeModified | date: 'dd LLL yyyy'}}</td>\n <td class=\"govuk-table__cell cell-flag-status\">\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.ACTIVE\" class=\"govuk-tag govuk-tag--turquoise\">{{'Active' | rpxTranslate}}</strong>\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.INACTIVE\" class=\"govuk-tag govuk-tag--grey\">{{'Inactive' | rpxTranslate}}</strong>\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.REQUESTED\" class=\"govuk-tag govuk-tag--yellow\">{{'Requested' | rpxTranslate}}</strong>\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.NOT_APPROVED\" class=\"govuk-tag govuk-tag--red\">{{'Not approved' | rpxTranslate}}</strong>\n </td>\n </tr>\n </tbody>\n</table>\n", styles: [".govuk-table .govuk-table__caption{margin-top:10px}.govuk-table .govuk-table__head .govuk-table__row .col-party-name{width:24%}.govuk-table .govuk-table__head .govuk-table__row .col-comments{width:42%}.govuk-table .govuk-table__head .govuk-table__row .col-creation-date,.govuk-table .govuk-table__head .govuk-table__row .col-last-modified{width:12%}.govuk-table .govuk-table__head .govuk-table__row .col-flag-status{width:10%}.govuk-table .govuk-table__body .govuk-table__row .cell-flag-status{white-space:nowrap}\n"] }]
|
|
26546
26687
|
}], null, { tableCaption: [{
|
|
26547
26688
|
type: Input
|
|
26548
26689
|
}], flagData: [{
|
|
@@ -26552,7 +26693,7 @@ class CaseFlagTableComponent {
|
|
|
26552
26693
|
}], caseFlagsExternalUser: [{
|
|
26553
26694
|
type: Input
|
|
26554
26695
|
}] }); })();
|
|
26555
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFlagTableComponent, { className: "CaseFlagTableComponent", filePath: "lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.ts", lineNumber:
|
|
26696
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFlagTableComponent, { className: "CaseFlagTableComponent", filePath: "lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.ts", lineNumber: 12 }); })();
|
|
26556
26697
|
|
|
26557
26698
|
const _c0$s = a0 => ({ "form-group-error": a0 });
|
|
26558
26699
|
function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -31991,7 +32132,7 @@ i0.ɵɵsetComponentScope(
|
|
|
31991
32132
|
CaseFileViewFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i14.MediaViewerComponent, CaseFileViewFolderComponent]; }, []);
|
|
31992
32133
|
i0.ɵɵsetComponentScope(
|
|
31993
32134
|
// Components for case flags
|
|
31994
|
-
CaseFlagTableComponent, function () { return [i5.NgForOf, i5.NgIf]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
|
|
32135
|
+
CaseFlagTableComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
|
|
31995
32136
|
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]; });
|
|
31996
32137
|
i0.ɵɵsetComponentScope(SearchLanguageInterpreterComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i15.MatLegacyInput, i6.MatLegacyAutocomplete, i6.MatLegacyAutocompleteTrigger, i7.MatLegacyOption]; }, function () { return [i5.AsyncPipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe,
|
|
31997
32138
|
LanguageInterpreterDisplayPipe]; });
|
|
@@ -36168,6 +36309,7 @@ class CaseFullAccessViewComponent {
|
|
|
36168
36309
|
activeCaseFlags = false;
|
|
36169
36310
|
caseFlagsExternalUser = false;
|
|
36170
36311
|
caseFlagsReadExternalMode = '#ARGUMENT(READ,EXTERNAL)';
|
|
36312
|
+
potentiallyViolentPersonFlagPrefix = `${PVP_DISPLAY_TEXT}.`;
|
|
36171
36313
|
subs = [];
|
|
36172
36314
|
eventId;
|
|
36173
36315
|
isEventButtonClicked = false;
|
|
@@ -36472,9 +36614,7 @@ class CaseFullAccessViewComponent {
|
|
|
36472
36614
|
}
|
|
36473
36615
|
hasActiveCaseFlags() {
|
|
36474
36616
|
// Determine which tab contains the FlagLauncher CaseField type, from the CaseView object in the snapshot data
|
|
36475
|
-
const caseFlagsTab = this.caseDetails?.tabs
|
|
36476
|
-
? (this.caseDetails.tabs).filter((tab) => tab.fields && tab.fields.some((caseField) => FieldsUtils.isFlagLauncherCaseField(caseField)))[0]
|
|
36477
|
-
: null;
|
|
36617
|
+
const caseFlagsTab = this.caseDetails?.tabs?.find((tab) => tab.fields?.some((caseField) => FieldsUtils.isFlagLauncherCaseField(caseField))) ?? null;
|
|
36478
36618
|
if (caseFlagsTab) {
|
|
36479
36619
|
// Check whether the FlagLauncher CaseField is in external mode or not; the notification banner should not be
|
|
36480
36620
|
// displayed for external users
|
|
@@ -36489,8 +36629,12 @@ class CaseFullAccessViewComponent {
|
|
|
36489
36629
|
return FieldsUtils.countActiveFlagsInCaseField(active, caseFlag);
|
|
36490
36630
|
}, 0);
|
|
36491
36631
|
if (activeCaseFlags > 0) {
|
|
36492
|
-
const
|
|
36632
|
+
const hasActivePotentiallyViolentPersonFlag = this.hasActivePotentiallyViolentPersonFlag(caseFlagsTab.fields);
|
|
36633
|
+
const baseDescription = activeCaseFlags > 1
|
|
36493
36634
|
? `There are ${activeCaseFlags} active flags on this case.` : 'There is 1 active flag on this case.';
|
|
36635
|
+
const description = hasActivePotentiallyViolentPersonFlag
|
|
36636
|
+
? `${this.potentiallyViolentPersonFlagPrefix} ${baseDescription}`
|
|
36637
|
+
: baseDescription;
|
|
36494
36638
|
// Initialise and display notification banner
|
|
36495
36639
|
this.notificationBannerConfig = {
|
|
36496
36640
|
bannerType: NotificationBannerType.INFORMATION,
|
|
@@ -36507,6 +36651,9 @@ class CaseFullAccessViewComponent {
|
|
|
36507
36651
|
}
|
|
36508
36652
|
return false;
|
|
36509
36653
|
}
|
|
36654
|
+
hasActivePotentiallyViolentPersonFlag(caseFields) {
|
|
36655
|
+
return hasActivePvpFlagInCaseFields(caseFields);
|
|
36656
|
+
}
|
|
36510
36657
|
/**
|
|
36511
36658
|
* Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
|
|
36512
36659
|
* fields.
|
|
@@ -36528,7 +36675,10 @@ class CaseFullAccessViewComponent {
|
|
|
36528
36675
|
}
|
|
36529
36676
|
}
|
|
36530
36677
|
sortTabFieldsAndFilterTabs(tabs) {
|
|
36531
|
-
return tabs?.map((tab) =>
|
|
36678
|
+
return tabs?.map((tab) => ({
|
|
36679
|
+
...tab,
|
|
36680
|
+
fields: this.orderService.sort(tab.fields)
|
|
36681
|
+
}))
|
|
36532
36682
|
.filter((tab) => ShowCondition.getInstance(tab.show_condition).matchByContextFields(this.caseFields));
|
|
36533
36683
|
}
|
|
36534
36684
|
getTabFields() {
|
|
@@ -36618,7 +36768,7 @@ class CaseFullAccessViewComponent {
|
|
|
36618
36768
|
type: ViewChild,
|
|
36619
36769
|
args: ['tabGroup', { static: false }]
|
|
36620
36770
|
}] }); })();
|
|
36621
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFullAccessViewComponent, { className: "CaseFullAccessViewComponent", filePath: "lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts", lineNumber:
|
|
36771
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFullAccessViewComponent, { className: "CaseFullAccessViewComponent", filePath: "lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts", lineNumber: 48 }); })();
|
|
36622
36772
|
|
|
36623
36773
|
class PrintUrlPipe {
|
|
36624
36774
|
appConfig;
|