@hmcts/ccd-case-ui-toolkit 6.14.4-ccpay-5.2.3b → 6.14.4-ccpay-5.2.3c
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/bundles/hmcts-ccd-case-ui-toolkit.umd.js +6 -41
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +1 -2
- package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +7 -21
- package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.js +7 -20
- package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +1 -12
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +6 -41
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts +2 -7
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +1 -4
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +2 -4
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -10519,7 +10519,6 @@
|
|
|
10519
10519
|
id: id_1,
|
|
10520
10520
|
message: "Please select Next to complete the " + action + " of the " + (action === 'update' ? 'selected ' : '') + "case flag"
|
|
10521
10521
|
});
|
|
10522
|
-
_this.caseEditDataService.setFormValidationErrors(_this.validationErrors);
|
|
10523
10522
|
}
|
|
10524
10523
|
else {
|
|
10525
10524
|
_this.validationErrors.push({ id: id_1, message: "Select or fill the required " + casefield.label + " field" });
|
|
@@ -11996,13 +11995,6 @@
|
|
|
11996
11995
|
});
|
|
11997
11996
|
}
|
|
11998
11997
|
}
|
|
11999
|
-
this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
|
|
12000
|
-
next: function (validationErrors) {
|
|
12001
|
-
if (validationErrors.length) {
|
|
12002
|
-
_this.errorMessages = [];
|
|
12003
|
-
}
|
|
12004
|
-
}
|
|
12005
|
-
});
|
|
12006
11998
|
};
|
|
12007
11999
|
WriteCaseFlagFieldComponent.prototype.setDisplayContextParameterUpdate = function (caseFields) {
|
|
12008
12000
|
var _this = this;
|
|
@@ -12234,10 +12226,6 @@
|
|
|
12234
12226
|
this.formGroup.updateValueAndValidity();
|
|
12235
12227
|
this.caseEditDataService.setTriggerSubmitEvent(true);
|
|
12236
12228
|
};
|
|
12237
|
-
WriteCaseFlagFieldComponent.prototype.ngOnDestroy = function () {
|
|
12238
|
-
var _a;
|
|
12239
|
-
(_a = this.caseValidationErrorsSubscription$) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
12240
|
-
};
|
|
12241
12229
|
return WriteCaseFlagFieldComponent;
|
|
12242
12230
|
}(AbstractFieldWriteComponent));
|
|
12243
12231
|
WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
@@ -21583,9 +21571,8 @@
|
|
|
21583
21571
|
}
|
|
21584
21572
|
}
|
|
21585
21573
|
var SelectFlagTypeComponent = /** @class */ (function () {
|
|
21586
|
-
function SelectFlagTypeComponent(caseFlagRefdataService
|
|
21574
|
+
function SelectFlagTypeComponent(caseFlagRefdataService) {
|
|
21587
21575
|
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
21588
|
-
this.caseEditDataService = caseEditDataService;
|
|
21589
21576
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
21590
21577
|
this.flagCommentsOptionalEmitter = new i0.EventEmitter();
|
|
21591
21578
|
this.flagTypeNotSelectedErrorMessage = '';
|
|
@@ -21640,21 +21627,11 @@
|
|
|
21640
21627
|
error: function (error) { return _this.onRefdataError(error); }
|
|
21641
21628
|
});
|
|
21642
21629
|
}
|
|
21643
|
-
this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
|
|
21644
|
-
next: function (validationErrors) {
|
|
21645
|
-
if (validationErrors.length) {
|
|
21646
|
-
_this.errorMessages = [];
|
|
21647
|
-
_this.flagTypeNotSelectedErrorMessage = '';
|
|
21648
|
-
_this.flagTypeErrorMessage = '';
|
|
21649
|
-
}
|
|
21650
|
-
}
|
|
21651
|
-
});
|
|
21652
21630
|
};
|
|
21653
21631
|
SelectFlagTypeComponent.prototype.ngOnDestroy = function () {
|
|
21654
21632
|
if (this.flagRefdata$) {
|
|
21655
21633
|
this.flagRefdata$.unsubscribe();
|
|
21656
21634
|
}
|
|
21657
|
-
this.caseValidationErrorsSubscription$.unsubscribe();
|
|
21658
21635
|
};
|
|
21659
21636
|
SelectFlagTypeComponent.prototype.onFlagTypeChanged = function (flagType) {
|
|
21660
21637
|
this.selectedFlagType = flagType;
|
|
@@ -21720,7 +21697,7 @@
|
|
|
21720
21697
|
};
|
|
21721
21698
|
return SelectFlagTypeComponent;
|
|
21722
21699
|
}());
|
|
21723
|
-
SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)
|
|
21700
|
+
SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
21724
21701
|
SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId", hmctsServiceId: "hmctsServiceId" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 11, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName", "change"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) {
|
|
21725
21702
|
if (rf & 1) {
|
|
21726
21703
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -21765,7 +21742,7 @@
|
|
|
21765
21742
|
templateUrl: './select-flag-type.component.html',
|
|
21766
21743
|
styleUrls: ['./select-flag-type.component.scss']
|
|
21767
21744
|
}]
|
|
21768
|
-
}], function () { return [{ type: CaseFlagRefdataService }
|
|
21745
|
+
}], function () { return [{ type: CaseFlagRefdataService }]; }, { formGroup: [{
|
|
21769
21746
|
type: i0.Input
|
|
21770
21747
|
}], jurisdiction: [{
|
|
21771
21748
|
type: i0.Input
|
|
@@ -22188,8 +22165,7 @@
|
|
|
22188
22165
|
}
|
|
22189
22166
|
var _c0$o = function (a0) { return { "form-group-error": a0 }; };
|
|
22190
22167
|
var SelectFlagLocationComponent = /** @class */ (function () {
|
|
22191
|
-
function SelectFlagLocationComponent(
|
|
22192
|
-
this.caseEditDataService = caseEditDataService;
|
|
22168
|
+
function SelectFlagLocationComponent() {
|
|
22193
22169
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
22194
22170
|
this.errorMessages = [];
|
|
22195
22171
|
this.flagLocationNotSelectedErrorMessage = null;
|
|
@@ -22217,14 +22193,6 @@
|
|
|
22217
22193
|
// flags in future)
|
|
22218
22194
|
this.onCaseFlagsConfigError();
|
|
22219
22195
|
}
|
|
22220
|
-
this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
|
|
22221
|
-
next: function (validationErrors) {
|
|
22222
|
-
if (validationErrors.length) {
|
|
22223
|
-
_this.errorMessages = [];
|
|
22224
|
-
_this.flagLocationNotSelectedErrorMessage = null;
|
|
22225
|
-
}
|
|
22226
|
-
}
|
|
22227
|
-
});
|
|
22228
22196
|
};
|
|
22229
22197
|
SelectFlagLocationComponent.prototype.onNext = function () {
|
|
22230
22198
|
// Validate flag location selection
|
|
@@ -22259,12 +22227,9 @@
|
|
|
22259
22227
|
// Return case flag field state and error messages to the parent
|
|
22260
22228
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: exports.CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
|
|
22261
22229
|
};
|
|
22262
|
-
SelectFlagLocationComponent.prototype.ngOnDestroy = function () {
|
|
22263
|
-
this.caseValidationErrorsSubscription$.unsubscribe();
|
|
22264
|
-
};
|
|
22265
22230
|
return SelectFlagLocationComponent;
|
|
22266
22231
|
}());
|
|
22267
|
-
SelectFlagLocationComponent.ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(
|
|
22232
|
+
SelectFlagLocationComponent.ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(); };
|
|
22268
22233
|
SelectFlagLocationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagLocationComponent, selectors: [["ccd-select-flag-location"]], inputs: { formGroup: "formGroup", flagsData: "flagsData" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 10, vars: 8, consts: [[1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-location-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-location-heading", 1, "govuk-fieldset__heading"], ["id", "flag-location-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-location-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagLocationComponent_Template(rf, ctx) {
|
|
22269
22234
|
if (rf & 1) {
|
|
22270
22235
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -22305,7 +22270,7 @@
|
|
|
22305
22270
|
selector: 'ccd-select-flag-location',
|
|
22306
22271
|
templateUrl: './select-flag-location.component.html'
|
|
22307
22272
|
}]
|
|
22308
|
-
}],
|
|
22273
|
+
}], null, { formGroup: [{
|
|
22309
22274
|
type: i0.Input
|
|
22310
22275
|
}], flagsData: [{
|
|
22311
22276
|
type: i0.Input
|