@ukhomeoffice/cop-react-form-renderer 3.11.0-alpha → 3.11.1-alpha
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.
|
@@ -21,15 +21,15 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
21
21
|
|
|
22
22
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var getEntryToCollectionRow = function getEntryToCollectionRow(page, onAction) {
|
|
25
25
|
return [{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
pageId: page.id,
|
|
27
|
+
key: page.components[0].labels.empty || 'Nothing entered',
|
|
28
|
+
required: page.required,
|
|
29
|
+
action: {
|
|
30
|
+
page: page.id,
|
|
31
|
+
label: "Change",
|
|
32
|
+
aria_suffix: page.cya_link.aria_suffix,
|
|
33
33
|
onAction: onAction
|
|
34
34
|
}
|
|
35
35
|
}];
|
|
@@ -84,7 +84,7 @@ var getCYARowsForCollection = function getCYARowsForCollection(page, collection,
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
return
|
|
87
|
+
return getEntryToCollectionRow(page, onAction);
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
var _default = getCYARowsForCollection;
|