@hmcts/ccd-case-ui-toolkit 7.2.35-multiple-followup → 7.2.35-remove-feature-flag
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/esm2022/lib/app.config.mjs +1 -2
- package/esm2022/lib/shared/components/palette/case-file-view/case-file-view-field.component.mjs +5 -7
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.mjs +8 -10
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.mjs +3 -5
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +2 -5
- package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +8 -55
- package/esm2022/lib/shared/components/palette/query-management/models/case-queries-collection.model.mjs +1 -1
- package/esm2022/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.mjs +7 -43
- package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +24 -77
- package/esm2022/lib/shared/components/palette/query-management/services/query-management.service.mjs +2 -2
- package/esm2022/lib/shared/components/palette/query-management/utils/query-management.utils.mjs +4 -12
- package/esm2022/lib/shared/utils.mjs +1 -1
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +53 -198
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/app.config.d.ts +0 -5
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +1 -2
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +3 -15
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/models/case-queries-collection.model.d.ts +0 -1
- package/lib/shared/components/palette/query-management/models/case-queries-collection.model.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts +0 -1
- package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts +3 -15
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts +1 -1
- package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts.map +1 -1
- package/lib/shared/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1326,7 +1326,6 @@ class CaseEditorConfig {
|
|
|
1326
1326
|
icp_enabled;
|
|
1327
1327
|
icp_jurisdictions;
|
|
1328
1328
|
events_to_hide;
|
|
1329
|
-
enable_service_specific_multi_followups;
|
|
1330
1329
|
}
|
|
1331
1330
|
|
|
1332
1331
|
class HttpError {
|
|
@@ -12894,7 +12893,7 @@ function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) { if
|
|
|
12894
12893
|
} if (rf & 2) {
|
|
12895
12894
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
12896
12895
|
i0.ɵɵadvance();
|
|
12897
|
-
i0.ɵɵproperty("url", ctx_r1.currentDocument.document_binary_url)("downloadFileName", ctx_r1.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r1.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh")("caseId", ctx_r1.caseId)("multimediaPlayerEnabled", true)
|
|
12896
|
+
i0.ɵɵproperty("url", ctx_r1.currentDocument.document_binary_url)("downloadFileName", ctx_r1.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r1.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh")("caseId", ctx_r1.caseId)("multimediaPlayerEnabled", true);
|
|
12898
12897
|
} }
|
|
12899
12898
|
function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
12900
12899
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -12906,7 +12905,7 @@ function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
12906
12905
|
i0.ɵɵelementEnd()();
|
|
12907
12906
|
i0.ɵɵelement(6, "div", 16);
|
|
12908
12907
|
i0.ɵɵelementStart(7, "div", 17);
|
|
12909
|
-
i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2,
|
|
12908
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 9, "ng-container", 0);
|
|
12910
12909
|
i0.ɵɵelementEnd()()();
|
|
12911
12910
|
} if (rf & 2) {
|
|
12912
12911
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -12961,8 +12960,6 @@ class CaseFileViewFieldComponent {
|
|
|
12961
12960
|
const acls = this.caseField.acls.filter(acl => userInfo.roles.includes(acl.role));
|
|
12962
12961
|
// As there can be more than one intersecting role, if any acls are update: true
|
|
12963
12962
|
this.allowMoving = acls.some(acl => acl.update);
|
|
12964
|
-
this.icp_jurisdictions = this.abstractConfig.getIcpJurisdictions();
|
|
12965
|
-
this.icpEnabled = this.abstractConfig.getIcpEnable();
|
|
12966
12963
|
}
|
|
12967
12964
|
ngAfterViewInit() {
|
|
12968
12965
|
const slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
@@ -13025,7 +13022,7 @@ class CaseFileViewFieldComponent {
|
|
|
13025
13022
|
return this.icpEnabled && ((this.icp_jurisdictions?.length < 1) || this.icp_jurisdictions.includes(this.caseNotifier?.cachedCaseView?.case_type?.jurisdiction.id));
|
|
13026
13023
|
}
|
|
13027
13024
|
static ɵfac = function CaseFileViewFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
13028
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["id", "case-file-view-field-errors", "data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "clickedDocument", "moveDocument", "categoriesAndDocuments", "allowMoving"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height", "caseId", "multimediaPlayerEnabled"
|
|
13025
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["id", "case-file-view-field-errors", "data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "clickedDocument", "moveDocument", "categoriesAndDocuments", "allowMoving"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height", "caseId", "multimediaPlayerEnabled"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13029
13026
|
i0.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 0)(1, CaseFileViewFieldComponent_div_1_Template, 5, 0, "div", 1)(2, CaseFileViewFieldComponent_div_2_Template, 9, 3, "div", 0);
|
|
13030
13027
|
} if (rf & 2) {
|
|
13031
13028
|
i0.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
|
|
@@ -13037,7 +13034,7 @@ class CaseFileViewFieldComponent {
|
|
|
13037
13034
|
}
|
|
13038
13035
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
13039
13036
|
type: Component,
|
|
13040
|
-
args: [{ selector: 'ccd-case-file-view-field', template: "<ng-container *ngIf=\"errorMessages?.length\">\n <div\n id=\"case-file-view-field-errors\"\n class=\"govuk-error-summary govuk-!-margin-bottom-4\"\n data-module=\"govuk-error-summary\"\n >\n <div role=\"alert\">\n <h2 class=\"govuk-error-summary__title\">There is a problem</h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li *ngFor=\"let errorMessage of errorMessages\">\n <a href=\"javascript:void(0);\">{{ errorMessage }}</a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div\n *ngIf=\"getCategoriesAndDocumentsError\"\n class=\"govuk-grid-column-two-thirds\"\n>\n <h1 class=\"govuk-heading-xl\">Sorry, there is a problem with the service</h1>\n <p class=\"govuk-body\">Try again later.</p>\n</div>\n<div *ngIf=\"!getCategoriesAndDocumentsError\">\n <h2 class=\"govuk-heading-l\">Case file</h2>\n <div class=\"govuk-form-group\" id=\"case-file-view\">\n <!-- Document tree -->\n <div class=\"document-tree-container\">\n <ccd-case-file-view-folder \n class=\"document-tree-container__tree\"\n [categoriesAndDocuments]=\"categoriesAndDocuments$\"\n (clickedDocument)=\"setMediaViewerFile($event); resetErrorMessages()\" \n (moveDocument)=\"moveDocument($event)\"\n [allowMoving]=\"allowMoving\">\n </ccd-case-file-view-folder>\n </div>\n <!-- Slider -->\n <div class=\"slider\"></div>\n <!-- Media viewer -->\n <div class=\"media-viewer-container\">\n <ng-container *ngIf=\"currentDocument\">\n <mv-media-viewer\n [url]=\"currentDocument.document_binary_url\"\n [downloadFileName]=\"currentDocument.document_filename\"\n [showToolbar]=\"true\"\n [contentType]=\"currentDocument.content_type\"\n [enableAnnotations]=\"true\"\n [enableRedactions]=\"true\"\n [height]=\"'94.5vh'\"\n [caseId]=\"caseId\"\n [multimediaPlayerEnabled]=\"true\"\n
|
|
13037
|
+
args: [{ selector: 'ccd-case-file-view-field', template: "<ng-container *ngIf=\"errorMessages?.length\">\n <div\n id=\"case-file-view-field-errors\"\n class=\"govuk-error-summary govuk-!-margin-bottom-4\"\n data-module=\"govuk-error-summary\"\n >\n <div role=\"alert\">\n <h2 class=\"govuk-error-summary__title\">There is a problem</h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li *ngFor=\"let errorMessage of errorMessages\">\n <a href=\"javascript:void(0);\">{{ errorMessage }}</a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div\n *ngIf=\"getCategoriesAndDocumentsError\"\n class=\"govuk-grid-column-two-thirds\"\n>\n <h1 class=\"govuk-heading-xl\">Sorry, there is a problem with the service</h1>\n <p class=\"govuk-body\">Try again later.</p>\n</div>\n<div *ngIf=\"!getCategoriesAndDocumentsError\">\n <h2 class=\"govuk-heading-l\">Case file</h2>\n <div class=\"govuk-form-group\" id=\"case-file-view\">\n <!-- Document tree -->\n <div class=\"document-tree-container\">\n <ccd-case-file-view-folder \n class=\"document-tree-container__tree\"\n [categoriesAndDocuments]=\"categoriesAndDocuments$\"\n (clickedDocument)=\"setMediaViewerFile($event); resetErrorMessages()\" \n (moveDocument)=\"moveDocument($event)\"\n [allowMoving]=\"allowMoving\">\n </ccd-case-file-view-folder>\n </div>\n <!-- Slider -->\n <div class=\"slider\"></div>\n <!-- Media viewer -->\n <div class=\"media-viewer-container\">\n <ng-container *ngIf=\"currentDocument\">\n <mv-media-viewer\n [url]=\"currentDocument.document_binary_url\"\n [downloadFileName]=\"currentDocument.document_filename\"\n [showToolbar]=\"true\"\n [contentType]=\"currentDocument.content_type\"\n [enableAnnotations]=\"true\"\n [enableRedactions]=\"true\"\n [height]=\"'94.5vh'\"\n [caseId]=\"caseId\"\n [multimediaPlayerEnabled]=\"true\"\n >\n </mv-media-viewer>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: ["#case-file-view{display:flex;border:2px solid #C9C9C9;height:100vh;position:relative}#case-file-view .document-tree-container{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view .slider{width:.2%;background-color:#6b6b6b}#case-file-view .slider:hover,#case-file-view .slider:focus{cursor:col-resize}#case-file-view .media-viewer-container{background-color:#dee0e2;flex:1 1 0;overflow:hidden}\n"] }]
|
|
13041
13038
|
}], () => [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }, { type: CaseNotifier }, { type: AbstractAppConfig }], null); })();
|
|
13042
13039
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFieldComponent, { className: "CaseFileViewFieldComponent", filePath: "lib/shared/components/palette/case-file-view/case-file-view-field.component.ts", lineNumber: 17 }); })();
|
|
13043
13040
|
|
|
@@ -20667,7 +20664,6 @@ class QueryListItem {
|
|
|
20667
20664
|
createdBy;
|
|
20668
20665
|
parentId;
|
|
20669
20666
|
isClosed;
|
|
20670
|
-
messageType;
|
|
20671
20667
|
children = [];
|
|
20672
20668
|
messageIndexInParent = null;
|
|
20673
20669
|
get lastSubmittedMessage() {
|
|
@@ -20694,34 +20690,14 @@ class QueryListItem {
|
|
|
20694
20690
|
}
|
|
20695
20691
|
get lastSubmittedDate() {
|
|
20696
20692
|
const childrenCount = this.children.length;
|
|
20697
|
-
|
|
20698
|
-
// 1. Check for legacy: <= 1 child with no messageType
|
|
20699
|
-
const allChildrenLackMessageType = this.children.every((child) => !child.messageType);
|
|
20700
|
-
if (childrenCount <= 1 && allChildrenLackMessageType) {
|
|
20693
|
+
if (childrenCount <= 1) {
|
|
20701
20694
|
return new Date(this.lastSubmittedMessage.createdOn);
|
|
20702
20695
|
}
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
const onlyFollowUps = this.children.every((child) => child.messageType === QueryCreateContext.FOLLOWUP);
|
|
20707
|
-
if (onlyFollowUps && !hasRespond) {
|
|
20708
|
-
return new Date(lastChild.createdOn);
|
|
20709
|
-
}
|
|
20710
|
-
// 4. If RESPOND exists, get latest FOLLOWUP
|
|
20711
|
-
// If no RESPOND, but there is at least one FOLLOWUP, return the last FOLLOWUP
|
|
20712
|
-
const lastFollowUp = [...this.children]
|
|
20713
|
-
.reverse()
|
|
20714
|
-
.find((child) => child.messageType === QueryCreateContext.FOLLOWUP);
|
|
20715
|
-
if (lastFollowUp) {
|
|
20716
|
-
return new Date(lastFollowUp.createdOn);
|
|
20717
|
-
}
|
|
20718
|
-
// 5. Legacy fallback: no messageType at all
|
|
20719
|
-
if (allChildrenLackMessageType) {
|
|
20720
|
-
const index = childrenCount % 2 === 0 ? childrenCount - 1 : childrenCount - 2;
|
|
20721
|
-
return new Date(this.children[index]?.createdOn);
|
|
20696
|
+
let index;
|
|
20697
|
+
if (childrenCount > 1) {
|
|
20698
|
+
index = childrenCount % 2 === 0 ? childrenCount - 1 : childrenCount - 2;
|
|
20722
20699
|
}
|
|
20723
|
-
|
|
20724
|
-
return new Date(this.lastSubmittedMessage.createdOn);
|
|
20700
|
+
return new Date(this.children[index].createdOn);
|
|
20725
20701
|
}
|
|
20726
20702
|
get lastResponseBy() {
|
|
20727
20703
|
return this.children?.length > 0 ? this.lastSubmittedMessage.name : '';
|
|
@@ -20731,11 +20707,6 @@ class QueryListItem {
|
|
|
20731
20707
|
if (childrenCount === 0) {
|
|
20732
20708
|
return null;
|
|
20733
20709
|
}
|
|
20734
|
-
const lastChild = this.children[childrenCount - 1];
|
|
20735
|
-
if (lastChild?.messageType === QueryCreateContext.FOLLOWUP &&
|
|
20736
|
-
!this.children.some((child) => child.messageType === QueryCreateContext.RESPOND)) {
|
|
20737
|
-
return null;
|
|
20738
|
-
}
|
|
20739
20710
|
let index;
|
|
20740
20711
|
if (childrenCount === 1) {
|
|
20741
20712
|
index = 0;
|
|
@@ -20750,20 +20721,11 @@ class QueryListItem {
|
|
|
20750
20721
|
if (item.isClosed === 'Yes') {
|
|
20751
20722
|
return true;
|
|
20752
20723
|
}
|
|
20753
|
-
return item.children?.some(
|
|
20724
|
+
return item.children?.some(child => isThreadClosed(child)) || false;
|
|
20754
20725
|
};
|
|
20755
20726
|
if (isThreadClosed(this)) {
|
|
20756
20727
|
return QueryItemResponseStatus.CLOSED;
|
|
20757
20728
|
}
|
|
20758
|
-
const lastMessageType = this.children?.length
|
|
20759
|
-
? this.children[this.children.length - 1]?.messageType
|
|
20760
|
-
: undefined;
|
|
20761
|
-
if (lastMessageType && lastMessageType === QueryCreateContext.RESPOND) {
|
|
20762
|
-
return QueryItemResponseStatus.RESPONDED;
|
|
20763
|
-
}
|
|
20764
|
-
else if (lastMessageType && lastMessageType === QueryCreateContext.FOLLOWUP) {
|
|
20765
|
-
return QueryItemResponseStatus.AWAITING;
|
|
20766
|
-
}
|
|
20767
20729
|
if (this.messageIndexInParent !== null) {
|
|
20768
20730
|
return this.messageIndexInParent % 2 === 0
|
|
20769
20731
|
? QueryItemResponseStatus.RESPONDED
|
|
@@ -20852,22 +20814,16 @@ class QueryManagementUtils {
|
|
|
20852
20814
|
isHearingRelated,
|
|
20853
20815
|
hearingDate,
|
|
20854
20816
|
createdOn: new Date(),
|
|
20855
|
-
createdBy: currentUserId
|
|
20856
|
-
messageType: QueryCreateContext.FOLLOWUP // Default to value new queries will be FOLLOWUP
|
|
20817
|
+
createdBy: currentUserId
|
|
20857
20818
|
};
|
|
20858
20819
|
}
|
|
20859
|
-
static getRespondOrFollowupQueryData(formGroup, queryItem, currentUserDetails
|
|
20820
|
+
static getRespondOrFollowupQueryData(formGroup, queryItem, currentUserDetails) {
|
|
20860
20821
|
const currentUserId = currentUserDetails?.uid || currentUserDetails?.id;
|
|
20861
20822
|
const currentUserName = currentUserDetails?.name || `${currentUserDetails?.forename} ${currentUserDetails?.surname}`;
|
|
20862
20823
|
const body = formGroup.get('body').value.trim();
|
|
20863
20824
|
const attachments = formGroup.get('attachments').value;
|
|
20864
20825
|
const formDocument = attachments.map((document) => this.documentToCollectionFormDocument(document));
|
|
20865
20826
|
const isClosed = formGroup.get('closeQuery').value ? 'Yes' : 'No';
|
|
20866
|
-
const messageType = messageTypeParam === QueryCreateContext.RESPOND
|
|
20867
|
-
? QueryCreateContext.RESPOND
|
|
20868
|
-
: messageTypeParam === QueryCreateContext.FOLLOWUP
|
|
20869
|
-
? QueryCreateContext.FOLLOWUP
|
|
20870
|
-
: undefined;
|
|
20871
20827
|
return {
|
|
20872
20828
|
id: v4(),
|
|
20873
20829
|
subject: queryItem.subject.trim(),
|
|
@@ -20879,8 +20835,7 @@ class QueryManagementUtils {
|
|
|
20879
20835
|
createdOn: new Date(),
|
|
20880
20836
|
createdBy: currentUserId,
|
|
20881
20837
|
parentId: queryItem.id,
|
|
20882
|
-
isClosed
|
|
20883
|
-
messageType
|
|
20838
|
+
isClosed
|
|
20884
20839
|
};
|
|
20885
20840
|
}
|
|
20886
20841
|
static isObject(elem) {
|
|
@@ -20928,7 +20883,7 @@ class QueryManagementService {
|
|
|
20928
20883
|
}
|
|
20929
20884
|
const caseMessage = queryCreateContext === QueryCreateContext.NEW_QUERY
|
|
20930
20885
|
? QueryManagementUtils.getNewQueryData(formGroup, currentUserDetails)
|
|
20931
|
-
: QueryManagementUtils.getRespondOrFollowupQueryData(formGroup, queryItem, currentUserDetails
|
|
20886
|
+
: QueryManagementUtils.getRespondOrFollowupQueryData(formGroup, queryItem, currentUserDetails);
|
|
20932
20887
|
const isNewQuery = queryCreateContext === QueryCreateContext.NEW_QUERY; // Check if this is a new query
|
|
20933
20888
|
// Check if the field ID has been set dynamically
|
|
20934
20889
|
if (!this.fieldId) {
|
|
@@ -21667,7 +21622,6 @@ class QueryCheckYourAnswersComponent {
|
|
|
21667
21622
|
queryItem;
|
|
21668
21623
|
queryCreateContext;
|
|
21669
21624
|
eventData = null;
|
|
21670
|
-
multipleFollowUpFeature;
|
|
21671
21625
|
qmCaseQueriesCollectionData;
|
|
21672
21626
|
backClicked = new EventEmitter();
|
|
21673
21627
|
querySubmitted = new EventEmitter();
|
|
@@ -21861,7 +21815,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
21861
21815
|
this.queryManagementService.setCaseQueriesCollectionData(this.eventData, this.queryCreateContext, this.caseDetails, this.messageId);
|
|
21862
21816
|
}
|
|
21863
21817
|
static ɵfac = function QueryCheckYourAnswersComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryCheckYourAnswersComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(WorkAllocationService), i0.ɵɵdirectiveInject(QualifyingQuestionService), i0.ɵɵdirectiveInject(QueryManagementService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(AlertService)); };
|
|
21864
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData",
|
|
21818
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData", qmCaseQueriesCollectionData: "qmCaseQueriesCollectionData" }, outputs: { backClicked: "backClicked", querySubmitted: "querySubmitted", callbackConfirmationMessage: "callbackConfirmationMessage" }, decls: 1, vars: 1, consts: [["defaultCheckYourAnswersTitle", ""], ["isHearingRelatedFalse", ""], ["class", "govuk-grid-row", 4, "ngIf"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsSubject"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", "type", "submit", 1, "govuk-button", 3, "click"], [3, "eventCompletionParams"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0)", 1, "validation-error", 3, "id"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "event_error-summary-heading", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21865
21819
|
i0.ɵɵtemplate(0, QueryCheckYourAnswersComponent_div_0_Template, 36, 25, "div", 2);
|
|
21866
21820
|
} if (rf & 2) {
|
|
21867
21821
|
i0.ɵɵproperty("ngIf", ctx.readyToSubmit);
|
|
@@ -21878,8 +21832,6 @@ class QueryCheckYourAnswersComponent {
|
|
|
21878
21832
|
type: Input
|
|
21879
21833
|
}], eventData: [{
|
|
21880
21834
|
type: Input
|
|
21881
|
-
}], multipleFollowUpFeature: [{
|
|
21882
|
-
type: Input
|
|
21883
21835
|
}], qmCaseQueriesCollectionData: [{
|
|
21884
21836
|
type: Input
|
|
21885
21837
|
}], backClicked: [{
|
|
@@ -22101,12 +22053,10 @@ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_Tem
|
|
|
22101
22053
|
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_Template, 23, 19, "ng-container", 15)(2, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_Template, 27, 22, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
22102
22054
|
i0.ɵɵelementContainerEnd();
|
|
22103
22055
|
} if (rf & 2) {
|
|
22104
|
-
const child_r3 = ctx.$implicit;
|
|
22105
22056
|
const i_r4 = ctx.index;
|
|
22106
22057
|
const followUpMessage_r5 = i0.ɵɵreference(3);
|
|
22107
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
22108
22058
|
i0.ɵɵadvance();
|
|
22109
|
-
i0.ɵɵproperty("ngIf", i_r4 % 2 === 0
|
|
22059
|
+
i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
|
|
22110
22060
|
} }
|
|
22111
22061
|
function QueryDetailsComponent_ng_container_0_ng_container_44_Template(rf, ctx) { if (rf & 1) {
|
|
22112
22062
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -22210,8 +22160,6 @@ class QueryDetailsComponent {
|
|
|
22210
22160
|
sessionStorageService;
|
|
22211
22161
|
route;
|
|
22212
22162
|
router;
|
|
22213
|
-
abstractConfig;
|
|
22214
|
-
caseNotifier;
|
|
22215
22163
|
query;
|
|
22216
22164
|
caseId;
|
|
22217
22165
|
queryResponseStatus;
|
|
@@ -22221,18 +22169,10 @@ class QueryDetailsComponent {
|
|
|
22221
22169
|
static QUERY_ITEM_RESPOND = '3';
|
|
22222
22170
|
static QUERY_ITEM_FOLLOW_UP = '4';
|
|
22223
22171
|
queryItemId;
|
|
22224
|
-
|
|
22225
|
-
respondToQuery = QueryCreateContext.RESPOND;
|
|
22226
|
-
enableServiceSpecificMultiFollowups;
|
|
22227
|
-
currentJurisdictionId;
|
|
22228
|
-
isMultipleFollowUpEnabled = false;
|
|
22229
|
-
caseSubscription;
|
|
22230
|
-
constructor(sessionStorageService, route, router, abstractConfig, caseNotifier) {
|
|
22172
|
+
constructor(sessionStorageService, route, router) {
|
|
22231
22173
|
this.sessionStorageService = sessionStorageService;
|
|
22232
22174
|
this.route = route;
|
|
22233
22175
|
this.router = router;
|
|
22234
|
-
this.abstractConfig = abstractConfig;
|
|
22235
|
-
this.caseNotifier = caseNotifier;
|
|
22236
22176
|
}
|
|
22237
22177
|
onBack() {
|
|
22238
22178
|
this.backClicked.emit(true);
|
|
@@ -22240,23 +22180,10 @@ class QueryDetailsComponent {
|
|
|
22240
22180
|
isInternalUser() {
|
|
22241
22181
|
return isInternalUser(this.sessionStorageService);
|
|
22242
22182
|
}
|
|
22243
|
-
ngOnInit() {
|
|
22244
|
-
this.enableServiceSpecificMultiFollowups = this.abstractConfig.getEnableServiceSpecificMultiFollowups() || [];
|
|
22245
|
-
this.caseSubscription = this.caseNotifier.caseView.subscribe((caseView) => {
|
|
22246
|
-
if (caseView?.case_type?.jurisdiction?.id) {
|
|
22247
|
-
this.currentJurisdictionId = caseView.case_type.jurisdiction.id;
|
|
22248
|
-
this.isMultipleFollowUpEnabled = this.enableServiceSpecificMultiFollowups.includes(this.currentJurisdictionId);
|
|
22249
|
-
this.hasRespondedToQuery();
|
|
22250
|
-
}
|
|
22251
|
-
});
|
|
22252
|
-
}
|
|
22253
22183
|
ngOnChanges() {
|
|
22254
22184
|
this.toggleLinkVisibility();
|
|
22255
22185
|
this.hasRespondedToQuery();
|
|
22256
22186
|
}
|
|
22257
|
-
ngOnDestroy() {
|
|
22258
|
-
this.caseSubscription?.unsubscribe();
|
|
22259
|
-
}
|
|
22260
22187
|
toggleLinkVisibility() {
|
|
22261
22188
|
this.queryItemId = this.route.snapshot.params.qid;
|
|
22262
22189
|
if (this.queryItemId === QueryDetailsComponent.QUERY_ITEM_RESPOND || this.queryItemId === QueryDetailsComponent.QUERY_ITEM_FOLLOW_UP) {
|
|
@@ -22269,24 +22196,6 @@ class QueryDetailsComponent {
|
|
|
22269
22196
|
this.hasResponded.emit(true);
|
|
22270
22197
|
return true;
|
|
22271
22198
|
}
|
|
22272
|
-
const lastChild = this.query?.children?.[this.query.children.length - 1];
|
|
22273
|
-
const lastMessageType = this.query?.children?.length
|
|
22274
|
-
? this.query.children[this.query.children.length - 1]?.messageType
|
|
22275
|
-
: this.query?.messageType;
|
|
22276
|
-
const isFollowUp = lastMessageType === this.followUpQuery;
|
|
22277
|
-
const isRespond = lastChild?.messageType === this.respondToQuery;
|
|
22278
|
-
if (this.queryResponseStatus === QueryItemResponseStatus.CLOSED) {
|
|
22279
|
-
this.hasResponded.emit(true);
|
|
22280
|
-
return true;
|
|
22281
|
-
}
|
|
22282
|
-
if (isFollowUp && this.isMultipleFollowUpEnabled) {
|
|
22283
|
-
this.hasResponded.emit(false);
|
|
22284
|
-
return false;
|
|
22285
|
-
}
|
|
22286
|
-
if (isRespond) {
|
|
22287
|
-
this.hasResponded.emit(false);
|
|
22288
|
-
return false;
|
|
22289
|
-
}
|
|
22290
22199
|
if (this.isInternalUser()) {
|
|
22291
22200
|
if (isAwaiting) {
|
|
22292
22201
|
this.hasResponded.emit(false);
|
|
@@ -22302,7 +22211,7 @@ class QueryDetailsComponent {
|
|
|
22302
22211
|
this.hasResponded.emit(false);
|
|
22303
22212
|
return false;
|
|
22304
22213
|
}
|
|
22305
|
-
static ɵfac = function QueryDetailsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)
|
|
22214
|
+
static ɵfac = function QueryDetailsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
|
|
22306
22215
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId", queryResponseStatus: "queryResponseStatus" }, outputs: { backClicked: "backClicked", hasResponded: "hasResponded" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22307
22216
|
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 45, 41, "ng-container", 1);
|
|
22308
22217
|
} if (rf & 2) {
|
|
@@ -22311,8 +22220,8 @@ class QueryDetailsComponent {
|
|
|
22311
22220
|
}
|
|
22312
22221
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
22313
22222
|
type: Component,
|
|
22314
|
-
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <p *ngIf=\"showItem\">\n <br />\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">{{ 'Back to query list' | rpxTranslate }}</a>\n </p>\n <div>\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Details of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Query details' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.lastSubmittedBy }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.createdOn | date: 'dd MMMM YYYY HH:mm' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"
|
|
22315
|
-
}], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }
|
|
22223
|
+
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <p *ngIf=\"showItem\">\n <br />\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">{{ 'Back to query list' | rpxTranslate }}</a>\n </p>\n <div>\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Details of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Query details' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.lastSubmittedBy }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.createdOn | date: 'dd MMMM YYYY HH:mm' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMMM YYYY HH:mm' }}</td>\n </tr>\n\n <tr *ngIf=\"isInternalUser()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <!-- <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div> -->\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMMM YYYY HH:mm'}}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
|
|
22224
|
+
}], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
|
|
22316
22225
|
type: Input
|
|
22317
22226
|
}], caseId: [{
|
|
22318
22227
|
type: Input
|
|
@@ -22323,7 +22232,7 @@ class QueryDetailsComponent {
|
|
|
22323
22232
|
}], hasResponded: [{
|
|
22324
22233
|
type: Output
|
|
22325
22234
|
}] }); })();
|
|
22326
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber:
|
|
22235
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber: 14 }); })();
|
|
22327
22236
|
|
|
22328
22237
|
class QueryEventCompletionComponent {
|
|
22329
22238
|
eventCompletionParams;
|
|
@@ -23399,7 +23308,7 @@ class CloseQueryComponent {
|
|
|
23399
23308
|
const _c0$B = (a0, a1) => ["/query-management", "query", a0, "4", a1];
|
|
23400
23309
|
function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
23401
23310
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
23402
|
-
i0.ɵɵelementStart(0, "div",
|
|
23311
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "ccd-query-list", 6);
|
|
23403
23312
|
i0.ɵɵlistener("selectedQuery", function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template_ccd_query_list_selectedQuery_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.setQuery($event)); });
|
|
23404
23313
|
i0.ɵɵelementEnd()();
|
|
23405
23314
|
} if (rf & 2) {
|
|
@@ -23409,7 +23318,7 @@ function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_T
|
|
|
23409
23318
|
} }
|
|
23410
23319
|
function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
23411
23320
|
i0.ɵɵelementContainerStart(0);
|
|
23412
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template, 2, 1, "div",
|
|
23321
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template, 2, 1, "div", 4);
|
|
23413
23322
|
i0.ɵɵelementContainerEnd();
|
|
23414
23323
|
} if (rf & 2) {
|
|
23415
23324
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -23418,7 +23327,7 @@ function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_Templat
|
|
|
23418
23327
|
} }
|
|
23419
23328
|
function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
23420
23329
|
i0.ɵɵelementContainerStart(0);
|
|
23421
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_Template, 2, 1, "ng-container",
|
|
23330
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_Template, 2, 1, "ng-container", 3);
|
|
23422
23331
|
i0.ɵɵelementContainerEnd();
|
|
23423
23332
|
} if (rf & 2) {
|
|
23424
23333
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -23427,7 +23336,7 @@ function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if
|
|
|
23427
23336
|
} }
|
|
23428
23337
|
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
23429
23338
|
i0.ɵɵelementContainerStart(0);
|
|
23430
|
-
i0.ɵɵelementStart(1, "button",
|
|
23339
|
+
i0.ɵɵelementStart(1, "button", 9);
|
|
23431
23340
|
i0.ɵɵtext(2);
|
|
23432
23341
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23433
23342
|
i0.ɵɵelementEnd();
|
|
@@ -23439,22 +23348,8 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_conta
|
|
|
23439
23348
|
i0.ɵɵadvance();
|
|
23440
23349
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
|
|
23441
23350
|
} }
|
|
23442
|
-
function
|
|
23443
|
-
i0.ɵɵ
|
|
23444
|
-
i0.ɵɵelementStart(1, "button", 10);
|
|
23445
|
-
i0.ɵɵtext(2);
|
|
23446
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23447
|
-
i0.ɵɵelementEnd();
|
|
23448
|
-
i0.ɵɵelementContainerEnd();
|
|
23449
|
-
} if (rf & 2) {
|
|
23450
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
23451
|
-
i0.ɵɵadvance();
|
|
23452
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$B, ctx_r1.caseId, ctx_r1.query.id));
|
|
23453
|
-
i0.ɵɵadvance();
|
|
23454
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
|
|
23455
|
-
} }
|
|
23456
|
-
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
23457
|
-
i0.ɵɵelementStart(0, "div")(1, "p", 11);
|
|
23351
|
+
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
23352
|
+
i0.ɵɵelementStart(0, "div")(1, "p", 10);
|
|
23458
23353
|
i0.ɵɵtext(2);
|
|
23459
23354
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23460
23355
|
i0.ɵɵelementEnd();
|
|
@@ -23468,32 +23363,25 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
|
|
|
23468
23363
|
i0.ɵɵadvance(3);
|
|
23469
23364
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Our team will read your query and respond. Do not submit the same query more than once."));
|
|
23470
23365
|
} }
|
|
23471
|
-
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
23472
|
-
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_ng_container_0_Template, 4, 7, "ng-container", 3)(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_ng_template_1_Template, 7, 6, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
23473
|
-
} if (rf & 2) {
|
|
23474
|
-
const queryIsInReview_r5 = i0.ɵɵreference(2);
|
|
23475
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
23476
|
-
i0.ɵɵproperty("ngIf", (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0 && (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) % 2 === 1)("ngIfElse", queryIsInReview_r5);
|
|
23477
|
-
} }
|
|
23478
23366
|
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
23479
23367
|
i0.ɵɵelementContainerStart(0);
|
|
23480
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_container_1_Template, 4, 7, "ng-container",
|
|
23368
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_container_1_Template, 4, 7, "ng-container", 2)(2, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_Template, 7, 6, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
23481
23369
|
i0.ɵɵelementContainerEnd();
|
|
23482
23370
|
} if (rf & 2) {
|
|
23483
|
-
const
|
|
23371
|
+
const queryIsInReview_r5 = i0.ɵɵreference(3);
|
|
23484
23372
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
23485
23373
|
i0.ɵɵadvance();
|
|
23486
|
-
i0.ɵɵproperty("ngIf", ctx_r1.
|
|
23374
|
+
i0.ɵɵproperty("ngIf", (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0 && (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) % 2 === 1)("ngIfElse", queryIsInReview_r5);
|
|
23487
23375
|
} }
|
|
23488
23376
|
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
23489
23377
|
i0.ɵɵelementContainerStart(0);
|
|
23490
|
-
i0.ɵɵelementStart(1, "div",
|
|
23378
|
+
i0.ɵɵelementStart(1, "div", 11)(2, "span", 12);
|
|
23491
23379
|
i0.ɵɵtext(3, "!");
|
|
23492
23380
|
i0.ɵɵelementEnd();
|
|
23493
|
-
i0.ɵɵelementStart(4, "strong",
|
|
23381
|
+
i0.ɵɵelementStart(4, "strong", 13)(5, "span", 14);
|
|
23494
23382
|
i0.ɵɵtext(6, "Warning");
|
|
23495
23383
|
i0.ɵɵelementEnd();
|
|
23496
|
-
i0.ɵɵelementStart(7, "p",
|
|
23384
|
+
i0.ɵɵelementStart(7, "p", 15);
|
|
23497
23385
|
i0.ɵɵtext(8);
|
|
23498
23386
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
23499
23387
|
i0.ɵɵelementEnd()()();
|
|
@@ -23504,10 +23392,10 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template
|
|
|
23504
23392
|
} }
|
|
23505
23393
|
function ReadQueryManagementFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
23506
23394
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
23507
|
-
i0.ɵɵelementStart(0, "ccd-query-details",
|
|
23395
|
+
i0.ɵɵelementStart(0, "ccd-query-details", 7);
|
|
23508
23396
|
i0.ɵɵlistener("backClicked", function ReadQueryManagementFieldComponent_ng_template_1_Template_ccd_query_details_backClicked_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.showQueryList = true); });
|
|
23509
23397
|
i0.ɵɵelementEnd();
|
|
23510
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container",
|
|
23398
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container", 8)(2, ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template, 10, 3, "ng-container", 8);
|
|
23511
23399
|
} if (rf & 2) {
|
|
23512
23400
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
23513
23401
|
i0.ɵɵproperty("query", ctx_r1.query)("caseId", ctx_r1.caseId);
|
|
@@ -23520,36 +23408,19 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
23520
23408
|
route;
|
|
23521
23409
|
sessionStorageService;
|
|
23522
23410
|
caseNotifier;
|
|
23523
|
-
abstractConfig;
|
|
23524
23411
|
caseQueriesCollections;
|
|
23525
23412
|
query;
|
|
23526
23413
|
showQueryList = true;
|
|
23527
23414
|
caseId;
|
|
23528
|
-
messageType;
|
|
23529
|
-
followUpQuery = QueryCreateContext.FOLLOWUP;
|
|
23530
|
-
respondToQuery = QueryCreateContext.RESPOND;
|
|
23531
23415
|
isQueryClosed = false;
|
|
23532
|
-
|
|
23533
|
-
isMultipleFollowUpEnabled = false;
|
|
23534
|
-
currentJurisdictionId;
|
|
23535
|
-
enableServiceSpecificMultiFollowups = [];
|
|
23536
|
-
caseSubscription;
|
|
23537
|
-
constructor(route, sessionStorageService, caseNotifier, abstractConfig) {
|
|
23416
|
+
constructor(route, sessionStorageService, caseNotifier) {
|
|
23538
23417
|
super();
|
|
23539
23418
|
this.route = route;
|
|
23540
23419
|
this.sessionStorageService = sessionStorageService;
|
|
23541
23420
|
this.caseNotifier = caseNotifier;
|
|
23542
|
-
this.abstractConfig = abstractConfig;
|
|
23543
23421
|
}
|
|
23544
23422
|
ngOnInit() {
|
|
23545
23423
|
this.caseId = this.route.snapshot.params.cid;
|
|
23546
|
-
this.enableServiceSpecificMultiFollowups = this.abstractConfig.getEnableServiceSpecificMultiFollowups() || [];
|
|
23547
|
-
this.caseSubscription = this.caseNotifier.caseView.subscribe((caseDetails) => {
|
|
23548
|
-
if (caseDetails?.case_type?.jurisdiction?.id) {
|
|
23549
|
-
this.currentJurisdictionId = caseDetails.case_type.jurisdiction.id;
|
|
23550
|
-
this.isMultipleFollowUpEnabled = this.enableServiceSpecificMultiFollowups.includes(this.currentJurisdictionId);
|
|
23551
|
-
}
|
|
23552
|
-
});
|
|
23553
23424
|
if (this.context === PaletteContext.DEFAULT) {
|
|
23554
23425
|
// EUI-8303 Using mock data until CCD is ready with the API and data contract
|
|
23555
23426
|
// this.caseQueriesCollections = caseMessagesMockData;
|
|
@@ -23575,13 +23446,9 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
23575
23446
|
// QueryManagementUtils.extractCaseQueriesFromCaseField();
|
|
23576
23447
|
}
|
|
23577
23448
|
}
|
|
23578
|
-
ngOnDestroy() {
|
|
23579
|
-
this.caseSubscription?.unsubscribe();
|
|
23580
|
-
}
|
|
23581
23449
|
setQuery(query) {
|
|
23582
23450
|
this.showQueryList = false;
|
|
23583
23451
|
this.query = query;
|
|
23584
|
-
this.messageType = this.getMessageType(query);
|
|
23585
23452
|
this.isQueryClosed = this.query?.children?.some((queryItem) => queryItem?.isClosed === 'Yes');
|
|
23586
23453
|
}
|
|
23587
23454
|
backToQueryListPage() {
|
|
@@ -23591,27 +23458,19 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
23591
23458
|
isInternalUser() {
|
|
23592
23459
|
return isInternalUser(this.sessionStorageService);
|
|
23593
23460
|
}
|
|
23594
|
-
|
|
23595
|
-
|
|
23596
|
-
|
|
23597
|
-
}
|
|
23598
|
-
return query.children?.length
|
|
23599
|
-
? query.children[query.children.length - 1]?.messageType
|
|
23600
|
-
: query?.messageType;
|
|
23601
|
-
}
|
|
23602
|
-
static ɵfac = function ReadQueryManagementFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
23603
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["singleQueryDetails", ""], ["sequentialQuery", ""], ["queryIsInReview", ""], [4, "ngIf", "ngIfElse"], [4, "ngFor", "ngForOf"], ["class", "govuk-!-margin-top-8 govuk-!-margin-bottom-8", 4, "ngIf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "selectedQuery", "caseQueriesCollection"], [3, "backClicked", "query", "caseId"], [4, "ngIf"], ["id", "ask-follow-up-question", "data-module", "govuk-button", 1, "govuk-button", 3, "routerLink"], [1, "govuk-!-font-weight-bold"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-visually-hidden"], [1, "qm-service-message", "govuk-!-font-weight-bold"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23604
|
-
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 3)(1, ReadQueryManagementFieldComponent_ng_template_1_Template, 3, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
23461
|
+
static ɵfac = function ReadQueryManagementFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
23462
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["singleQueryDetails", ""], ["queryIsInReview", ""], [4, "ngIf", "ngIfElse"], [4, "ngFor", "ngForOf"], ["class", "govuk-!-margin-top-8 govuk-!-margin-bottom-8", 4, "ngIf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "selectedQuery", "caseQueriesCollection"], [3, "backClicked", "query", "caseId"], [4, "ngIf"], ["id", "ask-follow-up-question", "data-module", "govuk-button", 1, "govuk-button", 3, "routerLink"], [1, "govuk-!-font-weight-bold"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-visually-hidden"], [1, "qm-service-message", "govuk-!-font-weight-bold"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23463
|
+
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template, 3, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
23605
23464
|
} if (rf & 2) {
|
|
23606
|
-
const
|
|
23607
|
-
i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse",
|
|
23465
|
+
const singleQueryDetails_r6 = i0.ɵɵreference(2);
|
|
23466
|
+
i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse", singleQueryDetails_r6);
|
|
23608
23467
|
} }, encapsulation: 2 });
|
|
23609
23468
|
}
|
|
23610
23469
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
23611
23470
|
type: Component,
|
|
23612
|
-
args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isInternalUser() && !isQueryClosed\">\n <ng-container *ngIf=\"
|
|
23613
|
-
}], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }
|
|
23614
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber:
|
|
23471
|
+
args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isInternalUser() && !isQueryClosed\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"isQueryClosed\">\n <div class=\"govuk-warning-text\">\n <span aria-hidden=\"true\" class=\"govuk-warning-text__icon\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">Warning</span>\n <p class=\"qm-service-message govuk-!-font-weight-bold\">{{ 'This query has been closed by HMCTS staff.' | rpxTranslate }}</p>\n </strong>\n </div>\n </ng-container>\n</ng-template>\n" }]
|
|
23472
|
+
}], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
|
|
23473
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 15 }); })();
|
|
23615
23474
|
|
|
23616
23475
|
class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
|
|
23617
23476
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextAreaFieldComponent_BaseFactory; return function ReadTextAreaFieldComponent_Factory(__ngFactoryType__) { return (ɵReadTextAreaFieldComponent_BaseFactory || (ɵReadTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent)))(__ngFactoryType__ || ReadTextAreaFieldComponent); }; })();
|
|
@@ -24650,20 +24509,18 @@ class CaseFileViewFolderSortComponent {
|
|
|
24650
24509
|
sortDescending = new EventEmitter();
|
|
24651
24510
|
overlayMenuItems = [
|
|
24652
24511
|
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) },
|
|
24653
|
-
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) }
|
|
24512
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) }
|
|
24654
24513
|
];
|
|
24655
24514
|
constructor(appConfig) {
|
|
24656
24515
|
this.appConfig = appConfig;
|
|
24657
24516
|
}
|
|
24658
24517
|
ngOnInit() {
|
|
24659
|
-
|
|
24660
|
-
this.
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
];
|
|
24666
|
-
}
|
|
24518
|
+
this.overlayMenuItems = [
|
|
24519
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) },
|
|
24520
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) },
|
|
24521
|
+
{ actionText: 'Recent first', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) },
|
|
24522
|
+
{ actionText: 'Oldest first', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) }
|
|
24523
|
+
];
|
|
24667
24524
|
}
|
|
24668
24525
|
static ɵfac = function CaseFileViewFolderSortComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFolderSortComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
24669
24526
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderSortComponent, selectors: [["ccd-case-file-view-folder-sort"]], outputs: { sortAscending: "sortAscending", sortDescending: "sortDescending" }, decls: 3, vars: 3, consts: [[3, "isOpenChange", "title", "menuItems", "isOpen"], ["trigger", ""], ["src", "/assets/img/sort/sort-arrows.svg", "alt", "Sort Arrows", 1, "sort-button-icon"]], template: function CaseFileViewFolderSortComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -25062,8 +24919,7 @@ class CaseFileViewFolderComponent {
|
|
|
25062
24919
|
documentTreeNode.document_filename = document.document_filename;
|
|
25063
24920
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
25064
24921
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
25065
|
-
documentTreeNode.upload_timestamp =
|
|
25066
|
-
&& document.upload_timestamp ? document.upload_timestamp.toString() : '';
|
|
24922
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? document.upload_timestamp.toString() : '';
|
|
25067
24923
|
documentsToReturn.push(documentTreeNode);
|
|
25068
24924
|
});
|
|
25069
24925
|
return documentsToReturn;
|
|
@@ -25077,8 +24933,7 @@ class CaseFileViewFolderComponent {
|
|
|
25077
24933
|
documentTreeNode.document_filename = document.document_filename;
|
|
25078
24934
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
25079
24935
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
25080
|
-
documentTreeNode.upload_timestamp =
|
|
25081
|
-
&& document.upload_timestamp ? document.upload_timestamp.toString() : '';
|
|
24936
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? document.upload_timestamp.toString() : '';
|
|
25082
24937
|
documents.push(documentTreeNode);
|
|
25083
24938
|
});
|
|
25084
24939
|
const uncategorisedNode = new DocumentTreeNode();
|