@hmcts/ccd-case-ui-toolkit 7.2.58-exui-3053 → 7.2.58-exui-3545-rc2
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/shared/components/case-editor/case-edit/case-edit.component.mjs +4 -2
- package/esm2022/lib/shared/components/case-editor/services/event-completion-state-machine.service.mjs +17 -7
- package/esm2022/lib/shared/components/event-start/event-guard/event-start.guard.mjs +3 -1
- package/esm2022/lib/shared/components/event-start/event-start.component.mjs +10 -6
- package/esm2022/lib/shared/components/event-start/services/event-start-state-machine.service.mjs +12 -5
- package/esm2022/lib/shared/components/palette/document/write-document-field.component.mjs +10 -5
- package/esm2022/lib/shared/directives/substitutor/label-substitutor.directive.mjs +4 -6
- package/esm2022/lib/shared/services/document-management/document-management.service.mjs +1 -2
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +47 -27
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/event-completion-state-machine.service.d.ts +5 -2
- package/lib/shared/components/case-editor/services/event-completion-state-machine.service.d.ts.map +1 -1
- package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -1
- package/lib/shared/components/event-start/event-start.component.d.ts +3 -1
- package/lib/shared/components/event-start/event-start.component.d.ts.map +1 -1
- package/lib/shared/components/event-start/services/event-start-state-machine.service.d.ts +4 -1
- package/lib/shared/components/event-start/services/event-start-state-machine.service.d.ts.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +1 -0
- package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -1
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts.map +1 -1
- package/lib/shared/services/document-management/document-management.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import * as i1$1 from '@angular/router';
|
|
|
8
8
|
import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
|
|
9
9
|
import * as i4 from '@angular/forms';
|
|
10
10
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
11
|
-
import { BehaviorSubject, throwError, Subject, EMPTY, Observable, of, combineLatest, timer, forkJoin, fromEvent, Subscription } from 'rxjs';
|
|
11
|
+
import { BehaviorSubject, throwError, Subject, EMPTY, Observable, skip, of, combineLatest, timer, forkJoin, fromEvent, Subscription } from 'rxjs';
|
|
12
12
|
import * as i1$2 from '@angular/common/http';
|
|
13
13
|
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
14
14
|
import { distinctUntilChanged, catchError, map, publish, refCount, switchMap, debounceTime, take, delay, finalize, timeout, mergeMap, retryWhen, tap, delayWhen, publishReplay, first, takeUntil, filter } from 'rxjs/operators';
|
|
@@ -6533,11 +6533,8 @@ class LabelSubstitutorDirective {
|
|
|
6533
6533
|
this.initialHintText = this.caseField.hint_text;
|
|
6534
6534
|
this.caseField.originalLabel = this.caseField.label;
|
|
6535
6535
|
this.formGroup = this.formGroup || new FormGroup({});
|
|
6536
|
-
this.languageSubscription = this.rpxTranslationService.language$.subscribe(() => {
|
|
6537
|
-
|
|
6538
|
-
setTimeout(() => {
|
|
6539
|
-
this.onLanguageChange();
|
|
6540
|
-
}, 100);
|
|
6536
|
+
this.languageSubscription = this.rpxTranslationService.language$.pipe(skip(1)).subscribe(() => {
|
|
6537
|
+
this.onLanguageChange();
|
|
6541
6538
|
});
|
|
6542
6539
|
this.applySubstitutions();
|
|
6543
6540
|
}
|
|
@@ -7346,7 +7343,6 @@ class DocumentManagementService {
|
|
|
7346
7343
|
isDocumentSecureModeEnabled() {
|
|
7347
7344
|
const documentSecureModeCaseTypeExclusions = this.appConfig.getCdamExclusionList()?.split(',');
|
|
7348
7345
|
const isDocumentOnExclusionList = documentSecureModeCaseTypeExclusions?.includes(this.caseTypeId);
|
|
7349
|
-
this.appConfig.logMessage(`isDocumentOnExclusionList: ${isDocumentOnExclusionList}`);
|
|
7350
7346
|
if (!isDocumentOnExclusionList) {
|
|
7351
7347
|
return true;
|
|
7352
7348
|
}
|
|
@@ -8698,6 +8694,7 @@ var EventCompletionTaskStates;
|
|
|
8698
8694
|
|
|
8699
8695
|
const EVENT_COMPLETION_STATE_MACHINE = 'EVENT COMPLETION STATE MACHINE';
|
|
8700
8696
|
class EventCompletionStateMachineService {
|
|
8697
|
+
abstractConfig;
|
|
8701
8698
|
stateCheckTasksCanBeCompleted;
|
|
8702
8699
|
stateCompleteEventAndTask;
|
|
8703
8700
|
stateCancelEvent;
|
|
@@ -8708,6 +8705,9 @@ class EventCompletionStateMachineService {
|
|
|
8708
8705
|
stateTaskAssignToUser;
|
|
8709
8706
|
stateTaskUnassigned;
|
|
8710
8707
|
stateFinal;
|
|
8708
|
+
constructor(abstractConfig) {
|
|
8709
|
+
this.abstractConfig = abstractConfig;
|
|
8710
|
+
}
|
|
8711
8711
|
initialiseStateMachine(context) {
|
|
8712
8712
|
return new StateMachine(EVENT_COMPLETION_STATE_MACHINE, context);
|
|
8713
8713
|
}
|
|
@@ -8732,9 +8732,10 @@ class EventCompletionStateMachineService {
|
|
|
8732
8732
|
this.addTransitionsForStateTaskAssignedToAnotherUser();
|
|
8733
8733
|
this.addTransitionsForStateTaskUnassigned();
|
|
8734
8734
|
}
|
|
8735
|
-
entryActionForStateCheckTasksCanBeCompleted(state, context) {
|
|
8735
|
+
entryActionForStateCheckTasksCanBeCompleted = (state, context) => {
|
|
8736
8736
|
const assignNeeded = context.sessionStorageService.getItem('assignNeeded');
|
|
8737
8737
|
context.workAllocationService.getTask(context.task.id).subscribe(taskResponse => {
|
|
8738
|
+
this.abstractConfig?.logMessage?.(`entryActionForStateCheckTasksCanBeCompleted: task_state ${taskResponse?.task?.task_state} for task id ${context.task.id}`);
|
|
8738
8739
|
if (taskResponse?.task?.task_state) {
|
|
8739
8740
|
switch (taskResponse.task.task_state.toUpperCase()) {
|
|
8740
8741
|
case TaskState.Unassigned:
|
|
@@ -8773,27 +8774,30 @@ class EventCompletionStateMachineService {
|
|
|
8773
8774
|
else if (!taskResponse?.task) {
|
|
8774
8775
|
context.alertService.setPreserveAlerts(true);
|
|
8775
8776
|
context.alertService.warning({ phrase: 'Task statecheck : no task available for completion', replacements: {} });
|
|
8777
|
+
this.abstractConfig?.logMessage?.(`Task statecheck : no task available for completion`);
|
|
8776
8778
|
}
|
|
8777
8779
|
else {
|
|
8778
8780
|
context.alertService.setPreserveAlerts(true);
|
|
8779
8781
|
context.alertService.warning({ phrase: 'Task statecheck : no task state available for completion', replacements: {} });
|
|
8782
|
+
this.abstractConfig?.logMessage?.(`Task statecheck : no task state available for completion`);
|
|
8780
8783
|
}
|
|
8781
8784
|
}, error => {
|
|
8782
8785
|
context.alertService.error(error.message);
|
|
8783
8786
|
return throwError(error);
|
|
8784
8787
|
});
|
|
8785
|
-
}
|
|
8788
|
+
};
|
|
8786
8789
|
entryActionForStateTaskCompletedOrCancelled(state, context) {
|
|
8787
8790
|
// Trigger final state to complete processing of state machine
|
|
8788
8791
|
state.trigger(EventCompletionStates.Final);
|
|
8789
8792
|
// Load case event completion task cancelled component
|
|
8790
8793
|
context.component.setTaskState(EventCompletionTaskStates.TaskCancelled);
|
|
8791
8794
|
}
|
|
8792
|
-
entryActionForStateCompleteEventAndTask(state, context) {
|
|
8795
|
+
entryActionForStateCompleteEventAndTask = (state, context) => {
|
|
8793
8796
|
// Trigger final state to complete processing of state machine
|
|
8794
8797
|
state.trigger(EventCompletionStates.Final);
|
|
8795
8798
|
const clientContextStr = context.sessionStorageService.getItem(CaseEditComponent.CLIENT_CONTEXT);
|
|
8796
8799
|
const userTask = FieldsUtils.getUserTaskFromClientContext(clientContextStr);
|
|
8800
|
+
this.abstractConfig?.logMessage?.(`entryActionForStateCompleteEventAndTask: userTask task_data ${JSON.stringify(userTask?.task_data?.id)}`);
|
|
8797
8801
|
if (userTask?.task_data) {
|
|
8798
8802
|
context.sessionStorageService.setItem('assignNeeded', 'false');
|
|
8799
8803
|
// just set event can be completed
|
|
@@ -8805,7 +8809,7 @@ class EventCompletionStateMachineService {
|
|
|
8805
8809
|
// Emit event cannot be completed event
|
|
8806
8810
|
context.component.eventCanBeCompleted.emit(false);
|
|
8807
8811
|
}
|
|
8808
|
-
}
|
|
8812
|
+
};
|
|
8809
8813
|
entryActionForStateTaskAssignedToAnotherUser(state, context) {
|
|
8810
8814
|
// Trigger final state to complete processing of state machine
|
|
8811
8815
|
state.trigger(EventCompletionStates.Final);
|
|
@@ -8859,12 +8863,12 @@ class EventCompletionStateMachineService {
|
|
|
8859
8863
|
const userTask = FieldsUtils.getUserTaskFromClientContext(clientContextStr);
|
|
8860
8864
|
return !!userTask.task_data;
|
|
8861
8865
|
}
|
|
8862
|
-
static ɵfac = function EventCompletionStateMachineService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EventCompletionStateMachineService)(); };
|
|
8866
|
+
static ɵfac = function EventCompletionStateMachineService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EventCompletionStateMachineService)(i0.ɵɵinject(AbstractAppConfig)); };
|
|
8863
8867
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EventCompletionStateMachineService, factory: EventCompletionStateMachineService.ɵfac });
|
|
8864
8868
|
}
|
|
8865
8869
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventCompletionStateMachineService, [{
|
|
8866
8870
|
type: Injectable
|
|
8867
|
-
}],
|
|
8871
|
+
}], () => [{ type: AbstractAppConfig }], null); })();
|
|
8868
8872
|
|
|
8869
8873
|
class JudicialworkerService {
|
|
8870
8874
|
http;
|
|
@@ -9385,7 +9389,7 @@ class CaseEditComponent {
|
|
|
9385
9389
|
const userId = userInfo.id ? userInfo.id : userInfo.uid;
|
|
9386
9390
|
const eventDetails = { eventId, caseId, userId, assignNeeded };
|
|
9387
9391
|
if (this.taskExistsForThisEvent(taskInSessionStorage, taskEventCompletionInfo, eventDetails)) {
|
|
9388
|
-
this.abstractConfig.logMessage(`task exist for this event for caseId and eventId as ${caseId} ${eventId}`);
|
|
9392
|
+
this.abstractConfig.logMessage(`task ${taskInSessionStorage.id} exist for this event for caseId and eventId as ${caseId} ${eventId}`);
|
|
9389
9393
|
// Show event completion component to perform event completion checks
|
|
9390
9394
|
this.eventCompletionParams = ({
|
|
9391
9395
|
caseId,
|
|
@@ -9405,6 +9409,7 @@ class CaseEditComponent {
|
|
|
9405
9409
|
this.isEventCompletionChecksRequired = true;
|
|
9406
9410
|
}
|
|
9407
9411
|
else {
|
|
9412
|
+
this.abstractConfig.logMessage(`task does not exist for caseId and eventId as ${caseId} ${eventId}`);
|
|
9408
9413
|
// Task not in session storage, proceed to submit
|
|
9409
9414
|
const caseEventData = this.generateCaseEventData({
|
|
9410
9415
|
eventTrigger,
|
|
@@ -9615,6 +9620,7 @@ class CaseEditComponent {
|
|
|
9615
9620
|
this.abstractConfig.logMessage(`postCompleteTaskIfRequired: taskId ${task.id} and event name ${this.eventTrigger.name}`);
|
|
9616
9621
|
return this.workAllocationService.completeTask(task.id, this.eventTrigger.name);
|
|
9617
9622
|
}
|
|
9623
|
+
this.abstractConfig.logMessage(`postCompleteTaskIfRequired: no task to complete for event name ${this.eventTrigger.name} and caseId ${this.caseDetails.case_id}`);
|
|
9618
9624
|
return of(true);
|
|
9619
9625
|
}
|
|
9620
9626
|
finishEventCompletionLogic(eventResponse) {
|
|
@@ -15252,6 +15258,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15252
15258
|
jurisdictionId;
|
|
15253
15259
|
caseTypeId;
|
|
15254
15260
|
caseTypeExclusions;
|
|
15261
|
+
caseId;
|
|
15255
15262
|
// Should the file upload use CDAM
|
|
15256
15263
|
fileSecureModeOn = false;
|
|
15257
15264
|
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
|
|
@@ -15272,6 +15279,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15272
15279
|
if (caseDetails) {
|
|
15273
15280
|
this.caseTypeId = caseDetails?.case_type?.id;
|
|
15274
15281
|
this.jurisdictionId = caseDetails?.case_type?.jurisdiction?.id;
|
|
15282
|
+
this.caseId = caseDetails?.case_id;
|
|
15275
15283
|
}
|
|
15276
15284
|
if (jurisdiction) {
|
|
15277
15285
|
this.jurisdictionId = jurisdiction.id;
|
|
@@ -15290,12 +15298,8 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15290
15298
|
}
|
|
15291
15299
|
// use the documentManagement service to check if the document upload should use CDAM
|
|
15292
15300
|
if (this.documentManagement.isDocumentSecureModeEnabled()) {
|
|
15293
|
-
this.appConfig.logMessage(`CDAM is enabled for case with case ref:: ${caseDetails?.case_id}`);
|
|
15294
15301
|
this.fileSecureModeOn = true;
|
|
15295
15302
|
}
|
|
15296
|
-
else {
|
|
15297
|
-
this.appConfig.logMessage(`CDAM is disabled for case with case ref:: ${caseDetails?.case_id}`);
|
|
15298
|
-
}
|
|
15299
15303
|
this.dialogConfig = initDialog();
|
|
15300
15304
|
let document = this.caseField.value || { document_url: null, document_binary_url: null, document_filename: null };
|
|
15301
15305
|
document = this.fileSecureModeOn && !document.document_hash ? { ...document, document_hash: null } : document;
|
|
@@ -15529,6 +15533,13 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15529
15533
|
return documentUpload;
|
|
15530
15534
|
}
|
|
15531
15535
|
handleDocumentUploadResult(result) {
|
|
15536
|
+
// use the documentManagement service to check if the document upload should use CDAM
|
|
15537
|
+
if (this.documentManagement.isDocumentSecureModeEnabled()) {
|
|
15538
|
+
this.appConfig.logMessage(`CDAM is enabled for case with case ref:: ${this.caseId}`);
|
|
15539
|
+
}
|
|
15540
|
+
else {
|
|
15541
|
+
this.appConfig.logMessage(`CDAM is disabled for case with case ref:: ${this.caseId}`);
|
|
15542
|
+
}
|
|
15532
15543
|
if (!this.uploadedDocument) {
|
|
15533
15544
|
if (this.fileSecureModeOn) {
|
|
15534
15545
|
this.createDocumentForm({ document_url: null, document_binary_url: null, document_filename: null, document_hash: null });
|
|
@@ -36923,6 +36934,7 @@ class EventStartGuard {
|
|
|
36923
36934
|
}
|
|
36924
36935
|
}
|
|
36925
36936
|
checkForTasks(payload, caseId, eventId, taskId, userId) {
|
|
36937
|
+
this.abstractConfig.logMessage(`checkForTasks: for caseId ${caseId} and eventId ${eventId} and taskId ${taskId} and userId ${userId}`);
|
|
36926
36938
|
if (taskId && payload?.tasks?.length > 0) {
|
|
36927
36939
|
const task = payload.tasks.find((t) => t.id == taskId);
|
|
36928
36940
|
if (task) {
|
|
@@ -36971,6 +36983,7 @@ class EventStartGuard {
|
|
|
36971
36983
|
};
|
|
36972
36984
|
this.sessionStorageService.setItem(CaseEditComponent.TASK_EVENT_COMPLETION_INFO, JSON.stringify(taskEventCompletionInfo));
|
|
36973
36985
|
this.sessionStorageService.setItem(CaseEditComponent.CLIENT_CONTEXT, JSON.stringify(storeClientContext));
|
|
36986
|
+
this.abstractConfig.logMessage(`EventStartGuard:setClientContextStorage: set task ${task.id} in client context for caseId ${caseId} and eventId ${eventId}`);
|
|
36974
36987
|
}
|
|
36975
36988
|
static ɵfac = function EventStartGuard_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EventStartGuard)(i0.ɵɵinject(WorkAllocationService), i0.ɵɵinject(i1$1.Router), i0.ɵɵinject(SessionStorageService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(ReadCookieService), i0.ɵɵinject(CaseNotifier)); };
|
|
36976
36989
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EventStartGuard, factory: EventStartGuard.ɵfac });
|
|
@@ -36997,6 +37010,7 @@ var EventStartStates;
|
|
|
36997
37010
|
|
|
36998
37011
|
const EVENT_STATE_MACHINE = 'EVENT STATE MACHINE';
|
|
36999
37012
|
class EventStartStateMachineService {
|
|
37013
|
+
abstractConfig;
|
|
37000
37014
|
stateCheckForMatchingTasks;
|
|
37001
37015
|
stateNoTask;
|
|
37002
37016
|
stateOneTask;
|
|
@@ -37006,6 +37020,9 @@ class EventStartStateMachineService {
|
|
|
37006
37020
|
stateMultipleTasksAssignedToUser;
|
|
37007
37021
|
stateTaskUnassigned;
|
|
37008
37022
|
stateFinal;
|
|
37023
|
+
constructor(abstractConfig) {
|
|
37024
|
+
this.abstractConfig = abstractConfig;
|
|
37025
|
+
}
|
|
37009
37026
|
initialiseStateMachine(context) {
|
|
37010
37027
|
return new StateMachine(EVENT_STATE_MACHINE, context);
|
|
37011
37028
|
}
|
|
@@ -37110,7 +37127,7 @@ class EventStartStateMachineService {
|
|
|
37110
37127
|
// Navigate
|
|
37111
37128
|
context.router.navigate([`${navigationURL}`], { queryParams: theQueryParams, relativeTo: context.route });
|
|
37112
37129
|
}
|
|
37113
|
-
entryActionForStateOneTaskAssignedToUser(state, context) {
|
|
37130
|
+
entryActionForStateOneTaskAssignedToUser = (state, context) => {
|
|
37114
37131
|
// Trigger final state to complete processing of state machine
|
|
37115
37132
|
state.trigger(EventStartStates.FINAL);
|
|
37116
37133
|
// Get task assigned to user
|
|
@@ -37119,6 +37136,7 @@ class EventStartStateMachineService {
|
|
|
37119
37136
|
task = context.tasks[0];
|
|
37120
37137
|
}
|
|
37121
37138
|
const taskStr = JSON.stringify(task);
|
|
37139
|
+
this.abstractConfig?.logMessage?.(`entryActionForStateOneTaskAssignedToUser: task_state ${task?.task_state} for task id ${task.id}`);
|
|
37122
37140
|
console.log('entryActionForStateOneTaskAssignedToUser: setting client context task_data to ' + taskStr);
|
|
37123
37141
|
// Store task to session
|
|
37124
37142
|
const currentLanguage = context.cookieService.getCookie('exui-preferred-language');
|
|
@@ -37151,7 +37169,7 @@ class EventStartStateMachineService {
|
|
|
37151
37169
|
context.sessionStorageService.setItem(CaseEditComponent.CLIENT_CONTEXT, JSON.stringify(clientContext));
|
|
37152
37170
|
// Allow user to perform the event
|
|
37153
37171
|
context.router.navigate([`/cases/case-details/${task.jurisdiction}/${task.case_type_id}/${context.caseId}/trigger/${context.eventId}`], { relativeTo: context.route });
|
|
37154
|
-
}
|
|
37172
|
+
};
|
|
37155
37173
|
entryActionForStateMultipleTasksAssignedToUser(state, context) {
|
|
37156
37174
|
// Trigger final state to complete processing of state machine
|
|
37157
37175
|
state.trigger(EventStartStates.FINAL);
|
|
@@ -37190,12 +37208,12 @@ class EventStartStateMachineService {
|
|
|
37190
37208
|
addTransitionsForStateMultipleTasksAssignedToUser() {
|
|
37191
37209
|
this.stateMultipleTasksAssignedToUser.addTransition(EventStartStates.FINAL, this.stateFinal);
|
|
37192
37210
|
}
|
|
37193
|
-
static ɵfac = function EventStartStateMachineService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EventStartStateMachineService)(); };
|
|
37211
|
+
static ɵfac = function EventStartStateMachineService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EventStartStateMachineService)(i0.ɵɵinject(AbstractAppConfig)); };
|
|
37194
37212
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EventStartStateMachineService, factory: EventStartStateMachineService.ɵfac });
|
|
37195
37213
|
}
|
|
37196
37214
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventStartStateMachineService, [{
|
|
37197
37215
|
type: Injectable
|
|
37198
|
-
}],
|
|
37216
|
+
}], () => [{ type: AbstractAppConfig }], null); })();
|
|
37199
37217
|
|
|
37200
37218
|
class EventStartComponent {
|
|
37201
37219
|
service;
|
|
@@ -37203,14 +37221,16 @@ class EventStartComponent {
|
|
|
37203
37221
|
route;
|
|
37204
37222
|
sessionStorageService;
|
|
37205
37223
|
cookieService;
|
|
37224
|
+
abstractConfig;
|
|
37206
37225
|
stateMachine;
|
|
37207
37226
|
context;
|
|
37208
|
-
constructor(service, router, route, sessionStorageService, cookieService) {
|
|
37227
|
+
constructor(service, router, route, sessionStorageService, cookieService, abstractConfig) {
|
|
37209
37228
|
this.service = service;
|
|
37210
37229
|
this.router = router;
|
|
37211
37230
|
this.route = route;
|
|
37212
37231
|
this.sessionStorageService = sessionStorageService;
|
|
37213
37232
|
this.cookieService = cookieService;
|
|
37233
|
+
this.abstractConfig = abstractConfig;
|
|
37214
37234
|
}
|
|
37215
37235
|
ngOnInit() {
|
|
37216
37236
|
// Get task and case id payload from route data
|
|
@@ -37230,7 +37250,7 @@ class EventStartComponent {
|
|
|
37230
37250
|
cookieService: this.cookieService
|
|
37231
37251
|
};
|
|
37232
37252
|
// Initialise state machine
|
|
37233
|
-
this.service = new EventStartStateMachineService();
|
|
37253
|
+
this.service = new EventStartStateMachineService(this.abstractConfig);
|
|
37234
37254
|
this.stateMachine = this.service.initialiseStateMachine(this.context);
|
|
37235
37255
|
// Create states
|
|
37236
37256
|
this.service.createStates(this.stateMachine);
|
|
@@ -37239,14 +37259,14 @@ class EventStartComponent {
|
|
|
37239
37259
|
// Start state machine
|
|
37240
37260
|
this.service.startStateMachine(this.stateMachine);
|
|
37241
37261
|
}
|
|
37242
|
-
static ɵfac = function EventStartComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EventStartComponent)(i0.ɵɵdirectiveInject(EventStartStateMachineService), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(ReadCookieService)); };
|
|
37262
|
+
static ɵfac = function EventStartComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EventStartComponent)(i0.ɵɵdirectiveInject(EventStartStateMachineService), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(ReadCookieService), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
37243
37263
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventStartComponent, selectors: [["ccd-event-start"]], decls: 0, vars: 0, template: function EventStartComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
37244
37264
|
}
|
|
37245
37265
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventStartComponent, [{
|
|
37246
37266
|
type: Component,
|
|
37247
37267
|
args: [{ selector: 'ccd-event-start', template: "" }]
|
|
37248
|
-
}], () => [{ type: EventStartStateMachineService }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: ReadCookieService }], null); })();
|
|
37249
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EventStartComponent, { className: "EventStartComponent", filePath: "lib/shared/components/event-start/event-start.component.ts", lineNumber:
|
|
37268
|
+
}], () => [{ type: EventStartStateMachineService }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: ReadCookieService }, { type: AbstractAppConfig }], null); })();
|
|
37269
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EventStartComponent, { className: "EventStartComponent", filePath: "lib/shared/components/event-start/event-start.component.ts", lineNumber: 15 }); })();
|
|
37250
37270
|
|
|
37251
37271
|
class EventTasksResolverService {
|
|
37252
37272
|
service;
|