@hmcts/ccd-case-ui-toolkit 7.0.11-manual-caseflag-lang → 7.0.11-orgs-cache-functionality
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/esm2020/lib/shared/commons/constants.mjs +2 -1
- package/esm2020/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +12 -6
- package/esm2020/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +22 -9
- package/esm2020/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +26 -30
- package/esm2020/lib/shared/services/organisation/organisation.service.mjs +3 -6
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +57 -46
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +55 -44
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/commons/constants.d.ts +1 -0
- package/lib/shared/commons/constants.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +3 -2
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts +5 -2
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.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/services/organisation/organisation.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4534,6 +4534,7 @@ class Constants {
|
|
|
4534
4534
|
}
|
|
4535
4535
|
Constants.MANDATORY = 'MANDATORY';
|
|
4536
4536
|
Constants.REGEX_WHITESPACES = '^[^ ]+(?:\\s+[^ ]+)*$';
|
|
4537
|
+
Constants.TASK_COMPLETION_ERROR = 'The associated task for this event failed to complete automatically. Please complete the task manually in the Tasks tab on the case';
|
|
4537
4538
|
Constants.ɵfac = function Constants_Factory(t) { return new (t || Constants)(); };
|
|
4538
4539
|
Constants.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: Constants, factory: Constants.ɵfac });
|
|
4539
4540
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Constants, [{
|
|
@@ -7257,14 +7258,11 @@ class OrganisationService {
|
|
|
7257
7258
|
const url = this.appconfig.getPrdUrl();
|
|
7258
7259
|
const cacheTimeOut = this.appconfig.getCacheTimeOut();
|
|
7259
7260
|
this.organisations$ = this.http.get(url)
|
|
7260
|
-
.pipe(map((orgs) => OrganisationService.mapOrganisation(orgs)), publishReplay(1), refCount(), take(1), catchError(e => {
|
|
7261
|
+
.pipe(map((orgs) => OrganisationService.mapOrganisation(orgs)), publishReplay(1, cacheTimeOut), refCount(), take(1), catchError(e => {
|
|
7261
7262
|
console.log(e);
|
|
7262
7263
|
// Handle error and return blank Observable array
|
|
7263
7264
|
return of([]);
|
|
7264
7265
|
}));
|
|
7265
|
-
timer(cacheTimeOut).subscribe(() => {
|
|
7266
|
-
this.organisations$ = null;
|
|
7267
|
-
});
|
|
7268
7266
|
}
|
|
7269
7267
|
return this.organisations$;
|
|
7270
7268
|
}
|
|
@@ -8656,7 +8654,7 @@ ValidPageListCaseFieldsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({
|
|
|
8656
8654
|
}], function () { return [{ type: FieldsUtils }]; }, null); })();
|
|
8657
8655
|
|
|
8658
8656
|
class CaseEditComponent {
|
|
8659
|
-
constructor(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService, validPageListCaseFieldsService, workAllocationService) {
|
|
8657
|
+
constructor(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService, validPageListCaseFieldsService, workAllocationService, alertService) {
|
|
8660
8658
|
this.fb = fb;
|
|
8661
8659
|
this.caseNotifier = caseNotifier;
|
|
8662
8660
|
this.router = router;
|
|
@@ -8672,6 +8670,7 @@ class CaseEditComponent {
|
|
|
8672
8670
|
this.loadingService = loadingService;
|
|
8673
8671
|
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
8674
8672
|
this.workAllocationService = workAllocationService;
|
|
8673
|
+
this.alertService = alertService;
|
|
8675
8674
|
this.cancelled = new EventEmitter();
|
|
8676
8675
|
this.submitted = new EventEmitter();
|
|
8677
8676
|
this.isEventCompletionChecksRequired = false;
|
|
@@ -8960,6 +8959,7 @@ class CaseEditComponent {
|
|
|
8960
8959
|
const loadingSpinnerToken = this.loadingService.register();
|
|
8961
8960
|
// keep the initial event response to finalise process after task completion
|
|
8962
8961
|
let eventResponse;
|
|
8962
|
+
this.sessionStorageService.setItem('taskCompletionError', 'false');
|
|
8963
8963
|
submit(caseEventData).pipe(switchMap((response) => {
|
|
8964
8964
|
eventResponse = response;
|
|
8965
8965
|
return this.postCompleteTaskIfRequired();
|
|
@@ -8981,10 +8981,13 @@ class CaseEditComponent {
|
|
|
8981
8981
|
this.isSubmitting = false;
|
|
8982
8982
|
}
|
|
8983
8983
|
else {
|
|
8984
|
+
this.sessionStorageService.setItem('taskCompletionError', 'true');
|
|
8984
8985
|
// task assignment/completion error - handled within workallocation service
|
|
8985
8986
|
// could set task to be deleted (or completed later)?
|
|
8986
|
-
// note: think error messages only shown if user is caseworker - might reqauire changing
|
|
8987
8987
|
this.finishEventCompletionLogic(eventResponse);
|
|
8988
|
+
// below allows error to be shown on navigation to confirmation page
|
|
8989
|
+
this.alertService.setPreserveAlerts(true);
|
|
8990
|
+
this.alertService.error({ phrase: Constants.TASK_COMPLETION_ERROR });
|
|
8988
8991
|
}
|
|
8989
8992
|
});
|
|
8990
8993
|
}
|
|
@@ -9040,14 +9043,14 @@ class CaseEditComponent {
|
|
|
9040
9043
|
}
|
|
9041
9044
|
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
9042
9045
|
CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
|
|
9043
|
-
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0.ɵɵdirectiveInject(i3.FormBuilder), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(FieldsPurger), i0.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0.ɵɵdirectiveInject(WizardFactoryService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(WorkAllocationService)); };
|
|
9046
|
+
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0.ɵɵdirectiveInject(i3.FormBuilder), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(FieldsPurger), i0.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0.ɵɵdirectiveInject(WizardFactoryService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(WorkAllocationService), i0.ɵɵdirectiveInject(AlertService)); };
|
|
9044
9047
|
CaseEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditComponent, selectors: [["ccd-case-edit"]], inputs: { eventTrigger: "eventTrigger", submit: "submit", validate: "validate", saveDraft: "saveDraft", caseDetails: "caseDetails" }, outputs: { cancelled: "cancelled", submitted: "submitted" }, features: [i0.ɵɵProvidersFeature([GreyBarService])], decls: 1, vars: 0, template: function CaseEditComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9045
9048
|
i0.ɵɵelement(0, "router-outlet");
|
|
9046
9049
|
} }, dependencies: [i1$1.RouterOutlet], styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0px}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.no-bottom-border[_ngcontent-%COMP%]{border-bottom:none}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
|
|
9047
9050
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditComponent, [{
|
|
9048
9051
|
type: Component,
|
|
9049
9052
|
args: [{ selector: 'ccd-case-edit', providers: [GreyBarService], template: "<router-outlet></router-outlet>\n", styles: ["#fieldset-case-data{margin-bottom:30px}#fieldset-case-data th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}#confirmation-header{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body{width:630px;background-color:#fff}.valign-top{vertical-align:top}.summary-fields{margin-bottom:30px}.summary-fields tbody tr th,.summary-fields tbody tr td{border-bottom:0px}a.disabled{pointer-events:none;cursor:default}.case-field-label{width:45%}.case-field-content{width:50%}.no-bottom-border{border-bottom:none}.case-field-change{width:5%}\n"] }]
|
|
9050
|
-
}], function () { return [{ type: i3.FormBuilder }, { type: CaseNotifier }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }, { type: FormValueService }, { type: FormErrorService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: WorkAllocationService }]; }, { eventTrigger: [{
|
|
9053
|
+
}], function () { return [{ type: i3.FormBuilder }, { type: CaseNotifier }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }, { type: FormValueService }, { type: FormErrorService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: WorkAllocationService }, { type: AlertService }]; }, { eventTrigger: [{
|
|
9051
9054
|
type: Input
|
|
9052
9055
|
}], submit: [{
|
|
9053
9056
|
type: Input
|
|
@@ -11788,7 +11791,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11788
11791
|
// Extract all flags-related data from the CaseEventTrigger object in the snapshot data
|
|
11789
11792
|
if (this.route.snapshot.data.eventTrigger) {
|
|
11790
11793
|
// Get the HMCTSServiceId from supplementary data, if it exists (required for retrieving the available flag types in
|
|
11791
|
-
// the first instance, only falling back on case type ID or
|
|
11794
|
+
// the first instance, only falling back on case type ID or jurisidiction if it's not present)
|
|
11792
11795
|
if (this.route.snapshot.data.eventTrigger.supplementary_data
|
|
11793
11796
|
&& this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId) {
|
|
11794
11797
|
this.hmctsServiceId = this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId;
|
|
@@ -12129,36 +12132,32 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12129
12132
|
this.flagCommentsOptional = true;
|
|
12130
12133
|
}
|
|
12131
12134
|
populateNewFlagDetailInstance() {
|
|
12132
|
-
const langSearchTerm = this.caseFlagParentFormGroup?.value['languageSearchTerm'];
|
|
12133
|
-
const manualLangEntry = this.caseFlagParentFormGroup?.value['manualLanguageEntry'];
|
|
12134
|
-
const flagType = this.caseFlagParentFormGroup?.value['flagType'];
|
|
12135
|
-
const otherDesc = this.caseFlagParentFormGroup?.value['otherDescription'];
|
|
12136
12135
|
const formValues = this.caseFlagParentFormGroup?.value;
|
|
12137
12136
|
return {
|
|
12138
|
-
name:
|
|
12139
|
-
name_cy: flagType?.name_cy,
|
|
12137
|
+
name: formValues?.flagType?.name,
|
|
12138
|
+
name_cy: formValues?.flagType?.name_cy,
|
|
12140
12139
|
// Currently, subTypeValue, subTypeValue_cy and subTypeKey are applicable only to language flag types
|
|
12141
|
-
subTypeValue:
|
|
12142
|
-
?
|
|
12143
|
-
:
|
|
12144
|
-
?
|
|
12140
|
+
subTypeValue: formValues?.languageSearchTerm && this.rpxTranslationService.language === 'en'
|
|
12141
|
+
? formValues?.languageSearchTerm.value
|
|
12142
|
+
: formValues?.manualLanguageEntry && this.rpxTranslationService.language === 'en'
|
|
12143
|
+
? formValues?.manualLanguageEntry
|
|
12145
12144
|
: null,
|
|
12146
|
-
subTypeValue_cy:
|
|
12147
|
-
?
|
|
12148
|
-
:
|
|
12149
|
-
?
|
|
12145
|
+
subTypeValue_cy: formValues?.languageSearchTerm && this.rpxTranslationService.language === 'cy'
|
|
12146
|
+
? formValues?.languageSearchTerm.value_cy
|
|
12147
|
+
: formValues?.manualLanguageEntry && this.rpxTranslationService.language === 'cy'
|
|
12148
|
+
? formValues?.manualLanguageEntry
|
|
12150
12149
|
: null,
|
|
12151
12150
|
// For user-entered (i.e. non-Reference Data) languages, there is no key
|
|
12152
|
-
subTypeKey:
|
|
12153
|
-
?
|
|
12151
|
+
subTypeKey: formValues?.languageSearchTerm
|
|
12152
|
+
? formValues?.languageSearchTerm.key
|
|
12154
12153
|
: null,
|
|
12155
|
-
otherDescription: flagType?.flagCode === this.otherFlagTypeCode &&
|
|
12156
|
-
|
|
12157
|
-
?
|
|
12154
|
+
otherDescription: formValues?.flagType?.flagCode === this.otherFlagTypeCode &&
|
|
12155
|
+
formValues?.otherDescription && this.rpxTranslationService.language === 'en'
|
|
12156
|
+
? formValues?.otherDescription
|
|
12158
12157
|
: null,
|
|
12159
|
-
otherDescription_cy: flagType?.flagCode === this.otherFlagTypeCode &&
|
|
12160
|
-
|
|
12161
|
-
?
|
|
12158
|
+
otherDescription_cy: formValues?.flagType?.flagCode === this.otherFlagTypeCode &&
|
|
12159
|
+
formValues?.otherDescription && this.rpxTranslationService.language === 'cy'
|
|
12160
|
+
? formValues?.otherDescription
|
|
12162
12161
|
: null,
|
|
12163
12162
|
flagComment: this.rpxTranslationService.language === 'en'
|
|
12164
12163
|
? formValues?.flagComments
|
|
@@ -12168,18 +12167,18 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12168
12167
|
: null,
|
|
12169
12168
|
flagUpdateComment: formValues?.statusReason,
|
|
12170
12169
|
dateTimeCreated: new Date().toISOString(),
|
|
12171
|
-
path: flagType?.Path &&
|
|
12172
|
-
flagType?.Path.map(pathValue => Object.assign({ id: null, value: pathValue })),
|
|
12173
|
-
hearingRelevant: flagType?.hearingRelevant ? 'Yes' : 'No',
|
|
12174
|
-
flagCode: flagType?.flagCode,
|
|
12170
|
+
path: formValues?.flagType?.Path &&
|
|
12171
|
+
formValues?.flagType?.Path.map(pathValue => Object.assign({ id: null, value: pathValue })),
|
|
12172
|
+
hearingRelevant: formValues?.flagType?.hearingRelevant ? 'Yes' : 'No',
|
|
12173
|
+
flagCode: formValues?.flagType?.flagCode,
|
|
12175
12174
|
// Status should be set to whatever the default is for this flag type, if flag is being created by an external
|
|
12176
12175
|
// user, otherwise it should be set to "Active" if Case Flags v2.1 is NOT enabled, or the selected status if it is
|
|
12177
12176
|
status: this.isDisplayContextParameterExternal
|
|
12178
|
-
? flagType?.defaultStatus
|
|
12177
|
+
? formValues?.flagType?.defaultStatus
|
|
12179
12178
|
: !this.isDisplayContextParameter2Point1Enabled
|
|
12180
12179
|
? CaseFlagStatus.ACTIVE
|
|
12181
12180
|
: CaseFlagStatus[formValues?.selectedStatus],
|
|
12182
|
-
availableExternally: flagType?.externallyAvailable ? 'Yes' : 'No'
|
|
12181
|
+
availableExternally: formValues?.flagType?.externallyAvailable ? 'Yes' : 'No'
|
|
12183
12182
|
};
|
|
12184
12183
|
}
|
|
12185
12184
|
moveToFinalReviewStage() {
|
|
@@ -30103,7 +30102,7 @@ function CaseEventTriggerComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
30103
30102
|
i0.ɵɵproperty("caseDetails", ctx_r0.caseDetails)("submit", ctx_r0.submit())("validate", ctx_r0.validate())("eventTrigger", ctx_r0.eventTrigger);
|
|
30104
30103
|
} }
|
|
30105
30104
|
class CaseEventTriggerComponent {
|
|
30106
|
-
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService) {
|
|
30105
|
+
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService) {
|
|
30107
30106
|
this.ngZone = ngZone;
|
|
30108
30107
|
this.casesService = casesService;
|
|
30109
30108
|
this.caseNotifier = caseNotifier;
|
|
@@ -30112,6 +30111,7 @@ class CaseEventTriggerComponent {
|
|
|
30112
30111
|
this.route = route;
|
|
30113
30112
|
this.caseReferencePipe = caseReferencePipe;
|
|
30114
30113
|
this.activityPollingService = activityPollingService;
|
|
30114
|
+
this.sessionStorageService = sessionStorageService;
|
|
30115
30115
|
this.BANNER = DisplayMode.BANNER;
|
|
30116
30116
|
}
|
|
30117
30117
|
ngOnInit() {
|
|
@@ -30160,21 +30160,30 @@ class CaseEventTriggerComponent {
|
|
|
30160
30160
|
}
|
|
30161
30161
|
submitted(event) {
|
|
30162
30162
|
const eventStatus = event['status'];
|
|
30163
|
+
const taskCompletionFailed = this.sessionStorageService.getItem('taskCompletionError') === 'true';
|
|
30163
30164
|
this.router
|
|
30164
30165
|
.navigate([this.parentUrl])
|
|
30165
30166
|
.then(() => {
|
|
30166
30167
|
const caseReference = this.caseReferencePipe.transform(this.caseDetails.case_id.toString());
|
|
30167
30168
|
const replacements = { CASEREFERENCE: caseReference, NAME: this.eventTrigger.name };
|
|
30168
|
-
|
|
30169
|
+
this.alertService.setPreserveAlerts(true);
|
|
30170
|
+
if (taskCompletionFailed) {
|
|
30171
|
+
// if task still present in session storage, we know that the task has not been correctly completed
|
|
30172
|
+
this.alertService.warning({
|
|
30173
|
+
phrase: CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE + '. ' + Constants.TASK_COMPLETION_ERROR,
|
|
30174
|
+
replacements
|
|
30175
|
+
});
|
|
30176
|
+
this.sessionStorageService.removeItem('taskCompletionError');
|
|
30177
|
+
}
|
|
30178
|
+
else if (EventStatusService.isIncomplete(eventStatus)) {
|
|
30169
30179
|
this.alertService.warning({
|
|
30170
|
-
phrase:
|
|
30171
|
-
but the callback service cannot be completed`,
|
|
30180
|
+
phrase: CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE + CaseEventTriggerComponent.CALLBACK_FAILED_MESSAGE,
|
|
30172
30181
|
replacements
|
|
30173
30182
|
});
|
|
30174
30183
|
}
|
|
30175
30184
|
else {
|
|
30176
30185
|
this.alertService.success({
|
|
30177
|
-
phrase:
|
|
30186
|
+
phrase: CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE,
|
|
30178
30187
|
replacements,
|
|
30179
30188
|
preserve: true
|
|
30180
30189
|
});
|
|
@@ -30193,7 +30202,9 @@ class CaseEventTriggerComponent {
|
|
|
30193
30202
|
return !!(this.eventTrigger && this.caseDetails);
|
|
30194
30203
|
}
|
|
30195
30204
|
}
|
|
30196
|
-
CaseEventTriggerComponent
|
|
30205
|
+
CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE = `Case #%CASEREFERENCE% has been updated with event: %NAME%`;
|
|
30206
|
+
CaseEventTriggerComponent.CALLBACK_FAILED_MESSAGE = ' but the callback service cannot be completed';
|
|
30207
|
+
CaseEventTriggerComponent.ɵfac = function CaseEventTriggerComponent_Factory(t) { return new (t || CaseEventTriggerComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
30197
30208
|
CaseEventTriggerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEventTriggerComponent, selectors: [["ccd-case-event-trigger"]], decls: 1, vars: 1, consts: [["class", "screen-990", 4, "ngIf"], [1, "screen-990"], [3, "caseId", "displayMode"], [3, "caseDetails", "submit", "validate", "eventTrigger", "cancelled", "submitted"]], template: function CaseEventTriggerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
30198
30209
|
i0.ɵɵtemplate(0, CaseEventTriggerComponent_div_0_Template, 3, 6, "div", 0);
|
|
30199
30210
|
} if (rf & 2) {
|
|
@@ -30202,7 +30213,7 @@ CaseEventTriggerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: C
|
|
|
30202
30213
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEventTriggerComponent, [{
|
|
30203
30214
|
type: Component,
|
|
30204
30215
|
args: [{ selector: 'ccd-case-event-trigger', template: "<div *ngIf=\"isDataLoaded()\" class=\"screen-990\">\n <ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n <ccd-case-edit [caseDetails]=\"caseDetails\"\n [submit]=\"submit()\"\n [validate]=\"validate()\"\n [eventTrigger]=\"eventTrigger\"\n (cancelled)=\"cancel()\"\n (submitted)=\"submitted($event)\"></ccd-case-edit>\n</div>\n" }]
|
|
30205
|
-
}], function () { return [{ type: i0.NgZone }, { type: CasesService }, { type: CaseNotifier }, { type: i1$1.Router }, { type: AlertService }, { type: i1$1.ActivatedRoute }, { type: CaseReferencePipe }, { type: ActivityPollingService }]; }, null); })();
|
|
30216
|
+
}], function () { return [{ type: i0.NgZone }, { type: CasesService }, { type: CaseNotifier }, { type: i1$1.Router }, { type: AlertService }, { type: i1$1.ActivatedRoute }, { type: CaseReferencePipe }, { type: ActivityPollingService }, { type: SessionStorageService }]; }, null); })();
|
|
30206
30217
|
|
|
30207
30218
|
function CaseViewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
30208
30219
|
i0.ɵɵelementStart(0, "div");
|