@hmcts/ccd-case-ui-toolkit 7.0.44-calendar-backround-fix → 7.0.44-query-management
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 -1
- package/esm2022/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +38 -6
- package/esm2022/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +2 -2
- package/esm2022/lib/shared/components/case-editor/services/event-completion-state-machine.service.mjs +2 -2
- package/esm2022/lib/shared/components/event-trigger/event-trigger.component.mjs +19 -12
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.mjs +3 -3
- package/esm2022/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.mjs +2 -2
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +15 -1
- package/esm2022/lib/shared/components/palette/case-flag/enums/index.mjs +2 -1
- package/esm2022/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +5 -3
- package/esm2022/lib/shared/components/palette/palette.module.mjs +5 -1
- package/esm2022/lib/shared/components/palette/query-management/components/index.mjs +2 -1
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.mjs +2 -2
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +96 -20
- package/esm2022/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.mjs +133 -0
- package/esm2022/lib/shared/components/palette/query-management/models/case-queries-collection.model.mjs +1 -1
- package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +24 -13
- package/esm2022/lib/shared/components/palette/query-management/utils/query-management.utils.mjs +42 -1
- package/esm2022/lib/shared/components/search-result/search-result.component.mjs +76 -86
- package/esm2022/lib/shared/domain/user/user-info.model.mjs +1 -1
- package/esm2022/lib/shared/domain/work-allocation/Task.mjs +1 -1
- package/esm2022/lib/shared/services/jurisdiction/jurisdiction.service.mjs +2 -1
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +429 -131
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/app.config.d.ts +1 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +1 -0
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
- package/lib/shared/components/event-trigger/event-trigger.component.d.ts +3 -1
- package/lib/shared/components/event-trigger/event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/index.d.ts +1 -0
- package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +33 -32
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/index.d.ts +1 -0
- package/lib/shared/components/palette/query-management/components/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +20 -8
- 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-confirmation/query-confirmation.component.d.ts +15 -0
- package/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/models/case-queries-collection.model.d.ts +3 -0
- package/lib/shared/components/palette/query-management/models/case-queries-collection.model.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts +1 -0
- 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 +4 -0
- package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts.map +1 -1
- package/lib/shared/components/search-result/search-result.component.d.ts +1 -1
- package/lib/shared/components/search-result/search-result.component.d.ts.map +1 -1
- package/lib/shared/domain/user/user-info.model.d.ts.map +1 -1
- package/lib/shared/domain/work-allocation/Task.d.ts +4 -0
- package/lib/shared/domain/work-allocation/Task.d.ts.map +1 -1
- package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7062,6 +7062,7 @@ class JurisdictionService {
|
|
|
7062
7062
|
return this.httpService.get('/aggregated/caseworkers/:uid/jurisdictions?access=read');
|
|
7063
7063
|
}
|
|
7064
7064
|
announceSelectedJurisdiction(jurisdiction) {
|
|
7065
|
+
console.info('Announcing selected jurisdiction = ' + jurisdiction?.id);
|
|
7065
7066
|
this.selectedJurisdictionSource.next(jurisdiction);
|
|
7066
7067
|
this.selectedJurisdictionBS.next(jurisdiction);
|
|
7067
7068
|
}
|
|
@@ -8721,7 +8722,7 @@ class EventCompletionStateMachineService {
|
|
|
8721
8722
|
this.addTransitionsForStateTaskUnassigned();
|
|
8722
8723
|
}
|
|
8723
8724
|
entryActionForStateCheckTasksCanBeCompleted(state, context) {
|
|
8724
|
-
context.workAllocationService.getTask(context
|
|
8725
|
+
context.workAllocationService.getTask(context?.task?.id).subscribe(taskResponse => {
|
|
8725
8726
|
if (taskResponse && taskResponse.task && taskResponse.task.task_state) {
|
|
8726
8727
|
switch (taskResponse.task.task_state.toUpperCase()) {
|
|
8727
8728
|
case TaskState.Unassigned:
|
|
@@ -9326,17 +9327,27 @@ class CaseEditComponent {
|
|
|
9326
9327
|
// We have to run the event completion checks if task in session storage
|
|
9327
9328
|
// and if the task is in session storage, then is it associated to the case
|
|
9328
9329
|
let taskInSessionStorage;
|
|
9330
|
+
let taskEventInSessionStorage;
|
|
9329
9331
|
const taskStr = this.sessionStorageService.getItem('taskToComplete');
|
|
9332
|
+
const taskEventStr = this.sessionStorageService.getItem('taskEvent');
|
|
9330
9333
|
if (taskStr) {
|
|
9331
9334
|
taskInSessionStorage = JSON.parse(taskStr);
|
|
9332
9335
|
}
|
|
9333
|
-
if (
|
|
9336
|
+
if (taskEventStr) {
|
|
9337
|
+
taskEventInSessionStorage = JSON.parse(taskEventStr);
|
|
9338
|
+
}
|
|
9339
|
+
const eventId = this.getEventId(form);
|
|
9340
|
+
const caseId = this.getCaseId(caseDetails);
|
|
9341
|
+
if (this.taskExistsForThisEventAndCase(taskInSessionStorage, taskEventInSessionStorage, eventId, caseId)) {
|
|
9334
9342
|
// Show event completion component to perform event completion checks
|
|
9335
9343
|
this.eventCompletionParams = ({
|
|
9336
|
-
caseId
|
|
9337
|
-
eventId
|
|
9344
|
+
caseId,
|
|
9345
|
+
eventId,
|
|
9338
9346
|
task: taskInSessionStorage
|
|
9339
9347
|
});
|
|
9348
|
+
// add taskEvent to link current event with task id
|
|
9349
|
+
const taskEvent = { eventId, taskId: taskInSessionStorage.id };
|
|
9350
|
+
this.sessionStorageService.setItem('taskEvent', JSON.stringify(taskEvent));
|
|
9340
9351
|
this.isEventCompletionChecksRequired = true;
|
|
9341
9352
|
}
|
|
9342
9353
|
else {
|
|
@@ -9501,6 +9512,10 @@ class CaseEditComponent {
|
|
|
9501
9512
|
return this.postCompleteTaskIfRequired();
|
|
9502
9513
|
}), finalize(() => {
|
|
9503
9514
|
this.loadingService.unregister(loadingSpinnerToken);
|
|
9515
|
+
// on event completion ensure the previous event taskToComplete/taskEvent removed
|
|
9516
|
+
this.sessionStorageService.removeItem('taskToComplete');
|
|
9517
|
+
this.sessionStorageService.removeItem('taskEvent');
|
|
9518
|
+
this.isSubmitting = false;
|
|
9504
9519
|
}))
|
|
9505
9520
|
.subscribe(() => {
|
|
9506
9521
|
this.finishEventCompletionLogic(eventResponse);
|
|
@@ -9514,7 +9529,6 @@ class CaseEditComponent {
|
|
|
9514
9529
|
this.formErrorService
|
|
9515
9530
|
.mapFieldErrors(this.error.details.field_errors, form.controls['data'], 'validation');
|
|
9516
9531
|
}
|
|
9517
|
-
this.isSubmitting = false;
|
|
9518
9532
|
}
|
|
9519
9533
|
else {
|
|
9520
9534
|
this.sessionStorageService.setItem('taskCompletionError', 'true');
|
|
@@ -9559,6 +9573,25 @@ class CaseEditComponent {
|
|
|
9559
9573
|
return null;
|
|
9560
9574
|
}
|
|
9561
9575
|
}
|
|
9576
|
+
// checks whether current taskToComplete relevant for the event
|
|
9577
|
+
taskExistsForThisEventAndCase(taskInSessionStorage, taskEvent, eventId, caseId) {
|
|
9578
|
+
if (!taskInSessionStorage || taskInSessionStorage.case_id !== caseId) {
|
|
9579
|
+
return false;
|
|
9580
|
+
}
|
|
9581
|
+
if (!taskEvent) {
|
|
9582
|
+
// if no task event present then there is no task to complete from previous event present
|
|
9583
|
+
return true;
|
|
9584
|
+
}
|
|
9585
|
+
else {
|
|
9586
|
+
if (taskEvent.taskId === taskInSessionStorage.id && taskEvent.eventId !== eventId) {
|
|
9587
|
+
// if the session storage not related to event, ignore it and remove
|
|
9588
|
+
this.sessionStorageService.removeItem('taskToComplete');
|
|
9589
|
+
this.sessionStorageService.removeItem('taskEvent');
|
|
9590
|
+
return false;
|
|
9591
|
+
}
|
|
9592
|
+
return true;
|
|
9593
|
+
}
|
|
9594
|
+
}
|
|
9562
9595
|
onEventCanBeCompleted({ eventTrigger, eventCanBeCompleted, caseDetails, form, submit }) {
|
|
9563
9596
|
if (eventCanBeCompleted) {
|
|
9564
9597
|
// Submit
|
|
@@ -10425,7 +10458,6 @@ class CaseEditPageComponent {
|
|
|
10425
10458
|
}
|
|
10426
10459
|
submit() {
|
|
10427
10460
|
this.caseEditDataService.clearFormValidationErrors();
|
|
10428
|
-
console.log('Page submit event fired!');
|
|
10429
10461
|
if (this.currentPageIsNotValid()) {
|
|
10430
10462
|
// The generateErrorMessage method filters out the hidden fields.
|
|
10431
10463
|
// The error message for LinkedCases journey will never get displayed because the
|
|
@@ -10451,6 +10483,7 @@ class CaseEditPageComponent {
|
|
|
10451
10483
|
this.validateSub = this.caseEdit.validate(caseEventData, this.currentPage.id)
|
|
10452
10484
|
.pipe(finalize(() => {
|
|
10453
10485
|
this.loadingService.unregister(loadingSpinnerToken);
|
|
10486
|
+
this.caseEdit.isSubmitting = false;
|
|
10454
10487
|
}))
|
|
10455
10488
|
.subscribe((jsonData) => {
|
|
10456
10489
|
/* istanbul ignore else */
|
|
@@ -12532,8 +12565,10 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12532
12565
|
this.hmctsServiceId = this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId;
|
|
12533
12566
|
}
|
|
12534
12567
|
if (this.route.snapshot.data.eventTrigger.case_fields) {
|
|
12535
|
-
this.flagsData =
|
|
12536
|
-
.reduce((flags, caseField) =>
|
|
12568
|
+
this.flagsData = this.route.snapshot.data.eventTrigger.case_fields
|
|
12569
|
+
.reduce((flags, caseField) => {
|
|
12570
|
+
return FieldsUtils.extractFlagsDataFromCaseField(flags, caseField, caseField.id, caseField);
|
|
12571
|
+
}, []);
|
|
12537
12572
|
// Set displayContextParameter (to be passed as an input to ManageCaseFlagsComponent for setting correct title)
|
|
12538
12573
|
this.displayContextParameter =
|
|
12539
12574
|
this.setDisplayContextParameter(this.route.snapshot.data.eventTrigger.case_fields);
|
|
@@ -19488,7 +19523,7 @@ class QualifyingQuestionOptionsComponent {
|
|
|
19488
19523
|
}
|
|
19489
19524
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionOptionsComponent, [{
|
|
19490
19525
|
type: Component,
|
|
19491
|
-
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"{{qualifyingQuestion.name}}\" name=\"qualifyingQuestionOption\"\n type=\"radio\" [formControl]=\"qualifyingQuestionsControl\" [value]=\"qualifyingQuestion\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"qualifyingQuestion.name\">{{ qualifyingQuestion.name |\n rpxTranslate }}</label>\n <div *ngIf=\"isLast\" class=\"govuk-hint govuk-radios__hint\">\n {{ '(To reply to an existing query' | rpxTranslate }}\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"click()\">{{ 'click here' | rpxTranslate }}</a>.)\n </div>\n </div>\n </ng-container>\n </div>\n </fieldset>\n </div>\n</ng-container
|
|
19526
|
+
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"{{qualifyingQuestion.name}}\" name=\"qualifyingQuestionOption\"\n type=\"radio\" [formControl]=\"qualifyingQuestionsControl\" [value]=\"qualifyingQuestion\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"qualifyingQuestion.name\">{{ qualifyingQuestion.name |\n rpxTranslate }}</label>\n <div *ngIf=\"isLast\" class=\"govuk-hint govuk-radios__hint\">\n {{ '(To reply to an existing query' | rpxTranslate }}\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"click()\">{{ 'click here' | rpxTranslate }}</a>.)\n </div>\n </div>\n </ng-container>\n </div>\n </fieldset>\n </div>\n</ng-container>\n" }]
|
|
19492
19527
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { qualifyingQuestionsControl: [{
|
|
19493
19528
|
type: Input
|
|
19494
19529
|
}], qualifyingQuestions$: [{
|
|
@@ -19509,6 +19544,47 @@ class QueryManagementUtils {
|
|
|
19509
19544
|
}
|
|
19510
19545
|
};
|
|
19511
19546
|
}
|
|
19547
|
+
static getNewQueryData(formGroup, currentUserDetails) {
|
|
19548
|
+
const currentUserId = currentUserDetails?.uid;
|
|
19549
|
+
const currentUserName = currentUserDetails?.name;
|
|
19550
|
+
const subject = formGroup.get('subject').value;
|
|
19551
|
+
const body = formGroup.get('body').value;
|
|
19552
|
+
const isHearingRelated = formGroup.get('isHearingRelated').value ? 'Yes' : 'No';
|
|
19553
|
+
const hearingDate = isHearingRelated
|
|
19554
|
+
? formGroup.get('hearingDate').value
|
|
19555
|
+
: null;
|
|
19556
|
+
const attachments = formGroup.get('attachments').value;
|
|
19557
|
+
return {
|
|
19558
|
+
id: '',
|
|
19559
|
+
subject,
|
|
19560
|
+
name: currentUserName,
|
|
19561
|
+
body,
|
|
19562
|
+
attachments,
|
|
19563
|
+
isHearingRelated,
|
|
19564
|
+
hearingDate,
|
|
19565
|
+
createdOn: new Date(),
|
|
19566
|
+
createdBy: currentUserId
|
|
19567
|
+
};
|
|
19568
|
+
}
|
|
19569
|
+
static getRespondOrFollowupQueryData(formGroup, queryItem, currentUserDetails) {
|
|
19570
|
+
const currentUserId = currentUserDetails?.uid;
|
|
19571
|
+
const currentUserName = currentUserDetails?.name;
|
|
19572
|
+
const body = formGroup.get('body').value;
|
|
19573
|
+
const attachments = formGroup.get('attachments').value;
|
|
19574
|
+
queryItem.isHearingRelated = queryItem.isHearingRelated ? 'Yes' : 'No';
|
|
19575
|
+
return {
|
|
19576
|
+
id: '',
|
|
19577
|
+
subject: queryItem.subject,
|
|
19578
|
+
name: currentUserName,
|
|
19579
|
+
body,
|
|
19580
|
+
attachments,
|
|
19581
|
+
isHearingRelated: queryItem.isHearingRelated,
|
|
19582
|
+
hearingDate: queryItem.hearingDate,
|
|
19583
|
+
createdOn: new Date(),
|
|
19584
|
+
createdBy: currentUserId,
|
|
19585
|
+
parentId: queryItem.id
|
|
19586
|
+
};
|
|
19587
|
+
}
|
|
19512
19588
|
static ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
|
|
19513
19589
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
|
|
19514
19590
|
}
|
|
@@ -19844,40 +19920,93 @@ function QueryCheckYourAnswersComponent_ccd_query_attachments_read_28_Template(r
|
|
|
19844
19920
|
} }
|
|
19845
19921
|
class QueryCheckYourAnswersComponent {
|
|
19846
19922
|
route;
|
|
19847
|
-
|
|
19923
|
+
router;
|
|
19924
|
+
casesService;
|
|
19848
19925
|
caseNotifier;
|
|
19926
|
+
workAllocationService;
|
|
19927
|
+
sessionStorageService;
|
|
19928
|
+
RAISE_A_QUERY_EVENT_TRIGGER_ID = 'queryManagementRaiseQuery';
|
|
19929
|
+
RESPOND_TO_QUERY_EVENT_TRIGGER_ID = 'queryManagementRespondQuery';
|
|
19849
19930
|
formGroup;
|
|
19850
19931
|
queryItem;
|
|
19851
19932
|
queryCreateContext;
|
|
19852
19933
|
backClicked = new EventEmitter();
|
|
19934
|
+
querySubmitted = new EventEmitter();
|
|
19935
|
+
caseViewTrigger;
|
|
19936
|
+
caseDetails;
|
|
19937
|
+
queryId;
|
|
19938
|
+
getEventTrigger$;
|
|
19939
|
+
createEventSubscription;
|
|
19940
|
+
searchTasksSubsciption;
|
|
19853
19941
|
queryCreateContextEnum = QueryCreateContext;
|
|
19854
19942
|
eventCompletionParams;
|
|
19855
19943
|
caseId;
|
|
19856
|
-
|
|
19857
|
-
queryId;
|
|
19858
|
-
searchTasksSubsciption;
|
|
19859
|
-
constructor(route, workAllocationService, caseNotifier) {
|
|
19944
|
+
constructor(route, router, casesService, caseNotifier, workAllocationService, sessionStorageService) {
|
|
19860
19945
|
this.route = route;
|
|
19861
|
-
this.
|
|
19946
|
+
this.router = router;
|
|
19947
|
+
this.casesService = casesService;
|
|
19862
19948
|
this.caseNotifier = caseNotifier;
|
|
19949
|
+
this.workAllocationService = workAllocationService;
|
|
19950
|
+
this.sessionStorageService = sessionStorageService;
|
|
19863
19951
|
}
|
|
19864
19952
|
ngOnInit() {
|
|
19865
19953
|
this.queryId = this.route.snapshot.params.qid;
|
|
19866
19954
|
this.caseNotifier.caseView.pipe(take(1)).subscribe(caseDetails => {
|
|
19867
|
-
this.
|
|
19868
|
-
|
|
19869
|
-
|
|
19955
|
+
this.caseDetails = caseDetails;
|
|
19956
|
+
if (this.queryCreateContext !== QueryCreateContext.RESPOND) {
|
|
19957
|
+
// Find raise a query event trigger from the list, will be used when submitting the query
|
|
19958
|
+
this.caseViewTrigger = this.caseDetails.triggers.find((trigger) => trigger.id === this.RAISE_A_QUERY_EVENT_TRIGGER_ID);
|
|
19959
|
+
// Initialise getEventTrigger observable, will be used when submitting the query
|
|
19960
|
+
this.getEventTrigger$ = this.casesService.getEventTrigger(undefined, this.RAISE_A_QUERY_EVENT_TRIGGER_ID, this.caseDetails.case_id);
|
|
19961
|
+
}
|
|
19962
|
+
else {
|
|
19963
|
+
// Raise a query and Follow-up query uses the same event trigger id
|
|
19964
|
+
// Find raise a query event trigger from the list, will be used when submitting the query
|
|
19965
|
+
this.caseViewTrigger = this.caseDetails.triggers.find((trigger) => trigger.id === this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID);
|
|
19966
|
+
// Initialise getEventTrigger observable, will be used when submitting the query
|
|
19967
|
+
this.getEventTrigger$ = this.casesService.getEventTrigger(undefined, this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID, this.caseDetails.case_id);
|
|
19968
|
+
}
|
|
19870
19969
|
});
|
|
19871
19970
|
}
|
|
19872
19971
|
ngOnDestroy() {
|
|
19972
|
+
this.createEventSubscription?.unsubscribe();
|
|
19873
19973
|
this.searchTasksSubsciption?.unsubscribe();
|
|
19874
19974
|
}
|
|
19875
19975
|
goBack() {
|
|
19876
19976
|
this.backClicked.emit(true);
|
|
19877
19977
|
}
|
|
19878
19978
|
submit() {
|
|
19979
|
+
// Generate case queries collection data for submission
|
|
19980
|
+
const data = this.generateCaseQueriesCollectionData();
|
|
19981
|
+
// Actual submission of query
|
|
19982
|
+
this.createEventSubscription = this.getEventTrigger$.pipe(switchMap((caseEventTrigger) => {
|
|
19983
|
+
// Setup CaseEventData
|
|
19984
|
+
const caseEventData = {
|
|
19985
|
+
data,
|
|
19986
|
+
event: {
|
|
19987
|
+
id: this.caseViewTrigger.id,
|
|
19988
|
+
summary: '',
|
|
19989
|
+
description: this.caseViewTrigger.description
|
|
19990
|
+
},
|
|
19991
|
+
event_token: caseEventTrigger.event_token,
|
|
19992
|
+
ignore_warning: false
|
|
19993
|
+
};
|
|
19994
|
+
// Complete event
|
|
19995
|
+
return this.casesService.createEvent(this.caseDetails, caseEventData);
|
|
19996
|
+
})).subscribe(
|
|
19997
|
+
// Successful response
|
|
19998
|
+
() => {
|
|
19999
|
+
// Search and complete task
|
|
20000
|
+
this.searchAndCompleteTask();
|
|
20001
|
+
// Emit query submitted event
|
|
20002
|
+
this.querySubmitted.emit(true);
|
|
20003
|
+
},
|
|
20004
|
+
// Error
|
|
20005
|
+
() => this.router.navigate(['/', 'service-down']));
|
|
20006
|
+
}
|
|
20007
|
+
searchAndCompleteTask() {
|
|
19879
20008
|
// Search Task
|
|
19880
|
-
const searchParameter = { ccdId: this.
|
|
20009
|
+
const searchParameter = { ccdId: this.caseDetails.case_id };
|
|
19881
20010
|
this.searchTasksSubsciption = this.workAllocationService.searchTasks(searchParameter)
|
|
19882
20011
|
.subscribe((response) => {
|
|
19883
20012
|
// Filter task by query id
|
|
@@ -19890,14 +20019,32 @@ class QueryCheckYourAnswersComponent {
|
|
|
19890
20019
|
});
|
|
19891
20020
|
// Trigger event completion
|
|
19892
20021
|
this.eventCompletionParams = {
|
|
19893
|
-
caseId: this.
|
|
19894
|
-
eventId: this.
|
|
20022
|
+
caseId: this.caseDetails.case_id,
|
|
20023
|
+
eventId: this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID,
|
|
19895
20024
|
task: filteredtask
|
|
19896
20025
|
};
|
|
19897
20026
|
});
|
|
19898
20027
|
}
|
|
19899
|
-
|
|
19900
|
-
|
|
20028
|
+
generateCaseQueriesCollectionData() {
|
|
20029
|
+
const currentUserDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
20030
|
+
const caseMessage = this.queryCreateContext === QueryCreateContext.NEW_QUERY
|
|
20031
|
+
? QueryManagementUtils.getNewQueryData(this.formGroup, currentUserDetails)
|
|
20032
|
+
: QueryManagementUtils.getRespondOrFollowupQueryData(this.formGroup, this.queryItem, currentUserDetails);
|
|
20033
|
+
return {
|
|
20034
|
+
qmCaseQueriesCollection: {
|
|
20035
|
+
partyName: '', // Not returned by CCD
|
|
20036
|
+
roleOnCase: '', // Not returned by CCD
|
|
20037
|
+
caseMessages: [
|
|
20038
|
+
{
|
|
20039
|
+
id: '',
|
|
20040
|
+
value: caseMessage
|
|
20041
|
+
}
|
|
20042
|
+
]
|
|
20043
|
+
}
|
|
20044
|
+
};
|
|
20045
|
+
}
|
|
20046
|
+
static ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(WorkAllocationService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
20047
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext" }, outputs: { backClicked: "backClicked", querySubmitted: "querySubmitted" }, decls: 42, vars: 26, consts: [["defaultCheckYourAnswersTitle", ""], ["isHearingRelatedFalse", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], [1, "govuk-!-margin-bottom-4"], ["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"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button", 3, "click"], [3, "eventCompletionParams"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19901
20048
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
19902
20049
|
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3);
|
|
19903
20050
|
i0.ɵɵtemplate(2, QueryCheckYourAnswersComponent_ng_container_2_Template, 4, 3, "ng-container", 4);
|
|
@@ -19980,7 +20127,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
19980
20127
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryCheckYourAnswersComponent, [{
|
|
19981
20128
|
type: Component,
|
|
19982
20129
|
args: [{ selector: 'ccd-query-check-your-answers', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds-from-desktop\">\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.NEW_QUERY\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n </ng-container>\n\n <h1 class=\"govuk-heading-l\">\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.RESPOND; else defaultCheckYourAnswersTitle\">\n {{ 'Review query response details' | rpxTranslate }}\n </ng-container>\n\n <ng-template #defaultCheckYourAnswersTitle>\n {{ 'Review query details' | rpxTranslate }}\n </ng-template>\n </h1>\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header></ccd-query-case-details-header>\n </div>\n\n <dl *ngIf=\"queryCreateContext !== queryCreateContextEnum.FOLLOWUP\" class=\"govuk-summary-list govuk-!-margin-bottom-0\">\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Submitted query' : 'Query subject' | rpxTranslate }}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? queryItem.subject : formGroup.get('subject')?.value }}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a *ngIf=\"queryCreateContext === queryCreateContextEnum.NEW_QUERY\" \n href=\"javascript:void(0)\" class=\"govuk-link\" (click)=\"goBack()\">\n {{ 'Change' | rpxTranslate }}\n </a>\n </dd>\n </div>\n </dl>\n\n <dl class=\"govuk-summary-list govuk-!-margin-bottom-0\">\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Response detail' : 'Query detail' | rpxTranslate }}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{ formGroup.get('body')?.value }}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a href=\"javascript:void(0)\" class=\"govuk-link\" (click)=\"goBack()\">\n {{ 'Change' | rpxTranslate }}\n </a>\n </dd>\n </div>\n </dl>\n\n <dl *ngIf=\"queryCreateContext === queryCreateContextEnum.NEW_QUERY\" class=\"govuk-summary-list govuk-!-margin-bottom-0\">\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n <ng-container *ngIf=\"formGroup.get('isHearingRelated')?.value === true; else isHearingRelatedFalse\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'Yes' }}\n </ng-container>\n <ng-template #isHearingRelatedFalse>\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'No' }}\n </ng-template>\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a href=\"javascript:void(0)\" class=\"govuk-link\" (click)=\"goBack()\">\n {{ 'Change' | rpxTranslate }}\n </a>\n </dd>\n </div>\n\n <div *ngIf=\"formGroup.get('isHearingRelated')?.value\" class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{ queryCreateContext === queryCreateContextEnum.NEW_QUERY\n ? 'What is the date of the hearing?'\n : 'What is the date of the hearing your query is related to?' | rpxTranslate }}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{ formGroup.get('hearingDate')?.value | date: 'dd MMM yyyy' }}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a href=\"javascript:void(0)\" class=\"govuk-link\" (click)=\"goBack()\">\n {{ 'Change' | rpxTranslate }}\n </a>\n </dd>\n </div>\n </dl>\n\n <dl class=\"govuk-summary-list govuk-!-margin-bottom-0\">\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{ queryCreateContext === queryCreateContextEnum.NEW_QUERY ? 'Upload a file to the query' : 'Document attached' | rpxTranslate }}\n </dt>\n <dd class=\"govuk-summary-list__value govuk-summary-list__value--documentAttached\">\n <ccd-query-attachments-read\n *ngIf=\"this.formGroup.get('attachments').value\"\n [attachments]=\"this.formGroup.get('attachments').value\"\n >\n </ccd-query-attachments-read>\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a href=\"javascript:void(0)\" class=\"govuk-link\" (click)=\"goBack()\">\n {{ 'Change' | rpxTranslate }}\n </a>\n </dd>\n </div>\n </dl>\n\n <br>\n\n <div>\n <button class=\"govuk-button govuk-button--secondary govuk-!-margin-right-3\" data-module=\"govuk-button\"\n (click)=\"goBack()\">\n {{ 'Previous' | rpxTranslate }}\n </button>\n <button class=\"govuk-button\" data-module=\"govuk-button\" (click)=\"submit()\">\n {{ 'Submit' | rpxTranslate }}\n </button>\n </div>\n </div>\n\n <ccd-query-event-completion [eventCompletionParams]=\"eventCompletionParams\"> \n </ccd-query-event-completion>\n</div>\n", styles: [".govuk-summary-list__value--documentAttached{vertical-align:middle}\n"] }]
|
|
19983
|
-
}], () => [{ type: i1$1.ActivatedRoute }, { type:
|
|
20130
|
+
}], () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: CasesService }, { type: CaseNotifier }, { type: WorkAllocationService }, { type: SessionStorageService }], { formGroup: [{
|
|
19984
20131
|
type: Input
|
|
19985
20132
|
}], queryItem: [{
|
|
19986
20133
|
type: Input
|
|
@@ -19988,8 +20135,10 @@ class QueryCheckYourAnswersComponent {
|
|
|
19988
20135
|
type: Input
|
|
19989
20136
|
}], backClicked: [{
|
|
19990
20137
|
type: Output
|
|
20138
|
+
}], querySubmitted: [{
|
|
20139
|
+
type: Output
|
|
19991
20140
|
}] }); })();
|
|
19992
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber:
|
|
20141
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 23 }); })();
|
|
19993
20142
|
|
|
19994
20143
|
function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf & 1) {
|
|
19995
20144
|
i0.ɵɵelementStart(0, "tr", 11)(1, "th", 7);
|
|
@@ -20989,6 +21138,132 @@ class QueryWriteRespondToQueryComponent {
|
|
|
20989
21138
|
}] }); })();
|
|
20990
21139
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRespondToQueryComponent, { className: "QueryWriteRespondToQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.ts", lineNumber: 14 }); })();
|
|
20991
21140
|
|
|
21141
|
+
function QueryConfirmationComponent_main_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
21142
|
+
i0.ɵɵelementContainerStart(0);
|
|
21143
|
+
i0.ɵɵelementStart(1, "div", 5)(2, "h1", 6);
|
|
21144
|
+
i0.ɵɵtext(3);
|
|
21145
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
21146
|
+
i0.ɵɵelementEnd();
|
|
21147
|
+
i0.ɵɵelementStart(5, "div", 7);
|
|
21148
|
+
i0.ɵɵtext(6);
|
|
21149
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
21150
|
+
i0.ɵɵelementEnd()();
|
|
21151
|
+
i0.ɵɵelementStart(8, "div", 8)(9, "h3", 9);
|
|
21152
|
+
i0.ɵɵtext(10);
|
|
21153
|
+
i0.ɵɵpipe(11, "rpxTranslate");
|
|
21154
|
+
i0.ɵɵelementEnd();
|
|
21155
|
+
i0.ɵɵelementStart(12, "p");
|
|
21156
|
+
i0.ɵɵtext(13);
|
|
21157
|
+
i0.ɵɵpipe(14, "rpxTranslate");
|
|
21158
|
+
i0.ɵɵelementEnd();
|
|
21159
|
+
i0.ɵɵelementStart(15, "p");
|
|
21160
|
+
i0.ɵɵtext(16);
|
|
21161
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
21162
|
+
i0.ɵɵelementEnd();
|
|
21163
|
+
i0.ɵɵelementStart(18, "p");
|
|
21164
|
+
i0.ɵɵtext(19);
|
|
21165
|
+
i0.ɵɵpipe(20, "rpxTranslate");
|
|
21166
|
+
i0.ɵɵelementStart(21, "a", 10);
|
|
21167
|
+
i0.ɵɵtext(22);
|
|
21168
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
21169
|
+
i0.ɵɵelementEnd()()();
|
|
21170
|
+
i0.ɵɵelementContainerEnd();
|
|
21171
|
+
} if (rf & 2) {
|
|
21172
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21173
|
+
i0.ɵɵadvance(3);
|
|
21174
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 9, "Query submitted"));
|
|
21175
|
+
i0.ɵɵadvance(3);
|
|
21176
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 11, "Your query has been sent to HMCTS"));
|
|
21177
|
+
i0.ɵɵadvance(4);
|
|
21178
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 13, "What happens next"));
|
|
21179
|
+
i0.ɵɵadvance(3);
|
|
21180
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 15, "Our team will read your query and will respond"));
|
|
21181
|
+
i0.ɵɵadvance(3);
|
|
21182
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 17, "When the response is available it will be added to the 'Queries' section."));
|
|
21183
|
+
i0.ɵɵadvance(3);
|
|
21184
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 19, "You can"), " ");
|
|
21185
|
+
i0.ɵɵadvance(2);
|
|
21186
|
+
i0.ɵɵpropertyInterpolate1("routerLink", "/cases/case-details/", ctx_r0.caseId, "");
|
|
21187
|
+
i0.ɵɵadvance();
|
|
21188
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 21, "Go back to the case"));
|
|
21189
|
+
} }
|
|
21190
|
+
function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
21191
|
+
i0.ɵɵelementContainerStart(0);
|
|
21192
|
+
i0.ɵɵelementStart(1, "div", 5)(2, "h1", 6);
|
|
21193
|
+
i0.ɵɵtext(3);
|
|
21194
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
21195
|
+
i0.ɵɵelementEnd();
|
|
21196
|
+
i0.ɵɵelementStart(5, "div", 7);
|
|
21197
|
+
i0.ɵɵtext(6);
|
|
21198
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
21199
|
+
i0.ɵɵelementEnd()();
|
|
21200
|
+
i0.ɵɵelementStart(8, "div", 8);
|
|
21201
|
+
i0.ɵɵtext(9);
|
|
21202
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21203
|
+
i0.ɵɵelementStart(11, "a", 11);
|
|
21204
|
+
i0.ɵɵtext(12);
|
|
21205
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
21206
|
+
i0.ɵɵelementEnd();
|
|
21207
|
+
i0.ɵɵtext(14, " or ");
|
|
21208
|
+
i0.ɵɵelementStart(15, "a", 12);
|
|
21209
|
+
i0.ɵɵtext(16);
|
|
21210
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
21211
|
+
i0.ɵɵelementEnd()();
|
|
21212
|
+
i0.ɵɵelementContainerEnd();
|
|
21213
|
+
} if (rf & 2) {
|
|
21214
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21215
|
+
i0.ɵɵadvance(3);
|
|
21216
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 9, "Query response submitted"));
|
|
21217
|
+
i0.ɵɵadvance(3);
|
|
21218
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 11, "This query response has been added to the case"));
|
|
21219
|
+
i0.ɵɵadvance(3);
|
|
21220
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 13, "You can"), " ");
|
|
21221
|
+
i0.ɵɵadvance(2);
|
|
21222
|
+
i0.ɵɵpropertyInterpolate1("routerLink", "/cases/case-details/", ctx_r0.caseId, "/tasks");
|
|
21223
|
+
i0.ɵɵadvance();
|
|
21224
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 15, "return to tasks"));
|
|
21225
|
+
i0.ɵɵadvance(3);
|
|
21226
|
+
i0.ɵɵpropertyInterpolate1("routerLink", "/cases/case-details/", ctx_r0.caseId, "");
|
|
21227
|
+
i0.ɵɵadvance();
|
|
21228
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 17, "Go back to the case"));
|
|
21229
|
+
} }
|
|
21230
|
+
function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
|
|
21231
|
+
i0.ɵɵelementStart(0, "main", 1)(1, "div", 2)(2, "div", 3);
|
|
21232
|
+
i0.ɵɵtemplate(3, QueryConfirmationComponent_main_0_ng_container_3_Template, 24, 23, "ng-container", 4)(4, QueryConfirmationComponent_main_0_ng_container_4_Template, 18, 19, "ng-container", 4);
|
|
21233
|
+
i0.ɵɵelementEnd()()();
|
|
21234
|
+
} if (rf & 2) {
|
|
21235
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21236
|
+
i0.ɵɵadvance(3);
|
|
21237
|
+
i0.ɵɵproperty("ngIf", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.NEW_QUERY || ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.FOLLOWUP);
|
|
21238
|
+
i0.ɵɵadvance();
|
|
21239
|
+
i0.ɵɵproperty("ngIf", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND);
|
|
21240
|
+
} }
|
|
21241
|
+
class QueryConfirmationComponent {
|
|
21242
|
+
route;
|
|
21243
|
+
queryCreateContext;
|
|
21244
|
+
caseId = '';
|
|
21245
|
+
queryCreateContextEnum = QueryCreateContext;
|
|
21246
|
+
constructor(route) {
|
|
21247
|
+
this.route = route;
|
|
21248
|
+
}
|
|
21249
|
+
ngOnInit() {
|
|
21250
|
+
this.caseId = this.route.snapshot.params.cid;
|
|
21251
|
+
}
|
|
21252
|
+
static ɵfac = function QueryConfirmationComponent_Factory(t) { return new (t || QueryConfirmationComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
21253
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryConfirmationComponent, selectors: [["ccd-query-confirmation"]], inputs: { queryCreateContext: "queryCreateContext" }, decls: 1, vars: 1, consts: [["class", "govuk-main-wrapper", 4, "ngIf"], [1, "govuk-main-wrapper"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [4, "ngIf"], [1, "govuk-panel", "govuk-panel--confirmation"], [1, "govuk-panel__title"], [1, "govuk-panel__body"], [1, "govuk-body"], [1, "govuk-heading-s"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "tasks-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "case-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"]], template: function QueryConfirmationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21254
|
+
i0.ɵɵtemplate(0, QueryConfirmationComponent_main_0_Template, 5, 2, "main", 0);
|
|
21255
|
+
} if (rf & 2) {
|
|
21256
|
+
i0.ɵɵproperty("ngIf", ctx.queryCreateContext);
|
|
21257
|
+
} }, dependencies: [i5.NgIf, i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
21258
|
+
}
|
|
21259
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryConfirmationComponent, [{
|
|
21260
|
+
type: Component,
|
|
21261
|
+
args: [{ selector: 'ccd-query-confirmation', template: "<main class=\"govuk-main-wrapper\" *ngIf=\"queryCreateContext\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.NEW_QUERY || queryCreateContext === queryCreateContextEnum.FOLLOWUP\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query submitted' | rpxTranslate}}</h1>\n <div class=\"govuk-panel__body\">{{'Your query has been sent to HMCTS' | rpxTranslate}}</div>\n </div>\n <div class=\"govuk-body\">\n <h3 class=\"govuk-heading-s\">{{'What happens next' | rpxTranslate}}</h3>\n <p>{{'Our team will read your query and will respond' | rpxTranslate}}</p>\n <p>{{'When the response is available it will be added to the \\'Queries\\' section.' | rpxTranslate}}</p>\n <p>\n {{'You can' | rpxTranslate}}\n <a class=\"govuk-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}\">{{'Go back to the case' | rpxTranslate}}</a>\n </p>\n </div>\n </ng-container>\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.RESPOND\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query response submitted' | rpxTranslate}}</h1>\n <div class=\"govuk-panel__body\">{{'This query response has been added to the case' | rpxTranslate}}</div>\n </div>\n <div class=\"govuk-body\">\n {{'You can' | rpxTranslate}}\n <a class=\"govuk-link\" id=\"tasks-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}/tasks\">{{'return to tasks' | rpxTranslate}}</a> or\n <a class=\"govuk-link\" id=\"case-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}\">{{'Go back to the case' | rpxTranslate}}</a>\n </div>\n </ng-container>\n </div>\n </div>\n</main>\n" }]
|
|
21262
|
+
}], () => [{ type: i1$1.ActivatedRoute }], { queryCreateContext: [{
|
|
21263
|
+
type: Input
|
|
21264
|
+
}] }); })();
|
|
21265
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryConfirmationComponent, { className: "QueryConfirmationComponent", filePath: "lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.ts", lineNumber: 9 }); })();
|
|
21266
|
+
|
|
20992
21267
|
const _c0$B = a0 => ["/query-management", "query", a0, "4"];
|
|
20993
21268
|
function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
20994
21269
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -21018,9 +21293,9 @@ function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if
|
|
|
21018
21293
|
i0.ɵɵadvance();
|
|
21019
21294
|
i0.ɵɵproperty("ngForOf", ctx_r1.caseQueriesCollections);
|
|
21020
21295
|
} }
|
|
21021
|
-
function
|
|
21296
|
+
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
21022
21297
|
i0.ɵɵelementContainerStart(0);
|
|
21023
|
-
i0.ɵɵelementStart(1, "button",
|
|
21298
|
+
i0.ɵɵelementStart(1, "button", 9);
|
|
21024
21299
|
i0.ɵɵtext(2);
|
|
21025
21300
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21026
21301
|
i0.ɵɵelementEnd();
|
|
@@ -21032,8 +21307,8 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template
|
|
|
21032
21307
|
i0.ɵɵadvance();
|
|
21033
21308
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
|
|
21034
21309
|
} }
|
|
21035
|
-
function
|
|
21036
|
-
i0.ɵɵelementStart(0, "div")(1, "p",
|
|
21310
|
+
function ReadQueryManagementFieldComponent_ng_template_1_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
21311
|
+
i0.ɵɵelementStart(0, "div")(1, "p", 10);
|
|
21037
21312
|
i0.ɵɵtext(2);
|
|
21038
21313
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21039
21314
|
i0.ɵɵelementEnd();
|
|
@@ -21050,14 +21325,21 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_template_3_Template(
|
|
|
21050
21325
|
function ReadQueryManagementFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
21051
21326
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
21052
21327
|
i0.ɵɵelement(0, "br");
|
|
21053
|
-
i0.ɵɵelementStart(1, "
|
|
21054
|
-
i0.ɵɵlistener("
|
|
21328
|
+
i0.ɵɵelementStart(1, "p")(2, "a", 7);
|
|
21329
|
+
i0.ɵɵlistener("click", function ReadQueryManagementFieldComponent_ng_template_1_Template_a_click_2_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.backToQueryListPage()); });
|
|
21330
|
+
i0.ɵɵtext(3);
|
|
21331
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
21332
|
+
i0.ɵɵelementEnd()();
|
|
21333
|
+
i0.ɵɵelementStart(5, "ccd-query-details", 8);
|
|
21334
|
+
i0.ɵɵlistener("backClicked", function ReadQueryManagementFieldComponent_ng_template_1_Template_ccd_query_details_backClicked_5_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.showQueryList = true); });
|
|
21055
21335
|
i0.ɵɵelementEnd();
|
|
21056
|
-
i0.ɵɵtemplate(
|
|
21336
|
+
i0.ɵɵtemplate(6, ReadQueryManagementFieldComponent_ng_template_1_ng_container_6_Template, 4, 6, "ng-container", 2)(7, ReadQueryManagementFieldComponent_ng_template_1_ng_template_7_Template, 7, 6, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
21057
21337
|
} if (rf & 2) {
|
|
21058
|
-
const queryIsInReview_r5 = i0.ɵɵreference(
|
|
21338
|
+
const queryIsInReview_r5 = i0.ɵɵreference(8);
|
|
21059
21339
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
21060
|
-
i0.ɵɵadvance();
|
|
21340
|
+
i0.ɵɵadvance(3);
|
|
21341
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, "Back to queries"));
|
|
21342
|
+
i0.ɵɵadvance(2);
|
|
21061
21343
|
i0.ɵɵproperty("query", ctx_r1.query)("caseId", ctx_r1.caseId);
|
|
21062
21344
|
i0.ɵɵadvance();
|
|
21063
21345
|
i0.ɵɵproperty("ngIf", (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0)("ngIfElse", queryIsInReview_r5);
|
|
@@ -21091,9 +21373,13 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
21091
21373
|
this.showQueryList = false;
|
|
21092
21374
|
this.query = query;
|
|
21093
21375
|
}
|
|
21376
|
+
backToQueryListPage() {
|
|
21377
|
+
this.showQueryList = true;
|
|
21378
|
+
this.query = null;
|
|
21379
|
+
}
|
|
21094
21380
|
static ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
21095
|
-
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"], ["id", "ask-follow-up-question", "data-module", "govuk-button", 1, "govuk-button", 3, "routerLink"], [1, "govuk-!-font-weight-bold"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21096
|
-
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template,
|
|
21381
|
+
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"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [3, "backClicked", "query", "caseId"], ["id", "ask-follow-up-question", "data-module", "govuk-button", 1, "govuk-button", 3, "routerLink"], [1, "govuk-!-font-weight-bold"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21382
|
+
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template, 9, 7, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
21097
21383
|
} if (rf & 2) {
|
|
21098
21384
|
const singleQueryDetails_r6 = i0.ɵɵreference(2);
|
|
21099
21385
|
i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse", singleQueryDetails_r6);
|
|
@@ -21101,7 +21387,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
21101
21387
|
}
|
|
21102
21388
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
21103
21389
|
type: Component,
|
|
21104
|
-
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 <br>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"query?.children?.length > 0; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4']\"\n >\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 will respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n</ng-template>\n" }]
|
|
21390
|
+
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 <br>\n <p>\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"backToQueryListPage()\">{{ 'Back to queries' | rpxTranslate }}</a>\n </p>\n\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"query?.children?.length > 0; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4']\"\n >\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 will respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n</ng-template>\n" }]
|
|
21105
21391
|
}], () => [{ type: i1$1.ActivatedRoute }], null); })();
|
|
21106
21392
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 14 }); })();
|
|
21107
21393
|
|
|
@@ -22358,7 +22644,7 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
22358
22644
|
i0.ɵɵadvance(4);
|
|
22359
22645
|
i0.ɵɵtextInterpolate1(" ", node_r2.name, " ");
|
|
22360
22646
|
i0.ɵɵadvance(3);
|
|
22361
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(9, 5, node_r2.upload_timestamp, "dd MMM YYYY"));
|
|
22647
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(9, 5, node_r2.upload_timestamp, "dd MMM YYYY HH:mm"));
|
|
22362
22648
|
i0.ɵɵadvance(3);
|
|
22363
22649
|
i0.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
22364
22650
|
} }
|
|
@@ -22652,7 +22938,7 @@ class CaseFileViewFolderComponent {
|
|
|
22652
22938
|
}
|
|
22653
22939
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
22654
22940
|
type: Component,
|
|
22655
|
-
args: [{ selector: 'ccd-case-file-view-folder', template: "<div class=\"document-filter-container\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <input class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"\n aria-label=\"Search by document name\">\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\">Documents ({{ documentCount }})</div>\n <div>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\"\n ></ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree [dataSource]=\"nestedDataSource\" [treeControl]=\"nestedTreeControl\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button class=\"node\" (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled>\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\" class=\"node__iconImg\" alt=\"Document icon\">\n </div>\n <span class=\"node__name node-name-document\">\n {{node.name}}\n <br>\n <span class=\"node__document-upload-timestamp\">{{node.upload_timestamp | date:\"dd MMM YYYY\"}}</span>\n </span>\n <div class=\"node__document-options\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </button>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button class=\"node\" cdkTreeNodeToggle>\n <div class=\"node__icon\" [attr.aria-label]=\"'toggle ' + node.name\" >\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node) ? '/assets/images/folder-open.png' : '/assets/images/folder.png'\" alt=\"Folder icon\">\n <span class=\"node__count\">{{node.childDocumentCount}}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{node.name}}</span>\n </button>\n\n <div [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}.node__document-upload-timestamp{font-size:.8rem;float:left;padding-left:10px}\n"] }]
|
|
22941
|
+
args: [{ selector: 'ccd-case-file-view-folder', template: "<div class=\"document-filter-container\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <input class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"\n aria-label=\"Search by document name\">\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\">Documents ({{ documentCount }})</div>\n <div>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\"\n ></ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree [dataSource]=\"nestedDataSource\" [treeControl]=\"nestedTreeControl\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button class=\"node\" (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled>\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\" class=\"node__iconImg\" alt=\"Document icon\">\n </div>\n <span class=\"node__name node-name-document\">\n {{node.name}}\n <br>\n <span class=\"node__document-upload-timestamp\">{{node.upload_timestamp | date:\"dd MMM YYYY HH:mm\"}}</span>\n </span>\n <div class=\"node__document-options\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </button>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button class=\"node\" cdkTreeNodeToggle>\n <div class=\"node__icon\" [attr.aria-label]=\"'toggle ' + node.name\" >\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node) ? '/assets/images/folder-open.png' : '/assets/images/folder.png'\" alt=\"Folder icon\">\n <span class=\"node__count\">{{node.childDocumentCount}}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{node.name}}</span>\n </button>\n\n <div [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}.node__document-upload-timestamp{font-size:.8rem;float:left;padding-left:10px}\n"] }]
|
|
22656
22942
|
}], () => [{ type: WindowService }, { type: i1$1.Router }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: AbstractAppConfig }], { categoriesAndDocuments: [{
|
|
22657
22943
|
type: Input
|
|
22658
22944
|
}], allowMoving: [{
|
|
@@ -24322,6 +24608,20 @@ class SelectFlagTypeComponent {
|
|
|
24322
24608
|
[SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY]: ''
|
|
24323
24609
|
});
|
|
24324
24610
|
});
|
|
24611
|
+
this.formGroup.addControl(CaseFlagFormFields.FLAG_TYPE, new FormControl(''));
|
|
24612
|
+
this.formGroup.addControl(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION, new FormControl(''));
|
|
24613
|
+
this.formGroup.addControl(CaseFlagFormFields.IS_VISIBLE_INTERNALLY_ONLY, new FormControl(''));
|
|
24614
|
+
// Should clear descriptionControlName if flagTypeControlName is changed
|
|
24615
|
+
this.flagTypeControlChangesSubscription = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE).valueChanges
|
|
24616
|
+
.subscribe(_ => {
|
|
24617
|
+
this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION).setValue('');
|
|
24618
|
+
this.cachedPath = [];
|
|
24619
|
+
// required to clear language interpreter
|
|
24620
|
+
this.formGroup.patchValue({
|
|
24621
|
+
[SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM]: '',
|
|
24622
|
+
[SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY]: ''
|
|
24623
|
+
});
|
|
24624
|
+
});
|
|
24325
24625
|
// If hmctsServiceId is present, use this to retrieve the relevant list of flag types
|
|
24326
24626
|
if (this.hmctsServiceId) {
|
|
24327
24627
|
this.flagRefdata$ = this.caseFlagRefdataService
|
|
@@ -27938,6 +28238,7 @@ const PALETTE_COMPONENTS = [
|
|
|
27938
28238
|
QualifyingQuestionDetailComponent,
|
|
27939
28239
|
QueryAttachmentsReadComponent,
|
|
27940
28240
|
QueryEventCompletionComponent,
|
|
28241
|
+
QueryConfirmationComponent,
|
|
27941
28242
|
// Case event completion
|
|
27942
28243
|
CaseEventCompletionComponent,
|
|
27943
28244
|
CaseEventCompletionTaskCancelledComponent,
|
|
@@ -28205,6 +28506,7 @@ class PaletteModule {
|
|
|
28205
28506
|
QualifyingQuestionDetailComponent,
|
|
28206
28507
|
QueryAttachmentsReadComponent,
|
|
28207
28508
|
QueryEventCompletionComponent,
|
|
28509
|
+
QueryConfirmationComponent,
|
|
28208
28510
|
// Case event completion
|
|
28209
28511
|
CaseEventCompletionComponent,
|
|
28210
28512
|
CaseEventCompletionTaskCancelledComponent,
|
|
@@ -28360,6 +28662,7 @@ class PaletteModule {
|
|
|
28360
28662
|
QualifyingQuestionDetailComponent,
|
|
28361
28663
|
QueryAttachmentsReadComponent,
|
|
28362
28664
|
QueryEventCompletionComponent,
|
|
28665
|
+
QueryConfirmationComponent,
|
|
28363
28666
|
// Case event completion
|
|
28364
28667
|
CaseEventCompletionComponent,
|
|
28365
28668
|
CaseEventCompletionTaskCancelledComponent,
|
|
@@ -33971,6 +34274,7 @@ function EventTriggerComponent_form_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
33971
34274
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 10, ctx_r1.triggerText));
|
|
33972
34275
|
} }
|
|
33973
34276
|
class EventTriggerComponent {
|
|
34277
|
+
appConfig;
|
|
33974
34278
|
fb;
|
|
33975
34279
|
orderService;
|
|
33976
34280
|
triggers;
|
|
@@ -33980,7 +34284,8 @@ class EventTriggerComponent {
|
|
|
33980
34284
|
onTriggerSubmit = new EventEmitter();
|
|
33981
34285
|
onTriggerChange = new EventEmitter();
|
|
33982
34286
|
triggerForm;
|
|
33983
|
-
constructor(fb, orderService) {
|
|
34287
|
+
constructor(appConfig, fb, orderService) {
|
|
34288
|
+
this.appConfig = appConfig;
|
|
33984
34289
|
this.fb = fb;
|
|
33985
34290
|
this.orderService = orderService;
|
|
33986
34291
|
}
|
|
@@ -33988,11 +34293,14 @@ class EventTriggerComponent {
|
|
|
33988
34293
|
this.triggers = this.orderService.sort(this.triggers);
|
|
33989
34294
|
if (this.eventId) {
|
|
33990
34295
|
const eventBundle = this.triggers.find(ev => ev.id === this.eventId);
|
|
33991
|
-
this.triggerForm.controls['trigger'].patchValue({ id: eventBundle
|
|
34296
|
+
this.triggerForm.controls['trigger'].patchValue({ id: eventBundle?.id, name: eventBundle?.name, description: eventBundle?.description });
|
|
33992
34297
|
}
|
|
33993
34298
|
}
|
|
33994
34299
|
ngOnChanges(changes) {
|
|
33995
|
-
if (changes
|
|
34300
|
+
if (changes?.triggers?.currentValue) {
|
|
34301
|
+
const eventsToHide = this.appConfig.getEventsToHide();
|
|
34302
|
+
this.triggers = this.triggers?.filter((event) => !eventsToHide.includes(event.id));
|
|
34303
|
+
this.triggers = this.orderService.sort(this.triggers);
|
|
33996
34304
|
this.triggerForm = this.fb.group({
|
|
33997
34305
|
trigger: [this.getDefault(), Validators.required]
|
|
33998
34306
|
});
|
|
@@ -34013,7 +34321,7 @@ class EventTriggerComponent {
|
|
|
34013
34321
|
getDefault() {
|
|
34014
34322
|
return this.triggers.length === 1 ? this.triggers[0] : '';
|
|
34015
34323
|
}
|
|
34016
|
-
static ɵfac = function EventTriggerComponent_Factory(t) { return new (t || EventTriggerComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(OrderService)); };
|
|
34324
|
+
static ɵfac = function EventTriggerComponent_Factory(t) { return new (t || EventTriggerComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(OrderService)); };
|
|
34017
34325
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventTriggerComponent, selectors: [["ccd-event-trigger"]], inputs: { triggers: "triggers", triggerText: "triggerText", isDisabled: "isDisabled", eventId: "eventId" }, outputs: { onTriggerSubmit: "onTriggerSubmit", onTriggerChange: "onTriggerChange" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "event-trigger", 3, "formGroup", "ngSubmit", 4, "ngIf"], [1, "event-trigger", 3, "ngSubmit", "formGroup"], [1, "form-group", 2, "width", "350px !important"], ["for", "next-step", 1, "form-label"], ["id", "next-step", "formControlName", "trigger", 1, "form-control", "ccd-dropdown", 3, "change", "ngClass", "compareWith"], ["value", "", "data-default", "", 4, "ngIf"], [3, "ngValue", "title", 4, "ngFor", "ngForOf"], ["type", "submit", 1, "button", 3, "disabled"], ["value", "", "data-default", ""], [3, "ngValue", "title"]], template: function EventTriggerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
34018
34326
|
i0.ɵɵtemplate(0, EventTriggerComponent_form_0_Template, 11, 14, "form", 0);
|
|
34019
34327
|
} if (rf & 2) {
|
|
@@ -34023,7 +34331,7 @@ class EventTriggerComponent {
|
|
|
34023
34331
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventTriggerComponent, [{
|
|
34024
34332
|
type: Component,
|
|
34025
34333
|
args: [{ selector: 'ccd-event-trigger', template: "<form *ngIf=\"triggers && triggers.length\" class=\"event-trigger\" (ngSubmit)=\"triggerSubmit()\" [formGroup]=\"triggerForm\">\n <div class=\"form-group\" style=\"width: 350px !important;\">\n <label class=\"form-label\" for=\"next-step\">{{'Next step' | rpxTranslate}}</label>\n <select class=\"form-control ccd-dropdown\" id=\"next-step\" (change)=\"triggerChange()\" formControlName=\"trigger\" [ngClass]=\"{\n 'EventTrigger-empty': !triggerForm.value['trigger']\n }\" [compareWith]=\"compareFn\">\n <option *ngIf=\"1 !== triggers.length\" value=\"\" data-default>{{'Select action' | rpxTranslate}}</option>\n <option *ngFor=\"let trigger of triggers\" [ngValue]=\"trigger\" [title]=\"trigger.description\">{{trigger.name | rpxTranslate}}</option>\n </select>\n </div>\n <button [disabled]=\"isButtonDisabled()\" type=\"submit\" class=\"button\">{{triggerText | rpxTranslate}}</button>\n</form>\n", styles: [".event-trigger{width:auto;margin-top:40px;margin-bottom:20px}.event-trigger .form-group{margin-top:3px;margin-right:10px;margin-bottom:0;float:left;text-align:right;width:325px}.event-trigger .form-group .form-label{float:left;margin-top:5px}.event-trigger select{width:250px}.event-trigger select.EventTrigger-empty,.event-trigger select [data-default]{color:#6f777b}\n"] }]
|
|
34026
|
-
}], () => [{ type: i4.FormBuilder }, { type: OrderService }], { triggers: [{
|
|
34334
|
+
}], () => [{ type: AbstractAppConfig }, { type: i4.FormBuilder }, { type: OrderService }], { triggers: [{
|
|
34027
34335
|
type: Input
|
|
34028
34336
|
}], triggerText: [{
|
|
34029
34337
|
type: Input
|
|
@@ -34036,7 +34344,7 @@ class EventTriggerComponent {
|
|
|
34036
34344
|
}], onTriggerChange: [{
|
|
34037
34345
|
type: Output
|
|
34038
34346
|
}] }); })();
|
|
34039
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EventTriggerComponent, { className: "EventTriggerComponent", filePath: "lib/shared/components/event-trigger/event-trigger.component.ts", lineNumber:
|
|
34347
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EventTriggerComponent, { className: "EventTriggerComponent", filePath: "lib/shared/components/event-trigger/event-trigger.component.ts", lineNumber: 12 }); })();
|
|
34040
34348
|
|
|
34041
34349
|
class EventTriggerModule {
|
|
34042
34350
|
static ɵfac = function EventTriggerModule_Factory(t) { return new (t || EventTriggerModule)(); };
|
|
@@ -36083,43 +36391,45 @@ function SearchResultComponent_table_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
36083
36391
|
} }
|
|
36084
36392
|
function SearchResultComponent_table_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
36085
36393
|
i0.ɵɵelementStart(0, "div", 16);
|
|
36086
|
-
i0.ɵɵ
|
|
36087
|
-
i0.ɵɵ
|
|
36088
|
-
i0.ɵɵ
|
|
36089
|
-
i0.ɵɵ
|
|
36090
|
-
i0.ɵɵ
|
|
36091
|
-
i0.ɵɵ
|
|
36092
|
-
i0.ɵɵelementEnd();
|
|
36394
|
+
i0.ɵɵelement(1, "output");
|
|
36395
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
36396
|
+
i0.ɵɵelementStart(3, "span", 17);
|
|
36397
|
+
i0.ɵɵtext(4);
|
|
36398
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
36399
|
+
i0.ɵɵelementStart(6, "span", 18);
|
|
36093
36400
|
i0.ɵɵtext(7);
|
|
36094
|
-
i0.ɵɵpipe(8, "rpxTranslate");
|
|
36095
|
-
i0.ɵɵelementStart(9, "span", 18);
|
|
36096
|
-
i0.ɵɵtext(10);
|
|
36097
36401
|
i0.ɵɵelementEnd();
|
|
36402
|
+
i0.ɵɵtext(8);
|
|
36403
|
+
i0.ɵɵpipe(9, "rpxTranslate");
|
|
36404
|
+
i0.ɵɵelementStart(10, "span", 18);
|
|
36098
36405
|
i0.ɵɵtext(11);
|
|
36099
|
-
i0.ɵɵpipe(12, "rpxTranslate");
|
|
36100
|
-
i0.ɵɵelementStart(13, "span", 18);
|
|
36101
|
-
i0.ɵɵtext(14);
|
|
36102
36406
|
i0.ɵɵelementEnd();
|
|
36407
|
+
i0.ɵɵtext(12);
|
|
36408
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
36409
|
+
i0.ɵɵelementStart(14, "span", 18);
|
|
36103
36410
|
i0.ɵɵtext(15);
|
|
36104
|
-
i0.ɵɵ
|
|
36411
|
+
i0.ɵɵelementEnd();
|
|
36412
|
+
i0.ɵɵtext(16);
|
|
36413
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
36105
36414
|
i0.ɵɵelementEnd()();
|
|
36106
36415
|
} if (rf & 2) {
|
|
36107
36416
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
36108
|
-
i0.ɵɵ
|
|
36417
|
+
i0.ɵɵadvance();
|
|
36418
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8, ctx_r0.getTotalResults() + " results have been found"));
|
|
36109
36419
|
i0.ɵɵadvance(3);
|
|
36110
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(
|
|
36420
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
|
|
36111
36421
|
i0.ɵɵadvance(3);
|
|
36112
36422
|
i0.ɵɵtextInterpolate(ctx_r0.getFirstResult());
|
|
36113
36423
|
i0.ɵɵadvance();
|
|
36114
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
36424
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, "to"), " ");
|
|
36115
36425
|
i0.ɵɵadvance(3);
|
|
36116
36426
|
i0.ɵɵtextInterpolate(ctx_r0.getLastResult());
|
|
36117
36427
|
i0.ɵɵadvance();
|
|
36118
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
36428
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 14, "of"), " ");
|
|
36119
36429
|
i0.ɵɵadvance(3);
|
|
36120
36430
|
i0.ɵɵtextInterpolate(ctx_r0.getTotalResults());
|
|
36121
36431
|
i0.ɵɵadvance();
|
|
36122
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
36432
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 16, "results"), "");
|
|
36123
36433
|
} }
|
|
36124
36434
|
function SearchResultComponent_table_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
36125
36435
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
@@ -36147,10 +36457,10 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
36147
36457
|
i0.ɵɵadvance(2);
|
|
36148
36458
|
i0.ɵɵproperty("checked", ctx_r0.allOnPageSelected())("disabled", !ctx_r0.canAnyBeShared());
|
|
36149
36459
|
} }
|
|
36150
|
-
function
|
|
36460
|
+
function SearchResultComponent_table_0_th_11_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
36151
36461
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
36152
36462
|
i0.ɵɵelementStart(0, "div", 28)(1, "a", 29);
|
|
36153
|
-
i0.ɵɵlistener("click", function
|
|
36463
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_div_5_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r6); const col_r5 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); });
|
|
36154
36464
|
i0.ɵɵelementEnd()();
|
|
36155
36465
|
} if (rf & 2) {
|
|
36156
36466
|
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36160,34 +36470,33 @@ function SearchResultComponent_table_0_th_11_div_8_Template(rf, ctx) { if (rf &
|
|
|
36160
36470
|
} }
|
|
36161
36471
|
function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
36162
36472
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
36163
|
-
i0.ɵɵelementStart(0, "th")(1, "
|
|
36164
|
-
i0.ɵɵ
|
|
36165
|
-
i0.ɵɵ
|
|
36166
|
-
i0.ɵɵ
|
|
36167
|
-
i0.ɵɵtext(6);
|
|
36168
|
-
i0.ɵɵpipe(7, "rpxTranslate");
|
|
36473
|
+
i0.ɵɵelementStart(0, "th", 25)(1, "div")(2, "div", 26);
|
|
36474
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_Template_div_click_2_listener() { const col_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); })("keyup", function SearchResultComponent_table_0_th_11_Template_div_keyup_2_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.noop()); });
|
|
36475
|
+
i0.ɵɵtext(3);
|
|
36476
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
36169
36477
|
i0.ɵɵelementEnd();
|
|
36170
|
-
i0.ɵɵtemplate(
|
|
36171
|
-
i0.ɵɵelementEnd()()
|
|
36478
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template, 2, 1, "div", 27);
|
|
36479
|
+
i0.ɵɵelementEnd()();
|
|
36172
36480
|
} if (rf & 2) {
|
|
36173
36481
|
const col_r5 = ctx.$implicit;
|
|
36174
36482
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
36175
|
-
i0.ɵɵ
|
|
36176
|
-
i0.ɵɵ
|
|
36177
|
-
i0.ɵɵ
|
|
36178
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 5, col_r5.label), " ");
|
|
36483
|
+
i0.ɵɵattribute("aria-sort", ctx_r0.isSortAscending(col_r5) === null ? null : ctx_r0.isSortAscending(col_r5) ? "ascending" : "descending");
|
|
36484
|
+
i0.ɵɵadvance(3);
|
|
36485
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, col_r5.label), " ");
|
|
36179
36486
|
i0.ɵɵadvance(2);
|
|
36180
36487
|
i0.ɵɵproperty("ngIf", ctx_r0.comparator(col_r5));
|
|
36181
36488
|
} }
|
|
36182
36489
|
function SearchResultComponent_table_0_th_12_Template(rf, ctx) { if (rf & 1) {
|
|
36183
|
-
i0.ɵɵ
|
|
36490
|
+
i0.ɵɵelementStart(0, "th", 30);
|
|
36491
|
+
i0.ɵɵtext(1, "\u200B");
|
|
36492
|
+
i0.ɵɵelementEnd();
|
|
36184
36493
|
} }
|
|
36185
36494
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
36186
36495
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
36187
|
-
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input",
|
|
36496
|
+
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input", 33);
|
|
36188
36497
|
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r7); const result_r8 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.changeSelection(result_r8)); });
|
|
36189
36498
|
i0.ɵɵelementEnd();
|
|
36190
|
-
i0.ɵɵelement(3, "label",
|
|
36499
|
+
i0.ɵɵelement(3, "label", 34);
|
|
36191
36500
|
i0.ɵɵelementEnd()();
|
|
36192
36501
|
} if (rf & 2) {
|
|
36193
36502
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36200,7 +36509,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
|
|
|
36200
36509
|
i0.ɵɵpropertyInterpolate1("for", "select-", result_r8.case_id, "");
|
|
36201
36510
|
} }
|
|
36202
36511
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
|
|
36203
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
36512
|
+
i0.ɵɵelement(0, "ccd-field-read", 42);
|
|
36204
36513
|
} if (rf & 2) {
|
|
36205
36514
|
const col_r9 = i0.ɵɵnextContext(3).$implicit;
|
|
36206
36515
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36215,8 +36524,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
36215
36524
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r8.case_id));
|
|
36216
36525
|
} }
|
|
36217
36526
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
36218
|
-
i0.ɵɵelementContainerStart(0,
|
|
36219
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
36527
|
+
i0.ɵɵelementContainerStart(0, 40);
|
|
36528
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 41)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
36220
36529
|
i0.ɵɵelementContainerEnd();
|
|
36221
36530
|
} if (rf & 2) {
|
|
36222
36531
|
const case_reference_r10 = i0.ɵɵreference(3);
|
|
@@ -36227,9 +36536,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
36227
36536
|
i0.ɵɵproperty("ngIf", ctx_r0.draftPrefixOrGet(col_r9, result_r8))("ngIfElse", case_reference_r10);
|
|
36228
36537
|
} }
|
|
36229
36538
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
36230
|
-
i0.ɵɵelementStart(0, "a",
|
|
36539
|
+
i0.ɵɵelementStart(0, "a", 38);
|
|
36231
36540
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
36232
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
36541
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 39);
|
|
36233
36542
|
i0.ɵɵelementEnd();
|
|
36234
36543
|
} if (rf & 2) {
|
|
36235
36544
|
const result_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -36240,8 +36549,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf
|
|
|
36240
36549
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideRows);
|
|
36241
36550
|
} }
|
|
36242
36551
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36243
|
-
i0.ɵɵelementStart(0, "div",
|
|
36244
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
36552
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
36553
|
+
i0.ɵɵelement(1, "ccd-field-read", 42);
|
|
36245
36554
|
i0.ɵɵelementEnd();
|
|
36246
36555
|
} if (rf & 2) {
|
|
36247
36556
|
const col_r9 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36252,8 +36561,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(
|
|
|
36252
36561
|
i0.ɵɵproperty("caseField", result_r8.columns[col_r9.case_field_id])("contextFields", result_r8.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c1));
|
|
36253
36562
|
} }
|
|
36254
36563
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
36255
|
-
i0.ɵɵelementStart(0, "td",
|
|
36256
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 6, "a",
|
|
36564
|
+
i0.ɵɵelementStart(0, "td", 35);
|
|
36565
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 6, "a", 36)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 37);
|
|
36257
36566
|
i0.ɵɵelementEnd();
|
|
36258
36567
|
} if (rf & 2) {
|
|
36259
36568
|
const colIndex_r11 = ctx.index;
|
|
@@ -36264,7 +36573,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ct
|
|
|
36264
36573
|
} }
|
|
36265
36574
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
36266
36575
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
36267
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
36576
|
+
i0.ɵɵelement(2, "ccd-activity", 43);
|
|
36268
36577
|
i0.ɵɵelementEnd()();
|
|
36269
36578
|
} if (rf & 2) {
|
|
36270
36579
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36276,7 +36585,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ct
|
|
|
36276
36585
|
} }
|
|
36277
36586
|
function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
36278
36587
|
i0.ɵɵelementStart(0, "tr");
|
|
36279
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 8, "td", 9)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td",
|
|
36588
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 8, "td", 9)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 32)(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 1);
|
|
36280
36589
|
i0.ɵɵelementEnd();
|
|
36281
36590
|
} if (rf & 2) {
|
|
36282
36591
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -36289,7 +36598,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) {
|
|
|
36289
36598
|
} }
|
|
36290
36599
|
function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
36291
36600
|
i0.ɵɵelementContainerStart(0);
|
|
36292
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr",
|
|
36601
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 31);
|
|
36293
36602
|
i0.ɵɵpipe(2, "paginate");
|
|
36294
36603
|
i0.ɵɵelementContainerEnd();
|
|
36295
36604
|
} if (rf & 2) {
|
|
@@ -36299,10 +36608,10 @@ function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (r
|
|
|
36299
36608
|
} }
|
|
36300
36609
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
36301
36610
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
36302
|
-
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input",
|
|
36611
|
+
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input", 44);
|
|
36303
36612
|
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r12); const result_r13 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.changeSelection(result_r13)); })("keyup", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r12); const result_r13 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.onKeyUp($event, result_r13)); });
|
|
36304
36613
|
i0.ɵɵelementEnd();
|
|
36305
|
-
i0.ɵɵelement(3, "label",
|
|
36614
|
+
i0.ɵɵelement(3, "label", 34);
|
|
36306
36615
|
i0.ɵɵelementEnd()();
|
|
36307
36616
|
} if (rf & 2) {
|
|
36308
36617
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36315,7 +36624,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ct
|
|
|
36315
36624
|
i0.ɵɵpropertyInterpolate1("for", "select-", result_r13.case_id, "");
|
|
36316
36625
|
} }
|
|
36317
36626
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
|
|
36318
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
36627
|
+
i0.ɵɵelement(0, "ccd-field-read", 42);
|
|
36319
36628
|
} if (rf & 2) {
|
|
36320
36629
|
const col_r14 = i0.ɵɵnextContext(3).$implicit;
|
|
36321
36630
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36330,8 +36639,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
|
|
|
36330
36639
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r13.case_id));
|
|
36331
36640
|
} }
|
|
36332
36641
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
36333
|
-
i0.ɵɵelementContainerStart(0,
|
|
36334
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
36642
|
+
i0.ɵɵelementContainerStart(0, 40);
|
|
36643
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 41)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
36335
36644
|
i0.ɵɵelementContainerEnd();
|
|
36336
36645
|
} if (rf & 2) {
|
|
36337
36646
|
const case_reference_r15 = i0.ɵɵreference(3);
|
|
@@ -36342,9 +36651,9 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
|
|
|
36342
36651
|
i0.ɵɵproperty("ngIf", ctx_r0.draftPrefixOrGet(col_r14, result_r13))("ngIfElse", case_reference_r15);
|
|
36343
36652
|
} }
|
|
36344
36653
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
36345
|
-
i0.ɵɵelementStart(0, "a",
|
|
36654
|
+
i0.ɵɵelementStart(0, "a", 38);
|
|
36346
36655
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
36347
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
36656
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 39);
|
|
36348
36657
|
i0.ɵɵelementEnd();
|
|
36349
36658
|
} if (rf & 2) {
|
|
36350
36659
|
const result_r13 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -36355,8 +36664,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf
|
|
|
36355
36664
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideRows);
|
|
36356
36665
|
} }
|
|
36357
36666
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36358
|
-
i0.ɵɵelementStart(0, "div",
|
|
36359
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
36667
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
36668
|
+
i0.ɵɵelement(1, "ccd-field-read", 42);
|
|
36360
36669
|
i0.ɵɵelementEnd();
|
|
36361
36670
|
} if (rf & 2) {
|
|
36362
36671
|
const col_r14 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36367,8 +36676,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(
|
|
|
36367
36676
|
i0.ɵɵproperty("caseField", result_r13.columns[col_r14.case_field_id])("contextFields", result_r13.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c1));
|
|
36368
36677
|
} }
|
|
36369
36678
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
36370
|
-
i0.ɵɵelementStart(0, "td",
|
|
36371
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 6, "a",
|
|
36679
|
+
i0.ɵɵelementStart(0, "td", 35);
|
|
36680
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 6, "a", 36)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template, 2, 6, "div", 37);
|
|
36372
36681
|
i0.ɵɵelementEnd();
|
|
36373
36682
|
} if (rf & 2) {
|
|
36374
36683
|
const colIndex_r16 = ctx.index;
|
|
@@ -36379,7 +36688,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ct
|
|
|
36379
36688
|
} }
|
|
36380
36689
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
36381
36690
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
36382
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
36691
|
+
i0.ɵɵelement(2, "ccd-activity", 43);
|
|
36383
36692
|
i0.ɵɵelementEnd()();
|
|
36384
36693
|
} if (rf & 2) {
|
|
36385
36694
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36391,7 +36700,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ct
|
|
|
36391
36700
|
} }
|
|
36392
36701
|
function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
36393
36702
|
i0.ɵɵelementStart(0, "tr");
|
|
36394
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template, 4, 8, "td", 9)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td",
|
|
36703
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template, 4, 8, "td", 9)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td", 32)(3, SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template, 3, 4, "td", 1);
|
|
36395
36704
|
i0.ɵɵelementEnd();
|
|
36396
36705
|
} if (rf & 2) {
|
|
36397
36706
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -36404,7 +36713,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) {
|
|
|
36404
36713
|
} }
|
|
36405
36714
|
function SearchResultComponent_table_0_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
36406
36715
|
i0.ɵɵelementContainerStart(0);
|
|
36407
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr",
|
|
36716
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr", 31);
|
|
36408
36717
|
i0.ɵɵpipe(2, "ccdSortSearchResult");
|
|
36409
36718
|
i0.ɵɵpipe(3, "paginate");
|
|
36410
36719
|
i0.ɵɵelementContainerEnd();
|
|
@@ -36418,10 +36727,10 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
36418
36727
|
i0.ɵɵtext(3);
|
|
36419
36728
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
36420
36729
|
i0.ɵɵelementEnd();
|
|
36421
|
-
i0.ɵɵtemplate(5, SearchResultComponent_table_0_div_5_Template, 11, 12, "div", 5)(6, SearchResultComponent_table_0_div_6_Template,
|
|
36730
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_0_div_5_Template, 11, 12, "div", 5)(6, SearchResultComponent_table_0_div_6_Template, 18, 18, "div", 6)(7, SearchResultComponent_table_0_div_7_Template, 6, 6, "div", 7);
|
|
36422
36731
|
i0.ɵɵelementEnd();
|
|
36423
36732
|
i0.ɵɵelementStart(8, "thead")(9, "tr", 8);
|
|
36424
|
-
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 4, 2, "th", 9)(11, SearchResultComponent_table_0_th_11_Template,
|
|
36733
|
+
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 4, 2, "th", 9)(11, SearchResultComponent_table_0_th_11_Template, 6, 5, "th", 10)(12, SearchResultComponent_table_0_th_12_Template, 2, 0, "th", 11);
|
|
36425
36734
|
i0.ɵɵelementEnd()();
|
|
36426
36735
|
i0.ɵɵelementStart(13, "tbody");
|
|
36427
36736
|
i0.ɵɵtemplate(14, SearchResultComponent_table_0_ng_container_14_Template, 3, 8, "ng-container", 1)(15, SearchResultComponent_table_0_ng_container_15_Template, 4, 11, "ng-container", 1);
|
|
@@ -36449,7 +36758,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
36449
36758
|
} }
|
|
36450
36759
|
function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1) {
|
|
36451
36760
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
36452
|
-
i0.ɵɵelementStart(0, "ccd-pagination",
|
|
36761
|
+
i0.ɵɵelementStart(0, "ccd-pagination", 45);
|
|
36453
36762
|
i0.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.goToPage($event)); });
|
|
36454
36763
|
i0.ɵɵelementEnd();
|
|
36455
36764
|
} if (rf & 2) {
|
|
@@ -36457,7 +36766,7 @@ function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1)
|
|
|
36457
36766
|
i0.ɵɵproperty("visibilityLabel", ctx_r0.hideRows ? "hidden" : "visible")("autoHide", true)("maxSize", 8)("screenReaderPaginationLabel", "Pagination")("screenReaderPageLabel", ctx_r0.page)("screenReaderCurrentLabel", "You're on page");
|
|
36458
36767
|
} }
|
|
36459
36768
|
function SearchResultComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36460
|
-
i0.ɵɵelementStart(0, "div",
|
|
36769
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
36461
36770
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
36462
36771
|
i0.ɵɵtext(2);
|
|
36463
36772
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -36762,24 +37071,11 @@ class SearchResultComponent {
|
|
|
36762
37071
|
return result.case_id.startsWith(DRAFT_PREFIX) ? DRAFT_PREFIX : this.hyphenateIfCaseReferenceOrGet(col, result);
|
|
36763
37072
|
}
|
|
36764
37073
|
isSortAscending(column) {
|
|
36765
|
-
|
|
36766
|
-
|
|
36767
|
-
|
|
36768
|
-
currentSortOrder(column) {
|
|
36769
|
-
let isAscending = true;
|
|
36770
|
-
let isDescending = true;
|
|
36771
|
-
if (this.comparator(column) === undefined) {
|
|
36772
|
-
return SortOrder$1.UNSORTED;
|
|
36773
|
-
}
|
|
36774
|
-
for (let i = 0; i < this.resultView.results.length - 1; i++) {
|
|
36775
|
-
const comparison = this.comparator(column).compare(this.resultView.results[i], this.resultView.results[i + 1]);
|
|
36776
|
-
isDescending = isDescending && comparison <= 0;
|
|
36777
|
-
isAscending = isAscending && comparison >= 0;
|
|
36778
|
-
if (!isAscending && !isDescending) {
|
|
36779
|
-
break;
|
|
36780
|
-
}
|
|
37074
|
+
// simple way to determine if the column param is sorted and if its asc/desc
|
|
37075
|
+
if (this.consumerSortParameters.column === column.case_field_id) {
|
|
37076
|
+
return this.consumerSortParameters.order === SortOrder$1.ASCENDING;
|
|
36781
37077
|
}
|
|
36782
|
-
return
|
|
37078
|
+
return null;
|
|
36783
37079
|
}
|
|
36784
37080
|
getFirstResult() {
|
|
36785
37081
|
const currentPage = (this.selected.page ? this.selected.page : 1);
|
|
@@ -36818,8 +37114,10 @@ class SearchResultComponent {
|
|
|
36818
37114
|
}
|
|
36819
37115
|
}
|
|
36820
37116
|
}
|
|
37117
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
37118
|
+
noop() { }
|
|
36821
37119
|
static ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ActivityService), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(BrowserService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
36822
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top",
|
|
37120
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], ["class", "search-result-column-header", 4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], [1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], [1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], [1, "search-result-column-header"], [1, "search-result-column-label", 3, "click", "keyup"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "innerHTML"], [2, "width", "110px"], [4, "ngFor", "ngForOf"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [3, "pageChange", "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel"], [1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
36823
37121
|
i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 16, 11, "table", 1)(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 2)(2, SearchResultComponent_div_2_Template, 4, 6, "div", 3);
|
|
36824
37122
|
} if (rf & 2) {
|
|
36825
37123
|
i0.ɵɵproperty("ngIf", ctx.hasResults() || ctx.hasDrafts());
|
|
@@ -36831,7 +37129,7 @@ class SearchResultComponent {
|
|
|
36831
37129
|
}
|
|
36832
37130
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
36833
37131
|
type: Component,
|
|
36834
|
-
args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\"
|
|
37132
|
+
args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\">\n <output [attr.aria-label]=\"getTotalResults() + ' results have been found' | rpxTranslate\"></output>\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void(0)\" (click)=\"clearSelection()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <th *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\">\n </label>\n </div>\n </th>\n <th *ngFor=\"let col of resultView.columns\" class=\"search-result-column-header\"\n [attr.aria-sort]=\"isSortAscending(col) === null ? null : (isSortAscending(col) ? 'ascending' : 'descending')\">\n <div>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\" (keyup)=\"noop()\">\n {{col.label | rpxTranslate}}\n </div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" href=\"javascript:void(0)\"></a>\n </div>\n </div>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\">​</th>\n </tr>\n </thead>\n\n <tbody>\n <!-- sorted by consumer -->\n <ng-container *ngIf=\"consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n <!-- sorted by toolkit -->\n <ng-container *ngIf=\"!consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | ccdSortSearchResult : sortParameters | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" (keyup)=\"onKeyUp($event, result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n\n </tbody>\n</table>\n\n<ccd-pagination\n *ngIf=\"hasResults()\"\n (pageChange)=\"goToPage($event)\"\n [visibilityLabel]=\"hideRows ? 'hidden' : 'visible'\"\n [autoHide]=\"true\"\n [maxSize]=\"8\"\n [screenReaderPaginationLabel]=\"'Pagination'\"\n [screenReaderPageLabel]=\"page\"\n [screenReaderCurrentLabel]=\"'You\\'re on page'\"></ccd-pagination>\n\n<div *ngIf=\"!(hasResults() || hasDrafts())\" class=\"notification\"\n[attr.aria-describedby]=\"'No cases found. Try using different filters.' | rpxTranslate\">\n{{'No cases found. Try using different filters.' | rpxTranslate}}\n</div>\n", styles: ["table thead tr th{vertical-align:top}table tbody tr td{font-size:16px;word-wrap:break-word}table tbody tr td a{float:left}table .caseid-col{white-space:nowrap}.notification{text-align:center;padding:30px 0;margin-top:75px}a:hover{color:#005ea5}.search-result-reset-link{padding-right:15px;padding-left:15px}.search-result-column-header{width:unset;table-layout:normal}.search-result-column-header div{display:table-cell;width:auto}@media screen and (max-width: 379px){.search-result-column-header div{display:block;float:right}}.search-result-column-label{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort{font-size:16px}.sort-widget{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium{margin-top:-20px}.govuk-table__checkbox{vertical-align:middle;padding-left:3px}#search-result-heading__text:focus{outline:none}\n"] }]
|
|
36835
37133
|
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
|
|
36836
37134
|
type: Input
|
|
36837
37135
|
}], jurisdiction: [{
|
|
@@ -37168,5 +37466,5 @@ class TestRouteSnapshotBuilder {
|
|
|
37168
37466
|
* Generated bundle index. Do not edit.
|
|
37169
37467
|
*/
|
|
37170
37468
|
|
|
37171
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
37469
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
37172
37470
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map
|