oa-componentbook 0.18.63 → 0.18.65

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/build/index.js CHANGED
@@ -131,12 +131,6 @@ Object.defineProperty(exports, "CustomFormItem", {
131
131
  return _CustomFormItem.default;
132
132
  }
133
133
  });
134
- Object.defineProperty(exports, "CustomIcon", {
135
- enumerable: true,
136
- get: function get() {
137
- return _CustomIcon.default;
138
- }
139
- });
140
134
  Object.defineProperty(exports, "CustomInfo", {
141
135
  enumerable: true,
142
136
  get: function get() {
@@ -408,7 +402,6 @@ var _CustomDrawer = _interopRequireDefault(require("./components/oa-component-dr
408
402
  var _CustomFormItem = _interopRequireDefault(require("./components/oa-component-form-item/CustomFormItem"));
409
403
  var _CustomDropdown = _interopRequireDefault(require("./components/oa-component-dropdown/CustomDropdown"));
410
404
  var _MaterialIcon = _interopRequireDefault(require("./components/oa-component-icons/MaterialIcon"));
411
- var _CustomIcon = _interopRequireDefault(require("./components/oa-component-icons/CustomIcon"));
412
405
  var _CustomInfo = _interopRequireDefault(require("./components/oa-component-info/CustomInfo"));
413
406
  var _CustomInput = _interopRequireDefault(require("./components/oa-component-input/CustomInput"));
414
407
  var _CustomInputNumber = _interopRequireDefault(require("./components/oa-component-input-number/CustomInputNumber"));
@@ -24,7 +24,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
24
24
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
25
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
26
26
  function ApprovalWidget(_ref) {
27
- var _approvalForm$disable, _approvalForm$disable2, _approvalForm$remarks, _approvalForm$disable3;
27
+ var _approvalForm$disable, _approvalForm$disable2, _approvalForm$disable3, _approvalForm$remarks, _approvalForm$disable4;
28
28
  let {
29
29
  children,
30
30
  description,
@@ -73,6 +73,7 @@ function ApprovalWidget(_ref) {
73
73
  }), children)), !isQuestionStyleWidget && /*#__PURE__*/_react.default.createElement("div", {
74
74
  className: "col-sm-12 col-md-4 col-lg-4"
75
75
  }, /*#__PURE__*/_react.default.createElement(_UploadDownloadWidget.default, _extends({
76
+ disabled: (_approvalForm$disable = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable !== void 0 ? _approvalForm$disable : false,
76
77
  "data-test": dataTest ? "".concat(dataTest, "--upload-download-widget") : undefined
77
78
  }, docDetails, {
78
79
  formName: isMandatory ? "file-".concat(questionId) : undefined
@@ -96,12 +97,12 @@ function ApprovalWidget(_ref) {
96
97
  value: isApproved
97
98
  }, /*#__PURE__*/_react.default.createElement(_CustomRadio.default, {
98
99
  "data-test": dataTest ? "".concat(dataTest, "--is-approved-radio-yes") : undefined,
99
- disabled: (_approvalForm$disable = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable !== void 0 ? _approvalForm$disable : false,
100
+ disabled: (_approvalForm$disable2 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable2 !== void 0 ? _approvalForm$disable2 : false,
100
101
  label: "Mark as Approved",
101
102
  value: 1
102
103
  }), /*#__PURE__*/_react.default.createElement(_CustomRadio.default, {
103
104
  "data-test": dataTest ? "".concat(dataTest, "--is-approved-radio-no") : undefined,
104
- disabled: (_approvalForm$disable2 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable2 !== void 0 ? _approvalForm$disable2 : false,
105
+ disabled: (_approvalForm$disable3 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable3 !== void 0 ? _approvalForm$disable3 : false,
105
106
  label: "Mark as Pending",
106
107
  value: 0
107
108
  }))), isApproved === 0 && /*#__PURE__*/_react.default.createElement("section", null, /*#__PURE__*/_react.default.createElement("h5", {
@@ -117,7 +118,7 @@ function ApprovalWidget(_ref) {
117
118
  }]
118
119
  }, /*#__PURE__*/_react.default.createElement(_antd.Input.TextArea, {
119
120
  "data-test": dataTest ? "".concat(dataTest, "--remarks") : undefined,
120
- disabled: (_approvalForm$disable3 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable3 !== void 0 ? _approvalForm$disable3 : false
121
+ disabled: (_approvalForm$disable4 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable4 !== void 0 ? _approvalForm$disable4 : false
121
122
  })))) || undefined), hasDivider && /*#__PURE__*/_react.default.createElement(_antd.Divider, null));
122
123
  }
123
124
  ApprovalWidget.propTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-componentbook",
3
- "version": "0.18.63",
3
+ "version": "0.18.65",
4
4
  "private": false,
5
5
  "description": "Reusable components",
6
6
  "main": "build/index.js",
@@ -50,6 +50,7 @@
50
50
  "peerDependencies": {
51
51
  "@material-ui/core": "^4.12.4",
52
52
  "@material-ui/icons": "^4.11.3",
53
+ "core-js": "^3.32.2",
53
54
  "prop-types": "^15.8.1",
54
55
  "react": "^16.9.0",
55
56
  "react-dom": "^16.9.0",