@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-document-uploader-v2 → 6.16.0-query-management-CYA-v2
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 +353 -150
- 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/palette.module.js +6 -8
- package/esm2015/lib/shared/components/palette/query-management/__mocks__/index.js +27 -1
- package/esm2015/lib/shared/components/palette/query-management/components/index.js +3 -2
- package/esm2015/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.js +153 -0
- 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/index.js +2 -2
- package/esm2015/lib/shared/components/palette/query-management/write-query-management-field.component.js +18 -3
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +298 -106
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +31 -30
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/__mocks__/index.d.ts +2 -0
- package/lib/shared/components/palette/query-management/__mocks__/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/index.d.ts +2 -1
- package/lib/shared/components/palette/query-management/components/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +16 -0
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -0
- 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/index.d.ts +1 -1
- package/lib/shared/components/palette/query-management/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts +5 -1
- package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -20252,99 +20252,31 @@
|
|
|
20252
20252
|
]
|
|
20253
20253
|
}
|
|
20254
20254
|
];
|
|
20255
|
-
|
|
20256
|
-
|
|
20257
|
-
|
|
20258
|
-
|
|
20259
|
-
|
|
20260
|
-
|
|
20261
|
-
|
|
20262
|
-
|
|
20263
|
-
|
|
20264
|
-
|
|
20265
|
-
|
|
20266
|
-
|
|
20267
|
-
|
|
20268
|
-
|
|
20269
|
-
|
|
20270
|
-
|
|
20271
|
-
|
|
20272
|
-
|
|
20273
|
-
|
|
20274
|
-
|
|
20275
|
-
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
|
|
20279
|
-
|
|
20280
|
-
finally { if (e_1) throw e_1.error; }
|
|
20281
|
-
}
|
|
20282
|
-
}
|
|
20283
|
-
return lastSubmittedMessage;
|
|
20284
|
-
};
|
|
20285
|
-
return getLastSubmittedMessage(this);
|
|
20286
|
-
},
|
|
20287
|
-
enumerable: false,
|
|
20288
|
-
configurable: true
|
|
20289
|
-
});
|
|
20290
|
-
Object.defineProperty(QueryListItem.prototype, "lastSubmittedBy", {
|
|
20291
|
-
get: function () {
|
|
20292
|
-
return this.lastSubmittedMessage.name;
|
|
20293
|
-
},
|
|
20294
|
-
enumerable: false,
|
|
20295
|
-
configurable: true
|
|
20296
|
-
});
|
|
20297
|
-
Object.defineProperty(QueryListItem.prototype, "lastSubmittedDate", {
|
|
20298
|
-
get: function () {
|
|
20299
|
-
return new Date(this.lastSubmittedMessage.createdOn);
|
|
20300
|
-
},
|
|
20301
|
-
enumerable: false,
|
|
20302
|
-
configurable: true
|
|
20303
|
-
});
|
|
20304
|
-
Object.defineProperty(QueryListItem.prototype, "lastResponseBy", {
|
|
20305
|
-
get: function () {
|
|
20306
|
-
var _a;
|
|
20307
|
-
return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.lastSubmittedMessage.name : '';
|
|
20308
|
-
},
|
|
20309
|
-
enumerable: false,
|
|
20310
|
-
configurable: true
|
|
20311
|
-
});
|
|
20312
|
-
Object.defineProperty(QueryListItem.prototype, "lastResponseDate", {
|
|
20313
|
-
get: function () {
|
|
20314
|
-
var _a;
|
|
20315
|
-
return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
|
|
20316
|
-
},
|
|
20317
|
-
enumerable: false,
|
|
20318
|
-
configurable: true
|
|
20319
|
-
});
|
|
20320
|
-
return QueryListItem;
|
|
20321
|
-
}());
|
|
20322
|
-
|
|
20323
|
-
var QueryListData = /** @class */ (function () {
|
|
20324
|
-
function QueryListData(partyMessagesGroup) {
|
|
20325
|
-
var _this = this;
|
|
20326
|
-
this.partyName = partyMessagesGroup.partyName;
|
|
20327
|
-
this.roleOnCase = partyMessagesGroup.roleOnCase;
|
|
20328
|
-
// get the parent messages (messages without parentId) and add the children to them
|
|
20329
|
-
var parentMessages = partyMessagesGroup.partyMessages.filter(function (message) { return !message.parentId; });
|
|
20330
|
-
this.partyMessages = parentMessages.map(function (message) { return _this.buildQueryListItem(message, partyMessagesGroup.partyMessages); });
|
|
20331
|
-
}
|
|
20332
|
-
QueryListData.prototype.buildQueryListItem = function (message, allMessages) {
|
|
20333
|
-
var _this = this;
|
|
20334
|
-
var queryListItem = new QueryListItem();
|
|
20335
|
-
Object.assign(queryListItem, Object.assign(Object.assign({}, message), { children: allMessages
|
|
20336
|
-
.filter(function (childMessage) { return childMessage.parentId === message.id; })
|
|
20337
|
-
.map(function (childMessage) { return _this.buildQueryListItem(childMessage, allMessages); }) }));
|
|
20338
|
-
return queryListItem;
|
|
20339
|
-
};
|
|
20340
|
-
return QueryListData;
|
|
20341
|
-
}());
|
|
20342
|
-
|
|
20343
|
-
exports.QueryListResponseStatus = void 0;
|
|
20344
|
-
(function (QueryListResponseStatus) {
|
|
20345
|
-
QueryListResponseStatus["NEW"] = "New";
|
|
20346
|
-
QueryListResponseStatus["RESPONDED"] = "Responded";
|
|
20347
|
-
})(exports.QueryListResponseStatus || (exports.QueryListResponseStatus = {}));
|
|
20255
|
+
var caseFieldMockData = Object.assign(new CaseField(), {
|
|
20256
|
+
id: '',
|
|
20257
|
+
label: '',
|
|
20258
|
+
hint_text: '',
|
|
20259
|
+
field_type: Object.assign(new FieldType(), {
|
|
20260
|
+
id: 'QueryDocuments',
|
|
20261
|
+
type: 'QueryDocuments',
|
|
20262
|
+
min: null,
|
|
20263
|
+
max: null,
|
|
20264
|
+
regular_expression: null,
|
|
20265
|
+
fixed_list_items: [],
|
|
20266
|
+
complex_fields: [],
|
|
20267
|
+
collection_field_type: Object.assign(new FieldType(), {
|
|
20268
|
+
id: 'Document',
|
|
20269
|
+
type: 'Document',
|
|
20270
|
+
min: null,
|
|
20271
|
+
max: null,
|
|
20272
|
+
regular_expression: null,
|
|
20273
|
+
fixed_list_items: [],
|
|
20274
|
+
complex_fields: [],
|
|
20275
|
+
collection_field_type: null
|
|
20276
|
+
})
|
|
20277
|
+
}),
|
|
20278
|
+
display_context_parameter: '#COLLECTION(allowInsert,allowUpdate)'
|
|
20279
|
+
});
|
|
20348
20280
|
|
|
20349
20281
|
var MarkdownComponent = /** @class */ (function () {
|
|
20350
20282
|
function MarkdownComponent() {
|
|
@@ -20466,87 +20398,182 @@
|
|
|
20466
20398
|
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
|
|
20467
20399
|
})();
|
|
20468
20400
|
|
|
20469
|
-
|
|
20470
|
-
function QueryCreateComponent() {
|
|
20471
|
-
}
|
|
20472
|
-
QueryCreateComponent.prototype.ngOnInit = function () {
|
|
20473
|
-
};
|
|
20474
|
-
return QueryCreateComponent;
|
|
20475
|
-
}());
|
|
20476
|
-
QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
|
|
20477
|
-
QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
20478
|
-
(function () {
|
|
20479
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
|
|
20480
|
-
type: i0.Component,
|
|
20481
|
-
args: [{
|
|
20482
|
-
selector: 'ccd-query-create',
|
|
20483
|
-
templateUrl: './query-create.component.html',
|
|
20484
|
-
}]
|
|
20485
|
-
}], function () { return []; }, null);
|
|
20486
|
-
})();
|
|
20487
|
-
|
|
20488
|
-
function QueryDetailsComponent_ng_container_0_Template(rf, ctx) {
|
|
20401
|
+
function QueryCheckYourAnswersComponent_ccd_read_collection_field_31_Template(rf, ctx) {
|
|
20489
20402
|
if (rf & 1) {
|
|
20490
|
-
|
|
20491
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
20492
|
-
i0__namespace.ɵɵelementStart(1, "p");
|
|
20493
|
-
i0__namespace.ɵɵelement(2, "br");
|
|
20494
|
-
i0__namespace.ɵɵelementStart(3, "a", 1);
|
|
20495
|
-
i0__namespace.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r2_1); var ctx_r1 = i0__namespace.ɵɵnextContext(); return ctx_r1.onBack(); });
|
|
20496
|
-
i0__namespace.ɵɵtext(4);
|
|
20497
|
-
i0__namespace.ɵɵpipe(5, "rpxTranslate");
|
|
20498
|
-
i0__namespace.ɵɵelementEnd();
|
|
20499
|
-
i0__namespace.ɵɵelementEnd();
|
|
20500
|
-
i0__namespace.ɵɵelementStart(6, "div", 2);
|
|
20501
|
-
i0__namespace.ɵɵtext(7);
|
|
20502
|
-
i0__namespace.ɵɵpipe(8, "rpxTranslate");
|
|
20503
|
-
i0__namespace.ɵɵelementEnd();
|
|
20504
|
-
i0__namespace.ɵɵelement(9, "ccd-query-details-table", 3);
|
|
20505
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
20403
|
+
i0__namespace.ɵɵelement(0, "ccd-read-collection-field", 13);
|
|
20506
20404
|
}
|
|
20507
20405
|
if (rf & 2) {
|
|
20508
20406
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
20509
|
-
i0__namespace.ɵɵ
|
|
20510
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 3, "Back to queries"));
|
|
20511
|
-
i0__namespace.ɵɵadvance(3);
|
|
20512
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 5, "Query details"));
|
|
20513
|
-
i0__namespace.ɵɵadvance(2);
|
|
20514
|
-
i0__namespace.ɵɵproperty("queryItem", ctx_r0.query);
|
|
20407
|
+
i0__namespace.ɵɵproperty("caseField", ctx_r0.caseField);
|
|
20515
20408
|
}
|
|
20516
20409
|
}
|
|
20517
|
-
var
|
|
20518
|
-
function
|
|
20410
|
+
var QueryCheckYourAnswersComponent = /** @class */ (function () {
|
|
20411
|
+
function QueryCheckYourAnswersComponent() {
|
|
20519
20412
|
this.backClicked = new i0.EventEmitter();
|
|
20520
20413
|
}
|
|
20521
|
-
|
|
20414
|
+
QueryCheckYourAnswersComponent.prototype.ngOnInit = function () {
|
|
20415
|
+
// Mock object
|
|
20416
|
+
caseFieldMockData.value = [
|
|
20417
|
+
{
|
|
20418
|
+
id: '725bf4a7-9e4c-4132-b5c1-f8028cb83459',
|
|
20419
|
+
value: {
|
|
20420
|
+
document_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f',
|
|
20421
|
+
document_filename: 'Screenshot 2023-06-01 at 16.07.06.png',
|
|
20422
|
+
document_binary_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f/binary'
|
|
20423
|
+
}
|
|
20424
|
+
},
|
|
20425
|
+
{
|
|
20426
|
+
id: '725bf4a7-9e4c-4132-b5c1-f8028cb83459',
|
|
20427
|
+
value: {
|
|
20428
|
+
document_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506',
|
|
20429
|
+
document_filename: 'dummy.pdf',
|
|
20430
|
+
document_binary_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506/binary'
|
|
20431
|
+
}
|
|
20432
|
+
}
|
|
20433
|
+
];
|
|
20434
|
+
this.caseField = caseFieldMockData;
|
|
20435
|
+
};
|
|
20436
|
+
QueryCheckYourAnswersComponent.prototype.goBack = function () {
|
|
20522
20437
|
this.backClicked.emit(true);
|
|
20523
20438
|
};
|
|
20524
|
-
return
|
|
20439
|
+
return QueryCheckYourAnswersComponent;
|
|
20525
20440
|
}());
|
|
20526
|
-
|
|
20527
|
-
|
|
20441
|
+
QueryCheckYourAnswersComponent.ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(); };
|
|
20442
|
+
QueryCheckYourAnswersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem" }, outputs: { backClicked: "backClicked" }, decls: 44, vars: 27, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [1, "govuk-heading-l"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], [1, "govuk-link", 3, "click"], [3, "caseField", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button"], [3, "caseField"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) {
|
|
20528
20443
|
if (rf & 1) {
|
|
20529
|
-
i0__namespace.ɵɵ
|
|
20444
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
20445
|
+
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
20446
|
+
i0__namespace.ɵɵelementStart(2, "h1", 2);
|
|
20447
|
+
i0__namespace.ɵɵtext(3);
|
|
20448
|
+
i0__namespace.ɵɵpipe(4, "rpxTranslate");
|
|
20449
|
+
i0__namespace.ɵɵelementEnd();
|
|
20450
|
+
i0__namespace.ɵɵelementStart(5, "div", 3);
|
|
20451
|
+
i0__namespace.ɵɵelement(6, "ccd-query-case-details-header");
|
|
20452
|
+
i0__namespace.ɵɵelementEnd();
|
|
20453
|
+
i0__namespace.ɵɵelementStart(7, "dl", 4);
|
|
20454
|
+
i0__namespace.ɵɵelementStart(8, "div", 5);
|
|
20455
|
+
i0__namespace.ɵɵelementStart(9, "dt", 6);
|
|
20456
|
+
i0__namespace.ɵɵtext(10);
|
|
20457
|
+
i0__namespace.ɵɵpipe(11, "rpxTranslate");
|
|
20458
|
+
i0__namespace.ɵɵelementEnd();
|
|
20459
|
+
i0__namespace.ɵɵelementStart(12, "dd", 7);
|
|
20460
|
+
i0__namespace.ɵɵtext(13);
|
|
20461
|
+
i0__namespace.ɵɵelementEnd();
|
|
20462
|
+
i0__namespace.ɵɵelementEnd();
|
|
20463
|
+
i0__namespace.ɵɵelementEnd();
|
|
20464
|
+
i0__namespace.ɵɵelementStart(14, "dl", 4);
|
|
20465
|
+
i0__namespace.ɵɵelementStart(15, "div", 5);
|
|
20466
|
+
i0__namespace.ɵɵelementStart(16, "dt", 6);
|
|
20467
|
+
i0__namespace.ɵɵtext(17);
|
|
20468
|
+
i0__namespace.ɵɵpipe(18, "rpxTranslate");
|
|
20469
|
+
i0__namespace.ɵɵelementEnd();
|
|
20470
|
+
i0__namespace.ɵɵelementStart(19, "dd", 7);
|
|
20471
|
+
i0__namespace.ɵɵtext(20);
|
|
20472
|
+
i0__namespace.ɵɵelementEnd();
|
|
20473
|
+
i0__namespace.ɵɵelementStart(21, "dd", 8);
|
|
20474
|
+
i0__namespace.ɵɵelementStart(22, "a", 9);
|
|
20475
|
+
i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_22_listener() { return ctx.goBack(); });
|
|
20476
|
+
i0__namespace.ɵɵtext(23);
|
|
20477
|
+
i0__namespace.ɵɵpipe(24, "rpxTranslate");
|
|
20478
|
+
i0__namespace.ɵɵelementEnd();
|
|
20479
|
+
i0__namespace.ɵɵelementEnd();
|
|
20480
|
+
i0__namespace.ɵɵelementEnd();
|
|
20481
|
+
i0__namespace.ɵɵelementEnd();
|
|
20482
|
+
i0__namespace.ɵɵelementStart(25, "dl", 4);
|
|
20483
|
+
i0__namespace.ɵɵelementStart(26, "div", 5);
|
|
20484
|
+
i0__namespace.ɵɵelementStart(27, "dt", 6);
|
|
20485
|
+
i0__namespace.ɵɵtext(28);
|
|
20486
|
+
i0__namespace.ɵɵpipe(29, "rpxTranslate");
|
|
20487
|
+
i0__namespace.ɵɵelementEnd();
|
|
20488
|
+
i0__namespace.ɵɵelementStart(30, "dd", 7);
|
|
20489
|
+
i0__namespace.ɵɵtemplate(31, QueryCheckYourAnswersComponent_ccd_read_collection_field_31_Template, 1, 1, "ccd-read-collection-field", 10);
|
|
20490
|
+
i0__namespace.ɵɵelementEnd();
|
|
20491
|
+
i0__namespace.ɵɵelementStart(32, "dd", 8);
|
|
20492
|
+
i0__namespace.ɵɵelementStart(33, "a", 9);
|
|
20493
|
+
i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_33_listener() { return ctx.goBack(); });
|
|
20494
|
+
i0__namespace.ɵɵtext(34);
|
|
20495
|
+
i0__namespace.ɵɵpipe(35, "rpxTranslate");
|
|
20496
|
+
i0__namespace.ɵɵelementEnd();
|
|
20497
|
+
i0__namespace.ɵɵelementEnd();
|
|
20498
|
+
i0__namespace.ɵɵelementEnd();
|
|
20499
|
+
i0__namespace.ɵɵelementEnd();
|
|
20500
|
+
i0__namespace.ɵɵelement(36, "br");
|
|
20501
|
+
i0__namespace.ɵɵelementStart(37, "div");
|
|
20502
|
+
i0__namespace.ɵɵelementStart(38, "button", 11);
|
|
20503
|
+
i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_button_click_38_listener() { return ctx.goBack(); });
|
|
20504
|
+
i0__namespace.ɵɵtext(39);
|
|
20505
|
+
i0__namespace.ɵɵpipe(40, "rpxTranslate");
|
|
20506
|
+
i0__namespace.ɵɵelementEnd();
|
|
20507
|
+
i0__namespace.ɵɵelementStart(41, "button", 12);
|
|
20508
|
+
i0__namespace.ɵɵtext(42);
|
|
20509
|
+
i0__namespace.ɵɵpipe(43, "rpxTranslate");
|
|
20510
|
+
i0__namespace.ɵɵelementEnd();
|
|
20511
|
+
i0__namespace.ɵɵelementEnd();
|
|
20512
|
+
i0__namespace.ɵɵelementEnd();
|
|
20513
|
+
i0__namespace.ɵɵelementEnd();
|
|
20530
20514
|
}
|
|
20531
20515
|
if (rf & 2) {
|
|
20532
|
-
i0__namespace.ɵɵ
|
|
20516
|
+
i0__namespace.ɵɵadvance(3);
|
|
20517
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 11, "Review query response details"));
|
|
20518
|
+
i0__namespace.ɵɵadvance(7);
|
|
20519
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 13, "Submitted query"), " ");
|
|
20520
|
+
i0__namespace.ɵɵadvance(3);
|
|
20521
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryItem.subject, " ");
|
|
20522
|
+
i0__namespace.ɵɵadvance(4);
|
|
20523
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 15, "Response message"), " ");
|
|
20524
|
+
i0__namespace.ɵɵadvance(3);
|
|
20525
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.formGroup.controls["body"].value, " ");
|
|
20526
|
+
i0__namespace.ɵɵadvance(3);
|
|
20527
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(24, 17, "Change"), " ");
|
|
20528
|
+
i0__namespace.ɵɵadvance(5);
|
|
20529
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(29, 19, "Document attached"), " ");
|
|
20530
|
+
i0__namespace.ɵɵadvance(3);
|
|
20531
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseField);
|
|
20532
|
+
i0__namespace.ɵɵadvance(3);
|
|
20533
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(35, 21, "Change"), " ");
|
|
20534
|
+
i0__namespace.ɵɵadvance(5);
|
|
20535
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(40, 23, "Previous"), " ");
|
|
20536
|
+
i0__namespace.ɵɵadvance(3);
|
|
20537
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(43, 25, "Submit"), " ");
|
|
20533
20538
|
}
|
|
20534
|
-
}, styles: [".
|
|
20539
|
+
}, styles: [".collection-field-table tr>td{border-bottom:none}"], encapsulation: 2 });
|
|
20535
20540
|
(function () {
|
|
20536
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
20541
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCheckYourAnswersComponent, [{
|
|
20537
20542
|
type: i0.Component,
|
|
20538
20543
|
args: [{
|
|
20539
|
-
selector: 'ccd-query-
|
|
20540
|
-
templateUrl: './query-
|
|
20541
|
-
styleUrls: ['./query-
|
|
20544
|
+
selector: 'ccd-query-check-your-answers',
|
|
20545
|
+
templateUrl: './query-check-your-answers.component.html',
|
|
20546
|
+
styleUrls: ['./query-check-your-answers.component.scss'],
|
|
20547
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
20542
20548
|
}]
|
|
20543
|
-
}], null, {
|
|
20549
|
+
}], null, { formGroup: [{
|
|
20550
|
+
type: i0.Input
|
|
20551
|
+
}], queryItem: [{
|
|
20544
20552
|
type: i0.Input
|
|
20545
20553
|
}], backClicked: [{
|
|
20546
20554
|
type: i0.Output
|
|
20547
20555
|
}] });
|
|
20548
20556
|
})();
|
|
20549
20557
|
|
|
20558
|
+
var QueryCreateComponent = /** @class */ (function () {
|
|
20559
|
+
function QueryCreateComponent() {
|
|
20560
|
+
}
|
|
20561
|
+
QueryCreateComponent.prototype.ngOnInit = function () {
|
|
20562
|
+
};
|
|
20563
|
+
return QueryCreateComponent;
|
|
20564
|
+
}());
|
|
20565
|
+
QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
|
|
20566
|
+
QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
20567
|
+
(function () {
|
|
20568
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
|
|
20569
|
+
type: i0.Component,
|
|
20570
|
+
args: [{
|
|
20571
|
+
selector: 'ccd-query-create',
|
|
20572
|
+
templateUrl: './query-create.component.html',
|
|
20573
|
+
}]
|
|
20574
|
+
}], function () { return []; }, null);
|
|
20575
|
+
})();
|
|
20576
|
+
|
|
20550
20577
|
function QueryDetailsTableComponent_ng_container_0_tr_35_Template(rf, ctx) {
|
|
20551
20578
|
if (rf & 1) {
|
|
20552
20579
|
i0__namespace.ɵɵelementStart(0, "tr", 3);
|
|
@@ -20709,6 +20736,68 @@
|
|
|
20709
20736
|
}] });
|
|
20710
20737
|
})();
|
|
20711
20738
|
|
|
20739
|
+
function QueryDetailsComponent_ng_container_0_Template(rf, ctx) {
|
|
20740
|
+
if (rf & 1) {
|
|
20741
|
+
var _r2_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20742
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
20743
|
+
i0__namespace.ɵɵelementStart(1, "p");
|
|
20744
|
+
i0__namespace.ɵɵelement(2, "br");
|
|
20745
|
+
i0__namespace.ɵɵelementStart(3, "a", 1);
|
|
20746
|
+
i0__namespace.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r2_1); var ctx_r1 = i0__namespace.ɵɵnextContext(); return ctx_r1.onBack(); });
|
|
20747
|
+
i0__namespace.ɵɵtext(4);
|
|
20748
|
+
i0__namespace.ɵɵpipe(5, "rpxTranslate");
|
|
20749
|
+
i0__namespace.ɵɵelementEnd();
|
|
20750
|
+
i0__namespace.ɵɵelementEnd();
|
|
20751
|
+
i0__namespace.ɵɵelementStart(6, "div", 2);
|
|
20752
|
+
i0__namespace.ɵɵtext(7);
|
|
20753
|
+
i0__namespace.ɵɵpipe(8, "rpxTranslate");
|
|
20754
|
+
i0__namespace.ɵɵelementEnd();
|
|
20755
|
+
i0__namespace.ɵɵelement(9, "ccd-query-details-table", 3);
|
|
20756
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
20757
|
+
}
|
|
20758
|
+
if (rf & 2) {
|
|
20759
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
20760
|
+
i0__namespace.ɵɵadvance(4);
|
|
20761
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 3, "Back to queries"));
|
|
20762
|
+
i0__namespace.ɵɵadvance(3);
|
|
20763
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 5, "Query details"));
|
|
20764
|
+
i0__namespace.ɵɵadvance(2);
|
|
20765
|
+
i0__namespace.ɵɵproperty("queryItem", ctx_r0.query);
|
|
20766
|
+
}
|
|
20767
|
+
}
|
|
20768
|
+
var QueryDetailsComponent = /** @class */ (function () {
|
|
20769
|
+
function QueryDetailsComponent() {
|
|
20770
|
+
this.backClicked = new i0.EventEmitter();
|
|
20771
|
+
}
|
|
20772
|
+
QueryDetailsComponent.prototype.onBack = function () {
|
|
20773
|
+
this.backClicked.emit(true);
|
|
20774
|
+
};
|
|
20775
|
+
return QueryDetailsComponent;
|
|
20776
|
+
}());
|
|
20777
|
+
QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
|
|
20778
|
+
QueryDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "query_details_caption"], [3, "queryItem"]], template: function QueryDetailsComponent_Template(rf, ctx) {
|
|
20779
|
+
if (rf & 1) {
|
|
20780
|
+
i0__namespace.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 10, 7, "ng-container", 0);
|
|
20781
|
+
}
|
|
20782
|
+
if (rf & 2) {
|
|
20783
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.query);
|
|
20784
|
+
}
|
|
20785
|
+
}, styles: [".query_details_caption[_ngcontent-%COMP%]{background:#f3f2f1;padding:10px;font-size:x-large;font-weight:700}"] });
|
|
20786
|
+
(function () {
|
|
20787
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
20788
|
+
type: i0.Component,
|
|
20789
|
+
args: [{
|
|
20790
|
+
selector: 'ccd-query-details',
|
|
20791
|
+
templateUrl: './query-details.component.html',
|
|
20792
|
+
styleUrls: ['./query-details.component.scss']
|
|
20793
|
+
}]
|
|
20794
|
+
}], null, { query: [{
|
|
20795
|
+
type: i0.Input
|
|
20796
|
+
}], backClicked: [{
|
|
20797
|
+
type: i0.Output
|
|
20798
|
+
}] });
|
|
20799
|
+
})();
|
|
20800
|
+
|
|
20712
20801
|
var SortOrder;
|
|
20713
20802
|
(function (SortOrder) {
|
|
20714
20803
|
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
@@ -20716,6 +20805,99 @@
|
|
|
20716
20805
|
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
20717
20806
|
})(SortOrder || (SortOrder = {}));
|
|
20718
20807
|
|
|
20808
|
+
var QueryListItem = /** @class */ (function () {
|
|
20809
|
+
function QueryListItem() {
|
|
20810
|
+
this.children = [];
|
|
20811
|
+
}
|
|
20812
|
+
Object.defineProperty(QueryListItem.prototype, "lastSubmittedMessage", {
|
|
20813
|
+
get: function () {
|
|
20814
|
+
var getLastSubmittedMessage = function (item) {
|
|
20815
|
+
var e_1, _b;
|
|
20816
|
+
var lastSubmittedMessage = item;
|
|
20817
|
+
if (item.children && item.children.length > 0) {
|
|
20818
|
+
try {
|
|
20819
|
+
for (var _c = __values(item.children), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
20820
|
+
var child = _d.value;
|
|
20821
|
+
var childLastSubmittedMessage = getLastSubmittedMessage(child);
|
|
20822
|
+
if (childLastSubmittedMessage.createdOn > lastSubmittedMessage.createdOn) {
|
|
20823
|
+
lastSubmittedMessage = childLastSubmittedMessage;
|
|
20824
|
+
}
|
|
20825
|
+
}
|
|
20826
|
+
}
|
|
20827
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
20828
|
+
finally {
|
|
20829
|
+
try {
|
|
20830
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
20831
|
+
}
|
|
20832
|
+
finally { if (e_1) throw e_1.error; }
|
|
20833
|
+
}
|
|
20834
|
+
}
|
|
20835
|
+
return lastSubmittedMessage;
|
|
20836
|
+
};
|
|
20837
|
+
return getLastSubmittedMessage(this);
|
|
20838
|
+
},
|
|
20839
|
+
enumerable: false,
|
|
20840
|
+
configurable: true
|
|
20841
|
+
});
|
|
20842
|
+
Object.defineProperty(QueryListItem.prototype, "lastSubmittedBy", {
|
|
20843
|
+
get: function () {
|
|
20844
|
+
return this.lastSubmittedMessage.name;
|
|
20845
|
+
},
|
|
20846
|
+
enumerable: false,
|
|
20847
|
+
configurable: true
|
|
20848
|
+
});
|
|
20849
|
+
Object.defineProperty(QueryListItem.prototype, "lastSubmittedDate", {
|
|
20850
|
+
get: function () {
|
|
20851
|
+
return new Date(this.lastSubmittedMessage.createdOn);
|
|
20852
|
+
},
|
|
20853
|
+
enumerable: false,
|
|
20854
|
+
configurable: true
|
|
20855
|
+
});
|
|
20856
|
+
Object.defineProperty(QueryListItem.prototype, "lastResponseBy", {
|
|
20857
|
+
get: function () {
|
|
20858
|
+
var _a;
|
|
20859
|
+
return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.lastSubmittedMessage.name : '';
|
|
20860
|
+
},
|
|
20861
|
+
enumerable: false,
|
|
20862
|
+
configurable: true
|
|
20863
|
+
});
|
|
20864
|
+
Object.defineProperty(QueryListItem.prototype, "lastResponseDate", {
|
|
20865
|
+
get: function () {
|
|
20866
|
+
var _a;
|
|
20867
|
+
return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
|
|
20868
|
+
},
|
|
20869
|
+
enumerable: false,
|
|
20870
|
+
configurable: true
|
|
20871
|
+
});
|
|
20872
|
+
return QueryListItem;
|
|
20873
|
+
}());
|
|
20874
|
+
|
|
20875
|
+
var QueryListData = /** @class */ (function () {
|
|
20876
|
+
function QueryListData(partyMessagesGroup) {
|
|
20877
|
+
var _this = this;
|
|
20878
|
+
this.partyName = partyMessagesGroup.partyName;
|
|
20879
|
+
this.roleOnCase = partyMessagesGroup.roleOnCase;
|
|
20880
|
+
// get the parent messages (messages without parentId) and add the children to them
|
|
20881
|
+
var parentMessages = partyMessagesGroup.partyMessages.filter(function (message) { return !message.parentId; });
|
|
20882
|
+
this.partyMessages = parentMessages.map(function (message) { return _this.buildQueryListItem(message, partyMessagesGroup.partyMessages); });
|
|
20883
|
+
}
|
|
20884
|
+
QueryListData.prototype.buildQueryListItem = function (message, allMessages) {
|
|
20885
|
+
var _this = this;
|
|
20886
|
+
var queryListItem = new QueryListItem();
|
|
20887
|
+
Object.assign(queryListItem, Object.assign(Object.assign({}, message), { children: allMessages
|
|
20888
|
+
.filter(function (childMessage) { return childMessage.parentId === message.id; })
|
|
20889
|
+
.map(function (childMessage) { return _this.buildQueryListItem(childMessage, allMessages); }) }));
|
|
20890
|
+
return queryListItem;
|
|
20891
|
+
};
|
|
20892
|
+
return QueryListData;
|
|
20893
|
+
}());
|
|
20894
|
+
|
|
20895
|
+
exports.QueryListResponseStatus = void 0;
|
|
20896
|
+
(function (QueryListResponseStatus) {
|
|
20897
|
+
QueryListResponseStatus["NEW"] = "New";
|
|
20898
|
+
QueryListResponseStatus["RESPONDED"] = "Responded";
|
|
20899
|
+
})(exports.QueryListResponseStatus || (exports.QueryListResponseStatus = {}));
|
|
20900
|
+
|
|
20719
20901
|
function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) {
|
|
20720
20902
|
if (rf & 1) {
|
|
20721
20903
|
var _r5_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -21443,9 +21625,24 @@
|
|
|
21443
21625
|
__extends(WriteQueryManagementFieldComponent, _super);
|
|
21444
21626
|
function WriteQueryManagementFieldComponent() {
|
|
21445
21627
|
var _this = _super.call(this) || this;
|
|
21446
|
-
_this.
|
|
21628
|
+
_this.responseFormGroup = new i3.FormGroup({
|
|
21629
|
+
response: new i3.FormControl('', [i3.Validators.required]),
|
|
21630
|
+
documents: new i3.FormControl([])
|
|
21631
|
+
});
|
|
21632
|
+
_this.errorMessages = [];
|
|
21633
|
+
_this.submitted = false;
|
|
21447
21634
|
return _this;
|
|
21448
21635
|
}
|
|
21636
|
+
WriteQueryManagementFieldComponent.prototype.submitForm = function () {
|
|
21637
|
+
this.submitted = true;
|
|
21638
|
+
this.errorMessages = [];
|
|
21639
|
+
window.scrollTo(0, 0);
|
|
21640
|
+
if (!this.responseFormGroup.valid) {
|
|
21641
|
+
if (this.responseFormGroup.controls.response.hasError('required')) {
|
|
21642
|
+
this.errorMessages.push({ controlName: 'response', message: 'Add a response before continue' });
|
|
21643
|
+
}
|
|
21644
|
+
}
|
|
21645
|
+
};
|
|
21449
21646
|
return WriteQueryManagementFieldComponent;
|
|
21450
21647
|
}(AbstractFieldReadComponent));
|
|
21451
21648
|
WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
|
|
@@ -29221,6 +29418,7 @@
|
|
|
29221
29418
|
QueryWriteRespondToQueryComponent,
|
|
29222
29419
|
QueryWriteRaiseQueryComponent,
|
|
29223
29420
|
QueryCaseDetailsHeaderComponent,
|
|
29421
|
+
QueryCheckYourAnswersComponent,
|
|
29224
29422
|
QueryWriteAddDocumentsComponent,
|
|
29225
29423
|
];
|
|
29226
29424
|
var PaletteModule = /** @class */ (function () {
|
|
@@ -29407,6 +29605,7 @@
|
|
|
29407
29605
|
QueryWriteRespondToQueryComponent,
|
|
29408
29606
|
QueryWriteRaiseQueryComponent,
|
|
29409
29607
|
QueryCaseDetailsHeaderComponent,
|
|
29608
|
+
QueryCheckYourAnswersComponent,
|
|
29410
29609
|
QueryWriteAddDocumentsComponent], imports: [i5.CommonModule,
|
|
29411
29610
|
i1$1.RouterModule,
|
|
29412
29611
|
i3.FormsModule,
|
|
@@ -29554,6 +29753,7 @@
|
|
|
29554
29753
|
QueryWriteRespondToQueryComponent,
|
|
29555
29754
|
QueryWriteRaiseQueryComponent,
|
|
29556
29755
|
QueryCaseDetailsHeaderComponent,
|
|
29756
|
+
QueryCheckYourAnswersComponent,
|
|
29557
29757
|
QueryWriteAddDocumentsComponent] });
|
|
29558
29758
|
})();
|
|
29559
29759
|
(function () {
|
|
@@ -29701,6 +29901,7 @@
|
|
|
29701
29901
|
i0__namespace.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, [QueryCaseDetailsHeaderComponent,
|
|
29702
29902
|
QueryDetailsTableComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe]);
|
|
29703
29903
|
i0__namespace.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, [QueryCaseDetailsHeaderComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe]);
|
|
29904
|
+
i0__namespace.ɵɵsetComponentScope(QueryCheckYourAnswersComponent, [QueryCaseDetailsHeaderComponent, i5__namespace.NgIf, ReadCollectionFieldComponent], [i1__namespace.RpxTranslatePipe]);
|
|
29704
29905
|
i0__namespace.ɵɵsetComponentScope(QueryWriteAddDocumentsComponent, [WriteCollectionFieldComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective], []);
|
|
29705
29906
|
|
|
29706
29907
|
var Confirmation = /** @class */ (function () {
|
|
@@ -40318,6 +40519,7 @@
|
|
|
40318
40519
|
exports.ProfileNotifier = ProfileNotifier;
|
|
40319
40520
|
exports.ProfileService = ProfileService;
|
|
40320
40521
|
exports.QueryCaseDetailsHeaderComponent = QueryCaseDetailsHeaderComponent;
|
|
40522
|
+
exports.QueryCheckYourAnswersComponent = QueryCheckYourAnswersComponent;
|
|
40321
40523
|
exports.QueryCreateComponent = QueryCreateComponent;
|
|
40322
40524
|
exports.QueryDetailsComponent = QueryDetailsComponent;
|
|
40323
40525
|
exports.QueryDetailsTableComponent = QueryDetailsTableComponent;
|
|
@@ -40437,6 +40639,7 @@
|
|
|
40437
40639
|
exports.WriteYesNoFieldComponent = WriteYesNoFieldComponent;
|
|
40438
40640
|
exports.YesNoService = YesNoService;
|
|
40439
40641
|
exports.aCaseField = aCaseField;
|
|
40642
|
+
exports.caseFieldMockData = caseFieldMockData;
|
|
40440
40643
|
exports.createACL = createACL;
|
|
40441
40644
|
exports.createCaseEventTrigger = createCaseEventTrigger;
|
|
40442
40645
|
exports.createCaseField = createCaseField;
|