@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
|
@@ -4529,6 +4529,7 @@ class Constants {
|
|
|
4529
4529
|
}
|
|
4530
4530
|
Constants.MANDATORY = 'MANDATORY';
|
|
4531
4531
|
Constants.REGEX_WHITESPACES = '^[^ ]+(?:\\s+[^ ]+)*$';
|
|
4532
|
+
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';
|
|
4532
4533
|
Constants.ɵfac = function Constants_Factory(t) { return new (t || Constants)(); };
|
|
4533
4534
|
Constants.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: Constants, factory: Constants.ɵfac });
|
|
4534
4535
|
(function () {
|
|
@@ -7536,14 +7537,11 @@ class OrganisationService {
|
|
|
7536
7537
|
const url = this.appconfig.getPrdUrl();
|
|
7537
7538
|
const cacheTimeOut = this.appconfig.getCacheTimeOut();
|
|
7538
7539
|
this.organisations$ = this.http.get(url)
|
|
7539
|
-
.pipe(map((orgs) => OrganisationService.mapOrganisation(orgs)), publishReplay(1), refCount(), take(1), catchError(e => {
|
|
7540
|
+
.pipe(map((orgs) => OrganisationService.mapOrganisation(orgs)), publishReplay(1, cacheTimeOut), refCount(), take(1), catchError(e => {
|
|
7540
7541
|
console.log(e);
|
|
7541
7542
|
// Handle error and return blank Observable array
|
|
7542
7543
|
return of([]);
|
|
7543
7544
|
}));
|
|
7544
|
-
timer(cacheTimeOut).subscribe(() => {
|
|
7545
|
-
this.organisations$ = null;
|
|
7546
|
-
});
|
|
7547
7545
|
}
|
|
7548
7546
|
return this.organisations$;
|
|
7549
7547
|
}
|
|
@@ -8954,7 +8952,7 @@ ValidPageListCaseFieldsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({
|
|
|
8954
8952
|
})();
|
|
8955
8953
|
|
|
8956
8954
|
class CaseEditComponent {
|
|
8957
|
-
constructor(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService, validPageListCaseFieldsService, workAllocationService) {
|
|
8955
|
+
constructor(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService, validPageListCaseFieldsService, workAllocationService, alertService) {
|
|
8958
8956
|
this.fb = fb;
|
|
8959
8957
|
this.caseNotifier = caseNotifier;
|
|
8960
8958
|
this.router = router;
|
|
@@ -8970,6 +8968,7 @@ class CaseEditComponent {
|
|
|
8970
8968
|
this.loadingService = loadingService;
|
|
8971
8969
|
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
8972
8970
|
this.workAllocationService = workAllocationService;
|
|
8971
|
+
this.alertService = alertService;
|
|
8973
8972
|
this.cancelled = new EventEmitter();
|
|
8974
8973
|
this.submitted = new EventEmitter();
|
|
8975
8974
|
this.isEventCompletionChecksRequired = false;
|
|
@@ -9258,6 +9257,7 @@ class CaseEditComponent {
|
|
|
9258
9257
|
const loadingSpinnerToken = this.loadingService.register();
|
|
9259
9258
|
// keep the initial event response to finalise process after task completion
|
|
9260
9259
|
let eventResponse;
|
|
9260
|
+
this.sessionStorageService.setItem('taskCompletionError', 'false');
|
|
9261
9261
|
submit(caseEventData).pipe(switchMap((response) => {
|
|
9262
9262
|
eventResponse = response;
|
|
9263
9263
|
return this.postCompleteTaskIfRequired();
|
|
@@ -9279,10 +9279,13 @@ class CaseEditComponent {
|
|
|
9279
9279
|
this.isSubmitting = false;
|
|
9280
9280
|
}
|
|
9281
9281
|
else {
|
|
9282
|
+
this.sessionStorageService.setItem('taskCompletionError', 'true');
|
|
9282
9283
|
// task assignment/completion error - handled within workallocation service
|
|
9283
9284
|
// could set task to be deleted (or completed later)?
|
|
9284
|
-
// note: think error messages only shown if user is caseworker - might reqauire changing
|
|
9285
9285
|
this.finishEventCompletionLogic(eventResponse);
|
|
9286
|
+
// below allows error to be shown on navigation to confirmation page
|
|
9287
|
+
this.alertService.setPreserveAlerts(true);
|
|
9288
|
+
this.alertService.error({ phrase: Constants.TASK_COMPLETION_ERROR });
|
|
9286
9289
|
}
|
|
9287
9290
|
});
|
|
9288
9291
|
}
|
|
@@ -9338,7 +9341,7 @@ class CaseEditComponent {
|
|
|
9338
9341
|
}
|
|
9339
9342
|
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
9340
9343
|
CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
|
|
9341
|
-
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)); };
|
|
9344
|
+
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)); };
|
|
9342
9345
|
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) {
|
|
9343
9346
|
if (rf & 1) {
|
|
9344
9347
|
i0.ɵɵelement(0, "router-outlet");
|
|
@@ -9348,7 +9351,7 @@ CaseEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditC
|
|
|
9348
9351
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditComponent, [{
|
|
9349
9352
|
type: Component,
|
|
9350
9353
|
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"] }]
|
|
9351
|
-
}], 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: [{
|
|
9354
|
+
}], 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: [{
|
|
9352
9355
|
type: Input
|
|
9353
9356
|
}], submit: [{
|
|
9354
9357
|
type: Input
|
|
@@ -12087,7 +12090,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12087
12090
|
// Extract all flags-related data from the CaseEventTrigger object in the snapshot data
|
|
12088
12091
|
if (this.route.snapshot.data.eventTrigger) {
|
|
12089
12092
|
// Get the HMCTSServiceId from supplementary data, if it exists (required for retrieving the available flag types in
|
|
12090
|
-
// the first instance, only falling back on case type ID or
|
|
12093
|
+
// the first instance, only falling back on case type ID or jurisidiction if it's not present)
|
|
12091
12094
|
if (this.route.snapshot.data.eventTrigger.supplementary_data
|
|
12092
12095
|
&& this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId) {
|
|
12093
12096
|
this.hmctsServiceId = this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId;
|
|
@@ -12442,37 +12445,33 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12442
12445
|
this.flagCommentsOptional = true;
|
|
12443
12446
|
}
|
|
12444
12447
|
populateNewFlagDetailInstance() {
|
|
12445
|
-
var _a, _b, _c, _d, _e, _f;
|
|
12446
|
-
const
|
|
12447
|
-
const manualLangEntry = (_b = this.caseFlagParentFormGroup) === null || _b === void 0 ? void 0 : _b.value['manualLanguageEntry'];
|
|
12448
|
-
const flagType = (_c = this.caseFlagParentFormGroup) === null || _c === void 0 ? void 0 : _c.value['flagType'];
|
|
12449
|
-
const otherDesc = (_d = this.caseFlagParentFormGroup) === null || _d === void 0 ? void 0 : _d.value['otherDescription'];
|
|
12450
|
-
const formValues = (_e = this.caseFlagParentFormGroup) === null || _e === void 0 ? void 0 : _e.value;
|
|
12448
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
12449
|
+
const formValues = (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value;
|
|
12451
12450
|
return {
|
|
12452
|
-
name: (
|
|
12453
|
-
name_cy:
|
|
12451
|
+
name: (_b = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _b === void 0 ? void 0 : _b.name,
|
|
12452
|
+
name_cy: (_c = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _c === void 0 ? void 0 : _c.name_cy,
|
|
12454
12453
|
// Currently, subTypeValue, subTypeValue_cy and subTypeKey are applicable only to language flag types
|
|
12455
|
-
subTypeValue:
|
|
12456
|
-
?
|
|
12457
|
-
:
|
|
12458
|
-
?
|
|
12454
|
+
subTypeValue: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) && this.rpxTranslationService.language === 'en'
|
|
12455
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.value
|
|
12456
|
+
: (formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry) && this.rpxTranslationService.language === 'en'
|
|
12457
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry
|
|
12459
12458
|
: null,
|
|
12460
|
-
subTypeValue_cy:
|
|
12461
|
-
?
|
|
12462
|
-
:
|
|
12463
|
-
?
|
|
12459
|
+
subTypeValue_cy: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) && this.rpxTranslationService.language === 'cy'
|
|
12460
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.value_cy
|
|
12461
|
+
: (formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry) && this.rpxTranslationService.language === 'cy'
|
|
12462
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry
|
|
12464
12463
|
: null,
|
|
12465
12464
|
// For user-entered (i.e. non-Reference Data) languages, there is no key
|
|
12466
|
-
subTypeKey:
|
|
12467
|
-
?
|
|
12465
|
+
subTypeKey: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm)
|
|
12466
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.key
|
|
12468
12467
|
: null,
|
|
12469
|
-
otherDescription: (
|
|
12470
|
-
|
|
12471
|
-
?
|
|
12468
|
+
otherDescription: ((_d = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _d === void 0 ? void 0 : _d.flagCode) === this.otherFlagTypeCode &&
|
|
12469
|
+
(formValues === null || formValues === void 0 ? void 0 : formValues.otherDescription) && this.rpxTranslationService.language === 'en'
|
|
12470
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.otherDescription
|
|
12472
12471
|
: null,
|
|
12473
|
-
otherDescription_cy: (
|
|
12474
|
-
|
|
12475
|
-
?
|
|
12472
|
+
otherDescription_cy: ((_e = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _e === void 0 ? void 0 : _e.flagCode) === this.otherFlagTypeCode &&
|
|
12473
|
+
(formValues === null || formValues === void 0 ? void 0 : formValues.otherDescription) && this.rpxTranslationService.language === 'cy'
|
|
12474
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.otherDescription
|
|
12476
12475
|
: null,
|
|
12477
12476
|
flagComment: this.rpxTranslationService.language === 'en'
|
|
12478
12477
|
? formValues === null || formValues === void 0 ? void 0 : formValues.flagComments
|
|
@@ -12482,18 +12481,18 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12482
12481
|
: null,
|
|
12483
12482
|
flagUpdateComment: formValues === null || formValues === void 0 ? void 0 : formValues.statusReason,
|
|
12484
12483
|
dateTimeCreated: new Date().toISOString(),
|
|
12485
|
-
path: (
|
|
12486
|
-
(
|
|
12487
|
-
hearingRelevant: (
|
|
12488
|
-
flagCode:
|
|
12484
|
+
path: ((_f = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _f === void 0 ? void 0 : _f.Path) &&
|
|
12485
|
+
((_g = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _g === void 0 ? void 0 : _g.Path.map(pathValue => Object.assign({ id: null, value: pathValue }))),
|
|
12486
|
+
hearingRelevant: ((_h = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _h === void 0 ? void 0 : _h.hearingRelevant) ? 'Yes' : 'No',
|
|
12487
|
+
flagCode: (_j = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _j === void 0 ? void 0 : _j.flagCode,
|
|
12489
12488
|
// Status should be set to whatever the default is for this flag type, if flag is being created by an external
|
|
12490
12489
|
// user, otherwise it should be set to "Active" if Case Flags v2.1 is NOT enabled, or the selected status if it is
|
|
12491
12490
|
status: this.isDisplayContextParameterExternal
|
|
12492
|
-
?
|
|
12491
|
+
? (_k = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _k === void 0 ? void 0 : _k.defaultStatus
|
|
12493
12492
|
: !this.isDisplayContextParameter2Point1Enabled
|
|
12494
12493
|
? CaseFlagStatus.ACTIVE
|
|
12495
12494
|
: CaseFlagStatus[formValues === null || formValues === void 0 ? void 0 : formValues.selectedStatus],
|
|
12496
|
-
availableExternally: (
|
|
12495
|
+
availableExternally: ((_l = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _l === void 0 ? void 0 : _l.externallyAvailable) ? 'Yes' : 'No'
|
|
12497
12496
|
};
|
|
12498
12497
|
}
|
|
12499
12498
|
moveToFinalReviewStage() {
|
|
@@ -32633,7 +32632,7 @@ function CaseEventTriggerComponent_div_0_Template(rf, ctx) {
|
|
|
32633
32632
|
}
|
|
32634
32633
|
}
|
|
32635
32634
|
class CaseEventTriggerComponent {
|
|
32636
|
-
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService) {
|
|
32635
|
+
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService) {
|
|
32637
32636
|
this.ngZone = ngZone;
|
|
32638
32637
|
this.casesService = casesService;
|
|
32639
32638
|
this.caseNotifier = caseNotifier;
|
|
@@ -32642,6 +32641,7 @@ class CaseEventTriggerComponent {
|
|
|
32642
32641
|
this.route = route;
|
|
32643
32642
|
this.caseReferencePipe = caseReferencePipe;
|
|
32644
32643
|
this.activityPollingService = activityPollingService;
|
|
32644
|
+
this.sessionStorageService = sessionStorageService;
|
|
32645
32645
|
this.BANNER = DisplayMode.BANNER;
|
|
32646
32646
|
}
|
|
32647
32647
|
ngOnInit() {
|
|
@@ -32691,21 +32691,30 @@ class CaseEventTriggerComponent {
|
|
|
32691
32691
|
}
|
|
32692
32692
|
submitted(event) {
|
|
32693
32693
|
const eventStatus = event['status'];
|
|
32694
|
+
const taskCompletionFailed = this.sessionStorageService.getItem('taskCompletionError') === 'true';
|
|
32694
32695
|
this.router
|
|
32695
32696
|
.navigate([this.parentUrl])
|
|
32696
32697
|
.then(() => {
|
|
32697
32698
|
const caseReference = this.caseReferencePipe.transform(this.caseDetails.case_id.toString());
|
|
32698
32699
|
const replacements = { CASEREFERENCE: caseReference, NAME: this.eventTrigger.name };
|
|
32699
|
-
|
|
32700
|
+
this.alertService.setPreserveAlerts(true);
|
|
32701
|
+
if (taskCompletionFailed) {
|
|
32702
|
+
// if task still present in session storage, we know that the task has not been correctly completed
|
|
32703
|
+
this.alertService.warning({
|
|
32704
|
+
phrase: CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE + '. ' + Constants.TASK_COMPLETION_ERROR,
|
|
32705
|
+
replacements
|
|
32706
|
+
});
|
|
32707
|
+
this.sessionStorageService.removeItem('taskCompletionError');
|
|
32708
|
+
}
|
|
32709
|
+
else if (EventStatusService.isIncomplete(eventStatus)) {
|
|
32700
32710
|
this.alertService.warning({
|
|
32701
|
-
phrase:
|
|
32702
|
-
but the callback service cannot be completed`,
|
|
32711
|
+
phrase: CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE + CaseEventTriggerComponent.CALLBACK_FAILED_MESSAGE,
|
|
32703
32712
|
replacements
|
|
32704
32713
|
});
|
|
32705
32714
|
}
|
|
32706
32715
|
else {
|
|
32707
32716
|
this.alertService.success({
|
|
32708
|
-
phrase:
|
|
32717
|
+
phrase: CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE,
|
|
32709
32718
|
replacements,
|
|
32710
32719
|
preserve: true
|
|
32711
32720
|
});
|
|
@@ -32724,7 +32733,9 @@ class CaseEventTriggerComponent {
|
|
|
32724
32733
|
return !!(this.eventTrigger && this.caseDetails);
|
|
32725
32734
|
}
|
|
32726
32735
|
}
|
|
32727
|
-
CaseEventTriggerComponent
|
|
32736
|
+
CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE = `Case #%CASEREFERENCE% has been updated with event: %NAME%`;
|
|
32737
|
+
CaseEventTriggerComponent.CALLBACK_FAILED_MESSAGE = ' but the callback service cannot be completed';
|
|
32738
|
+
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)); };
|
|
32728
32739
|
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) {
|
|
32729
32740
|
if (rf & 1) {
|
|
32730
32741
|
i0.ɵɵtemplate(0, CaseEventTriggerComponent_div_0_Template, 3, 6, "div", 0);
|
|
@@ -32737,7 +32748,7 @@ CaseEventTriggerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: C
|
|
|
32737
32748
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEventTriggerComponent, [{
|
|
32738
32749
|
type: Component,
|
|
32739
32750
|
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" }]
|
|
32740
|
-
}], function () { return [{ type: i0.NgZone }, { type: CasesService }, { type: CaseNotifier }, { type: i1$1.Router }, { type: AlertService }, { type: i1$1.ActivatedRoute }, { type: CaseReferencePipe }, { type: ActivityPollingService }]; }, null);
|
|
32751
|
+
}], 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);
|
|
32741
32752
|
})();
|
|
32742
32753
|
|
|
32743
32754
|
function CaseViewComponent_div_0_Template(rf, ctx) {
|