@hmcts/ccd-case-ui-toolkit 7.1.73 → 7.1.74
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/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.mjs +9 -15
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.mjs +23 -15
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +4 -4
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +32 -30
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts +4 -2
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +0 -2
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -20442,40 +20442,34 @@ const caseMessagesMockData = [
|
|
|
20442
20442
|
|
|
20443
20443
|
function QualifyingQuestionDetailComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
20444
20444
|
i0.ɵɵelementContainerStart(0);
|
|
20445
|
-
i0.ɵɵelementStart(1, "
|
|
20445
|
+
i0.ɵɵelementStart(1, "h1", 1);
|
|
20446
20446
|
i0.ɵɵtext(2);
|
|
20447
20447
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20448
20448
|
i0.ɵɵelementEnd();
|
|
20449
|
-
i0.ɵɵelementStart(4, "
|
|
20450
|
-
i0.ɵɵ
|
|
20449
|
+
i0.ɵɵelementStart(4, "div", 2);
|
|
20450
|
+
i0.ɵɵelement(5, "ccd-markdown", 3);
|
|
20451
20451
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
20452
20452
|
i0.ɵɵelementEnd();
|
|
20453
|
-
i0.ɵɵelementStart(7, "div", 3);
|
|
20454
|
-
i0.ɵɵelement(8, "ccd-markdown", 4);
|
|
20455
|
-
i0.ɵɵpipe(9, "rpxTranslate");
|
|
20456
|
-
i0.ɵɵelementEnd();
|
|
20457
20453
|
i0.ɵɵelementContainerEnd();
|
|
20458
20454
|
} if (rf & 2) {
|
|
20459
20455
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
20460
20456
|
i0.ɵɵadvance(2);
|
|
20461
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3,
|
|
20462
|
-
i0.ɵɵadvance(3);
|
|
20463
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, ctx_r0.qualifyingQuestion.name), " ");
|
|
20457
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, ctx_r0.qualifyingQuestion.name), " ");
|
|
20464
20458
|
i0.ɵɵadvance(3);
|
|
20465
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(
|
|
20459
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(6, 4, ctx_r0.qualifyingQuestion.markdown));
|
|
20466
20460
|
} }
|
|
20467
20461
|
class QualifyingQuestionDetailComponent {
|
|
20468
20462
|
qualifyingQuestion;
|
|
20469
20463
|
static ɵfac = function QualifyingQuestionDetailComponent_Factory(t) { return new (t || QualifyingQuestionDetailComponent)(); };
|
|
20470
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionDetailComponent, selectors: [["ccd-qualifying-question-detail"]], inputs: { qualifyingQuestion: "qualifyingQuestion" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-
|
|
20471
|
-
i0.ɵɵtemplate(0, QualifyingQuestionDetailComponent_ng_container_0_Template,
|
|
20464
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionDetailComponent, selectors: [["ccd-qualifying-question-detail"]], inputs: { qualifyingQuestion: "qualifyingQuestion" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-heading-l"], [1, "qm-qualifying-question"], [3, "content"]], template: function QualifyingQuestionDetailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20465
|
+
i0.ɵɵtemplate(0, QualifyingQuestionDetailComponent_ng_container_0_Template, 7, 6, "ng-container", 0);
|
|
20472
20466
|
} if (rf & 2) {
|
|
20473
20467
|
i0.ɵɵproperty("ngIf", ctx.qualifyingQuestion == null ? null : ctx.qualifyingQuestion.markdown);
|
|
20474
20468
|
} }, dependencies: [i5.NgIf, MarkdownComponent, i1.RpxTranslatePipe], styles: [".qm-qualifying-question[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]{font-size:19px}"] });
|
|
20475
20469
|
}
|
|
20476
20470
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionDetailComponent, [{
|
|
20477
20471
|
type: Component,
|
|
20478
|
-
args: [{ selector: 'ccd-qualifying-question-detail', template: "<ng-container *ngIf=\"qualifyingQuestion?.markdown\">\n <
|
|
20472
|
+
args: [{ selector: 'ccd-qualifying-question-detail', template: "<ng-container *ngIf=\"qualifyingQuestion?.markdown\">\n <h1 class=\"govuk-heading-l\">\n {{ qualifyingQuestion.name | rpxTranslate }}\n </h1>\n <div class=\"qm-qualifying-question\">\n <ccd-markdown\n [content]=\"qualifyingQuestion.markdown | rpxTranslate\">\n </ccd-markdown>\n </div>\n</ng-container>\n", styles: [".qm-qualifying-question .markdown{font-size:19px}\n"] }]
|
|
20479
20473
|
}], null, { qualifyingQuestion: [{
|
|
20480
20474
|
type: Input
|
|
20481
20475
|
}] }); })();
|
|
@@ -20557,31 +20551,33 @@ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_co
|
|
|
20557
20551
|
i0.ɵɵelementContainerEnd();
|
|
20558
20552
|
} if (rf & 2) {
|
|
20559
20553
|
i0.ɵɵadvance(2);
|
|
20560
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "
|
|
20554
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "If your issue is not covered by the options above, raise a query:"));
|
|
20561
20555
|
} }
|
|
20562
20556
|
function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
20557
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
20563
20558
|
i0.ɵɵelementContainerStart(0);
|
|
20564
20559
|
i0.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template, 4, 3, "ng-container", 0);
|
|
20565
|
-
i0.ɵɵelementStart(2, "div", 10);
|
|
20566
|
-
i0.ɵɵ
|
|
20560
|
+
i0.ɵɵelementStart(2, "div", 10)(3, "input", 11);
|
|
20561
|
+
i0.ɵɵlistener("change", function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template_input_change_3_listener() { const qualifyingQuestion_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onSelectionChange(qualifyingQuestion_r3)); });
|
|
20562
|
+
i0.ɵɵelementEnd();
|
|
20567
20563
|
i0.ɵɵelementStart(4, "label", 12);
|
|
20568
20564
|
i0.ɵɵtext(5);
|
|
20569
20565
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
20570
20566
|
i0.ɵɵelementEnd()();
|
|
20571
20567
|
i0.ɵɵelementContainerEnd();
|
|
20572
20568
|
} if (rf & 2) {
|
|
20573
|
-
const
|
|
20574
|
-
const
|
|
20569
|
+
const qualifyingQuestion_r3 = ctx.$implicit;
|
|
20570
|
+
const isLast_r4 = ctx.last;
|
|
20575
20571
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20576
20572
|
i0.ɵɵadvance();
|
|
20577
|
-
i0.ɵɵproperty("ngIf",
|
|
20573
|
+
i0.ɵɵproperty("ngIf", isLast_r4);
|
|
20578
20574
|
i0.ɵɵadvance(2);
|
|
20579
|
-
i0.ɵɵpropertyInterpolate("id",
|
|
20580
|
-
i0.ɵɵproperty("formControl", ctx_r0.qualifyingQuestionsControl)("value",
|
|
20575
|
+
i0.ɵɵpropertyInterpolate("id", qualifyingQuestion_r3.name);
|
|
20576
|
+
i0.ɵɵproperty("formControl", ctx_r0.qualifyingQuestionsControl)("value", qualifyingQuestion_r3);
|
|
20581
20577
|
i0.ɵɵadvance();
|
|
20582
|
-
i0.ɵɵproperty("for",
|
|
20578
|
+
i0.ɵɵproperty("for", qualifyingQuestion_r3.name);
|
|
20583
20579
|
i0.ɵɵadvance();
|
|
20584
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6,
|
|
20580
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6, qualifyingQuestion_r3.name));
|
|
20585
20581
|
} }
|
|
20586
20582
|
function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
20587
20583
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -20606,7 +20602,7 @@ function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) { i
|
|
|
20606
20602
|
i0.ɵɵadvance(4);
|
|
20607
20603
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, "Raise a new query"), " ");
|
|
20608
20604
|
i0.ɵɵadvance(3);
|
|
20609
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 8, "
|
|
20605
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 8, "What do you need help to do?"), " ");
|
|
20610
20606
|
i0.ɵɵadvance(2);
|
|
20611
20607
|
i0.ɵɵproperty("ngIf", ctx_r0.displayError);
|
|
20612
20608
|
i0.ɵɵadvance(2);
|
|
@@ -20618,6 +20614,7 @@ class QualifyingQuestionOptionsComponent {
|
|
|
20618
20614
|
qualifyingQuestionService;
|
|
20619
20615
|
qualifyingQuestionsControl;
|
|
20620
20616
|
qualifyingQuestions$;
|
|
20617
|
+
questionSelected = new EventEmitter();
|
|
20621
20618
|
qualifyingQuestionsErrorMessage = QualifyingQuestionsErrorMessage;
|
|
20622
20619
|
caseId;
|
|
20623
20620
|
constructor(route, router, qualifyingQuestionService) {
|
|
@@ -20639,8 +20636,11 @@ class QualifyingQuestionOptionsComponent {
|
|
|
20639
20636
|
get displayError() {
|
|
20640
20637
|
return this.qualifyingQuestionsControl.touched && this.qualifyingQuestionsControl.hasError('required');
|
|
20641
20638
|
}
|
|
20639
|
+
onSelectionChange(qualifyingQuestion) {
|
|
20640
|
+
this.questionSelected.emit(qualifyingQuestion);
|
|
20641
|
+
}
|
|
20642
20642
|
static ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(QualifyingQuestionService)); };
|
|
20643
|
-
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, "
|
|
20643
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, outputs: { questionSelected: "questionSelected" }, 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, "change", "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [1, "qm-qualifying-question__divider"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20644
20644
|
i0.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 14, 12, "ng-container", 0);
|
|
20645
20645
|
} if (rf & 2) {
|
|
20646
20646
|
i0.ɵɵproperty("ngIf", ctx.qualifyingQuestionsControl);
|
|
@@ -20648,11 +20648,13 @@ class QualifyingQuestionOptionsComponent {
|
|
|
20648
20648
|
}
|
|
20649
20649
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionOptionsComponent, [{
|
|
20650
20650
|
type: Component,
|
|
20651
|
-
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 {{ '
|
|
20651
|
+
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 {{ 'What do you need help to do?' | 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=\"qm-qualifying-question__divider\">{{ 'If your issue is not covered by the options above, raise a query:' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" \n id=\"{{qualifyingQuestion.name}}\" \n name=\"qualifyingQuestionOption\"\n type=\"radio\" [formControl]=\"qualifyingQuestionsControl\" \n [value]=\"qualifyingQuestion\"\n (change)=\"onSelectionChange(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" }]
|
|
20652
20652
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: QualifyingQuestionService }], { qualifyingQuestionsControl: [{
|
|
20653
20653
|
type: Input
|
|
20654
20654
|
}], qualifyingQuestions$: [{
|
|
20655
20655
|
type: Input
|
|
20656
|
+
}], questionSelected: [{
|
|
20657
|
+
type: Output
|
|
20656
20658
|
}] }); })();
|
|
20657
20659
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QualifyingQuestionOptionsComponent, { className: "QualifyingQuestionOptionsComponent", filePath: "lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.ts", lineNumber: 13 }); })();
|
|
20658
20660
|
|
|
@@ -21146,8 +21148,6 @@ class QueryCheckYourAnswersComponent {
|
|
|
21146
21148
|
tid;
|
|
21147
21149
|
createEventSubscription;
|
|
21148
21150
|
searchTasksSubscription;
|
|
21149
|
-
firstCollectionPicked = false; // Track whether the first collection has been picked
|
|
21150
|
-
firstCollectionOrder;
|
|
21151
21151
|
queryCreateContextEnum = QueryCreateContext;
|
|
21152
21152
|
eventCompletionParams;
|
|
21153
21153
|
caseQueriesCollections;
|
|
@@ -21299,9 +21299,11 @@ class QueryCheckYourAnswersComponent {
|
|
|
21299
21299
|
};
|
|
21300
21300
|
}
|
|
21301
21301
|
else {
|
|
21302
|
+
// Use partyName from the first collection (assumption: all share the same party)
|
|
21303
|
+
const originalPartyName = this.caseQueriesCollections[0].partyName;
|
|
21302
21304
|
// If no collection matches, or it's a new query
|
|
21303
21305
|
newQueryData[this.fieldId] = {
|
|
21304
|
-
partyName:
|
|
21306
|
+
partyName: originalPartyName,
|
|
21305
21307
|
roleOnCase: '', // Not returned by CCD
|
|
21306
21308
|
caseMessages: [
|
|
21307
21309
|
{
|