@hmcts/ccd-case-ui-toolkit 7.2.26-multiple-followup → 7.2.26
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/case-header/case-header.component.mjs +5 -5
- package/esm2022/lib/shared/components/palette/organisation/read-organisation-field-raw.component.mjs +21 -25
- package/esm2022/lib/shared/components/palette/organisation/read-organisation-field-table.component.mjs +21 -25
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +3 -6
- 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 +2 -13
- package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +24 -77
- package/esm2022/lib/shared/components/palette/query-management/utils/query-management.utils.mjs +4 -12
- package/esm2022/lib/shared/components/palette/utils/field-label.pipe.mjs +11 -3
- package/esm2022/lib/shared/utils.mjs +1 -1
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +89 -203
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/app.config.d.ts +0 -2
- package/lib/app.config.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/components/palette/utils/field-label.pipe.d.ts +1 -0
- package/lib/shared/components/palette/utils/field-label.pipe.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 {
|
|
@@ -2925,11 +2924,19 @@ class FieldLabelPipe {
|
|
|
2925
2924
|
return '';
|
|
2926
2925
|
}
|
|
2927
2926
|
else if (!field.display_context) {
|
|
2928
|
-
return this.
|
|
2927
|
+
return this.getTranslatedLabel(field);
|
|
2929
2928
|
}
|
|
2930
|
-
return this.
|
|
2929
|
+
return this.getTranslatedLabel(field) + (field.display_context.toUpperCase() === 'OPTIONAL' ?
|
|
2931
2930
|
' (' + this.rpxTranslationPipe.transform('Optional') + ')' : '');
|
|
2932
2931
|
}
|
|
2932
|
+
getTranslatedLabel(field) {
|
|
2933
|
+
if (!field.isTranslated) {
|
|
2934
|
+
return this.rpxTranslationPipe.transform(field.label);
|
|
2935
|
+
}
|
|
2936
|
+
else {
|
|
2937
|
+
return field.label;
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2933
2940
|
static ɵfac = function FieldLabelPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FieldLabelPipe)(i0.ɵɵdirectiveInject(i1.RpxTranslatePipe, 16)); };
|
|
2934
2941
|
static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "ccdFieldLabel", type: FieldLabelPipe, pure: false });
|
|
2935
2942
|
}
|
|
@@ -20905,7 +20912,6 @@ class QueryListItem {
|
|
|
20905
20912
|
createdBy;
|
|
20906
20913
|
parentId;
|
|
20907
20914
|
isClosed;
|
|
20908
|
-
messageType;
|
|
20909
20915
|
children = [];
|
|
20910
20916
|
messageIndexInParent = null;
|
|
20911
20917
|
get lastSubmittedMessage() {
|
|
@@ -20963,20 +20969,11 @@ class QueryListItem {
|
|
|
20963
20969
|
if (item.isClosed === 'Yes') {
|
|
20964
20970
|
return true;
|
|
20965
20971
|
}
|
|
20966
|
-
return item.children?.some(
|
|
20972
|
+
return item.children?.some(child => isThreadClosed(child)) || false;
|
|
20967
20973
|
};
|
|
20968
20974
|
if (isThreadClosed(this)) {
|
|
20969
20975
|
return QueryItemResponseStatus.CLOSED;
|
|
20970
20976
|
}
|
|
20971
|
-
const lastMessageType = this.children?.length
|
|
20972
|
-
? this.children[this.children.length - 1]?.messageType
|
|
20973
|
-
: undefined;
|
|
20974
|
-
if (lastMessageType && lastMessageType === QueryCreateContext.RESPOND) {
|
|
20975
|
-
return QueryItemResponseStatus.RESPONDED;
|
|
20976
|
-
}
|
|
20977
|
-
else if (lastMessageType && lastMessageType === QueryCreateContext.FOLLOWUP) {
|
|
20978
|
-
return QueryItemResponseStatus.AWAITING;
|
|
20979
|
-
}
|
|
20980
20977
|
if (this.messageIndexInParent !== null) {
|
|
20981
20978
|
return this.messageIndexInParent % 2 === 0
|
|
20982
20979
|
? QueryItemResponseStatus.RESPONDED
|
|
@@ -21065,22 +21062,16 @@ class QueryManagementUtils {
|
|
|
21065
21062
|
isHearingRelated,
|
|
21066
21063
|
hearingDate,
|
|
21067
21064
|
createdOn: new Date(),
|
|
21068
|
-
createdBy: currentUserId
|
|
21069
|
-
messageType: QueryCreateContext.FOLLOWUP // Default to value new queries will be FOLLOWUP
|
|
21065
|
+
createdBy: currentUserId
|
|
21070
21066
|
};
|
|
21071
21067
|
}
|
|
21072
|
-
static getRespondOrFollowupQueryData(formGroup, queryItem, currentUserDetails
|
|
21068
|
+
static getRespondOrFollowupQueryData(formGroup, queryItem, currentUserDetails) {
|
|
21073
21069
|
const currentUserId = currentUserDetails?.uid || currentUserDetails?.id;
|
|
21074
21070
|
const currentUserName = currentUserDetails?.name || `${currentUserDetails?.forename} ${currentUserDetails?.surname}`;
|
|
21075
21071
|
const body = formGroup.get('body').value;
|
|
21076
21072
|
const attachments = formGroup.get('attachments').value;
|
|
21077
21073
|
const formDocument = attachments.map((document) => this.documentToCollectionFormDocument(document));
|
|
21078
21074
|
const isClosed = formGroup.get('closeQuery').value ? 'Yes' : 'No';
|
|
21079
|
-
const messageType = messageTypeParam === QueryCreateContext.RESPOND
|
|
21080
|
-
? QueryCreateContext.RESPOND
|
|
21081
|
-
: messageTypeParam === QueryCreateContext.FOLLOWUP
|
|
21082
|
-
? QueryCreateContext.FOLLOWUP
|
|
21083
|
-
: undefined;
|
|
21084
21075
|
return {
|
|
21085
21076
|
id: v4(),
|
|
21086
21077
|
subject: queryItem.subject,
|
|
@@ -21092,8 +21083,7 @@ class QueryManagementUtils {
|
|
|
21092
21083
|
createdOn: new Date(),
|
|
21093
21084
|
createdBy: currentUserId,
|
|
21094
21085
|
parentId: queryItem.id,
|
|
21095
|
-
isClosed
|
|
21096
|
-
messageType
|
|
21086
|
+
isClosed
|
|
21097
21087
|
};
|
|
21098
21088
|
}
|
|
21099
21089
|
static isObject(elem) {
|
|
@@ -21452,7 +21442,6 @@ class QueryCheckYourAnswersComponent {
|
|
|
21452
21442
|
queryItem;
|
|
21453
21443
|
queryCreateContext;
|
|
21454
21444
|
eventData = null;
|
|
21455
|
-
multipleFollowUpFeature;
|
|
21456
21445
|
backClicked = new EventEmitter();
|
|
21457
21446
|
querySubmitted = new EventEmitter();
|
|
21458
21447
|
callbackConfirmationMessage = new EventEmitter();
|
|
@@ -21625,7 +21614,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
21625
21614
|
const currentUserDetails = JSON.parse(this.sessionStorageService.getItem(USER_DETAILS));
|
|
21626
21615
|
const caseMessage = this.queryCreateContext === QueryCreateContext.NEW_QUERY
|
|
21627
21616
|
? QueryManagementUtils.getNewQueryData(this.formGroup, currentUserDetails)
|
|
21628
|
-
: QueryManagementUtils.getRespondOrFollowupQueryData(this.formGroup, this.queryItem, currentUserDetails
|
|
21617
|
+
: QueryManagementUtils.getRespondOrFollowupQueryData(this.formGroup, this.queryItem, currentUserDetails);
|
|
21629
21618
|
const messageId = this.route.snapshot.params.dataid; // Get the message ID from route params (if present)
|
|
21630
21619
|
const isNewQuery = this.queryCreateContext === QueryCreateContext.NEW_QUERY; // Check if this is a new query
|
|
21631
21620
|
// Check if the field ID has been set dynamically
|
|
@@ -21785,7 +21774,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
21785
21774
|
return !!(error?.callbackErrors?.length);
|
|
21786
21775
|
}
|
|
21787
21776
|
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(SessionStorageService), i0.ɵɵdirectiveInject(QualifyingQuestionService)); };
|
|
21788
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData"
|
|
21777
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData" }, 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) {
|
|
21789
21778
|
i0.ɵɵtemplate(0, QueryCheckYourAnswersComponent_div_0_Template, 36, 25, "div", 2);
|
|
21790
21779
|
} if (rf & 2) {
|
|
21791
21780
|
i0.ɵɵproperty("ngIf", ctx.readyToSubmit);
|
|
@@ -21802,8 +21791,6 @@ class QueryCheckYourAnswersComponent {
|
|
|
21802
21791
|
type: Input
|
|
21803
21792
|
}], eventData: [{
|
|
21804
21793
|
type: Input
|
|
21805
|
-
}], multipleFollowUpFeature: [{
|
|
21806
|
-
type: Input
|
|
21807
21794
|
}], backClicked: [{
|
|
21808
21795
|
type: Output
|
|
21809
21796
|
}], querySubmitted: [{
|
|
@@ -22023,12 +22010,10 @@ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_Tem
|
|
|
22023
22010
|
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);
|
|
22024
22011
|
i0.ɵɵelementContainerEnd();
|
|
22025
22012
|
} if (rf & 2) {
|
|
22026
|
-
const child_r3 = ctx.$implicit;
|
|
22027
22013
|
const i_r4 = ctx.index;
|
|
22028
22014
|
const followUpMessage_r5 = i0.ɵɵreference(3);
|
|
22029
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
22030
22015
|
i0.ɵɵadvance();
|
|
22031
|
-
i0.ɵɵproperty("ngIf", i_r4 % 2 === 0
|
|
22016
|
+
i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
|
|
22032
22017
|
} }
|
|
22033
22018
|
function QueryDetailsComponent_ng_container_0_ng_container_44_Template(rf, ctx) { if (rf & 1) {
|
|
22034
22019
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -22132,8 +22117,6 @@ class QueryDetailsComponent {
|
|
|
22132
22117
|
sessionStorageService;
|
|
22133
22118
|
route;
|
|
22134
22119
|
router;
|
|
22135
|
-
abstractConfig;
|
|
22136
|
-
caseNotifier;
|
|
22137
22120
|
query;
|
|
22138
22121
|
caseId;
|
|
22139
22122
|
queryResponseStatus;
|
|
@@ -22143,18 +22126,10 @@ class QueryDetailsComponent {
|
|
|
22143
22126
|
static QUERY_ITEM_RESPOND = '3';
|
|
22144
22127
|
static QUERY_ITEM_FOLLOW_UP = '4';
|
|
22145
22128
|
queryItemId;
|
|
22146
|
-
|
|
22147
|
-
respondToQuery = QueryCreateContext.RESPOND;
|
|
22148
|
-
enableServiceSpecificMultiFollowups;
|
|
22149
|
-
currentJurisdictionId;
|
|
22150
|
-
isMultipleFollowUpEnabled = false;
|
|
22151
|
-
caseSubscription;
|
|
22152
|
-
constructor(sessionStorageService, route, router, abstractConfig, caseNotifier) {
|
|
22129
|
+
constructor(sessionStorageService, route, router) {
|
|
22153
22130
|
this.sessionStorageService = sessionStorageService;
|
|
22154
22131
|
this.route = route;
|
|
22155
22132
|
this.router = router;
|
|
22156
|
-
this.abstractConfig = abstractConfig;
|
|
22157
|
-
this.caseNotifier = caseNotifier;
|
|
22158
22133
|
}
|
|
22159
22134
|
onBack() {
|
|
22160
22135
|
this.backClicked.emit(true);
|
|
@@ -22162,23 +22137,10 @@ class QueryDetailsComponent {
|
|
|
22162
22137
|
isInternalUser() {
|
|
22163
22138
|
return isInternalUser(this.sessionStorageService);
|
|
22164
22139
|
}
|
|
22165
|
-
ngOnInit() {
|
|
22166
|
-
this.enableServiceSpecificMultiFollowups = this.abstractConfig.getEnableServiceSpecificMultiFollowups() || [];
|
|
22167
|
-
this.caseSubscription = this.caseNotifier.caseView.subscribe((caseView) => {
|
|
22168
|
-
if (caseView?.case_type?.jurisdiction?.id) {
|
|
22169
|
-
this.currentJurisdictionId = caseView.case_type.jurisdiction.id;
|
|
22170
|
-
this.isMultipleFollowUpEnabled = this.enableServiceSpecificMultiFollowups.includes(this.currentJurisdictionId);
|
|
22171
|
-
this.hasRespondedToQuery();
|
|
22172
|
-
}
|
|
22173
|
-
});
|
|
22174
|
-
}
|
|
22175
22140
|
ngOnChanges() {
|
|
22176
22141
|
this.toggleLinkVisibility();
|
|
22177
22142
|
this.hasRespondedToQuery();
|
|
22178
22143
|
}
|
|
22179
|
-
ngOnDestroy() {
|
|
22180
|
-
this.caseSubscription?.unsubscribe();
|
|
22181
|
-
}
|
|
22182
22144
|
toggleLinkVisibility() {
|
|
22183
22145
|
this.queryItemId = this.route.snapshot.params.qid;
|
|
22184
22146
|
if (this.queryItemId === QueryDetailsComponent.QUERY_ITEM_RESPOND || this.queryItemId === QueryDetailsComponent.QUERY_ITEM_FOLLOW_UP) {
|
|
@@ -22191,24 +22153,6 @@ class QueryDetailsComponent {
|
|
|
22191
22153
|
this.hasResponded.emit(true);
|
|
22192
22154
|
return true;
|
|
22193
22155
|
}
|
|
22194
|
-
const lastChild = this.query?.children?.[this.query.children.length - 1];
|
|
22195
|
-
const lastMessageType = this.query?.children?.length
|
|
22196
|
-
? this.query.children[this.query.children.length - 1]?.messageType
|
|
22197
|
-
: this.query?.messageType;
|
|
22198
|
-
const isFollowUp = lastMessageType === this.followUpQuery;
|
|
22199
|
-
const isRespond = lastChild?.messageType === this.respondToQuery;
|
|
22200
|
-
if (this.queryResponseStatus === QueryItemResponseStatus.CLOSED) {
|
|
22201
|
-
this.hasResponded.emit(true);
|
|
22202
|
-
return true;
|
|
22203
|
-
}
|
|
22204
|
-
if (isFollowUp && this.isMultipleFollowUpEnabled) {
|
|
22205
|
-
this.hasResponded.emit(false);
|
|
22206
|
-
return false;
|
|
22207
|
-
}
|
|
22208
|
-
if (isRespond) {
|
|
22209
|
-
this.hasResponded.emit(false);
|
|
22210
|
-
return false;
|
|
22211
|
-
}
|
|
22212
22156
|
if (this.isInternalUser()) {
|
|
22213
22157
|
if (isAwaiting) {
|
|
22214
22158
|
this.hasResponded.emit(false);
|
|
@@ -22224,7 +22168,7 @@ class QueryDetailsComponent {
|
|
|
22224
22168
|
this.hasResponded.emit(false);
|
|
22225
22169
|
return false;
|
|
22226
22170
|
}
|
|
22227
|
-
static ɵfac = function QueryDetailsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)
|
|
22171
|
+
static ɵfac = function QueryDetailsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
|
|
22228
22172
|
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) {
|
|
22229
22173
|
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 45, 41, "ng-container", 1);
|
|
22230
22174
|
} if (rf & 2) {
|
|
@@ -22233,8 +22177,8 @@ class QueryDetailsComponent {
|
|
|
22233
22177
|
}
|
|
22234
22178
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
22235
22179
|
type: Component,
|
|
22236
|
-
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=\"
|
|
22237
|
-
}], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }
|
|
22180
|
+
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"] }]
|
|
22181
|
+
}], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
|
|
22238
22182
|
type: Input
|
|
22239
22183
|
}], caseId: [{
|
|
22240
22184
|
type: Input
|
|
@@ -22245,7 +22189,7 @@ class QueryDetailsComponent {
|
|
|
22245
22189
|
}], hasResponded: [{
|
|
22246
22190
|
type: Output
|
|
22247
22191
|
}] }); })();
|
|
22248
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber:
|
|
22192
|
+
(() => { (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 }); })();
|
|
22249
22193
|
|
|
22250
22194
|
class QueryEventCompletionComponent {
|
|
22251
22195
|
eventCompletionParams;
|
|
@@ -23244,7 +23188,7 @@ class CloseQueryComponent {
|
|
|
23244
23188
|
const _c0$B = (a0, a1) => ["/query-management", "query", a0, "4", a1];
|
|
23245
23189
|
function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
23246
23190
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
23247
|
-
i0.ɵɵelementStart(0, "div",
|
|
23191
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "ccd-query-list", 6);
|
|
23248
23192
|
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)); });
|
|
23249
23193
|
i0.ɵɵelementEnd()();
|
|
23250
23194
|
} if (rf & 2) {
|
|
@@ -23254,7 +23198,7 @@ function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_T
|
|
|
23254
23198
|
} }
|
|
23255
23199
|
function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
23256
23200
|
i0.ɵɵelementContainerStart(0);
|
|
23257
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template, 2, 1, "div",
|
|
23201
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template, 2, 1, "div", 4);
|
|
23258
23202
|
i0.ɵɵelementContainerEnd();
|
|
23259
23203
|
} if (rf & 2) {
|
|
23260
23204
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -23263,7 +23207,7 @@ function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_Templat
|
|
|
23263
23207
|
} }
|
|
23264
23208
|
function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
23265
23209
|
i0.ɵɵelementContainerStart(0);
|
|
23266
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_Template, 2, 1, "ng-container",
|
|
23210
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_Template, 2, 1, "ng-container", 3);
|
|
23267
23211
|
i0.ɵɵelementContainerEnd();
|
|
23268
23212
|
} if (rf & 2) {
|
|
23269
23213
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -23272,7 +23216,7 @@ function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if
|
|
|
23272
23216
|
} }
|
|
23273
23217
|
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
23274
23218
|
i0.ɵɵelementContainerStart(0);
|
|
23275
|
-
i0.ɵɵelementStart(1, "button",
|
|
23219
|
+
i0.ɵɵelementStart(1, "button", 9);
|
|
23276
23220
|
i0.ɵɵtext(2);
|
|
23277
23221
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23278
23222
|
i0.ɵɵelementEnd();
|
|
@@ -23284,22 +23228,8 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_conta
|
|
|
23284
23228
|
i0.ɵɵadvance();
|
|
23285
23229
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
|
|
23286
23230
|
} }
|
|
23287
|
-
function
|
|
23288
|
-
i0.ɵɵ
|
|
23289
|
-
i0.ɵɵelementStart(1, "button", 10);
|
|
23290
|
-
i0.ɵɵtext(2);
|
|
23291
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23292
|
-
i0.ɵɵelementEnd();
|
|
23293
|
-
i0.ɵɵelementContainerEnd();
|
|
23294
|
-
} if (rf & 2) {
|
|
23295
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
23296
|
-
i0.ɵɵadvance();
|
|
23297
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$B, ctx_r1.caseId, ctx_r1.query.id));
|
|
23298
|
-
i0.ɵɵadvance();
|
|
23299
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
|
|
23300
|
-
} }
|
|
23301
|
-
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
23302
|
-
i0.ɵɵelementStart(0, "div")(1, "p", 11);
|
|
23231
|
+
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
23232
|
+
i0.ɵɵelementStart(0, "div")(1, "p", 10);
|
|
23303
23233
|
i0.ɵɵtext(2);
|
|
23304
23234
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23305
23235
|
i0.ɵɵelementEnd();
|
|
@@ -23313,32 +23243,25 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
|
|
|
23313
23243
|
i0.ɵɵadvance(3);
|
|
23314
23244
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Our team will read your query and respond. Do not submit the same query more than once."));
|
|
23315
23245
|
} }
|
|
23316
|
-
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
23317
|
-
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);
|
|
23318
|
-
} if (rf & 2) {
|
|
23319
|
-
const queryIsInReview_r5 = i0.ɵɵreference(2);
|
|
23320
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
23321
|
-
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);
|
|
23322
|
-
} }
|
|
23323
23246
|
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
23324
23247
|
i0.ɵɵelementContainerStart(0);
|
|
23325
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_container_1_Template, 4, 7, "ng-container",
|
|
23248
|
+
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);
|
|
23326
23249
|
i0.ɵɵelementContainerEnd();
|
|
23327
23250
|
} if (rf & 2) {
|
|
23328
|
-
const
|
|
23251
|
+
const queryIsInReview_r5 = i0.ɵɵreference(3);
|
|
23329
23252
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
23330
23253
|
i0.ɵɵadvance();
|
|
23331
|
-
i0.ɵɵproperty("ngIf", ctx_r1.
|
|
23254
|
+
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);
|
|
23332
23255
|
} }
|
|
23333
23256
|
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
23334
23257
|
i0.ɵɵelementContainerStart(0);
|
|
23335
|
-
i0.ɵɵelementStart(1, "div",
|
|
23258
|
+
i0.ɵɵelementStart(1, "div", 11)(2, "span", 12);
|
|
23336
23259
|
i0.ɵɵtext(3, "!");
|
|
23337
23260
|
i0.ɵɵelementEnd();
|
|
23338
|
-
i0.ɵɵelementStart(4, "strong",
|
|
23261
|
+
i0.ɵɵelementStart(4, "strong", 13)(5, "span", 14);
|
|
23339
23262
|
i0.ɵɵtext(6, "Warning");
|
|
23340
23263
|
i0.ɵɵelementEnd();
|
|
23341
|
-
i0.ɵɵelementStart(7, "p",
|
|
23264
|
+
i0.ɵɵelementStart(7, "p", 15);
|
|
23342
23265
|
i0.ɵɵtext(8);
|
|
23343
23266
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
23344
23267
|
i0.ɵɵelementEnd()()();
|
|
@@ -23349,10 +23272,10 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template
|
|
|
23349
23272
|
} }
|
|
23350
23273
|
function ReadQueryManagementFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
23351
23274
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
23352
|
-
i0.ɵɵelementStart(0, "ccd-query-details",
|
|
23275
|
+
i0.ɵɵelementStart(0, "ccd-query-details", 7);
|
|
23353
23276
|
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); });
|
|
23354
23277
|
i0.ɵɵelementEnd();
|
|
23355
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container",
|
|
23278
|
+
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);
|
|
23356
23279
|
} if (rf & 2) {
|
|
23357
23280
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
23358
23281
|
i0.ɵɵproperty("query", ctx_r1.query)("caseId", ctx_r1.caseId);
|
|
@@ -23365,36 +23288,19 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
23365
23288
|
route;
|
|
23366
23289
|
sessionStorageService;
|
|
23367
23290
|
caseNotifier;
|
|
23368
|
-
abstractConfig;
|
|
23369
23291
|
caseQueriesCollections;
|
|
23370
23292
|
query;
|
|
23371
23293
|
showQueryList = true;
|
|
23372
23294
|
caseId;
|
|
23373
|
-
messageType;
|
|
23374
|
-
followUpQuery = QueryCreateContext.FOLLOWUP;
|
|
23375
|
-
respondToQuery = QueryCreateContext.RESPOND;
|
|
23376
23295
|
isQueryClosed = false;
|
|
23377
|
-
|
|
23378
|
-
isMultipleFollowUpEnabled = false;
|
|
23379
|
-
currentJurisdictionId;
|
|
23380
|
-
enableServiceSpecificMultiFollowups = [];
|
|
23381
|
-
caseSubscription;
|
|
23382
|
-
constructor(route, sessionStorageService, caseNotifier, abstractConfig) {
|
|
23296
|
+
constructor(route, sessionStorageService, caseNotifier) {
|
|
23383
23297
|
super();
|
|
23384
23298
|
this.route = route;
|
|
23385
23299
|
this.sessionStorageService = sessionStorageService;
|
|
23386
23300
|
this.caseNotifier = caseNotifier;
|
|
23387
|
-
this.abstractConfig = abstractConfig;
|
|
23388
23301
|
}
|
|
23389
23302
|
ngOnInit() {
|
|
23390
23303
|
this.caseId = this.route.snapshot.params.cid;
|
|
23391
|
-
this.enableServiceSpecificMultiFollowups = this.abstractConfig.getEnableServiceSpecificMultiFollowups() || [];
|
|
23392
|
-
this.caseSubscription = this.caseNotifier.caseView.subscribe((caseDetails) => {
|
|
23393
|
-
if (caseDetails?.case_type?.jurisdiction?.id) {
|
|
23394
|
-
this.currentJurisdictionId = caseDetails.case_type.jurisdiction.id;
|
|
23395
|
-
this.isMultipleFollowUpEnabled = this.enableServiceSpecificMultiFollowups.includes(this.currentJurisdictionId);
|
|
23396
|
-
}
|
|
23397
|
-
});
|
|
23398
23304
|
if (this.context === PaletteContext.DEFAULT) {
|
|
23399
23305
|
// EUI-8303 Using mock data until CCD is ready with the API and data contract
|
|
23400
23306
|
// this.caseQueriesCollections = caseMessagesMockData;
|
|
@@ -23420,13 +23326,9 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
23420
23326
|
// QueryManagementUtils.extractCaseQueriesFromCaseField();
|
|
23421
23327
|
}
|
|
23422
23328
|
}
|
|
23423
|
-
ngOnDestroy() {
|
|
23424
|
-
this.caseSubscription?.unsubscribe();
|
|
23425
|
-
}
|
|
23426
23329
|
setQuery(query) {
|
|
23427
23330
|
this.showQueryList = false;
|
|
23428
23331
|
this.query = query;
|
|
23429
|
-
this.messageType = this.getMessageType(query);
|
|
23430
23332
|
this.isQueryClosed = this.query?.children?.some((queryItem) => queryItem?.isClosed === 'Yes');
|
|
23431
23333
|
}
|
|
23432
23334
|
backToQueryListPage() {
|
|
@@ -23436,27 +23338,19 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
23436
23338
|
isInternalUser() {
|
|
23437
23339
|
return isInternalUser(this.sessionStorageService);
|
|
23438
23340
|
}
|
|
23439
|
-
|
|
23440
|
-
|
|
23441
|
-
|
|
23442
|
-
}
|
|
23443
|
-
return query.children?.length
|
|
23444
|
-
? query.children[query.children.length - 1]?.messageType
|
|
23445
|
-
: query?.messageType;
|
|
23446
|
-
}
|
|
23447
|
-
static ɵfac = function ReadQueryManagementFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
23448
|
-
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) {
|
|
23449
|
-
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);
|
|
23341
|
+
static ɵfac = function ReadQueryManagementFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
23342
|
+
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) {
|
|
23343
|
+
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);
|
|
23450
23344
|
} if (rf & 2) {
|
|
23451
|
-
const
|
|
23452
|
-
i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse",
|
|
23345
|
+
const singleQueryDetails_r6 = i0.ɵɵreference(2);
|
|
23346
|
+
i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse", singleQueryDetails_r6);
|
|
23453
23347
|
} }, encapsulation: 2 });
|
|
23454
23348
|
}
|
|
23455
23349
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
23456
23350
|
type: Component,
|
|
23457
|
-
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=\"
|
|
23458
|
-
}], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }
|
|
23459
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber:
|
|
23351
|
+
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=\"!isInternalUser() && 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 court staff.' | rpxTranslate }}</p>\n </strong>\n </div>\n </ng-container>\n</ng-template>\n" }]
|
|
23352
|
+
}], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
|
|
23353
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 15 }); })();
|
|
23460
23354
|
|
|
23461
23355
|
class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
|
|
23462
23356
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextAreaFieldComponent_BaseFactory; return function ReadTextAreaFieldComponent_Factory(__ngFactoryType__) { return (ɵReadTextAreaFieldComponent_BaseFactory || (ɵReadTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent)))(__ngFactoryType__ || ReadTextAreaFieldComponent); }; })();
|
|
@@ -30201,36 +30095,32 @@ class ReadOrderSummaryRowComponent extends AbstractFieldReadComponent {
|
|
|
30201
30095
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrderSummaryRowComponent, { className: "ReadOrderSummaryRowComponent", filePath: "lib/shared/components/palette/order-summary/read-order-summary-row.component.ts", lineNumber: 13 }); })();
|
|
30202
30096
|
|
|
30203
30097
|
function ReadOrganisationFieldRawComponent_table_7_Template(rf, ctx) { if (rf & 1) {
|
|
30204
|
-
i0.ɵɵelementStart(0, "table", 1);
|
|
30205
|
-
i0.ɵɵ
|
|
30206
|
-
i0.ɵɵelementStart(
|
|
30207
|
-
i0.ɵɵ
|
|
30208
|
-
i0.ɵɵelementStart(4, "td", 5)(5, "span", 6);
|
|
30209
|
-
i0.ɵɵtext(6);
|
|
30210
|
-
i0.ɵɵpipe(7, "rpxTranslate");
|
|
30098
|
+
i0.ɵɵelementStart(0, "table", 1)(1, "tr", 4);
|
|
30099
|
+
i0.ɵɵelement(2, "th", 2);
|
|
30100
|
+
i0.ɵɵelementStart(3, "td", 5)(4, "span", 6);
|
|
30101
|
+
i0.ɵɵtext(5);
|
|
30211
30102
|
i0.ɵɵelementEnd()();
|
|
30212
|
-
i0.ɵɵelementStart(
|
|
30213
|
-
i0.ɵɵtext(
|
|
30103
|
+
i0.ɵɵelementStart(6, "td")(7, "span", 6);
|
|
30104
|
+
i0.ɵɵtext(8);
|
|
30214
30105
|
i0.ɵɵelementEnd()()();
|
|
30215
|
-
i0.ɵɵelementStart(
|
|
30216
|
-
i0.ɵɵelement(
|
|
30217
|
-
i0.ɵɵelementStart(
|
|
30218
|
-
i0.ɵɵtext(
|
|
30219
|
-
i0.ɵɵpipe(16, "rpxTranslate");
|
|
30106
|
+
i0.ɵɵelementStart(9, "tr", 4);
|
|
30107
|
+
i0.ɵɵelement(10, "th", 2);
|
|
30108
|
+
i0.ɵɵelementStart(11, "td", 5)(12, "span", 6);
|
|
30109
|
+
i0.ɵɵtext(13);
|
|
30220
30110
|
i0.ɵɵelementEnd()();
|
|
30221
|
-
i0.ɵɵelementStart(
|
|
30222
|
-
i0.ɵɵelement(
|
|
30111
|
+
i0.ɵɵelementStart(14, "td");
|
|
30112
|
+
i0.ɵɵelement(15, "ccd-markdown", 7);
|
|
30223
30113
|
i0.ɵɵelementEnd()()();
|
|
30224
30114
|
} if (rf & 2) {
|
|
30225
30115
|
const selectedOrg_r1 = ctx.ngIf;
|
|
30226
|
-
i0.ɵɵattribute("aria-describedby",
|
|
30227
|
-
i0.ɵɵadvance(6);
|
|
30228
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 7, "Name:"));
|
|
30229
|
-
i0.ɵɵadvance(4);
|
|
30230
|
-
i0.ɵɵtextInterpolate(selectedOrg_r1.name);
|
|
30116
|
+
i0.ɵɵattribute("aria-describedby", "selected organisation field table");
|
|
30231
30117
|
i0.ɵɵadvance(5);
|
|
30232
|
-
i0.ɵɵtextInterpolate(
|
|
30118
|
+
i0.ɵɵtextInterpolate("Name:");
|
|
30233
30119
|
i0.ɵɵadvance(3);
|
|
30120
|
+
i0.ɵɵtextInterpolate(selectedOrg_r1.name);
|
|
30121
|
+
i0.ɵɵadvance(5);
|
|
30122
|
+
i0.ɵɵtextInterpolate("Address:");
|
|
30123
|
+
i0.ɵɵadvance(2);
|
|
30234
30124
|
i0.ɵɵproperty("content", selectedOrg_r1.address);
|
|
30235
30125
|
} }
|
|
30236
30126
|
class ReadOrganisationFieldRawComponent extends AbstractFieldReadComponent {
|
|
@@ -30258,7 +30148,7 @@ class ReadOrganisationFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
30258
30148
|
i0.ɵɵelementStart(3, "tbody")(4, "tr");
|
|
30259
30149
|
i0.ɵɵelement(5, "th", 2);
|
|
30260
30150
|
i0.ɵɵelementStart(6, "td");
|
|
30261
|
-
i0.ɵɵtemplate(7, ReadOrganisationFieldRawComponent_table_7_Template,
|
|
30151
|
+
i0.ɵɵtemplate(7, ReadOrganisationFieldRawComponent_table_7_Template, 16, 5, "table", 3);
|
|
30262
30152
|
i0.ɵɵpipe(8, "async");
|
|
30263
30153
|
i0.ɵɵelementEnd()()()()();
|
|
30264
30154
|
} if (rf & 2) {
|
|
@@ -30270,43 +30160,39 @@ class ReadOrganisationFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
30270
30160
|
}
|
|
30271
30161
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadOrganisationFieldRawComponent, [{
|
|
30272
30162
|
type: Component,
|
|
30273
|
-
args: [{ selector: 'ccd-read-organisation-field-raw', template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th style=\"display: none;\"></th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'
|
|
30163
|
+
args: [{ selector: 'ccd-read-organisation-field-raw', template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th style=\"display: none;\"></th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-small\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-small\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
|
|
30274
30164
|
}], () => [{ type: OrganisationService }, { type: OrganisationConverter }], { caseFields: [{
|
|
30275
30165
|
type: Input
|
|
30276
30166
|
}] }); })();
|
|
30277
30167
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldRawComponent, { className: "ReadOrganisationFieldRawComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field-raw.component.ts", lineNumber: 15 }); })();
|
|
30278
30168
|
|
|
30279
30169
|
function ReadOrganisationFieldTableComponent_table_12_Template(rf, ctx) { if (rf & 1) {
|
|
30280
|
-
i0.ɵɵelementStart(0, "table", 1);
|
|
30281
|
-
i0.ɵɵ
|
|
30282
|
-
i0.ɵɵelementStart(
|
|
30283
|
-
i0.ɵɵ
|
|
30284
|
-
i0.ɵɵelementStart(4, "td", 8)(5, "span", 4);
|
|
30285
|
-
i0.ɵɵtext(6);
|
|
30286
|
-
i0.ɵɵpipe(7, "rpxTranslate");
|
|
30170
|
+
i0.ɵɵelementStart(0, "table", 1)(1, "tr", 6);
|
|
30171
|
+
i0.ɵɵelement(2, "th", 7);
|
|
30172
|
+
i0.ɵɵelementStart(3, "td", 8)(4, "span", 4);
|
|
30173
|
+
i0.ɵɵtext(5);
|
|
30287
30174
|
i0.ɵɵelementEnd()();
|
|
30288
|
-
i0.ɵɵelementStart(
|
|
30289
|
-
i0.ɵɵtext(
|
|
30175
|
+
i0.ɵɵelementStart(6, "td")(7, "span", 4);
|
|
30176
|
+
i0.ɵɵtext(8);
|
|
30290
30177
|
i0.ɵɵelementEnd()()();
|
|
30291
|
-
i0.ɵɵelementStart(
|
|
30292
|
-
i0.ɵɵelement(
|
|
30293
|
-
i0.ɵɵelementStart(
|
|
30294
|
-
i0.ɵɵtext(
|
|
30295
|
-
i0.ɵɵpipe(16, "rpxTranslate");
|
|
30178
|
+
i0.ɵɵelementStart(9, "tr", 6);
|
|
30179
|
+
i0.ɵɵelement(10, "th", 7);
|
|
30180
|
+
i0.ɵɵelementStart(11, "td", 8)(12, "span", 4);
|
|
30181
|
+
i0.ɵɵtext(13);
|
|
30296
30182
|
i0.ɵɵelementEnd()();
|
|
30297
|
-
i0.ɵɵelementStart(
|
|
30298
|
-
i0.ɵɵelement(
|
|
30183
|
+
i0.ɵɵelementStart(14, "td");
|
|
30184
|
+
i0.ɵɵelement(15, "ccd-markdown", 9);
|
|
30299
30185
|
i0.ɵɵelementEnd()()();
|
|
30300
30186
|
} if (rf & 2) {
|
|
30301
30187
|
const selectedOrg_r1 = ctx.ngIf;
|
|
30302
|
-
i0.ɵɵattribute("aria-describedby",
|
|
30303
|
-
i0.ɵɵadvance(6);
|
|
30304
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 7, "Name:"));
|
|
30305
|
-
i0.ɵɵadvance(4);
|
|
30306
|
-
i0.ɵɵtextInterpolate(selectedOrg_r1.name);
|
|
30188
|
+
i0.ɵɵattribute("aria-describedby", "selected organisation field table");
|
|
30307
30189
|
i0.ɵɵadvance(5);
|
|
30308
|
-
i0.ɵɵtextInterpolate(
|
|
30190
|
+
i0.ɵɵtextInterpolate("Name:");
|
|
30309
30191
|
i0.ɵɵadvance(3);
|
|
30192
|
+
i0.ɵɵtextInterpolate(selectedOrg_r1.name);
|
|
30193
|
+
i0.ɵɵadvance(5);
|
|
30194
|
+
i0.ɵɵtextInterpolate("Address:");
|
|
30195
|
+
i0.ɵɵadvance(2);
|
|
30310
30196
|
i0.ɵɵproperty("content", selectedOrg_r1.address);
|
|
30311
30197
|
} }
|
|
30312
30198
|
class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
|
|
@@ -30336,7 +30222,7 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
30336
30222
|
i0.ɵɵpipe(10, "rpxTranslate");
|
|
30337
30223
|
i0.ɵɵelementEnd()()()();
|
|
30338
30224
|
i0.ɵɵelementStart(11, "td");
|
|
30339
|
-
i0.ɵɵtemplate(12, ReadOrganisationFieldTableComponent_table_12_Template,
|
|
30225
|
+
i0.ɵɵtemplate(12, ReadOrganisationFieldTableComponent_table_12_Template, 16, 5, "table", 5);
|
|
30340
30226
|
i0.ɵɵpipe(13, "async");
|
|
30341
30227
|
i0.ɵɵelementEnd()()()()();
|
|
30342
30228
|
} if (rf & 2) {
|
|
@@ -30350,7 +30236,7 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
30350
30236
|
}
|
|
30351
30237
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadOrganisationFieldTableComponent, [{
|
|
30352
30238
|
type: Component,
|
|
30353
|
-
args: [{ selector: 'ccd-read-organisation-field-table', template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'
|
|
30239
|
+
args: [{ selector: 'ccd-read-organisation-field-table', template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
|
|
30354
30240
|
}], () => [{ type: OrganisationService }, { type: OrganisationConverter }], { caseFields: [{
|
|
30355
30241
|
type: Input
|
|
30356
30242
|
}] }); })();
|
|
@@ -32268,7 +32154,7 @@ function CaseHeaderComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
32268
32154
|
} if (rf & 2) {
|
|
32269
32155
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
32270
32156
|
i0.ɵɵadvance();
|
|
32271
|
-
i0.ɵɵproperty("caseField", ctx_r0.caseTitle)("caseFields", ctx_r0.caseFields);
|
|
32157
|
+
i0.ɵɵproperty("caseField", ctx_r0.caseTitle)("labelCanBeTranslated", false)("caseFields", ctx_r0.caseFields);
|
|
32272
32158
|
} }
|
|
32273
32159
|
class CaseHeaderComponent {
|
|
32274
32160
|
caseDetails;
|
|
@@ -32291,8 +32177,8 @@ class CaseHeaderComponent {
|
|
|
32291
32177
|
return caseDataFields.concat(this.caseDetails.metadataFields);
|
|
32292
32178
|
}
|
|
32293
32179
|
static ɵfac = function CaseHeaderComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseHeaderComponent)(); };
|
|
32294
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseHeaderComponent, selectors: [["ccd-case-header"]], inputs: { caseDetails: "caseDetails" }, decls: 2, vars: 2, consts: [["class", "heading-h1", 4, "ngIf"], ["class", "case-title", 4, "ngIf"], [1, "heading-h1"], [1, "case-title"], [3, "caseField", "caseFields"]], template: function CaseHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32295
|
-
i0.ɵɵtemplate(0, CaseHeaderComponent_h1_0_Template, 3, 3, "h1", 0)(1, CaseHeaderComponent_div_1_Template, 2,
|
|
32180
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseHeaderComponent, selectors: [["ccd-case-header"]], inputs: { caseDetails: "caseDetails" }, decls: 2, vars: 2, consts: [["class", "heading-h1", 4, "ngIf"], ["class", "case-title", 4, "ngIf"], [1, "heading-h1"], [1, "case-title"], [3, "caseField", "labelCanBeTranslated", "caseFields"]], template: function CaseHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32181
|
+
i0.ɵɵtemplate(0, CaseHeaderComponent_h1_0_Template, 3, 3, "h1", 0)(1, CaseHeaderComponent_div_1_Template, 2, 3, "div", 1);
|
|
32296
32182
|
} if (rf & 2) {
|
|
32297
32183
|
i0.ɵɵproperty("ngIf", !ctx.caseTitle.label);
|
|
32298
32184
|
i0.ɵɵadvance();
|
|
@@ -32301,7 +32187,7 @@ class CaseHeaderComponent {
|
|
|
32301
32187
|
}
|
|
32302
32188
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseHeaderComponent, [{
|
|
32303
32189
|
type: Component,
|
|
32304
|
-
args: [{ selector: 'ccd-case-header', template: "<h1 *ngIf=\"!caseTitle.label\" class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n\n<div *ngIf=\"caseTitle.label\" class=\"case-title\">\n <ccd-label-field [caseField]=\"caseTitle\" [caseFields]=\"caseFields\"></ccd-label-field>\n</div>\n", styles: [".case-title{margin-top:47px;margin-bottom:10px}.heading-h1{margin-top:40px}\n"] }]
|
|
32190
|
+
args: [{ selector: 'ccd-case-header', template: "<h1 *ngIf=\"!caseTitle.label\" class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n\n<div *ngIf=\"caseTitle.label\" class=\"case-title\">\n <ccd-label-field [caseField]=\"caseTitle\" [labelCanBeTranslated]=\"false\" [caseFields]=\"caseFields\"></ccd-label-field>\n</div>\n", styles: [".case-title{margin-top:47px;margin-bottom:10px}.heading-h1{margin-top:40px}\n"] }]
|
|
32305
32191
|
}], null, { caseDetails: [{
|
|
32306
32192
|
type: Input
|
|
32307
32193
|
}] }); })();
|