@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-query-list-v3 → 6.16.0-query-management-sorting
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 +156 -82
- 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 -2
- package/esm2015/lib/shared/components/palette/query-management/components/query-list/query-list.component.js +110 -49
- package/esm2015/lib/shared/components/palette/query-management/domain/column/column.model.js +2 -0
- package/esm2015/lib/shared/components/palette/query-management/domain/index.js +2 -1
- package/esm2015/lib/shared/components/palette/query-management/domain/query-list/query-list-data/query-list-data.model.js +9 -7
- package/esm2015/lib/shared/components/palette/query-management/domain/query-list/query-list-item/query-list-item.model.js +17 -14
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +144 -78
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts +6 -1
- 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/column/column.model.d.ts +7 -0
- package/lib/shared/components/palette/query-management/domain/column/column.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/domain/index.d.ts +1 -0
- package/lib/shared/components/palette/query-management/domain/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/domain/query-list/query-list-data/query-list-data.model.d.ts +1 -0
- package/lib/shared/components/palette/query-management/domain/query-list/query-list-data/query-list-data.model.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/domain/query-list/query-list-item/query-list-item.model.d.ts +2 -4
- package/lib/shared/components/palette/query-management/domain/query-list/query-list-item/query-list-item.model.d.ts.map +1 -1
- package/lib/shared/components/search-result/search-result.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -19619,25 +19619,43 @@
|
|
|
19619
19619
|
}], function () { return []; }, null);
|
|
19620
19620
|
})();
|
|
19621
19621
|
|
|
19622
|
-
|
|
19623
|
-
(function (
|
|
19624
|
-
|
|
19625
|
-
|
|
19626
|
-
|
|
19622
|
+
var SortOrder;
|
|
19623
|
+
(function (SortOrder) {
|
|
19624
|
+
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
19625
|
+
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
19626
|
+
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
19627
|
+
})(SortOrder || (SortOrder = {}));
|
|
19627
19628
|
|
|
19628
19629
|
var QueryListItem = /** @class */ (function () {
|
|
19629
19630
|
function QueryListItem() {
|
|
19631
|
+
this.children = [];
|
|
19630
19632
|
}
|
|
19631
19633
|
Object.defineProperty(QueryListItem.prototype, "lastSubmittedMessage", {
|
|
19632
19634
|
get: function () {
|
|
19633
|
-
|
|
19634
|
-
|
|
19635
|
-
|
|
19636
|
-
|
|
19637
|
-
|
|
19638
|
-
|
|
19639
|
-
|
|
19640
|
-
|
|
19635
|
+
var getLastSubmittedMessage = function (item) {
|
|
19636
|
+
var e_1, _b;
|
|
19637
|
+
var lastSubmittedMessage = item;
|
|
19638
|
+
if (item.children && item.children.length > 0) {
|
|
19639
|
+
try {
|
|
19640
|
+
for (var _c = __values(item.children), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
19641
|
+
var child = _d.value;
|
|
19642
|
+
var childLastSubmittedMessage = getLastSubmittedMessage(child);
|
|
19643
|
+
if (childLastSubmittedMessage.createdOn > lastSubmittedMessage.createdOn) {
|
|
19644
|
+
lastSubmittedMessage = childLastSubmittedMessage;
|
|
19645
|
+
}
|
|
19646
|
+
}
|
|
19647
|
+
}
|
|
19648
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
19649
|
+
finally {
|
|
19650
|
+
try {
|
|
19651
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
19652
|
+
}
|
|
19653
|
+
finally { if (e_1) throw e_1.error; }
|
|
19654
|
+
}
|
|
19655
|
+
}
|
|
19656
|
+
return lastSubmittedMessage;
|
|
19657
|
+
};
|
|
19658
|
+
return getLastSubmittedMessage(this);
|
|
19641
19659
|
},
|
|
19642
19660
|
enumerable: false,
|
|
19643
19661
|
configurable: true
|
|
@@ -19672,69 +19690,91 @@
|
|
|
19672
19690
|
enumerable: false,
|
|
19673
19691
|
configurable: true
|
|
19674
19692
|
});
|
|
19675
|
-
Object.defineProperty(QueryListItem.prototype, "responseStatus", {
|
|
19676
|
-
get: function () {
|
|
19677
|
-
var _a;
|
|
19678
|
-
return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? exports.QueryListResponseStatus.RESPONDED : exports.QueryListResponseStatus.NEW;
|
|
19679
|
-
},
|
|
19680
|
-
enumerable: false,
|
|
19681
|
-
configurable: true
|
|
19682
|
-
});
|
|
19683
19693
|
return QueryListItem;
|
|
19684
19694
|
}());
|
|
19685
19695
|
|
|
19686
19696
|
var QueryListData = /** @class */ (function () {
|
|
19687
19697
|
function QueryListData(partyMessagesGroup) {
|
|
19698
|
+
var _this = this;
|
|
19688
19699
|
this.partyName = partyMessagesGroup.partyName;
|
|
19689
19700
|
this.roleOnCase = partyMessagesGroup.roleOnCase;
|
|
19690
19701
|
// get the parent messages (messages without parentId) and add the children to them
|
|
19691
19702
|
var parentMessages = partyMessagesGroup.partyMessages.filter(function (message) { return !message.parentId; });
|
|
19692
|
-
this.partyMessages = parentMessages.map(function (message) {
|
|
19693
|
-
var parentMessage = new QueryListItem();
|
|
19694
|
-
Object.assign(parentMessage, Object.assign(Object.assign({}, message), { children: partyMessagesGroup.partyMessages
|
|
19695
|
-
.filter(function (childMessage) { return childMessage.parentId === message.id; }) }));
|
|
19696
|
-
return parentMessage;
|
|
19697
|
-
});
|
|
19703
|
+
this.partyMessages = parentMessages.map(function (message) { return _this.buildQueryListItem(message, partyMessagesGroup.partyMessages); });
|
|
19698
19704
|
}
|
|
19705
|
+
QueryListData.prototype.buildQueryListItem = function (message, allMessages) {
|
|
19706
|
+
var _this = this;
|
|
19707
|
+
var queryListItem = new QueryListItem();
|
|
19708
|
+
Object.assign(queryListItem, Object.assign(Object.assign({}, message), { children: allMessages
|
|
19709
|
+
.filter(function (childMessage) { return childMessage.parentId === message.id; })
|
|
19710
|
+
.map(function (childMessage) { return _this.buildQueryListItem(childMessage, allMessages); }) }));
|
|
19711
|
+
return queryListItem;
|
|
19712
|
+
};
|
|
19699
19713
|
return QueryListData;
|
|
19700
19714
|
}());
|
|
19701
19715
|
|
|
19702
|
-
|
|
19716
|
+
exports.QueryListResponseStatus = void 0;
|
|
19717
|
+
(function (QueryListResponseStatus) {
|
|
19718
|
+
QueryListResponseStatus["NEW"] = "New";
|
|
19719
|
+
QueryListResponseStatus["RESPONDED"] = "Responded";
|
|
19720
|
+
})(exports.QueryListResponseStatus || (exports.QueryListResponseStatus = {}));
|
|
19721
|
+
|
|
19722
|
+
function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) {
|
|
19723
|
+
if (rf & 1) {
|
|
19724
|
+
var _r5_1 = i0__namespace.ɵɵgetCurrentView();
|
|
19725
|
+
i0__namespace.ɵɵelementStart(0, "th", 8);
|
|
19726
|
+
i0__namespace.ɵɵtext(1);
|
|
19727
|
+
i0__namespace.ɵɵpipe(2, "rpxTranslate");
|
|
19728
|
+
i0__namespace.ɵɵelementStart(3, "a", 9);
|
|
19729
|
+
i0__namespace.ɵɵlistener("click", function QueryListComponent_ng_container_0_th_7_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r5_1); var col_r3 = ctx.$implicit; var ctx_r4 = i0__namespace.ɵɵnextContext(2); return ctx_r4.sortTable(col_r3); });
|
|
19730
|
+
i0__namespace.ɵɵelementEnd();
|
|
19731
|
+
i0__namespace.ɵɵelementEnd();
|
|
19732
|
+
}
|
|
19733
|
+
if (rf & 2) {
|
|
19734
|
+
var col_r3 = ctx.$implicit;
|
|
19735
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
19736
|
+
i0__namespace.ɵɵadvance(1);
|
|
19737
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
|
|
19738
|
+
i0__namespace.ɵɵadvance(2);
|
|
19739
|
+
i0__namespace.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0__namespace.ɵɵsanitizeHtml);
|
|
19740
|
+
}
|
|
19741
|
+
}
|
|
19742
|
+
function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) {
|
|
19703
19743
|
if (rf & 1) {
|
|
19704
19744
|
i0__namespace.ɵɵelementStart(0, "tr", 4);
|
|
19705
|
-
i0__namespace.ɵɵelementStart(1, "td",
|
|
19706
|
-
i0__namespace.ɵɵelementStart(2, "a",
|
|
19745
|
+
i0__namespace.ɵɵelementStart(1, "td", 10);
|
|
19746
|
+
i0__namespace.ɵɵelementStart(2, "a", 11);
|
|
19707
19747
|
i0__namespace.ɵɵtext(3);
|
|
19708
19748
|
i0__namespace.ɵɵelementEnd();
|
|
19709
19749
|
i0__namespace.ɵɵelementEnd();
|
|
19710
|
-
i0__namespace.ɵɵelementStart(4, "td",
|
|
19750
|
+
i0__namespace.ɵɵelementStart(4, "td", 12);
|
|
19711
19751
|
i0__namespace.ɵɵtext(5);
|
|
19712
19752
|
i0__namespace.ɵɵelementEnd();
|
|
19713
|
-
i0__namespace.ɵɵelementStart(6, "td",
|
|
19753
|
+
i0__namespace.ɵɵelementStart(6, "td", 12);
|
|
19714
19754
|
i0__namespace.ɵɵtext(7);
|
|
19715
19755
|
i0__namespace.ɵɵpipe(8, "date");
|
|
19716
19756
|
i0__namespace.ɵɵelementEnd();
|
|
19717
|
-
i0__namespace.ɵɵelementStart(9, "td",
|
|
19757
|
+
i0__namespace.ɵɵelementStart(9, "td", 12);
|
|
19718
19758
|
i0__namespace.ɵɵtext(10);
|
|
19719
19759
|
i0__namespace.ɵɵpipe(11, "date");
|
|
19720
19760
|
i0__namespace.ɵɵelementEnd();
|
|
19721
|
-
i0__namespace.ɵɵelementStart(12, "td",
|
|
19761
|
+
i0__namespace.ɵɵelementStart(12, "td", 12);
|
|
19722
19762
|
i0__namespace.ɵɵtext(13);
|
|
19723
19763
|
i0__namespace.ɵɵelementEnd();
|
|
19724
19764
|
i0__namespace.ɵɵelementEnd();
|
|
19725
19765
|
}
|
|
19726
19766
|
if (rf & 2) {
|
|
19727
|
-
var
|
|
19767
|
+
var message_r6 = ctx.$implicit;
|
|
19728
19768
|
i0__namespace.ɵɵadvance(3);
|
|
19729
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
19769
|
+
i0__namespace.ɵɵtextInterpolate(message_r6.subject);
|
|
19730
19770
|
i0__namespace.ɵɵadvance(2);
|
|
19731
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
19771
|
+
i0__namespace.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
|
|
19732
19772
|
i0__namespace.ɵɵadvance(2);
|
|
19733
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(8, 5,
|
|
19773
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
|
|
19734
19774
|
i0__namespace.ɵɵadvance(3);
|
|
19735
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8,
|
|
19775
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
|
|
19736
19776
|
i0__namespace.ɵɵadvance(3);
|
|
19737
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
19777
|
+
i0__namespace.ɵɵtextInterpolate(message_r6.lastResponseBy);
|
|
19738
19778
|
}
|
|
19739
19779
|
}
|
|
19740
19780
|
function QueryListComponent_ng_container_0_Template(rf, ctx) {
|
|
@@ -19748,30 +19788,11 @@
|
|
|
19748
19788
|
i0__namespace.ɵɵelementEnd();
|
|
19749
19789
|
i0__namespace.ɵɵelementStart(5, "thead", 3);
|
|
19750
19790
|
i0__namespace.ɵɵelementStart(6, "tr", 4);
|
|
19751
|
-
i0__namespace.ɵɵ
|
|
19752
|
-
i0__namespace.ɵɵtext(8);
|
|
19753
|
-
i0__namespace.ɵɵpipe(9, "rpxTranslate");
|
|
19791
|
+
i0__namespace.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
|
|
19754
19792
|
i0__namespace.ɵɵelementEnd();
|
|
19755
|
-
i0__namespace.ɵɵelementStart(10, "th", 5);
|
|
19756
|
-
i0__namespace.ɵɵtext(11);
|
|
19757
|
-
i0__namespace.ɵɵpipe(12, "rpxTranslate");
|
|
19758
19793
|
i0__namespace.ɵɵelementEnd();
|
|
19759
|
-
i0__namespace.ɵɵelementStart(
|
|
19760
|
-
i0__namespace.ɵɵ
|
|
19761
|
-
i0__namespace.ɵɵpipe(15, "rpxTranslate");
|
|
19762
|
-
i0__namespace.ɵɵelementEnd();
|
|
19763
|
-
i0__namespace.ɵɵelementStart(16, "th", 5);
|
|
19764
|
-
i0__namespace.ɵɵtext(17);
|
|
19765
|
-
i0__namespace.ɵɵpipe(18, "rpxTranslate");
|
|
19766
|
-
i0__namespace.ɵɵelementEnd();
|
|
19767
|
-
i0__namespace.ɵɵelementStart(19, "th", 5);
|
|
19768
|
-
i0__namespace.ɵɵtext(20);
|
|
19769
|
-
i0__namespace.ɵɵpipe(21, "rpxTranslate");
|
|
19770
|
-
i0__namespace.ɵɵelementEnd();
|
|
19771
|
-
i0__namespace.ɵɵelementEnd();
|
|
19772
|
-
i0__namespace.ɵɵelementEnd();
|
|
19773
|
-
i0__namespace.ɵɵelementStart(22, "tbody", 6);
|
|
19774
|
-
i0__namespace.ɵɵtemplate(23, QueryListComponent_ng_container_0_tr_23_Template, 14, 11, "tr", 7);
|
|
19794
|
+
i0__namespace.ɵɵelementStart(8, "tbody", 6);
|
|
19795
|
+
i0__namespace.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
|
|
19775
19796
|
i0__namespace.ɵɵelementEnd();
|
|
19776
19797
|
i0__namespace.ɵɵelementEnd();
|
|
19777
19798
|
i0__namespace.ɵɵelementContainerEnd();
|
|
@@ -19780,22 +19801,21 @@
|
|
|
19780
19801
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19781
19802
|
i0__namespace.ɵɵadvance(4);
|
|
19782
19803
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
|
|
19783
|
-
i0__namespace.ɵɵadvance(4);
|
|
19784
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(9, 7, "Queries"));
|
|
19785
|
-
i0__namespace.ɵɵadvance(3);
|
|
19786
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(12, 9, "Last submitted by"));
|
|
19787
|
-
i0__namespace.ɵɵadvance(3);
|
|
19788
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(15, 11, "Last submission date"));
|
|
19789
|
-
i0__namespace.ɵɵadvance(3);
|
|
19790
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(18, 13, "Last response date"));
|
|
19791
|
-
i0__namespace.ɵɵadvance(3);
|
|
19792
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(21, 15, "Response by"));
|
|
19793
19804
|
i0__namespace.ɵɵadvance(3);
|
|
19805
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
|
|
19806
|
+
i0__namespace.ɵɵadvance(2);
|
|
19794
19807
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
|
|
19795
19808
|
}
|
|
19796
19809
|
}
|
|
19797
19810
|
var QueryListComponent = /** @class */ (function () {
|
|
19798
19811
|
function QueryListComponent() {
|
|
19812
|
+
this.displayedColumns = [
|
|
19813
|
+
{ name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
|
|
19814
|
+
{ name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
|
|
19815
|
+
{ name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
|
|
19816
|
+
{ name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
|
|
19817
|
+
{ name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
|
|
19818
|
+
];
|
|
19799
19819
|
}
|
|
19800
19820
|
QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
|
|
19801
19821
|
var _a;
|
|
@@ -19804,17 +19824,78 @@
|
|
|
19804
19824
|
this.queryListData = new QueryListData(currentPartyMessageGroup);
|
|
19805
19825
|
}
|
|
19806
19826
|
};
|
|
19827
|
+
QueryListComponent.prototype.sortTable = function (col) {
|
|
19828
|
+
switch (col.displayName) {
|
|
19829
|
+
case 'Queries': {
|
|
19830
|
+
this.sort(col);
|
|
19831
|
+
break;
|
|
19832
|
+
}
|
|
19833
|
+
case 'Last submitted by': {
|
|
19834
|
+
this.sort(col);
|
|
19835
|
+
break;
|
|
19836
|
+
}
|
|
19837
|
+
case 'Last submission date': {
|
|
19838
|
+
this.sortDate(col);
|
|
19839
|
+
break;
|
|
19840
|
+
}
|
|
19841
|
+
case 'Last response date': {
|
|
19842
|
+
this.sortDate(col);
|
|
19843
|
+
break;
|
|
19844
|
+
}
|
|
19845
|
+
case 'Response by': {
|
|
19846
|
+
this.sort(col);
|
|
19847
|
+
break;
|
|
19848
|
+
}
|
|
19849
|
+
}
|
|
19850
|
+
};
|
|
19851
|
+
QueryListComponent.prototype.sortWidget = function (col) {
|
|
19852
|
+
switch (col.sortOrder) {
|
|
19853
|
+
case SortOrder.DESCENDING: {
|
|
19854
|
+
return '▲';
|
|
19855
|
+
}
|
|
19856
|
+
case SortOrder.ASCENDING: {
|
|
19857
|
+
return '▼';
|
|
19858
|
+
}
|
|
19859
|
+
default: {
|
|
19860
|
+
return '⬧';
|
|
19861
|
+
}
|
|
19862
|
+
}
|
|
19863
|
+
};
|
|
19864
|
+
QueryListComponent.prototype.sort = function (col) {
|
|
19865
|
+
if (col.sortOrder && col.sortOrder === SortOrder.DESCENDING) {
|
|
19866
|
+
this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] < b[col.name]) ? 1 : -1; });
|
|
19867
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
19868
|
+
col.sortOrder = SortOrder.ASCENDING;
|
|
19869
|
+
}
|
|
19870
|
+
else {
|
|
19871
|
+
this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] > b[col.name]) ? 1 : -1; });
|
|
19872
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
19873
|
+
col.sortOrder = SortOrder.DESCENDING;
|
|
19874
|
+
}
|
|
19875
|
+
};
|
|
19876
|
+
QueryListComponent.prototype.sortDate = function (col) {
|
|
19877
|
+
if (col.sortOrder && col.sortOrder === SortOrder.DESCENDING) {
|
|
19878
|
+
this.queryListData.partyMessages.sort(function (a, b) { return b[col.name] - a[col.name]; });
|
|
19879
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
19880
|
+
col.sortOrder = SortOrder.ASCENDING;
|
|
19881
|
+
}
|
|
19882
|
+
else {
|
|
19883
|
+
this.queryListData.partyMessages.sort(function (a, b) { return a[col.name] - b[col.name]; });
|
|
19884
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
19885
|
+
col.sortOrder = SortOrder.DESCENDING;
|
|
19886
|
+
}
|
|
19887
|
+
};
|
|
19807
19888
|
return QueryListComponent;
|
|
19808
19889
|
}());
|
|
19809
19890
|
QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
|
|
19810
|
-
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"], ["
|
|
19891
|
+
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"], ["class", "govuk-table__header", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], ["class", "govuk-table__row query-list__row", 4, "ngFor", "ngForOf"], [1, "govuk-table__header"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [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) {
|
|
19811
19892
|
if (rf & 1) {
|
|
19812
|
-
i0__namespace.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template,
|
|
19893
|
+
i0__namespace.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
|
|
19813
19894
|
}
|
|
19814
19895
|
if (rf & 2) {
|
|
19815
19896
|
i0__namespace.ɵɵproperty("ngIf", ctx.queryListData);
|
|
19816
19897
|
}
|
|
19817
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i2__namespace$1.RpxTranslatePipe, 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%}"] });
|
|
19898
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i2__namespace$1.RpxTranslatePipe, 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%}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#000}"] });
|
|
19818
19899
|
(function () {
|
|
19819
19900
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
|
|
19820
19901
|
type: i0.Component,
|
|
@@ -23554,13 +23635,6 @@
|
|
|
23554
23635
|
}] });
|
|
23555
23636
|
})();
|
|
23556
23637
|
|
|
23557
|
-
var SortOrder;
|
|
23558
|
-
(function (SortOrder) {
|
|
23559
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
23560
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
23561
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
23562
|
-
})(SortOrder || (SortOrder = {}));
|
|
23563
|
-
|
|
23564
23638
|
function ReadComplexFieldCollectionTableComponent_th_9_Template(rf, ctx) {
|
|
23565
23639
|
if (rf & 1) {
|
|
23566
23640
|
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|