@hmcts/ccd-case-ui-toolkit 7.4.28-hmcts-new-query → 7.4.29-hmcts-new-query
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.
|
@@ -23352,7 +23352,7 @@ class QueryManagementUtils {
|
|
|
23352
23352
|
messageType: QueryCreateContext.FOLLOWUP // Default to value new queries will be FOLLOWUP
|
|
23353
23353
|
};
|
|
23354
23354
|
// TODO HMCTS_QUERY_USER_TYPE: Enable when isHmctsStaff persistence is supported by the query data contract.
|
|
23355
|
-
|
|
23355
|
+
this.setHmctsStaffStatus(message, isHmctsStaff);
|
|
23356
23356
|
return message;
|
|
23357
23357
|
}
|
|
23358
23358
|
static getRespondOrFollowupQueryData(formGroup, queryItem, currentUserDetails, messageTypeParam, isHmctsStaff) {
|
|
@@ -24859,7 +24859,9 @@ class QueryDetailsComponent {
|
|
|
24859
24859
|
return false;
|
|
24860
24860
|
}
|
|
24861
24861
|
if (this.isInternalUser() || this.isJudiciaryUser()) {
|
|
24862
|
-
|
|
24862
|
+
const isUnansweredStaffQuery = this.query?.children?.length === 0
|
|
24863
|
+
&& this.query?.isHmctsStaff?.trim().toLowerCase() === 'yes';
|
|
24864
|
+
if (isAwaiting && !isUnansweredStaffQuery) {
|
|
24863
24865
|
this.hasResponded.emit(false);
|
|
24864
24866
|
return false;
|
|
24865
24867
|
}
|
|
@@ -24867,6 +24869,11 @@ class QueryDetailsComponent {
|
|
|
24867
24869
|
return true;
|
|
24868
24870
|
}
|
|
24869
24871
|
if (isAwaiting) {
|
|
24872
|
+
// This is for new query raised by HMCTS staff - there are no children, and the user is HMCTS staff, they haven't responded yet
|
|
24873
|
+
if (isFollowUp && this.query?.children?.length === 0 && this.query?.isHmctsStaff?.toLowerCase() === 'yes') {
|
|
24874
|
+
this.hasResponded.emit(false);
|
|
24875
|
+
return false;
|
|
24876
|
+
}
|
|
24870
24877
|
this.hasResponded.emit(true);
|
|
24871
24878
|
return false; // Don't show message
|
|
24872
24879
|
}
|
|
@@ -26168,7 +26175,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
|
|
|
26168
26175
|
} if (rf & 2) {
|
|
26169
26176
|
const queryIsInReview_r5 = i0.ɵɵreference(2);
|
|
26170
26177
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
26171
|
-
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);
|
|
26178
|
+
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 && (ctx_r1.query == null ? null : ctx_r1.query.isHmctsStaff == null ? null : ctx_r1.query.isHmctsStaff.toLowerCase()) !== "yes")("ngIfElse", queryIsInReview_r5);
|
|
26172
26179
|
} }
|
|
26173
26180
|
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
26174
26181
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -26178,7 +26185,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template
|
|
|
26178
26185
|
const sequentialQuery_r6 = i0.ɵɵreference(3);
|
|
26179
26186
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
26180
26187
|
i0.ɵɵadvance();
|
|
26181
|
-
i0.ɵɵproperty("ngIf", ctx_r1.messageType && ctx_r1.messageType === ctx_r1.followUpQuery && ctx_r1.isMultipleFollowUpEnabled || ctx_r1.messageType && ctx_r1.messageType === ctx_r1.respondToQuery || ctx_r1.messageType && ctx_r1.messageType === ctx_r1.followUpQuery && (ctx_r1.query == null ? null : ctx_r1.query.isHmctsStaff == null ? null : ctx_r1.query.isHmctsStaff.toLowerCase()) === "yes")("ngIfElse", sequentialQuery_r6);
|
|
26188
|
+
i0.ɵɵproperty("ngIf", ctx_r1.messageType && ctx_r1.messageType === ctx_r1.followUpQuery && ctx_r1.isMultipleFollowUpEnabled || ctx_r1.messageType && ctx_r1.messageType === ctx_r1.respondToQuery || ctx_r1.messageType && ctx_r1.messageType === ctx_r1.followUpQuery && (ctx_r1.query == null ? null : ctx_r1.query.isHmctsStaff == null ? null : ctx_r1.query.isHmctsStaff.toLowerCase()) === "yes" && (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) === 0)("ngIfElse", sequentialQuery_r6);
|
|
26182
26189
|
} }
|
|
26183
26190
|
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
26184
26191
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -26307,7 +26314,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
26307
26314
|
}
|
|
26308
26315
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
26309
26316
|
type: Component,
|
|
26310
|
-
args: [{ selector: 'ccd-read-query-management-field', standalone: false, 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 && !isJudiciaryUser()\">\n <ng-container *ngIf=\"(messageType && messageType === followUpQuery && isMultipleFollowUpEnabled) ||\n (messageType && messageType === respondToQuery) || (messageType && messageType === followUpQuery && query?.isHmctsStaff?.toLowerCase() === 'yes'); else sequentialQuery\">\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 <ng-template #sequentialQuery>\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-template>\n\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" }]
|
|
26317
|
+
args: [{ selector: 'ccd-read-query-management-field', standalone: false, 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 && !isJudiciaryUser()\">\n <ng-container *ngIf=\"(messageType && messageType === followUpQuery && isMultipleFollowUpEnabled) ||\n (messageType && messageType === respondToQuery) || (messageType && messageType === followUpQuery && query?.isHmctsStaff?.toLowerCase() === 'yes' && query?.children?.length === 0); else sequentialQuery\">\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 <ng-template #sequentialQuery>\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1 && query?.isHmctsStaff?.toLowerCase() !== 'yes'; 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-template>\n\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" }]
|
|
26311
26318
|
}], () => [{ type: i1$2.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }, { type: AbstractAppConfig }], null); })();
|
|
26312
26319
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 19 }); })();
|
|
26313
26320
|
|