@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-read-write-view-v10 → 6.16.0-query-management-query-response-validation
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/bundles/hmcts-ccd-case-ui-toolkit.umd.js +177 -99
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/palette/query-management/__mocks__/index.js +1 -10
- package/esm2015/lib/shared/components/palette/query-management/components/query-list/query-list.component.js +4 -4
- package/esm2015/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.js +2 -0
- package/esm2015/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-messages.component.js +56 -0
- package/esm2015/lib/shared/components/palette/query-management/models/party-messages/party-message.model.js +1 -1
- package/esm2015/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.js +1 -1
- package/esm2015/lib/shared/components/palette/query-management/query-management.module.js +7 -3
- package/esm2015/lib/shared/components/palette/query-management/write-query-management-field.component.js +106 -86
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +165 -99
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/query-management/__mocks__/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.d.ts +5 -0
- package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-messages.component.d.ts +8 -0
- package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-messages.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/models/party-messages/party-message.model.d.ts +0 -1
- package/lib/shared/components/palette/query-management/models/party-messages/party-message.model.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts +0 -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/components/palette/query-management/query-management.module.d.ts +6 -5
- package/lib/shared/components/palette/query-management/query-management.module.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts +4 -0
- package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -20160,7 +20160,6 @@
|
|
|
20160
20160
|
id: 'case-message-001',
|
|
20161
20161
|
subject: 'Review attached document',
|
|
20162
20162
|
name: 'Maggie Conroy',
|
|
20163
|
-
responseStatus: 'Response sent for Caseworker',
|
|
20164
20163
|
body: 'Please review attached document and advise if hearing should proceed?',
|
|
20165
20164
|
attachments: [
|
|
20166
20165
|
{
|
|
@@ -20180,7 +20179,6 @@
|
|
|
20180
20179
|
id: 'case-message-002',
|
|
20181
20180
|
subject: 'Games',
|
|
20182
20181
|
name: 'Maggie Conroy',
|
|
20183
|
-
responseStatus: 'Response sent for Caseworker',
|
|
20184
20182
|
body: 'Can I play games in my phone when my solicitor is talking?',
|
|
20185
20183
|
attachments: [],
|
|
20186
20184
|
isHearingRelated: true,
|
|
@@ -20191,7 +20189,6 @@
|
|
|
20191
20189
|
{
|
|
20192
20190
|
id: 'case-message-003',
|
|
20193
20191
|
name: 'Maggie Conroy',
|
|
20194
|
-
responseStatus: 'Response sent for Caseworker',
|
|
20195
20192
|
body: 'Using mobile phone is strictly prohibited in the court room.',
|
|
20196
20193
|
attachments: [],
|
|
20197
20194
|
isHearingRelated: true,
|
|
@@ -20210,7 +20207,6 @@
|
|
|
20210
20207
|
id: 'case-message-005',
|
|
20211
20208
|
subject: 'Add respondent detention order',
|
|
20212
20209
|
name: 'Maggie Conroy',
|
|
20213
|
-
responseStatus: 'Response sent for Caseworker',
|
|
20214
20210
|
body: 'Please add respondent detention order to the file XX20230423-DX.',
|
|
20215
20211
|
attachments: [],
|
|
20216
20212
|
isHearingRelated: false,
|
|
@@ -20220,7 +20216,6 @@
|
|
|
20220
20216
|
{
|
|
20221
20217
|
id: 'case-message-006',
|
|
20222
20218
|
name: 'Maggie Conroy',
|
|
20223
|
-
responseStatus: 'Response sent for Caseworker',
|
|
20224
20219
|
body: 'I confirm that the respondent detention order is now added to the file XX20230423-DX.',
|
|
20225
20220
|
attachments: [],
|
|
20226
20221
|
isHearingRelated: false,
|
|
@@ -20232,7 +20227,6 @@
|
|
|
20232
20227
|
id: 'case-message-007',
|
|
20233
20228
|
subject: 'Food',
|
|
20234
20229
|
name: 'Maggie Conroy',
|
|
20235
|
-
responseStatus: 'Response sent for Caseworker',
|
|
20236
20230
|
body: 'Can I eat in the hearings?',
|
|
20237
20231
|
attachments: [],
|
|
20238
20232
|
isHearingRelated: true,
|
|
@@ -20243,7 +20237,6 @@
|
|
|
20243
20237
|
{
|
|
20244
20238
|
id: 'case-message-008',
|
|
20245
20239
|
name: 'Maggie Conroy',
|
|
20246
|
-
responseStatus: 'Response sent for Caseworker',
|
|
20247
20240
|
body: 'Consumption of food is not allowed when a hearing is taking place.',
|
|
20248
20241
|
attachments: [],
|
|
20249
20242
|
isHearingRelated: true,
|
|
@@ -20256,7 +20249,6 @@
|
|
|
20256
20249
|
id: 'case-message-009',
|
|
20257
20250
|
subject: 'Bring relatives',
|
|
20258
20251
|
name: 'Maggie Conroy',
|
|
20259
|
-
responseStatus: 'Response received for professional user',
|
|
20260
20252
|
body: 'Can I bring my grandma with me so she get out from the residence?',
|
|
20261
20253
|
attachments: [],
|
|
20262
20254
|
isHearingRelated: true,
|
|
@@ -20267,7 +20259,6 @@
|
|
|
20267
20259
|
{
|
|
20268
20260
|
id: 'case-message-010',
|
|
20269
20261
|
name: 'Maggie Conroy',
|
|
20270
|
-
responseStatus: 'Response received for professional user',
|
|
20271
20262
|
body: 'Sorry, only those required for the hearing should be present inside the court room.',
|
|
20272
20263
|
attachments: [],
|
|
20273
20264
|
isHearingRelated: true,
|
|
@@ -20429,10 +20420,10 @@
|
|
|
20429
20420
|
QueryListResponseStatus["RESPONDED"] = "Responded";
|
|
20430
20421
|
})(QueryListResponseStatus || (QueryListResponseStatus = {}));
|
|
20431
20422
|
|
|
20432
|
-
function
|
|
20423
|
+
function WriteQueryManagementFieldComponent_p_29_Template(rf, ctx) {
|
|
20433
20424
|
if (rf & 1) {
|
|
20434
|
-
i0__namespace.ɵɵelementStart(0, "p",
|
|
20435
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
20425
|
+
i0__namespace.ɵɵelementStart(0, "p", 26);
|
|
20426
|
+
i0__namespace.ɵɵelementStart(1, "span", 27);
|
|
20436
20427
|
i0__namespace.ɵɵtext(2);
|
|
20437
20428
|
i0__namespace.ɵɵpipe(3, "rpxTranslate");
|
|
20438
20429
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -20442,15 +20433,15 @@
|
|
|
20442
20433
|
}
|
|
20443
20434
|
if (rf & 2) {
|
|
20444
20435
|
i0__namespace.ɵɵadvance(2);
|
|
20445
|
-
i0__namespace.ɵɵ
|
|
20436
|
+
i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
20446
20437
|
i0__namespace.ɵɵadvance(2);
|
|
20447
|
-
i0__namespace.ɵɵtextInterpolate1("
|
|
20438
|
+
i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, "Enter a response message"), " ");
|
|
20448
20439
|
}
|
|
20449
20440
|
}
|
|
20450
|
-
function
|
|
20441
|
+
function WriteQueryManagementFieldComponent_p_42_Template(rf, ctx) {
|
|
20451
20442
|
if (rf & 1) {
|
|
20452
|
-
i0__namespace.ɵɵelementStart(0, "p",
|
|
20453
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
20443
|
+
i0__namespace.ɵɵelementStart(0, "p", 28);
|
|
20444
|
+
i0__namespace.ɵɵelementStart(1, "span", 27);
|
|
20454
20445
|
i0__namespace.ɵɵtext(2);
|
|
20455
20446
|
i0__namespace.ɵɵpipe(3, "rpxTranslate");
|
|
20456
20447
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -20460,9 +20451,9 @@
|
|
|
20460
20451
|
}
|
|
20461
20452
|
if (rf & 2) {
|
|
20462
20453
|
i0__namespace.ɵɵadvance(2);
|
|
20463
|
-
i0__namespace.ɵɵ
|
|
20454
|
+
i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
20464
20455
|
i0__namespace.ɵɵadvance(2);
|
|
20465
|
-
i0__namespace.ɵɵtextInterpolate1("
|
|
20456
|
+
i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, "File error message"), " ");
|
|
20466
20457
|
}
|
|
20467
20458
|
}
|
|
20468
20459
|
var WriteQueryManagementFieldComponent = /** @class */ (function (_super) {
|
|
@@ -20470,149 +20461,169 @@
|
|
|
20470
20461
|
function WriteQueryManagementFieldComponent() {
|
|
20471
20462
|
var _this = _super.call(this) || this;
|
|
20472
20463
|
_this.responseFormGroup = new i3.FormGroup({
|
|
20473
|
-
response: new i3.FormControl('', i3.Validators.required),
|
|
20474
|
-
documents: new i3.FormControl([]
|
|
20464
|
+
response: new i3.FormControl('', [i3.Validators.required]),
|
|
20465
|
+
documents: new i3.FormControl([])
|
|
20475
20466
|
});
|
|
20467
|
+
_this.errorMessages = [];
|
|
20468
|
+
_this.submitted = false;
|
|
20476
20469
|
return _this;
|
|
20477
20470
|
}
|
|
20478
20471
|
WriteQueryManagementFieldComponent.prototype.ngOnInit = function () {
|
|
20479
20472
|
this.queryItem = new QueryListItem();
|
|
20480
20473
|
Object.assign(this.queryItem, partyMessagesMockData[0].partyMessages[0]);
|
|
20481
20474
|
};
|
|
20475
|
+
WriteQueryManagementFieldComponent.prototype.submitForm = function () {
|
|
20476
|
+
this.submitted = true;
|
|
20477
|
+
this.errorMessages = [];
|
|
20478
|
+
window.scrollTo(0, 0);
|
|
20479
|
+
if (!this.responseFormGroup.valid) {
|
|
20480
|
+
if (this.responseFormGroup.controls.response.hasError('required')) {
|
|
20481
|
+
this.errorMessages.push({ controlName: 'response', message: 'Add a response before continue' });
|
|
20482
|
+
}
|
|
20483
|
+
}
|
|
20484
|
+
};
|
|
20482
20485
|
return WriteQueryManagementFieldComponent;
|
|
20483
20486
|
}(AbstractFieldReadComponent));
|
|
20484
20487
|
WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
|
|
20485
|
-
WriteQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls:
|
|
20488
|
+
WriteQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 58, vars: 49, consts: [[1, "govuk-!-margin-top-6", "govuk-!-margin-bottom-6"], [3, "errorMessages"], [1, "govuk-!-margin-bottom-4"], ["href", "javascript:void(0)", 1, "govuk-back-link", "govuk-!-margin-top-0"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l", "govuk-!-margin-bottom-4"], [1, "govuk-heading-l", "govuk-!-margin-bottom-1"], [1, "govuk-body-l", "govuk-!-margin-bottom-0"], [3, "queryItem"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "response-textarea"], [1, "govuk-label-wrapper"], ["for", "query-response", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "query-response-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-response", "name", "query-response", "rows", "5", "aria-describedby", "query-response-hint query-response-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-form-group"], ["for", "add-documents", 1, "govuk-label"], [1, "govuk-!-font-weight-bold"], ["id", "add-documents-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-documents", "name", "add-documents", "type", "file", 1, "govuk-file-upload"], ["data-module", "govuk-button", 1, "govuk-button"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "disabled"], ["data-module", "govuk-button", 1, "govuk-button", 3, "click"], [1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link"], ["id", "query-response-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-documents-error", 1, "govuk-error-message"]], template: function WriteQueryManagementFieldComponent_Template(rf, ctx) {
|
|
20486
20489
|
if (rf & 1) {
|
|
20487
20490
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
20488
|
-
i0__namespace.ɵɵ
|
|
20489
|
-
i0__namespace.ɵɵelementStart(2, "
|
|
20490
|
-
i0__namespace.ɵɵ
|
|
20491
|
-
i0__namespace.ɵɵ
|
|
20491
|
+
i0__namespace.ɵɵelement(1, "ccd-query-management-error-messages", 1);
|
|
20492
|
+
i0__namespace.ɵɵelementStart(2, "div", 2);
|
|
20493
|
+
i0__namespace.ɵɵelementStart(3, "a", 3);
|
|
20494
|
+
i0__namespace.ɵɵtext(4);
|
|
20495
|
+
i0__namespace.ɵɵpipe(5, "rpxTranslate");
|
|
20492
20496
|
i0__namespace.ɵɵelementEnd();
|
|
20493
20497
|
i0__namespace.ɵɵelementEnd();
|
|
20494
|
-
i0__namespace.ɵɵelementStart(5, "div", 3);
|
|
20495
20498
|
i0__namespace.ɵɵelementStart(6, "div", 4);
|
|
20496
|
-
i0__namespace.ɵɵ
|
|
20497
|
-
i0__namespace.ɵɵ
|
|
20499
|
+
i0__namespace.ɵɵelementStart(7, "div", 5);
|
|
20500
|
+
i0__namespace.ɵɵtext(8);
|
|
20501
|
+
i0__namespace.ɵɵpipe(9, "rpxTranslate");
|
|
20498
20502
|
i0__namespace.ɵɵelementEnd();
|
|
20499
|
-
i0__namespace.ɵɵelementStart(
|
|
20500
|
-
i0__namespace.ɵɵtext(
|
|
20501
|
-
i0__namespace.ɵɵpipe(
|
|
20503
|
+
i0__namespace.ɵɵelementStart(10, "h1", 6);
|
|
20504
|
+
i0__namespace.ɵɵtext(11);
|
|
20505
|
+
i0__namespace.ɵɵpipe(12, "rpxTranslate");
|
|
20502
20506
|
i0__namespace.ɵɵelementEnd();
|
|
20503
|
-
i0__namespace.ɵɵelementStart(
|
|
20504
|
-
i0__namespace.ɵɵelementStart(
|
|
20505
|
-
i0__namespace.ɵɵtext(
|
|
20506
|
-
i0__namespace.ɵɵpipe(
|
|
20507
|
+
i0__namespace.ɵɵelementStart(13, "div", 2);
|
|
20508
|
+
i0__namespace.ɵɵelementStart(14, "div", 7);
|
|
20509
|
+
i0__namespace.ɵɵtext(15);
|
|
20510
|
+
i0__namespace.ɵɵpipe(16, "ccdCaseReference");
|
|
20507
20511
|
i0__namespace.ɵɵelementEnd();
|
|
20508
20512
|
i0__namespace.ɵɵelementEnd();
|
|
20509
|
-
i0__namespace.ɵɵelementStart(
|
|
20510
|
-
i0__namespace.ɵɵelement(
|
|
20513
|
+
i0__namespace.ɵɵelementStart(17, "div");
|
|
20514
|
+
i0__namespace.ɵɵelement(18, "ccd-query-details-table", 8);
|
|
20511
20515
|
i0__namespace.ɵɵelementEnd();
|
|
20512
20516
|
i0__namespace.ɵɵelementEnd();
|
|
20513
|
-
i0__namespace.ɵɵelementStart(
|
|
20514
|
-
i0__namespace.ɵɵelementStart(
|
|
20515
|
-
i0__namespace.ɵɵtext(
|
|
20516
|
-
i0__namespace.ɵɵpipe(
|
|
20517
|
+
i0__namespace.ɵɵelementStart(19, "div", 2);
|
|
20518
|
+
i0__namespace.ɵɵelementStart(20, "h1", 9);
|
|
20519
|
+
i0__namespace.ɵɵtext(21);
|
|
20520
|
+
i0__namespace.ɵɵpipe(22, "rpxTranslate");
|
|
20517
20521
|
i0__namespace.ɵɵelementEnd();
|
|
20518
|
-
i0__namespace.ɵɵelementStart(
|
|
20519
|
-
i0__namespace.ɵɵelementStart(
|
|
20520
|
-
i0__namespace.ɵɵelementStart(
|
|
20521
|
-
i0__namespace.ɵɵelementStart(
|
|
20522
|
-
i0__namespace.ɵɵtext(
|
|
20523
|
-
i0__namespace.ɵɵpipe(
|
|
20522
|
+
i0__namespace.ɵɵelementStart(23, "form", 10);
|
|
20523
|
+
i0__namespace.ɵɵelementStart(24, "div", 11);
|
|
20524
|
+
i0__namespace.ɵɵelementStart(25, "div", 12);
|
|
20525
|
+
i0__namespace.ɵɵelementStart(26, "label", 13);
|
|
20526
|
+
i0__namespace.ɵɵtext(27);
|
|
20527
|
+
i0__namespace.ɵɵpipe(28, "rpxTranslate");
|
|
20524
20528
|
i0__namespace.ɵɵelementEnd();
|
|
20525
20529
|
i0__namespace.ɵɵelementEnd();
|
|
20526
|
-
i0__namespace.ɵɵtemplate(
|
|
20527
|
-
i0__namespace.ɵɵelementStart(
|
|
20528
|
-
i0__namespace.ɵɵtext(
|
|
20530
|
+
i0__namespace.ɵɵtemplate(29, WriteQueryManagementFieldComponent_p_29_Template, 6, 6, "p", 14);
|
|
20531
|
+
i0__namespace.ɵɵelementStart(30, "textarea", 15);
|
|
20532
|
+
i0__namespace.ɵɵtext(31, " ");
|
|
20529
20533
|
i0__namespace.ɵɵelementEnd();
|
|
20530
20534
|
i0__namespace.ɵɵelementEnd();
|
|
20531
|
-
i0__namespace.ɵɵelementStart(
|
|
20532
|
-
i0__namespace.ɵɵelementStart(
|
|
20533
|
-
i0__namespace.ɵɵelementStart(
|
|
20534
|
-
i0__namespace.ɵɵelementStart(
|
|
20535
|
-
i0__namespace.ɵɵelementStart(
|
|
20536
|
-
i0__namespace.ɵɵtext(
|
|
20537
|
-
i0__namespace.ɵɵpipe(
|
|
20535
|
+
i0__namespace.ɵɵelementStart(32, "div");
|
|
20536
|
+
i0__namespace.ɵɵelementStart(33, "div", 16);
|
|
20537
|
+
i0__namespace.ɵɵelementStart(34, "div", 12);
|
|
20538
|
+
i0__namespace.ɵɵelementStart(35, "label", 17);
|
|
20539
|
+
i0__namespace.ɵɵelementStart(36, "div", 18);
|
|
20540
|
+
i0__namespace.ɵɵtext(37);
|
|
20541
|
+
i0__namespace.ɵɵpipe(38, "rpxTranslate");
|
|
20538
20542
|
i0__namespace.ɵɵelementEnd();
|
|
20539
|
-
i0__namespace.ɵɵelementStart(
|
|
20540
|
-
i0__namespace.ɵɵtext(
|
|
20541
|
-
i0__namespace.ɵɵpipe(
|
|
20543
|
+
i0__namespace.ɵɵelementStart(39, "div");
|
|
20544
|
+
i0__namespace.ɵɵtext(40);
|
|
20545
|
+
i0__namespace.ɵɵpipe(41, "rpxTranslate");
|
|
20542
20546
|
i0__namespace.ɵɵelementEnd();
|
|
20543
20547
|
i0__namespace.ɵɵelementEnd();
|
|
20544
20548
|
i0__namespace.ɵɵelementEnd();
|
|
20545
|
-
i0__namespace.ɵɵtemplate(
|
|
20546
|
-
i0__namespace.ɵɵelement(
|
|
20549
|
+
i0__namespace.ɵɵtemplate(42, WriteQueryManagementFieldComponent_p_42_Template, 6, 6, "p", 19);
|
|
20550
|
+
i0__namespace.ɵɵelement(43, "input", 20);
|
|
20547
20551
|
i0__namespace.ɵɵelementEnd();
|
|
20548
20552
|
i0__namespace.ɵɵelementEnd();
|
|
20549
20553
|
i0__namespace.ɵɵelementEnd();
|
|
20554
|
+
i0__namespace.ɵɵelementStart(44, "button", 21);
|
|
20555
|
+
i0__namespace.ɵɵtext(45);
|
|
20556
|
+
i0__namespace.ɵɵpipe(46, "rpxTranslate");
|
|
20550
20557
|
i0__namespace.ɵɵelementEnd();
|
|
20551
|
-
i0__namespace.ɵɵelementStart(43, "div");
|
|
20552
|
-
i0__namespace.ɵɵelementStart(44, "div", 21);
|
|
20553
|
-
i0__namespace.ɵɵelementStart(45, "button", 22);
|
|
20554
|
-
i0__namespace.ɵɵtext(46);
|
|
20555
|
-
i0__namespace.ɵɵpipe(47, "rpxTranslate");
|
|
20556
20558
|
i0__namespace.ɵɵelementEnd();
|
|
20557
|
-
i0__namespace.ɵɵelementStart(
|
|
20559
|
+
i0__namespace.ɵɵelementStart(47, "div");
|
|
20560
|
+
i0__namespace.ɵɵelementStart(48, "button", 22);
|
|
20558
20561
|
i0__namespace.ɵɵtext(49);
|
|
20559
20562
|
i0__namespace.ɵɵpipe(50, "rpxTranslate");
|
|
20560
20563
|
i0__namespace.ɵɵelementEnd();
|
|
20564
|
+
i0__namespace.ɵɵelementStart(51, "button", 23);
|
|
20565
|
+
i0__namespace.ɵɵlistener("click", function WriteQueryManagementFieldComponent_Template_button_click_51_listener() { return ctx.submitForm(); });
|
|
20566
|
+
i0__namespace.ɵɵtext(52);
|
|
20567
|
+
i0__namespace.ɵɵpipe(53, "rpxTranslate");
|
|
20561
20568
|
i0__namespace.ɵɵelementEnd();
|
|
20562
20569
|
i0__namespace.ɵɵelementEnd();
|
|
20563
|
-
i0__namespace.ɵɵelementStart(
|
|
20564
|
-
i0__namespace.ɵɵelementStart(
|
|
20565
|
-
i0__namespace.ɵɵtext(
|
|
20566
|
-
i0__namespace.ɵɵpipe(
|
|
20570
|
+
i0__namespace.ɵɵelementStart(54, "div", 24);
|
|
20571
|
+
i0__namespace.ɵɵelementStart(55, "a", 25);
|
|
20572
|
+
i0__namespace.ɵɵtext(56);
|
|
20573
|
+
i0__namespace.ɵɵpipe(57, "rpxTranslate");
|
|
20567
20574
|
i0__namespace.ɵɵelementEnd();
|
|
20568
20575
|
i0__namespace.ɵɵelementEnd();
|
|
20569
20576
|
i0__namespace.ɵɵelementEnd();
|
|
20570
20577
|
}
|
|
20571
20578
|
if (rf & 2) {
|
|
20572
|
-
var
|
|
20573
|
-
var tmp_9_0 = null;
|
|
20579
|
+
var tmp_8_0 = null;
|
|
20574
20580
|
var tmp_10_0 = null;
|
|
20575
|
-
var
|
|
20576
|
-
var
|
|
20581
|
+
var tmp_11_0 = null;
|
|
20582
|
+
var tmp_13_0 = null;
|
|
20583
|
+
var tmp_16_0 = null;
|
|
20584
|
+
i0__namespace.ɵɵadvance(1);
|
|
20585
|
+
i0__namespace.ɵɵproperty("errorMessages", ctx.errorMessages);
|
|
20577
20586
|
i0__namespace.ɵɵadvance(3);
|
|
20578
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(
|
|
20587
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 25, "Back to tasks"));
|
|
20579
20588
|
i0__namespace.ɵɵadvance(4);
|
|
20580
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(
|
|
20589
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(9, 27, "Respond to query"));
|
|
20581
20590
|
i0__namespace.ɵɵadvance(3);
|
|
20582
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(
|
|
20591
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(12, 29, "Query details"));
|
|
20583
20592
|
i0__namespace.ɵɵadvance(4);
|
|
20584
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(
|
|
20593
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(16, 31, ctx.caseReference));
|
|
20585
20594
|
i0__namespace.ɵɵadvance(3);
|
|
20586
20595
|
i0__namespace.ɵɵproperty("queryItem", ctx.queryItem);
|
|
20587
20596
|
i0__namespace.ɵɵadvance(3);
|
|
20588
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(
|
|
20597
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(22, 33, "Respond to a query"));
|
|
20589
20598
|
i0__namespace.ɵɵadvance(2);
|
|
20590
20599
|
i0__namespace.ɵɵproperty("formGroup", ctx.responseFormGroup);
|
|
20591
20600
|
i0__namespace.ɵɵadvance(1);
|
|
20592
|
-
i0__namespace.ɵɵclassProp("govuk-form-group--error", (
|
|
20601
|
+
i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_8_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_8_0.errors));
|
|
20593
20602
|
i0__namespace.ɵɵadvance(3);
|
|
20594
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(
|
|
20603
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(28, 35, "Response message"), " ");
|
|
20595
20604
|
i0__namespace.ɵɵadvance(2);
|
|
20596
|
-
i0__namespace.ɵɵproperty("ngIf", (
|
|
20605
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_10_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_10_0.hasError("required")));
|
|
20597
20606
|
i0__namespace.ɵɵadvance(1);
|
|
20598
|
-
i0__namespace.ɵɵclassProp("govuk-textarea--error", (
|
|
20607
|
+
i0__namespace.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_11_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_11_0.hasError("required")));
|
|
20599
20608
|
i0__namespace.ɵɵproperty("formControlName", "response");
|
|
20600
20609
|
i0__namespace.ɵɵadvance(3);
|
|
20601
|
-
i0__namespace.ɵɵclassProp("govuk-form-group--error", (
|
|
20610
|
+
i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_13_0 = ctx.responseFormGroup.get("documents")) == null ? null : tmp_13_0.errors));
|
|
20602
20611
|
i0__namespace.ɵɵadvance(4);
|
|
20603
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(
|
|
20612
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(38, 37, "Add document (optional)"));
|
|
20604
20613
|
i0__namespace.ɵɵadvance(3);
|
|
20605
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(
|
|
20614
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(41, 39, "Attach a document to this message"));
|
|
20606
20615
|
i0__namespace.ɵɵadvance(2);
|
|
20607
|
-
i0__namespace.ɵɵproperty("ngIf", (
|
|
20608
|
-
i0__namespace.ɵɵadvance(
|
|
20616
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_16_0 = ctx.responseFormGroup.get("documents")) == null ? null : tmp_16_0.errors));
|
|
20617
|
+
i0__namespace.ɵɵadvance(3);
|
|
20618
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(46, 41, "Next"), " ");
|
|
20619
|
+
i0__namespace.ɵɵadvance(3);
|
|
20609
20620
|
i0__namespace.ɵɵproperty("disabled", true);
|
|
20610
20621
|
i0__namespace.ɵɵadvance(1);
|
|
20611
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(
|
|
20622
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(50, 43, "Previous"), " ");
|
|
20612
20623
|
i0__namespace.ɵɵadvance(3);
|
|
20613
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(
|
|
20624
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(53, 45, "Continue"), " ");
|
|
20614
20625
|
i0__namespace.ɵɵadvance(4);
|
|
20615
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(
|
|
20626
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(57, 47, "Cancel and return to query list"));
|
|
20616
20627
|
}
|
|
20617
20628
|
}, styles: [".response-textarea[_ngcontent-%COMP%]{max-width:576px}"] });
|
|
20618
20629
|
(function () {
|
|
@@ -28523,7 +28534,7 @@
|
|
|
28523
28534
|
i0__namespace.ɵɵadvance(3);
|
|
28524
28535
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
|
|
28525
28536
|
i0__namespace.ɵɵadvance(3);
|
|
28526
|
-
i0__namespace.ɵɵtextInterpolate(message_r6.
|
|
28537
|
+
i0__namespace.ɵɵtextInterpolate(message_r6.lastResponseBy);
|
|
28527
28538
|
}
|
|
28528
28539
|
}
|
|
28529
28540
|
function QueryListComponent_ng_container_0_Template(rf, ctx) {
|
|
@@ -28563,7 +28574,7 @@
|
|
|
28563
28574
|
{ name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
|
|
28564
28575
|
{ name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
|
|
28565
28576
|
{ name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
|
|
28566
|
-
{ name: 'lastResponseBy', displayName: 'Response
|
|
28577
|
+
{ name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
|
|
28567
28578
|
];
|
|
28568
28579
|
}
|
|
28569
28580
|
QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
|
|
@@ -28648,7 +28659,7 @@
|
|
|
28648
28659
|
if (rf & 2) {
|
|
28649
28660
|
i0__namespace.ɵɵproperty("ngIf", ctx.queryListData);
|
|
28650
28661
|
}
|
|
28651
|
-
}, directives: [i5__namespace.NgIf, i5__namespace.NgForOf], pipes: [i1__namespace.RpxTranslatePipe, i5__namespace.DatePipe], styles: [".query-list__caption[_ngcontent-%COMP%], .query-list__table[_ngcontent-%COMP%]{border:1px solid #b1b4b6}.query-list__caption[_ngcontent-%COMP%]{background:#f3f2f1;border-bottom:0;font-weight:700}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{padding-left:10px}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{padding-right:10px
|
|
28662
|
+
}, directives: [i5__namespace.NgIf, i5__namespace.NgForOf], pipes: [i1__namespace.RpxTranslatePipe, i5__namespace.DatePipe], styles: [".query-list__caption[_ngcontent-%COMP%], .query-list__table[_ngcontent-%COMP%]{border:1px solid #b1b4b6}.query-list__caption[_ngcontent-%COMP%]{background:#f3f2f1;border-bottom:0;font-weight:700}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{padding-left:10px}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{padding-right:10px}.query-list__cell--first[_ngcontent-%COMP%]{width:33%}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#000}"] });
|
|
28652
28663
|
(function () {
|
|
28653
28664
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
|
|
28654
28665
|
type: i0.Component,
|
|
@@ -28662,6 +28673,70 @@
|
|
|
28662
28673
|
}] });
|
|
28663
28674
|
})();
|
|
28664
28675
|
|
|
28676
|
+
function QueryManagementErrorMessagesComponent_div_0_div_4_Template(rf, ctx) {
|
|
28677
|
+
if (rf & 1) {
|
|
28678
|
+
i0__namespace.ɵɵelementStart(0, "div", 4);
|
|
28679
|
+
i0__namespace.ɵɵelementStart(1, "ul", 5);
|
|
28680
|
+
i0__namespace.ɵɵelementStart(2, "li");
|
|
28681
|
+
i0__namespace.ɵɵelementStart(3, "a", 6);
|
|
28682
|
+
i0__namespace.ɵɵtext(4);
|
|
28683
|
+
i0__namespace.ɵɵpipe(5, "rpxTranslate");
|
|
28684
|
+
i0__namespace.ɵɵelementEnd();
|
|
28685
|
+
i0__namespace.ɵɵelementEnd();
|
|
28686
|
+
i0__namespace.ɵɵelementEnd();
|
|
28687
|
+
i0__namespace.ɵɵelementEnd();
|
|
28688
|
+
}
|
|
28689
|
+
if (rf & 2) {
|
|
28690
|
+
var errorMessage_r2 = ctx.$implicit;
|
|
28691
|
+
i0__namespace.ɵɵadvance(4);
|
|
28692
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 1, errorMessage_r2.message), " ");
|
|
28693
|
+
}
|
|
28694
|
+
}
|
|
28695
|
+
function QueryManagementErrorMessagesComponent_div_0_Template(rf, ctx) {
|
|
28696
|
+
if (rf & 1) {
|
|
28697
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
28698
|
+
i0__namespace.ɵɵelementStart(1, "h2", 2);
|
|
28699
|
+
i0__namespace.ɵɵtext(2);
|
|
28700
|
+
i0__namespace.ɵɵpipe(3, "rpxTranslate");
|
|
28701
|
+
i0__namespace.ɵɵelementEnd();
|
|
28702
|
+
i0__namespace.ɵɵtemplate(4, QueryManagementErrorMessagesComponent_div_0_div_4_Template, 6, 3, "div", 3);
|
|
28703
|
+
i0__namespace.ɵɵelementEnd();
|
|
28704
|
+
}
|
|
28705
|
+
if (rf & 2) {
|
|
28706
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
28707
|
+
i0__namespace.ɵɵadvance(2);
|
|
28708
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 2, "There is a problem"), " ");
|
|
28709
|
+
i0__namespace.ɵɵadvance(2);
|
|
28710
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
28711
|
+
}
|
|
28712
|
+
}
|
|
28713
|
+
var QueryManagementErrorMessagesComponent = /** @class */ (function () {
|
|
28714
|
+
function QueryManagementErrorMessagesComponent() {
|
|
28715
|
+
this.errorMessages = [];
|
|
28716
|
+
}
|
|
28717
|
+
return QueryManagementErrorMessagesComponent;
|
|
28718
|
+
}());
|
|
28719
|
+
QueryManagementErrorMessagesComponent.ɵfac = function QueryManagementErrorMessagesComponent_Factory(t) { return new (t || QueryManagementErrorMessagesComponent)(); };
|
|
28720
|
+
QueryManagementErrorMessagesComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryManagementErrorMessagesComponent, selectors: [["ccd-query-management-error-messages"]], inputs: { errorMessages: "errorMessages" }, decls: 1, vars: 1, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 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"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["href", "javascript:void(0)", 1, "validation-error"]], template: function QueryManagementErrorMessagesComponent_Template(rf, ctx) {
|
|
28721
|
+
if (rf & 1) {
|
|
28722
|
+
i0__namespace.ɵɵtemplate(0, QueryManagementErrorMessagesComponent_div_0_Template, 5, 4, "div", 0);
|
|
28723
|
+
}
|
|
28724
|
+
if (rf & 2) {
|
|
28725
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
28726
|
+
}
|
|
28727
|
+
}, directives: [i5__namespace.NgIf, i5__namespace.NgForOf], pipes: [i1__namespace.RpxTranslatePipe], encapsulation: 2 });
|
|
28728
|
+
(function () {
|
|
28729
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementErrorMessagesComponent, [{
|
|
28730
|
+
type: i0.Component,
|
|
28731
|
+
args: [{
|
|
28732
|
+
selector: 'ccd-query-management-error-messages',
|
|
28733
|
+
templateUrl: './query-management-error-messages.component.html'
|
|
28734
|
+
}]
|
|
28735
|
+
}], null, { errorMessages: [{
|
|
28736
|
+
type: i0.Input
|
|
28737
|
+
}] });
|
|
28738
|
+
})();
|
|
28739
|
+
|
|
28665
28740
|
var QueryManagementModule = /** @class */ (function () {
|
|
28666
28741
|
function QueryManagementModule() {
|
|
28667
28742
|
}
|
|
@@ -28681,7 +28756,8 @@
|
|
|
28681
28756
|
QueryDetailsComponent,
|
|
28682
28757
|
QueryCreateComponent,
|
|
28683
28758
|
QueryListComponent,
|
|
28684
|
-
QueryDetailsTableComponent
|
|
28759
|
+
QueryDetailsTableComponent,
|
|
28760
|
+
QueryManagementErrorMessagesComponent], imports: [i5.CommonModule,
|
|
28685
28761
|
i3.ReactiveFormsModule, i1__namespace.RpxTranslationModule, PipesModule], exports: [ReadQueryManagementFieldComponent,
|
|
28686
28762
|
WriteQueryManagementFieldComponent] });
|
|
28687
28763
|
})();
|
|
@@ -28696,6 +28772,7 @@
|
|
|
28696
28772
|
QueryCreateComponent,
|
|
28697
28773
|
QueryListComponent,
|
|
28698
28774
|
QueryDetailsTableComponent,
|
|
28775
|
+
QueryManagementErrorMessagesComponent,
|
|
28699
28776
|
],
|
|
28700
28777
|
imports: [
|
|
28701
28778
|
i5.CommonModule,
|
|
@@ -28711,7 +28788,8 @@
|
|
|
28711
28788
|
}], null, null);
|
|
28712
28789
|
})();
|
|
28713
28790
|
i0__namespace.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i5__namespace.NgForOf, QueryListComponent], []);
|
|
28714
|
-
i0__namespace.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [
|
|
28791
|
+
i0__namespace.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [QueryManagementErrorMessagesComponent,
|
|
28792
|
+
QueryDetailsTableComponent, i3__namespace.ɵangular_packages_forms_forms_ba, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe, CaseReferencePipe]);
|
|
28715
28793
|
|
|
28716
28794
|
var PALETTE_COMPONENTS = [
|
|
28717
28795
|
UnsupportedFieldComponent,
|