@hmcts/ccd-case-ui-toolkit 7.3.97 → 7.3.98-exui-4454-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +649 -172
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/index.d.ts +136 -44
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -63,8 +63,8 @@ import * as i10 from '@angular/material/legacy-tabs';
|
|
|
63
63
|
import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
|
|
64
64
|
import { compressToUTF16, decompressFromUTF16 } from 'lz-string';
|
|
65
65
|
|
|
66
|
-
const _c0$
|
|
67
|
-
const _c1$
|
|
66
|
+
const _c0$1a = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
67
|
+
const _c1$w = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
68
68
|
function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
69
69
|
i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
|
|
70
70
|
i0.ɵɵprojection(2);
|
|
@@ -140,8 +140,8 @@ class FooterComponent {
|
|
|
140
140
|
phone;
|
|
141
141
|
workhours;
|
|
142
142
|
static ɵfac = function FooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FooterComponent)(); };
|
|
143
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, standalone: false, ngContentSelectors: _c1$
|
|
144
|
-
i0.ɵɵprojectionDef(_c0$
|
|
143
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, standalone: false, ngContentSelectors: _c1$w, 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) {
|
|
144
|
+
i0.ɵɵprojectionDef(_c0$1a);
|
|
145
145
|
i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
|
|
146
146
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
|
|
147
147
|
i0.ɵɵelementEnd()();
|
|
@@ -168,8 +168,8 @@ class FooterComponent {
|
|
|
168
168
|
}] }); })();
|
|
169
169
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 9 }); })();
|
|
170
170
|
|
|
171
|
-
const _c0$
|
|
172
|
-
const _c1$
|
|
171
|
+
const _c0$19 = [[["", "headerNavigation", ""]]];
|
|
172
|
+
const _c1$v = ["[headerNavigation]"];
|
|
173
173
|
function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
174
174
|
i0.ɵɵelementStart(0, "div")(1, "a", 12);
|
|
175
175
|
i0.ɵɵelement(2, "img", 13);
|
|
@@ -210,8 +210,8 @@ class HeaderBarComponent {
|
|
|
210
210
|
this.signOutRequest.emit();
|
|
211
211
|
}
|
|
212
212
|
static ɵfac = function HeaderBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HeaderBarComponent)(); };
|
|
213
|
-
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$
|
|
214
|
-
i0.ɵɵprojectionDef(_c0$
|
|
213
|
+
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$v, 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) {
|
|
214
|
+
i0.ɵɵprojectionDef(_c0$19);
|
|
215
215
|
i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
|
|
216
216
|
i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 4, 1, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
|
|
217
217
|
i0.ɵɵelementEnd();
|
|
@@ -261,13 +261,13 @@ class HeaderBarComponent {
|
|
|
261
261
|
}] }); })();
|
|
262
262
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 9 }); })();
|
|
263
263
|
|
|
264
|
-
const _c0$
|
|
265
|
-
const _c1$
|
|
264
|
+
const _c0$18 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
265
|
+
const _c1$u = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
266
266
|
class NavigationComponent {
|
|
267
267
|
isSolicitor;
|
|
268
268
|
static ɵfac = function NavigationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavigationComponent)(); };
|
|
269
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, standalone: false, ngContentSelectors: _c1$
|
|
270
|
-
i0.ɵɵprojectionDef(_c0$
|
|
269
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, standalone: false, ngContentSelectors: _c1$u, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
270
|
+
i0.ɵɵprojectionDef(_c0$18);
|
|
271
271
|
i0.ɵɵelementStart(0, "div")(1, "nav", 0);
|
|
272
272
|
i0.ɵɵprojection(2);
|
|
273
273
|
i0.ɵɵprojection(3, 1);
|
|
@@ -385,12 +385,12 @@ class HeadersModule {
|
|
|
385
385
|
}], null, null); })();
|
|
386
386
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
|
|
387
387
|
|
|
388
|
-
const _c0$
|
|
389
|
-
const _c1$
|
|
388
|
+
const _c0$17 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
389
|
+
const _c1$t = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
390
390
|
class BodyComponent {
|
|
391
391
|
static ɵfac = function BodyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BodyComponent)(); };
|
|
392
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], standalone: false, ngContentSelectors: _c1$
|
|
393
|
-
i0.ɵɵprojectionDef(_c0$
|
|
392
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], standalone: false, ngContentSelectors: _c1$t, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
393
|
+
i0.ɵɵprojectionDef(_c0$17);
|
|
394
394
|
i0.ɵɵelementStart(0, "div", 0);
|
|
395
395
|
i0.ɵɵprojection(1);
|
|
396
396
|
i0.ɵɵprojection(2, 1);
|
|
@@ -404,7 +404,7 @@ class BodyComponent {
|
|
|
404
404
|
}], null, null); })();
|
|
405
405
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BodyComponent, { className: "BodyComponent", filePath: "lib/components/body/body.component.ts", lineNumber: 10 }); })();
|
|
406
406
|
|
|
407
|
-
const _c0$
|
|
407
|
+
const _c0$16 = a0 => ({ "govuk-input--error": a0 });
|
|
408
408
|
function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
409
409
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
410
410
|
i0.ɵɵelementStart(0, "div", 15)(1, "span", 8);
|
|
@@ -421,7 +421,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
|
421
421
|
i0.ɵɵadvance();
|
|
422
422
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Hour"));
|
|
423
423
|
i0.ɵɵadvance(2);
|
|
424
|
-
i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
424
|
+
i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$16, ctx_r6.isInvalid));
|
|
425
425
|
i0.ɵɵattribute("aria-labelledby", "hour-label-" + ctx_r6.hourId());
|
|
426
426
|
} }
|
|
427
427
|
function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -440,7 +440,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
|
440
440
|
i0.ɵɵadvance();
|
|
441
441
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Minute"));
|
|
442
442
|
i0.ɵɵadvance(2);
|
|
443
|
-
i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
443
|
+
i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$16, ctx_r6.isInvalid));
|
|
444
444
|
i0.ɵɵattribute("aria-labelledby", "minute-label-" + ctx_r6.minuteId());
|
|
445
445
|
} }
|
|
446
446
|
function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -459,7 +459,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
|
459
459
|
i0.ɵɵadvance();
|
|
460
460
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Second"));
|
|
461
461
|
i0.ɵɵadvance(2);
|
|
462
|
-
i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
462
|
+
i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$16, ctx_r6.isInvalid));
|
|
463
463
|
i0.ɵɵattribute("aria-labelledby", "second-label-" + ctx_r6.secondId());
|
|
464
464
|
} }
|
|
465
465
|
class DateInputComponent {
|
|
@@ -695,21 +695,21 @@ class DateInputComponent {
|
|
|
695
695
|
i0.ɵɵadvance();
|
|
696
696
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 24, "Day"));
|
|
697
697
|
i0.ɵɵadvance(2);
|
|
698
|
-
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$
|
|
698
|
+
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$16, ctx.isInvalid));
|
|
699
699
|
i0.ɵɵattribute("aria-labelledby", "day-label-" + ctx.dayId());
|
|
700
700
|
i0.ɵɵadvance(3);
|
|
701
701
|
i0.ɵɵattribute("id", "month-label-" + ctx.monthId());
|
|
702
702
|
i0.ɵɵadvance();
|
|
703
703
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 26, "Month"));
|
|
704
704
|
i0.ɵɵadvance(2);
|
|
705
|
-
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$
|
|
705
|
+
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$16, ctx.isInvalid));
|
|
706
706
|
i0.ɵɵattribute("aria-labelledby", "month-label-" + ctx.monthId());
|
|
707
707
|
i0.ɵɵadvance(3);
|
|
708
708
|
i0.ɵɵattribute("id", "year-label-" + ctx.yearId());
|
|
709
709
|
i0.ɵɵadvance();
|
|
710
710
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 28, "Year"));
|
|
711
711
|
i0.ɵɵadvance(2);
|
|
712
|
-
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$
|
|
712
|
+
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$16, ctx.isInvalid));
|
|
713
713
|
i0.ɵɵattribute("aria-labelledby", "year-label-" + ctx.yearId());
|
|
714
714
|
i0.ɵɵadvance(2);
|
|
715
715
|
i0.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
@@ -746,7 +746,7 @@ class DateInputComponent {
|
|
|
746
746
|
}] }); })();
|
|
747
747
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateInputComponent, { className: "DateInputComponent", filePath: "lib/components/form/date-input/date-input.component.ts", lineNumber: 21 }); })();
|
|
748
748
|
|
|
749
|
-
const _c0$
|
|
749
|
+
const _c0$15 = ["*"];
|
|
750
750
|
function AlertComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
751
751
|
i0.ɵɵelementContainerStart(0);
|
|
752
752
|
i0.ɵɵnamespaceSVG();
|
|
@@ -796,7 +796,7 @@ class AlertComponent {
|
|
|
796
796
|
showIcon = true;
|
|
797
797
|
alertMessageType = AlertMessageType;
|
|
798
798
|
static ɵfac = function AlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertComponent)(); };
|
|
799
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, standalone: false, ngContentSelectors: _c0$
|
|
799
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, standalone: false, ngContentSelectors: _c0$15, 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) {
|
|
800
800
|
i0.ɵɵprojectionDef();
|
|
801
801
|
i0.ɵɵelementStart(0, "div", 0);
|
|
802
802
|
i0.ɵɵelementContainerStart(1, 1);
|
|
@@ -1010,20 +1010,20 @@ class NotificationBannerComponent {
|
|
|
1010
1010
|
}] }); })();
|
|
1011
1011
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 11 }); })();
|
|
1012
1012
|
|
|
1013
|
-
const _c0$
|
|
1014
|
-
const _c1$
|
|
1013
|
+
const _c0$14 = ["*"];
|
|
1014
|
+
const _c1$s = a0 => ({ "js-hidden": a0 });
|
|
1015
1015
|
class TabComponent {
|
|
1016
1016
|
id;
|
|
1017
1017
|
title;
|
|
1018
1018
|
selected;
|
|
1019
1019
|
static ɵfac = function TabComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TabComponent)(); };
|
|
1020
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, standalone: false, ngContentSelectors: _c0$
|
|
1020
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, standalone: false, ngContentSelectors: _c0$14, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1021
1021
|
i0.ɵɵprojectionDef();
|
|
1022
1022
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1023
1023
|
i0.ɵɵprojection(1);
|
|
1024
1024
|
i0.ɵɵelementEnd();
|
|
1025
1025
|
} if (rf & 2) {
|
|
1026
|
-
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c1$
|
|
1026
|
+
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c1$s, !ctx.selected));
|
|
1027
1027
|
i0.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1028
1028
|
} }, dependencies: [i5.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media(max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media(min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0px;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
|
|
1029
1029
|
}
|
|
@@ -1039,8 +1039,8 @@ class TabComponent {
|
|
|
1039
1039
|
}] }); })();
|
|
1040
1040
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 11 }); })();
|
|
1041
1041
|
|
|
1042
|
-
const _c0$
|
|
1043
|
-
const _c1$
|
|
1042
|
+
const _c0$13 = ["tab"];
|
|
1043
|
+
const _c1$r = ["*"];
|
|
1044
1044
|
const _c2$5 = () => ["."];
|
|
1045
1045
|
const _c3$1 = a0 => ({ "tabs-toggle-selected": a0 });
|
|
1046
1046
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1086,11 +1086,11 @@ class TabsComponent {
|
|
|
1086
1086
|
let _t;
|
|
1087
1087
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
|
|
1088
1088
|
} }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1089
|
-
i0.ɵɵviewQuery(_c0$
|
|
1089
|
+
i0.ɵɵviewQuery(_c0$13, 5);
|
|
1090
1090
|
} if (rf & 2) {
|
|
1091
1091
|
let _t;
|
|
1092
1092
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
1093
|
-
} }, standalone: false, ngContentSelectors: _c1$
|
|
1093
|
+
} }, standalone: false, ngContentSelectors: _c1$r, decls: 5, vars: 1, consts: [["tab", ""], [1, "tabs"], ["role", "list", 1, "tabs-list"], ["class", "tabs-list-item", 4, "ngFor", "ngForOf"], [1, "tabs-content"], [1, "tabs-list-item"], ["role", "tab", "tabindex", "0", 1, "tabs-toggle", 3, "click", "routerLink", "fragment", "ngClass"]], template: function TabsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1094
1094
|
i0.ɵɵprojectionDef();
|
|
1095
1095
|
i0.ɵɵelementStart(0, "div", 1)(1, "ul", 2);
|
|
1096
1096
|
i0.ɵɵtemplate(2, TabsComponent_li_2_Template, 5, 11, "li", 3);
|
|
@@ -1145,7 +1145,7 @@ class TabsModule {
|
|
|
1145
1145
|
RouterModule, i1.RpxTranslationModule], exports: [TabsComponent,
|
|
1146
1146
|
TabComponent] }); })();
|
|
1147
1147
|
|
|
1148
|
-
const _c0$
|
|
1148
|
+
const _c0$12 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
|
|
1149
1149
|
class ActivityBannerComponent {
|
|
1150
1150
|
bannerType;
|
|
1151
1151
|
description;
|
|
@@ -1164,7 +1164,7 @@ class ActivityBannerComponent {
|
|
|
1164
1164
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
1165
1165
|
i0.ɵɵelementEnd()();
|
|
1166
1166
|
} if (rf & 2) {
|
|
1167
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$
|
|
1167
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$12, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1168
1168
|
i0.ɵɵadvance(2);
|
|
1169
1169
|
i0.ɵɵproperty("alt", i0.ɵɵinterpolate(i0.ɵɵpipeBind1(3, 6, ctx.description)))("src", i0.ɵɵinterpolate(ctx.imageLink), i0.ɵɵsanitizeUrl);
|
|
1170
1170
|
i0.ɵɵadvance(3);
|
|
@@ -4173,6 +4173,84 @@ var SortOrder$1;
|
|
|
4173
4173
|
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
4174
4174
|
})(SortOrder$1 || (SortOrder$1 = {}));
|
|
4175
4175
|
|
|
4176
|
+
const STAFF_CACHE_ROLE_CATEGORIES = new Set([
|
|
4177
|
+
'ADMIN',
|
|
4178
|
+
'CTSC',
|
|
4179
|
+
'LEGAL_OPERATIONS'
|
|
4180
|
+
]);
|
|
4181
|
+
const SUPPORTED_ROLE_CATEGORIES = new Set([
|
|
4182
|
+
...STAFF_CACHE_ROLE_CATEGORIES,
|
|
4183
|
+
'JUDICIAL',
|
|
4184
|
+
]);
|
|
4185
|
+
// Aliases allow the definition to use the shorter, hyphenated form within #ARGUMENT(...)
|
|
4186
|
+
const ROLE_CATEGORY_ALIASES = {
|
|
4187
|
+
LEGAL_OPS: 'LEGAL_OPERATIONS'
|
|
4188
|
+
};
|
|
4189
|
+
const ARGUMENT_REGEX = /#ARGUMENT\(([^)]*)\)/;
|
|
4190
|
+
const CATEGORY_PREFIX = 'CATEGORY-';
|
|
4191
|
+
const REGION_PREFIX = 'REGION-';
|
|
4192
|
+
/**
|
|
4193
|
+
* Parses the `display_context_parameter` of a StaffUser field to determine the filters to apply
|
|
4194
|
+
* when searching reference data.
|
|
4195
|
+
*
|
|
4196
|
+
* Expected format: `#ARGUMENT(CATEGORY-LEGAL-OPS,CATEGORY-ADMIN,REGION-1235)`
|
|
4197
|
+
*/
|
|
4198
|
+
function parseStaffUserSearchConfiguration(displayContextParameter) {
|
|
4199
|
+
if (!displayContextParameter) {
|
|
4200
|
+
return invalidConfiguration();
|
|
4201
|
+
}
|
|
4202
|
+
const match = ARGUMENT_REGEX.exec(displayContextParameter);
|
|
4203
|
+
if (!match?.[1]) {
|
|
4204
|
+
return invalidConfiguration();
|
|
4205
|
+
}
|
|
4206
|
+
const tokens = match[1].split(',').map(token => token.trim());
|
|
4207
|
+
if (tokens.some(token => !token)) {
|
|
4208
|
+
return invalidConfiguration();
|
|
4209
|
+
}
|
|
4210
|
+
const roleCategories = [];
|
|
4211
|
+
for (const token of tokens) {
|
|
4212
|
+
if (token.startsWith(CATEGORY_PREFIX)) {
|
|
4213
|
+
const category = normaliseRoleCategory(token.substring(CATEGORY_PREFIX.length));
|
|
4214
|
+
if (!isStaffUserRoleCategory(category)) {
|
|
4215
|
+
return invalidConfiguration();
|
|
4216
|
+
}
|
|
4217
|
+
if (!roleCategories.includes(category)) {
|
|
4218
|
+
roleCategories.push(category);
|
|
4219
|
+
}
|
|
4220
|
+
}
|
|
4221
|
+
else if (token.startsWith(REGION_PREFIX)) {
|
|
4222
|
+
// Region filtering is not supported in this version; REGION- tokens are silently ignored
|
|
4223
|
+
}
|
|
4224
|
+
else {
|
|
4225
|
+
return invalidConfiguration();
|
|
4226
|
+
}
|
|
4227
|
+
}
|
|
4228
|
+
if (!roleCategories.length) {
|
|
4229
|
+
return invalidConfiguration();
|
|
4230
|
+
}
|
|
4231
|
+
return {
|
|
4232
|
+
valid: true,
|
|
4233
|
+
configuration: {
|
|
4234
|
+
roleCategories,
|
|
4235
|
+
staffRoleCategories: roleCategories.filter(isStaffCacheRoleCategory),
|
|
4236
|
+
includesJudicial: roleCategories.includes('JUDICIAL')
|
|
4237
|
+
}
|
|
4238
|
+
};
|
|
4239
|
+
}
|
|
4240
|
+
function normaliseRoleCategory(category) {
|
|
4241
|
+
const normalised = category.replaceAll('-', '_');
|
|
4242
|
+
return ROLE_CATEGORY_ALIASES[normalised] || normalised;
|
|
4243
|
+
}
|
|
4244
|
+
function isStaffUserRoleCategory(category) {
|
|
4245
|
+
return SUPPORTED_ROLE_CATEGORIES.has(category);
|
|
4246
|
+
}
|
|
4247
|
+
function isStaffCacheRoleCategory(category) {
|
|
4248
|
+
return STAFF_CACHE_ROLE_CATEGORIES.has(category);
|
|
4249
|
+
}
|
|
4250
|
+
function invalidConfiguration() {
|
|
4251
|
+
return { valid: false, error: 'INVALID_ROLE_CATEGORIES' };
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4176
4254
|
class WorkbasketInputModel {
|
|
4177
4255
|
label;
|
|
4178
4256
|
order;
|
|
@@ -6174,14 +6252,13 @@ class Constants {
|
|
|
6174
6252
|
}], null, null); })();
|
|
6175
6253
|
|
|
6176
6254
|
class FormValidatorsService {
|
|
6177
|
-
static
|
|
6178
|
-
|
|
6179
|
-
];
|
|
6255
|
+
static CUSTOM_VALIDATED_FIELD_TYPES = ['Date', 'MoneyGBP', 'Label'];
|
|
6256
|
+
static CUSTOM_VALIDATED_COMPLEX_TYPE_IDS = ['JudicialUser', 'StaffUser'];
|
|
6180
6257
|
static DEFAULT_INPUT_TEXT = 'text';
|
|
6181
6258
|
static DEFAULT_INPUT_TEXTAREA = 'textAreas';
|
|
6182
6259
|
static addValidators(caseField, control) {
|
|
6183
6260
|
if (caseField.display_context === Constants.MANDATORY &&
|
|
6184
|
-
FormValidatorsService.
|
|
6261
|
+
!FormValidatorsService.isCustomValidatedType(caseField)) {
|
|
6185
6262
|
const validators = [Validators.required];
|
|
6186
6263
|
if (caseField.field_type.type === 'Text') {
|
|
6187
6264
|
validators.push(this.markDownPatternValidator());
|
|
@@ -6222,6 +6299,11 @@ class FormValidatorsService {
|
|
|
6222
6299
|
};
|
|
6223
6300
|
return validator;
|
|
6224
6301
|
}
|
|
6302
|
+
static isCustomValidatedType(caseField) {
|
|
6303
|
+
return FormValidatorsService.CUSTOM_VALIDATED_FIELD_TYPES.includes(caseField.field_type.type)
|
|
6304
|
+
|| (caseField.field_type.type === 'Complex'
|
|
6305
|
+
&& FormValidatorsService.CUSTOM_VALIDATED_COMPLEX_TYPE_IDS.includes(caseField.field_type.id));
|
|
6306
|
+
}
|
|
6225
6307
|
static markDownPatternValidator() {
|
|
6226
6308
|
// Matches: [text](url), , <img ...>, <a ...>...</a>
|
|
6227
6309
|
const inlineMarkdownPattern = /(?:!?\[[^\]]{0,500}\]\([^)]{0,500}\)|<(?:img\b[^>]{0,500}>|a\b[^>]{0,500}>[\s\S]*?<\/a>))/i;
|
|
@@ -8847,11 +8929,17 @@ class JurisdictionService {
|
|
|
8847
8929
|
return this._selectedJurisdictionBS;
|
|
8848
8930
|
}
|
|
8849
8931
|
searchJudicialUsers(searchTerm, serviceId) {
|
|
8850
|
-
return this.httpService.post('api/prd/judicial/getJudicialUsersSearch', {
|
|
8932
|
+
return this.httpService.post('api/prd/judicial/getJudicialUsersSearch', {
|
|
8933
|
+
searchString: searchTerm,
|
|
8934
|
+
serviceCode: serviceId
|
|
8935
|
+
});
|
|
8851
8936
|
}
|
|
8852
8937
|
searchJudicialUsersByPersonalCodes(personalCodes) {
|
|
8853
8938
|
return this.httpService.post('api/prd/judicial/searchJudicialUserByPersonalCodes', { personal_code: personalCodes });
|
|
8854
8939
|
}
|
|
8940
|
+
getJudicialUserByIdamId(idamId) {
|
|
8941
|
+
return this.httpService.post('api/prd/judicial/searchJudicialUserByIdamId', { sidam_ids: [idamId] }).pipe(map((users) => (users && users.length > 0 ? users[0] : null)));
|
|
8942
|
+
}
|
|
8855
8943
|
static ɵfac = function JurisdictionService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || JurisdictionService)(i0.ɵɵinject(HttpService)); };
|
|
8856
8944
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: JurisdictionService, factory: JurisdictionService.ɵfac });
|
|
8857
8945
|
}
|
|
@@ -9265,30 +9353,63 @@ class WindowService {
|
|
|
9265
9353
|
locationAssign(url) {
|
|
9266
9354
|
window.location.assign(url);
|
|
9267
9355
|
}
|
|
9268
|
-
setLocalStorage(key, value) {
|
|
9269
|
-
window.localStorage.setItem(key, value);
|
|
9270
|
-
}
|
|
9271
|
-
getLocalStorage(key) {
|
|
9272
|
-
return window.localStorage.getItem(key);
|
|
9273
|
-
}
|
|
9274
|
-
clearLocalStorage() {
|
|
9275
|
-
window.localStorage.clear();
|
|
9276
|
-
}
|
|
9277
|
-
removeLocalStorage(key) {
|
|
9278
|
-
window.localStorage.removeItem(key);
|
|
9279
|
-
}
|
|
9280
9356
|
setSessionStorage(key, value) {
|
|
9281
9357
|
window.sessionStorage.setItem(key, value);
|
|
9282
9358
|
}
|
|
9283
9359
|
getSessionStorage(key) {
|
|
9284
9360
|
return window.sessionStorage.getItem(key);
|
|
9285
9361
|
}
|
|
9362
|
+
removeSessionStorage(key) {
|
|
9363
|
+
window.sessionStorage.removeItem(key);
|
|
9364
|
+
}
|
|
9365
|
+
clearSessionStorage() {
|
|
9366
|
+
window.sessionStorage.clear();
|
|
9367
|
+
}
|
|
9286
9368
|
openOnNewTab(url) {
|
|
9287
9369
|
const openedWindow = window.open(url, '_blank', 'noopener,noreferrer');
|
|
9288
9370
|
if (openedWindow) {
|
|
9289
9371
|
openedWindow.opener = null;
|
|
9290
9372
|
}
|
|
9291
9373
|
}
|
|
9374
|
+
openOnNewTabWithMessage(url, message, token) {
|
|
9375
|
+
const openedWindow = window.open(url, '_blank');
|
|
9376
|
+
if (!openedWindow) {
|
|
9377
|
+
return;
|
|
9378
|
+
}
|
|
9379
|
+
const targetOrigin = window.location.origin;
|
|
9380
|
+
const handoff = { type: 'MEDIA_VIEWER_HANDOFF', token, payload: message };
|
|
9381
|
+
let attempts = 0;
|
|
9382
|
+
let retryTimer;
|
|
9383
|
+
let acknowledged = false;
|
|
9384
|
+
const complete = () => {
|
|
9385
|
+
acknowledged = true;
|
|
9386
|
+
window.clearTimeout(retryTimer);
|
|
9387
|
+
window.removeEventListener('message', acknowledgementListener);
|
|
9388
|
+
if (!openedWindow.closed) {
|
|
9389
|
+
openedWindow.opener = null;
|
|
9390
|
+
}
|
|
9391
|
+
};
|
|
9392
|
+
const acknowledgementListener = (event) => {
|
|
9393
|
+
const data = event.data;
|
|
9394
|
+
if (event.origin === targetOrigin && event.source === openedWindow &&
|
|
9395
|
+
data?.type === 'MEDIA_VIEWER_HANDOFF_RECEIVED' && data.token === token) {
|
|
9396
|
+
complete();
|
|
9397
|
+
}
|
|
9398
|
+
};
|
|
9399
|
+
window.addEventListener('message', acknowledgementListener);
|
|
9400
|
+
const send = () => {
|
|
9401
|
+
if (acknowledged || openedWindow.closed || attempts++ >= 20) {
|
|
9402
|
+
window.removeEventListener('message', acknowledgementListener);
|
|
9403
|
+
if (!openedWindow.closed) {
|
|
9404
|
+
openedWindow.opener = null;
|
|
9405
|
+
}
|
|
9406
|
+
return;
|
|
9407
|
+
}
|
|
9408
|
+
openedWindow.postMessage(handoff, targetOrigin);
|
|
9409
|
+
retryTimer = window.setTimeout(send, 100);
|
|
9410
|
+
};
|
|
9411
|
+
send();
|
|
9412
|
+
}
|
|
9292
9413
|
confirm(message) {
|
|
9293
9414
|
return window.confirm(message);
|
|
9294
9415
|
}
|
|
@@ -10030,13 +10151,31 @@ class CaseworkerService {
|
|
|
10030
10151
|
}
|
|
10031
10152
|
getUserByIdamId(idamId) {
|
|
10032
10153
|
const url = `${this.appConfig.getWorkAllocationApiUrl()}/caseworker/getUserByIdamId`;
|
|
10154
|
+
const body = { idamId };
|
|
10033
10155
|
return this.http
|
|
10034
|
-
.post(url,
|
|
10156
|
+
.post(url, body)
|
|
10035
10157
|
.pipe(catchError(error => {
|
|
10036
10158
|
this.errorService.setError(error);
|
|
10037
10159
|
return throwError(error);
|
|
10038
10160
|
}));
|
|
10039
10161
|
}
|
|
10162
|
+
searchStaffUsers(services, searchTerm, roleCategories) {
|
|
10163
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/caseworker/getUsersByServiceName`;
|
|
10164
|
+
const normalisedSearchTerm = searchTerm.toLowerCase();
|
|
10165
|
+
return this.http
|
|
10166
|
+
.post(url, { services, term: searchTerm })
|
|
10167
|
+
.pipe(map((caseworkers) => caseworkers
|
|
10168
|
+
.filter(caseworker => roleCategories.some(roleCategory => caseworker.roleCategories.includes(roleCategory)))
|
|
10169
|
+
.map(caseworker => ({
|
|
10170
|
+
idamId: caseworker.idamId,
|
|
10171
|
+
displayName: `${caseworker.firstName} ${caseworker.lastName}`.trim(),
|
|
10172
|
+
...(caseworker.email ? { emailId: caseworker.email } : {})
|
|
10173
|
+
}))
|
|
10174
|
+
.filter(staffUser => staffUser.displayName.toLowerCase().includes(normalisedSearchTerm))), catchError(error => {
|
|
10175
|
+
this.errorService.setError(error);
|
|
10176
|
+
return throwError(error);
|
|
10177
|
+
}));
|
|
10178
|
+
}
|
|
10040
10179
|
static ɵfac = function CaseworkerService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseworkerService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpErrorService)); };
|
|
10041
10180
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseworkerService, factory: CaseworkerService.ɵfac });
|
|
10042
10181
|
}
|
|
@@ -10329,9 +10468,7 @@ class PageValidationService {
|
|
|
10329
10468
|
.filter((caseField) => !this.caseFieldService.isReadOnly(caseField))
|
|
10330
10469
|
.filter((caseField) => !this.isHidden(caseField, editForm))
|
|
10331
10470
|
.forEach((caseField) => {
|
|
10332
|
-
const theControl =
|
|
10333
|
-
? editForm.controls.data.get(`${caseField.id}_judicialUserControl`)
|
|
10334
|
-
: editForm.controls.data.get(caseField.id);
|
|
10471
|
+
const theControl = editForm.controls.data.get(this.getValidationControlName(caseField));
|
|
10335
10472
|
if (!(this.checkDocumentField(caseField, theControl) && this.checkOptionalField(caseField, theControl))) {
|
|
10336
10473
|
failingCaseFields.push(caseField);
|
|
10337
10474
|
}
|
|
@@ -10361,6 +10498,15 @@ class PageValidationService {
|
|
|
10361
10498
|
checkMandatoryField(caseField, theControl) {
|
|
10362
10499
|
return this.caseFieldService.isMandatory(caseField) && theControl === null;
|
|
10363
10500
|
}
|
|
10501
|
+
getValidationControlName(caseField) {
|
|
10502
|
+
if (FieldsUtils.isCaseFieldOfType(caseField, ['JudicialUser'])) {
|
|
10503
|
+
return `${caseField.id}_judicialUserControl`;
|
|
10504
|
+
}
|
|
10505
|
+
if (FieldsUtils.isCaseFieldOfType(caseField, ['StaffUser'])) {
|
|
10506
|
+
return `${caseField.id}_staffUserControl`;
|
|
10507
|
+
}
|
|
10508
|
+
return caseField.id;
|
|
10509
|
+
}
|
|
10364
10510
|
static ɵfac = function PageValidationService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PageValidationService)(i0.ɵɵinject(CaseFieldService)); };
|
|
10365
10511
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PageValidationService, factory: PageValidationService.ɵfac });
|
|
10366
10512
|
}
|
|
@@ -12632,9 +12778,7 @@ class CaseEditPageComponent {
|
|
|
12632
12778
|
.forEach(casefield => {
|
|
12633
12779
|
let errorPresent = true;
|
|
12634
12780
|
validErrorFieldFound = true;
|
|
12635
|
-
const fieldElement =
|
|
12636
|
-
? group.get(`${casefield.id}_judicialUserControl`)
|
|
12637
|
-
: group.get(casefield.id);
|
|
12781
|
+
const fieldElement = group.get(this.getAutocompleteUserControlName(casefield));
|
|
12638
12782
|
if (fieldElement) {
|
|
12639
12783
|
const label = this.getInterpolatedFieldLabel(casefield);
|
|
12640
12784
|
let id = casefield.id;
|
|
@@ -12656,9 +12800,9 @@ class CaseEditPageComponent {
|
|
|
12656
12800
|
this.caseEditDataService.addFormValidationError({ id, message: `%FIELDLABEL% is required`, label });
|
|
12657
12801
|
}
|
|
12658
12802
|
fieldElement.markAsDirty();
|
|
12659
|
-
// For
|
|
12803
|
+
// For autocomplete user field types, an error needs to be set on the component so that an error message
|
|
12660
12804
|
// can be displayed at field level
|
|
12661
|
-
if (
|
|
12805
|
+
if (this.isAutocompleteUserField(casefield)) {
|
|
12662
12806
|
fieldElement['component'].errors = { required: true };
|
|
12663
12807
|
}
|
|
12664
12808
|
}
|
|
@@ -12833,10 +12977,10 @@ class CaseEditPageComponent {
|
|
|
12833
12977
|
this.handleError(error);
|
|
12834
12978
|
});
|
|
12835
12979
|
CaseEditPageComponent.scrollToTop();
|
|
12836
|
-
// Remove
|
|
12980
|
+
// Remove autocomplete user FormControls because these are not
|
|
12837
12981
|
// intended to be present in the Case Event data (they are added only for value selection and validation
|
|
12838
12982
|
// purposes)
|
|
12839
|
-
this.
|
|
12983
|
+
this.removeAllAutocompleteUserFormControls(this.currentPage, this.editForm);
|
|
12840
12984
|
}
|
|
12841
12985
|
this.focusService.focus();
|
|
12842
12986
|
}
|
|
@@ -13138,13 +13282,25 @@ class CaseEditPageComponent {
|
|
|
13138
13282
|
submit: this.caseEdit.submit,
|
|
13139
13283
|
});
|
|
13140
13284
|
}
|
|
13141
|
-
|
|
13285
|
+
removeAllAutocompleteUserFormControls(page, editForm) {
|
|
13142
13286
|
page.case_fields.forEach(caseField => {
|
|
13143
|
-
if (
|
|
13144
|
-
editForm.controls['data'].removeControl(
|
|
13287
|
+
if (this.isAutocompleteUserField(caseField)) {
|
|
13288
|
+
editForm.controls['data'].removeControl(this.getAutocompleteUserControlName(caseField));
|
|
13145
13289
|
}
|
|
13146
13290
|
});
|
|
13147
13291
|
}
|
|
13292
|
+
isAutocompleteUserField(caseField) {
|
|
13293
|
+
return FieldsUtils.isCaseFieldOfType(caseField, ['JudicialUser', 'StaffUser']);
|
|
13294
|
+
}
|
|
13295
|
+
getAutocompleteUserControlName(caseField) {
|
|
13296
|
+
if (FieldsUtils.isCaseFieldOfType(caseField, ['JudicialUser'])) {
|
|
13297
|
+
return `${caseField.id}_judicialUserControl`;
|
|
13298
|
+
}
|
|
13299
|
+
if (FieldsUtils.isCaseFieldOfType(caseField, ['StaffUser'])) {
|
|
13300
|
+
return `${caseField.id}_staffUserControl`;
|
|
13301
|
+
}
|
|
13302
|
+
return caseField.id;
|
|
13303
|
+
}
|
|
13148
13304
|
static ɵfac = function CaseEditPageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(MultipageComponentStateService), i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CaseFlagStateService), i0.ɵɵdirectiveInject(FocusService)); };
|
|
13149
13305
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], viewQuery: function CaseEditPageComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13150
13306
|
i0.ɵɵviewQuery(CaseEditFormComponent, 5);
|
|
@@ -13466,7 +13622,7 @@ class CaseEventCompletionComponent {
|
|
|
13466
13622
|
}] }); })();
|
|
13467
13623
|
(() => { (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 }); })();
|
|
13468
13624
|
|
|
13469
|
-
const _c0$
|
|
13625
|
+
const _c0$11 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
|
|
13470
13626
|
class CaseEventCompletionTaskCancelledComponent {
|
|
13471
13627
|
context;
|
|
13472
13628
|
notifyEventCompletionCancelled = new EventEmitter();
|
|
@@ -13535,7 +13691,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
13535
13691
|
i0.ɵɵadvance(4);
|
|
13536
13692
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
|
|
13537
13693
|
i0.ɵɵadvance(2);
|
|
13538
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$
|
|
13694
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$11, ctx.jurisdiction, ctx.caseType, ctx.caseId));
|
|
13539
13695
|
i0.ɵɵadvance();
|
|
13540
13696
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
|
|
13541
13697
|
} }, dependencies: [i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
@@ -13550,7 +13706,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
13550
13706
|
}] }); })();
|
|
13551
13707
|
(() => { (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 }); })();
|
|
13552
13708
|
|
|
13553
|
-
const _c0
|
|
13709
|
+
const _c0$10 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
|
|
13554
13710
|
function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
13555
13711
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
13556
13712
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
|
|
@@ -13603,7 +13759,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
|
|
|
13603
13759
|
i0.ɵɵadvance(4);
|
|
13604
13760
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
|
|
13605
13761
|
i0.ɵɵadvance(2);
|
|
13606
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0
|
|
13762
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$10, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
|
|
13607
13763
|
i0.ɵɵadvance();
|
|
13608
13764
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
|
|
13609
13765
|
} }
|
|
@@ -14006,8 +14162,8 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14006
14162
|
}] }); })();
|
|
14007
14163
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 22 }); })();
|
|
14008
14164
|
|
|
14009
|
-
const _c0
|
|
14010
|
-
const _c1$
|
|
14165
|
+
const _c0$$ = ["writeComplexFieldComponent"];
|
|
14166
|
+
const _c1$q = a0 => ({ "form-group-error": a0 });
|
|
14011
14167
|
const _c2$4 = a0 => ({ "govuk-input--error": a0 });
|
|
14012
14168
|
function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
14013
14169
|
i0.ɵɵelementStart(0, "span", 14);
|
|
@@ -14034,7 +14190,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
14034
14190
|
i0.ɵɵelementEnd()();
|
|
14035
14191
|
} if (rf & 2) {
|
|
14036
14192
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
14037
|
-
i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(14, _c1$
|
|
14193
|
+
i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(14, _c1$q, ctx_r1.missingPostcode));
|
|
14038
14194
|
i0.ɵɵadvance();
|
|
14039
14195
|
i0.ɵɵproperty("for", ctx_r1.createElementId("postcodeInput"));
|
|
14040
14196
|
i0.ɵɵadvance(2);
|
|
@@ -14102,7 +14258,7 @@ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1)
|
|
|
14102
14258
|
i0.ɵɵelementEnd()();
|
|
14103
14259
|
} if (rf & 2) {
|
|
14104
14260
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
14105
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$
|
|
14261
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$q, ctx_r1.noAddressSelected));
|
|
14106
14262
|
i0.ɵɵadvance();
|
|
14107
14263
|
i0.ɵɵproperty("for", ctx_r1.createElementId("addressList"));
|
|
14108
14264
|
i0.ɵɵadvance(2);
|
|
@@ -14273,7 +14429,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14273
14429
|
}
|
|
14274
14430
|
static ɵfac = function WriteAddressFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
14275
14431
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
14276
|
-
i0.ɵɵviewQuery(_c0
|
|
14432
|
+
i0.ɵɵviewQuery(_c0$$, 5);
|
|
14277
14433
|
i0.ɵɵviewQuery(FocusElementDirective, 5);
|
|
14278
14434
|
} if (rf & 2) {
|
|
14279
14435
|
let _t;
|
|
@@ -14336,7 +14492,7 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
|
14336
14492
|
type: Input
|
|
14337
14493
|
}] }); })();
|
|
14338
14494
|
|
|
14339
|
-
const _c0$
|
|
14495
|
+
const _c0$_ = ["journeyChild"];
|
|
14340
14496
|
class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
|
|
14341
14497
|
multipageComponentStateService;
|
|
14342
14498
|
journeyStartPageNumber = 0;
|
|
@@ -14411,7 +14567,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
|
|
|
14411
14567
|
;
|
|
14412
14568
|
static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
14413
14569
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
14414
|
-
i0.ɵɵviewQuery(_c0$
|
|
14570
|
+
i0.ɵɵviewQuery(_c0$_, 5);
|
|
14415
14571
|
} if (rf & 2) {
|
|
14416
14572
|
let _t;
|
|
14417
14573
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
|
|
@@ -14426,7 +14582,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
|
|
|
14426
14582
|
args: ['journeyChild']
|
|
14427
14583
|
}] }); })();
|
|
14428
14584
|
|
|
14429
|
-
const _c0$
|
|
14585
|
+
const _c0$Z = ["journeyChild"];
|
|
14430
14586
|
class AbstractJourneyComponent {
|
|
14431
14587
|
multipageComponentStateService;
|
|
14432
14588
|
journeyStartPageNumber = 0;
|
|
@@ -14488,7 +14644,7 @@ class AbstractJourneyComponent {
|
|
|
14488
14644
|
onPageChange() { }
|
|
14489
14645
|
static ɵfac = function AbstractJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
14490
14646
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
14491
|
-
i0.ɵɵviewQuery(_c0$
|
|
14647
|
+
i0.ɵɵviewQuery(_c0$Z, 5);
|
|
14492
14648
|
} if (rf & 2) {
|
|
14493
14649
|
let _t;
|
|
14494
14650
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
|
|
@@ -15970,8 +16126,8 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
|
|
|
15970
16126
|
}], null, null); })();
|
|
15971
16127
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseLinkFieldComponent, { className: "ReadCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/read-case-link-field.component.ts", lineNumber: 9 }); })();
|
|
15972
16128
|
|
|
15973
|
-
const _c0$
|
|
15974
|
-
const _c1$
|
|
16129
|
+
const _c0$Y = ["writeComplexFieldComponent"];
|
|
16130
|
+
const _c1$p = a0 => ({ "form-group-error": a0 });
|
|
15975
16131
|
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
15976
16132
|
i0.ɵɵelementStart(0, "span", 6);
|
|
15977
16133
|
i0.ɵɵtext(1);
|
|
@@ -16051,7 +16207,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16051
16207
|
}
|
|
16052
16208
|
static ɵfac = /*@__PURE__*/ (() => { let ɵWriteCaseLinkFieldComponent_BaseFactory; return function WriteCaseLinkFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteCaseLinkFieldComponent_BaseFactory || (ɵWriteCaseLinkFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent)))(__ngFactoryType__ || WriteCaseLinkFieldComponent); }; })();
|
|
16053
16209
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
16054
|
-
i0.ɵɵviewQuery(_c0$
|
|
16210
|
+
i0.ɵɵviewQuery(_c0$Y, 5);
|
|
16055
16211
|
} if (rf & 2) {
|
|
16056
16212
|
let _t;
|
|
16057
16213
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
@@ -16063,7 +16219,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16063
16219
|
i0.ɵɵelement(5, "input", 5);
|
|
16064
16220
|
i0.ɵɵelementEnd();
|
|
16065
16221
|
} if (rf & 2) {
|
|
16066
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
16222
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$p, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
16067
16223
|
i0.ɵɵadvance();
|
|
16068
16224
|
i0.ɵɵproperty("for", ctx.id());
|
|
16069
16225
|
i0.ɵɵadvance();
|
|
@@ -16085,8 +16241,8 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16085
16241
|
}] }); })();
|
|
16086
16242
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 12 }); })();
|
|
16087
16243
|
|
|
16088
|
-
const _c0$
|
|
16089
|
-
const _c1$
|
|
16244
|
+
const _c0$X = (a0, a1, a2, a3, a4, a5, a6) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5, parent: a6 });
|
|
16245
|
+
const _c1$o = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4, parent: a5 });
|
|
16090
16246
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
16091
16247
|
i0.ɵɵelementStart(0, "tbody")(1, "tr");
|
|
16092
16248
|
i0.ɵɵelement(2, "th", 4);
|
|
@@ -16096,7 +16252,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
16096
16252
|
} if (rf & 2) {
|
|
16097
16253
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
16098
16254
|
i0.ɵɵadvance(4);
|
|
16099
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(4, _c0$
|
|
16255
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(4, _c0$X, 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);
|
|
16100
16256
|
} }
|
|
16101
16257
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
16102
16258
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
@@ -16107,7 +16263,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
16107
16263
|
const i_r3 = ctx.index;
|
|
16108
16264
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
16109
16265
|
i0.ɵɵadvance(2);
|
|
16110
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(5, _c1$
|
|
16266
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(5, _c1$o, i_r3 + "", ctx_r0.caseField.label + " " + (i_r3 + 1), ctx_r0.caseField.field_type.collection_field_type, item_r2.value, ctx_r0.caseField.hidden, ctx_r0.caseField))("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.buildIdPrefix(i_r3));
|
|
16111
16267
|
} }
|
|
16112
16268
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
16113
16269
|
i0.ɵɵelementStart(0, "tbody");
|
|
@@ -16218,7 +16374,7 @@ class RemoveDialogComponent {
|
|
|
16218
16374
|
}], () => [{ type: i1$3.MatLegacyDialogRef }], null); })();
|
|
16219
16375
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RemoveDialogComponent, { className: "RemoveDialogComponent", filePath: "lib/shared/components/dialogs/remove-dialog/remove-dialog.component.ts", lineNumber: 10 }); })();
|
|
16220
16376
|
|
|
16221
|
-
const _c0$
|
|
16377
|
+
const _c0$W = ["collectionItem"];
|
|
16222
16378
|
function WriteCollectionFieldComponent_h2_2_Template(rf, ctx) { if (rf & 1) {
|
|
16223
16379
|
i0.ɵɵelementStart(0, "h2", 7);
|
|
16224
16380
|
i0.ɵɵtext(1);
|
|
@@ -16639,7 +16795,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16639
16795
|
}
|
|
16640
16796
|
static ɵfac = function WriteCollectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
16641
16797
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
16642
|
-
i0.ɵɵviewQuery(_c0$
|
|
16798
|
+
i0.ɵɵviewQuery(_c0$W, 5);
|
|
16643
16799
|
} if (rf & 2) {
|
|
16644
16800
|
let _t;
|
|
16645
16801
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
@@ -16814,7 +16970,6 @@ function ReadDocumentFieldComponent_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
16814
16970
|
i0.ɵɵadvance();
|
|
16815
16971
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.value.document_filename, "\n");
|
|
16816
16972
|
} }
|
|
16817
|
-
const MEDIA_VIEWER_INFO = 'media-viewer-info';
|
|
16818
16973
|
class ReadDocumentFieldComponent extends AbstractFieldReadComponent {
|
|
16819
16974
|
windowService;
|
|
16820
16975
|
documentManagement;
|
|
@@ -16859,10 +17014,8 @@ class ReadDocumentFieldComponent extends AbstractFieldReadComponent {
|
|
|
16859
17014
|
return;
|
|
16860
17015
|
}
|
|
16861
17016
|
const token = FieldsUtils.createToken();
|
|
16862
|
-
const storageKey = `${MEDIA_VIEWER_INFO}:${token}`;
|
|
16863
17017
|
const payload = this.documentManagement.getMediaViewerInfo(documentFieldValue);
|
|
16864
|
-
this.windowService.
|
|
16865
|
-
this.windowService.openOnNewTab(this.getMediaViewerUrl(token));
|
|
17018
|
+
this.windowService.openOnNewTabWithMessage(this.getMediaViewerUrl(token), payload, token);
|
|
16866
17019
|
}
|
|
16867
17020
|
getMediaViewerUrl(token) {
|
|
16868
17021
|
const routerMediaViewer = this.router.createUrlTree(['/media-viewer'], { queryParams: { mvToken: token } });
|
|
@@ -16884,7 +17037,7 @@ class ReadDocumentFieldComponent extends AbstractFieldReadComponent {
|
|
|
16884
17037
|
type: Component,
|
|
16885
17038
|
args: [{ selector: 'ccd-read-document-field', standalone: false, template: "<button type=\"button\" *ngIf=\"caseField.value\" class=\"govuk-js-link\"\n (click)=\"showMediaViewer()\">\n {{ caseField.value.document_filename }}\n</button>\n" }]
|
|
16886
17039
|
}], () => [{ type: WindowService }, { type: DocumentManagementService }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: CasesService }], null); })();
|
|
16887
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDocumentFieldComponent, { className: "ReadDocumentFieldComponent", filePath: "lib/shared/components/palette/document/read-document-field.component.ts", lineNumber:
|
|
17040
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDocumentFieldComponent, { className: "ReadDocumentFieldComponent", filePath: "lib/shared/components/palette/document/read-document-field.component.ts", lineNumber: 15 }); })();
|
|
16888
17041
|
|
|
16889
17042
|
class DocumentDialogComponent {
|
|
16890
17043
|
matDialogRef;
|
|
@@ -16958,8 +17111,8 @@ class FileUploadStateService {
|
|
|
16958
17111
|
type: Injectable
|
|
16959
17112
|
}], null, null); })();
|
|
16960
17113
|
|
|
16961
|
-
const _c0$
|
|
16962
|
-
const _c1$
|
|
17114
|
+
const _c0$V = ["fileInput"];
|
|
17115
|
+
const _c1$n = a0 => ({ "form-group-error bottom-30": a0 });
|
|
16963
17116
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
16964
17117
|
i0.ɵɵelementStart(0, "span", 12);
|
|
16965
17118
|
i0.ɵɵelement(1, "markdown", 13);
|
|
@@ -17337,7 +17490,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17337
17490
|
}
|
|
17338
17491
|
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)); };
|
|
17339
17492
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
17340
|
-
i0.ɵɵviewQuery(_c0$
|
|
17493
|
+
i0.ɵɵviewQuery(_c0$V, 5);
|
|
17341
17494
|
} if (rf & 2) {
|
|
17342
17495
|
let _t;
|
|
17343
17496
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
@@ -17368,7 +17521,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17368
17521
|
i0.ɵɵpipe(19, "rpxTranslate");
|
|
17369
17522
|
i0.ɵɵelementEnd()();
|
|
17370
17523
|
} if (rf & 2) {
|
|
17371
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(22, _c1$
|
|
17524
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(22, _c1$n, !ctx.valid));
|
|
17372
17525
|
i0.ɵɵadvance();
|
|
17373
17526
|
i0.ɵɵproperty("for", ctx.id());
|
|
17374
17527
|
i0.ɵɵadvance();
|
|
@@ -17452,7 +17605,7 @@ class ReadDynamicListFieldComponent extends AbstractFieldReadComponent {
|
|
|
17452
17605
|
}], null, null); })();
|
|
17453
17606
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicListFieldComponent, { className: "ReadDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.ts", lineNumber: 9 }); })();
|
|
17454
17607
|
|
|
17455
|
-
const _c0$
|
|
17608
|
+
const _c0$U = a0 => ({ "form-group-error": a0 });
|
|
17456
17609
|
function WriteDynamicListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
17457
17610
|
i0.ɵɵelementStart(0, "span", 8);
|
|
17458
17611
|
i0.ɵɵtext(1);
|
|
@@ -17540,7 +17693,7 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17540
17693
|
i0.ɵɵtemplate(10, WriteDynamicListFieldComponent_option_10_Template, 3, 4, "option", 7);
|
|
17541
17694
|
i0.ɵɵelementEnd()();
|
|
17542
17695
|
} if (rf & 2) {
|
|
17543
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$
|
|
17696
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$U, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
17544
17697
|
i0.ɵɵadvance();
|
|
17545
17698
|
i0.ɵɵproperty("for", ctx.id());
|
|
17546
17699
|
i0.ɵɵadvance();
|
|
@@ -17721,7 +17874,7 @@ class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponen
|
|
|
17721
17874
|
}], null, null); })();
|
|
17722
17875
|
(() => { (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 }); })();
|
|
17723
17876
|
|
|
17724
|
-
const _c0$
|
|
17877
|
+
const _c0$T = a0 => ({ "error": a0 });
|
|
17725
17878
|
function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
17726
17879
|
i0.ɵɵelementStart(0, "span", 5);
|
|
17727
17880
|
i0.ɵɵtext(1);
|
|
@@ -17841,7 +17994,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
17841
17994
|
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 6, 12, "ng-container", 4);
|
|
17842
17995
|
i0.ɵɵelementEnd()();
|
|
17843
17996
|
} if (rf & 2) {
|
|
17844
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
17997
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$T, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
17845
17998
|
i0.ɵɵadvance(3);
|
|
17846
17999
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
17847
18000
|
i0.ɵɵadvance();
|
|
@@ -17921,8 +18074,8 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
|
17921
18074
|
}], null, null); })();
|
|
17922
18075
|
(() => { (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 }); })();
|
|
17923
18076
|
|
|
17924
|
-
const _c0$
|
|
17925
|
-
const _c1$
|
|
18077
|
+
const _c0$S = a0 => ({ "form-group-error": a0 });
|
|
18078
|
+
const _c1$m = a0 => ({ selected: a0 });
|
|
17926
18079
|
function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
17927
18080
|
i0.ɵɵelementStart(0, "span", 7);
|
|
17928
18081
|
i0.ɵɵtext(1);
|
|
@@ -17972,7 +18125,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
17972
18125
|
} if (rf & 2) {
|
|
17973
18126
|
const radioButton_r2 = ctx.$implicit;
|
|
17974
18127
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
17975
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
18128
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$m, ctx_r0.dynamicRadioListControl.value === radioButton_r2.code));
|
|
17976
18129
|
i0.ɵɵadvance();
|
|
17977
18130
|
i0.ɵɵproperty("id", ctx_r0.createElementId(radioButton_r2.code))("name", ctx_r0.id())("formControl", ctx_r0.dynamicRadioListControl)("value", radioButton_r2.code);
|
|
17978
18131
|
i0.ɵɵadvance();
|
|
@@ -18016,7 +18169,7 @@ class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18016
18169
|
i0.ɵɵelementContainerEnd();
|
|
18017
18170
|
i0.ɵɵelementEnd()();
|
|
18018
18171
|
} if (rf & 2) {
|
|
18019
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
18172
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$S, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
18020
18173
|
i0.ɵɵadvance(3);
|
|
18021
18174
|
i0.ɵɵproperty("for", ctx.id());
|
|
18022
18175
|
i0.ɵɵadvance();
|
|
@@ -18070,8 +18223,8 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
|
|
|
18070
18223
|
}], null, null); })();
|
|
18071
18224
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 11 }); })();
|
|
18072
18225
|
|
|
18073
|
-
const _c0$
|
|
18074
|
-
const _c1$
|
|
18226
|
+
const _c0$R = a0 => ({ "form-group-error": a0 });
|
|
18227
|
+
const _c1$l = a0 => ({ "govuk-input--error": a0 });
|
|
18075
18228
|
function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
18076
18229
|
i0.ɵɵelementStart(0, "span", 6);
|
|
18077
18230
|
i0.ɵɵtext(1);
|
|
@@ -18116,7 +18269,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18116
18269
|
i0.ɵɵelement(5, "input", 5);
|
|
18117
18270
|
i0.ɵɵelementEnd();
|
|
18118
18271
|
} if (rf & 2) {
|
|
18119
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
18272
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$R, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
18120
18273
|
i0.ɵɵadvance();
|
|
18121
18274
|
i0.ɵɵproperty("for", ctx.id());
|
|
18122
18275
|
i0.ɵɵadvance();
|
|
@@ -18126,7 +18279,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18126
18279
|
i0.ɵɵadvance();
|
|
18127
18280
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
18128
18281
|
i0.ɵɵadvance();
|
|
18129
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
18282
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$l, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
18130
18283
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
18131
18284
|
}
|
|
18132
18285
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
@@ -18158,7 +18311,7 @@ class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
|
|
|
18158
18311
|
}], null, null); })();
|
|
18159
18312
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedListFieldComponent, { className: "ReadFixedListFieldComponent", filePath: "lib/shared/components/palette/fixed-list/read-fixed-list-field.component.ts", lineNumber: 9 }); })();
|
|
18160
18313
|
|
|
18161
|
-
const _c0$
|
|
18314
|
+
const _c0$Q = a0 => ({ "form-group-error": a0 });
|
|
18162
18315
|
function WriteFixedListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
18163
18316
|
i0.ɵɵelementStart(0, "span", 8);
|
|
18164
18317
|
i0.ɵɵtext(1);
|
|
@@ -18233,7 +18386,7 @@ class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18233
18386
|
i0.ɵɵtemplate(8, WriteFixedListFieldComponent_option_8_Template, 3, 4, "option", 7);
|
|
18234
18387
|
i0.ɵɵelementEnd()();
|
|
18235
18388
|
} if (rf & 2) {
|
|
18236
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
18389
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$Q, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
18237
18390
|
i0.ɵɵadvance();
|
|
18238
18391
|
i0.ɵɵproperty("for", ctx.id());
|
|
18239
18392
|
i0.ɵɵadvance();
|
|
@@ -18296,8 +18449,8 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
|
18296
18449
|
}], null, null); })();
|
|
18297
18450
|
(() => { (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 }); })();
|
|
18298
18451
|
|
|
18299
|
-
const _c0$
|
|
18300
|
-
const _c1$
|
|
18452
|
+
const _c0$P = a0 => ({ "form-group-error": a0 });
|
|
18453
|
+
const _c1$k = a0 => ({ selected: a0 });
|
|
18301
18454
|
function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
18302
18455
|
i0.ɵɵelementStart(0, "span", 6);
|
|
18303
18456
|
i0.ɵɵtext(1);
|
|
@@ -18338,7 +18491,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
18338
18491
|
} if (rf & 2) {
|
|
18339
18492
|
const radioButton_r2 = ctx.$implicit;
|
|
18340
18493
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18341
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
18494
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$k, ctx_r0.fixedRadioListControl.value === radioButton_r2.code));
|
|
18342
18495
|
i0.ɵɵadvance();
|
|
18343
18496
|
i0.ɵɵproperty("id", ctx_r0.id() + "-" + radioButton_r2.code)("name", ctx_r0.id())("formControl", ctx_r0.fixedRadioListControl)("value", radioButton_r2.code);
|
|
18344
18497
|
i0.ɵɵadvance();
|
|
@@ -18364,7 +18517,7 @@ class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18364
18517
|
i0.ɵɵelementContainerEnd();
|
|
18365
18518
|
i0.ɵɵelementEnd()();
|
|
18366
18519
|
} if (rf & 2) {
|
|
18367
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
18520
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$P, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
18368
18521
|
i0.ɵɵadvance(3);
|
|
18369
18522
|
i0.ɵɵproperty("for", ctx.id());
|
|
18370
18523
|
i0.ɵɵadvance();
|
|
@@ -18440,8 +18593,8 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
|
|
|
18440
18593
|
}], () => [{ type: JurisdictionService }], null); })();
|
|
18441
18594
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 12 }); })();
|
|
18442
18595
|
|
|
18443
|
-
const _c0$
|
|
18444
|
-
const _c1$
|
|
18596
|
+
const _c0$O = a0 => ({ "form-group-error": a0 });
|
|
18597
|
+
const _c1$j = a0 => ({ "hide-autocomplete": a0 });
|
|
18445
18598
|
function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
18446
18599
|
i0.ɵɵelementStart(0, "span", 10);
|
|
18447
18600
|
i0.ɵɵtext(1);
|
|
@@ -18480,7 +18633,7 @@ function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf
|
|
|
18480
18633
|
} if (rf & 2) {
|
|
18481
18634
|
const judicialUser_r4 = ctx.$implicit;
|
|
18482
18635
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
18483
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$
|
|
18636
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$j, !ctx_r1.showAutocomplete))("value", judicialUser_r4);
|
|
18484
18637
|
i0.ɵɵadvance();
|
|
18485
18638
|
i0.ɵɵtextInterpolate2(" ", (judicialUser_r4 == null ? null : judicialUser_r4.fullName) ? judicialUser_r4.fullName : "", "", (judicialUser_r4 == null ? null : judicialUser_r4.emailId) ? " (" + judicialUser_r4.emailId + ")" : "", " ");
|
|
18486
18639
|
} }
|
|
@@ -18660,7 +18813,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
18660
18813
|
i0.ɵɵelementEnd()();
|
|
18661
18814
|
} if (rf & 2) {
|
|
18662
18815
|
const autoComplete_r5 = i0.ɵɵreference(7);
|
|
18663
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$
|
|
18816
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$O, !!ctx.judicialUserControl && ctx.errors));
|
|
18664
18817
|
i0.ɵɵadvance();
|
|
18665
18818
|
i0.ɵɵproperty("for", ctx.id());
|
|
18666
18819
|
i0.ɵɵadvance();
|
|
@@ -18687,6 +18840,324 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
18687
18840
|
}], () => [{ type: JurisdictionService }, { type: SessionStorageService }, { type: CaseFlagRefdataService }, { type: IsCompoundPipe }, { type: FormValidatorsService }, { type: CaseNotifier }], null); })();
|
|
18688
18841
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteJudicialUserFieldComponent, { className: "WriteJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/write-judicial-user-field.component.ts", lineNumber: 18 }); })();
|
|
18689
18842
|
|
|
18843
|
+
function ReadStaffUserFieldComponent_ccd_loading_spinner_0_Template(rf, ctx) { if (rf & 1) {
|
|
18844
|
+
i0.ɵɵelement(0, "ccd-loading-spinner");
|
|
18845
|
+
} }
|
|
18846
|
+
class ReadStaffUserFieldComponent extends AbstractFieldReadComponent {
|
|
18847
|
+
caseworkerService;
|
|
18848
|
+
jurisdictionService;
|
|
18849
|
+
displayName;
|
|
18850
|
+
showSpinner = false;
|
|
18851
|
+
sub;
|
|
18852
|
+
constructor(caseworkerService, jurisdictionService) {
|
|
18853
|
+
super();
|
|
18854
|
+
this.caseworkerService = caseworkerService;
|
|
18855
|
+
this.jurisdictionService = jurisdictionService;
|
|
18856
|
+
}
|
|
18857
|
+
ngOnInit() {
|
|
18858
|
+
const idamId = this.caseField?.value?.idamId;
|
|
18859
|
+
if (idamId) {
|
|
18860
|
+
this.showSpinner = true;
|
|
18861
|
+
this.sub = this.caseworkerService.getUserByIdamId(idamId).pipe(catchError(() => of(null)), switchMap(caseworker => {
|
|
18862
|
+
if (caseworker) {
|
|
18863
|
+
return of(`${caseworker.firstName} ${caseworker.lastName}`.trim());
|
|
18864
|
+
}
|
|
18865
|
+
return this.jurisdictionService.getJudicialUserByIdamId(idamId).pipe(map(judicialUser => judicialUser ? (judicialUser.fullName || judicialUser.knownAs || '') : ''));
|
|
18866
|
+
})).subscribe((displayName) => {
|
|
18867
|
+
this.displayName = displayName;
|
|
18868
|
+
this.showSpinner = false;
|
|
18869
|
+
}, () => this.showSpinner = false);
|
|
18870
|
+
}
|
|
18871
|
+
}
|
|
18872
|
+
ngOnDestroy() {
|
|
18873
|
+
if (this.sub) {
|
|
18874
|
+
this.sub.unsubscribe();
|
|
18875
|
+
}
|
|
18876
|
+
}
|
|
18877
|
+
static ɵfac = function ReadStaffUserFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadStaffUserFieldComponent)(i0.ɵɵdirectiveInject(CaseworkerService), i0.ɵɵdirectiveInject(JurisdictionService)); };
|
|
18878
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadStaffUserFieldComponent, selectors: [["ccd-read-staff-user-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[4, "ngIf"]], template: function ReadStaffUserFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18879
|
+
i0.ɵɵtemplate(0, ReadStaffUserFieldComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
18880
|
+
i0.ɵɵelementStart(1, "span");
|
|
18881
|
+
i0.ɵɵtext(2);
|
|
18882
|
+
i0.ɵɵelementEnd();
|
|
18883
|
+
} if (rf & 2) {
|
|
18884
|
+
i0.ɵɵproperty("ngIf", ctx.showSpinner);
|
|
18885
|
+
i0.ɵɵadvance(2);
|
|
18886
|
+
i0.ɵɵtextInterpolate(ctx.displayName);
|
|
18887
|
+
} }, dependencies: [i5.NgIf], encapsulation: 2 });
|
|
18888
|
+
}
|
|
18889
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadStaffUserFieldComponent, [{
|
|
18890
|
+
type: Component,
|
|
18891
|
+
args: [{ selector: 'ccd-read-staff-user-field', standalone: false, template: "<ccd-loading-spinner *ngIf=\"showSpinner\"></ccd-loading-spinner>\n<span>{{ displayName }}</span>\n" }]
|
|
18892
|
+
}], () => [{ type: CaseworkerService }, { type: JurisdictionService }], null); })();
|
|
18893
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadStaffUserFieldComponent, { className: "ReadStaffUserFieldComponent", filePath: "lib/shared/components/palette/staff-user/read-staff-user-field.component.ts", lineNumber: 13 }); })();
|
|
18894
|
+
|
|
18895
|
+
const _c0$N = a0 => ({ "form-group-error": a0 });
|
|
18896
|
+
const _c1$i = a0 => ({ "hide-autocomplete": a0 });
|
|
18897
|
+
function WriteStaffUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
18898
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
18899
|
+
i0.ɵɵtext(1);
|
|
18900
|
+
i0.ɵɵelementEnd();
|
|
18901
|
+
} if (rf & 2) {
|
|
18902
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
18903
|
+
i0.ɵɵadvance();
|
|
18904
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.label, " ");
|
|
18905
|
+
} }
|
|
18906
|
+
function WriteStaffUserFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
18907
|
+
i0.ɵɵelementStart(0, "span", 11);
|
|
18908
|
+
i0.ɵɵtext(1);
|
|
18909
|
+
i0.ɵɵelementEnd();
|
|
18910
|
+
} if (rf & 2) {
|
|
18911
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
18912
|
+
i0.ɵɵadvance();
|
|
18913
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
18914
|
+
} }
|
|
18915
|
+
function WriteStaffUserFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
18916
|
+
i0.ɵɵelementStart(0, "span", 12);
|
|
18917
|
+
i0.ɵɵtext(1);
|
|
18918
|
+
i0.ɵɵelementEnd();
|
|
18919
|
+
} if (rf & 2) {
|
|
18920
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
18921
|
+
i0.ɵɵadvance();
|
|
18922
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.label, " is required ");
|
|
18923
|
+
} }
|
|
18924
|
+
function WriteStaffUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
18925
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
18926
|
+
i0.ɵɵelementStart(0, "mat-option", 13);
|
|
18927
|
+
i0.ɵɵlistener("onSelectionChange", function WriteStaffUserFieldComponent_mat_option_8_Template_mat_option_onSelectionChange_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectionChange($event)); });
|
|
18928
|
+
i0.ɵɵtext(1);
|
|
18929
|
+
i0.ɵɵelementEnd();
|
|
18930
|
+
} if (rf & 2) {
|
|
18931
|
+
const staffUser_r4 = ctx.$implicit;
|
|
18932
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
18933
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$i, !ctx_r1.showAutocomplete))("value", staffUser_r4);
|
|
18934
|
+
i0.ɵɵadvance();
|
|
18935
|
+
i0.ɵɵtextInterpolate2(" ", (staffUser_r4 == null ? null : staffUser_r4.displayName) ? staffUser_r4.displayName : "", "", (staffUser_r4 == null ? null : staffUser_r4.emailId) ? " (" + staffUser_r4.emailId + ")" : "", " ");
|
|
18936
|
+
} }
|
|
18937
|
+
function WriteStaffUserFieldComponent_mat_option_10_Template(rf, ctx) { if (rf & 1) {
|
|
18938
|
+
i0.ɵɵelementStart(0, "mat-option", 14);
|
|
18939
|
+
i0.ɵɵtext(1, " No results found ");
|
|
18940
|
+
i0.ɵɵelementEnd();
|
|
18941
|
+
} }
|
|
18942
|
+
function WriteStaffUserFieldComponent_mat_option_11_Template(rf, ctx) { if (rf & 1) {
|
|
18943
|
+
i0.ɵɵelementStart(0, "mat-option", 14);
|
|
18944
|
+
i0.ɵɵtext(1, " Invalid search term ");
|
|
18945
|
+
i0.ɵɵelementEnd();
|
|
18946
|
+
} }
|
|
18947
|
+
class WriteStaffUserFieldComponent extends WriteComplexFieldComponent {
|
|
18948
|
+
jurisdictionService;
|
|
18949
|
+
caseFlagRefdataService;
|
|
18950
|
+
caseworkerService;
|
|
18951
|
+
compoundPipe;
|
|
18952
|
+
validatorsService;
|
|
18953
|
+
caseNotifier;
|
|
18954
|
+
minSearchCharacters = 2;
|
|
18955
|
+
staffUserControl;
|
|
18956
|
+
jurisdiction;
|
|
18957
|
+
caseType;
|
|
18958
|
+
filteredStaffUsers$;
|
|
18959
|
+
showAutocomplete = false;
|
|
18960
|
+
noResults = false;
|
|
18961
|
+
invalidSearchTerm = false;
|
|
18962
|
+
searchTerm = '';
|
|
18963
|
+
errors;
|
|
18964
|
+
staffUserSelected = false;
|
|
18965
|
+
jurisdictionSubscription;
|
|
18966
|
+
notifierSubscription;
|
|
18967
|
+
constructor(jurisdictionService, caseFlagRefdataService, caseworkerService, compoundPipe, validatorsService, caseNotifier) {
|
|
18968
|
+
super(compoundPipe, validatorsService);
|
|
18969
|
+
this.jurisdictionService = jurisdictionService;
|
|
18970
|
+
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
18971
|
+
this.caseworkerService = caseworkerService;
|
|
18972
|
+
this.compoundPipe = compoundPipe;
|
|
18973
|
+
this.validatorsService = validatorsService;
|
|
18974
|
+
this.caseNotifier = caseNotifier;
|
|
18975
|
+
this.jurisdictionSubscription = this.jurisdictionService.getSelectedJurisdiction()?.subscribe(jurisdiction => {
|
|
18976
|
+
if (jurisdiction?.currentCaseType) {
|
|
18977
|
+
this.jurisdiction = jurisdiction.id ?? this.jurisdiction;
|
|
18978
|
+
this.caseType = jurisdiction.currentCaseType.id ?? this.caseType;
|
|
18979
|
+
}
|
|
18980
|
+
});
|
|
18981
|
+
this.notifierSubscription = this.caseNotifier.caseView.subscribe(caseDetails => {
|
|
18982
|
+
if (caseDetails) {
|
|
18983
|
+
this.jurisdiction = caseDetails.case_type?.jurisdiction?.id ?? this.jurisdiction;
|
|
18984
|
+
this.caseType = caseDetails.case_type?.id ?? this.caseType;
|
|
18985
|
+
}
|
|
18986
|
+
});
|
|
18987
|
+
}
|
|
18988
|
+
ngOnInit() {
|
|
18989
|
+
super.ngOnInit();
|
|
18990
|
+
this.staffUserControl = new FormControl(this.caseField.value);
|
|
18991
|
+
this.formGroup.setControl(`${this.caseField.id}_staffUserControl`, this.staffUserControl);
|
|
18992
|
+
FieldsUtils.addCaseFieldAndComponentReferences(this.staffUserControl, this.caseField, this);
|
|
18993
|
+
this.setupValidation();
|
|
18994
|
+
if (this.caseField.value?.idamId) {
|
|
18995
|
+
this.loadStaffUser(this.caseField.value.idamId);
|
|
18996
|
+
}
|
|
18997
|
+
this.filteredStaffUsers$ = this.staffUserControl.valueChanges.pipe(tap(() => this.showAutocomplete = false), filter(input => typeof input === 'string'), debounceTime(300), map(input => input), tap(searchTerm => {
|
|
18998
|
+
this.searchTerm = searchTerm;
|
|
18999
|
+
this.invalidSearchTerm = false;
|
|
19000
|
+
}), filter((searchTerm) => searchTerm && searchTerm.length > this.minSearchCharacters), switchMap((searchTerm) => this.filterStaffUsers(searchTerm).pipe(tap(staffUsers => {
|
|
19001
|
+
this.showAutocomplete = true;
|
|
19002
|
+
this.noResults = !this.invalidSearchTerm && staffUsers.length === 0;
|
|
19003
|
+
}))));
|
|
19004
|
+
}
|
|
19005
|
+
loadStaffUser(idamId) {
|
|
19006
|
+
if (idamId) {
|
|
19007
|
+
this.caseworkerService.getUserByIdamId(idamId).pipe(take(1), catchError(() => of(null)), switchMap(caseworker => {
|
|
19008
|
+
if (caseworker) {
|
|
19009
|
+
const staffUser = {
|
|
19010
|
+
idamId: caseworker.idamId,
|
|
19011
|
+
displayName: `${caseworker.firstName} ${caseworker.lastName}`.trim(),
|
|
19012
|
+
...(caseworker.email ? { emailId: caseworker.email } : {})
|
|
19013
|
+
};
|
|
19014
|
+
this.staffUserControl.setValue(staffUser, { emitEvent: false });
|
|
19015
|
+
this.staffUserSelected = true;
|
|
19016
|
+
return of(null);
|
|
19017
|
+
}
|
|
19018
|
+
return this.jurisdictionService.getJudicialUserByIdamId(idamId);
|
|
19019
|
+
})).subscribe(judicialUser => {
|
|
19020
|
+
if (judicialUser) {
|
|
19021
|
+
const staffUser = {
|
|
19022
|
+
idamId: judicialUser.idamId,
|
|
19023
|
+
displayName: judicialUser.fullName || judicialUser.knownAs || '',
|
|
19024
|
+
...(judicialUser.emailId ? { emailId: judicialUser.emailId } : {})
|
|
19025
|
+
};
|
|
19026
|
+
this.staffUserControl.setValue(staffUser, { emitEvent: false });
|
|
19027
|
+
this.staffUserSelected = true;
|
|
19028
|
+
}
|
|
19029
|
+
});
|
|
19030
|
+
}
|
|
19031
|
+
}
|
|
19032
|
+
filterStaffUsers(searchTerm) {
|
|
19033
|
+
const configuration = parseStaffUserSearchConfiguration(this.getDisplayContextParameter());
|
|
19034
|
+
if (!configuration.valid) {
|
|
19035
|
+
this.invalidSearchTerm = true;
|
|
19036
|
+
return of([]);
|
|
19037
|
+
}
|
|
19038
|
+
return this.resolveServiceDetails().pipe(switchMap(serviceDetails => {
|
|
19039
|
+
const searches = [];
|
|
19040
|
+
if (configuration.configuration.staffRoleCategories.length) {
|
|
19041
|
+
searches.push(this.caseworkerService.searchStaffUsers([serviceDetails.ccd_service_name], searchTerm, configuration.configuration.staffRoleCategories));
|
|
19042
|
+
}
|
|
19043
|
+
if (configuration.configuration.includesJudicial) {
|
|
19044
|
+
searches.push(this.jurisdictionService.searchJudicialUsers(searchTerm, serviceDetails.service_code).pipe(map(judicialUsers => judicialUsers.map(judicialUser => ({
|
|
19045
|
+
idamId: judicialUser.idamId,
|
|
19046
|
+
displayName: judicialUser.fullName || '',
|
|
19047
|
+
...(judicialUser.emailId ? { emailId: judicialUser.emailId } : {})
|
|
19048
|
+
})))));
|
|
19049
|
+
}
|
|
19050
|
+
return forkJoin(searches).pipe(map(results => this.removeDuplicateUsers(results)));
|
|
19051
|
+
}), catchError(() => {
|
|
19052
|
+
this.invalidSearchTerm = true;
|
|
19053
|
+
return of([]);
|
|
19054
|
+
}));
|
|
19055
|
+
}
|
|
19056
|
+
resolveServiceCode() {
|
|
19057
|
+
return this.resolveServiceDetails().pipe(map(serviceDetails => serviceDetails.service_code));
|
|
19058
|
+
}
|
|
19059
|
+
resolveServiceDetails() {
|
|
19060
|
+
const caseType = this.getBaseCaseType();
|
|
19061
|
+
return this.caseFlagRefdataService.getHmctsServiceDetailsByCaseType(caseType).pipe(catchError(() => this.caseFlagRefdataService.getHmctsServiceDetailsByServiceName(this.jurisdiction)), map(serviceDetails => serviceDetails[0]));
|
|
19062
|
+
}
|
|
19063
|
+
setupValidation() {
|
|
19064
|
+
this.complexGroup.get('idamId')?.clearValidators();
|
|
19065
|
+
if (this.caseField.display_context === Constants.MANDATORY) {
|
|
19066
|
+
this.staffUserControl.setValidators(Validators.required);
|
|
19067
|
+
}
|
|
19068
|
+
}
|
|
19069
|
+
displayStaffUser(staffUser) {
|
|
19070
|
+
return staffUser?.displayName;
|
|
19071
|
+
}
|
|
19072
|
+
onSelectionChange(event) {
|
|
19073
|
+
this.caseField.value = {
|
|
19074
|
+
idamId: event.source.value.idamId
|
|
19075
|
+
};
|
|
19076
|
+
this.complexGroup.get('idamId')?.setValue(this.caseField.value.idamId);
|
|
19077
|
+
this.staffUserSelected = true;
|
|
19078
|
+
}
|
|
19079
|
+
onBlur(event) {
|
|
19080
|
+
if (event.relatedTarget?.role !== 'option' && !this.staffUserSelected) {
|
|
19081
|
+
this.staffUserControl.setValue(null);
|
|
19082
|
+
}
|
|
19083
|
+
if (!this.staffUserControl.value) {
|
|
19084
|
+
this.caseField.value = null;
|
|
19085
|
+
this.complexGroup.get('idamId')?.setValue(null);
|
|
19086
|
+
}
|
|
19087
|
+
}
|
|
19088
|
+
ngOnDestroy() {
|
|
19089
|
+
this.jurisdictionSubscription?.unsubscribe();
|
|
19090
|
+
this.notifierSubscription?.unsubscribe();
|
|
19091
|
+
}
|
|
19092
|
+
getBaseCaseType() {
|
|
19093
|
+
const caseType = this.caseType || this.jurisdictionService.getSelectedJurisdiction()?.getValue()?.currentCaseType?.id;
|
|
19094
|
+
return caseType?.split('-')[0];
|
|
19095
|
+
}
|
|
19096
|
+
/**
|
|
19097
|
+
* The search filters are configured through the field's display_context_parameter, for example
|
|
19098
|
+
* `#ARGUMENT(CATEGORY-LEGAL-OPS,CATEGORY-ADMIN,REGION-1235)`.
|
|
19099
|
+
*
|
|
19100
|
+
* When this component is rendered for a field nested within a complex type or collection, the
|
|
19101
|
+
* CaseField instance handed to the component can be the child definition, which does not always
|
|
19102
|
+
* carry the parameter. Fall back to the matching field in the page's context fields.
|
|
19103
|
+
*/
|
|
19104
|
+
getDisplayContextParameter() {
|
|
19105
|
+
return this.caseField?.display_context_parameter
|
|
19106
|
+
|| this.caseFields?.find(caseField => caseField.id === this.caseField?.field_type?.id)?.display_context_parameter;
|
|
19107
|
+
}
|
|
19108
|
+
removeDuplicateUsers(results) {
|
|
19109
|
+
const usersByIdamId = new Map();
|
|
19110
|
+
results.forEach(users => users.forEach(user => {
|
|
19111
|
+
if (!usersByIdamId.has(user.idamId)) {
|
|
19112
|
+
usersByIdamId.set(user.idamId, user);
|
|
19113
|
+
}
|
|
19114
|
+
}));
|
|
19115
|
+
return Array.from(usersByIdamId.values());
|
|
19116
|
+
}
|
|
19117
|
+
static ɵfac = function WriteStaffUserFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteStaffUserFieldComponent)(i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(CaseFlagRefdataService), i0.ɵɵdirectiveInject(CaseworkerService), i0.ɵɵdirectiveInject(IsCompoundPipe), i0.ɵɵdirectiveInject(FormValidatorsService), i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
19118
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteStaffUserFieldComponent, selectors: [["ccd-write-staff-user-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 17, consts: [["autoComplete", "matAutocomplete"], [1, "form-group", 3, "formGroup", "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "bottom-30", 3, "blur", "id", "formControl", "matAutocomplete"], ["autoActiveFirstOption", "", 3, "displayWith"], ["class", "select-option", 3, "ngClass", "value", "onSelectionChange", 4, "ngFor", "ngForOf"], ["class", "select-option", "disabled", "", 4, "ngIf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "select-option", 3, "onSelectionChange", "ngClass", "value"], ["disabled", "", 1, "select-option"]], template: function WriteStaffUserFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19119
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
19120
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "label", 2);
|
|
19121
|
+
i0.ɵɵtemplate(2, WriteStaffUserFieldComponent_span_2_Template, 2, 1, "span", 3);
|
|
19122
|
+
i0.ɵɵelementEnd();
|
|
19123
|
+
i0.ɵɵtemplate(3, WriteStaffUserFieldComponent_span_3_Template, 2, 1, "span", 4)(4, WriteStaffUserFieldComponent_span_4_Template, 2, 1, "span", 5);
|
|
19124
|
+
i0.ɵɵelementStart(5, "input", 6);
|
|
19125
|
+
i0.ɵɵlistener("blur", function WriteStaffUserFieldComponent_Template_input_blur_5_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBlur($event)); });
|
|
19126
|
+
i0.ɵɵelementEnd();
|
|
19127
|
+
i0.ɵɵelementStart(6, "mat-autocomplete", 7, 0);
|
|
19128
|
+
i0.ɵɵtemplate(8, WriteStaffUserFieldComponent_mat_option_8_Template, 2, 6, "mat-option", 8);
|
|
19129
|
+
i0.ɵɵpipe(9, "async");
|
|
19130
|
+
i0.ɵɵtemplate(10, WriteStaffUserFieldComponent_mat_option_10_Template, 2, 0, "mat-option", 9)(11, WriteStaffUserFieldComponent_mat_option_11_Template, 2, 0, "mat-option", 9);
|
|
19131
|
+
i0.ɵɵelementEnd()();
|
|
19132
|
+
} if (rf & 2) {
|
|
19133
|
+
const autoComplete_r5 = i0.ɵɵreference(7);
|
|
19134
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$N, !!ctx.staffUserControl && ctx.errors));
|
|
19135
|
+
i0.ɵɵadvance();
|
|
19136
|
+
i0.ɵɵproperty("for", ctx.id());
|
|
19137
|
+
i0.ɵɵadvance();
|
|
19138
|
+
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
19139
|
+
i0.ɵɵadvance();
|
|
19140
|
+
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
19141
|
+
i0.ɵɵadvance();
|
|
19142
|
+
i0.ɵɵproperty("ngIf", ctx.errors);
|
|
19143
|
+
i0.ɵɵadvance();
|
|
19144
|
+
i0.ɵɵproperty("id", ctx.id())("formControl", ctx.staffUserControl)("matAutocomplete", autoComplete_r5);
|
|
19145
|
+
i0.ɵɵadvance();
|
|
19146
|
+
i0.ɵɵproperty("displayWith", ctx.displayStaffUser);
|
|
19147
|
+
i0.ɵɵadvance(2);
|
|
19148
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(9, 13, ctx.filteredStaffUsers$));
|
|
19149
|
+
i0.ɵɵadvance(2);
|
|
19150
|
+
i0.ɵɵproperty("ngIf", ctx.noResults && ctx.searchTerm && ctx.searchTerm.length > ctx.minSearchCharacters && ctx.showAutocomplete);
|
|
19151
|
+
i0.ɵɵadvance();
|
|
19152
|
+
i0.ɵɵproperty("ngIf", ctx.invalidSearchTerm);
|
|
19153
|
+
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormControlDirective, i4.FormGroupDirective, i6.MatLegacyAutocomplete, i6.MatLegacyAutocompleteTrigger, i7.MatLegacyOption, i5.AsyncPipe], encapsulation: 2 });
|
|
19154
|
+
}
|
|
19155
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteStaffUserFieldComponent, [{
|
|
19156
|
+
type: Component,
|
|
19157
|
+
args: [{ selector: 'ccd-write-staff-user-field', standalone: false, template: "<div class=\"form-group\" [formGroup]=\"formGroup\" [ngClass]=\"{'form-group-error': !!staffUserControl && errors}\">\n <label [for]=\"id()\">\n <span *ngIf=\"caseField.label\" class=\"form-label\">\n {{ caseField.label }}\n </span>\n </label>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">\n {{ caseField.hint_text }}\n </span>\n <span class=\"error-message\" *ngIf=\"errors\">\n {{ caseField.label }} is required\n </span>\n <input class=\"form-control bottom-30\" [id]=\"id()\" \n [formControl]=\"staffUserControl\" [matAutocomplete]=\"autoComplete\" (blur)=\"onBlur($event)\">\n <mat-autocomplete autoActiveFirstOption #autoComplete=\"matAutocomplete\" [displayWith]=\"displayStaffUser\">\n <mat-option *ngFor=\"let staffUser of filteredStaffUsers$ | async\" \n class=\"select-option\" [ngClass]=\"{'hide-autocomplete': !showAutocomplete}\"\n [value]=\"staffUser\" (onSelectionChange)=\"onSelectionChange($event)\">\n {{staffUser?.displayName ? staffUser.displayName : ''}}{{staffUser?.emailId ? ' (' + staffUser.emailId + ')' : ''}}\n </mat-option>\n <mat-option *ngIf=\"noResults && searchTerm && searchTerm.length > minSearchCharacters && showAutocomplete\" class=\"select-option\" disabled>\n No results found\n </mat-option>\n <mat-option *ngIf=\"invalidSearchTerm\" class=\"select-option\" disabled>\n Invalid search term\n </mat-option>\n </mat-autocomplete>\n</div>\n" }]
|
|
19158
|
+
}], () => [{ type: JurisdictionService }, { type: CaseFlagRefdataService }, { type: CaseworkerService }, { type: IsCompoundPipe }, { type: FormValidatorsService }, { type: CaseNotifier }], null); })();
|
|
19159
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteStaffUserFieldComponent, { className: "WriteStaffUserFieldComponent", filePath: "lib/shared/components/palette/staff-user/write-staff-user-field.component.ts", lineNumber: 19 }); })();
|
|
19160
|
+
|
|
18690
19161
|
function LabelFieldComponent_ccd_markdown_2_Template(rf, ctx) { if (rf & 1) {
|
|
18691
19162
|
i0.ɵɵelement(0, "ccd-markdown", 2);
|
|
18692
19163
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
@@ -29030,6 +29501,8 @@ class PaletteService {
|
|
|
29030
29501
|
return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
|
|
29031
29502
|
case 'JudicialUser':
|
|
29032
29503
|
return write ? WriteJudicialUserFieldComponent : ReadJudicialUserFieldComponent;
|
|
29504
|
+
case 'StaffUser':
|
|
29505
|
+
return write ? WriteStaffUserFieldComponent : ReadStaffUserFieldComponent;
|
|
29033
29506
|
default:
|
|
29034
29507
|
return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
|
|
29035
29508
|
}
|
|
@@ -29942,7 +30415,6 @@ function CaseFileViewFolderComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
29942
30415
|
i0.ɵɵadvance(2);
|
|
29943
30416
|
i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r2.nestedChildren);
|
|
29944
30417
|
} }
|
|
29945
|
-
const MEDIA_VIEWER_LOCALSTORAGE_KEY = 'media-viewer-info';
|
|
29946
30418
|
class CaseFileViewFolderComponent {
|
|
29947
30419
|
windowService;
|
|
29948
30420
|
router;
|
|
@@ -30112,16 +30584,14 @@ class CaseFileViewFolderComponent {
|
|
|
30112
30584
|
}
|
|
30113
30585
|
}
|
|
30114
30586
|
const token = FieldsUtils.createToken();
|
|
30115
|
-
const storageKey = `${MEDIA_VIEWER_LOCALSTORAGE_KEY}:${token}`;
|
|
30116
30587
|
const payload = this.documentManagementService.getMediaViewerInfo({
|
|
30117
30588
|
document_binary_url: documentTreeNode.document_binary_url,
|
|
30118
30589
|
document_filename: documentTreeNode.document_filename,
|
|
30119
30590
|
content_type: documentTreeNode.content_type
|
|
30120
30591
|
});
|
|
30121
|
-
this.windowService.setLocalStorage(storageKey, payload);
|
|
30122
30592
|
const mediaViewerUrl = this.router.createUrlTree(['/media-viewer'], { queryParams: { mvToken: token } })?.toString();
|
|
30123
30593
|
if (mediaViewerUrl) {
|
|
30124
|
-
this.windowService.
|
|
30594
|
+
this.windowService.openOnNewTabWithMessage(mediaViewerUrl, payload, token);
|
|
30125
30595
|
}
|
|
30126
30596
|
break;
|
|
30127
30597
|
case ('download'):
|
|
@@ -30236,7 +30706,7 @@ class CaseFileViewFolderComponent {
|
|
|
30236
30706
|
}], moveDocument: [{
|
|
30237
30707
|
type: Output
|
|
30238
30708
|
}] }); })();
|
|
30239
|
-
(() => { (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:
|
|
30709
|
+
(() => { (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: 26 }); })();
|
|
30240
30710
|
|
|
30241
30711
|
const _c0$u = a0 => ({ "form-group-error": a0 });
|
|
30242
30712
|
function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -35879,6 +36349,7 @@ const PALETTE_COMPONENTS = [
|
|
|
35879
36349
|
ReadDocumentFieldComponent,
|
|
35880
36350
|
// new
|
|
35881
36351
|
ReadJudicialUserFieldComponent,
|
|
36352
|
+
ReadStaffUserFieldComponent,
|
|
35882
36353
|
ReadYesNoFieldComponent,
|
|
35883
36354
|
ReadOrganisationFieldComponent,
|
|
35884
36355
|
ReadOrganisationFieldTableComponent,
|
|
@@ -35900,6 +36371,7 @@ const PALETTE_COMPONENTS = [
|
|
|
35900
36371
|
ReadLinkedCasesFieldComponent,
|
|
35901
36372
|
// Write
|
|
35902
36373
|
WriteJudicialUserFieldComponent,
|
|
36374
|
+
WriteStaffUserFieldComponent,
|
|
35903
36375
|
WriteAddressFieldComponent,
|
|
35904
36376
|
WriteComplexFieldComponent,
|
|
35905
36377
|
WriteOrganisationComplexFieldComponent,
|
|
@@ -36185,6 +36657,7 @@ class PaletteModule {
|
|
|
36185
36657
|
ReadDocumentFieldComponent,
|
|
36186
36658
|
// new
|
|
36187
36659
|
ReadJudicialUserFieldComponent,
|
|
36660
|
+
ReadStaffUserFieldComponent,
|
|
36188
36661
|
ReadYesNoFieldComponent,
|
|
36189
36662
|
ReadOrganisationFieldComponent,
|
|
36190
36663
|
ReadOrganisationFieldTableComponent,
|
|
@@ -36206,6 +36679,7 @@ class PaletteModule {
|
|
|
36206
36679
|
ReadLinkedCasesFieldComponent,
|
|
36207
36680
|
// Write
|
|
36208
36681
|
WriteJudicialUserFieldComponent,
|
|
36682
|
+
WriteStaffUserFieldComponent,
|
|
36209
36683
|
WriteAddressFieldComponent,
|
|
36210
36684
|
WriteComplexFieldComponent,
|
|
36211
36685
|
WriteOrganisationComplexFieldComponent,
|
|
@@ -36347,6 +36821,7 @@ class PaletteModule {
|
|
|
36347
36821
|
ReadDocumentFieldComponent,
|
|
36348
36822
|
// new
|
|
36349
36823
|
ReadJudicialUserFieldComponent,
|
|
36824
|
+
ReadStaffUserFieldComponent,
|
|
36350
36825
|
ReadYesNoFieldComponent,
|
|
36351
36826
|
ReadOrganisationFieldComponent,
|
|
36352
36827
|
ReadOrganisationFieldTableComponent,
|
|
@@ -36368,6 +36843,7 @@ class PaletteModule {
|
|
|
36368
36843
|
ReadLinkedCasesFieldComponent,
|
|
36369
36844
|
// Write
|
|
36370
36845
|
WriteJudicialUserFieldComponent,
|
|
36846
|
+
WriteStaffUserFieldComponent,
|
|
36371
36847
|
WriteAddressFieldComponent,
|
|
36372
36848
|
WriteComplexFieldComponent,
|
|
36373
36849
|
WriteOrganisationComplexFieldComponent,
|
|
@@ -38431,8 +38907,8 @@ function WorkbasketFiltersComponent_ng_container_39_Template(rf, ctx) { if (rf &
|
|
|
38431
38907
|
i0.ɵɵadvance(2);
|
|
38432
38908
|
i0.ɵɵproperty("ngForOf", ctx_r4.workbasketInputs);
|
|
38433
38909
|
} }
|
|
38434
|
-
const
|
|
38435
|
-
const
|
|
38910
|
+
const FORM_GROUP_VAL_SES_STORAGE = 'workbasket-filter-form-group-value';
|
|
38911
|
+
const SAVED_QUERY_PARAM_SES_STORAGE = 'savedQueryParams';
|
|
38436
38912
|
const REGION_LIST_AND_FRC_FILTER = 'regionList';
|
|
38437
38913
|
class WorkbasketFiltersComponent {
|
|
38438
38914
|
route;
|
|
@@ -38526,7 +39002,8 @@ class WorkbasketFiltersComponent {
|
|
|
38526
39002
|
this.alertService.setPreserveAlerts(!this.initialised);
|
|
38527
39003
|
}
|
|
38528
39004
|
if (Object.keys(this.formGroup.controls).length === 0) {
|
|
38529
|
-
|
|
39005
|
+
const storedFormGroup = safeJsonParse(this.windowService.getSessionStorage(FORM_GROUP_VAL_SES_STORAGE), null);
|
|
39006
|
+
this.selected.formGroup = storedFormGroup && Object.keys(storedFormGroup).length > 0 ? storedFormGroup : null;
|
|
38530
39007
|
}
|
|
38531
39008
|
else {
|
|
38532
39009
|
// Update form group filters
|
|
@@ -38537,14 +39014,14 @@ class WorkbasketFiltersComponent {
|
|
|
38537
39014
|
this.selected.page = 1;
|
|
38538
39015
|
this.selected.metadataFields = this.getMetadataFields();
|
|
38539
39016
|
if (init) {
|
|
38540
|
-
this.windowService.
|
|
39017
|
+
this.windowService.setSessionStorage(SAVED_QUERY_PARAM_SES_STORAGE, JSON.stringify(queryParams));
|
|
38541
39018
|
if (Object.keys(this.formGroup.controls).length > 0) {
|
|
38542
39019
|
// Find all "special case" JudicialUser FormControl keys and remove the corresponding values from the
|
|
38543
39020
|
// FormGroup value because these values are not intended to be stored and subsequently passed as query string
|
|
38544
39021
|
// parameters when calling searchCases API endpoint
|
|
38545
39022
|
const judicialUserControlValuesToRemove = Object.keys(this.formGroup.controls).filter((key) => key.endsWith('_judicialUserControl'));
|
|
38546
39023
|
judicialUserControlValuesToRemove.forEach((controlKey) => delete this.formGroup.value[controlKey]);
|
|
38547
|
-
this.windowService.
|
|
39024
|
+
this.windowService.setSessionStorage(FORM_GROUP_VAL_SES_STORAGE, JSON.stringify(this.formGroup.value));
|
|
38548
39025
|
}
|
|
38549
39026
|
}
|
|
38550
39027
|
// Announce selected jurisdiction via JurisdictionService
|
|
@@ -38558,8 +39035,8 @@ class WorkbasketFiltersComponent {
|
|
|
38558
39035
|
this.setFocusToTop();
|
|
38559
39036
|
}
|
|
38560
39037
|
reset() {
|
|
38561
|
-
this.windowService.
|
|
38562
|
-
this.windowService.
|
|
39038
|
+
this.windowService.removeSessionStorage(FORM_GROUP_VAL_SES_STORAGE);
|
|
39039
|
+
this.windowService.removeSessionStorage(SAVED_QUERY_PARAM_SES_STORAGE);
|
|
38563
39040
|
setTimeout(() => {
|
|
38564
39041
|
this.resetFieldsWhenNoDefaults();
|
|
38565
39042
|
this.onReset.emit(true);
|
|
@@ -38610,7 +39087,7 @@ class WorkbasketFiltersComponent {
|
|
|
38610
39087
|
this.workbasketInputsReady = true;
|
|
38611
39088
|
this.workbasketInputs = workbasketInputs
|
|
38612
39089
|
.sort(this.orderService.sortAsc);
|
|
38613
|
-
const formValue = this.windowService.
|
|
39090
|
+
const formValue = this.windowService.getSessionStorage(FORM_GROUP_VAL_SES_STORAGE);
|
|
38614
39091
|
workbasketInputs.forEach(item => {
|
|
38615
39092
|
if (item.field.elementPath) {
|
|
38616
39093
|
item.field.id = `${item.field.id}.${item.field.elementPath}`;
|
|
@@ -38650,18 +39127,18 @@ class WorkbasketFiltersComponent {
|
|
|
38650
39127
|
* in future to incorporate other dynamic filters.
|
|
38651
39128
|
*/
|
|
38652
39129
|
updateFormGroupFilters() {
|
|
38653
|
-
// Read the form group
|
|
38654
|
-
const
|
|
38655
|
-
// Form group
|
|
38656
|
-
if (!!
|
|
39130
|
+
// Read the form group from session storage
|
|
39131
|
+
const formGroupSessionStorage = safeJsonParse(this.windowService.getSessionStorage(FORM_GROUP_VAL_SES_STORAGE), null);
|
|
39132
|
+
// Form group session storage is available and contains regionList property
|
|
39133
|
+
if (!!formGroupSessionStorage && formGroupSessionStorage.hasOwnProperty(REGION_LIST_AND_FRC_FILTER)) {
|
|
38657
39134
|
if (this.formGroup.get(REGION_LIST_AND_FRC_FILTER)) {
|
|
38658
|
-
// If regionList value does not match between
|
|
39135
|
+
// If regionList value does not match between session storage and form group
|
|
38659
39136
|
// then the filter value has been changed and we need to clear the old filter values
|
|
38660
|
-
if (
|
|
38661
|
-
for (const key in
|
|
38662
|
-
if (
|
|
38663
|
-
const value =
|
|
38664
|
-
// Clear the filter form group control values if it has a value in
|
|
39137
|
+
if (formGroupSessionStorage[REGION_LIST_AND_FRC_FILTER] !== this.formGroup.get(REGION_LIST_AND_FRC_FILTER).value) {
|
|
39138
|
+
for (const key in formGroupSessionStorage) {
|
|
39139
|
+
if (formGroupSessionStorage.hasOwnProperty(key)) {
|
|
39140
|
+
const value = formGroupSessionStorage[key];
|
|
39141
|
+
// Clear the filter form group control values if it has a value in session storage
|
|
38665
39142
|
// The regionList form group control value should be ignored as it always contain the latest value
|
|
38666
39143
|
if (key !== REGION_LIST_AND_FRC_FILTER && value !== null) {
|
|
38667
39144
|
this.formGroup.get(key).setValue(null);
|
|
@@ -38680,7 +39157,7 @@ class WorkbasketFiltersComponent {
|
|
|
38680
39157
|
* Query parameters, when available, take precedence over workbasket defaults.
|
|
38681
39158
|
*/
|
|
38682
39159
|
initFilters(init) {
|
|
38683
|
-
const savedQueryParams = this.windowService.
|
|
39160
|
+
const savedQueryParams = this.windowService.getSessionStorage(SAVED_QUERY_PARAM_SES_STORAGE);
|
|
38684
39161
|
const routeSnapshot = this.route.snapshot;
|
|
38685
39162
|
if (savedQueryParams) {
|
|
38686
39163
|
routeSnapshot.queryParams = JSON.parse(savedQueryParams);
|
|
@@ -38741,7 +39218,7 @@ class WorkbasketFiltersComponent {
|
|
|
38741
39218
|
this.workbasketInputs = [];
|
|
38742
39219
|
}
|
|
38743
39220
|
clearStoredWorkbasketFilterValues() {
|
|
38744
|
-
this.windowService.
|
|
39221
|
+
this.windowService.removeSessionStorage(FORM_GROUP_VAL_SES_STORAGE);
|
|
38745
39222
|
}
|
|
38746
39223
|
resetCaseState() {
|
|
38747
39224
|
this.defaults.state_id = null;
|
|
@@ -38885,7 +39362,7 @@ class WorkbasketFiltersComponent {
|
|
|
38885
39362
|
}], onReset: [{
|
|
38886
39363
|
type: Output
|
|
38887
39364
|
}] }); })();
|
|
38888
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkbasketFiltersComponent, { className: "WorkbasketFiltersComponent", filePath: "lib/shared/components/workbasket-filters/workbasket-filters.component.ts", lineNumber:
|
|
39365
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkbasketFiltersComponent, { className: "WorkbasketFiltersComponent", filePath: "lib/shared/components/workbasket-filters/workbasket-filters.component.ts", lineNumber: 29 }); })();
|
|
38889
39366
|
|
|
38890
39367
|
class WorkbasketFiltersModule {
|
|
38891
39368
|
static ɵfac = function WorkbasketFiltersModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WorkbasketFiltersModule)(); };
|
|
@@ -44222,10 +44699,10 @@ function SearchFiltersComponent_ng_container_16_Template(rf, ctx) { if (rf & 1)
|
|
|
44222
44699
|
i0.ɵɵadvance(2);
|
|
44223
44700
|
i0.ɵɵproperty("ngForOf", ctx_r3.searchInputs);
|
|
44224
44701
|
} }
|
|
44225
|
-
const
|
|
44226
|
-
const
|
|
44227
|
-
const
|
|
44228
|
-
const
|
|
44702
|
+
const JURISDICTION_SES_STORAGE = 'search-jurisdiction';
|
|
44703
|
+
const META_FIELDS_SES_STORAGE = 'search-metadata-fields';
|
|
44704
|
+
const FORM_GROUP_VALUE_SES_STORAGE = 'search-form-group-value';
|
|
44705
|
+
const CASE_TYPE_SES_STORAGE = 'search-caseType';
|
|
44229
44706
|
class SearchFiltersComponent {
|
|
44230
44707
|
searchService;
|
|
44231
44708
|
orderService;
|
|
@@ -44254,7 +44731,7 @@ class SearchFiltersComponent {
|
|
|
44254
44731
|
this.selected = {};
|
|
44255
44732
|
}
|
|
44256
44733
|
ngOnInit() {
|
|
44257
|
-
const jurisdiction = this.
|
|
44734
|
+
const jurisdiction = this.getValuesFromSessionStorage();
|
|
44258
44735
|
if (this.jurisdictions.length === 1 || jurisdiction) {
|
|
44259
44736
|
this.selected.jurisdiction = this.jurisdictions[0];
|
|
44260
44737
|
if (jurisdiction) {
|
|
@@ -44281,10 +44758,10 @@ class SearchFiltersComponent {
|
|
|
44281
44758
|
});
|
|
44282
44759
|
}
|
|
44283
44760
|
reset() {
|
|
44284
|
-
this.windowService.
|
|
44285
|
-
this.windowService.
|
|
44286
|
-
this.windowService.
|
|
44287
|
-
this.windowService.
|
|
44761
|
+
this.windowService.removeSessionStorage(FORM_GROUP_VALUE_SES_STORAGE);
|
|
44762
|
+
this.windowService.removeSessionStorage(CASE_TYPE_SES_STORAGE);
|
|
44763
|
+
this.windowService.removeSessionStorage(JURISDICTION_SES_STORAGE);
|
|
44764
|
+
this.windowService.removeSessionStorage(META_FIELDS_SES_STORAGE);
|
|
44288
44765
|
this.selected = {};
|
|
44289
44766
|
if (this.jurisdictions.length === 1) {
|
|
44290
44767
|
this.selected.jurisdiction = this.jurisdictions[0];
|
|
@@ -44296,39 +44773,39 @@ class SearchFiltersComponent {
|
|
|
44296
44773
|
this.selected.formGroup = this.formGroup;
|
|
44297
44774
|
this.selected.page = 1;
|
|
44298
44775
|
this.selected.metadataFields = this.getMetadataFields();
|
|
44299
|
-
this.
|
|
44776
|
+
this.populateValuesInSessionStorage();
|
|
44300
44777
|
this.onApply.emit({
|
|
44301
44778
|
selected: this.selected,
|
|
44302
44779
|
queryParams: this.getQueryParams()
|
|
44303
44780
|
});
|
|
44304
44781
|
this.setFocusToTop();
|
|
44305
44782
|
}
|
|
44306
|
-
|
|
44307
|
-
this.windowService.
|
|
44308
|
-
this.windowService.
|
|
44783
|
+
populateValuesInSessionStorage() {
|
|
44784
|
+
this.windowService.setSessionStorage(FORM_GROUP_VALUE_SES_STORAGE, JSON.stringify(this.selected.formGroup.value));
|
|
44785
|
+
this.windowService.setSessionStorage(META_FIELDS_SES_STORAGE, JSON.stringify(this.selected.metadataFields));
|
|
44309
44786
|
try {
|
|
44310
44787
|
const compJurisd = compressToUTF16(JSON.stringify(this.selected.jurisdiction));
|
|
44311
|
-
this.windowService.
|
|
44788
|
+
this.windowService.setSessionStorage(JURISDICTION_SES_STORAGE, compJurisd);
|
|
44312
44789
|
}
|
|
44313
44790
|
catch (e) {
|
|
44314
|
-
this.windowService.
|
|
44791
|
+
this.windowService.setSessionStorage(JURISDICTION_SES_STORAGE, null);
|
|
44315
44792
|
}
|
|
44316
44793
|
if (this.selected.caseType) {
|
|
44317
|
-
this.windowService.
|
|
44794
|
+
this.windowService.setSessionStorage(CASE_TYPE_SES_STORAGE, JSON.stringify(this.selected.caseType));
|
|
44318
44795
|
}
|
|
44319
44796
|
}
|
|
44320
|
-
|
|
44321
|
-
const jurisdiction = this.windowService.
|
|
44797
|
+
getValuesFromSessionStorage() {
|
|
44798
|
+
const jurisdiction = this.windowService.getSessionStorage(JURISDICTION_SES_STORAGE);
|
|
44322
44799
|
if (jurisdiction) {
|
|
44323
44800
|
try {
|
|
44324
|
-
const
|
|
44325
|
-
if (
|
|
44326
|
-
return
|
|
44801
|
+
const sessionStorageJurisdiction = JSON.parse(decompressFromUTF16(jurisdiction));
|
|
44802
|
+
if (sessionStorageJurisdiction) {
|
|
44803
|
+
return sessionStorageJurisdiction;
|
|
44327
44804
|
}
|
|
44328
44805
|
}
|
|
44329
44806
|
catch (e) {
|
|
44330
|
-
this.logger.error('Failed to retrieve jurisdiction from
|
|
44331
|
-
this.windowService.
|
|
44807
|
+
this.logger.error('Failed to retrieve jurisdiction from session storage.', { error: e });
|
|
44808
|
+
this.windowService.setSessionStorage(JURISDICTION_SES_STORAGE, null);
|
|
44332
44809
|
}
|
|
44333
44810
|
}
|
|
44334
44811
|
return null;
|
|
@@ -44366,7 +44843,7 @@ class SearchFiltersComponent {
|
|
|
44366
44843
|
this.searchInputs = [];
|
|
44367
44844
|
this.searchService.getSearchInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(tap(() => this.searchInputsReady = true)).subscribe(searchInputs => {
|
|
44368
44845
|
this.searchInputs = searchInputs.sort(this.orderService.sortAsc);
|
|
44369
|
-
const formValue = this.windowService.
|
|
44846
|
+
const formValue = this.windowService.getSessionStorage(FORM_GROUP_VALUE_SES_STORAGE);
|
|
44370
44847
|
let formValueObject = null;
|
|
44371
44848
|
if (formValue) {
|
|
44372
44849
|
formValueObject = JSON.parse(formValue);
|
|
@@ -44404,7 +44881,7 @@ class SearchFiltersComponent {
|
|
|
44404
44881
|
selectCaseType(caseTypes) {
|
|
44405
44882
|
if (caseTypes && caseTypes.length > 0) {
|
|
44406
44883
|
this.selected.caseType = caseTypes[0];
|
|
44407
|
-
const caseType = this.windowService.
|
|
44884
|
+
const caseType = this.windowService.getSessionStorage(CASE_TYPE_SES_STORAGE);
|
|
44408
44885
|
if (caseType) {
|
|
44409
44886
|
const caseTypeObject = JSON.parse(caseType);
|
|
44410
44887
|
const result = caseTypes.filter(c => c.id === caseTypeObject.id);
|
|
@@ -45734,5 +46211,5 @@ class TestRouteSnapshotBuilder {
|
|
|
45734
46211
|
* Generated bundle index. Do not edit.
|
|
45735
46212
|
*/
|
|
45736
46213
|
|
|
45737
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FocusService, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadRichTextAreaFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteRichTextAreaFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, safeJsonParse, textFieldType, viewerRouting };
|
|
46214
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FocusService, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadRichTextAreaFieldComponent, ReadStaffUserFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteRichTextAreaFieldComponent, WriteStaffUserFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, parseStaffUserSearchConfiguration, safeJsonParse, textFieldType, viewerRouting };
|
|
45738
46215
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map
|