@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-orchestrator-v2 → 6.16.0-query-management-query-list
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 +214 -41
- 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 +2 -1
- package/esm2015/lib/shared/components/palette/query-management/__mocks__/index.js +17 -34
- package/esm2015/lib/shared/components/palette/query-management/components/query-list/query-list.component.js +90 -6
- package/esm2015/lib/shared/components/palette/query-management/domain/index.js +6 -2
- package/esm2015/lib/shared/components/palette/query-management/domain/party-messages/party-message.model.js +2 -0
- package/esm2015/lib/shared/components/palette/query-management/domain/party-messages/party-messages-group.model.js +2 -0
- package/esm2015/lib/shared/components/palette/query-management/domain/query-list/query-list-data/query-list-data.model.js +16 -0
- package/esm2015/lib/shared/components/palette/query-management/domain/query-list/query-list-item/query-list-item.model.js +32 -0
- package/esm2015/lib/shared/components/palette/query-management/domain/query-list/query-list-response-status.enum.js +6 -0
- package/esm2015/lib/shared/components/palette/query-management/read-query-management-field.component.js +18 -8
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +173 -44
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/query-management/__mocks__/index.d.ts +2 -2
- package/lib/shared/components/palette/query-management/__mocks__/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts +7 -7
- package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/domain/index.d.ts +5 -1
- package/lib/shared/components/palette/query-management/domain/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/domain/party-messages/party-message.model.d.ts +14 -0
- package/lib/shared/components/palette/query-management/domain/party-messages/party-message.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/domain/party-messages/party-messages-group.model.d.ts +7 -0
- package/lib/shared/components/palette/query-management/domain/party-messages/party-messages-group.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/domain/query-list/query-list-data/query-list-data.model.d.ts +9 -0
- package/lib/shared/components/palette/query-management/domain/query-list/query-list-data/query-list-data.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/domain/query-list/query-list-item/query-list-item.model.d.ts +23 -0
- package/lib/shared/components/palette/query-management/domain/query-list/query-list-item/query-list-item.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/domain/query-list/query-list-response-status.enum.d.ts +5 -0
- package/lib/shared/components/palette/query-management/domain/query-list/query-list-response-status.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts +2 -2
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/components/palette/query-management/domain/query-management.model.js +0 -2
- package/lib/shared/components/palette/query-management/domain/query-management.model.d.ts +0 -18
- package/lib/shared/components/palette/query-management/domain/query-management.model.d.ts.map +0 -1
|
@@ -19476,41 +19476,32 @@
|
|
|
19476
19476
|
{
|
|
19477
19477
|
id: 'case-message-001',
|
|
19478
19478
|
subject: 'Review attached document',
|
|
19479
|
+
name: 'Maggie Conroy',
|
|
19479
19480
|
body: 'Please review attached document and advise if hearing should proceed?',
|
|
19480
19481
|
attachments: [],
|
|
19481
19482
|
isHearingRelated: true,
|
|
19482
|
-
hearingDate:
|
|
19483
|
+
hearingDate: '10 Jan 2023',
|
|
19483
19484
|
createdOn: new Date(2023, 0, 3),
|
|
19484
19485
|
createdBy: '1111-1111-1111-1111'
|
|
19485
19486
|
},
|
|
19486
19487
|
{
|
|
19487
19488
|
id: 'case-message-002',
|
|
19488
19489
|
subject: 'Games',
|
|
19490
|
+
name: 'Maggie Conroy',
|
|
19489
19491
|
body: 'Can I play games in my phone when my solicitor is talking?',
|
|
19490
19492
|
attachments: [],
|
|
19491
19493
|
isHearingRelated: true,
|
|
19492
|
-
hearingDate:
|
|
19494
|
+
hearingDate: '10 Jan 2023',
|
|
19493
19495
|
createdOn: new Date(2023, 0, 3),
|
|
19494
19496
|
createdBy: '1111-1111-1111-1111'
|
|
19495
19497
|
},
|
|
19496
19498
|
{
|
|
19497
19499
|
id: 'case-message-003',
|
|
19498
|
-
|
|
19500
|
+
name: 'Maggie Conroy',
|
|
19499
19501
|
body: 'Using mobile phone is strictly prohibited in the court room.',
|
|
19500
19502
|
attachments: [],
|
|
19501
19503
|
isHearingRelated: true,
|
|
19502
|
-
hearingDate:
|
|
19503
|
-
createdOn: new Date(2023, 0, 4),
|
|
19504
|
-
createdBy: '2222-2222-2222-2222',
|
|
19505
|
-
parentId: 'case-message-002'
|
|
19506
|
-
},
|
|
19507
|
-
{
|
|
19508
|
-
id: 'case-message-004',
|
|
19509
|
-
subject: 'Games',
|
|
19510
|
-
body: 'In addition to my previous message, the mobile phones must be switched off inside the premises.',
|
|
19511
|
-
attachments: [],
|
|
19512
|
-
isHearingRelated: true,
|
|
19513
|
-
hearingDate: new Date(2023, 0, 10),
|
|
19504
|
+
hearingDate: '10 Jan 2023',
|
|
19514
19505
|
createdOn: new Date(2023, 0, 4),
|
|
19515
19506
|
createdBy: '2222-2222-2222-2222',
|
|
19516
19507
|
parentId: 'case-message-002'
|
|
@@ -19524,6 +19515,7 @@
|
|
|
19524
19515
|
{
|
|
19525
19516
|
id: 'case-message-005',
|
|
19526
19517
|
subject: 'Add respondent detention order',
|
|
19518
|
+
name: 'Maggie Conroy',
|
|
19527
19519
|
body: 'Please add respondent detention order to the file XX20230423-DX.',
|
|
19528
19520
|
attachments: [],
|
|
19529
19521
|
isHearingRelated: false,
|
|
@@ -19532,7 +19524,7 @@
|
|
|
19532
19524
|
},
|
|
19533
19525
|
{
|
|
19534
19526
|
id: 'case-message-006',
|
|
19535
|
-
|
|
19527
|
+
name: 'Maggie Conroy',
|
|
19536
19528
|
body: 'I confirm that the respondent detention order is now added to the file XX20230423-DX.',
|
|
19537
19529
|
attachments: [],
|
|
19538
19530
|
isHearingRelated: false,
|
|
@@ -19543,20 +19535,21 @@
|
|
|
19543
19535
|
{
|
|
19544
19536
|
id: 'case-message-007',
|
|
19545
19537
|
subject: 'Food',
|
|
19538
|
+
name: 'Maggie Conroy',
|
|
19546
19539
|
body: 'Can I eat in the hearings?',
|
|
19547
19540
|
attachments: [],
|
|
19548
19541
|
isHearingRelated: true,
|
|
19549
|
-
hearingDate:
|
|
19542
|
+
hearingDate: '10 Jan 2023',
|
|
19550
19543
|
createdOn: new Date(2023, 0, 3),
|
|
19551
19544
|
createdBy: '1111-1111-1111-1111'
|
|
19552
19545
|
},
|
|
19553
19546
|
{
|
|
19554
19547
|
id: 'case-message-008',
|
|
19555
|
-
|
|
19548
|
+
name: 'Maggie Conroy',
|
|
19556
19549
|
body: 'Consumption of food is not allowed when a hearing is taking place.',
|
|
19557
19550
|
attachments: [],
|
|
19558
19551
|
isHearingRelated: true,
|
|
19559
|
-
hearingDate:
|
|
19552
|
+
hearingDate: '10 Jan 2023',
|
|
19560
19553
|
createdOn: new Date(2023, 0, 5),
|
|
19561
19554
|
createdBy: '2222-2222-2222-2222',
|
|
19562
19555
|
parentId: 'case-message-007'
|
|
@@ -19564,31 +19557,21 @@
|
|
|
19564
19557
|
{
|
|
19565
19558
|
id: 'case-message-009',
|
|
19566
19559
|
subject: 'Bring relatives',
|
|
19560
|
+
name: 'Maggie Conroy',
|
|
19567
19561
|
body: 'Can I bring my grandma with me so she get out from the residence?',
|
|
19568
19562
|
attachments: [],
|
|
19569
19563
|
isHearingRelated: true,
|
|
19570
|
-
hearingDate:
|
|
19564
|
+
hearingDate: '10 Jan 2023',
|
|
19571
19565
|
createdOn: new Date(2023, 0, 6),
|
|
19572
19566
|
createdBy: '1111-1111-1111-1111'
|
|
19573
19567
|
},
|
|
19574
19568
|
{
|
|
19575
19569
|
id: 'case-message-010',
|
|
19576
|
-
|
|
19570
|
+
name: 'Maggie Conroy',
|
|
19577
19571
|
body: 'Sorry, only those required for the hearing should be present inside the court room.',
|
|
19578
19572
|
attachments: [],
|
|
19579
19573
|
isHearingRelated: true,
|
|
19580
|
-
hearingDate:
|
|
19581
|
-
createdOn: new Date(2023, 0, 7),
|
|
19582
|
-
createdBy: '2222-2222-2222-2222',
|
|
19583
|
-
parentId: 'case-message-009'
|
|
19584
|
-
},
|
|
19585
|
-
{
|
|
19586
|
-
id: 'case-message-011',
|
|
19587
|
-
subject: 'Bring relatives',
|
|
19588
|
-
body: 'You are allowed to bring only those mentioned in the hearing request. For example, sign language interpreter.',
|
|
19589
|
-
attachments: [],
|
|
19590
|
-
isHearingRelated: true,
|
|
19591
|
-
hearingDate: new Date(2023, 0, 10),
|
|
19574
|
+
hearingDate: '10 Jan 2023',
|
|
19592
19575
|
createdOn: new Date(2023, 0, 7),
|
|
19593
19576
|
createdBy: '2222-2222-2222-2222',
|
|
19594
19577
|
parentId: 'case-message-009'
|
|
@@ -19635,23 +19618,196 @@
|
|
|
19635
19618
|
}], function () { return []; }, null);
|
|
19636
19619
|
})();
|
|
19637
19620
|
|
|
19621
|
+
exports.QueryListResponseStatus = void 0;
|
|
19622
|
+
(function (QueryListResponseStatus) {
|
|
19623
|
+
QueryListResponseStatus["NEW"] = "New";
|
|
19624
|
+
QueryListResponseStatus["RESPONDED"] = "Responded";
|
|
19625
|
+
})(exports.QueryListResponseStatus || (exports.QueryListResponseStatus = {}));
|
|
19626
|
+
|
|
19627
|
+
var QueryListItem = /** @class */ (function () {
|
|
19628
|
+
function QueryListItem() {
|
|
19629
|
+
}
|
|
19630
|
+
Object.defineProperty(QueryListItem.prototype, "lastSubmittedMessage", {
|
|
19631
|
+
get: function () {
|
|
19632
|
+
if (this.children && this.children.length > 0) {
|
|
19633
|
+
return this.children.reduce(function (prev, current) {
|
|
19634
|
+
return (prev.createdOn > current.createdOn) ? prev : current;
|
|
19635
|
+
});
|
|
19636
|
+
}
|
|
19637
|
+
else {
|
|
19638
|
+
return this;
|
|
19639
|
+
}
|
|
19640
|
+
},
|
|
19641
|
+
enumerable: false,
|
|
19642
|
+
configurable: true
|
|
19643
|
+
});
|
|
19644
|
+
Object.defineProperty(QueryListItem.prototype, "lastSubmittedBy", {
|
|
19645
|
+
get: function () {
|
|
19646
|
+
return this.lastSubmittedMessage.name;
|
|
19647
|
+
},
|
|
19648
|
+
enumerable: false,
|
|
19649
|
+
configurable: true
|
|
19650
|
+
});
|
|
19651
|
+
Object.defineProperty(QueryListItem.prototype, "lastSubmittedDate", {
|
|
19652
|
+
get: function () {
|
|
19653
|
+
return new Date(this.lastSubmittedMessage.createdOn);
|
|
19654
|
+
},
|
|
19655
|
+
enumerable: false,
|
|
19656
|
+
configurable: true
|
|
19657
|
+
});
|
|
19658
|
+
Object.defineProperty(QueryListItem.prototype, "lastResponseBy", {
|
|
19659
|
+
get: function () {
|
|
19660
|
+
var _a;
|
|
19661
|
+
return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.lastSubmittedMessage.name : '';
|
|
19662
|
+
},
|
|
19663
|
+
enumerable: false,
|
|
19664
|
+
configurable: true
|
|
19665
|
+
});
|
|
19666
|
+
Object.defineProperty(QueryListItem.prototype, "lastResponseDate", {
|
|
19667
|
+
get: function () {
|
|
19668
|
+
var _a;
|
|
19669
|
+
return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
|
|
19670
|
+
},
|
|
19671
|
+
enumerable: false,
|
|
19672
|
+
configurable: true
|
|
19673
|
+
});
|
|
19674
|
+
Object.defineProperty(QueryListItem.prototype, "responseStatus", {
|
|
19675
|
+
get: function () {
|
|
19676
|
+
var _a;
|
|
19677
|
+
return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? exports.QueryListResponseStatus.RESPONDED : exports.QueryListResponseStatus.NEW;
|
|
19678
|
+
},
|
|
19679
|
+
enumerable: false,
|
|
19680
|
+
configurable: true
|
|
19681
|
+
});
|
|
19682
|
+
return QueryListItem;
|
|
19683
|
+
}());
|
|
19684
|
+
|
|
19685
|
+
var QueryListData = /** @class */ (function () {
|
|
19686
|
+
function QueryListData(partyMessagesGroup) {
|
|
19687
|
+
this.partyName = partyMessagesGroup.partyName;
|
|
19688
|
+
this.roleOnCase = partyMessagesGroup.roleOnCase;
|
|
19689
|
+
// get the parent messages (messages without parentId) and add the children to them
|
|
19690
|
+
var parentMessages = partyMessagesGroup.partyMessages.filter(function (message) { return !message.parentId; });
|
|
19691
|
+
this.partyMessages = parentMessages.map(function (message) {
|
|
19692
|
+
var parentMessage = new QueryListItem();
|
|
19693
|
+
Object.assign(parentMessage, Object.assign(Object.assign({}, message), { children: partyMessagesGroup.partyMessages
|
|
19694
|
+
.filter(function (childMessage) { return childMessage.parentId === message.id; }) }));
|
|
19695
|
+
return parentMessage;
|
|
19696
|
+
});
|
|
19697
|
+
}
|
|
19698
|
+
return QueryListData;
|
|
19699
|
+
}());
|
|
19700
|
+
|
|
19701
|
+
function QueryListComponent_ng_container_0_tr_18_Template(rf, ctx) {
|
|
19702
|
+
if (rf & 1) {
|
|
19703
|
+
i0__namespace.ɵɵelementStart(0, "tr", 4);
|
|
19704
|
+
i0__namespace.ɵɵelementStart(1, "td", 8);
|
|
19705
|
+
i0__namespace.ɵɵelementStart(2, "a", 9);
|
|
19706
|
+
i0__namespace.ɵɵtext(3);
|
|
19707
|
+
i0__namespace.ɵɵelementEnd();
|
|
19708
|
+
i0__namespace.ɵɵelementEnd();
|
|
19709
|
+
i0__namespace.ɵɵelementStart(4, "td", 10);
|
|
19710
|
+
i0__namespace.ɵɵtext(5);
|
|
19711
|
+
i0__namespace.ɵɵelementEnd();
|
|
19712
|
+
i0__namespace.ɵɵelementStart(6, "td", 10);
|
|
19713
|
+
i0__namespace.ɵɵtext(7);
|
|
19714
|
+
i0__namespace.ɵɵpipe(8, "date");
|
|
19715
|
+
i0__namespace.ɵɵelementEnd();
|
|
19716
|
+
i0__namespace.ɵɵelementStart(9, "td", 10);
|
|
19717
|
+
i0__namespace.ɵɵtext(10);
|
|
19718
|
+
i0__namespace.ɵɵpipe(11, "date");
|
|
19719
|
+
i0__namespace.ɵɵelementEnd();
|
|
19720
|
+
i0__namespace.ɵɵelementStart(12, "td", 10);
|
|
19721
|
+
i0__namespace.ɵɵtext(13);
|
|
19722
|
+
i0__namespace.ɵɵelementEnd();
|
|
19723
|
+
i0__namespace.ɵɵelementEnd();
|
|
19724
|
+
}
|
|
19725
|
+
if (rf & 2) {
|
|
19726
|
+
var message_r2 = ctx.$implicit;
|
|
19727
|
+
i0__namespace.ɵɵadvance(3);
|
|
19728
|
+
i0__namespace.ɵɵtextInterpolate(message_r2.subject);
|
|
19729
|
+
i0__namespace.ɵɵadvance(2);
|
|
19730
|
+
i0__namespace.ɵɵtextInterpolate(message_r2.lastSubmittedBy);
|
|
19731
|
+
i0__namespace.ɵɵadvance(2);
|
|
19732
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(8, 5, message_r2.lastSubmittedDate, "dd MMM YYYY"));
|
|
19733
|
+
i0__namespace.ɵɵadvance(3);
|
|
19734
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8, message_r2.lastResponseDate, "dd MMM YYYY"));
|
|
19735
|
+
i0__namespace.ɵɵadvance(3);
|
|
19736
|
+
i0__namespace.ɵɵtextInterpolate(message_r2.responseStatus);
|
|
19737
|
+
}
|
|
19738
|
+
}
|
|
19739
|
+
function QueryListComponent_ng_container_0_Template(rf, ctx) {
|
|
19740
|
+
if (rf & 1) {
|
|
19741
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
19742
|
+
i0__namespace.ɵɵelementStart(1, "table", 1);
|
|
19743
|
+
i0__namespace.ɵɵelementStart(2, "caption", 2);
|
|
19744
|
+
i0__namespace.ɵɵelementStart(3, "div");
|
|
19745
|
+
i0__namespace.ɵɵtext(4);
|
|
19746
|
+
i0__namespace.ɵɵelementEnd();
|
|
19747
|
+
i0__namespace.ɵɵelementEnd();
|
|
19748
|
+
i0__namespace.ɵɵelementStart(5, "thead", 3);
|
|
19749
|
+
i0__namespace.ɵɵelementStart(6, "tr", 4);
|
|
19750
|
+
i0__namespace.ɵɵelementStart(7, "th", 5);
|
|
19751
|
+
i0__namespace.ɵɵtext(8, "Queries");
|
|
19752
|
+
i0__namespace.ɵɵelementEnd();
|
|
19753
|
+
i0__namespace.ɵɵelementStart(9, "th", 5);
|
|
19754
|
+
i0__namespace.ɵɵtext(10, "Last submitted by");
|
|
19755
|
+
i0__namespace.ɵɵelementEnd();
|
|
19756
|
+
i0__namespace.ɵɵelementStart(11, "th", 5);
|
|
19757
|
+
i0__namespace.ɵɵtext(12, "Last submission date");
|
|
19758
|
+
i0__namespace.ɵɵelementEnd();
|
|
19759
|
+
i0__namespace.ɵɵelementStart(13, "th", 5);
|
|
19760
|
+
i0__namespace.ɵɵtext(14, "Last response date");
|
|
19761
|
+
i0__namespace.ɵɵelementEnd();
|
|
19762
|
+
i0__namespace.ɵɵelementStart(15, "th", 5);
|
|
19763
|
+
i0__namespace.ɵɵtext(16, "Response status");
|
|
19764
|
+
i0__namespace.ɵɵelementEnd();
|
|
19765
|
+
i0__namespace.ɵɵelementEnd();
|
|
19766
|
+
i0__namespace.ɵɵelementEnd();
|
|
19767
|
+
i0__namespace.ɵɵelementStart(17, "tbody", 6);
|
|
19768
|
+
i0__namespace.ɵɵtemplate(18, QueryListComponent_ng_container_0_tr_18_Template, 14, 11, "tr", 7);
|
|
19769
|
+
i0__namespace.ɵɵelementEnd();
|
|
19770
|
+
i0__namespace.ɵɵelementEnd();
|
|
19771
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
19772
|
+
}
|
|
19773
|
+
if (rf & 2) {
|
|
19774
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19775
|
+
i0__namespace.ɵɵadvance(4);
|
|
19776
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
|
|
19777
|
+
i0__namespace.ɵɵadvance(14);
|
|
19778
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
|
|
19779
|
+
}
|
|
19780
|
+
}
|
|
19638
19781
|
var QueryListComponent = /** @class */ (function () {
|
|
19639
19782
|
function QueryListComponent() {
|
|
19640
19783
|
}
|
|
19641
|
-
QueryListComponent.prototype.
|
|
19784
|
+
QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
|
|
19785
|
+
var _a;
|
|
19786
|
+
var currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
|
|
19787
|
+
if (currentPartyMessageGroup) {
|
|
19788
|
+
this.queryListData = new QueryListData(currentPartyMessageGroup);
|
|
19789
|
+
}
|
|
19642
19790
|
};
|
|
19643
19791
|
return QueryListComponent;
|
|
19644
19792
|
}());
|
|
19645
19793
|
QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
|
|
19646
|
-
QueryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: {
|
|
19794
|
+
QueryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessageGroup: "partyMessageGroup" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-list__table"], [1, "govuk-table__cell", "query-list__caption", "query-list__row"], [1, "govuk-table__head"], [1, "govuk-table__row", "query-list__row"], ["scope", "col", 1, "govuk-table__header"], [1, "govuk-table__body"], ["class", "govuk-table__row query-list__row", 4, "ngFor", "ngForOf"], [1, "govuk-table__cell", "query-list__cell", "query-list__cell--first"], ["href", "javascript:void(0)"], [1, "govuk-table__cell", "query-list__cell"]], template: function QueryListComponent_Template(rf, ctx) {
|
|
19795
|
+
if (rf & 1) {
|
|
19796
|
+
i0__namespace.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 19, 2, "ng-container", 0);
|
|
19797
|
+
}
|
|
19798
|
+
if (rf & 2) {
|
|
19799
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.queryListData);
|
|
19800
|
+
}
|
|
19801
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__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%}"] });
|
|
19647
19802
|
(function () {
|
|
19648
19803
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
|
|
19649
19804
|
type: i0.Component,
|
|
19650
19805
|
args: [{
|
|
19651
19806
|
selector: 'ccd-query-list',
|
|
19652
19807
|
templateUrl: './query-list.component.html',
|
|
19808
|
+
styleUrls: ['./query-list.component.scss']
|
|
19653
19809
|
}]
|
|
19654
|
-
}],
|
|
19810
|
+
}], null, { partyMessageGroup: [{
|
|
19655
19811
|
type: i0.Input
|
|
19656
19812
|
}] });
|
|
19657
19813
|
})();
|
|
@@ -19671,6 +19827,20 @@
|
|
|
19671
19827
|
}], null, null);
|
|
19672
19828
|
})();
|
|
19673
19829
|
|
|
19830
|
+
function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) {
|
|
19831
|
+
if (rf & 1) {
|
|
19832
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
19833
|
+
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
19834
|
+
i0__namespace.ɵɵelement(2, "ccd-query-list", 2);
|
|
19835
|
+
i0__namespace.ɵɵelementEnd();
|
|
19836
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
19837
|
+
}
|
|
19838
|
+
if (rf & 2) {
|
|
19839
|
+
var singlePartyMessageGroup_r1 = ctx.$implicit;
|
|
19840
|
+
i0__namespace.ɵɵadvance(2);
|
|
19841
|
+
i0__namespace.ɵɵproperty("partyMessageGroup", singlePartyMessageGroup_r1);
|
|
19842
|
+
}
|
|
19843
|
+
}
|
|
19674
19844
|
var ReadQueryManagementFieldComponent = /** @class */ (function (_super) {
|
|
19675
19845
|
__extends(ReadQueryManagementFieldComponent, _super);
|
|
19676
19846
|
function ReadQueryManagementFieldComponent(route) {
|
|
@@ -19681,7 +19851,7 @@
|
|
|
19681
19851
|
ReadQueryManagementFieldComponent.prototype.ngOnInit = function () {
|
|
19682
19852
|
if (this.context === exports.PaletteContext.DEFAULT) {
|
|
19683
19853
|
// EUI-8303 Using mock data until CCD is ready with the API and data contract
|
|
19684
|
-
this.
|
|
19854
|
+
this.partyMessagesGroups = partyMessagesMockData;
|
|
19685
19855
|
// TODO: Actual implementation once the CCD API and data contract is available
|
|
19686
19856
|
// Each parties will have a separate collection of party messages
|
|
19687
19857
|
// Find whether queries tab is available in the case data
|
|
@@ -19695,14 +19865,14 @@
|
|
|
19695
19865
|
return ReadQueryManagementFieldComponent;
|
|
19696
19866
|
}(AbstractFieldReadComponent));
|
|
19697
19867
|
ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
|
|
19698
|
-
ReadQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "
|
|
19868
|
+
ReadQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "partyMessageGroup"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) {
|
|
19699
19869
|
if (rf & 1) {
|
|
19700
|
-
i0__namespace.ɵɵ
|
|
19870
|
+
i0__namespace.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 3, 1, "ng-container", 0);
|
|
19701
19871
|
}
|
|
19702
19872
|
if (rf & 2) {
|
|
19703
|
-
i0__namespace.ɵɵproperty("
|
|
19873
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
|
|
19704
19874
|
}
|
|
19705
|
-
},
|
|
19875
|
+
}, encapsulation: 2 });
|
|
19706
19876
|
(function () {
|
|
19707
19877
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
19708
19878
|
type: i0.Component,
|
|
@@ -26304,6 +26474,7 @@
|
|
|
26304
26474
|
// Components for linked cases
|
|
26305
26475
|
LinkedCasesToTableComponent, i1__namespace.NgIf, LinkedCasesFromTableComponent
|
|
26306
26476
|
], []);
|
|
26477
|
+
i0__namespace.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1__namespace.NgForOf, QueryListComponent], []);
|
|
26307
26478
|
i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.SelectControlValueAccessor, i1__namespace.NgForOf, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe]);
|
|
26308
26479
|
i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
|
|
26309
26480
|
i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1__namespace.NgClass, i1__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
|
|
@@ -36261,6 +36432,8 @@
|
|
|
36261
36432
|
exports.QueryCreateComponent = QueryCreateComponent;
|
|
36262
36433
|
exports.QueryDetailComponent = QueryDetailComponent;
|
|
36263
36434
|
exports.QueryListComponent = QueryListComponent;
|
|
36435
|
+
exports.QueryListData = QueryListData;
|
|
36436
|
+
exports.QueryListItem = QueryListItem;
|
|
36264
36437
|
exports.ReadCaseFlagFieldComponent = ReadCaseFlagFieldComponent;
|
|
36265
36438
|
exports.ReadCaseLinkFieldComponent = ReadCaseLinkFieldComponent;
|
|
36266
36439
|
exports.ReadCollectionFieldComponent = ReadCollectionFieldComponent;
|