@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-sorting → 6.16.0-query-management-write-view-v4
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 +638 -330
- 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 +118 -0
- package/esm2015/lib/shared/components/palette/query-management/components/query-list/query-list.component.js +14 -10
- 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 +131 -5
- package/esm2015/lib/shared/domain/definition/display-context-enum.model.js +2 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +627 -346
- 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/components/search-result/search-result.component.d.ts +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/column/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/column/column.model.d.ts +0 -7
- package/lib/shared/components/palette/query-management/domain/column/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
|
@@ -5,7 +5,7 @@ import { CommonModule, DOCUMENT, CurrencyPipe, formatDate } from '@angular/commo
|
|
|
5
5
|
import * as i1$1 from '@angular/router';
|
|
6
6
|
import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
|
|
7
7
|
import * as i3 from '@angular/forms';
|
|
8
|
-
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators,
|
|
8
|
+
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
9
9
|
import polling from 'rx-polling';
|
|
10
10
|
import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, fromEvent, forkJoin } from 'rxjs';
|
|
11
11
|
import * as i1$2 from '@angular/common/http';
|
|
@@ -28,8 +28,6 @@ import * as i6 from '@angular/material/core';
|
|
|
28
28
|
import { MAT_DATE_LOCALE } from '@angular/material/core';
|
|
29
29
|
import * as i3$1 from '@hmcts/ccpay-web-component';
|
|
30
30
|
import { PaymentLibModule } from '@hmcts/ccpay-web-component';
|
|
31
|
-
import * as i2$1 from 'rpx-xui-translation';
|
|
32
|
-
import { RpxTranslationModule } from 'rpx-xui-translation';
|
|
33
31
|
import * as i1$4 from '@angular/cdk/overlay';
|
|
34
32
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
35
33
|
import * as i7 from '@angular/cdk/tree';
|
|
@@ -47,6 +45,8 @@ import * as i1$5 from 'ngx-md';
|
|
|
47
45
|
import { NgxMdModule } from 'ngx-md';
|
|
48
46
|
import * as i12 from '@hmcts/media-viewer';
|
|
49
47
|
import { MediaViewerModule } from '@hmcts/media-viewer';
|
|
48
|
+
import * as i2$1 from 'rpx-xui-translation';
|
|
49
|
+
import { RpxTranslationModule } from 'rpx-xui-translation';
|
|
50
50
|
import * as i6$2 from '@angular/cdk/portal';
|
|
51
51
|
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
52
52
|
import * as i1$6 from 'ngx-pagination';
|
|
@@ -4367,6 +4367,7 @@ FormValidatorsService.ɵprov = i0.ɵɵdefineInjectable({ token: FormValidatorsSe
|
|
|
4367
4367
|
class AbstractFormFieldComponent {
|
|
4368
4368
|
constructor() {
|
|
4369
4369
|
this.idPrefix = '';
|
|
4370
|
+
this.caseReference = '';
|
|
4370
4371
|
}
|
|
4371
4372
|
id() {
|
|
4372
4373
|
return this.idPrefix + this.caseField.id;
|
|
@@ -4425,7 +4426,7 @@ class AbstractFormFieldComponent {
|
|
|
4425
4426
|
}
|
|
4426
4427
|
}
|
|
4427
4428
|
AbstractFormFieldComponent.ɵfac = function AbstractFormFieldComponent_Factory(t) { return new (t || AbstractFormFieldComponent)(); };
|
|
4428
|
-
AbstractFormFieldComponent.ɵdir = i0.ɵɵdefineDirective({ type: AbstractFormFieldComponent, inputs: { caseField: "caseField", formGroup: "formGroup", parent: "parent", idPrefix: "idPrefix" } });
|
|
4429
|
+
AbstractFormFieldComponent.ɵdir = i0.ɵɵdefineDirective({ type: AbstractFormFieldComponent, inputs: { caseField: "caseField", formGroup: "formGroup", parent: "parent", idPrefix: "idPrefix", caseReference: "caseReference" } });
|
|
4429
4430
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractFormFieldComponent, [{
|
|
4430
4431
|
type: Directive
|
|
4431
4432
|
}], null, { caseField: [{
|
|
@@ -4436,6 +4437,8 @@ AbstractFormFieldComponent.ɵdir = i0.ɵɵdefineDirective({ type: AbstractFormFi
|
|
|
4436
4437
|
type: Input
|
|
4437
4438
|
}], idPrefix: [{
|
|
4438
4439
|
type: Input
|
|
4440
|
+
}], caseReference: [{
|
|
4441
|
+
type: Input
|
|
4439
4442
|
}] }); })();
|
|
4440
4443
|
|
|
4441
4444
|
class AbstractFieldWriteComponent extends AbstractFormFieldComponent {
|
|
@@ -10104,6 +10107,7 @@ var DisplayContextCustomParameter;
|
|
|
10104
10107
|
DisplayContextCustomParameter["CaseFileView"] = "CaseFileView";
|
|
10105
10108
|
DisplayContextCustomParameter["LinkedCases"] = "LinkedCases";
|
|
10106
10109
|
DisplayContextCustomParameter["QueryManagement"] = "QueryManagement";
|
|
10110
|
+
DisplayContextCustomParameter["QueryManagementWriteTest"] = "QueryManagementWriteTest";
|
|
10107
10111
|
})(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
|
|
10108
10112
|
|
|
10109
10113
|
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -16879,6 +16883,16 @@ const ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherit
|
|
|
16879
16883
|
}]
|
|
16880
16884
|
}], null, null); })();
|
|
16881
16885
|
|
|
16886
|
+
class QueryManagementUtils {
|
|
16887
|
+
static extractCaseQueriesFromCaseField() {
|
|
16888
|
+
}
|
|
16889
|
+
}
|
|
16890
|
+
QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
|
|
16891
|
+
QueryManagementUtils.ɵprov = i0.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
|
|
16892
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryManagementUtils, [{
|
|
16893
|
+
type: Injectable
|
|
16894
|
+
}], null, null); })();
|
|
16895
|
+
|
|
16882
16896
|
const partyMessagesMockData = [
|
|
16883
16897
|
{
|
|
16884
16898
|
partyName: 'John Smith - Appellant',
|
|
@@ -16889,7 +16903,15 @@ const partyMessagesMockData = [
|
|
|
16889
16903
|
subject: 'Review attached document',
|
|
16890
16904
|
name: 'Maggie Conroy',
|
|
16891
16905
|
body: 'Please review attached document and advise if hearing should proceed?',
|
|
16892
|
-
attachments: [
|
|
16906
|
+
attachments: [
|
|
16907
|
+
{
|
|
16908
|
+
_links: {
|
|
16909
|
+
self: { href: '/' },
|
|
16910
|
+
binary: { href: '/' },
|
|
16911
|
+
},
|
|
16912
|
+
originalDocumentName: 'documentName.pdf',
|
|
16913
|
+
}
|
|
16914
|
+
],
|
|
16893
16915
|
isHearingRelated: true,
|
|
16894
16916
|
hearingDate: '10 Jan 2023',
|
|
16895
16917
|
createdOn: new Date(2023, 0, 3),
|
|
@@ -16991,44 +17013,50 @@ const partyMessagesMockData = [
|
|
|
16991
17013
|
}
|
|
16992
17014
|
];
|
|
16993
17015
|
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
(
|
|
17003
|
-
|
|
17004
|
-
|
|
17005
|
-
|
|
17006
|
-
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
class QueryDetailComponent {
|
|
17011
|
-
constructor() {
|
|
17016
|
+
function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
17017
|
+
i0.ɵɵelementContainerStart(0);
|
|
17018
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
17019
|
+
i0.ɵɵelement(2, "ccd-query-list", 2);
|
|
17020
|
+
i0.ɵɵelementEnd();
|
|
17021
|
+
i0.ɵɵelementContainerEnd();
|
|
17022
|
+
} if (rf & 2) {
|
|
17023
|
+
const singlePartyMessageGroup_r1 = ctx.$implicit;
|
|
17024
|
+
i0.ɵɵadvance(2);
|
|
17025
|
+
i0.ɵɵproperty("partyMessageGroup", singlePartyMessageGroup_r1);
|
|
17026
|
+
} }
|
|
17027
|
+
class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
17028
|
+
constructor(route) {
|
|
17029
|
+
super();
|
|
17030
|
+
this.route = route;
|
|
17012
17031
|
}
|
|
17013
17032
|
ngOnInit() {
|
|
17033
|
+
if (this.context === PaletteContext.DEFAULT) {
|
|
17034
|
+
// EUI-8303 Using mock data until CCD is ready with the API and data contract
|
|
17035
|
+
this.partyMessagesGroups = partyMessagesMockData;
|
|
17036
|
+
// TODO: Actual implementation once the CCD API and data contract is available
|
|
17037
|
+
// Each parties will have a separate collection of party messages
|
|
17038
|
+
// Find whether queries tab is available in the case data
|
|
17039
|
+
const queriesTab = this.route.snapshot.data.case.tabs
|
|
17040
|
+
.filter(tab => tab.fields && tab.fields
|
|
17041
|
+
.some(caseField => caseField.id === 'QueryManagement'));
|
|
17042
|
+
// Loop through the list of parties and their case queries collections
|
|
17043
|
+
QueryManagementUtils.extractCaseQueriesFromCaseField();
|
|
17044
|
+
}
|
|
17014
17045
|
}
|
|
17015
17046
|
}
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
(
|
|
17047
|
+
ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
17048
|
+
ReadQueryManagementFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
|
|
17049
|
+
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 3, 1, "ng-container", 0);
|
|
17050
|
+
} if (rf & 2) {
|
|
17051
|
+
i0.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
|
|
17052
|
+
} }, encapsulation: 2 });
|
|
17053
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
17019
17054
|
type: Component,
|
|
17020
17055
|
args: [{
|
|
17021
|
-
selector: 'ccd-query-
|
|
17022
|
-
templateUrl: './query-
|
|
17056
|
+
selector: 'ccd-read-query-management-field',
|
|
17057
|
+
templateUrl: './read-query-management-field.component.html',
|
|
17023
17058
|
}]
|
|
17024
|
-
}], function () { return []; }, null); })();
|
|
17025
|
-
|
|
17026
|
-
var SortOrder;
|
|
17027
|
-
(function (SortOrder) {
|
|
17028
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
17029
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
17030
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
17031
|
-
})(SortOrder || (SortOrder = {}));
|
|
17059
|
+
}], function () { return [{ type: i1$1.ActivatedRoute }]; }, null); })();
|
|
17032
17060
|
|
|
17033
17061
|
class QueryListItem {
|
|
17034
17062
|
constructor() {
|
|
@@ -17088,301 +17116,194 @@ var QueryListResponseStatus;
|
|
|
17088
17116
|
QueryListResponseStatus["RESPONDED"] = "Responded";
|
|
17089
17117
|
})(QueryListResponseStatus || (QueryListResponseStatus = {}));
|
|
17090
17118
|
|
|
17091
|
-
function
|
|
17092
|
-
|
|
17093
|
-
i0.ɵɵelementStart(
|
|
17094
|
-
i0.ɵɵtext(
|
|
17095
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
17096
|
-
i0.ɵɵelementStart(3, "a", 9);
|
|
17097
|
-
i0.ɵɵlistener("click", function QueryListComponent_ng_container_0_th_7_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r5); const col_r3 = ctx.$implicit; const ctx_r4 = i0.ɵɵnextContext(2); return ctx_r4.sortTable(col_r3); });
|
|
17119
|
+
function WriteQueryManagementFieldComponent_p_23_Template(rf, ctx) { if (rf & 1) {
|
|
17120
|
+
i0.ɵɵelementStart(0, "p", 24);
|
|
17121
|
+
i0.ɵɵelementStart(1, "span", 25);
|
|
17122
|
+
i0.ɵɵtext(2, "Error:");
|
|
17098
17123
|
i0.ɵɵelementEnd();
|
|
17124
|
+
i0.ɵɵtext(3, " Enter a response message ");
|
|
17099
17125
|
i0.ɵɵelementEnd();
|
|
17100
|
-
} if (rf & 2) {
|
|
17101
|
-
const col_r3 = ctx.$implicit;
|
|
17102
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
17103
|
-
i0.ɵɵadvance(1);
|
|
17104
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
|
|
17105
|
-
i0.ɵɵadvance(2);
|
|
17106
|
-
i0.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0.ɵɵsanitizeHtml);
|
|
17107
17126
|
} }
|
|
17108
|
-
function
|
|
17109
|
-
i0.ɵɵelementStart(0, "
|
|
17110
|
-
i0.ɵɵelementStart(1, "
|
|
17111
|
-
i0.ɵɵ
|
|
17112
|
-
i0.ɵɵtext(3);
|
|
17113
|
-
i0.ɵɵelementEnd();
|
|
17114
|
-
i0.ɵɵelementEnd();
|
|
17115
|
-
i0.ɵɵelementStart(4, "td", 12);
|
|
17116
|
-
i0.ɵɵtext(5);
|
|
17117
|
-
i0.ɵɵelementEnd();
|
|
17118
|
-
i0.ɵɵelementStart(6, "td", 12);
|
|
17119
|
-
i0.ɵɵtext(7);
|
|
17120
|
-
i0.ɵɵpipe(8, "date");
|
|
17121
|
-
i0.ɵɵelementEnd();
|
|
17122
|
-
i0.ɵɵelementStart(9, "td", 12);
|
|
17123
|
-
i0.ɵɵtext(10);
|
|
17124
|
-
i0.ɵɵpipe(11, "date");
|
|
17127
|
+
function WriteQueryManagementFieldComponent_p_34_Template(rf, ctx) { if (rf & 1) {
|
|
17128
|
+
i0.ɵɵelementStart(0, "p", 26);
|
|
17129
|
+
i0.ɵɵelementStart(1, "span", 25);
|
|
17130
|
+
i0.ɵɵtext(2, "Error:");
|
|
17125
17131
|
i0.ɵɵelementEnd();
|
|
17126
|
-
i0.ɵɵ
|
|
17127
|
-
i0.ɵɵtext(13);
|
|
17132
|
+
i0.ɵɵtext(3, " File error message ");
|
|
17128
17133
|
i0.ɵɵelementEnd();
|
|
17134
|
+
} }
|
|
17135
|
+
class WriteQueryManagementFieldComponent extends AbstractFieldWriteComponent {
|
|
17136
|
+
constructor() {
|
|
17137
|
+
super();
|
|
17138
|
+
this.responseFormGroup = new FormGroup({
|
|
17139
|
+
response: new FormControl('', Validators.required),
|
|
17140
|
+
documents: new FormControl([], Validators.required)
|
|
17141
|
+
});
|
|
17142
|
+
this.queryItem = new QueryListItem();
|
|
17143
|
+
Object.assign(this.queryItem, partyMessagesMockData[0].partyMessages[0]);
|
|
17144
|
+
}
|
|
17145
|
+
}
|
|
17146
|
+
WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
|
|
17147
|
+
WriteQueryManagementFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 47, vars: 15, 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", "respond-to-query", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "respond-to-query-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "respond-to-query", "name", "respond-to-query", "rows", "5", "aria-describedby", "respond-to-query-hint respond-to-query-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", "respond-to-query-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-documents-error", 1, "govuk-error-message"]], template: function WriteQueryManagementFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17148
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
17149
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
17150
|
+
i0.ɵɵelementStart(2, "a", 2);
|
|
17151
|
+
i0.ɵɵtext(3, "Back to tasks");
|
|
17152
|
+
i0.ɵɵelementEnd();
|
|
17153
|
+
i0.ɵɵelementEnd();
|
|
17154
|
+
i0.ɵɵelementStart(4, "div", 3);
|
|
17155
|
+
i0.ɵɵelementStart(5, "div", 4);
|
|
17156
|
+
i0.ɵɵtext(6, "Respond to query");
|
|
17157
|
+
i0.ɵɵelementEnd();
|
|
17158
|
+
i0.ɵɵelementStart(7, "h1", 5);
|
|
17159
|
+
i0.ɵɵtext(8, "Query details");
|
|
17160
|
+
i0.ɵɵelementEnd();
|
|
17161
|
+
i0.ɵɵelementStart(9, "div", 6);
|
|
17162
|
+
i0.ɵɵelementStart(10, "div", 7);
|
|
17163
|
+
i0.ɵɵtext(11);
|
|
17164
|
+
i0.ɵɵpipe(12, "ccdCaseReference");
|
|
17165
|
+
i0.ɵɵelementEnd();
|
|
17166
|
+
i0.ɵɵelementEnd();
|
|
17167
|
+
i0.ɵɵelementStart(13, "div");
|
|
17168
|
+
i0.ɵɵelement(14, "ccd-query-details-table", 8);
|
|
17169
|
+
i0.ɵɵelementEnd();
|
|
17170
|
+
i0.ɵɵelementEnd();
|
|
17171
|
+
i0.ɵɵelementStart(15, "div", 6);
|
|
17172
|
+
i0.ɵɵelementStart(16, "h1", 9);
|
|
17173
|
+
i0.ɵɵtext(17, "Respond to a query");
|
|
17174
|
+
i0.ɵɵelementEnd();
|
|
17175
|
+
i0.ɵɵelementStart(18, "div", 10);
|
|
17176
|
+
i0.ɵɵelementStart(19, "div", 11);
|
|
17177
|
+
i0.ɵɵelementStart(20, "div", 12);
|
|
17178
|
+
i0.ɵɵelementStart(21, "label", 13);
|
|
17179
|
+
i0.ɵɵtext(22, " Response message ");
|
|
17180
|
+
i0.ɵɵelementEnd();
|
|
17181
|
+
i0.ɵɵelementEnd();
|
|
17182
|
+
i0.ɵɵtemplate(23, WriteQueryManagementFieldComponent_p_23_Template, 4, 0, "p", 14);
|
|
17183
|
+
i0.ɵɵelementStart(24, "textarea", 15);
|
|
17184
|
+
i0.ɵɵtext(25, " ");
|
|
17185
|
+
i0.ɵɵelementEnd();
|
|
17186
|
+
i0.ɵɵelementEnd();
|
|
17187
|
+
i0.ɵɵelementStart(26, "div");
|
|
17188
|
+
i0.ɵɵelementStart(27, "div", 16);
|
|
17189
|
+
i0.ɵɵelementStart(28, "div", 12);
|
|
17190
|
+
i0.ɵɵelementStart(29, "label", 17);
|
|
17191
|
+
i0.ɵɵelementStart(30, "div", 18);
|
|
17192
|
+
i0.ɵɵtext(31, "Add document (optional)");
|
|
17193
|
+
i0.ɵɵelementEnd();
|
|
17194
|
+
i0.ɵɵelementStart(32, "div");
|
|
17195
|
+
i0.ɵɵtext(33, "Attach a document to this message");
|
|
17196
|
+
i0.ɵɵelementEnd();
|
|
17197
|
+
i0.ɵɵelementEnd();
|
|
17198
|
+
i0.ɵɵelementEnd();
|
|
17199
|
+
i0.ɵɵtemplate(34, WriteQueryManagementFieldComponent_p_34_Template, 4, 0, "p", 19);
|
|
17200
|
+
i0.ɵɵelement(35, "input", 20);
|
|
17201
|
+
i0.ɵɵelementEnd();
|
|
17202
|
+
i0.ɵɵelementEnd();
|
|
17203
|
+
i0.ɵɵelementStart(36, "button", 21);
|
|
17204
|
+
i0.ɵɵtext(37, " Next ");
|
|
17205
|
+
i0.ɵɵelementEnd();
|
|
17206
|
+
i0.ɵɵelementEnd();
|
|
17207
|
+
i0.ɵɵelementEnd();
|
|
17208
|
+
i0.ɵɵelementStart(38, "div");
|
|
17209
|
+
i0.ɵɵelementStart(39, "div", 22);
|
|
17210
|
+
i0.ɵɵelementStart(40, "button", 23);
|
|
17211
|
+
i0.ɵɵtext(41, " Previous ");
|
|
17212
|
+
i0.ɵɵelementEnd();
|
|
17213
|
+
i0.ɵɵelementStart(42, "button", 21);
|
|
17214
|
+
i0.ɵɵtext(43, " Continue ");
|
|
17215
|
+
i0.ɵɵelementEnd();
|
|
17216
|
+
i0.ɵɵelementEnd();
|
|
17217
|
+
i0.ɵɵelementEnd();
|
|
17218
|
+
i0.ɵɵelementStart(44, "div", 1);
|
|
17219
|
+
i0.ɵɵelementStart(45, "a", 2);
|
|
17220
|
+
i0.ɵɵtext(46, "Cancel and return to query list");
|
|
17221
|
+
i0.ɵɵelementEnd();
|
|
17222
|
+
i0.ɵɵelementEnd();
|
|
17223
|
+
i0.ɵɵelementEnd();
|
|
17224
|
+
} if (rf & 2) {
|
|
17225
|
+
let tmp_3_0 = null;
|
|
17226
|
+
let tmp_4_0 = null;
|
|
17227
|
+
let tmp_5_0 = null;
|
|
17228
|
+
let tmp_7_0 = null;
|
|
17229
|
+
let tmp_8_0 = null;
|
|
17230
|
+
i0.ɵɵadvance(11);
|
|
17231
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 13, ctx.caseReference));
|
|
17232
|
+
i0.ɵɵadvance(3);
|
|
17233
|
+
i0.ɵɵproperty("queryItem", ctx.queryItem);
|
|
17234
|
+
i0.ɵɵadvance(4);
|
|
17235
|
+
i0.ɵɵproperty("formGroup", ctx.responseFormGroup);
|
|
17236
|
+
i0.ɵɵadvance(1);
|
|
17237
|
+
i0.ɵɵclassProp("govuk-form-group--error", (tmp_3_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_3_0.errors == null ? null : tmp_3_0.errors.length);
|
|
17238
|
+
i0.ɵɵadvance(4);
|
|
17239
|
+
i0.ɵɵproperty("ngIf", (tmp_4_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_4_0.errors == null ? null : tmp_4_0.errors.length);
|
|
17240
|
+
i0.ɵɵadvance(1);
|
|
17241
|
+
i0.ɵɵclassProp("govuk-textarea--error", (tmp_5_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_5_0.errors == null ? null : tmp_5_0.errors.length);
|
|
17242
|
+
i0.ɵɵproperty("formControlName", "response");
|
|
17243
|
+
i0.ɵɵadvance(3);
|
|
17244
|
+
i0.ɵɵclassProp("govuk-form-group--error", (tmp_7_0 = ctx.responseFormGroup.get("documents")) == null ? null : tmp_7_0.errors == null ? null : tmp_7_0.errors.length);
|
|
17245
|
+
i0.ɵɵadvance(7);
|
|
17246
|
+
i0.ɵɵproperty("ngIf", (tmp_8_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors.length);
|
|
17247
|
+
i0.ɵɵadvance(6);
|
|
17248
|
+
i0.ɵɵproperty("disabled", true);
|
|
17249
|
+
} }, styles: [".response-textarea[_ngcontent-%COMP%]{max-width:576px}"] });
|
|
17250
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteQueryManagementFieldComponent, [{
|
|
17251
|
+
type: Component,
|
|
17252
|
+
args: [{
|
|
17253
|
+
selector: 'ccd-write-query-management-field',
|
|
17254
|
+
templateUrl: './write-query-management-field.component.html',
|
|
17255
|
+
styleUrls: ['./write-query-management-field.component.scss']
|
|
17256
|
+
}]
|
|
17257
|
+
}], function () { return []; }, null); })();
|
|
17258
|
+
|
|
17259
|
+
class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
|
|
17260
|
+
}
|
|
17261
|
+
ReadTextAreaFieldComponent.ɵfac = function ReadTextAreaFieldComponent_Factory(t) { return ɵReadTextAreaFieldComponent_BaseFactory(t || ReadTextAreaFieldComponent); };
|
|
17262
|
+
ReadTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadTextAreaFieldComponent, selectors: [["ccd-read-text-area-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[2, "white-space", "pre-wrap"]], template: function ReadTextAreaFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17263
|
+
i0.ɵɵelementStart(0, "span", 0);
|
|
17264
|
+
i0.ɵɵtext(1);
|
|
17265
|
+
i0.ɵɵelementEnd();
|
|
17266
|
+
} if (rf & 2) {
|
|
17267
|
+
i0.ɵɵadvance(1);
|
|
17268
|
+
i0.ɵɵtextInterpolate(ctx.caseField.value);
|
|
17269
|
+
} }, encapsulation: 2 });
|
|
17270
|
+
const ɵReadTextAreaFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent);
|
|
17271
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextAreaFieldComponent, [{
|
|
17272
|
+
type: Component,
|
|
17273
|
+
args: [{
|
|
17274
|
+
selector: 'ccd-read-text-area-field',
|
|
17275
|
+
template: `<span style="white-space: pre-wrap">{{caseField.value}}</span>`
|
|
17276
|
+
}]
|
|
17277
|
+
}], null, null); })();
|
|
17278
|
+
|
|
17279
|
+
function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
17280
|
+
i0.ɵɵelementStart(0, "span", 6);
|
|
17281
|
+
i0.ɵɵtext(1);
|
|
17282
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
17129
17283
|
i0.ɵɵelementEnd();
|
|
17130
17284
|
} if (rf & 2) {
|
|
17131
|
-
const
|
|
17132
|
-
i0.ɵɵadvance(
|
|
17133
|
-
i0.ɵɵtextInterpolate(
|
|
17134
|
-
i0.ɵɵadvance(2);
|
|
17135
|
-
i0.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
|
|
17136
|
-
i0.ɵɵadvance(2);
|
|
17137
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
|
|
17138
|
-
i0.ɵɵadvance(3);
|
|
17139
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
|
|
17140
|
-
i0.ɵɵadvance(3);
|
|
17141
|
-
i0.ɵɵtextInterpolate(message_r6.lastResponseBy);
|
|
17285
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
17286
|
+
i0.ɵɵadvance(1);
|
|
17287
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
17142
17288
|
} }
|
|
17143
|
-
function
|
|
17144
|
-
i0.ɵɵ
|
|
17145
|
-
i0.ɵɵ
|
|
17146
|
-
i0.ɵɵelementStart(2, "caption", 2);
|
|
17147
|
-
i0.ɵɵelementStart(3, "div");
|
|
17148
|
-
i0.ɵɵtext(4);
|
|
17149
|
-
i0.ɵɵelementEnd();
|
|
17150
|
-
i0.ɵɵelementEnd();
|
|
17151
|
-
i0.ɵɵelementStart(5, "thead", 3);
|
|
17152
|
-
i0.ɵɵelementStart(6, "tr", 4);
|
|
17153
|
-
i0.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
|
|
17154
|
-
i0.ɵɵelementEnd();
|
|
17155
|
-
i0.ɵɵelementEnd();
|
|
17156
|
-
i0.ɵɵelementStart(8, "tbody", 6);
|
|
17157
|
-
i0.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
|
|
17289
|
+
function WriteTextAreaFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
17290
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
17291
|
+
i0.ɵɵtext(1);
|
|
17158
17292
|
i0.ɵɵelementEnd();
|
|
17293
|
+
} if (rf & 2) {
|
|
17294
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
17295
|
+
i0.ɵɵadvance(1);
|
|
17296
|
+
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
17297
|
+
} }
|
|
17298
|
+
function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
17299
|
+
i0.ɵɵelementStart(0, "span", 8);
|
|
17300
|
+
i0.ɵɵtext(1);
|
|
17301
|
+
i0.ɵɵpipe(2, "ccdFirstError");
|
|
17159
17302
|
i0.ɵɵelementEnd();
|
|
17160
|
-
i0.ɵɵelementContainerEnd();
|
|
17161
17303
|
} if (rf & 2) {
|
|
17162
|
-
const
|
|
17163
|
-
i0.ɵɵadvance(
|
|
17164
|
-
i0.ɵɵtextInterpolate(
|
|
17165
|
-
i0.ɵɵadvance(3);
|
|
17166
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
|
|
17167
|
-
i0.ɵɵadvance(2);
|
|
17168
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
|
|
17169
|
-
} }
|
|
17170
|
-
class QueryListComponent {
|
|
17171
|
-
constructor() {
|
|
17172
|
-
this.displayedColumns = [
|
|
17173
|
-
{ name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
|
|
17174
|
-
{ name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
|
|
17175
|
-
{ name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
|
|
17176
|
-
{ name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
|
|
17177
|
-
{ name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
|
|
17178
|
-
];
|
|
17179
|
-
}
|
|
17180
|
-
ngOnChanges(simpleChanges) {
|
|
17181
|
-
var _a;
|
|
17182
|
-
const currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
|
|
17183
|
-
if (currentPartyMessageGroup) {
|
|
17184
|
-
this.queryListData = new QueryListData(currentPartyMessageGroup);
|
|
17185
|
-
}
|
|
17186
|
-
}
|
|
17187
|
-
sortTable(col) {
|
|
17188
|
-
switch (col.displayName) {
|
|
17189
|
-
case 'Queries': {
|
|
17190
|
-
this.sort(col);
|
|
17191
|
-
break;
|
|
17192
|
-
}
|
|
17193
|
-
case 'Last submitted by': {
|
|
17194
|
-
this.sort(col);
|
|
17195
|
-
break;
|
|
17196
|
-
}
|
|
17197
|
-
case 'Last submission date': {
|
|
17198
|
-
this.sortDate(col);
|
|
17199
|
-
break;
|
|
17200
|
-
}
|
|
17201
|
-
case 'Last response date': {
|
|
17202
|
-
this.sortDate(col);
|
|
17203
|
-
break;
|
|
17204
|
-
}
|
|
17205
|
-
case 'Response by': {
|
|
17206
|
-
this.sort(col);
|
|
17207
|
-
break;
|
|
17208
|
-
}
|
|
17209
|
-
}
|
|
17210
|
-
}
|
|
17211
|
-
sortWidget(col) {
|
|
17212
|
-
switch (col.sortOrder) {
|
|
17213
|
-
case SortOrder.DESCENDING: {
|
|
17214
|
-
return '▲';
|
|
17215
|
-
}
|
|
17216
|
-
case SortOrder.ASCENDING: {
|
|
17217
|
-
return '▼';
|
|
17218
|
-
}
|
|
17219
|
-
default: {
|
|
17220
|
-
return '⬧';
|
|
17221
|
-
}
|
|
17222
|
-
}
|
|
17223
|
-
}
|
|
17224
|
-
sort(col) {
|
|
17225
|
-
if (col.sortOrder && col.sortOrder === SortOrder.DESCENDING) {
|
|
17226
|
-
this.queryListData.partyMessages.sort((a, b) => (a[col.name] < b[col.name]) ? 1 : -1);
|
|
17227
|
-
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
17228
|
-
col.sortOrder = SortOrder.ASCENDING;
|
|
17229
|
-
}
|
|
17230
|
-
else {
|
|
17231
|
-
this.queryListData.partyMessages.sort((a, b) => (a[col.name] > b[col.name]) ? 1 : -1);
|
|
17232
|
-
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
17233
|
-
col.sortOrder = SortOrder.DESCENDING;
|
|
17234
|
-
}
|
|
17235
|
-
}
|
|
17236
|
-
sortDate(col) {
|
|
17237
|
-
if (col.sortOrder && col.sortOrder === SortOrder.DESCENDING) {
|
|
17238
|
-
this.queryListData.partyMessages.sort((a, b) => b[col.name] - a[col.name]);
|
|
17239
|
-
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
17240
|
-
col.sortOrder = SortOrder.ASCENDING;
|
|
17241
|
-
}
|
|
17242
|
-
else {
|
|
17243
|
-
this.queryListData.partyMessages.sort((a, b) => a[col.name] - b[col.name]);
|
|
17244
|
-
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
17245
|
-
col.sortOrder = SortOrder.DESCENDING;
|
|
17246
|
-
}
|
|
17247
|
-
}
|
|
17248
|
-
}
|
|
17249
|
-
QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
|
|
17250
|
-
QueryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessageGroup: "partyMessageGroup" }, features: [i0.ɵɵ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) { if (rf & 1) {
|
|
17251
|
-
i0.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
|
|
17252
|
-
} if (rf & 2) {
|
|
17253
|
-
i0.ɵɵproperty("ngIf", ctx.queryListData);
|
|
17254
|
-
} }, directives: [i1.NgIf, i1.NgForOf], pipes: [i2$1.RpxTranslatePipe, i1.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}"] });
|
|
17255
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryListComponent, [{
|
|
17256
|
-
type: Component,
|
|
17257
|
-
args: [{
|
|
17258
|
-
selector: 'ccd-query-list',
|
|
17259
|
-
templateUrl: './query-list.component.html',
|
|
17260
|
-
styleUrls: ['./query-list.component.scss']
|
|
17261
|
-
}]
|
|
17262
|
-
}], null, { partyMessageGroup: [{
|
|
17263
|
-
type: Input
|
|
17264
|
-
}] }); })();
|
|
17265
|
-
|
|
17266
|
-
class QueryManagementUtils {
|
|
17267
|
-
static extractCaseQueriesFromCaseField() {
|
|
17268
|
-
}
|
|
17269
|
-
}
|
|
17270
|
-
QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
|
|
17271
|
-
QueryManagementUtils.ɵprov = i0.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
|
|
17272
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryManagementUtils, [{
|
|
17273
|
-
type: Injectable
|
|
17274
|
-
}], null, null); })();
|
|
17275
|
-
|
|
17276
|
-
function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
17277
|
-
i0.ɵɵelementContainerStart(0);
|
|
17278
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
17279
|
-
i0.ɵɵelement(2, "ccd-query-list", 2);
|
|
17280
|
-
i0.ɵɵelementEnd();
|
|
17281
|
-
i0.ɵɵelementContainerEnd();
|
|
17282
|
-
} if (rf & 2) {
|
|
17283
|
-
const singlePartyMessageGroup_r1 = ctx.$implicit;
|
|
17284
|
-
i0.ɵɵadvance(2);
|
|
17285
|
-
i0.ɵɵproperty("partyMessageGroup", singlePartyMessageGroup_r1);
|
|
17286
|
-
} }
|
|
17287
|
-
class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
17288
|
-
constructor(route) {
|
|
17289
|
-
super();
|
|
17290
|
-
this.route = route;
|
|
17291
|
-
}
|
|
17292
|
-
ngOnInit() {
|
|
17293
|
-
if (this.context === PaletteContext.DEFAULT) {
|
|
17294
|
-
// EUI-8303 Using mock data until CCD is ready with the API and data contract
|
|
17295
|
-
this.partyMessagesGroups = partyMessagesMockData;
|
|
17296
|
-
// TODO: Actual implementation once the CCD API and data contract is available
|
|
17297
|
-
// Each parties will have a separate collection of party messages
|
|
17298
|
-
// Find whether queries tab is available in the case data
|
|
17299
|
-
const queriesTab = this.route.snapshot.data.case.tabs
|
|
17300
|
-
.filter(tab => tab.fields && tab.fields
|
|
17301
|
-
.some(caseField => caseField.id === 'QueryManagement'));
|
|
17302
|
-
// Loop through the list of parties and their case queries collections
|
|
17303
|
-
QueryManagementUtils.extractCaseQueriesFromCaseField();
|
|
17304
|
-
}
|
|
17305
|
-
}
|
|
17306
|
-
}
|
|
17307
|
-
ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
17308
|
-
ReadQueryManagementFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
|
|
17309
|
-
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 3, 1, "ng-container", 0);
|
|
17310
|
-
} if (rf & 2) {
|
|
17311
|
-
i0.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
|
|
17312
|
-
} }, encapsulation: 2 });
|
|
17313
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
17314
|
-
type: Component,
|
|
17315
|
-
args: [{
|
|
17316
|
-
selector: 'ccd-read-query-management-field',
|
|
17317
|
-
templateUrl: './read-query-management-field.component.html',
|
|
17318
|
-
}]
|
|
17319
|
-
}], function () { return [{ type: i1$1.ActivatedRoute }]; }, null); })();
|
|
17320
|
-
|
|
17321
|
-
class WriteQueryManagementFieldComponent extends AbstractFieldWriteComponent {
|
|
17322
|
-
constructor() {
|
|
17323
|
-
super();
|
|
17324
|
-
}
|
|
17325
|
-
ngOnInit() {
|
|
17326
|
-
}
|
|
17327
|
-
}
|
|
17328
|
-
WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
|
|
17329
|
-
WriteQueryManagementFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function WriteQueryManagementFieldComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
17330
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteQueryManagementFieldComponent, [{
|
|
17331
|
-
type: Component,
|
|
17332
|
-
args: [{
|
|
17333
|
-
selector: 'ccd-write-query-management-field',
|
|
17334
|
-
templateUrl: './write-query-management-field.component.html',
|
|
17335
|
-
}]
|
|
17336
|
-
}], function () { return []; }, null); })();
|
|
17337
|
-
|
|
17338
|
-
class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
|
|
17339
|
-
}
|
|
17340
|
-
ReadTextAreaFieldComponent.ɵfac = function ReadTextAreaFieldComponent_Factory(t) { return ɵReadTextAreaFieldComponent_BaseFactory(t || ReadTextAreaFieldComponent); };
|
|
17341
|
-
ReadTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadTextAreaFieldComponent, selectors: [["ccd-read-text-area-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[2, "white-space", "pre-wrap"]], template: function ReadTextAreaFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17342
|
-
i0.ɵɵelementStart(0, "span", 0);
|
|
17343
|
-
i0.ɵɵtext(1);
|
|
17344
|
-
i0.ɵɵelementEnd();
|
|
17345
|
-
} if (rf & 2) {
|
|
17346
|
-
i0.ɵɵadvance(1);
|
|
17347
|
-
i0.ɵɵtextInterpolate(ctx.caseField.value);
|
|
17348
|
-
} }, encapsulation: 2 });
|
|
17349
|
-
const ɵReadTextAreaFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent);
|
|
17350
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextAreaFieldComponent, [{
|
|
17351
|
-
type: Component,
|
|
17352
|
-
args: [{
|
|
17353
|
-
selector: 'ccd-read-text-area-field',
|
|
17354
|
-
template: `<span style="white-space: pre-wrap">{{caseField.value}}</span>`
|
|
17355
|
-
}]
|
|
17356
|
-
}], null, null); })();
|
|
17357
|
-
|
|
17358
|
-
function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
17359
|
-
i0.ɵɵelementStart(0, "span", 6);
|
|
17360
|
-
i0.ɵɵtext(1);
|
|
17361
|
-
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
17362
|
-
i0.ɵɵelementEnd();
|
|
17363
|
-
} if (rf & 2) {
|
|
17364
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
17365
|
-
i0.ɵɵadvance(1);
|
|
17366
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
17367
|
-
} }
|
|
17368
|
-
function WriteTextAreaFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
17369
|
-
i0.ɵɵelementStart(0, "span", 7);
|
|
17370
|
-
i0.ɵɵtext(1);
|
|
17371
|
-
i0.ɵɵelementEnd();
|
|
17372
|
-
} if (rf & 2) {
|
|
17373
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
17374
|
-
i0.ɵɵadvance(1);
|
|
17375
|
-
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
17376
|
-
} }
|
|
17377
|
-
function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
17378
|
-
i0.ɵɵelementStart(0, "span", 8);
|
|
17379
|
-
i0.ɵɵtext(1);
|
|
17380
|
-
i0.ɵɵpipe(2, "ccdFirstError");
|
|
17381
|
-
i0.ɵɵelementEnd();
|
|
17382
|
-
} if (rf & 2) {
|
|
17383
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
17384
|
-
i0.ɵɵadvance(1);
|
|
17385
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
|
|
17304
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
17305
|
+
i0.ɵɵadvance(1);
|
|
17306
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
|
|
17386
17307
|
} }
|
|
17387
17308
|
const _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
17388
17309
|
const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
@@ -17747,7 +17668,8 @@ class PaletteService {
|
|
|
17747
17668
|
this.componentLauncherRegistry = {
|
|
17748
17669
|
[DisplayContextCustomParameter.CaseFileView]: [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
|
|
17749
17670
|
[DisplayContextCustomParameter.LinkedCases]: [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
|
|
17750
|
-
[DisplayContextCustomParameter.QueryManagement]: [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent]
|
|
17671
|
+
[DisplayContextCustomParameter.QueryManagement]: [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
|
|
17672
|
+
[DisplayContextCustomParameter.QueryManagementWriteTest]: [WriteQueryManagementFieldComponent, WriteQueryManagementFieldComponent]
|
|
17751
17673
|
};
|
|
17752
17674
|
}
|
|
17753
17675
|
getFieldComponentClass(caseField, write) {
|
|
@@ -20513,6 +20435,13 @@ const ɵReadComplexFieldTableComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInh
|
|
|
20513
20435
|
type: Input
|
|
20514
20436
|
}] }); })();
|
|
20515
20437
|
|
|
20438
|
+
var SortOrder;
|
|
20439
|
+
(function (SortOrder) {
|
|
20440
|
+
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
20441
|
+
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
20442
|
+
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
20443
|
+
})(SortOrder || (SortOrder = {}));
|
|
20444
|
+
|
|
20516
20445
|
function ReadComplexFieldCollectionTableComponent_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
20517
20446
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
20518
20447
|
i0.ɵɵelementStart(0, "th", 6);
|
|
@@ -22599,6 +22528,375 @@ FileUploadProgressGuard.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadProg
|
|
|
22599
22528
|
type: Injectable
|
|
22600
22529
|
}], function () { return [{ type: FileUploadStateService }, { type: WindowService }]; }, null); })();
|
|
22601
22530
|
|
|
22531
|
+
class QueryCreateComponent {
|
|
22532
|
+
constructor() {
|
|
22533
|
+
}
|
|
22534
|
+
ngOnInit() {
|
|
22535
|
+
}
|
|
22536
|
+
}
|
|
22537
|
+
QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
|
|
22538
|
+
QueryCreateComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
22539
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryCreateComponent, [{
|
|
22540
|
+
type: Component,
|
|
22541
|
+
args: [{
|
|
22542
|
+
selector: 'ccd-query-create',
|
|
22543
|
+
templateUrl: './query-create.component.html',
|
|
22544
|
+
}]
|
|
22545
|
+
}], function () { return []; }, null); })();
|
|
22546
|
+
|
|
22547
|
+
function QueryDetailsTableComponent_ng_container_0_div_39_Template(rf, ctx) { if (rf & 1) {
|
|
22548
|
+
i0.ɵɵelementStart(0, "div");
|
|
22549
|
+
i0.ɵɵelementStart(1, "a", 7);
|
|
22550
|
+
i0.ɵɵtext(2);
|
|
22551
|
+
i0.ɵɵelementEnd();
|
|
22552
|
+
i0.ɵɵelementEnd();
|
|
22553
|
+
} if (rf & 2) {
|
|
22554
|
+
const attachment_r2 = ctx.$implicit;
|
|
22555
|
+
i0.ɵɵadvance(1);
|
|
22556
|
+
i0.ɵɵproperty("href", attachment_r2._links.self.href, i0.ɵɵsanitizeUrl);
|
|
22557
|
+
i0.ɵɵadvance(1);
|
|
22558
|
+
i0.ɵɵtextInterpolate(attachment_r2.originalDocumentName);
|
|
22559
|
+
} }
|
|
22560
|
+
function QueryDetailsTableComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
22561
|
+
i0.ɵɵelementContainerStart(0);
|
|
22562
|
+
i0.ɵɵelementStart(1, "table", 1);
|
|
22563
|
+
i0.ɵɵelementStart(2, "tbody", 2);
|
|
22564
|
+
i0.ɵɵelementStart(3, "tr", 3);
|
|
22565
|
+
i0.ɵɵelementStart(4, "th", 4);
|
|
22566
|
+
i0.ɵɵtext(5, "Last submitted by");
|
|
22567
|
+
i0.ɵɵelementEnd();
|
|
22568
|
+
i0.ɵɵelementStart(6, "td", 5);
|
|
22569
|
+
i0.ɵɵtext(7);
|
|
22570
|
+
i0.ɵɵelementEnd();
|
|
22571
|
+
i0.ɵɵelementEnd();
|
|
22572
|
+
i0.ɵɵelementStart(8, "tr", 3);
|
|
22573
|
+
i0.ɵɵelementStart(9, "th", 4);
|
|
22574
|
+
i0.ɵɵtext(10, "Submission date");
|
|
22575
|
+
i0.ɵɵelementEnd();
|
|
22576
|
+
i0.ɵɵelementStart(11, "td", 5);
|
|
22577
|
+
i0.ɵɵtext(12);
|
|
22578
|
+
i0.ɵɵpipe(13, "date");
|
|
22579
|
+
i0.ɵɵelementEnd();
|
|
22580
|
+
i0.ɵɵelementEnd();
|
|
22581
|
+
i0.ɵɵelementStart(14, "tr", 3);
|
|
22582
|
+
i0.ɵɵelementStart(15, "th", 4);
|
|
22583
|
+
i0.ɵɵtext(16, "Query subject");
|
|
22584
|
+
i0.ɵɵelementEnd();
|
|
22585
|
+
i0.ɵɵelementStart(17, "td", 5);
|
|
22586
|
+
i0.ɵɵtext(18);
|
|
22587
|
+
i0.ɵɵelementEnd();
|
|
22588
|
+
i0.ɵɵelementEnd();
|
|
22589
|
+
i0.ɵɵelementStart(19, "tr", 3);
|
|
22590
|
+
i0.ɵɵelementStart(20, "th", 4);
|
|
22591
|
+
i0.ɵɵtext(21, "Query body");
|
|
22592
|
+
i0.ɵɵelementEnd();
|
|
22593
|
+
i0.ɵɵelementStart(22, "td", 5);
|
|
22594
|
+
i0.ɵɵtext(23);
|
|
22595
|
+
i0.ɵɵelementEnd();
|
|
22596
|
+
i0.ɵɵelementEnd();
|
|
22597
|
+
i0.ɵɵelementStart(24, "tr", 3);
|
|
22598
|
+
i0.ɵɵelementStart(25, "th", 4);
|
|
22599
|
+
i0.ɵɵtext(26, "Is the query hearing related?");
|
|
22600
|
+
i0.ɵɵelementEnd();
|
|
22601
|
+
i0.ɵɵelementStart(27, "td", 5);
|
|
22602
|
+
i0.ɵɵtext(28);
|
|
22603
|
+
i0.ɵɵelementEnd();
|
|
22604
|
+
i0.ɵɵelementEnd();
|
|
22605
|
+
i0.ɵɵelementStart(29, "tr", 3);
|
|
22606
|
+
i0.ɵɵelementStart(30, "th", 4);
|
|
22607
|
+
i0.ɵɵtext(31, "What is the date of the hearing your query related to?");
|
|
22608
|
+
i0.ɵɵelementEnd();
|
|
22609
|
+
i0.ɵɵelementStart(32, "td", 5);
|
|
22610
|
+
i0.ɵɵtext(33);
|
|
22611
|
+
i0.ɵɵpipe(34, "date");
|
|
22612
|
+
i0.ɵɵelementEnd();
|
|
22613
|
+
i0.ɵɵelementEnd();
|
|
22614
|
+
i0.ɵɵelementStart(35, "tr", 3);
|
|
22615
|
+
i0.ɵɵelementStart(36, "th", 4);
|
|
22616
|
+
i0.ɵɵtext(37, "Attachments");
|
|
22617
|
+
i0.ɵɵelementEnd();
|
|
22618
|
+
i0.ɵɵelementStart(38, "td", 5);
|
|
22619
|
+
i0.ɵɵtemplate(39, QueryDetailsTableComponent_ng_container_0_div_39_Template, 3, 2, "div", 6);
|
|
22620
|
+
i0.ɵɵelementEnd();
|
|
22621
|
+
i0.ɵɵelementEnd();
|
|
22622
|
+
i0.ɵɵelementEnd();
|
|
22623
|
+
i0.ɵɵelementEnd();
|
|
22624
|
+
i0.ɵɵelementContainerEnd();
|
|
22625
|
+
} if (rf & 2) {
|
|
22626
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
22627
|
+
i0.ɵɵadvance(7);
|
|
22628
|
+
i0.ɵɵtextInterpolate(ctx_r0.queryItem.lastSubmittedBy);
|
|
22629
|
+
i0.ɵɵadvance(5);
|
|
22630
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(13, 7, ctx_r0.queryItem.createdOn, "d MMM yyyy"));
|
|
22631
|
+
i0.ɵɵadvance(6);
|
|
22632
|
+
i0.ɵɵtextInterpolate(ctx_r0.queryItem.subject);
|
|
22633
|
+
i0.ɵɵadvance(5);
|
|
22634
|
+
i0.ɵɵtextInterpolate(ctx_r0.queryItem.body);
|
|
22635
|
+
i0.ɵɵadvance(5);
|
|
22636
|
+
i0.ɵɵtextInterpolate(ctx_r0.queryItem.isHearingRelated ? "Yes" : "No");
|
|
22637
|
+
i0.ɵɵadvance(5);
|
|
22638
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(34, 10, ctx_r0.queryItem.hearingDate, "d MMM yyyy"));
|
|
22639
|
+
i0.ɵɵadvance(6);
|
|
22640
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.queryItem.attachments);
|
|
22641
|
+
} }
|
|
22642
|
+
class QueryDetailsTableComponent {
|
|
22643
|
+
}
|
|
22644
|
+
QueryDetailsTableComponent.ɵfac = function QueryDetailsTableComponent_Factory(t) { return new (t || QueryDetailsTableComponent)(); };
|
|
22645
|
+
QueryDetailsTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryDetailsTableComponent, selectors: [["ccd-query-details-table"]], inputs: { queryItem: "queryItem" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["aria-describedby", "Details of the query", 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) { if (rf & 1) {
|
|
22646
|
+
i0.ɵɵtemplate(0, QueryDetailsTableComponent_ng_container_0_Template, 40, 13, "ng-container", 0);
|
|
22647
|
+
} if (rf & 2) {
|
|
22648
|
+
i0.ɵɵproperty("ngIf", ctx.queryItem);
|
|
22649
|
+
} }, directives: [i1.NgIf, i1.NgForOf], pipes: [i1.DatePipe], styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
|
|
22650
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsTableComponent, [{
|
|
22651
|
+
type: Component,
|
|
22652
|
+
args: [{
|
|
22653
|
+
selector: 'ccd-query-details-table',
|
|
22654
|
+
templateUrl: './query-details-table.component.html',
|
|
22655
|
+
styleUrls: ['./query-details-table.component.scss']
|
|
22656
|
+
}]
|
|
22657
|
+
}], null, { queryItem: [{
|
|
22658
|
+
type: Input
|
|
22659
|
+
}] }); })();
|
|
22660
|
+
|
|
22661
|
+
class QueryDetailsComponent {
|
|
22662
|
+
}
|
|
22663
|
+
QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
|
|
22664
|
+
QueryDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], decls: 2, vars: 0, template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22665
|
+
i0.ɵɵelementStart(0, "p");
|
|
22666
|
+
i0.ɵɵtext(1, "query-details works!");
|
|
22667
|
+
i0.ɵɵelementEnd();
|
|
22668
|
+
} }, encapsulation: 2 });
|
|
22669
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
22670
|
+
type: Component,
|
|
22671
|
+
args: [{
|
|
22672
|
+
selector: 'ccd-query-details',
|
|
22673
|
+
templateUrl: './query-details.component.html'
|
|
22674
|
+
}]
|
|
22675
|
+
}], null, null); })();
|
|
22676
|
+
|
|
22677
|
+
function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
22678
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
22679
|
+
i0.ɵɵelementStart(0, "th", 8);
|
|
22680
|
+
i0.ɵɵtext(1);
|
|
22681
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22682
|
+
i0.ɵɵelementStart(3, "a", 9);
|
|
22683
|
+
i0.ɵɵlistener("click", function QueryListComponent_ng_container_0_th_7_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r5); const col_r3 = ctx.$implicit; const ctx_r4 = i0.ɵɵnextContext(2); return ctx_r4.sortTable(col_r3); });
|
|
22684
|
+
i0.ɵɵelementEnd();
|
|
22685
|
+
i0.ɵɵelementEnd();
|
|
22686
|
+
} if (rf & 2) {
|
|
22687
|
+
const col_r3 = ctx.$implicit;
|
|
22688
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
22689
|
+
i0.ɵɵadvance(1);
|
|
22690
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
|
|
22691
|
+
i0.ɵɵadvance(2);
|
|
22692
|
+
i0.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0.ɵɵsanitizeHtml);
|
|
22693
|
+
} }
|
|
22694
|
+
function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) { if (rf & 1) {
|
|
22695
|
+
i0.ɵɵelementStart(0, "tr", 4);
|
|
22696
|
+
i0.ɵɵelementStart(1, "td", 10);
|
|
22697
|
+
i0.ɵɵelementStart(2, "a", 11);
|
|
22698
|
+
i0.ɵɵtext(3);
|
|
22699
|
+
i0.ɵɵelementEnd();
|
|
22700
|
+
i0.ɵɵelementEnd();
|
|
22701
|
+
i0.ɵɵelementStart(4, "td", 12);
|
|
22702
|
+
i0.ɵɵtext(5);
|
|
22703
|
+
i0.ɵɵelementEnd();
|
|
22704
|
+
i0.ɵɵelementStart(6, "td", 12);
|
|
22705
|
+
i0.ɵɵtext(7);
|
|
22706
|
+
i0.ɵɵpipe(8, "date");
|
|
22707
|
+
i0.ɵɵelementEnd();
|
|
22708
|
+
i0.ɵɵelementStart(9, "td", 12);
|
|
22709
|
+
i0.ɵɵtext(10);
|
|
22710
|
+
i0.ɵɵpipe(11, "date");
|
|
22711
|
+
i0.ɵɵelementEnd();
|
|
22712
|
+
i0.ɵɵelementStart(12, "td", 12);
|
|
22713
|
+
i0.ɵɵtext(13);
|
|
22714
|
+
i0.ɵɵelementEnd();
|
|
22715
|
+
i0.ɵɵelementEnd();
|
|
22716
|
+
} if (rf & 2) {
|
|
22717
|
+
const message_r6 = ctx.$implicit;
|
|
22718
|
+
i0.ɵɵadvance(3);
|
|
22719
|
+
i0.ɵɵtextInterpolate(message_r6.subject);
|
|
22720
|
+
i0.ɵɵadvance(2);
|
|
22721
|
+
i0.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
|
|
22722
|
+
i0.ɵɵadvance(2);
|
|
22723
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
|
|
22724
|
+
i0.ɵɵadvance(3);
|
|
22725
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
|
|
22726
|
+
i0.ɵɵadvance(3);
|
|
22727
|
+
i0.ɵɵtextInterpolate(message_r6.lastResponseBy);
|
|
22728
|
+
} }
|
|
22729
|
+
function QueryListComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
22730
|
+
i0.ɵɵelementContainerStart(0);
|
|
22731
|
+
i0.ɵɵelementStart(1, "table", 1);
|
|
22732
|
+
i0.ɵɵelementStart(2, "caption", 2);
|
|
22733
|
+
i0.ɵɵelementStart(3, "div");
|
|
22734
|
+
i0.ɵɵtext(4);
|
|
22735
|
+
i0.ɵɵelementEnd();
|
|
22736
|
+
i0.ɵɵelementEnd();
|
|
22737
|
+
i0.ɵɵelementStart(5, "thead", 3);
|
|
22738
|
+
i0.ɵɵelementStart(6, "tr", 4);
|
|
22739
|
+
i0.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
|
|
22740
|
+
i0.ɵɵelementEnd();
|
|
22741
|
+
i0.ɵɵelementEnd();
|
|
22742
|
+
i0.ɵɵelementStart(8, "tbody", 6);
|
|
22743
|
+
i0.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
|
|
22744
|
+
i0.ɵɵelementEnd();
|
|
22745
|
+
i0.ɵɵelementEnd();
|
|
22746
|
+
i0.ɵɵelementContainerEnd();
|
|
22747
|
+
} if (rf & 2) {
|
|
22748
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
22749
|
+
i0.ɵɵadvance(4);
|
|
22750
|
+
i0.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
|
|
22751
|
+
i0.ɵɵadvance(3);
|
|
22752
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
|
|
22753
|
+
i0.ɵɵadvance(2);
|
|
22754
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
|
|
22755
|
+
} }
|
|
22756
|
+
class QueryListComponent {
|
|
22757
|
+
constructor() {
|
|
22758
|
+
this.displayedColumns = [
|
|
22759
|
+
{ name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
|
|
22760
|
+
{ name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
|
|
22761
|
+
{ name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
|
|
22762
|
+
{ name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
|
|
22763
|
+
{ name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
|
|
22764
|
+
];
|
|
22765
|
+
}
|
|
22766
|
+
ngOnChanges(simpleChanges) {
|
|
22767
|
+
var _a;
|
|
22768
|
+
const currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
|
|
22769
|
+
if (currentPartyMessageGroup) {
|
|
22770
|
+
this.queryListData = new QueryListData(currentPartyMessageGroup);
|
|
22771
|
+
}
|
|
22772
|
+
}
|
|
22773
|
+
sortTable(col) {
|
|
22774
|
+
switch (col.displayName) {
|
|
22775
|
+
case 'Queries': {
|
|
22776
|
+
this.sort(col);
|
|
22777
|
+
break;
|
|
22778
|
+
}
|
|
22779
|
+
case 'Last submitted by': {
|
|
22780
|
+
this.sort(col);
|
|
22781
|
+
break;
|
|
22782
|
+
}
|
|
22783
|
+
case 'Last submission date': {
|
|
22784
|
+
this.sortDate(col);
|
|
22785
|
+
break;
|
|
22786
|
+
}
|
|
22787
|
+
case 'Last response date': {
|
|
22788
|
+
this.sortDate(col);
|
|
22789
|
+
break;
|
|
22790
|
+
}
|
|
22791
|
+
case 'Response by': {
|
|
22792
|
+
this.sort(col);
|
|
22793
|
+
break;
|
|
22794
|
+
}
|
|
22795
|
+
default: {
|
|
22796
|
+
this.sort(col);
|
|
22797
|
+
break;
|
|
22798
|
+
}
|
|
22799
|
+
}
|
|
22800
|
+
}
|
|
22801
|
+
sortWidget(col) {
|
|
22802
|
+
switch (col.sortOrder) {
|
|
22803
|
+
case SortOrder.DESCENDING: {
|
|
22804
|
+
return '▼';
|
|
22805
|
+
}
|
|
22806
|
+
case SortOrder.ASCENDING: {
|
|
22807
|
+
return '▲';
|
|
22808
|
+
}
|
|
22809
|
+
default: {
|
|
22810
|
+
return '⬧';
|
|
22811
|
+
}
|
|
22812
|
+
}
|
|
22813
|
+
}
|
|
22814
|
+
sort(col) {
|
|
22815
|
+
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
22816
|
+
this.queryListData.partyMessages.sort((a, b) => (a[col.name] < b[col.name]) ? 1 : -1);
|
|
22817
|
+
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
22818
|
+
col.sortOrder = SortOrder.DESCENDING;
|
|
22819
|
+
}
|
|
22820
|
+
else {
|
|
22821
|
+
this.queryListData.partyMessages.sort((a, b) => (a[col.name] > b[col.name]) ? 1 : -1);
|
|
22822
|
+
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
22823
|
+
col.sortOrder = SortOrder.ASCENDING;
|
|
22824
|
+
}
|
|
22825
|
+
}
|
|
22826
|
+
sortDate(col) {
|
|
22827
|
+
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
22828
|
+
this.queryListData.partyMessages.sort((a, b) => b[col.name] - a[col.name]);
|
|
22829
|
+
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
22830
|
+
col.sortOrder = SortOrder.DESCENDING;
|
|
22831
|
+
}
|
|
22832
|
+
else {
|
|
22833
|
+
this.queryListData.partyMessages.sort((a, b) => a[col.name] - b[col.name]);
|
|
22834
|
+
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
22835
|
+
col.sortOrder = SortOrder.ASCENDING;
|
|
22836
|
+
}
|
|
22837
|
+
}
|
|
22838
|
+
}
|
|
22839
|
+
QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
|
|
22840
|
+
QueryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessageGroup: "partyMessageGroup" }, features: [i0.ɵɵ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) { if (rf & 1) {
|
|
22841
|
+
i0.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
|
|
22842
|
+
} if (rf & 2) {
|
|
22843
|
+
i0.ɵɵproperty("ngIf", ctx.queryListData);
|
|
22844
|
+
} }, directives: [i1.NgIf, i1.NgForOf], pipes: [i2$1.RpxTranslatePipe, i1.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}"] });
|
|
22845
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryListComponent, [{
|
|
22846
|
+
type: Component,
|
|
22847
|
+
args: [{
|
|
22848
|
+
selector: 'ccd-query-list',
|
|
22849
|
+
templateUrl: './query-list.component.html',
|
|
22850
|
+
styleUrls: ['./query-list.component.scss']
|
|
22851
|
+
}]
|
|
22852
|
+
}], null, { partyMessageGroup: [{
|
|
22853
|
+
type: Input
|
|
22854
|
+
}] }); })();
|
|
22855
|
+
|
|
22856
|
+
class QueryManagementModule {
|
|
22857
|
+
}
|
|
22858
|
+
QueryManagementModule.ɵfac = function QueryManagementModule_Factory(t) { return new (t || QueryManagementModule)(); };
|
|
22859
|
+
QueryManagementModule.ɵmod = i0.ɵɵdefineNgModule({ type: QueryManagementModule });
|
|
22860
|
+
QueryManagementModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
22861
|
+
CommonModule,
|
|
22862
|
+
ReactiveFormsModule,
|
|
22863
|
+
RpxTranslationModule.forChild(),
|
|
22864
|
+
PipesModule
|
|
22865
|
+
]] });
|
|
22866
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(QueryManagementModule, { declarations: [ReadQueryManagementFieldComponent,
|
|
22867
|
+
WriteQueryManagementFieldComponent,
|
|
22868
|
+
QueryDetailsComponent,
|
|
22869
|
+
QueryCreateComponent,
|
|
22870
|
+
QueryListComponent,
|
|
22871
|
+
QueryDetailsTableComponent], imports: [CommonModule,
|
|
22872
|
+
ReactiveFormsModule, i2$1.RpxTranslationModule, PipesModule], exports: [ReadQueryManagementFieldComponent,
|
|
22873
|
+
WriteQueryManagementFieldComponent] }); })();
|
|
22874
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryManagementModule, [{
|
|
22875
|
+
type: NgModule,
|
|
22876
|
+
args: [{
|
|
22877
|
+
declarations: [
|
|
22878
|
+
ReadQueryManagementFieldComponent,
|
|
22879
|
+
WriteQueryManagementFieldComponent,
|
|
22880
|
+
QueryDetailsComponent,
|
|
22881
|
+
QueryCreateComponent,
|
|
22882
|
+
QueryListComponent,
|
|
22883
|
+
QueryDetailsTableComponent,
|
|
22884
|
+
],
|
|
22885
|
+
imports: [
|
|
22886
|
+
CommonModule,
|
|
22887
|
+
ReactiveFormsModule,
|
|
22888
|
+
RpxTranslationModule.forChild(),
|
|
22889
|
+
PipesModule
|
|
22890
|
+
],
|
|
22891
|
+
exports: [
|
|
22892
|
+
ReadQueryManagementFieldComponent,
|
|
22893
|
+
WriteQueryManagementFieldComponent
|
|
22894
|
+
],
|
|
22895
|
+
}]
|
|
22896
|
+
}], null, null); })();
|
|
22897
|
+
i0.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1.NgForOf, QueryListComponent], []);
|
|
22898
|
+
i0.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [QueryDetailsTableComponent, i3.NgControlStatusGroup, i3.FormGroupDirective, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlName], [CaseReferencePipe]);
|
|
22899
|
+
|
|
22602
22900
|
const PALETTE_COMPONENTS = [
|
|
22603
22901
|
UnsupportedFieldComponent,
|
|
22604
22902
|
DatetimePickerComponent,
|
|
@@ -22644,7 +22942,6 @@ const PALETTE_COMPONENTS = [
|
|
|
22644
22942
|
ReadComplexFieldCollectionTableComponent,
|
|
22645
22943
|
ReadCaseFlagFieldComponent,
|
|
22646
22944
|
ReadLinkedCasesFieldComponent,
|
|
22647
|
-
ReadQueryManagementFieldComponent,
|
|
22648
22945
|
// Write
|
|
22649
22946
|
WriteJudicialUserFieldComponent,
|
|
22650
22947
|
WriteAddressFieldComponent,
|
|
@@ -22664,7 +22961,6 @@ const PALETTE_COMPONENTS = [
|
|
|
22664
22961
|
WriteDateFieldComponent,
|
|
22665
22962
|
WriteCaseFlagFieldComponent,
|
|
22666
22963
|
WriteLinkedCasesFieldComponent,
|
|
22667
|
-
WriteQueryManagementFieldComponent,
|
|
22668
22964
|
// new
|
|
22669
22965
|
WriteYesNoFieldComponent,
|
|
22670
22966
|
WriteOrganisationFieldComponent,
|
|
@@ -22708,10 +23004,6 @@ const PALETTE_COMPONENTS = [
|
|
|
22708
23004
|
CheckYourAnswersComponent,
|
|
22709
23005
|
UnLinkCasesComponent,
|
|
22710
23006
|
NoLinkedCasesComponent,
|
|
22711
|
-
// Components for query management
|
|
22712
|
-
QueryCreateComponent,
|
|
22713
|
-
QueryDetailComponent,
|
|
22714
|
-
QueryListComponent
|
|
22715
23007
|
];
|
|
22716
23008
|
class PaletteModule {
|
|
22717
23009
|
}
|
|
@@ -22761,7 +23053,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22761
23053
|
MatDialogModule,
|
|
22762
23054
|
MediaViewerModule,
|
|
22763
23055
|
LoadingModule,
|
|
22764
|
-
RpxTranslationModule.forChild()
|
|
23056
|
+
RpxTranslationModule.forChild(),
|
|
23057
|
+
QueryManagementModule
|
|
22765
23058
|
], NgxMatDatetimePickerModule,
|
|
22766
23059
|
NgxMatNativeDateModule,
|
|
22767
23060
|
NgxMatTimepickerModule,
|
|
@@ -22816,7 +23109,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22816
23109
|
ReadComplexFieldCollectionTableComponent,
|
|
22817
23110
|
ReadCaseFlagFieldComponent,
|
|
22818
23111
|
ReadLinkedCasesFieldComponent,
|
|
22819
|
-
ReadQueryManagementFieldComponent,
|
|
22820
23112
|
// Write
|
|
22821
23113
|
WriteJudicialUserFieldComponent,
|
|
22822
23114
|
WriteAddressFieldComponent,
|
|
@@ -22836,7 +23128,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22836
23128
|
WriteDateFieldComponent,
|
|
22837
23129
|
WriteCaseFlagFieldComponent,
|
|
22838
23130
|
WriteLinkedCasesFieldComponent,
|
|
22839
|
-
WriteQueryManagementFieldComponent,
|
|
22840
23131
|
// new
|
|
22841
23132
|
WriteYesNoFieldComponent,
|
|
22842
23133
|
WriteOrganisationFieldComponent,
|
|
@@ -22879,11 +23170,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22879
23170
|
LinkCasesComponent,
|
|
22880
23171
|
CheckYourAnswersComponent,
|
|
22881
23172
|
UnLinkCasesComponent,
|
|
22882
|
-
NoLinkedCasesComponent,
|
|
22883
|
-
// Components for query management
|
|
22884
|
-
QueryCreateComponent,
|
|
22885
|
-
QueryDetailComponent,
|
|
22886
|
-
QueryListComponent], imports: [CommonModule,
|
|
23173
|
+
NoLinkedCasesComponent], imports: [CommonModule,
|
|
22887
23174
|
RouterModule,
|
|
22888
23175
|
FormsModule,
|
|
22889
23176
|
ReactiveFormsModule,
|
|
@@ -22909,7 +23196,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22909
23196
|
OverlayModule,
|
|
22910
23197
|
PaymentLibModule, i2.ScrollToModule, MatDialogModule,
|
|
22911
23198
|
MediaViewerModule,
|
|
22912
|
-
LoadingModule, i2$1.RpxTranslationModule], exports: [NgxMatDatetimePickerModule,
|
|
23199
|
+
LoadingModule, i2$1.RpxTranslationModule, QueryManagementModule], exports: [NgxMatDatetimePickerModule,
|
|
22913
23200
|
NgxMatNativeDateModule,
|
|
22914
23201
|
NgxMatTimepickerModule,
|
|
22915
23202
|
TabsModule,
|
|
@@ -22958,7 +23245,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22958
23245
|
ReadComplexFieldCollectionTableComponent,
|
|
22959
23246
|
ReadCaseFlagFieldComponent,
|
|
22960
23247
|
ReadLinkedCasesFieldComponent,
|
|
22961
|
-
ReadQueryManagementFieldComponent,
|
|
22962
23248
|
// Write
|
|
22963
23249
|
WriteJudicialUserFieldComponent,
|
|
22964
23250
|
WriteAddressFieldComponent,
|
|
@@ -22978,7 +23264,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22978
23264
|
WriteDateFieldComponent,
|
|
22979
23265
|
WriteCaseFlagFieldComponent,
|
|
22980
23266
|
WriteLinkedCasesFieldComponent,
|
|
22981
|
-
WriteQueryManagementFieldComponent,
|
|
22982
23267
|
// new
|
|
22983
23268
|
WriteYesNoFieldComponent,
|
|
22984
23269
|
WriteOrganisationFieldComponent,
|
|
@@ -23021,11 +23306,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
23021
23306
|
LinkCasesComponent,
|
|
23022
23307
|
CheckYourAnswersComponent,
|
|
23023
23308
|
UnLinkCasesComponent,
|
|
23024
|
-
NoLinkedCasesComponent
|
|
23025
|
-
// Components for query management
|
|
23026
|
-
QueryCreateComponent,
|
|
23027
|
-
QueryDetailComponent,
|
|
23028
|
-
QueryListComponent] }); })();
|
|
23309
|
+
NoLinkedCasesComponent] }); })();
|
|
23029
23310
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteModule, [{
|
|
23030
23311
|
type: NgModule,
|
|
23031
23312
|
args: [{
|
|
@@ -23059,7 +23340,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
23059
23340
|
MatDialogModule,
|
|
23060
23341
|
MediaViewerModule,
|
|
23061
23342
|
LoadingModule,
|
|
23062
|
-
RpxTranslationModule.forChild()
|
|
23343
|
+
RpxTranslationModule.forChild(),
|
|
23344
|
+
QueryManagementModule
|
|
23063
23345
|
],
|
|
23064
23346
|
declarations: [
|
|
23065
23347
|
FixedListPipe,
|
|
@@ -23118,7 +23400,6 @@ i0.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1.NgSwitch, i1.NgSwitchCa
|
|
|
23118
23400
|
i0.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, [
|
|
23119
23401
|
// Components for linked cases
|
|
23120
23402
|
LinkedCasesToTableComponent, i1.NgIf, LinkedCasesFromTableComponent], []);
|
|
23121
|
-
i0.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1.NgForOf, QueryListComponent], []);
|
|
23122
23403
|
i0.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1.NgIf, i1.NgClass, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, i3.SelectControlValueAccessor, i1.NgForOf, i3.NgSelectOption, i3.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i3.NgControlStatusGroup, i3.FormGroupDirective], [FieldLabelPipe]);
|
|
23123
23404
|
i0.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1.NgIf, i1.NgForOf, i1.NgSwitch, i1.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i3.NgControlStatusGroup, i3.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
|
|
23124
23405
|
i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1.NgClass, i1.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
|
|
@@ -31838,5 +32119,5 @@ class TestRouteSnapshotBuilder {
|
|
|
31838
32119
|
* Generated bundle index. Do not edit.
|
|
31839
32120
|
*/
|
|
31840
32121
|
|
|
31841
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService,
|
|
32122
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteQueryManagementFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
31842
32123
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|