oa-componentbook 1.0.1-stage.89 → 1.0.1-stage.90
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.
|
@@ -240,7 +240,10 @@ function ApprovalWidget(_ref) {
|
|
|
240
240
|
}, /*#__PURE__*/_react.default.createElement(_antd.Input.TextArea, {
|
|
241
241
|
"data-test": dataTest ? "".concat(dataTest, "--remarks") : undefined,
|
|
242
242
|
disabled: (_approvalForm$disable6 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable6 !== void 0 ? _approvalForm$disable6 : false
|
|
243
|
-
})))), actionRenderType === "buttonWithForm" && /*#__PURE__*/_react.default.createElement(_antd.Form.Item,
|
|
243
|
+
})))), actionRenderType === "buttonWithForm" && /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
|
|
244
|
+
validateStatus: form.getFieldError("validateDocumentButton#".concat(questionId)) ? "error" : "",
|
|
245
|
+
help: form.getFieldError("validateDocumentButton#".concat(questionId)) || ""
|
|
246
|
+
}, getFieldDecorator("validateDocumentButton#".concat(questionId), {
|
|
244
247
|
rules: isMandatory ? [{
|
|
245
248
|
required: true,
|
|
246
249
|
message: "This field is required"
|
|
@@ -248,7 +251,9 @@ function ApprovalWidget(_ref) {
|
|
|
248
251
|
})( /*#__PURE__*/_react.default.createElement(_CustomButton.default, _extends({}, actionContent, {
|
|
249
252
|
disabled: (_approvalForm$disable7 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable7 !== void 0 ? _approvalForm$disable7 : false
|
|
250
253
|
})))), actionRenderType === "radioWithForm" && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
|
|
251
|
-
className: "custom-radio-group"
|
|
254
|
+
className: "custom-radio-group",
|
|
255
|
+
validateStatus: form.getFieldError("icQues_status_".concat(questionId)) ? "error" : "",
|
|
256
|
+
help: form.getFieldError("icQues_status_".concat(questionId)) || ""
|
|
252
257
|
}, getFieldDecorator("icQues_status_".concat(questionId), {
|
|
253
258
|
rules: isMandatory ? [{
|
|
254
259
|
required: true,
|
|
@@ -272,7 +277,10 @@ function ApprovalWidget(_ref) {
|
|
|
272
277
|
disabled: (_approvalForm$disable9 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable9 !== void 0 ? _approvalForm$disable9 : false
|
|
273
278
|
})))), form.getFieldValue("icQues_status_".concat(questionId)) == "Incomplete" && /*#__PURE__*/_react.default.createElement("section", null, /*#__PURE__*/_react.default.createElement("h5", {
|
|
274
279
|
className: "type-b2-400"
|
|
275
|
-
}, "Remarks"), /*#__PURE__*/_react.default.createElement(_antd.Form.Item,
|
|
280
|
+
}, "Remarks"), /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
|
|
281
|
+
validateStatus: form.getFieldError("icQues_remarks_".concat(questionId)) ? "error" : "",
|
|
282
|
+
help: form.getFieldError("icQues_remarks_".concat(questionId)) || ""
|
|
283
|
+
}, getFieldDecorator("icQues_remarks_".concat(questionId), {
|
|
276
284
|
rules: isMandatory ? [{
|
|
277
285
|
required: true,
|
|
278
286
|
message: dataTest ? /*#__PURE__*/_react.default.createElement("span", {
|