@hmcts/ccd-case-ui-toolkit 7.0.11-manual-caseflag-lang → 7.0.11
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/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +56 -42
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +54 -40
- 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/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 () {
|
|
@@ -8954,7 +8955,7 @@ ValidPageListCaseFieldsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({
|
|
|
8954
8955
|
})();
|
|
8955
8956
|
|
|
8956
8957
|
class CaseEditComponent {
|
|
8957
|
-
constructor(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService, validPageListCaseFieldsService, workAllocationService) {
|
|
8958
|
+
constructor(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService, validPageListCaseFieldsService, workAllocationService, alertService) {
|
|
8958
8959
|
this.fb = fb;
|
|
8959
8960
|
this.caseNotifier = caseNotifier;
|
|
8960
8961
|
this.router = router;
|
|
@@ -8970,6 +8971,7 @@ class CaseEditComponent {
|
|
|
8970
8971
|
this.loadingService = loadingService;
|
|
8971
8972
|
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
8972
8973
|
this.workAllocationService = workAllocationService;
|
|
8974
|
+
this.alertService = alertService;
|
|
8973
8975
|
this.cancelled = new EventEmitter();
|
|
8974
8976
|
this.submitted = new EventEmitter();
|
|
8975
8977
|
this.isEventCompletionChecksRequired = false;
|
|
@@ -9258,6 +9260,7 @@ class CaseEditComponent {
|
|
|
9258
9260
|
const loadingSpinnerToken = this.loadingService.register();
|
|
9259
9261
|
// keep the initial event response to finalise process after task completion
|
|
9260
9262
|
let eventResponse;
|
|
9263
|
+
this.sessionStorageService.setItem('taskCompletionError', 'false');
|
|
9261
9264
|
submit(caseEventData).pipe(switchMap((response) => {
|
|
9262
9265
|
eventResponse = response;
|
|
9263
9266
|
return this.postCompleteTaskIfRequired();
|
|
@@ -9279,10 +9282,13 @@ class CaseEditComponent {
|
|
|
9279
9282
|
this.isSubmitting = false;
|
|
9280
9283
|
}
|
|
9281
9284
|
else {
|
|
9285
|
+
this.sessionStorageService.setItem('taskCompletionError', 'true');
|
|
9282
9286
|
// task assignment/completion error - handled within workallocation service
|
|
9283
9287
|
// could set task to be deleted (or completed later)?
|
|
9284
|
-
// note: think error messages only shown if user is caseworker - might reqauire changing
|
|
9285
9288
|
this.finishEventCompletionLogic(eventResponse);
|
|
9289
|
+
// below allows error to be shown on navigation to confirmation page
|
|
9290
|
+
this.alertService.setPreserveAlerts(true);
|
|
9291
|
+
this.alertService.error({ phrase: Constants.TASK_COMPLETION_ERROR });
|
|
9286
9292
|
}
|
|
9287
9293
|
});
|
|
9288
9294
|
}
|
|
@@ -9338,7 +9344,7 @@ class CaseEditComponent {
|
|
|
9338
9344
|
}
|
|
9339
9345
|
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
9340
9346
|
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)); };
|
|
9347
|
+
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
9348
|
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
9349
|
if (rf & 1) {
|
|
9344
9350
|
i0.ɵɵelement(0, "router-outlet");
|
|
@@ -9348,7 +9354,7 @@ CaseEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditC
|
|
|
9348
9354
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditComponent, [{
|
|
9349
9355
|
type: Component,
|
|
9350
9356
|
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: [{
|
|
9357
|
+
}], 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
9358
|
type: Input
|
|
9353
9359
|
}], submit: [{
|
|
9354
9360
|
type: Input
|
|
@@ -12087,7 +12093,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12087
12093
|
// Extract all flags-related data from the CaseEventTrigger object in the snapshot data
|
|
12088
12094
|
if (this.route.snapshot.data.eventTrigger) {
|
|
12089
12095
|
// 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
|
|
12096
|
+
// the first instance, only falling back on case type ID or jurisidiction if it's not present)
|
|
12091
12097
|
if (this.route.snapshot.data.eventTrigger.supplementary_data
|
|
12092
12098
|
&& this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId) {
|
|
12093
12099
|
this.hmctsServiceId = this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId;
|
|
@@ -12442,37 +12448,33 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12442
12448
|
this.flagCommentsOptional = true;
|
|
12443
12449
|
}
|
|
12444
12450
|
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;
|
|
12451
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
12452
|
+
const formValues = (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value;
|
|
12451
12453
|
return {
|
|
12452
|
-
name: (
|
|
12453
|
-
name_cy:
|
|
12454
|
+
name: (_b = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _b === void 0 ? void 0 : _b.name,
|
|
12455
|
+
name_cy: (_c = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _c === void 0 ? void 0 : _c.name_cy,
|
|
12454
12456
|
// Currently, subTypeValue, subTypeValue_cy and subTypeKey are applicable only to language flag types
|
|
12455
|
-
subTypeValue:
|
|
12456
|
-
?
|
|
12457
|
-
:
|
|
12458
|
-
?
|
|
12457
|
+
subTypeValue: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) && this.rpxTranslationService.language === 'en'
|
|
12458
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.value
|
|
12459
|
+
: (formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry) && this.rpxTranslationService.language === 'en'
|
|
12460
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry
|
|
12459
12461
|
: null,
|
|
12460
|
-
subTypeValue_cy:
|
|
12461
|
-
?
|
|
12462
|
-
:
|
|
12463
|
-
?
|
|
12462
|
+
subTypeValue_cy: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) && this.rpxTranslationService.language === 'cy'
|
|
12463
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.value_cy
|
|
12464
|
+
: (formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry) && this.rpxTranslationService.language === 'cy'
|
|
12465
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry
|
|
12464
12466
|
: null,
|
|
12465
12467
|
// For user-entered (i.e. non-Reference Data) languages, there is no key
|
|
12466
|
-
subTypeKey:
|
|
12467
|
-
?
|
|
12468
|
+
subTypeKey: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm)
|
|
12469
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.key
|
|
12468
12470
|
: null,
|
|
12469
|
-
otherDescription: (
|
|
12470
|
-
|
|
12471
|
-
?
|
|
12471
|
+
otherDescription: ((_d = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _d === void 0 ? void 0 : _d.flagCode) === this.otherFlagTypeCode &&
|
|
12472
|
+
(formValues === null || formValues === void 0 ? void 0 : formValues.otherDescription) && this.rpxTranslationService.language === 'en'
|
|
12473
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.otherDescription
|
|
12472
12474
|
: null,
|
|
12473
|
-
otherDescription_cy: (
|
|
12474
|
-
|
|
12475
|
-
?
|
|
12475
|
+
otherDescription_cy: ((_e = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _e === void 0 ? void 0 : _e.flagCode) === this.otherFlagTypeCode &&
|
|
12476
|
+
(formValues === null || formValues === void 0 ? void 0 : formValues.otherDescription) && this.rpxTranslationService.language === 'cy'
|
|
12477
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.otherDescription
|
|
12476
12478
|
: null,
|
|
12477
12479
|
flagComment: this.rpxTranslationService.language === 'en'
|
|
12478
12480
|
? formValues === null || formValues === void 0 ? void 0 : formValues.flagComments
|
|
@@ -12482,18 +12484,18 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12482
12484
|
: null,
|
|
12483
12485
|
flagUpdateComment: formValues === null || formValues === void 0 ? void 0 : formValues.statusReason,
|
|
12484
12486
|
dateTimeCreated: new Date().toISOString(),
|
|
12485
|
-
path: (
|
|
12486
|
-
(
|
|
12487
|
-
hearingRelevant: (
|
|
12488
|
-
flagCode:
|
|
12487
|
+
path: ((_f = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _f === void 0 ? void 0 : _f.Path) &&
|
|
12488
|
+
((_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 }))),
|
|
12489
|
+
hearingRelevant: ((_h = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _h === void 0 ? void 0 : _h.hearingRelevant) ? 'Yes' : 'No',
|
|
12490
|
+
flagCode: (_j = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _j === void 0 ? void 0 : _j.flagCode,
|
|
12489
12491
|
// Status should be set to whatever the default is for this flag type, if flag is being created by an external
|
|
12490
12492
|
// user, otherwise it should be set to "Active" if Case Flags v2.1 is NOT enabled, or the selected status if it is
|
|
12491
12493
|
status: this.isDisplayContextParameterExternal
|
|
12492
|
-
?
|
|
12494
|
+
? (_k = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _k === void 0 ? void 0 : _k.defaultStatus
|
|
12493
12495
|
: !this.isDisplayContextParameter2Point1Enabled
|
|
12494
12496
|
? CaseFlagStatus.ACTIVE
|
|
12495
12497
|
: CaseFlagStatus[formValues === null || formValues === void 0 ? void 0 : formValues.selectedStatus],
|
|
12496
|
-
availableExternally: (
|
|
12498
|
+
availableExternally: ((_l = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _l === void 0 ? void 0 : _l.externallyAvailable) ? 'Yes' : 'No'
|
|
12497
12499
|
};
|
|
12498
12500
|
}
|
|
12499
12501
|
moveToFinalReviewStage() {
|
|
@@ -32633,7 +32635,7 @@ function CaseEventTriggerComponent_div_0_Template(rf, ctx) {
|
|
|
32633
32635
|
}
|
|
32634
32636
|
}
|
|
32635
32637
|
class CaseEventTriggerComponent {
|
|
32636
|
-
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService) {
|
|
32638
|
+
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService) {
|
|
32637
32639
|
this.ngZone = ngZone;
|
|
32638
32640
|
this.casesService = casesService;
|
|
32639
32641
|
this.caseNotifier = caseNotifier;
|
|
@@ -32642,6 +32644,7 @@ class CaseEventTriggerComponent {
|
|
|
32642
32644
|
this.route = route;
|
|
32643
32645
|
this.caseReferencePipe = caseReferencePipe;
|
|
32644
32646
|
this.activityPollingService = activityPollingService;
|
|
32647
|
+
this.sessionStorageService = sessionStorageService;
|
|
32645
32648
|
this.BANNER = DisplayMode.BANNER;
|
|
32646
32649
|
}
|
|
32647
32650
|
ngOnInit() {
|
|
@@ -32691,21 +32694,30 @@ class CaseEventTriggerComponent {
|
|
|
32691
32694
|
}
|
|
32692
32695
|
submitted(event) {
|
|
32693
32696
|
const eventStatus = event['status'];
|
|
32697
|
+
const taskCompletionFailed = this.sessionStorageService.getItem('taskCompletionError') === 'true';
|
|
32694
32698
|
this.router
|
|
32695
32699
|
.navigate([this.parentUrl])
|
|
32696
32700
|
.then(() => {
|
|
32697
32701
|
const caseReference = this.caseReferencePipe.transform(this.caseDetails.case_id.toString());
|
|
32698
32702
|
const replacements = { CASEREFERENCE: caseReference, NAME: this.eventTrigger.name };
|
|
32699
|
-
|
|
32703
|
+
this.alertService.setPreserveAlerts(true);
|
|
32704
|
+
if (taskCompletionFailed) {
|
|
32705
|
+
// if task still present in session storage, we know that the task has not been correctly completed
|
|
32706
|
+
this.alertService.warning({
|
|
32707
|
+
phrase: CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE + '. ' + Constants.TASK_COMPLETION_ERROR,
|
|
32708
|
+
replacements
|
|
32709
|
+
});
|
|
32710
|
+
this.sessionStorageService.removeItem('taskCompletionError');
|
|
32711
|
+
}
|
|
32712
|
+
else if (EventStatusService.isIncomplete(eventStatus)) {
|
|
32700
32713
|
this.alertService.warning({
|
|
32701
|
-
phrase:
|
|
32702
|
-
but the callback service cannot be completed`,
|
|
32714
|
+
phrase: CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE + CaseEventTriggerComponent.CALLBACK_FAILED_MESSAGE,
|
|
32703
32715
|
replacements
|
|
32704
32716
|
});
|
|
32705
32717
|
}
|
|
32706
32718
|
else {
|
|
32707
32719
|
this.alertService.success({
|
|
32708
|
-
phrase:
|
|
32720
|
+
phrase: CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE,
|
|
32709
32721
|
replacements,
|
|
32710
32722
|
preserve: true
|
|
32711
32723
|
});
|
|
@@ -32724,7 +32736,9 @@ class CaseEventTriggerComponent {
|
|
|
32724
32736
|
return !!(this.eventTrigger && this.caseDetails);
|
|
32725
32737
|
}
|
|
32726
32738
|
}
|
|
32727
|
-
CaseEventTriggerComponent
|
|
32739
|
+
CaseEventTriggerComponent.EVENT_COMPLETION_MESSAGE = `Case #%CASEREFERENCE% has been updated with event: %NAME%`;
|
|
32740
|
+
CaseEventTriggerComponent.CALLBACK_FAILED_MESSAGE = ' but the callback service cannot be completed';
|
|
32741
|
+
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
32742
|
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
32743
|
if (rf & 1) {
|
|
32730
32744
|
i0.ɵɵtemplate(0, CaseEventTriggerComponent_div_0_Template, 3, 6, "div", 0);
|
|
@@ -32737,7 +32751,7 @@ CaseEventTriggerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: C
|
|
|
32737
32751
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEventTriggerComponent, [{
|
|
32738
32752
|
type: Component,
|
|
32739
32753
|
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);
|
|
32754
|
+
}], 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
32755
|
})();
|
|
32742
32756
|
|
|
32743
32757
|
function CaseViewComponent_div_0_Template(rf, ctx) {
|