@undp/carbon-library 1.0.293-CARBON-Sprint-54.3 → 1.0.293-CARBON-435.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +13 -41
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +13 -41
- package/dist/esm/index.js.map +1 -1
- package/dist/locales/i18n/creditTransfer/en.json +1 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -6713,7 +6713,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6713
6713
|
React.createElement(antd.Radio.Button, { className: companyRoleClassName, value: companyRole },
|
6714
6714
|
companyRole === exports.CompanyRole.CERTIFIER ? (React.createElement(icons.SafetyOutlined, { className: "role-icons" })) : companyRole ===
|
6715
6715
|
exports.CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(icons.ExperimentOutlined, { className: "role-icons" })) : companyRole === exports.CompanyRole.MINISTRY ? (React.createElement(icons.AuditOutlined, { className: "role-icons" })) : (React.createElement(icons.BankOutlined, { className: "role-icons" })),
|
6716
|
-
|
6716
|
+
companyRole))) : (React.createElement(React.Fragment, null,
|
6717
6717
|
React.createElement("div", { className: "certifier-radio-container", style: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
6718
6718
|
exports.CompanyRole.MINISTRY
|
6719
6719
|
? {
|
@@ -6979,7 +6979,7 @@ styleInject(css_248z$u);
|
|
6979
6979
|
var CompanyRoleIcon = function (props) {
|
6980
6980
|
var role = props.role;
|
6981
6981
|
return (React.createElement("div", { style: { display: 'flex', alignItems: 'center' } },
|
6982
|
-
role === 'Government' ? (React.createElement(RoleIcon, { icon: React.createElement(icons.BankOutlined, null), bg: GovBGColor, color: GovColor })) : role === 'Certifier' ? (React.createElement(RoleIcon, { icon: React.createElement(icons.SafetyOutlined, null), bg: CertBGColor, color: CertColor })) :
|
6982
|
+
role === 'Government' ? (React.createElement(RoleIcon, { icon: React.createElement(icons.BankOutlined, null), bg: GovBGColor, color: GovColor })) : role === 'Certifier' ? (React.createElement(RoleIcon, { icon: React.createElement(icons.SafetyOutlined, null), bg: CertBGColor, color: CertColor })) : (React.createElement(RoleIcon, { icon: React.createElement(icons.ExperimentOutlined, null), bg: DevBGColor, color: DevColor })),
|
6983
6983
|
role === 'ProgrammeDeveloper' ? React.createElement("div", null, 'Developer') : React.createElement("div", null, role)));
|
6984
6984
|
};
|
6985
6985
|
|
@@ -17029,7 +17029,7 @@ var InvestmentManagementComponent = function (props) {
|
|
17029
17029
|
style: "color-primary",
|
17030
17030
|
click: function () {
|
17031
17031
|
showModalOnAction(record, {
|
17032
|
-
title: t("creditTransfer:
|
17032
|
+
title: t("creditTransfer:acceptTitle"),
|
17033
17033
|
icon: React.createElement(Icon__namespace.ClipboardCheck, null),
|
17034
17034
|
actionBtnText: t("creditTransfer:proceed"),
|
17035
17035
|
okAction: function (requestId, comment) {
|
@@ -19655,26 +19655,20 @@ var Assessment = function (props) {
|
|
19655
19655
|
if (info.changedFields && info.changedFields.length > 0) {
|
19656
19656
|
info.changedFields.map(function (changedField) { return __awaiter(void 0, void 0, void 0, function () {
|
19657
19657
|
var base64Value, values_1;
|
19658
|
-
|
19659
|
-
|
19660
|
-
switch (_b.label) {
|
19658
|
+
return __generator(this, function (_a) {
|
19659
|
+
switch (_a.label) {
|
19661
19660
|
case 0:
|
19662
19661
|
if (!(changedField.name[0] === "document")) return [3 /*break*/, 2];
|
19663
19662
|
return [4 /*yield*/, getBase64(changedField.value[0].originFileObj)];
|
19664
19663
|
case 1:
|
19665
|
-
base64Value =
|
19664
|
+
base64Value = _a.sent();
|
19666
19665
|
console.log("FEAsibility document : ", base64Value);
|
19667
19666
|
values_1 = base64Value;
|
19668
19667
|
setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), { document: values_1 })); });
|
19669
19668
|
return [3 /*break*/, 3];
|
19670
19669
|
case 2:
|
19671
|
-
|
19672
|
-
|
19673
|
-
}
|
19674
|
-
else {
|
19675
|
-
changedValues[changedField.name[0]] = undefined;
|
19676
|
-
}
|
19677
|
-
_b.label = 3;
|
19670
|
+
changedValues[changedField.name[0]] = changedField.value;
|
19671
|
+
_a.label = 3;
|
19678
19672
|
case 3: return [2 /*return*/];
|
19679
19673
|
}
|
19680
19674
|
});
|
@@ -21979,18 +21973,7 @@ var CoBenifitsComponent = function (props) {
|
|
21979
21973
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { sdgGoals: sdgGoalsDetails })); });
|
21980
21974
|
};
|
21981
21975
|
var onGenderParityFormSubmit = function (genderParityDetails) {
|
21982
|
-
|
21983
|
-
var values = Object.values(genderParityDetails).filter(function (val) {
|
21984
|
-
return (val !== undefined && val.trim().length === 0) || val === undefined;
|
21985
|
-
});
|
21986
|
-
var keys = Object.keys(genderParityDetails);
|
21987
|
-
if (keys.length === values.length) {
|
21988
|
-
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { genderPariy: undefined })); });
|
21989
|
-
}
|
21990
|
-
else {
|
21991
|
-
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { genderPariy: genderParityDetails })); });
|
21992
|
-
}
|
21993
|
-
}
|
21976
|
+
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { genderPariy: genderParityDetails })); });
|
21994
21977
|
};
|
21995
21978
|
var onEnvironmentalFormSubmit = function (environmentalsDetails) {
|
21996
21979
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { environmental: environmentalsDetails })); });
|
@@ -21999,19 +21982,8 @@ var CoBenifitsComponent = function (props) {
|
|
21999
21982
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { economic: economicDetails })); });
|
22000
21983
|
};
|
22001
21984
|
var onAssessmentFormSubmit = function (coBenefitsAssessmentDetails, isFormValid) {
|
22002
|
-
|
22003
|
-
|
22004
|
-
return (val !== undefined && val.trim().length === 0) || val === undefined;
|
22005
|
-
});
|
22006
|
-
var keys = Object.keys(coBenefitsAssessmentDetails);
|
22007
|
-
if (keys.length === values.length) {
|
22008
|
-
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { assessmentDetails: undefined })); });
|
22009
|
-
}
|
22010
|
-
else {
|
22011
|
-
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { assessmentDetails: coBenefitsAssessmentDetails })); });
|
22012
|
-
}
|
22013
|
-
setIsAssessmentFormValid(isFormValid);
|
22014
|
-
}
|
21985
|
+
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { assessmentDetails: coBenefitsAssessmentDetails })); });
|
21986
|
+
setIsAssessmentFormValid(isFormValid);
|
22015
21987
|
};
|
22016
21988
|
var onSafeguardFormSubmit = function (safeguardDetails) {
|
22017
21989
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { safeguardDetails: safeguardDetails })); });
|
@@ -23504,7 +23476,7 @@ var CreditTransferComponent = function (props) {
|
|
23504
23476
|
style: "color-primary",
|
23505
23477
|
click: function () {
|
23506
23478
|
showModalOnAction(record, {
|
23507
|
-
title: t("creditTransfer:
|
23479
|
+
title: t("creditTransfer:acceptTitle"),
|
23508
23480
|
icon: React.createElement(Icon__namespace.ClipboardCheck, null),
|
23509
23481
|
actionBtnText: t("creditTransfer:proceed"),
|
23510
23482
|
okAction: function (requestId, comment) {
|
@@ -28855,7 +28827,7 @@ var ProgrammeRetireForm = function (props) {
|
|
28855
28827
|
// programme.companyId.map((n) => Number(n));
|
28856
28828
|
// d.companyCredit = d.companyCredit.map((n: any) => (n === undefined ? 0 : n));
|
28857
28829
|
d.toCompanyMeta = {
|
28858
|
-
name: d.company,
|
28830
|
+
name: (d.company !== "" && d.company !== null && d.company !== undefined) ? d.company : undefined,
|
28859
28831
|
country: d.country,
|
28860
28832
|
};
|
28861
28833
|
}
|