@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-sorting-v1 → 6.16.0-query-management-write-view-v5
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 +703 -326
- 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/base-field/abstract-form-field.component.js +5 -2
- package/esm2015/lib/shared/components/palette/palette.module.js +9 -27
- package/esm2015/lib/shared/components/palette/palette.service.js +3 -2
- package/esm2015/lib/shared/components/palette/query-management/__mocks__/index.js +10 -2
- package/esm2015/lib/shared/components/palette/query-management/components/query-create/query-create.component.js +1 -1
- package/esm2015/lib/shared/components/palette/query-management/components/query-details/query-details.component.js +18 -0
- package/esm2015/lib/shared/components/palette/query-management/components/query-details-table/query-details-table.component.js +143 -0
- package/esm2015/lib/shared/components/palette/query-management/components/query-list/query-list.component.js +2 -2
- package/esm2015/lib/shared/components/palette/query-management/index.js +1 -4
- package/esm2015/lib/shared/components/palette/query-management/{domain → models}/index.js +2 -2
- package/esm2015/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-message.model.js +1 -1
- package/esm2015/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-messages-group.model.js +1 -1
- package/esm2015/lib/shared/components/palette/query-management/models/query-list/query-list-column/query-list-column.model.js +2 -0
- package/esm2015/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-data/query-list-data.model.js +1 -1
- package/esm2015/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-item/query-list-item.model.js +1 -1
- package/esm2015/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-response-status.enum.js +1 -1
- package/esm2015/lib/shared/components/palette/query-management/query-management.module.js +60 -0
- package/esm2015/lib/shared/components/palette/query-management/read-query-management-field.component.js +2 -2
- package/esm2015/lib/shared/components/palette/query-management/write-query-management-field.component.js +178 -5
- package/esm2015/lib/shared/domain/definition/display-context-enum.model.js +2 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +676 -328
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts +2 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +77 -81
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/__mocks__/index.d.ts +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-create/query-create.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +6 -0
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-details-table/query-details-table.component.d.ts +8 -0
- package/lib/shared/components/palette/query-management/components/query-details-table/query-details-table.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts +4 -4
- 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/index.d.ts +0 -3
- package/lib/shared/components/palette/query-management/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/{domain → models}/index.d.ts +1 -1
- package/lib/shared/components/palette/query-management/{domain → models}/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-message.model.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-messages-group.model.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/models/query-list/query-list-column/query-list-column.model.d.ts +7 -0
- package/lib/shared/components/palette/query-management/models/query-list/query-list-column/query-list-column.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-data/query-list-data.model.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-item/query-list-item.model.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-response-status.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/query-management.module.d.ts +17 -0
- package/lib/shared/components/palette/query-management/query-management.module.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts +6 -4
- package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts.map +1 -1
- package/lib/shared/domain/definition/display-context-enum.model.d.ts +2 -1
- package/lib/shared/domain/definition/display-context-enum.model.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/components/palette/query-management/components/index.js +0 -4
- package/esm2015/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.js +0 -18
- package/esm2015/lib/shared/components/palette/query-management/domain/query-list-column/query-list-column.model.js +0 -2
- package/lib/shared/components/palette/query-management/components/index.d.ts +0 -4
- package/lib/shared/components/palette/query-management/components/index.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.d.ts +0 -9
- package/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/domain/query-list-column/query-list-column.model.d.ts +0 -7
- package/lib/shared/components/palette/query-management/domain/query-list-column/query-list-column.model.d.ts.map +0 -1
- /package/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-message.model.d.ts +0 -0
- /package/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-messages-group.model.d.ts +0 -0
- /package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-data/query-list-data.model.d.ts +0 -0
- /package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-item/query-list-item.model.d.ts +0 -0
- /package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-response-status.enum.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.
|
|
5
|
-
})(this, (function (exports, i0, i1, i1$1, i3, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2, i5, i6, i3$1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('ngx-md'), require('@hmcts/media-viewer'), require('rpx-xui-translation'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', 'ngx-md', '@hmcts/media-viewer', 'rpx-xui-translation', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global["ngx-md"], global.i12, global.i2$1, global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, i3, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2, i5, i6, i3$1, i1$4, i7, i3$2, i4, momentAdapter, i5$1, i6$1, i1$5, i12, i2$1, i6$2, i1$6, i9) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
38
38
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
39
39
|
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
40
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
41
40
|
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
42
41
|
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
43
42
|
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
@@ -46,6 +45,7 @@
|
|
|
46
45
|
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
47
46
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
48
47
|
var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
|
|
48
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
49
49
|
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
50
50
|
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
51
51
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
@@ -4977,6 +4977,7 @@
|
|
|
4977
4977
|
var AbstractFormFieldComponent = /** @class */ (function () {
|
|
4978
4978
|
function AbstractFormFieldComponent() {
|
|
4979
4979
|
this.idPrefix = '';
|
|
4980
|
+
this.caseReference = '';
|
|
4980
4981
|
}
|
|
4981
4982
|
AbstractFormFieldComponent.prototype.id = function () {
|
|
4982
4983
|
return this.idPrefix + this.caseField.id;
|
|
@@ -5037,7 +5038,7 @@
|
|
|
5037
5038
|
return AbstractFormFieldComponent;
|
|
5038
5039
|
}());
|
|
5039
5040
|
AbstractFormFieldComponent.ɵfac = function AbstractFormFieldComponent_Factory(t) { return new (t || AbstractFormFieldComponent)(); };
|
|
5040
|
-
AbstractFormFieldComponent.ɵdir = i0__namespace.ɵɵdefineDirective({ type: AbstractFormFieldComponent, inputs: { caseField: "caseField", formGroup: "formGroup", parent: "parent", idPrefix: "idPrefix" } });
|
|
5041
|
+
AbstractFormFieldComponent.ɵdir = i0__namespace.ɵɵdefineDirective({ type: AbstractFormFieldComponent, inputs: { caseField: "caseField", formGroup: "formGroup", parent: "parent", idPrefix: "idPrefix", caseReference: "caseReference" } });
|
|
5041
5042
|
(function () {
|
|
5042
5043
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AbstractFormFieldComponent, [{
|
|
5043
5044
|
type: i0.Directive
|
|
@@ -5049,6 +5050,8 @@
|
|
|
5049
5050
|
type: i0.Input
|
|
5050
5051
|
}], idPrefix: [{
|
|
5051
5052
|
type: i0.Input
|
|
5053
|
+
}], caseReference: [{
|
|
5054
|
+
type: i0.Input
|
|
5052
5055
|
}] });
|
|
5053
5056
|
})();
|
|
5054
5057
|
|
|
@@ -11313,6 +11316,7 @@
|
|
|
11313
11316
|
DisplayContextCustomParameter["CaseFileView"] = "CaseFileView";
|
|
11314
11317
|
DisplayContextCustomParameter["LinkedCases"] = "LinkedCases";
|
|
11315
11318
|
DisplayContextCustomParameter["QueryManagement"] = "QueryManagement";
|
|
11319
|
+
DisplayContextCustomParameter["QueryManagementWriteTest"] = "QueryManagementWriteTest";
|
|
11316
11320
|
})(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
|
|
11317
11321
|
|
|
11318
11322
|
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
|
|
@@ -19469,6 +19473,21 @@
|
|
|
19469
19473
|
}], null, null);
|
|
19470
19474
|
})();
|
|
19471
19475
|
|
|
19476
|
+
var QueryManagementUtils = /** @class */ (function () {
|
|
19477
|
+
function QueryManagementUtils() {
|
|
19478
|
+
}
|
|
19479
|
+
QueryManagementUtils.extractCaseQueriesFromCaseField = function () {
|
|
19480
|
+
};
|
|
19481
|
+
return QueryManagementUtils;
|
|
19482
|
+
}());
|
|
19483
|
+
QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
|
|
19484
|
+
QueryManagementUtils.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
|
|
19485
|
+
(function () {
|
|
19486
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementUtils, [{
|
|
19487
|
+
type: i0.Injectable
|
|
19488
|
+
}], null, null);
|
|
19489
|
+
})();
|
|
19490
|
+
|
|
19472
19491
|
var partyMessagesMockData = [
|
|
19473
19492
|
{
|
|
19474
19493
|
partyName: 'John Smith - Appellant',
|
|
@@ -19479,7 +19498,15 @@
|
|
|
19479
19498
|
subject: 'Review attached document',
|
|
19480
19499
|
name: 'Maggie Conroy',
|
|
19481
19500
|
body: 'Please review attached document and advise if hearing should proceed?',
|
|
19482
|
-
attachments: [
|
|
19501
|
+
attachments: [
|
|
19502
|
+
{
|
|
19503
|
+
_links: {
|
|
19504
|
+
self: { href: '/' },
|
|
19505
|
+
binary: { href: '/' },
|
|
19506
|
+
},
|
|
19507
|
+
originalDocumentName: 'documentName.pdf',
|
|
19508
|
+
}
|
|
19509
|
+
],
|
|
19483
19510
|
isHearingRelated: true,
|
|
19484
19511
|
hearingDate: '10 Jan 2023',
|
|
19485
19512
|
createdOn: new Date(2023, 0, 3),
|
|
@@ -19581,51 +19608,62 @@
|
|
|
19581
19608
|
}
|
|
19582
19609
|
];
|
|
19583
19610
|
|
|
19584
|
-
|
|
19585
|
-
|
|
19611
|
+
function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) {
|
|
19612
|
+
if (rf & 1) {
|
|
19613
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
19614
|
+
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
19615
|
+
i0__namespace.ɵɵelement(2, "ccd-query-list", 2);
|
|
19616
|
+
i0__namespace.ɵɵelementEnd();
|
|
19617
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
19586
19618
|
}
|
|
19587
|
-
|
|
19588
|
-
|
|
19589
|
-
|
|
19590
|
-
|
|
19591
|
-
QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
|
|
19592
|
-
QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
19593
|
-
(function () {
|
|
19594
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
|
|
19595
|
-
type: i0.Component,
|
|
19596
|
-
args: [{
|
|
19597
|
-
selector: 'ccd-query-create',
|
|
19598
|
-
templateUrl: './query-create.component.html',
|
|
19599
|
-
}]
|
|
19600
|
-
}], function () { return []; }, null);
|
|
19601
|
-
})();
|
|
19602
|
-
|
|
19603
|
-
var QueryDetailComponent = /** @class */ (function () {
|
|
19604
|
-
function QueryDetailComponent() {
|
|
19619
|
+
if (rf & 2) {
|
|
19620
|
+
var singlePartyMessageGroup_r1 = ctx.$implicit;
|
|
19621
|
+
i0__namespace.ɵɵadvance(2);
|
|
19622
|
+
i0__namespace.ɵɵproperty("partyMessageGroup", singlePartyMessageGroup_r1);
|
|
19605
19623
|
}
|
|
19606
|
-
|
|
19624
|
+
}
|
|
19625
|
+
var ReadQueryManagementFieldComponent = /** @class */ (function (_super) {
|
|
19626
|
+
__extends(ReadQueryManagementFieldComponent, _super);
|
|
19627
|
+
function ReadQueryManagementFieldComponent(route) {
|
|
19628
|
+
var _this = _super.call(this) || this;
|
|
19629
|
+
_this.route = route;
|
|
19630
|
+
return _this;
|
|
19631
|
+
}
|
|
19632
|
+
ReadQueryManagementFieldComponent.prototype.ngOnInit = function () {
|
|
19633
|
+
if (this.context === exports.PaletteContext.DEFAULT) {
|
|
19634
|
+
// EUI-8303 Using mock data until CCD is ready with the API and data contract
|
|
19635
|
+
this.partyMessagesGroups = partyMessagesMockData;
|
|
19636
|
+
// TODO: Actual implementation once the CCD API and data contract is available
|
|
19637
|
+
// Each parties will have a separate collection of party messages
|
|
19638
|
+
// Find whether queries tab is available in the case data
|
|
19639
|
+
var queriesTab = this.route.snapshot.data.case.tabs
|
|
19640
|
+
.filter(function (tab) { return tab.fields && tab.fields
|
|
19641
|
+
.some(function (caseField) { return caseField.id === 'QueryManagement'; }); });
|
|
19642
|
+
// Loop through the list of parties and their case queries collections
|
|
19643
|
+
QueryManagementUtils.extractCaseQueriesFromCaseField();
|
|
19644
|
+
}
|
|
19607
19645
|
};
|
|
19608
|
-
return
|
|
19609
|
-
}());
|
|
19610
|
-
|
|
19611
|
-
|
|
19646
|
+
return ReadQueryManagementFieldComponent;
|
|
19647
|
+
}(AbstractFieldReadComponent));
|
|
19648
|
+
ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
|
|
19649
|
+
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-6", "govuk-!-margin-bottom-6"], [3, "partyMessageGroup"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) {
|
|
19650
|
+
if (rf & 1) {
|
|
19651
|
+
i0__namespace.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 3, 1, "ng-container", 0);
|
|
19652
|
+
}
|
|
19653
|
+
if (rf & 2) {
|
|
19654
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
|
|
19655
|
+
}
|
|
19656
|
+
}, encapsulation: 2 });
|
|
19612
19657
|
(function () {
|
|
19613
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
19658
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
19614
19659
|
type: i0.Component,
|
|
19615
19660
|
args: [{
|
|
19616
|
-
selector: 'ccd-query-
|
|
19617
|
-
templateUrl: './query-
|
|
19661
|
+
selector: 'ccd-read-query-management-field',
|
|
19662
|
+
templateUrl: './read-query-management-field.component.html',
|
|
19618
19663
|
}]
|
|
19619
|
-
}], function () { return []; }, null);
|
|
19664
|
+
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
|
|
19620
19665
|
})();
|
|
19621
19666
|
|
|
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 = {}));
|
|
19628
|
-
|
|
19629
19667
|
var QueryListItem = /** @class */ (function () {
|
|
19630
19668
|
function QueryListItem() {
|
|
19631
19669
|
this.children = [];
|
|
@@ -19713,294 +19751,209 @@
|
|
|
19713
19751
|
return QueryListData;
|
|
19714
19752
|
}());
|
|
19715
19753
|
|
|
19716
|
-
|
|
19754
|
+
var QueryListResponseStatus;
|
|
19717
19755
|
(function (QueryListResponseStatus) {
|
|
19718
19756
|
QueryListResponseStatus["NEW"] = "New";
|
|
19719
19757
|
QueryListResponseStatus["RESPONDED"] = "Responded";
|
|
19720
|
-
})(
|
|
19758
|
+
})(QueryListResponseStatus || (QueryListResponseStatus = {}));
|
|
19721
19759
|
|
|
19722
|
-
function
|
|
19760
|
+
function WriteQueryManagementFieldComponent_p_28_Template(rf, ctx) {
|
|
19723
19761
|
if (rf & 1) {
|
|
19724
|
-
|
|
19725
|
-
i0__namespace.ɵɵelementStart(
|
|
19726
|
-
i0__namespace.ɵɵtext(
|
|
19727
|
-
i0__namespace.ɵɵpipe(
|
|
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) {
|
|
19743
|
-
if (rf & 1) {
|
|
19744
|
-
i0__namespace.ɵɵelementStart(0, "tr", 4);
|
|
19745
|
-
i0__namespace.ɵɵelementStart(1, "td", 10);
|
|
19746
|
-
i0__namespace.ɵɵelementStart(2, "a", 11);
|
|
19747
|
-
i0__namespace.ɵɵtext(3);
|
|
19748
|
-
i0__namespace.ɵɵelementEnd();
|
|
19749
|
-
i0__namespace.ɵɵelementEnd();
|
|
19750
|
-
i0__namespace.ɵɵelementStart(4, "td", 12);
|
|
19751
|
-
i0__namespace.ɵɵtext(5);
|
|
19752
|
-
i0__namespace.ɵɵelementEnd();
|
|
19753
|
-
i0__namespace.ɵɵelementStart(6, "td", 12);
|
|
19754
|
-
i0__namespace.ɵɵtext(7);
|
|
19755
|
-
i0__namespace.ɵɵpipe(8, "date");
|
|
19756
|
-
i0__namespace.ɵɵelementEnd();
|
|
19757
|
-
i0__namespace.ɵɵelementStart(9, "td", 12);
|
|
19758
|
-
i0__namespace.ɵɵtext(10);
|
|
19759
|
-
i0__namespace.ɵɵpipe(11, "date");
|
|
19760
|
-
i0__namespace.ɵɵelementEnd();
|
|
19761
|
-
i0__namespace.ɵɵelementStart(12, "td", 12);
|
|
19762
|
-
i0__namespace.ɵɵtext(13);
|
|
19762
|
+
i0__namespace.ɵɵelementStart(0, "p", 24);
|
|
19763
|
+
i0__namespace.ɵɵelementStart(1, "span", 25);
|
|
19764
|
+
i0__namespace.ɵɵtext(2);
|
|
19765
|
+
i0__namespace.ɵɵpipe(3, "rpxTranslate");
|
|
19763
19766
|
i0__namespace.ɵɵelementEnd();
|
|
19767
|
+
i0__namespace.ɵɵtext(4);
|
|
19768
|
+
i0__namespace.ɵɵpipe(5, "rpxTranslate");
|
|
19764
19769
|
i0__namespace.ɵɵelementEnd();
|
|
19765
19770
|
}
|
|
19766
19771
|
if (rf & 2) {
|
|
19767
|
-
var message_r6 = ctx.$implicit;
|
|
19768
|
-
i0__namespace.ɵɵadvance(3);
|
|
19769
|
-
i0__namespace.ɵɵtextInterpolate(message_r6.subject);
|
|
19770
19772
|
i0__namespace.ɵɵadvance(2);
|
|
19771
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
19773
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
|
|
19772
19774
|
i0__namespace.ɵɵadvance(2);
|
|
19773
|
-
i0__namespace.ɵɵ
|
|
19774
|
-
i0__namespace.ɵɵadvance(3);
|
|
19775
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
|
|
19776
|
-
i0__namespace.ɵɵadvance(3);
|
|
19777
|
-
i0__namespace.ɵɵtextInterpolate(message_r6.lastResponseBy);
|
|
19775
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, "Enter a response message"), " ");
|
|
19778
19776
|
}
|
|
19779
19777
|
}
|
|
19780
|
-
function
|
|
19778
|
+
function WriteQueryManagementFieldComponent_p_41_Template(rf, ctx) {
|
|
19781
19779
|
if (rf & 1) {
|
|
19782
|
-
i0__namespace.ɵɵ
|
|
19783
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
19784
|
-
i0__namespace.ɵɵ
|
|
19785
|
-
i0__namespace.ɵɵ
|
|
19786
|
-
i0__namespace.ɵɵtext(4);
|
|
19787
|
-
i0__namespace.ɵɵelementEnd();
|
|
19788
|
-
i0__namespace.ɵɵelementEnd();
|
|
19789
|
-
i0__namespace.ɵɵelementStart(5, "thead", 3);
|
|
19790
|
-
i0__namespace.ɵɵelementStart(6, "tr", 4);
|
|
19791
|
-
i0__namespace.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
|
|
19792
|
-
i0__namespace.ɵɵelementEnd();
|
|
19793
|
-
i0__namespace.ɵɵelementEnd();
|
|
19794
|
-
i0__namespace.ɵɵelementStart(8, "tbody", 6);
|
|
19795
|
-
i0__namespace.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
|
|
19780
|
+
i0__namespace.ɵɵelementStart(0, "p", 26);
|
|
19781
|
+
i0__namespace.ɵɵelementStart(1, "span", 25);
|
|
19782
|
+
i0__namespace.ɵɵtext(2);
|
|
19783
|
+
i0__namespace.ɵɵpipe(3, "rpxTranslate");
|
|
19796
19784
|
i0__namespace.ɵɵelementEnd();
|
|
19785
|
+
i0__namespace.ɵɵtext(4);
|
|
19786
|
+
i0__namespace.ɵɵpipe(5, "rpxTranslate");
|
|
19797
19787
|
i0__namespace.ɵɵelementEnd();
|
|
19798
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
19799
19788
|
}
|
|
19800
19789
|
if (rf & 2) {
|
|
19801
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19802
|
-
i0__namespace.ɵɵadvance(4);
|
|
19803
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
|
|
19804
|
-
i0__namespace.ɵɵadvance(3);
|
|
19805
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
|
|
19806
19790
|
i0__namespace.ɵɵadvance(2);
|
|
19807
|
-
i0__namespace.ɵɵ
|
|
19808
|
-
}
|
|
19809
|
-
}
|
|
19810
|
-
var QueryListComponent = /** @class */ (function () {
|
|
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
|
-
];
|
|
19819
|
-
}
|
|
19820
|
-
QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
|
|
19821
|
-
var _a;
|
|
19822
|
-
var currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
|
|
19823
|
-
if (currentPartyMessageGroup) {
|
|
19824
|
-
this.queryListData = new QueryListData(currentPartyMessageGroup);
|
|
19825
|
-
}
|
|
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
|
-
default: {
|
|
19850
|
-
this.sort(col);
|
|
19851
|
-
break;
|
|
19852
|
-
}
|
|
19853
|
-
}
|
|
19854
|
-
};
|
|
19855
|
-
QueryListComponent.prototype.sortWidget = function (col) {
|
|
19856
|
-
switch (col.sortOrder) {
|
|
19857
|
-
case SortOrder.DESCENDING: {
|
|
19858
|
-
return '▼';
|
|
19859
|
-
}
|
|
19860
|
-
case SortOrder.ASCENDING: {
|
|
19861
|
-
return '▲';
|
|
19862
|
-
}
|
|
19863
|
-
default: {
|
|
19864
|
-
return '⬧';
|
|
19865
|
-
}
|
|
19866
|
-
}
|
|
19867
|
-
};
|
|
19868
|
-
QueryListComponent.prototype.sort = function (col) {
|
|
19869
|
-
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
19870
|
-
this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] < b[col.name]) ? 1 : -1; });
|
|
19871
|
-
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
19872
|
-
col.sortOrder = SortOrder.DESCENDING;
|
|
19873
|
-
}
|
|
19874
|
-
else {
|
|
19875
|
-
this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] > b[col.name]) ? 1 : -1; });
|
|
19876
|
-
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
19877
|
-
col.sortOrder = SortOrder.ASCENDING;
|
|
19878
|
-
}
|
|
19879
|
-
};
|
|
19880
|
-
QueryListComponent.prototype.sortDate = function (col) {
|
|
19881
|
-
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
19882
|
-
this.queryListData.partyMessages.sort(function (a, b) { return b[col.name] - a[col.name]; });
|
|
19883
|
-
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
19884
|
-
col.sortOrder = SortOrder.DESCENDING;
|
|
19885
|
-
}
|
|
19886
|
-
else {
|
|
19887
|
-
this.queryListData.partyMessages.sort(function (a, b) { return a[col.name] - b[col.name]; });
|
|
19888
|
-
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
19889
|
-
col.sortOrder = SortOrder.ASCENDING;
|
|
19890
|
-
}
|
|
19891
|
-
};
|
|
19892
|
-
return QueryListComponent;
|
|
19893
|
-
}());
|
|
19894
|
-
QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
|
|
19895
|
-
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) {
|
|
19896
|
-
if (rf & 1) {
|
|
19897
|
-
i0__namespace.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
|
|
19898
|
-
}
|
|
19899
|
-
if (rf & 2) {
|
|
19900
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.queryListData);
|
|
19901
|
-
}
|
|
19902
|
-
}, 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}"] });
|
|
19903
|
-
(function () {
|
|
19904
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
|
|
19905
|
-
type: i0.Component,
|
|
19906
|
-
args: [{
|
|
19907
|
-
selector: 'ccd-query-list',
|
|
19908
|
-
templateUrl: './query-list.component.html',
|
|
19909
|
-
styleUrls: ['./query-list.component.scss']
|
|
19910
|
-
}]
|
|
19911
|
-
}], null, { partyMessageGroup: [{
|
|
19912
|
-
type: i0.Input
|
|
19913
|
-
}] });
|
|
19914
|
-
})();
|
|
19915
|
-
|
|
19916
|
-
var QueryManagementUtils = /** @class */ (function () {
|
|
19917
|
-
function QueryManagementUtils() {
|
|
19918
|
-
}
|
|
19919
|
-
QueryManagementUtils.extractCaseQueriesFromCaseField = function () {
|
|
19920
|
-
};
|
|
19921
|
-
return QueryManagementUtils;
|
|
19922
|
-
}());
|
|
19923
|
-
QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
|
|
19924
|
-
QueryManagementUtils.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
|
|
19925
|
-
(function () {
|
|
19926
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementUtils, [{
|
|
19927
|
-
type: i0.Injectable
|
|
19928
|
-
}], null, null);
|
|
19929
|
-
})();
|
|
19930
|
-
|
|
19931
|
-
function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) {
|
|
19932
|
-
if (rf & 1) {
|
|
19933
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
19934
|
-
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
19935
|
-
i0__namespace.ɵɵelement(2, "ccd-query-list", 2);
|
|
19936
|
-
i0__namespace.ɵɵelementEnd();
|
|
19937
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
19938
|
-
}
|
|
19939
|
-
if (rf & 2) {
|
|
19940
|
-
var singlePartyMessageGroup_r1 = ctx.$implicit;
|
|
19791
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
|
|
19941
19792
|
i0__namespace.ɵɵadvance(2);
|
|
19942
|
-
i0__namespace.ɵɵ
|
|
19793
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, "File error message"), " ");
|
|
19943
19794
|
}
|
|
19944
19795
|
}
|
|
19945
|
-
var ReadQueryManagementFieldComponent = /** @class */ (function (_super) {
|
|
19946
|
-
__extends(ReadQueryManagementFieldComponent, _super);
|
|
19947
|
-
function ReadQueryManagementFieldComponent(route) {
|
|
19948
|
-
var _this = _super.call(this) || this;
|
|
19949
|
-
_this.route = route;
|
|
19950
|
-
return _this;
|
|
19951
|
-
}
|
|
19952
|
-
ReadQueryManagementFieldComponent.prototype.ngOnInit = function () {
|
|
19953
|
-
if (this.context === exports.PaletteContext.DEFAULT) {
|
|
19954
|
-
// EUI-8303 Using mock data until CCD is ready with the API and data contract
|
|
19955
|
-
this.partyMessagesGroups = partyMessagesMockData;
|
|
19956
|
-
// TODO: Actual implementation once the CCD API and data contract is available
|
|
19957
|
-
// Each parties will have a separate collection of party messages
|
|
19958
|
-
// Find whether queries tab is available in the case data
|
|
19959
|
-
var queriesTab = this.route.snapshot.data.case.tabs
|
|
19960
|
-
.filter(function (tab) { return tab.fields && tab.fields
|
|
19961
|
-
.some(function (caseField) { return caseField.id === 'QueryManagement'; }); });
|
|
19962
|
-
// Loop through the list of parties and their case queries collections
|
|
19963
|
-
QueryManagementUtils.extractCaseQueriesFromCaseField();
|
|
19964
|
-
}
|
|
19965
|
-
};
|
|
19966
|
-
return ReadQueryManagementFieldComponent;
|
|
19967
|
-
}(AbstractFieldReadComponent));
|
|
19968
|
-
ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
|
|
19969
|
-
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) {
|
|
19970
|
-
if (rf & 1) {
|
|
19971
|
-
i0__namespace.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 3, 1, "ng-container", 0);
|
|
19972
|
-
}
|
|
19973
|
-
if (rf & 2) {
|
|
19974
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
|
|
19975
|
-
}
|
|
19976
|
-
}, encapsulation: 2 });
|
|
19977
|
-
(function () {
|
|
19978
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
19979
|
-
type: i0.Component,
|
|
19980
|
-
args: [{
|
|
19981
|
-
selector: 'ccd-read-query-management-field',
|
|
19982
|
-
templateUrl: './read-query-management-field.component.html',
|
|
19983
|
-
}]
|
|
19984
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
|
|
19985
|
-
})();
|
|
19986
|
-
|
|
19987
19796
|
var WriteQueryManagementFieldComponent = /** @class */ (function (_super) {
|
|
19988
19797
|
__extends(WriteQueryManagementFieldComponent, _super);
|
|
19989
19798
|
function WriteQueryManagementFieldComponent() {
|
|
19990
|
-
|
|
19799
|
+
var _this = _super.call(this) || this;
|
|
19800
|
+
_this.responseFormGroup = new i3.FormGroup({
|
|
19801
|
+
response: new i3.FormControl('', i3.Validators.required),
|
|
19802
|
+
documents: new i3.FormControl([], i3.Validators.required)
|
|
19803
|
+
});
|
|
19804
|
+
_this.queryItem = new QueryListItem();
|
|
19805
|
+
Object.assign(_this.queryItem, partyMessagesMockData[0].partyMessages[0]);
|
|
19806
|
+
return _this;
|
|
19991
19807
|
}
|
|
19992
|
-
WriteQueryManagementFieldComponent.prototype.ngOnInit = function () {
|
|
19993
|
-
};
|
|
19994
19808
|
return WriteQueryManagementFieldComponent;
|
|
19995
19809
|
}(AbstractFieldWriteComponent));
|
|
19996
19810
|
WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
|
|
19997
|
-
WriteQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls:
|
|
19811
|
+
WriteQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 58, vars: 48, consts: [[1, "govuk-!-margin-top-6", "govuk-!-margin-bottom-6"], [1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l", "govuk-!-margin-bottom-6"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [1, "govuk-!-margin-bottom-4"], [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"], [1, "govuk-button-group"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "disabled"], ["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) {
|
|
19812
|
+
if (rf & 1) {
|
|
19813
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
19814
|
+
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
19815
|
+
i0__namespace.ɵɵelementStart(2, "a", 2);
|
|
19816
|
+
i0__namespace.ɵɵtext(3);
|
|
19817
|
+
i0__namespace.ɵɵpipe(4, "rpxTranslate");
|
|
19818
|
+
i0__namespace.ɵɵelementEnd();
|
|
19819
|
+
i0__namespace.ɵɵelementEnd();
|
|
19820
|
+
i0__namespace.ɵɵelementStart(5, "div", 3);
|
|
19821
|
+
i0__namespace.ɵɵelementStart(6, "div", 4);
|
|
19822
|
+
i0__namespace.ɵɵtext(7);
|
|
19823
|
+
i0__namespace.ɵɵpipe(8, "rpxTranslate");
|
|
19824
|
+
i0__namespace.ɵɵelementEnd();
|
|
19825
|
+
i0__namespace.ɵɵelementStart(9, "h1", 5);
|
|
19826
|
+
i0__namespace.ɵɵtext(10);
|
|
19827
|
+
i0__namespace.ɵɵpipe(11, "rpxTranslate");
|
|
19828
|
+
i0__namespace.ɵɵelementEnd();
|
|
19829
|
+
i0__namespace.ɵɵelementStart(12, "div", 6);
|
|
19830
|
+
i0__namespace.ɵɵelementStart(13, "div", 7);
|
|
19831
|
+
i0__namespace.ɵɵtext(14);
|
|
19832
|
+
i0__namespace.ɵɵpipe(15, "ccdCaseReference");
|
|
19833
|
+
i0__namespace.ɵɵelementEnd();
|
|
19834
|
+
i0__namespace.ɵɵelementEnd();
|
|
19835
|
+
i0__namespace.ɵɵelementStart(16, "div");
|
|
19836
|
+
i0__namespace.ɵɵelement(17, "ccd-query-details-table", 8);
|
|
19837
|
+
i0__namespace.ɵɵelementEnd();
|
|
19838
|
+
i0__namespace.ɵɵelementEnd();
|
|
19839
|
+
i0__namespace.ɵɵelementStart(18, "div", 6);
|
|
19840
|
+
i0__namespace.ɵɵelementStart(19, "h1", 9);
|
|
19841
|
+
i0__namespace.ɵɵtext(20);
|
|
19842
|
+
i0__namespace.ɵɵpipe(21, "rpxTranslate");
|
|
19843
|
+
i0__namespace.ɵɵelementEnd();
|
|
19844
|
+
i0__namespace.ɵɵelementStart(22, "div", 10);
|
|
19845
|
+
i0__namespace.ɵɵelementStart(23, "div", 11);
|
|
19846
|
+
i0__namespace.ɵɵelementStart(24, "div", 12);
|
|
19847
|
+
i0__namespace.ɵɵelementStart(25, "label", 13);
|
|
19848
|
+
i0__namespace.ɵɵtext(26);
|
|
19849
|
+
i0__namespace.ɵɵpipe(27, "rpxTranslate");
|
|
19850
|
+
i0__namespace.ɵɵelementEnd();
|
|
19851
|
+
i0__namespace.ɵɵelementEnd();
|
|
19852
|
+
i0__namespace.ɵɵtemplate(28, WriteQueryManagementFieldComponent_p_28_Template, 6, 6, "p", 14);
|
|
19853
|
+
i0__namespace.ɵɵelementStart(29, "textarea", 15);
|
|
19854
|
+
i0__namespace.ɵɵtext(30, " ");
|
|
19855
|
+
i0__namespace.ɵɵelementEnd();
|
|
19856
|
+
i0__namespace.ɵɵelementEnd();
|
|
19857
|
+
i0__namespace.ɵɵelementStart(31, "div");
|
|
19858
|
+
i0__namespace.ɵɵelementStart(32, "div", 16);
|
|
19859
|
+
i0__namespace.ɵɵelementStart(33, "div", 12);
|
|
19860
|
+
i0__namespace.ɵɵelementStart(34, "label", 17);
|
|
19861
|
+
i0__namespace.ɵɵelementStart(35, "div", 18);
|
|
19862
|
+
i0__namespace.ɵɵtext(36);
|
|
19863
|
+
i0__namespace.ɵɵpipe(37, "rpxTranslate");
|
|
19864
|
+
i0__namespace.ɵɵelementEnd();
|
|
19865
|
+
i0__namespace.ɵɵelementStart(38, "div");
|
|
19866
|
+
i0__namespace.ɵɵtext(39);
|
|
19867
|
+
i0__namespace.ɵɵpipe(40, "rpxTranslate");
|
|
19868
|
+
i0__namespace.ɵɵelementEnd();
|
|
19869
|
+
i0__namespace.ɵɵelementEnd();
|
|
19870
|
+
i0__namespace.ɵɵelementEnd();
|
|
19871
|
+
i0__namespace.ɵɵtemplate(41, WriteQueryManagementFieldComponent_p_41_Template, 6, 6, "p", 19);
|
|
19872
|
+
i0__namespace.ɵɵelement(42, "input", 20);
|
|
19873
|
+
i0__namespace.ɵɵelementEnd();
|
|
19874
|
+
i0__namespace.ɵɵelementEnd();
|
|
19875
|
+
i0__namespace.ɵɵelementStart(43, "button", 21);
|
|
19876
|
+
i0__namespace.ɵɵtext(44);
|
|
19877
|
+
i0__namespace.ɵɵpipe(45, "rpxTranslate");
|
|
19878
|
+
i0__namespace.ɵɵelementEnd();
|
|
19879
|
+
i0__namespace.ɵɵelementEnd();
|
|
19880
|
+
i0__namespace.ɵɵelementEnd();
|
|
19881
|
+
i0__namespace.ɵɵelementStart(46, "div");
|
|
19882
|
+
i0__namespace.ɵɵelementStart(47, "div", 22);
|
|
19883
|
+
i0__namespace.ɵɵelementStart(48, "button", 23);
|
|
19884
|
+
i0__namespace.ɵɵtext(49);
|
|
19885
|
+
i0__namespace.ɵɵpipe(50, "rpxTranslate");
|
|
19886
|
+
i0__namespace.ɵɵelementEnd();
|
|
19887
|
+
i0__namespace.ɵɵelementStart(51, "button", 21);
|
|
19888
|
+
i0__namespace.ɵɵtext(52);
|
|
19889
|
+
i0__namespace.ɵɵpipe(53, "rpxTranslate");
|
|
19890
|
+
i0__namespace.ɵɵelementEnd();
|
|
19891
|
+
i0__namespace.ɵɵelementEnd();
|
|
19892
|
+
i0__namespace.ɵɵelementEnd();
|
|
19893
|
+
i0__namespace.ɵɵelementStart(54, "div", 1);
|
|
19894
|
+
i0__namespace.ɵɵelementStart(55, "a", 2);
|
|
19895
|
+
i0__namespace.ɵɵtext(56);
|
|
19896
|
+
i0__namespace.ɵɵpipe(57, "rpxTranslate");
|
|
19897
|
+
i0__namespace.ɵɵelementEnd();
|
|
19898
|
+
i0__namespace.ɵɵelementEnd();
|
|
19899
|
+
i0__namespace.ɵɵelementEnd();
|
|
19900
|
+
}
|
|
19901
|
+
if (rf & 2) {
|
|
19902
|
+
var tmp_7_0 = null;
|
|
19903
|
+
var tmp_9_0 = null;
|
|
19904
|
+
var tmp_10_0 = null;
|
|
19905
|
+
var tmp_12_0 = null;
|
|
19906
|
+
var tmp_15_0 = null;
|
|
19907
|
+
i0__namespace.ɵɵadvance(3);
|
|
19908
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 24, "Back to tasks"));
|
|
19909
|
+
i0__namespace.ɵɵadvance(4);
|
|
19910
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 26, "Respond to query"));
|
|
19911
|
+
i0__namespace.ɵɵadvance(3);
|
|
19912
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 28, "Query details"));
|
|
19913
|
+
i0__namespace.ɵɵadvance(4);
|
|
19914
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(15, 30, ctx.caseReference));
|
|
19915
|
+
i0__namespace.ɵɵadvance(3);
|
|
19916
|
+
i0__namespace.ɵɵproperty("queryItem", ctx.queryItem);
|
|
19917
|
+
i0__namespace.ɵɵadvance(3);
|
|
19918
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(21, 32, "Respond to a query"));
|
|
19919
|
+
i0__namespace.ɵɵadvance(2);
|
|
19920
|
+
i0__namespace.ɵɵproperty("formGroup", ctx.responseFormGroup);
|
|
19921
|
+
i0__namespace.ɵɵadvance(1);
|
|
19922
|
+
i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_7_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_7_0.errors == null ? null : tmp_7_0.errors.length);
|
|
19923
|
+
i0__namespace.ɵɵadvance(3);
|
|
19924
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(27, 34, "Response message"), " ");
|
|
19925
|
+
i0__namespace.ɵɵadvance(2);
|
|
19926
|
+
i0__namespace.ɵɵproperty("ngIf", (tmp_9_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_9_0.errors == null ? null : tmp_9_0.errors.length);
|
|
19927
|
+
i0__namespace.ɵɵadvance(1);
|
|
19928
|
+
i0__namespace.ɵɵclassProp("govuk-textarea--error", (tmp_10_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_10_0.errors == null ? null : tmp_10_0.errors.length);
|
|
19929
|
+
i0__namespace.ɵɵproperty("formControlName", "response");
|
|
19930
|
+
i0__namespace.ɵɵadvance(3);
|
|
19931
|
+
i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_12_0 = ctx.responseFormGroup.get("documents")) == null ? null : tmp_12_0.errors == null ? null : tmp_12_0.errors.length);
|
|
19932
|
+
i0__namespace.ɵɵadvance(4);
|
|
19933
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(37, 36, "Add document(optional)"));
|
|
19934
|
+
i0__namespace.ɵɵadvance(3);
|
|
19935
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(40, 38, "Attach a document to this message"));
|
|
19936
|
+
i0__namespace.ɵɵadvance(2);
|
|
19937
|
+
i0__namespace.ɵɵproperty("ngIf", (tmp_15_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_15_0.errors == null ? null : tmp_15_0.errors.length);
|
|
19938
|
+
i0__namespace.ɵɵadvance(3);
|
|
19939
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(45, 40, "Next"), " ");
|
|
19940
|
+
i0__namespace.ɵɵadvance(4);
|
|
19941
|
+
i0__namespace.ɵɵproperty("disabled", true);
|
|
19942
|
+
i0__namespace.ɵɵadvance(1);
|
|
19943
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(50, 42, "Previous"), " ");
|
|
19944
|
+
i0__namespace.ɵɵadvance(3);
|
|
19945
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(53, 44, "Continue"), " ");
|
|
19946
|
+
i0__namespace.ɵɵadvance(4);
|
|
19947
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(57, 46, "Cancel and return to query list"));
|
|
19948
|
+
}
|
|
19949
|
+
}, styles: [".response-textarea[_ngcontent-%COMP%]{max-width:576px}"] });
|
|
19998
19950
|
(function () {
|
|
19999
19951
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteQueryManagementFieldComponent, [{
|
|
20000
19952
|
type: i0.Component,
|
|
20001
19953
|
args: [{
|
|
20002
19954
|
selector: 'ccd-write-query-management-field',
|
|
20003
19955
|
templateUrl: './write-query-management-field.component.html',
|
|
19956
|
+
styleUrls: ['./write-query-management-field.component.scss']
|
|
20004
19957
|
}]
|
|
20005
19958
|
}], function () { return []; }, null);
|
|
20006
19959
|
})();
|
|
@@ -20525,6 +20478,7 @@
|
|
|
20525
20478
|
_b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
|
|
20526
20479
|
_b[DisplayContextCustomParameter.LinkedCases] = [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
|
|
20527
20480
|
_b[DisplayContextCustomParameter.QueryManagement] = [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
|
|
20481
|
+
_b[DisplayContextCustomParameter.QueryManagementWriteTest] = [WriteQueryManagementFieldComponent, WriteQueryManagementFieldComponent],
|
|
20528
20482
|
_b);
|
|
20529
20483
|
}
|
|
20530
20484
|
PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
|
|
@@ -23639,6 +23593,13 @@
|
|
|
23639
23593
|
}] });
|
|
23640
23594
|
})();
|
|
23641
23595
|
|
|
23596
|
+
var SortOrder;
|
|
23597
|
+
(function (SortOrder) {
|
|
23598
|
+
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
23599
|
+
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
23600
|
+
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
23601
|
+
})(SortOrder || (SortOrder = {}));
|
|
23602
|
+
|
|
23642
23603
|
function ReadComplexFieldCollectionTableComponent_th_9_Template(rf, ctx) {
|
|
23643
23604
|
if (rf & 1) {
|
|
23644
23605
|
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -26045,6 +26006,445 @@
|
|
|
26045
26006
|
}], function () { return [{ type: FileUploadStateService }, { type: WindowService }]; }, null);
|
|
26046
26007
|
})();
|
|
26047
26008
|
|
|
26009
|
+
var QueryCreateComponent = /** @class */ (function () {
|
|
26010
|
+
function QueryCreateComponent() {
|
|
26011
|
+
}
|
|
26012
|
+
QueryCreateComponent.prototype.ngOnInit = function () {
|
|
26013
|
+
};
|
|
26014
|
+
return QueryCreateComponent;
|
|
26015
|
+
}());
|
|
26016
|
+
QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
|
|
26017
|
+
QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
26018
|
+
(function () {
|
|
26019
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
|
|
26020
|
+
type: i0.Component,
|
|
26021
|
+
args: [{
|
|
26022
|
+
selector: 'ccd-query-create',
|
|
26023
|
+
templateUrl: './query-create.component.html',
|
|
26024
|
+
}]
|
|
26025
|
+
}], function () { return []; }, null);
|
|
26026
|
+
})();
|
|
26027
|
+
|
|
26028
|
+
function QueryDetailsTableComponent_ng_container_0_div_47_Template(rf, ctx) {
|
|
26029
|
+
if (rf & 1) {
|
|
26030
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
26031
|
+
i0__namespace.ɵɵelementStart(1, "a", 7);
|
|
26032
|
+
i0__namespace.ɵɵtext(2);
|
|
26033
|
+
i0__namespace.ɵɵelementEnd();
|
|
26034
|
+
i0__namespace.ɵɵelementEnd();
|
|
26035
|
+
}
|
|
26036
|
+
if (rf & 2) {
|
|
26037
|
+
var attachment_r2 = ctx.$implicit;
|
|
26038
|
+
i0__namespace.ɵɵadvance(1);
|
|
26039
|
+
i0__namespace.ɵɵproperty("href", attachment_r2._links.self.href, i0__namespace.ɵɵsanitizeUrl);
|
|
26040
|
+
i0__namespace.ɵɵadvance(1);
|
|
26041
|
+
i0__namespace.ɵɵtextInterpolate(attachment_r2.originalDocumentName);
|
|
26042
|
+
}
|
|
26043
|
+
}
|
|
26044
|
+
function QueryDetailsTableComponent_ng_container_0_Template(rf, ctx) {
|
|
26045
|
+
if (rf & 1) {
|
|
26046
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
26047
|
+
i0__namespace.ɵɵelementStart(1, "table", 1);
|
|
26048
|
+
i0__namespace.ɵɵpipe(2, "rpxTranslate");
|
|
26049
|
+
i0__namespace.ɵɵelementStart(3, "tbody", 2);
|
|
26050
|
+
i0__namespace.ɵɵelementStart(4, "tr", 3);
|
|
26051
|
+
i0__namespace.ɵɵelementStart(5, "th", 4);
|
|
26052
|
+
i0__namespace.ɵɵtext(6);
|
|
26053
|
+
i0__namespace.ɵɵpipe(7, "rpxTranslate");
|
|
26054
|
+
i0__namespace.ɵɵelementEnd();
|
|
26055
|
+
i0__namespace.ɵɵelementStart(8, "td", 5);
|
|
26056
|
+
i0__namespace.ɵɵtext(9);
|
|
26057
|
+
i0__namespace.ɵɵelementEnd();
|
|
26058
|
+
i0__namespace.ɵɵelementEnd();
|
|
26059
|
+
i0__namespace.ɵɵelementStart(10, "tr", 3);
|
|
26060
|
+
i0__namespace.ɵɵelementStart(11, "th", 4);
|
|
26061
|
+
i0__namespace.ɵɵtext(12);
|
|
26062
|
+
i0__namespace.ɵɵpipe(13, "rpxTranslate");
|
|
26063
|
+
i0__namespace.ɵɵelementEnd();
|
|
26064
|
+
i0__namespace.ɵɵelementStart(14, "td", 5);
|
|
26065
|
+
i0__namespace.ɵɵtext(15);
|
|
26066
|
+
i0__namespace.ɵɵpipe(16, "date");
|
|
26067
|
+
i0__namespace.ɵɵelementEnd();
|
|
26068
|
+
i0__namespace.ɵɵelementEnd();
|
|
26069
|
+
i0__namespace.ɵɵelementStart(17, "tr", 3);
|
|
26070
|
+
i0__namespace.ɵɵelementStart(18, "th", 4);
|
|
26071
|
+
i0__namespace.ɵɵtext(19);
|
|
26072
|
+
i0__namespace.ɵɵpipe(20, "rpxTranslate");
|
|
26073
|
+
i0__namespace.ɵɵelementEnd();
|
|
26074
|
+
i0__namespace.ɵɵelementStart(21, "td", 5);
|
|
26075
|
+
i0__namespace.ɵɵtext(22);
|
|
26076
|
+
i0__namespace.ɵɵelementEnd();
|
|
26077
|
+
i0__namespace.ɵɵelementEnd();
|
|
26078
|
+
i0__namespace.ɵɵelementStart(23, "tr", 3);
|
|
26079
|
+
i0__namespace.ɵɵelementStart(24, "th", 4);
|
|
26080
|
+
i0__namespace.ɵɵtext(25);
|
|
26081
|
+
i0__namespace.ɵɵpipe(26, "rpxTranslate");
|
|
26082
|
+
i0__namespace.ɵɵelementEnd();
|
|
26083
|
+
i0__namespace.ɵɵelementStart(27, "td", 5);
|
|
26084
|
+
i0__namespace.ɵɵtext(28);
|
|
26085
|
+
i0__namespace.ɵɵelementEnd();
|
|
26086
|
+
i0__namespace.ɵɵelementEnd();
|
|
26087
|
+
i0__namespace.ɵɵelementStart(29, "tr", 3);
|
|
26088
|
+
i0__namespace.ɵɵelementStart(30, "th", 4);
|
|
26089
|
+
i0__namespace.ɵɵtext(31);
|
|
26090
|
+
i0__namespace.ɵɵpipe(32, "rpxTranslate");
|
|
26091
|
+
i0__namespace.ɵɵelementEnd();
|
|
26092
|
+
i0__namespace.ɵɵelementStart(33, "td", 5);
|
|
26093
|
+
i0__namespace.ɵɵtext(34);
|
|
26094
|
+
i0__namespace.ɵɵelementEnd();
|
|
26095
|
+
i0__namespace.ɵɵelementEnd();
|
|
26096
|
+
i0__namespace.ɵɵelementStart(35, "tr", 3);
|
|
26097
|
+
i0__namespace.ɵɵelementStart(36, "th", 4);
|
|
26098
|
+
i0__namespace.ɵɵtext(37);
|
|
26099
|
+
i0__namespace.ɵɵpipe(38, "rpxTranslate");
|
|
26100
|
+
i0__namespace.ɵɵelementEnd();
|
|
26101
|
+
i0__namespace.ɵɵelementStart(39, "td", 5);
|
|
26102
|
+
i0__namespace.ɵɵtext(40);
|
|
26103
|
+
i0__namespace.ɵɵpipe(41, "date");
|
|
26104
|
+
i0__namespace.ɵɵelementEnd();
|
|
26105
|
+
i0__namespace.ɵɵelementEnd();
|
|
26106
|
+
i0__namespace.ɵɵelementStart(42, "tr", 3);
|
|
26107
|
+
i0__namespace.ɵɵelementStart(43, "th", 4);
|
|
26108
|
+
i0__namespace.ɵɵtext(44);
|
|
26109
|
+
i0__namespace.ɵɵpipe(45, "rpxTranslate");
|
|
26110
|
+
i0__namespace.ɵɵelementEnd();
|
|
26111
|
+
i0__namespace.ɵɵelementStart(46, "td", 5);
|
|
26112
|
+
i0__namespace.ɵɵtemplate(47, QueryDetailsTableComponent_ng_container_0_div_47_Template, 3, 2, "div", 6);
|
|
26113
|
+
i0__namespace.ɵɵelementEnd();
|
|
26114
|
+
i0__namespace.ɵɵelementEnd();
|
|
26115
|
+
i0__namespace.ɵɵelementEnd();
|
|
26116
|
+
i0__namespace.ɵɵelementEnd();
|
|
26117
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
26118
|
+
}
|
|
26119
|
+
if (rf & 2) {
|
|
26120
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
26121
|
+
i0__namespace.ɵɵadvance(1);
|
|
26122
|
+
i0__namespace.ɵɵattribute("aria-describedby", i0__namespace.ɵɵpipeBind1(2, 15, "Details of the query"));
|
|
26123
|
+
i0__namespace.ɵɵadvance(5);
|
|
26124
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 17, "Last submitted by"));
|
|
26125
|
+
i0__namespace.ɵɵadvance(3);
|
|
26126
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.lastSubmittedBy);
|
|
26127
|
+
i0__namespace.ɵɵadvance(3);
|
|
26128
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(13, 19, "Submission date"));
|
|
26129
|
+
i0__namespace.ɵɵadvance(3);
|
|
26130
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(16, 21, ctx_r0.queryItem.createdOn, "d MMM yyyy"));
|
|
26131
|
+
i0__namespace.ɵɵadvance(4);
|
|
26132
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(20, 24, "Query subject"));
|
|
26133
|
+
i0__namespace.ɵɵadvance(3);
|
|
26134
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.subject);
|
|
26135
|
+
i0__namespace.ɵɵadvance(3);
|
|
26136
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(26, 26, "Query body"));
|
|
26137
|
+
i0__namespace.ɵɵadvance(3);
|
|
26138
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.body);
|
|
26139
|
+
i0__namespace.ɵɵadvance(3);
|
|
26140
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(32, 28, "Is the query hearing related ?"));
|
|
26141
|
+
i0__namespace.ɵɵadvance(3);
|
|
26142
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.isHearingRelated ? "Yes" : "No");
|
|
26143
|
+
i0__namespace.ɵɵadvance(3);
|
|
26144
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(38, 30, "What is the date of the hearing your query related to ?"));
|
|
26145
|
+
i0__namespace.ɵɵadvance(3);
|
|
26146
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(41, 32, ctx_r0.queryItem.hearingDate, "d MMM yyyy"));
|
|
26147
|
+
i0__namespace.ɵɵadvance(4);
|
|
26148
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(45, 35, "Attachments"));
|
|
26149
|
+
i0__namespace.ɵɵadvance(3);
|
|
26150
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryItem.attachments);
|
|
26151
|
+
}
|
|
26152
|
+
}
|
|
26153
|
+
var QueryDetailsTableComponent = /** @class */ (function () {
|
|
26154
|
+
function QueryDetailsTableComponent() {
|
|
26155
|
+
}
|
|
26156
|
+
return QueryDetailsTableComponent;
|
|
26157
|
+
}());
|
|
26158
|
+
QueryDetailsTableComponent.ɵfac = function QueryDetailsTableComponent_Factory(t) { return new (t || QueryDetailsTableComponent)(); };
|
|
26159
|
+
QueryDetailsTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsTableComponent, selectors: [["ccd-query-details-table"]], inputs: { queryItem: "queryItem" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], [4, "ngFor", "ngForOf"], ["target", "_blank", 3, "href"]], template: function QueryDetailsTableComponent_Template(rf, ctx) {
|
|
26160
|
+
if (rf & 1) {
|
|
26161
|
+
i0__namespace.ɵɵtemplate(0, QueryDetailsTableComponent_ng_container_0_Template, 48, 37, "ng-container", 0);
|
|
26162
|
+
}
|
|
26163
|
+
if (rf & 2) {
|
|
26164
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.queryItem);
|
|
26165
|
+
}
|
|
26166
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i2__namespace$1.RpxTranslatePipe, i1__namespace.DatePipe], styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
|
|
26167
|
+
(function () {
|
|
26168
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailsTableComponent, [{
|
|
26169
|
+
type: i0.Component,
|
|
26170
|
+
args: [{
|
|
26171
|
+
selector: 'ccd-query-details-table',
|
|
26172
|
+
templateUrl: './query-details-table.component.html',
|
|
26173
|
+
styleUrls: ['./query-details-table.component.scss']
|
|
26174
|
+
}]
|
|
26175
|
+
}], null, { queryItem: [{
|
|
26176
|
+
type: i0.Input
|
|
26177
|
+
}] });
|
|
26178
|
+
})();
|
|
26179
|
+
|
|
26180
|
+
var QueryDetailsComponent = /** @class */ (function () {
|
|
26181
|
+
function QueryDetailsComponent() {
|
|
26182
|
+
}
|
|
26183
|
+
return QueryDetailsComponent;
|
|
26184
|
+
}());
|
|
26185
|
+
QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
|
|
26186
|
+
QueryDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], decls: 2, vars: 0, template: function QueryDetailsComponent_Template(rf, ctx) {
|
|
26187
|
+
if (rf & 1) {
|
|
26188
|
+
i0__namespace.ɵɵelementStart(0, "p");
|
|
26189
|
+
i0__namespace.ɵɵtext(1, "query-details works!");
|
|
26190
|
+
i0__namespace.ɵɵelementEnd();
|
|
26191
|
+
}
|
|
26192
|
+
}, encapsulation: 2 });
|
|
26193
|
+
(function () {
|
|
26194
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
26195
|
+
type: i0.Component,
|
|
26196
|
+
args: [{
|
|
26197
|
+
selector: 'ccd-query-details',
|
|
26198
|
+
templateUrl: './query-details.component.html'
|
|
26199
|
+
}]
|
|
26200
|
+
}], null, null);
|
|
26201
|
+
})();
|
|
26202
|
+
|
|
26203
|
+
function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) {
|
|
26204
|
+
if (rf & 1) {
|
|
26205
|
+
var _r5_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26206
|
+
i0__namespace.ɵɵelementStart(0, "th", 8);
|
|
26207
|
+
i0__namespace.ɵɵtext(1);
|
|
26208
|
+
i0__namespace.ɵɵpipe(2, "rpxTranslate");
|
|
26209
|
+
i0__namespace.ɵɵelementStart(3, "a", 9);
|
|
26210
|
+
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); });
|
|
26211
|
+
i0__namespace.ɵɵelementEnd();
|
|
26212
|
+
i0__namespace.ɵɵelementEnd();
|
|
26213
|
+
}
|
|
26214
|
+
if (rf & 2) {
|
|
26215
|
+
var col_r3 = ctx.$implicit;
|
|
26216
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
26217
|
+
i0__namespace.ɵɵadvance(1);
|
|
26218
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
|
|
26219
|
+
i0__namespace.ɵɵadvance(2);
|
|
26220
|
+
i0__namespace.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0__namespace.ɵɵsanitizeHtml);
|
|
26221
|
+
}
|
|
26222
|
+
}
|
|
26223
|
+
function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) {
|
|
26224
|
+
if (rf & 1) {
|
|
26225
|
+
i0__namespace.ɵɵelementStart(0, "tr", 4);
|
|
26226
|
+
i0__namespace.ɵɵelementStart(1, "td", 10);
|
|
26227
|
+
i0__namespace.ɵɵelementStart(2, "a", 11);
|
|
26228
|
+
i0__namespace.ɵɵtext(3);
|
|
26229
|
+
i0__namespace.ɵɵelementEnd();
|
|
26230
|
+
i0__namespace.ɵɵelementEnd();
|
|
26231
|
+
i0__namespace.ɵɵelementStart(4, "td", 12);
|
|
26232
|
+
i0__namespace.ɵɵtext(5);
|
|
26233
|
+
i0__namespace.ɵɵelementEnd();
|
|
26234
|
+
i0__namespace.ɵɵelementStart(6, "td", 12);
|
|
26235
|
+
i0__namespace.ɵɵtext(7);
|
|
26236
|
+
i0__namespace.ɵɵpipe(8, "date");
|
|
26237
|
+
i0__namespace.ɵɵelementEnd();
|
|
26238
|
+
i0__namespace.ɵɵelementStart(9, "td", 12);
|
|
26239
|
+
i0__namespace.ɵɵtext(10);
|
|
26240
|
+
i0__namespace.ɵɵpipe(11, "date");
|
|
26241
|
+
i0__namespace.ɵɵelementEnd();
|
|
26242
|
+
i0__namespace.ɵɵelementStart(12, "td", 12);
|
|
26243
|
+
i0__namespace.ɵɵtext(13);
|
|
26244
|
+
i0__namespace.ɵɵelementEnd();
|
|
26245
|
+
i0__namespace.ɵɵelementEnd();
|
|
26246
|
+
}
|
|
26247
|
+
if (rf & 2) {
|
|
26248
|
+
var message_r6 = ctx.$implicit;
|
|
26249
|
+
i0__namespace.ɵɵadvance(3);
|
|
26250
|
+
i0__namespace.ɵɵtextInterpolate(message_r6.subject);
|
|
26251
|
+
i0__namespace.ɵɵadvance(2);
|
|
26252
|
+
i0__namespace.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
|
|
26253
|
+
i0__namespace.ɵɵadvance(2);
|
|
26254
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
|
|
26255
|
+
i0__namespace.ɵɵadvance(3);
|
|
26256
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
|
|
26257
|
+
i0__namespace.ɵɵadvance(3);
|
|
26258
|
+
i0__namespace.ɵɵtextInterpolate(message_r6.lastResponseBy);
|
|
26259
|
+
}
|
|
26260
|
+
}
|
|
26261
|
+
function QueryListComponent_ng_container_0_Template(rf, ctx) {
|
|
26262
|
+
if (rf & 1) {
|
|
26263
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
26264
|
+
i0__namespace.ɵɵelementStart(1, "table", 1);
|
|
26265
|
+
i0__namespace.ɵɵelementStart(2, "caption", 2);
|
|
26266
|
+
i0__namespace.ɵɵelementStart(3, "div");
|
|
26267
|
+
i0__namespace.ɵɵtext(4);
|
|
26268
|
+
i0__namespace.ɵɵelementEnd();
|
|
26269
|
+
i0__namespace.ɵɵelementEnd();
|
|
26270
|
+
i0__namespace.ɵɵelementStart(5, "thead", 3);
|
|
26271
|
+
i0__namespace.ɵɵelementStart(6, "tr", 4);
|
|
26272
|
+
i0__namespace.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
|
|
26273
|
+
i0__namespace.ɵɵelementEnd();
|
|
26274
|
+
i0__namespace.ɵɵelementEnd();
|
|
26275
|
+
i0__namespace.ɵɵelementStart(8, "tbody", 6);
|
|
26276
|
+
i0__namespace.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
|
|
26277
|
+
i0__namespace.ɵɵelementEnd();
|
|
26278
|
+
i0__namespace.ɵɵelementEnd();
|
|
26279
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
26280
|
+
}
|
|
26281
|
+
if (rf & 2) {
|
|
26282
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
26283
|
+
i0__namespace.ɵɵadvance(4);
|
|
26284
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
|
|
26285
|
+
i0__namespace.ɵɵadvance(3);
|
|
26286
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
|
|
26287
|
+
i0__namespace.ɵɵadvance(2);
|
|
26288
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
|
|
26289
|
+
}
|
|
26290
|
+
}
|
|
26291
|
+
var QueryListComponent = /** @class */ (function () {
|
|
26292
|
+
function QueryListComponent() {
|
|
26293
|
+
this.displayedColumns = [
|
|
26294
|
+
{ name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
|
|
26295
|
+
{ name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
|
|
26296
|
+
{ name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
|
|
26297
|
+
{ name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
|
|
26298
|
+
{ name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
|
|
26299
|
+
];
|
|
26300
|
+
}
|
|
26301
|
+
QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
|
|
26302
|
+
var _a;
|
|
26303
|
+
var currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
|
|
26304
|
+
if (currentPartyMessageGroup) {
|
|
26305
|
+
this.queryListData = new QueryListData(currentPartyMessageGroup);
|
|
26306
|
+
}
|
|
26307
|
+
};
|
|
26308
|
+
QueryListComponent.prototype.sortTable = function (col) {
|
|
26309
|
+
switch (col.displayName) {
|
|
26310
|
+
case 'Queries': {
|
|
26311
|
+
this.sort(col);
|
|
26312
|
+
break;
|
|
26313
|
+
}
|
|
26314
|
+
case 'Last submitted by': {
|
|
26315
|
+
this.sort(col);
|
|
26316
|
+
break;
|
|
26317
|
+
}
|
|
26318
|
+
case 'Last submission date': {
|
|
26319
|
+
this.sortDate(col);
|
|
26320
|
+
break;
|
|
26321
|
+
}
|
|
26322
|
+
case 'Last response date': {
|
|
26323
|
+
this.sortDate(col);
|
|
26324
|
+
break;
|
|
26325
|
+
}
|
|
26326
|
+
case 'Response by': {
|
|
26327
|
+
this.sort(col);
|
|
26328
|
+
break;
|
|
26329
|
+
}
|
|
26330
|
+
default: {
|
|
26331
|
+
this.sort(col);
|
|
26332
|
+
break;
|
|
26333
|
+
}
|
|
26334
|
+
}
|
|
26335
|
+
};
|
|
26336
|
+
QueryListComponent.prototype.sortWidget = function (col) {
|
|
26337
|
+
switch (col.sortOrder) {
|
|
26338
|
+
case SortOrder.DESCENDING: {
|
|
26339
|
+
return '▼';
|
|
26340
|
+
}
|
|
26341
|
+
case SortOrder.ASCENDING: {
|
|
26342
|
+
return '▲';
|
|
26343
|
+
}
|
|
26344
|
+
default: {
|
|
26345
|
+
return '⬧';
|
|
26346
|
+
}
|
|
26347
|
+
}
|
|
26348
|
+
};
|
|
26349
|
+
QueryListComponent.prototype.sort = function (col) {
|
|
26350
|
+
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
26351
|
+
this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] < b[col.name]) ? 1 : -1; });
|
|
26352
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
26353
|
+
col.sortOrder = SortOrder.DESCENDING;
|
|
26354
|
+
}
|
|
26355
|
+
else {
|
|
26356
|
+
this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] > b[col.name]) ? 1 : -1; });
|
|
26357
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
26358
|
+
col.sortOrder = SortOrder.ASCENDING;
|
|
26359
|
+
}
|
|
26360
|
+
};
|
|
26361
|
+
QueryListComponent.prototype.sortDate = function (col) {
|
|
26362
|
+
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
26363
|
+
this.queryListData.partyMessages.sort(function (a, b) { return b[col.name] - a[col.name]; });
|
|
26364
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
26365
|
+
col.sortOrder = SortOrder.DESCENDING;
|
|
26366
|
+
}
|
|
26367
|
+
else {
|
|
26368
|
+
this.queryListData.partyMessages.sort(function (a, b) { return a[col.name] - b[col.name]; });
|
|
26369
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
26370
|
+
col.sortOrder = SortOrder.ASCENDING;
|
|
26371
|
+
}
|
|
26372
|
+
};
|
|
26373
|
+
return QueryListComponent;
|
|
26374
|
+
}());
|
|
26375
|
+
QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
|
|
26376
|
+
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) {
|
|
26377
|
+
if (rf & 1) {
|
|
26378
|
+
i0__namespace.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
|
|
26379
|
+
}
|
|
26380
|
+
if (rf & 2) {
|
|
26381
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.queryListData);
|
|
26382
|
+
}
|
|
26383
|
+
}, 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}"] });
|
|
26384
|
+
(function () {
|
|
26385
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
|
|
26386
|
+
type: i0.Component,
|
|
26387
|
+
args: [{
|
|
26388
|
+
selector: 'ccd-query-list',
|
|
26389
|
+
templateUrl: './query-list.component.html',
|
|
26390
|
+
styleUrls: ['./query-list.component.scss']
|
|
26391
|
+
}]
|
|
26392
|
+
}], null, { partyMessageGroup: [{
|
|
26393
|
+
type: i0.Input
|
|
26394
|
+
}] });
|
|
26395
|
+
})();
|
|
26396
|
+
|
|
26397
|
+
var QueryManagementModule = /** @class */ (function () {
|
|
26398
|
+
function QueryManagementModule() {
|
|
26399
|
+
}
|
|
26400
|
+
return QueryManagementModule;
|
|
26401
|
+
}());
|
|
26402
|
+
QueryManagementModule.ɵfac = function QueryManagementModule_Factory(t) { return new (t || QueryManagementModule)(); };
|
|
26403
|
+
QueryManagementModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: QueryManagementModule });
|
|
26404
|
+
QueryManagementModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
26405
|
+
i1.CommonModule,
|
|
26406
|
+
i3.ReactiveFormsModule,
|
|
26407
|
+
i2$1.RpxTranslationModule.forChild(),
|
|
26408
|
+
PipesModule
|
|
26409
|
+
]] });
|
|
26410
|
+
(function () {
|
|
26411
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(QueryManagementModule, { declarations: [ReadQueryManagementFieldComponent,
|
|
26412
|
+
WriteQueryManagementFieldComponent,
|
|
26413
|
+
QueryDetailsComponent,
|
|
26414
|
+
QueryCreateComponent,
|
|
26415
|
+
QueryListComponent,
|
|
26416
|
+
QueryDetailsTableComponent], imports: [i1.CommonModule,
|
|
26417
|
+
i3.ReactiveFormsModule, i2__namespace$1.RpxTranslationModule, PipesModule], exports: [ReadQueryManagementFieldComponent,
|
|
26418
|
+
WriteQueryManagementFieldComponent] });
|
|
26419
|
+
})();
|
|
26420
|
+
(function () {
|
|
26421
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementModule, [{
|
|
26422
|
+
type: i0.NgModule,
|
|
26423
|
+
args: [{
|
|
26424
|
+
declarations: [
|
|
26425
|
+
ReadQueryManagementFieldComponent,
|
|
26426
|
+
WriteQueryManagementFieldComponent,
|
|
26427
|
+
QueryDetailsComponent,
|
|
26428
|
+
QueryCreateComponent,
|
|
26429
|
+
QueryListComponent,
|
|
26430
|
+
QueryDetailsTableComponent,
|
|
26431
|
+
],
|
|
26432
|
+
imports: [
|
|
26433
|
+
i1.CommonModule,
|
|
26434
|
+
i3.ReactiveFormsModule,
|
|
26435
|
+
i2$1.RpxTranslationModule.forChild(),
|
|
26436
|
+
PipesModule
|
|
26437
|
+
],
|
|
26438
|
+
exports: [
|
|
26439
|
+
ReadQueryManagementFieldComponent,
|
|
26440
|
+
WriteQueryManagementFieldComponent
|
|
26441
|
+
],
|
|
26442
|
+
}]
|
|
26443
|
+
}], null, null);
|
|
26444
|
+
})();
|
|
26445
|
+
i0__namespace.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1__namespace.NgForOf, QueryListComponent], []);
|
|
26446
|
+
i0__namespace.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [QueryDetailsTableComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i1__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i2__namespace$1.RpxTranslatePipe, CaseReferencePipe]);
|
|
26447
|
+
|
|
26048
26448
|
var PALETTE_COMPONENTS = [
|
|
26049
26449
|
UnsupportedFieldComponent,
|
|
26050
26450
|
DatetimePickerComponent,
|
|
@@ -26090,7 +26490,6 @@
|
|
|
26090
26490
|
ReadComplexFieldCollectionTableComponent,
|
|
26091
26491
|
ReadCaseFlagFieldComponent,
|
|
26092
26492
|
ReadLinkedCasesFieldComponent,
|
|
26093
|
-
ReadQueryManagementFieldComponent,
|
|
26094
26493
|
// Write
|
|
26095
26494
|
WriteJudicialUserFieldComponent,
|
|
26096
26495
|
WriteAddressFieldComponent,
|
|
@@ -26110,7 +26509,6 @@
|
|
|
26110
26509
|
WriteDateFieldComponent,
|
|
26111
26510
|
WriteCaseFlagFieldComponent,
|
|
26112
26511
|
WriteLinkedCasesFieldComponent,
|
|
26113
|
-
WriteQueryManagementFieldComponent,
|
|
26114
26512
|
// new
|
|
26115
26513
|
WriteYesNoFieldComponent,
|
|
26116
26514
|
WriteOrganisationFieldComponent,
|
|
@@ -26154,10 +26552,6 @@
|
|
|
26154
26552
|
CheckYourAnswersComponent,
|
|
26155
26553
|
UnLinkCasesComponent,
|
|
26156
26554
|
NoLinkedCasesComponent,
|
|
26157
|
-
// Components for query management
|
|
26158
|
-
QueryCreateComponent,
|
|
26159
|
-
QueryDetailComponent,
|
|
26160
|
-
QueryListComponent
|
|
26161
26555
|
];
|
|
26162
26556
|
var PaletteModule = /** @class */ (function () {
|
|
26163
26557
|
function PaletteModule() {
|
|
@@ -26210,7 +26604,8 @@
|
|
|
26210
26604
|
i1$3.MatDialogModule,
|
|
26211
26605
|
i12.MediaViewerModule,
|
|
26212
26606
|
LoadingModule,
|
|
26213
|
-
i2$1.RpxTranslationModule.forChild()
|
|
26607
|
+
i2$1.RpxTranslationModule.forChild(),
|
|
26608
|
+
QueryManagementModule
|
|
26214
26609
|
], i4.NgxMatDatetimePickerModule,
|
|
26215
26610
|
i4.NgxMatNativeDateModule,
|
|
26216
26611
|
i4.NgxMatTimepickerModule,
|
|
@@ -26266,7 +26661,6 @@
|
|
|
26266
26661
|
ReadComplexFieldCollectionTableComponent,
|
|
26267
26662
|
ReadCaseFlagFieldComponent,
|
|
26268
26663
|
ReadLinkedCasesFieldComponent,
|
|
26269
|
-
ReadQueryManagementFieldComponent,
|
|
26270
26664
|
// Write
|
|
26271
26665
|
WriteJudicialUserFieldComponent,
|
|
26272
26666
|
WriteAddressFieldComponent,
|
|
@@ -26286,7 +26680,6 @@
|
|
|
26286
26680
|
WriteDateFieldComponent,
|
|
26287
26681
|
WriteCaseFlagFieldComponent,
|
|
26288
26682
|
WriteLinkedCasesFieldComponent,
|
|
26289
|
-
WriteQueryManagementFieldComponent,
|
|
26290
26683
|
// new
|
|
26291
26684
|
WriteYesNoFieldComponent,
|
|
26292
26685
|
WriteOrganisationFieldComponent,
|
|
@@ -26329,11 +26722,7 @@
|
|
|
26329
26722
|
LinkCasesComponent,
|
|
26330
26723
|
CheckYourAnswersComponent,
|
|
26331
26724
|
UnLinkCasesComponent,
|
|
26332
|
-
NoLinkedCasesComponent,
|
|
26333
|
-
// Components for query management
|
|
26334
|
-
QueryCreateComponent,
|
|
26335
|
-
QueryDetailComponent,
|
|
26336
|
-
QueryListComponent], imports: [i1.CommonModule,
|
|
26725
|
+
NoLinkedCasesComponent], imports: [i1.CommonModule,
|
|
26337
26726
|
i1$1.RouterModule,
|
|
26338
26727
|
i3.FormsModule,
|
|
26339
26728
|
i3.ReactiveFormsModule,
|
|
@@ -26359,7 +26748,7 @@
|
|
|
26359
26748
|
i1$4.OverlayModule,
|
|
26360
26749
|
i3$1.PaymentLibModule, i2__namespace.ScrollToModule, i1$3.MatDialogModule,
|
|
26361
26750
|
i12.MediaViewerModule,
|
|
26362
|
-
LoadingModule, i2__namespace$1.RpxTranslationModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
26751
|
+
LoadingModule, i2__namespace$1.RpxTranslationModule, QueryManagementModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
26363
26752
|
i4.NgxMatNativeDateModule,
|
|
26364
26753
|
i4.NgxMatTimepickerModule,
|
|
26365
26754
|
TabsModule,
|
|
@@ -26408,7 +26797,6 @@
|
|
|
26408
26797
|
ReadComplexFieldCollectionTableComponent,
|
|
26409
26798
|
ReadCaseFlagFieldComponent,
|
|
26410
26799
|
ReadLinkedCasesFieldComponent,
|
|
26411
|
-
ReadQueryManagementFieldComponent,
|
|
26412
26800
|
// Write
|
|
26413
26801
|
WriteJudicialUserFieldComponent,
|
|
26414
26802
|
WriteAddressFieldComponent,
|
|
@@ -26428,7 +26816,6 @@
|
|
|
26428
26816
|
WriteDateFieldComponent,
|
|
26429
26817
|
WriteCaseFlagFieldComponent,
|
|
26430
26818
|
WriteLinkedCasesFieldComponent,
|
|
26431
|
-
WriteQueryManagementFieldComponent,
|
|
26432
26819
|
// new
|
|
26433
26820
|
WriteYesNoFieldComponent,
|
|
26434
26821
|
WriteOrganisationFieldComponent,
|
|
@@ -26471,11 +26858,7 @@
|
|
|
26471
26858
|
LinkCasesComponent,
|
|
26472
26859
|
CheckYourAnswersComponent,
|
|
26473
26860
|
UnLinkCasesComponent,
|
|
26474
|
-
NoLinkedCasesComponent
|
|
26475
|
-
// Components for query management
|
|
26476
|
-
QueryCreateComponent,
|
|
26477
|
-
QueryDetailComponent,
|
|
26478
|
-
QueryListComponent] });
|
|
26861
|
+
NoLinkedCasesComponent] });
|
|
26479
26862
|
})();
|
|
26480
26863
|
(function () {
|
|
26481
26864
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
|
|
@@ -26511,7 +26894,8 @@
|
|
|
26511
26894
|
i1$3.MatDialogModule,
|
|
26512
26895
|
i12.MediaViewerModule,
|
|
26513
26896
|
LoadingModule,
|
|
26514
|
-
i2$1.RpxTranslationModule.forChild()
|
|
26897
|
+
i2$1.RpxTranslationModule.forChild(),
|
|
26898
|
+
QueryManagementModule
|
|
26515
26899
|
],
|
|
26516
26900
|
declarations: __spread([
|
|
26517
26901
|
FixedListPipe,
|
|
@@ -26570,7 +26954,6 @@
|
|
|
26570
26954
|
// Components for linked cases
|
|
26571
26955
|
LinkedCasesToTableComponent, i1__namespace.NgIf, LinkedCasesFromTableComponent
|
|
26572
26956
|
], []);
|
|
26573
|
-
i0__namespace.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1__namespace.NgForOf, QueryListComponent], []);
|
|
26574
26957
|
i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlDirective, i3__namespace.SelectControlValueAccessor, i1__namespace.NgForOf, i3__namespace.NgSelectOption, i3__namespace.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective], [FieldLabelPipe]);
|
|
26575
26958
|
i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
|
|
26576
26959
|
i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1__namespace.NgClass, i1__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
|
|
@@ -36525,11 +36908,6 @@
|
|
|
36525
36908
|
exports.Profile = Profile;
|
|
36526
36909
|
exports.ProfileNotifier = ProfileNotifier;
|
|
36527
36910
|
exports.ProfileService = ProfileService;
|
|
36528
|
-
exports.QueryCreateComponent = QueryCreateComponent;
|
|
36529
|
-
exports.QueryDetailComponent = QueryDetailComponent;
|
|
36530
|
-
exports.QueryListComponent = QueryListComponent;
|
|
36531
|
-
exports.QueryListData = QueryListData;
|
|
36532
|
-
exports.QueryListItem = QueryListItem;
|
|
36533
36911
|
exports.ReadCaseFlagFieldComponent = ReadCaseFlagFieldComponent;
|
|
36534
36912
|
exports.ReadCaseLinkFieldComponent = ReadCaseLinkFieldComponent;
|
|
36535
36913
|
exports.ReadCollectionFieldComponent = ReadCollectionFieldComponent;
|
|
@@ -36651,7 +37029,6 @@
|
|
|
36651
37029
|
exports.editorRouting = editorRouting;
|
|
36652
37030
|
exports.initDialog = initDialog;
|
|
36653
37031
|
exports.newCaseField = newCaseField;
|
|
36654
|
-
exports.partyMessagesMockData = partyMessagesMockData;
|
|
36655
37032
|
exports.textFieldType = textFieldType;
|
|
36656
37033
|
exports.viewerRouting = viewerRouting;
|
|
36657
37034
|
|