@hmcts/ccd-case-ui-toolkit 6.15.0-e → 6.15.0-f
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
|
@@ -10752,7 +10752,6 @@
|
|
|
10752
10752
|
id: id_1,
|
|
10753
10753
|
message: "Please select Next to complete the " + action + " of the " + (action === 'update' ? 'selected ' : '') + "case flag"
|
|
10754
10754
|
});
|
|
10755
|
-
_this.caseEditDataService.setFormValidationErrors(_this.validationErrors);
|
|
10756
10755
|
}
|
|
10757
10756
|
else {
|
|
10758
10757
|
_this.validationErrors.push({ id: id_1, message: "Select or fill the required " + casefield.label + " field" });
|
|
@@ -12335,13 +12334,6 @@
|
|
|
12335
12334
|
});
|
|
12336
12335
|
}
|
|
12337
12336
|
}
|
|
12338
|
-
this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
|
|
12339
|
-
next: function (validationErrors) {
|
|
12340
|
-
if (validationErrors.length) {
|
|
12341
|
-
_this.errorMessages = [];
|
|
12342
|
-
}
|
|
12343
|
-
}
|
|
12344
|
-
});
|
|
12345
12337
|
};
|
|
12346
12338
|
WriteCaseFlagFieldComponent.prototype.setDisplayContextParameterUpdate = function (caseFields) {
|
|
12347
12339
|
var _this = this;
|
|
@@ -12573,10 +12565,6 @@
|
|
|
12573
12565
|
this.formGroup.updateValueAndValidity();
|
|
12574
12566
|
this.caseEditDataService.setTriggerSubmitEvent(true);
|
|
12575
12567
|
};
|
|
12576
|
-
WriteCaseFlagFieldComponent.prototype.ngOnDestroy = function () {
|
|
12577
|
-
var _a;
|
|
12578
|
-
(_a = this.caseValidationErrorsSubscription$) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
12579
|
-
};
|
|
12580
12568
|
return WriteCaseFlagFieldComponent;
|
|
12581
12569
|
}(AbstractFieldWriteComponent));
|
|
12582
12570
|
WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
@@ -21954,9 +21942,8 @@
|
|
|
21954
21942
|
}
|
|
21955
21943
|
}
|
|
21956
21944
|
var SelectFlagTypeComponent = /** @class */ (function () {
|
|
21957
|
-
function SelectFlagTypeComponent(caseFlagRefdataService
|
|
21945
|
+
function SelectFlagTypeComponent(caseFlagRefdataService) {
|
|
21958
21946
|
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
21959
|
-
this.caseEditDataService = caseEditDataService;
|
|
21960
21947
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
21961
21948
|
this.flagCommentsOptionalEmitter = new i0.EventEmitter();
|
|
21962
21949
|
this.flagTypeNotSelectedErrorMessage = '';
|
|
@@ -22011,21 +21998,11 @@
|
|
|
22011
21998
|
error: function (error) { return _this.onRefdataError(error); }
|
|
22012
21999
|
});
|
|
22013
22000
|
}
|
|
22014
|
-
this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
|
|
22015
|
-
next: function (validationErrors) {
|
|
22016
|
-
if (validationErrors.length) {
|
|
22017
|
-
_this.errorMessages = [];
|
|
22018
|
-
_this.flagTypeNotSelectedErrorMessage = '';
|
|
22019
|
-
_this.flagTypeErrorMessage = '';
|
|
22020
|
-
}
|
|
22021
|
-
}
|
|
22022
|
-
});
|
|
22023
22001
|
};
|
|
22024
22002
|
SelectFlagTypeComponent.prototype.ngOnDestroy = function () {
|
|
22025
22003
|
if (this.flagRefdata$) {
|
|
22026
22004
|
this.flagRefdata$.unsubscribe();
|
|
22027
22005
|
}
|
|
22028
|
-
this.caseValidationErrorsSubscription$.unsubscribe();
|
|
22029
22006
|
};
|
|
22030
22007
|
SelectFlagTypeComponent.prototype.onFlagTypeChanged = function (flagType) {
|
|
22031
22008
|
this.selectedFlagType = flagType;
|
|
@@ -22091,7 +22068,7 @@
|
|
|
22091
22068
|
};
|
|
22092
22069
|
return SelectFlagTypeComponent;
|
|
22093
22070
|
}());
|
|
22094
|
-
SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)
|
|
22071
|
+
SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
22095
22072
|
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) {
|
|
22096
22073
|
if (rf & 1) {
|
|
22097
22074
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -22136,7 +22113,7 @@
|
|
|
22136
22113
|
templateUrl: './select-flag-type.component.html',
|
|
22137
22114
|
styleUrls: ['./select-flag-type.component.scss']
|
|
22138
22115
|
}]
|
|
22139
|
-
}], function () { return [{ type: CaseFlagRefdataService }
|
|
22116
|
+
}], function () { return [{ type: CaseFlagRefdataService }]; }, { formGroup: [{
|
|
22140
22117
|
type: i0.Input
|
|
22141
22118
|
}], jurisdiction: [{
|
|
22142
22119
|
type: i0.Input
|
|
@@ -22559,8 +22536,7 @@
|
|
|
22559
22536
|
}
|
|
22560
22537
|
var _c0$o = function (a0) { return { "form-group-error": a0 }; };
|
|
22561
22538
|
var SelectFlagLocationComponent = /** @class */ (function () {
|
|
22562
|
-
function SelectFlagLocationComponent(
|
|
22563
|
-
this.caseEditDataService = caseEditDataService;
|
|
22539
|
+
function SelectFlagLocationComponent() {
|
|
22564
22540
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
22565
22541
|
this.errorMessages = [];
|
|
22566
22542
|
this.flagLocationNotSelectedErrorMessage = null;
|
|
@@ -22588,14 +22564,6 @@
|
|
|
22588
22564
|
// flags in future)
|
|
22589
22565
|
this.onCaseFlagsConfigError();
|
|
22590
22566
|
}
|
|
22591
|
-
this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
|
|
22592
|
-
next: function (validationErrors) {
|
|
22593
|
-
if (validationErrors.length) {
|
|
22594
|
-
_this.errorMessages = [];
|
|
22595
|
-
_this.flagLocationNotSelectedErrorMessage = null;
|
|
22596
|
-
}
|
|
22597
|
-
}
|
|
22598
|
-
});
|
|
22599
22567
|
};
|
|
22600
22568
|
SelectFlagLocationComponent.prototype.onNext = function () {
|
|
22601
22569
|
// Validate flag location selection
|
|
@@ -22630,12 +22598,9 @@
|
|
|
22630
22598
|
// Return case flag field state and error messages to the parent
|
|
22631
22599
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: exports.CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
|
|
22632
22600
|
};
|
|
22633
|
-
SelectFlagLocationComponent.prototype.ngOnDestroy = function () {
|
|
22634
|
-
this.caseValidationErrorsSubscription$.unsubscribe();
|
|
22635
|
-
};
|
|
22636
22601
|
return SelectFlagLocationComponent;
|
|
22637
22602
|
}());
|
|
22638
|
-
SelectFlagLocationComponent.ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(
|
|
22603
|
+
SelectFlagLocationComponent.ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(); };
|
|
22639
22604
|
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) {
|
|
22640
22605
|
if (rf & 1) {
|
|
22641
22606
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -22676,7 +22641,7 @@
|
|
|
22676
22641
|
selector: 'ccd-select-flag-location',
|
|
22677
22642
|
templateUrl: './select-flag-location.component.html'
|
|
22678
22643
|
}]
|
|
22679
|
-
}],
|
|
22644
|
+
}], null, { formGroup: [{
|
|
22680
22645
|
type: i0.Input
|
|
22681
22646
|
}], flagsData: [{
|
|
22682
22647
|
type: i0.Input
|