@hmcts/ccd-case-ui-toolkit 7.2.54-3455-rc4 → 7.2.54-3455-rc5
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.
|
@@ -9213,13 +9213,18 @@ function CaseEditComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
9213
9213
|
i0.ɵɵelementStart(4, "p");
|
|
9214
9214
|
i0.ɵɵtext(5);
|
|
9215
9215
|
i0.ɵɵelementEnd();
|
|
9216
|
-
i0.ɵɵelementStart(6, "
|
|
9217
|
-
i0.ɵɵ
|
|
9218
|
-
i0.ɵɵ
|
|
9216
|
+
i0.ɵɵelementStart(6, "p");
|
|
9217
|
+
i0.ɵɵtext(7);
|
|
9218
|
+
i0.ɵɵelementEnd();
|
|
9219
|
+
i0.ɵɵelementStart(8, "button", 4);
|
|
9220
|
+
i0.ɵɵlistener("click", function CaseEditComponent_div_1_Template_button_click_8_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onRefreshModalOk()); });
|
|
9221
|
+
i0.ɵɵtext(9, "Ok");
|
|
9219
9222
|
i0.ɵɵelementEnd()()();
|
|
9220
9223
|
} if (rf & 2) {
|
|
9221
9224
|
i0.ɵɵadvance(5);
|
|
9222
9225
|
i0.ɵɵtextInterpolate("As the page has been refreshed mandatory data is now missing. You will be redirected to the first page of this event.");
|
|
9226
|
+
i0.ɵɵadvance(2);
|
|
9227
|
+
i0.ɵɵtextInterpolate("Please select Ok to continue.");
|
|
9223
9228
|
} }
|
|
9224
9229
|
class CaseEditComponent {
|
|
9225
9230
|
fb;
|
|
@@ -9323,7 +9328,6 @@ class CaseEditComponent {
|
|
|
9323
9328
|
if (this.router.url.indexOf('/submit') !== -1 && !this.initialUrl) {
|
|
9324
9329
|
// we only want to check if the user has done this if there is a multi-page journey
|
|
9325
9330
|
if (this.eventTrigger.wizard_pages && this.eventTrigger.wizard_pages.length > 0) {
|
|
9326
|
-
console.log('User has navigated to the end of an event journey directly, reset their journey');
|
|
9327
9331
|
const firstPage = this.eventTrigger.wizard_pages.reduce((min, page) => page.order < min.order ? page : min, this.eventTrigger.wizard_pages[0]);
|
|
9328
9332
|
this.isRefreshModalVisible = true;
|
|
9329
9333
|
this.router.navigate([firstPage ? firstPage.id : 'submit'], { relativeTo: this.route });
|
|
@@ -9756,7 +9760,7 @@ class CaseEditComponent {
|
|
|
9756
9760
|
static ɵfac = function CaseEditComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseEditComponent)(i0.ɵɵdirectiveInject(i4.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), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ReadCookieService)); };
|
|
9757
9761
|
static ɵ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" }, standalone: false, features: [i0.ɵɵProvidersFeature([GreyBarService])], decls: 2, vars: 1, consts: [["class", "refresh-modal-backdrop", 4, "ngIf"], [1, "refresh-modal-backdrop"], [1, "refresh-modal"], [1, "heading-h2"], [1, "button", 3, "click"]], template: function CaseEditComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9758
9762
|
i0.ɵɵelement(0, "router-outlet");
|
|
9759
|
-
i0.ɵɵtemplate(1, CaseEditComponent_div_1_Template,
|
|
9763
|
+
i0.ɵɵtemplate(1, CaseEditComponent_div_1_Template, 10, 2, "div", 0);
|
|
9760
9764
|
} if (rf & 2) {
|
|
9761
9765
|
i0.ɵɵadvance();
|
|
9762
9766
|
i0.ɵɵproperty("ngIf", ctx.isRefreshModalVisible);
|
|
@@ -9764,7 +9768,7 @@ class CaseEditComponent {
|
|
|
9764
9768
|
}
|
|
9765
9769
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditComponent, [{
|
|
9766
9770
|
type: Component,
|
|
9767
|
-
args: [{ selector: 'ccd-case-edit', providers: [GreyBarService], standalone: false, template: "<router-outlet></router-outlet>\n<!-- Simple centered modal shown on refresh -->\n<div *ngIf=\"isRefreshModalVisible\" class=\"refresh-modal-backdrop\">\n <div class=\"refresh-modal\">\n <h2 class=\"heading-h2\">Page refreshed</h2>\n <p>{{ 'As the page has been refreshed mandatory data is now missing. You will be redirected to the first page of this event.' }}</p>\n <button class=\"button\" (click)=\"onRefreshModalOk()\">
|
|
9771
|
+
args: [{ selector: 'ccd-case-edit', providers: [GreyBarService], standalone: false, template: "<router-outlet></router-outlet>\n<!-- Simple centered modal shown on refresh -->\n<div *ngIf=\"isRefreshModalVisible\" class=\"refresh-modal-backdrop\">\n <div class=\"refresh-modal\">\n <h2 class=\"heading-h2\">Page refreshed</h2>\n <p>{{ 'As the page has been refreshed mandatory data is now missing. You will be redirected to the first page of this event.' }}</p>\n <p>{{ 'Please select Ok to continue.' }}</p>\n <button class=\"button\" (click)=\"onRefreshModalOk()\">Ok</button>\n </div>\n</div>", 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%}.refresh-modal-backdrop{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.refresh-modal{background:#fff;padding:24px;max-width:520px;width:90%;box-shadow:0 8px 24px #0003;border-radius:4px;text-align:center}.refresh-modal .button{margin-top:12px}\n"] }]
|
|
9768
9772
|
}], () => [{ type: i4.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 }, { type: AbstractAppConfig }, { type: ReadCookieService }], { eventTrigger: [{
|
|
9769
9773
|
type: Input
|
|
9770
9774
|
}], submit: [{
|