oa-componentbook 1.0.1-stage.373 → 1.0.1-stage.375
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.
|
@@ -22,7 +22,7 @@ var _CustomButton = _interopRequireDefault(require("../../components/oa-componen
|
|
|
22
22
|
var _MaterialIcon = _interopRequireDefault(require("../../components/oa-component-icons/MaterialIcon"));
|
|
23
23
|
var _CustomTag = _interopRequireDefault(require("../../components/oa-component-tag/CustomTag"));
|
|
24
24
|
var _CustomTooltip = _interopRequireDefault(require("../../components/oa-component-tooltip/CustomTooltip"));
|
|
25
|
-
const _excluded = ["children", "description", "docDetails", "multipleDocDetails", "approvalForm", "isMandatory", "hasDivider", "isQuestionStyleWidget", "questionId", "title", "viewOnClick", "actionRenderType", "actionContent", "systemStatus", "documentTitle", "descriptionTitle", "data-test", "form", "columnDynamicCssClass", "tooltipPlacement"];
|
|
25
|
+
const _excluded = ["children", "description", "docDetails", "multipleDocDetails", "approvalForm", "isMandatory", "hasDivider", "isQuestionStyleWidget", "questionId", "title", "viewOnClick", "actionRenderType", "actionContent", "systemStatus", "documentTitle", "descriptionTitle", "data-test", "form", "columnDynamicCssClass", "tooltipPlacement", "maxLength"];
|
|
26
26
|
/* eslint-disable */
|
|
27
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
28
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -75,7 +75,8 @@ function ApprovalWidget(_ref) {
|
|
|
75
75
|
"data-test": dataTest,
|
|
76
76
|
form,
|
|
77
77
|
columnDynamicCssClass,
|
|
78
|
-
tooltipPlacement
|
|
78
|
+
tooltipPlacement,
|
|
79
|
+
maxLength
|
|
79
80
|
} = _ref,
|
|
80
81
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
81
82
|
const getInitialValue = isApproved => {
|
|
@@ -191,7 +192,8 @@ function ApprovalWidget(_ref) {
|
|
|
191
192
|
}] : []
|
|
192
193
|
}, /*#__PURE__*/_react.default.createElement(_antd.Input.TextArea, {
|
|
193
194
|
"data-test": dataTest ? "".concat(dataTest, "--remarks") : undefined,
|
|
194
|
-
disabled: (_approvalForm$disable3 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable3 !== void 0 ? _approvalForm$disable3 : false
|
|
195
|
+
disabled: (_approvalForm$disable3 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable3 !== void 0 ? _approvalForm$disable3 : false,
|
|
196
|
+
maxLength: maxLength
|
|
195
197
|
})));
|
|
196
198
|
};
|
|
197
199
|
|
|
@@ -389,7 +391,8 @@ function ApprovalWidget(_ref) {
|
|
|
389
391
|
initialValue: (_approvalForm$remarks2 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.remarks) !== null && _approvalForm$remarks2 !== void 0 ? _approvalForm$remarks2 : ""
|
|
390
392
|
})( /*#__PURE__*/_react.default.createElement(_antd.Input.TextArea, {
|
|
391
393
|
"data-test": dataTest ? "".concat(dataTest, "--remarks") : undefined,
|
|
392
|
-
disabled: (_approvalForm$disable10 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable10 !== void 0 ? _approvalForm$disable10 : false
|
|
394
|
+
disabled: (_approvalForm$disable10 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable10 !== void 0 ? _approvalForm$disable10 : false,
|
|
395
|
+
maxLength: maxLength
|
|
393
396
|
}))))), actionRenderType === "buttonWithFormV4" && /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
|
|
394
397
|
name: "validateDocumentButton#".concat(questionId),
|
|
395
398
|
initialValue: approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.isApproved,
|