@hmcts/ccd-case-ui-toolkit 4.7.0-rc.6 → 4.7.0-rc.7
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/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.LICENSE.txt +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +1 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.js +3 -3
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.js.map +1 -1
- package/dist/shared/components/case-editor/domain/wizard.model.d.ts +1 -1
- package/dist/shared/components/case-editor/domain/wizard.model.js +2 -2
- package/dist/shared/components/case-editor/domain/wizard.model.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
|
|
3
|
-
* @version v4.7.0-rc.
|
|
3
|
+
* @version v4.7.0-rc.7
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -12889,15 +12889,15 @@ var CaseEditPageComponent = /** @class */ (function () {
|
|
|
12889
12889
|
CaseEditPageComponent.prototype.updateFormData = function (jsonData) {
|
|
12890
12890
|
for (var _i = 0, _a = Object.keys(jsonData.data); _i < _a.length; _i++) {
|
|
12891
12891
|
var caseFieldId = _a[_i];
|
|
12892
|
-
if (this.pageWithFieldExists(caseFieldId
|
|
12892
|
+
if (this.pageWithFieldExists(caseFieldId)) {
|
|
12893
12893
|
this.updateEventTriggerCaseFields(caseFieldId, jsonData, this.caseEdit.eventTrigger);
|
|
12894
12894
|
this.updateFormControlsValue(this.editForm, caseFieldId, jsonData.data[caseFieldId]);
|
|
12895
12895
|
}
|
|
12896
12896
|
}
|
|
12897
12897
|
};
|
|
12898
12898
|
// we do the check, becasue the data comes from the external source
|
|
12899
|
-
CaseEditPageComponent.prototype.pageWithFieldExists = function (caseFieldId
|
|
12900
|
-
return this.wizard.findWizardPage(caseFieldId
|
|
12899
|
+
CaseEditPageComponent.prototype.pageWithFieldExists = function (caseFieldId) {
|
|
12900
|
+
return this.wizard.findWizardPage(caseFieldId);
|
|
12901
12901
|
};
|
|
12902
12902
|
CaseEditPageComponent.prototype.updateEventTriggerCaseFields = function (caseFieldId, jsonData, eventTrigger) {
|
|
12903
12903
|
if (eventTrigger.case_fields) {
|
|
@@ -14046,8 +14046,8 @@ var Wizard = /** @class */ (function () {
|
|
|
14046
14046
|
}
|
|
14047
14047
|
return canShow(foundPage) ? foundPage : undefined;
|
|
14048
14048
|
};
|
|
14049
|
-
Wizard.prototype.findWizardPage = function (caseFieldId
|
|
14050
|
-
return this.pages.find(function (wizardPage) { return wizardPage.
|
|
14049
|
+
Wizard.prototype.findWizardPage = function (caseFieldId) {
|
|
14050
|
+
return this.pages.find(function (wizardPage) { return wizardPage.case_fields &&
|
|
14051
14051
|
wizardPage.case_fields.filter(function (caseField) { return caseField.id === caseFieldId; }).length > 0; });
|
|
14052
14052
|
};
|
|
14053
14053
|
Wizard.prototype.nextPage = function (pageId, canShow) {
|