@hmcts/ccd-case-ui-toolkit 7.3.79-govuk5-v1 → 7.3.79-govuk5-v2
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.
|
@@ -12395,9 +12395,9 @@ function CaseEditPageComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
12395
12395
|
} if (rf & 2) {
|
|
12396
12396
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
12397
12397
|
i0.ɵɵadvance();
|
|
12398
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.currentPage.label);
|
|
12398
|
+
i0.ɵɵproperty("ngIf", !(ctx_r1.currentPage == null ? null : ctx_r1.currentPage.label));
|
|
12399
12399
|
i0.ɵɵadvance();
|
|
12400
|
-
i0.ɵɵproperty("ngIf", ctx_r1.currentPage.label);
|
|
12400
|
+
i0.ɵɵproperty("ngIf", ctx_r1.currentPage == null ? null : ctx_r1.currentPage.label);
|
|
12401
12401
|
} }
|
|
12402
12402
|
function CaseEditPageComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
12403
12403
|
i0.ɵɵelement(0, "div");
|
|
@@ -12408,7 +12408,7 @@ function CaseEditPageComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
12408
12408
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
12409
12409
|
} if (rf & 2) {
|
|
12410
12410
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
12411
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(2, 5, i0.ɵɵpipeBind3(1, 1, ctx_r1.getCaseTitle(), ctx_r1.caseFields, ctx_r1.editForm.controls["data"])));
|
|
12411
|
+
i0.ɵɵproperty("content", ctx_r1.demoteCaseTitleHeadingLevel(i0.ɵɵpipeBind1(2, 5, i0.ɵɵpipeBind3(1, 1, ctx_r1.getCaseTitle(), ctx_r1.caseFields, ctx_r1.editForm.controls["data"]))));
|
|
12412
12412
|
} }
|
|
12413
12413
|
function CaseEditPageComponent_ng_template_4_h2_0_Template(rf, ctx) { if (rf & 1) {
|
|
12414
12414
|
i0.ɵɵelementStart(0, "h2", 15);
|
|
@@ -13096,6 +13096,9 @@ class CaseEditPageComponent {
|
|
|
13096
13096
|
return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
|
|
13097
13097
|
this.caseEdit.caseDetails.state.title_display ? this.caseEdit.caseDetails.state.title_display : '');
|
|
13098
13098
|
}
|
|
13099
|
+
demoteCaseTitleHeadingLevel(title) {
|
|
13100
|
+
return title ? title.replace(/^#(?!#)(\s+)/, '##$1') : title;
|
|
13101
|
+
}
|
|
13099
13102
|
getCancelText() {
|
|
13100
13103
|
return this.eventTrigger.can_save_draft ? 'Return to case list' : 'Cancel';
|
|
13101
13104
|
}
|
|
@@ -13287,7 +13290,7 @@ class CaseEditPageComponent {
|
|
|
13287
13290
|
} if (rf & 2) {
|
|
13288
13291
|
const titleBlock_r9 = i0.ɵɵreference(3);
|
|
13289
13292
|
const idBlock_r10 = i0.ɵɵreference(5);
|
|
13290
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
13293
|
+
i0.ɵɵproperty("ngIf", ctx.eventTrigger);
|
|
13291
13294
|
i0.ɵɵadvance();
|
|
13292
13295
|
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r9)("ngIfElse", idBlock_r10);
|
|
13293
13296
|
i0.ɵɵadvance(5);
|
|
@@ -13304,7 +13307,7 @@ class CaseEditPageComponent {
|
|
|
13304
13307
|
}
|
|
13305
13308
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
|
|
13306
13309
|
type: Component,
|
|
13307
|
-
args: [{ selector: 'ccd-case-edit-page', standalone: false, template: "<ng-container *ngIf=\"
|
|
13310
|
+
args: [{ selector: 'ccd-case-edit-page', standalone: false, template: "<ng-container *ngIf=\"eventTrigger\">\n <h1 *ngIf=\"!currentPage?.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage?.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"demoteCaseTitleHeadingLevel(getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data'] | rpxTranslate)\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" (keyup.enter)=\"navigateToErrorElement(validationError.id)\" tabindex=\"0\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"nextStep()\">\n <div id=\"fieldset-case-data\">\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </div>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"toPreviousPage()\" *ngIf=\"!isAtStart()\" [disabled]=\"isDisabled()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><button type=\"button\" (click)=\"cancel()\" class=\"govuk-js-link\">{{getCancelText() | rpxTranslate}}</button></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
13308
13311
|
}], () => [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: MultipageComponentStateService }, { type: AddressesService }, { type: LinkedCasesService }, { type: CaseFlagStateService }, { type: FocusService }], { caseEditFormComponents: [{
|
|
13309
13312
|
type: ViewChildren,
|
|
13310
13313
|
args: [CaseEditFormComponent]
|