@hmcts/ccd-case-ui-toolkit 7.1.18-extra-query-options → 7.1.19-accesible-error-linksv2
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/esm2022/lib/shared/components/case-editor/services/page-validation.service.mjs +10 -7
- package/esm2022/lib/shared/components/case-header/case-header.component.mjs +4 -10
- package/esm2022/lib/shared/components/error-message/error-message.component.mjs +3 -3
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +15 -1
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.mjs +36 -14
- package/esm2022/lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.mjs +23 -11
- package/esm2022/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.mjs +1 -2
- package/esm2022/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.mjs +2 -7
- package/esm2022/lib/shared/services/jurisdiction/jurisdiction.service.mjs +2 -1
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +80 -42
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/services/page-validation.service.d.ts.map +1 -1
- package/lib/shared/components/case-header/case-header.component.d.ts +1 -2
- package/lib/shared/components/case-header/case-header.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.d.ts +5 -1
- package/lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.d.ts +1 -2
- package/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts.map +1 -1
- package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -39,12 +39,7 @@ export class QueryListItem {
|
|
|
39
39
|
return this.children?.length > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
|
|
40
40
|
}
|
|
41
41
|
get responseStatus() {
|
|
42
|
-
|
|
43
|
-
return this.children.length % 2 === 1
|
|
44
|
-
? QueryItemResponseStatus.RESPONDED
|
|
45
|
-
: QueryItemResponseStatus.Awaiting;
|
|
46
|
-
}
|
|
47
|
-
return QueryItemResponseStatus.Awaiting;
|
|
42
|
+
return this.children?.length > 0 ? QueryItemResponseStatus.RESPONDED : QueryItemResponseStatus.NEW;
|
|
48
43
|
}
|
|
49
44
|
}
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktbGlzdC1pdGVtLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL3BhbGV0dGUvcXVlcnktbWFuYWdlbWVudC9tb2RlbHMvcXVlcnktbGlzdC9xdWVyeS1saXN0LWl0ZW0vcXVlcnktbGlzdC1pdGVtLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGdEQUFnRCxDQUFDO0FBR3pGLE1BQU0sT0FBTyxhQUFhO0lBQ2pCLEVBQUUsQ0FBUztJQUNYLE9BQU8sQ0FBVTtJQUNqQixJQUFJLENBQVM7SUFDYixJQUFJLENBQVM7SUFDYixXQUFXLEdBQTRCLEVBQUUsQ0FBQztJQUMxQyxnQkFBZ0IsQ0FBUztJQUN6QixXQUFXLENBQVU7SUFDckIsU0FBUyxDQUFPO0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zYWdlKHRoaXMpO1xuICB9XG5cbiAgcHVibGljIGdldCBsYXN0U3VibWl0dGVkQnkoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5sYXN0U3VibWl0dGVkTWVzc2FnZS5uYW1lO1xuICB9XG5cbiAgcHVibGljIGdldCBsYXN0U3VibWl0dGVkRGF0ZSgpOiBEYXRlIHtcbiAgICByZXR1cm4gbmV3IERhdGUodGhpcy5sYXN0U3VibWl0dGVkTWVzc2FnZS5jcmVhdGVkT24pO1xuICB9XG5cbiAgcHVibGljIGdldCBsYXN0UmVzcG9uc2VCeSgpOiBzdHJpbmcge1xuICAgIHJldHVybiB0aGlzLmNoaWxkcmVuPy5sZW5ndGggPiAwID8gdGhpcy5sYXN0U3VibWl0dGVkTWVzc2FnZS5uYW1lIDogJyc7XG4gIH1cblxuICBwdWJsaWMgZ2V0IGxhc3RSZXNwb25zZURhdGUoKTogRGF0ZSB8IG51bGwge1xuICAgIHJldHVybiB0aGlzLmNoaWxkcmVuPy5sZW5ndGggPiAwID8gbmV3IERhdGUodGhpcy5sYXN0U3VibWl0dGVkTWVzc2FnZS5jcmVhdGVkT24pIDogbnVsbDtcbiAgfVxuXG4gIHB1YmxpYyBnZXQgcmVzcG9uc2VTdGF0dXMoKTogUXVlcnlJdGVtUmVzcG9uc2VTdGF0dXMge1xuICAgIHJldHVybiB0aGlzLmNoaWxkcmVuPy5sZW5ndGggPiAwID8gUXVlcnlJdGVtUmVzcG9uc2VTdGF0dXMuUkVTUE9OREVEIDogUXVlcnlJdGVtUmVzcG9uc2VTdGF0dXMuTkVXO1xuICB9XG59XG4iXX0=
|
|
@@ -17,6 +17,7 @@ export class JurisdictionService {
|
|
|
17
17
|
return this.httpService.get('/aggregated/caseworkers/:uid/jurisdictions?access=read');
|
|
18
18
|
}
|
|
19
19
|
announceSelectedJurisdiction(jurisdiction) {
|
|
20
|
+
console.info('Announcing selected jurisdiction = ' + jurisdiction?.id);
|
|
20
21
|
this.selectedJurisdictionSource.next(jurisdiction);
|
|
21
22
|
this.selectedJurisdictionBS.next(jurisdiction);
|
|
22
23
|
}
|
|
@@ -32,4 +33,4 @@ export class JurisdictionService {
|
|
|
32
33
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(JurisdictionService, [{
|
|
33
34
|
type: Injectable
|
|
34
35
|
}], () => [{ type: i1.HttpService }], null); })();
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianVyaXNkaWN0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL3NlcnZpY2VzL2p1cmlzZGljdGlvbi9qdXJpc2RpY3Rpb24uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxlQUFlLEVBQWMsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRzVELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxTQUFTLENBQUM7OztBQUd0QyxNQUFNLE9BQU8sbUJBQW1CO0lBTUQ7SUFMN0IseUZBQXlGO0lBQ3pFLDBCQUEwQixHQUFHLElBQUksT0FBTyxFQUFnQixDQUFDO0lBQ3pELHNCQUFzQixHQUFHLElBQUksZUFBZSxDQUFlLElBQUksQ0FBQyxDQUFDO0lBQ2pFLG9CQUFvQixDQUEyQjtJQUUvRCxZQUE2QixXQUF3QjtRQUF4QixnQkFBVyxHQUFYLFdBQVcsQ0FBYTtRQUNuRCxJQUFJLENBQUMsb0JBQW9CLEdBQUcsSUFBSSxDQUFDLDBCQUEwQixDQUFDLFlBQV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fQ==
|
|
@@ -7069,6 +7069,7 @@ class JurisdictionService {
|
|
|
7069
7069
|
return this.httpService.get('/aggregated/caseworkers/:uid/jurisdictions?access=read');
|
|
7070
7070
|
}
|
|
7071
7071
|
announceSelectedJurisdiction(jurisdiction) {
|
|
7072
|
+
console.info('Announcing selected jurisdiction = ' + jurisdiction?.id);
|
|
7072
7073
|
this.selectedJurisdictionSource.next(jurisdiction);
|
|
7073
7074
|
this.selectedJurisdictionBS.next(jurisdiction);
|
|
7074
7075
|
}
|
|
@@ -8909,15 +8910,16 @@ class PageValidationService {
|
|
|
8909
8910
|
getInvalidFields(page, editForm) {
|
|
8910
8911
|
const failingCaseFields = [];
|
|
8911
8912
|
page.case_fields
|
|
8912
|
-
.filter(
|
|
8913
|
-
.filter(
|
|
8914
|
-
.
|
|
8913
|
+
.filter(caseField => !this.caseFieldService.isReadOnly(caseField))
|
|
8914
|
+
.filter(caseField => !this.isHidden(caseField, editForm))
|
|
8915
|
+
.map(caseField => {
|
|
8915
8916
|
const theControl = FieldsUtils.isCaseFieldOfType(caseField, ['JudicialUser'])
|
|
8916
|
-
? editForm.controls
|
|
8917
|
-
: editForm.controls
|
|
8917
|
+
? editForm.controls['data'].get(`${caseField.id}_judicialUserControl`)
|
|
8918
|
+
: editForm.controls['data'].get(caseField.id);
|
|
8918
8919
|
if (!(this.checkDocumentField(caseField, theControl) && this.checkOptionalField(caseField, theControl))) {
|
|
8919
8920
|
failingCaseFields.push(caseField);
|
|
8920
8921
|
}
|
|
8922
|
+
;
|
|
8921
8923
|
});
|
|
8922
8924
|
return failingCaseFields;
|
|
8923
8925
|
}
|
|
@@ -8939,7 +8941,9 @@ class PageValidationService {
|
|
|
8939
8941
|
if (!theControl) {
|
|
8940
8942
|
return this.caseFieldService.isOptional(caseField);
|
|
8941
8943
|
}
|
|
8942
|
-
|
|
8944
|
+
else {
|
|
8945
|
+
return theControl.valid || theControl.disabled;
|
|
8946
|
+
}
|
|
8943
8947
|
}
|
|
8944
8948
|
checkMandatoryField(caseField, theControl) {
|
|
8945
8949
|
return this.caseFieldService.isMandatory(caseField) && theControl === null;
|
|
@@ -19495,7 +19499,6 @@ var QueryItemResponseStatus;
|
|
|
19495
19499
|
(function (QueryItemResponseStatus) {
|
|
19496
19500
|
QueryItemResponseStatus["NEW"] = "New";
|
|
19497
19501
|
QueryItemResponseStatus["RESPONDED"] = "Responded";
|
|
19498
|
-
QueryItemResponseStatus["Awaiting"] = "Awaiting Response";
|
|
19499
19502
|
})(QueryItemResponseStatus || (QueryItemResponseStatus = {}));
|
|
19500
19503
|
|
|
19501
19504
|
var RespondToQueryErrorMessages;
|
|
@@ -19549,7 +19552,7 @@ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_10_Templ
|
|
|
19549
19552
|
} }
|
|
19550
19553
|
function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
19551
19554
|
i0.ɵɵelementContainerStart(0);
|
|
19552
|
-
i0.ɵɵelementStart(1, "div",
|
|
19555
|
+
i0.ɵɵelementStart(1, "div", 14);
|
|
19553
19556
|
i0.ɵɵtext(2);
|
|
19554
19557
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
19555
19558
|
i0.ɵɵelementEnd();
|
|
@@ -19558,6 +19561,24 @@ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_co
|
|
|
19558
19561
|
i0.ɵɵadvance(2);
|
|
19559
19562
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "or"));
|
|
19560
19563
|
} }
|
|
19564
|
+
function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
19565
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
19566
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
19567
|
+
i0.ɵɵtext(1);
|
|
19568
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
19569
|
+
i0.ɵɵelementStart(3, "a", 16);
|
|
19570
|
+
i0.ɵɵlistener("click", function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.click()); });
|
|
19571
|
+
i0.ɵɵtext(4);
|
|
19572
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
19573
|
+
i0.ɵɵelementEnd();
|
|
19574
|
+
i0.ɵɵtext(6, ".) ");
|
|
19575
|
+
i0.ɵɵelementEnd();
|
|
19576
|
+
} if (rf & 2) {
|
|
19577
|
+
i0.ɵɵadvance();
|
|
19578
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "(To follow-up on an existing query"), " ");
|
|
19579
|
+
i0.ɵɵadvance(3);
|
|
19580
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, "click here"));
|
|
19581
|
+
} }
|
|
19561
19582
|
function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
19562
19583
|
i0.ɵɵelementContainerStart(0);
|
|
19563
19584
|
i0.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template, 4, 3, "ng-container", 0);
|
|
@@ -19566,21 +19587,25 @@ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Templ
|
|
|
19566
19587
|
i0.ɵɵelementStart(4, "label", 12);
|
|
19567
19588
|
i0.ɵɵtext(5);
|
|
19568
19589
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
19569
|
-
i0.ɵɵelementEnd()
|
|
19590
|
+
i0.ɵɵelementEnd();
|
|
19591
|
+
i0.ɵɵtemplate(7, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template, 7, 6, "div", 13);
|
|
19592
|
+
i0.ɵɵelementEnd();
|
|
19570
19593
|
i0.ɵɵelementContainerEnd();
|
|
19571
19594
|
} if (rf & 2) {
|
|
19572
|
-
const
|
|
19573
|
-
const
|
|
19595
|
+
const qualifyingQuestion_r3 = ctx.$implicit;
|
|
19596
|
+
const isLast_r4 = ctx.last;
|
|
19574
19597
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
19575
19598
|
i0.ɵɵadvance();
|
|
19576
|
-
i0.ɵɵproperty("ngIf",
|
|
19599
|
+
i0.ɵɵproperty("ngIf", isLast_r4);
|
|
19577
19600
|
i0.ɵɵadvance(2);
|
|
19578
|
-
i0.ɵɵpropertyInterpolate("id",
|
|
19579
|
-
i0.ɵɵproperty("formControl", ctx_r0.qualifyingQuestionsControl)("value",
|
|
19601
|
+
i0.ɵɵpropertyInterpolate("id", qualifyingQuestion_r3.name);
|
|
19602
|
+
i0.ɵɵproperty("formControl", ctx_r0.qualifyingQuestionsControl)("value", qualifyingQuestion_r3);
|
|
19580
19603
|
i0.ɵɵadvance();
|
|
19581
|
-
i0.ɵɵproperty("for",
|
|
19604
|
+
i0.ɵɵproperty("for", qualifyingQuestion_r3.name);
|
|
19582
19605
|
i0.ɵɵadvance();
|
|
19583
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6,
|
|
19606
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 7, qualifyingQuestion_r3.name));
|
|
19607
|
+
i0.ɵɵadvance(2);
|
|
19608
|
+
i0.ɵɵproperty("ngIf", isLast_r4);
|
|
19584
19609
|
} }
|
|
19585
19610
|
function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
19586
19611
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -19594,7 +19619,7 @@ function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) { i
|
|
|
19594
19619
|
i0.ɵɵelementEnd();
|
|
19595
19620
|
i0.ɵɵtemplate(10, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_10_Template, 7, 6, "ng-container", 0);
|
|
19596
19621
|
i0.ɵɵelementStart(11, "div", 6);
|
|
19597
|
-
i0.ɵɵtemplate(12, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template,
|
|
19622
|
+
i0.ɵɵtemplate(12, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template, 8, 9, "ng-container", 7);
|
|
19598
19623
|
i0.ɵɵpipe(13, "async");
|
|
19599
19624
|
i0.ɵɵelementEnd()()();
|
|
19600
19625
|
i0.ɵɵelementContainerEnd();
|
|
@@ -19633,13 +19658,13 @@ class QualifyingQuestionOptionsComponent {
|
|
|
19633
19658
|
}
|
|
19634
19659
|
}
|
|
19635
19660
|
click() {
|
|
19636
|
-
this.router.navigate(['cases', 'case-details', this.caseId], { fragment: '
|
|
19661
|
+
this.router.navigate(['cases', 'case-details', this.caseId], { fragment: 'Query Management' });
|
|
19637
19662
|
}
|
|
19638
19663
|
get displayError() {
|
|
19639
19664
|
return this.qualifyingQuestionsControl.touched && this.qualifyingQuestionsControl.hasError('required');
|
|
19640
19665
|
}
|
|
19641
19666
|
static ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(QualifyingQuestionService)); };
|
|
19642
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], [1, "govuk-heading-m", "govuk-!-margin-top-10"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [1, "govuk-radios__divider"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19667
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], [1, "govuk-heading-m", "govuk-!-margin-top-10"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["class", "govuk-hint govuk-radios__hint", 4, "ngIf"], [1, "govuk-radios__divider"], [1, "govuk-hint", "govuk-radios__hint"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19643
19668
|
i0.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 14, 12, "ng-container", 0);
|
|
19644
19669
|
} if (rf & 2) {
|
|
19645
19670
|
i0.ɵɵproperty("ngIf", ctx.qualifyingQuestionsControl);
|
|
@@ -19647,7 +19672,7 @@ class QualifyingQuestionOptionsComponent {
|
|
|
19647
19672
|
}
|
|
19648
19673
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionOptionsComponent, [{
|
|
19649
19674
|
type: Component,
|
|
19650
|
-
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"{{qualifyingQuestion.name}}\" name=\"qualifyingQuestionOption\"\n type=\"radio\" [formControl]=\"qualifyingQuestionsControl\" [value]=\"qualifyingQuestion\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"qualifyingQuestion.name\">{{ qualifyingQuestion.name |\n rpxTranslate }}</label>\n </div>\n </ng-container>\n </div>\n </fieldset>\n </div>\n</ng-container>\n" }]
|
|
19675
|
+
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"{{qualifyingQuestion.name}}\" name=\"qualifyingQuestionOption\"\n type=\"radio\" [formControl]=\"qualifyingQuestionsControl\" [value]=\"qualifyingQuestion\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"qualifyingQuestion.name\">{{ qualifyingQuestion.name |\n rpxTranslate }}</label>\n <div *ngIf=\"isLast\" class=\"govuk-hint govuk-radios__hint\">\n {{ '(To follow-up on an existing query' | rpxTranslate }}\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"click()\">{{ 'click here' | rpxTranslate }}</a>.)\n </div>\n </div>\n </ng-container>\n </div>\n </fieldset>\n </div>\n</ng-container>\n" }]
|
|
19651
19676
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: QualifyingQuestionService }], { qualifyingQuestionsControl: [{
|
|
19652
19677
|
type: Input
|
|
19653
19678
|
}], qualifyingQuestions$: [{
|
|
@@ -19740,18 +19765,27 @@ class QueryCaseDetailsHeaderComponent {
|
|
|
19740
19765
|
caseDetails;
|
|
19741
19766
|
caseTitle;
|
|
19742
19767
|
caseFields;
|
|
19768
|
+
caseView;
|
|
19769
|
+
constructor(activatedRoute) {
|
|
19770
|
+
this.caseView = activatedRoute.snapshot.data.case;
|
|
19771
|
+
}
|
|
19743
19772
|
ngOnInit() {
|
|
19744
19773
|
this.caseTitle = new CaseField();
|
|
19745
|
-
this.
|
|
19746
|
-
|
|
19774
|
+
if (!this.isDraft() && this.caseDetails.state.title_display) {
|
|
19775
|
+
this.caseTitle.label = this.caseDetails.state.title_display;
|
|
19776
|
+
this.caseFields = this.getCaseFields();
|
|
19777
|
+
}
|
|
19747
19778
|
}
|
|
19748
|
-
|
|
19779
|
+
isDraft() {
|
|
19780
|
+
return Draft.isDraft(this.caseDetails.case_id);
|
|
19781
|
+
}
|
|
19782
|
+
getCaseFields() {
|
|
19749
19783
|
const caseDataFields = this.caseDetails.tabs.reduce((acc, tab) => {
|
|
19750
19784
|
return acc.concat(tab.fields);
|
|
19751
19785
|
}, []);
|
|
19752
19786
|
return caseDataFields.concat(this.caseDetails.metadataFields);
|
|
19753
19787
|
}
|
|
19754
|
-
static ɵfac = function QueryCaseDetailsHeaderComponent_Factory(t) { return new (t || QueryCaseDetailsHeaderComponent)(); };
|
|
19788
|
+
static ɵfac = function QueryCaseDetailsHeaderComponent_Factory(t) { return new (t || QueryCaseDetailsHeaderComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
19755
19789
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCaseDetailsHeaderComponent, selectors: [["ccd-query-case-details-header"]], inputs: { caseDetails: "caseDetails" }, decls: 2, vars: 2, consts: [["class", "heading-h1", 4, "ngIf"], ["class", "case-title", 4, "ngIf"], [1, "heading-h1"], [1, "case-title"], [3, "caseField", "caseFields"]], template: function QueryCaseDetailsHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19756
19790
|
i0.ɵɵtemplate(0, QueryCaseDetailsHeaderComponent_h1_0_Template, 3, 3, "h1", 0)(1, QueryCaseDetailsHeaderComponent_div_1_Template, 2, 2, "div", 1);
|
|
19757
19791
|
} if (rf & 2) {
|
|
@@ -19763,10 +19797,10 @@ class QueryCaseDetailsHeaderComponent {
|
|
|
19763
19797
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryCaseDetailsHeaderComponent, [{
|
|
19764
19798
|
type: Component,
|
|
19765
19799
|
args: [{ selector: 'ccd-query-case-details-header', template: "<h1 *ngIf=\"!caseTitle.label\" class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n<div *ngIf=\"caseTitle.label\" class=\"case-title\">\n <ccd-label-field [caseField]=\"caseTitle\" [caseFields]=\"caseFields\"></ccd-label-field>\n</div>\n" }]
|
|
19766
|
-
}],
|
|
19800
|
+
}], () => [{ type: i1$1.ActivatedRoute }], { caseDetails: [{
|
|
19767
19801
|
type: Input
|
|
19768
19802
|
}] }); })();
|
|
19769
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCaseDetailsHeaderComponent, { className: "QueryCaseDetailsHeaderComponent", filePath: "lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.ts", lineNumber:
|
|
19803
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCaseDetailsHeaderComponent, { className: "QueryCaseDetailsHeaderComponent", filePath: "lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.ts", lineNumber: 11 }); })();
|
|
19770
19804
|
|
|
19771
19805
|
var QueryCreateContext;
|
|
19772
19806
|
(function (QueryCreateContext) {
|
|
@@ -19817,12 +19851,7 @@ class QueryListItem {
|
|
|
19817
19851
|
return this.children?.length > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
|
|
19818
19852
|
}
|
|
19819
19853
|
get responseStatus() {
|
|
19820
|
-
|
|
19821
|
-
return this.children.length % 2 === 1
|
|
19822
|
-
? QueryItemResponseStatus.RESPONDED
|
|
19823
|
-
: QueryItemResponseStatus.Awaiting;
|
|
19824
|
-
}
|
|
19825
|
-
return QueryItemResponseStatus.Awaiting;
|
|
19854
|
+
return this.children?.length > 0 ? QueryItemResponseStatus.RESPONDED : QueryItemResponseStatus.NEW;
|
|
19826
19855
|
}
|
|
19827
19856
|
}
|
|
19828
19857
|
|
|
@@ -24972,6 +25001,20 @@ class SelectFlagTypeComponent {
|
|
|
24972
25001
|
[SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY]: ''
|
|
24973
25002
|
});
|
|
24974
25003
|
});
|
|
25004
|
+
this.formGroup.addControl(CaseFlagFormFields.FLAG_TYPE, new FormControl(''));
|
|
25005
|
+
this.formGroup.addControl(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION, new FormControl(''));
|
|
25006
|
+
this.formGroup.addControl(CaseFlagFormFields.IS_VISIBLE_INTERNALLY_ONLY, new FormControl(''));
|
|
25007
|
+
// Should clear descriptionControlName if flagTypeControlName is changed
|
|
25008
|
+
this.flagTypeControlChangesSubscription = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE).valueChanges
|
|
25009
|
+
.subscribe(_ => {
|
|
25010
|
+
this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION).setValue('');
|
|
25011
|
+
this.cachedPath = [];
|
|
25012
|
+
// required to clear language interpreter
|
|
25013
|
+
this.formGroup.patchValue({
|
|
25014
|
+
[SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM]: '',
|
|
25015
|
+
[SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY]: ''
|
|
25016
|
+
});
|
|
25017
|
+
});
|
|
24975
25018
|
// If hmctsServiceId is present, use this to retrieve the relevant list of flag types
|
|
24976
25019
|
if (this.hmctsServiceId) {
|
|
24977
25020
|
this.flagRefdata$ = this.caseFlagRefdataService
|
|
@@ -30149,15 +30192,10 @@ class CaseHeaderComponent {
|
|
|
30149
30192
|
caseFields;
|
|
30150
30193
|
ngOnInit() {
|
|
30151
30194
|
this.caseTitle = new CaseField();
|
|
30152
|
-
|
|
30153
|
-
|
|
30154
|
-
this.caseFields = this.getCaseFields();
|
|
30155
|
-
}
|
|
30156
|
-
}
|
|
30157
|
-
isDraft() {
|
|
30158
|
-
return Draft.isDraft(this.caseDetails.case_id);
|
|
30195
|
+
this.caseTitle.label = this.caseDetails.state.title_display;
|
|
30196
|
+
this.caseFields = this.getCaseFieldsInfo();
|
|
30159
30197
|
}
|
|
30160
|
-
|
|
30198
|
+
getCaseFieldsInfo() {
|
|
30161
30199
|
const caseDataFields = this.caseDetails.tabs.reduce((acc, tab) => {
|
|
30162
30200
|
return acc.concat(tab.fields);
|
|
30163
30201
|
}, []);
|
|
@@ -33758,7 +33796,7 @@ function ErrorMessageComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
33758
33796
|
class ErrorMessageComponent {
|
|
33759
33797
|
error;
|
|
33760
33798
|
static ɵfac = function ErrorMessageComponent_Factory(t) { return new (t || ErrorMessageComponent)(); };
|
|
33761
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ErrorMessageComponent, selectors: [["exui-error-message"]], inputs: { error: "error" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["routerLink", ".", 3, "fragment"]], template: function ErrorMessageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
33799
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ErrorMessageComponent, selectors: [["exui-error-message"]], inputs: { error: "error" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["routerLink", ".", "tabindex", "0", 3, "fragment"]], template: function ErrorMessageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
33762
33800
|
i0.ɵɵtemplate(0, ErrorMessageComponent_ng_container_0_Template, 11, 7, "ng-container", 0);
|
|
33763
33801
|
} if (rf & 2) {
|
|
33764
33802
|
i0.ɵɵproperty("ngIf", ctx.error);
|
|
@@ -33766,7 +33804,7 @@ class ErrorMessageComponent {
|
|
|
33766
33804
|
}
|
|
33767
33805
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMessageComponent, [{
|
|
33768
33806
|
type: Component,
|
|
33769
|
-
args: [{ selector: 'exui-error-message', template: "<!-- Cloned from rpx-xui-webapp src/app/components/error-message/error-message.component.html -->\n<ng-container *ngIf=\"error\">\n <div class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">{{error.title | rpxTranslate}}</h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a routerLink=\".\" [fragment]=\"error.fieldId\">{{error.description | rpxTranslate}}</a>\n </li>\n </ul>\n </div>\n </div>\n</ng-container>\n" }]
|
|
33807
|
+
args: [{ selector: 'exui-error-message', template: "<!-- Cloned from rpx-xui-webapp src/app/components/error-message/error-message.component.html -->\n<ng-container *ngIf=\"error\">\n <div class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">{{error.title | rpxTranslate}}</h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a routerLink=\".\" tabindex=\"0\" [fragment]=\"error.fieldId\">{{error.description | rpxTranslate}}</a>\n </li>\n </ul>\n </div>\n </div>\n</ng-container>\n" }]
|
|
33770
33808
|
}], null, { error: [{
|
|
33771
33809
|
type: Input
|
|
33772
33810
|
}] }); })();
|