@hmcts/ccd-case-ui-toolkit 6.19.14 → 6.19.15-prerelease-datetime-picker-fix-new
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 +15 -20
- 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/case-edit.component.js +3 -3
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +2 -5
- package/esm2015/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.js +7 -7
- package/esm2015/lib/shared/components/palette/datetime-picker/datetime-picker-utils.js +3 -3
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +2 -2
- package/esm2015/lib/shared/services/form/form-value.service.js +2 -2
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +14 -17
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +0 -2
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts +2 -2
- package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6403,7 +6403,7 @@
|
|
|
6403
6403
|
if (!FormValueService.isLabel(field) && FormValueService.isReadOnly(field)) {
|
|
6404
6404
|
return "continue";
|
|
6405
6405
|
}
|
|
6406
|
-
if (field.hidden === true && field.display_context !== 'HIDDEN' && field.id !== 'caseLinks'
|
|
6406
|
+
if (field.hidden === true && field.display_context !== 'HIDDEN' && field.id !== 'caseLinks') {
|
|
6407
6407
|
// Delete anything that is hidden (that is NOT readonly), and that
|
|
6408
6408
|
// hasn't had its display_context overridden to make it hidden.
|
|
6409
6409
|
delete data[field.id];
|
|
@@ -9889,13 +9889,14 @@
|
|
|
9889
9889
|
function ValidPageListCaseFieldsService(fieldsUtils) {
|
|
9890
9890
|
this.fieldsUtils = fieldsUtils;
|
|
9891
9891
|
}
|
|
9892
|
-
ValidPageListCaseFieldsService.prototype.isShown = function (page, eventTriggerFields,
|
|
9892
|
+
ValidPageListCaseFieldsService.prototype.isShown = function (page, eventTriggerFields, data) {
|
|
9893
9893
|
var fields = this.fieldsUtils
|
|
9894
|
-
.mergeCaseFieldsAndFormFields(eventTriggerFields,
|
|
9894
|
+
.mergeCaseFieldsAndFormFields(eventTriggerFields, data);
|
|
9895
9895
|
return page.parsedShowCondition.match(fields);
|
|
9896
9896
|
};
|
|
9897
|
-
ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, caseEventDatadata, eventTriggerFields, fromPreviousPage
|
|
9898
|
-
|
|
9897
|
+
ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, caseEventDatadata, eventTriggerFields, fromPreviousPage) {
|
|
9898
|
+
if (fromPreviousPage === void 0) { fromPreviousPage = false; }
|
|
9899
|
+
var pageListCaseFields = this.validPageListCaseFields(validPageList, caseEventDatadata, eventTriggerFields);
|
|
9899
9900
|
if (!fromPreviousPage && pageListCaseFields.length > 0) {
|
|
9900
9901
|
Object.keys(caseEventDatadata).forEach(function (key) {
|
|
9901
9902
|
if (pageListCaseFields.findIndex(function (element) { return element.id === key; }) < 0) {
|
|
@@ -9904,11 +9905,11 @@
|
|
|
9904
9905
|
});
|
|
9905
9906
|
}
|
|
9906
9907
|
};
|
|
9907
|
-
ValidPageListCaseFieldsService.prototype.validPageListCaseFields = function (validPageList,
|
|
9908
|
+
ValidPageListCaseFieldsService.prototype.validPageListCaseFields = function (validPageList, data, eventTriggerFields) {
|
|
9908
9909
|
var _this = this;
|
|
9909
9910
|
var validPageListCaseFields = [];
|
|
9910
9911
|
validPageList.forEach(function (page) {
|
|
9911
|
-
if (_this.isShown(page, eventTriggerFields,
|
|
9912
|
+
if (_this.isShown(page, eventTriggerFields, data)) {
|
|
9912
9913
|
page.case_fields.forEach(function (field) { return validPageListCaseFields.push(field); });
|
|
9913
9914
|
}
|
|
9914
9915
|
});
|
|
@@ -10113,8 +10114,8 @@
|
|
|
10113
10114
|
// Remove "Launcher"-type fields (these have no values and are not intended to be persisted)
|
|
10114
10115
|
this.formValueService.removeCaseFieldsOfType(caseEventData.data, eventTrigger.case_fields, ['FlagLauncher', 'ComponentLauncher']);
|
|
10115
10116
|
// delete fields which are not part of the case event journey wizard pages case fields
|
|
10116
|
-
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false
|
|
10117
|
-
var pageListCaseFields = this.validPageListCaseFieldsService.validPageListCaseFields(this.validPageList,
|
|
10117
|
+
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false);
|
|
10118
|
+
var pageListCaseFields = this.validPageListCaseFieldsService.validPageListCaseFields(this.validPageList, caseEventData.data, eventTrigger.case_fields);
|
|
10118
10119
|
// Remove unnecessary case fields which are hidden, only if the submission is *not* for Case Flags
|
|
10119
10120
|
if (!this.isCaseFlagSubmission) {
|
|
10120
10121
|
this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
|
|
@@ -11493,7 +11494,7 @@
|
|
|
11493
11494
|
// Get hold of the CaseEventData.
|
|
11494
11495
|
var caseEventData = this.formValueService.sanitise(formFields);
|
|
11495
11496
|
// delete fields which are not part of the case event journey wizard pages case fields
|
|
11496
|
-
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, this.eventTrigger.case_fields, fromPreviousPage
|
|
11497
|
+
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, this.eventTrigger.case_fields, fromPreviousPage);
|
|
11497
11498
|
// Tidy it up before we return it.
|
|
11498
11499
|
this.formValueService.removeUnnecessaryFields(caseEventData.data, caseFields, clearEmpty, clearNonCase, fromPreviousPage, this.currentPage.case_fields);
|
|
11499
11500
|
return caseEventData;
|
|
@@ -25029,10 +25030,10 @@
|
|
|
25029
25030
|
|
|
25030
25031
|
var CUSTOM_MOMENT_FORMATS = {
|
|
25031
25032
|
parse: {
|
|
25032
|
-
dateInput: 'YYYY
|
|
25033
|
+
dateInput: 'DD-MM-YYYY HH:mm:ss'
|
|
25033
25034
|
},
|
|
25034
25035
|
display: {
|
|
25035
|
-
dateInput: 'YYYY
|
|
25036
|
+
dateInput: 'DD-MM-YYYY HH:mm:ss',
|
|
25036
25037
|
monthYearLabel: 'MMMM YYYY',
|
|
25037
25038
|
dateA11yLabel: 'EEE/MMM/YYYY',
|
|
25038
25039
|
monthYearA11yLabel: 'MMMM YYYY',
|
|
@@ -26554,7 +26555,7 @@
|
|
|
26554
26555
|
var checkConditionalShowAgainst = values;
|
|
26555
26556
|
var formGroupAvailable = false;
|
|
26556
26557
|
if (formGroup) {
|
|
26557
|
-
checkConditionalShowAgainst = formGroup.
|
|
26558
|
+
checkConditionalShowAgainst = formGroup.parent.getRawValue().data;
|
|
26558
26559
|
formGroupAvailable = true;
|
|
26559
26560
|
if (idPrefix !== undefined) {
|
|
26560
26561
|
if (idPrefix !== '') {
|
|
@@ -27572,7 +27573,7 @@
|
|
|
27572
27573
|
var page_r13 = i0__namespace.ɵɵnextContext().$implicit;
|
|
27573
27574
|
var ctx_r14 = i0__namespace.ɵɵnextContext(3);
|
|
27574
27575
|
i0__namespace.ɵɵadvance(1);
|
|
27575
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$f, i0__namespace.ɵɵpipeBind2(4, 9, page_r13, ctx_r14.editForm), ctx_r14.
|
|
27576
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$f, i0__namespace.ɵɵpipeBind2(4, 9, page_r13, ctx_r14.editForm), ctx_r14.editForm.controls["data"]))));
|
|
27576
27577
|
}
|
|
27577
27578
|
}
|
|
27578
27579
|
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_Template(rf, ctx) {
|
|
@@ -27825,7 +27826,6 @@
|
|
|
27825
27826
|
});
|
|
27826
27827
|
CaseEditSubmitComponent.prototype.ngOnInit = function () {
|
|
27827
27828
|
var _this = this;
|
|
27828
|
-
var _a, _b, _c;
|
|
27829
27829
|
this.profileSubscription = this.profileNotifier.profile.subscribe(function (_) { return _this.profile = _; });
|
|
27830
27830
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
27831
27831
|
this.triggerText = this.eventTrigger.end_button_label || CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT;
|
|
@@ -27834,11 +27834,6 @@
|
|
|
27834
27834
|
this.showSummaryFields = this.sortFieldsByShowSummaryContent(this.eventTrigger.case_fields);
|
|
27835
27835
|
this.caseEdit.isSubmitting = false;
|
|
27836
27836
|
this.contextFields = this.getCaseFields();
|
|
27837
|
-
this.metadataFieldsObject = (_c = (_b = (_a = this.caseEdit) === null || _a === void 0 ? void 0 : _a.caseDetails) === null || _b === void 0 ? void 0 : _b.metadataFields) === null || _c === void 0 ? void 0 : _c.reduce(function (o, key) {
|
|
27838
|
-
var _d;
|
|
27839
|
-
return Object.assign(o, (_d = {}, _d[key.id] = key.value, _d));
|
|
27840
|
-
}, {});
|
|
27841
|
-
this.allFieldsValues = Object.assign(this.metadataFieldsObject, this.editForm.getRawValue().data);
|
|
27842
27837
|
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
27843
27838
|
// a FlagLauncher field in the event trigger
|
|
27844
27839
|
this.caseEdit.isCaseFlagSubmission =
|