@undp/carbon-library 1.0.298-CARBON-300.0 → 1.0.298-CARBON-428-hotfix.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +18 -34
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +18 -34
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -16245,7 +16245,7 @@ var InvestmentCreationComponent = function (props) {
|
|
16245
16245
|
payload.nationalInvestmentId = investmentData.requestId;
|
16246
16246
|
}
|
16247
16247
|
else {
|
16248
|
-
payload.instrument =
|
16248
|
+
payload.instrument = payload.instrument;
|
16249
16249
|
}
|
16250
16250
|
payload.programmeId = projectData === null || projectData === void 0 ? void 0 : projectData.programmeId;
|
16251
16251
|
payload.fromCompanyIds = projectData === null || projectData === void 0 ? void 0 : projectData.companyId.map(function (e) { return Number(e); });
|
@@ -16255,7 +16255,7 @@ var InvestmentCreationComponent = function (props) {
|
|
16255
16255
|
response = _a.sent();
|
16256
16256
|
return [3 /*break*/, 5];
|
16257
16257
|
case 3:
|
16258
|
-
payload.instrument =
|
16258
|
+
payload.instrument = payload.instrument;
|
16259
16259
|
return [4 /*yield*/, post("national/organisation/addInvestment", payload)];
|
16260
16260
|
case 4:
|
16261
16261
|
response = _a.sent();
|
@@ -20060,11 +20060,23 @@ var Assessment = function (props) {
|
|
20060
20060
|
changedValues = {};
|
20061
20061
|
if (info.changedFields && info.changedFields.length > 0) {
|
20062
20062
|
info.changedFields.map(function (changedField) { return __awaiter(void 0, void 0, void 0, function () {
|
20063
|
+
var base64Value, values_1;
|
20063
20064
|
return __generator(this, function (_a) {
|
20064
|
-
|
20065
|
-
|
20065
|
+
switch (_a.label) {
|
20066
|
+
case 0:
|
20067
|
+
if (!(changedField.name[0] === "document")) return [3 /*break*/, 2];
|
20068
|
+
return [4 /*yield*/, getBase64(changedField.value[0].originFileObj)];
|
20069
|
+
case 1:
|
20070
|
+
base64Value = _a.sent();
|
20071
|
+
console.log("FEAsibility document : ", base64Value);
|
20072
|
+
values_1 = base64Value;
|
20073
|
+
setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), { document: values_1 })); });
|
20074
|
+
return [3 /*break*/, 3];
|
20075
|
+
case 2:
|
20076
|
+
changedValues[changedField.name[0]] = changedField.value;
|
20077
|
+
_a.label = 3;
|
20078
|
+
case 3: return [2 /*return*/];
|
20066
20079
|
}
|
20067
|
-
return [2 /*return*/];
|
20068
20080
|
});
|
20069
20081
|
}); });
|
20070
20082
|
setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
|
@@ -20099,34 +20111,6 @@ var Assessment = function (props) {
|
|
20099
20111
|
setIsPersonListedDetailsVisible(false);
|
20100
20112
|
}
|
20101
20113
|
};
|
20102
|
-
var onAssesmentDocument = function (e) { return __awaiter(void 0, void 0, void 0, function () {
|
20103
|
-
var base64Value, values_1;
|
20104
|
-
var _a;
|
20105
|
-
return __generator(this, function (_b) {
|
20106
|
-
switch (_b.label) {
|
20107
|
-
case 0:
|
20108
|
-
if (!((e === null || e === void 0 ? void 0 : e.fileList.length) > 0 && ((_a = e === null || e === void 0 ? void 0 : e.fileList[0]) === null || _a === void 0 ? void 0 : _a.name))) return [3 /*break*/, 2];
|
20109
|
-
return [4 /*yield*/, getBase64(e.fileList[0].originFileObj)];
|
20110
|
-
case 1:
|
20111
|
-
base64Value = _b.sent();
|
20112
|
-
values_1 = base64Value;
|
20113
|
-
setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), { document: values_1 })); });
|
20114
|
-
return [3 /*break*/, 3];
|
20115
|
-
case 2:
|
20116
|
-
setCobenefitsAssessmentDetails(function (pre) {
|
20117
|
-
pre.document; var rest = __rest(pre, ["document"]);
|
20118
|
-
if (Object.keys(rest).length === 0) {
|
20119
|
-
return undefined;
|
20120
|
-
}
|
20121
|
-
else {
|
20122
|
-
return __assign({}, rest);
|
20123
|
-
}
|
20124
|
-
});
|
20125
|
-
_b.label = 3;
|
20126
|
-
case 3: return [2 /*return*/];
|
20127
|
-
}
|
20128
|
-
});
|
20129
|
-
}); };
|
20130
20114
|
var normFile = function (e) {
|
20131
20115
|
if (Array.isArray(e)) {
|
20132
20116
|
return e;
|
@@ -20341,7 +20325,7 @@ var Assessment = function (props) {
|
|
20341
20325
|
] },
|
20342
20326
|
React.createElement(Upload, { accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", beforeUpload: function (file) {
|
20343
20327
|
return false;
|
20344
|
-
}, className: "design-upload-section", name: "document", listType: "picture", multiple: false, maxCount: 1
|
20328
|
+
}, className: "design-upload-section", name: "document", listType: "picture", multiple: false, maxCount: 1 },
|
20345
20329
|
React.createElement(Button, { className: "upload-doc", size: "large", icon: React.createElement(UploadOutlined, null) }, "Upload")))),
|
20346
20330
|
viewOnly && assessmentViewData.document && (React.createElement(Form.Item, { label: t("assessmentDocuments"), name: "assessmentDocuments" },
|
20347
20331
|
React.createElement("a", { href: assessmentViewData.document, target: "_blank", rel: "noopener noreferrer", download: true }, assessmentViewData.document))))))))));
|