@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/esm/index.js
CHANGED
@@ -6692,7 +6692,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6692
6692
|
React.createElement(Radio.Button, { className: companyRoleClassName, value: companyRole },
|
6693
6693
|
companyRole === CompanyRole.CERTIFIER ? (React.createElement(SafetyOutlined, { className: "role-icons" })) : companyRole ===
|
6694
6694
|
CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(ExperimentOutlined, { className: "role-icons" })) : companyRole === CompanyRole.MINISTRY ? (React.createElement(AuditOutlined, { className: "role-icons" })) : (React.createElement(BankOutlined, { className: "role-icons" })),
|
6695
|
-
|
6695
|
+
companyRole))) : (React.createElement(React.Fragment, null,
|
6696
6696
|
React.createElement("div", { className: "certifier-radio-container", style: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
6697
6697
|
CompanyRole.MINISTRY
|
6698
6698
|
? {
|
@@ -6958,7 +6958,7 @@ styleInject(css_248z$u);
|
|
6958
6958
|
var CompanyRoleIcon = function (props) {
|
6959
6959
|
var role = props.role;
|
6960
6960
|
return (React.createElement("div", { style: { display: 'flex', alignItems: 'center' } },
|
6961
|
-
role === 'Government' ? (React.createElement(RoleIcon, { icon: React.createElement(BankOutlined, null), bg: GovBGColor, color: GovColor })) : role === 'Certifier' ? (React.createElement(RoleIcon, { icon: React.createElement(SafetyOutlined, null), bg: CertBGColor, color: CertColor })) :
|
6961
|
+
role === 'Government' ? (React.createElement(RoleIcon, { icon: React.createElement(BankOutlined, null), bg: GovBGColor, color: GovColor })) : role === 'Certifier' ? (React.createElement(RoleIcon, { icon: React.createElement(SafetyOutlined, null), bg: CertBGColor, color: CertColor })) : (React.createElement(RoleIcon, { icon: React.createElement(ExperimentOutlined, null), bg: DevBGColor, color: DevColor })),
|
6962
6962
|
role === 'ProgrammeDeveloper' ? React.createElement("div", null, 'Developer') : React.createElement("div", null, role)));
|
6963
6963
|
};
|
6964
6964
|
|
@@ -17008,7 +17008,7 @@ var InvestmentManagementComponent = function (props) {
|
|
17008
17008
|
style: "color-primary",
|
17009
17009
|
click: function () {
|
17010
17010
|
showModalOnAction(record, {
|
17011
|
-
title: t("creditTransfer:
|
17011
|
+
title: t("creditTransfer:acceptTitle"),
|
17012
17012
|
icon: React.createElement(Icon.ClipboardCheck, null),
|
17013
17013
|
actionBtnText: t("creditTransfer:proceed"),
|
17014
17014
|
okAction: function (requestId, comment) {
|
@@ -19634,26 +19634,20 @@ var Assessment = function (props) {
|
|
19634
19634
|
if (info.changedFields && info.changedFields.length > 0) {
|
19635
19635
|
info.changedFields.map(function (changedField) { return __awaiter(void 0, void 0, void 0, function () {
|
19636
19636
|
var base64Value, values_1;
|
19637
|
-
|
19638
|
-
|
19639
|
-
switch (_b.label) {
|
19637
|
+
return __generator(this, function (_a) {
|
19638
|
+
switch (_a.label) {
|
19640
19639
|
case 0:
|
19641
19640
|
if (!(changedField.name[0] === "document")) return [3 /*break*/, 2];
|
19642
19641
|
return [4 /*yield*/, getBase64(changedField.value[0].originFileObj)];
|
19643
19642
|
case 1:
|
19644
|
-
base64Value =
|
19643
|
+
base64Value = _a.sent();
|
19645
19644
|
console.log("FEAsibility document : ", base64Value);
|
19646
19645
|
values_1 = base64Value;
|
19647
19646
|
setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), { document: values_1 })); });
|
19648
19647
|
return [3 /*break*/, 3];
|
19649
19648
|
case 2:
|
19650
|
-
|
19651
|
-
|
19652
|
-
}
|
19653
|
-
else {
|
19654
|
-
changedValues[changedField.name[0]] = undefined;
|
19655
|
-
}
|
19656
|
-
_b.label = 3;
|
19649
|
+
changedValues[changedField.name[0]] = changedField.value;
|
19650
|
+
_a.label = 3;
|
19657
19651
|
case 3: return [2 /*return*/];
|
19658
19652
|
}
|
19659
19653
|
});
|
@@ -21958,18 +21952,7 @@ var CoBenifitsComponent = function (props) {
|
|
21958
21952
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { sdgGoals: sdgGoalsDetails })); });
|
21959
21953
|
};
|
21960
21954
|
var onGenderParityFormSubmit = function (genderParityDetails) {
|
21961
|
-
|
21962
|
-
var values = Object.values(genderParityDetails).filter(function (val) {
|
21963
|
-
return (val !== undefined && val.trim().length === 0) || val === undefined;
|
21964
|
-
});
|
21965
|
-
var keys = Object.keys(genderParityDetails);
|
21966
|
-
if (keys.length === values.length) {
|
21967
|
-
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { genderPariy: undefined })); });
|
21968
|
-
}
|
21969
|
-
else {
|
21970
|
-
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { genderPariy: genderParityDetails })); });
|
21971
|
-
}
|
21972
|
-
}
|
21955
|
+
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { genderPariy: genderParityDetails })); });
|
21973
21956
|
};
|
21974
21957
|
var onEnvironmentalFormSubmit = function (environmentalsDetails) {
|
21975
21958
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { environmental: environmentalsDetails })); });
|
@@ -21978,19 +21961,8 @@ var CoBenifitsComponent = function (props) {
|
|
21978
21961
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { economic: economicDetails })); });
|
21979
21962
|
};
|
21980
21963
|
var onAssessmentFormSubmit = function (coBenefitsAssessmentDetails, isFormValid) {
|
21981
|
-
|
21982
|
-
|
21983
|
-
return (val !== undefined && val.trim().length === 0) || val === undefined;
|
21984
|
-
});
|
21985
|
-
var keys = Object.keys(coBenefitsAssessmentDetails);
|
21986
|
-
if (keys.length === values.length) {
|
21987
|
-
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { assessmentDetails: undefined })); });
|
21988
|
-
}
|
21989
|
-
else {
|
21990
|
-
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { assessmentDetails: coBenefitsAssessmentDetails })); });
|
21991
|
-
}
|
21992
|
-
setIsAssessmentFormValid(isFormValid);
|
21993
|
-
}
|
21964
|
+
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { assessmentDetails: coBenefitsAssessmentDetails })); });
|
21965
|
+
setIsAssessmentFormValid(isFormValid);
|
21994
21966
|
};
|
21995
21967
|
var onSafeguardFormSubmit = function (safeguardDetails) {
|
21996
21968
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { safeguardDetails: safeguardDetails })); });
|
@@ -23483,7 +23455,7 @@ var CreditTransferComponent = function (props) {
|
|
23483
23455
|
style: "color-primary",
|
23484
23456
|
click: function () {
|
23485
23457
|
showModalOnAction(record, {
|
23486
|
-
title: t("creditTransfer:
|
23458
|
+
title: t("creditTransfer:acceptTitle"),
|
23487
23459
|
icon: React.createElement(Icon.ClipboardCheck, null),
|
23488
23460
|
actionBtnText: t("creditTransfer:proceed"),
|
23489
23461
|
okAction: function (requestId, comment) {
|
@@ -28834,7 +28806,7 @@ var ProgrammeRetireForm = function (props) {
|
|
28834
28806
|
// programme.companyId.map((n) => Number(n));
|
28835
28807
|
// d.companyCredit = d.companyCredit.map((n: any) => (n === undefined ? 0 : n));
|
28836
28808
|
d.toCompanyMeta = {
|
28837
|
-
name: d.company,
|
28809
|
+
name: (d.company !== "" && d.company !== null && d.company !== undefined) ? d.company : undefined,
|
28838
28810
|
country: d.country,
|
28839
28811
|
};
|
28840
28812
|
}
|