oa-componentbook 1.0.1-stage.79 → 1.0.1-stage.80

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.
@@ -54,7 +54,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
54
54
  * @property {string} ['data-test'] Data test string to be applied to the outermost element.
55
55
  */
56
56
  function ApprovalWidget(_ref) {
57
- var _approvalForm$disable2, _actionContent$label, _approvalForm$disable3, _approvalForm$disable4, _approvalForm$disable5, _approvalForm$remarks, _approvalForm$disable6, _approvalForm$disable7, _approvalForm$disable8, _approvalForm$disable9, _approvalForm$disable10;
57
+ var _approvalForm$disable2, _actionContent$label, _approvalForm$disable3, _approvalForm$disable4, _approvalForm$disable5, _approvalForm$remarks, _approvalForm$disable6, _approvalForm$disable7, _approvalForm$disable8, _approvalForm$disable9, _approvalForm$disable10, _approvalForm$disable11;
58
58
  let {
59
59
  children,
60
60
  description,
@@ -284,7 +284,19 @@ function ApprovalWidget(_ref) {
284
284
  })( /*#__PURE__*/_react.default.createElement(_antd.Input.TextArea, {
285
285
  "data-test": dataTest ? "".concat(dataTest, "--remarks") : undefined,
286
286
  disabled: (_approvalForm$disable10 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable10 !== void 0 ? _approvalForm$disable10 : false
287
- }))))))), hasDivider && /*#__PURE__*/_react.default.createElement(_antd.Divider, null));
287
+ }))))), actionRenderType === "buttonWithFormV4" && /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
288
+ name: "validateDocumentButton#".concat(questionId)
289
+ // initialValue={isApproved}
290
+ ,
291
+ rules: [{
292
+ required: true,
293
+ message: dataTest ? /*#__PURE__*/_react.default.createElement("span", {
294
+ "data-test": "".concat(dataTest, "--is-approved-validation-message")
295
+ }, "Approval status needs to be selected.") : "Approval status needs to be selected."
296
+ }]
297
+ }, /*#__PURE__*/_react.default.createElement(_CustomButton.default, _extends({}, actionContent, {
298
+ disabled: (_approvalForm$disable11 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable11 !== void 0 ? _approvalForm$disable11 : false
299
+ }))))), hasDivider && /*#__PURE__*/_react.default.createElement(_antd.Divider, null));
288
300
  }
289
301
  ApprovalWidget.propTypes = {
290
302
  children: _propTypes.default.node,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-componentbook",
3
- "version": "1.0.1-stage.79",
3
+ "version": "1.0.1-stage.80",
4
4
  "private": false,
5
5
  "description": "Reusable components",
6
6
  "main": "build/index.js",