@undp/carbon-library 1.0.293-CARBON-Sprint-54.2 → 1.0.293-CARBON-434.1
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/dist/cjs/index.js +40 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +40 -12
- 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,20 +19634,26 @@ 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
|
-
|
19637
|
+
var _a;
|
19638
|
+
return __generator(this, function (_b) {
|
19639
|
+
switch (_b.label) {
|
19639
19640
|
case 0:
|
19640
19641
|
if (!(changedField.name[0] === "document")) return [3 /*break*/, 2];
|
19641
19642
|
return [4 /*yield*/, getBase64(changedField.value[0].originFileObj)];
|
19642
19643
|
case 1:
|
19643
|
-
base64Value =
|
19644
|
+
base64Value = _b.sent();
|
19644
19645
|
console.log("FEAsibility document : ", base64Value);
|
19645
19646
|
values_1 = base64Value;
|
19646
19647
|
setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), { document: values_1 })); });
|
19647
19648
|
return [3 /*break*/, 3];
|
19648
19649
|
case 2:
|
19649
|
-
|
19650
|
-
|
19650
|
+
if (changedField.value && ((_a = changedField.value) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
19651
|
+
changedValues[changedField.name[0]] = changedField.value;
|
19652
|
+
}
|
19653
|
+
else {
|
19654
|
+
changedValues[changedField.name[0]] = undefined;
|
19655
|
+
}
|
19656
|
+
_b.label = 3;
|
19651
19657
|
case 3: return [2 /*return*/];
|
19652
19658
|
}
|
19653
19659
|
});
|
@@ -21952,7 +21958,18 @@ var CoBenifitsComponent = function (props) {
|
|
21952
21958
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { sdgGoals: sdgGoalsDetails })); });
|
21953
21959
|
};
|
21954
21960
|
var onGenderParityFormSubmit = function (genderParityDetails) {
|
21955
|
-
|
21961
|
+
if (genderParityDetails) {
|
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
|
+
}
|
21956
21973
|
};
|
21957
21974
|
var onEnvironmentalFormSubmit = function (environmentalsDetails) {
|
21958
21975
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { environmental: environmentalsDetails })); });
|
@@ -21961,8 +21978,19 @@ var CoBenifitsComponent = function (props) {
|
|
21961
21978
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { economic: economicDetails })); });
|
21962
21979
|
};
|
21963
21980
|
var onAssessmentFormSubmit = function (coBenefitsAssessmentDetails, isFormValid) {
|
21964
|
-
|
21965
|
-
|
21981
|
+
if (coBenefitsAssessmentDetails) {
|
21982
|
+
var values = Object.values(coBenefitsAssessmentDetails).filter(function (val) {
|
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
|
+
}
|
21966
21994
|
};
|
21967
21995
|
var onSafeguardFormSubmit = function (safeguardDetails) {
|
21968
21996
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { safeguardDetails: safeguardDetails })); });
|
@@ -23455,7 +23483,7 @@ var CreditTransferComponent = function (props) {
|
|
23455
23483
|
style: "color-primary",
|
23456
23484
|
click: function () {
|
23457
23485
|
showModalOnAction(record, {
|
23458
|
-
title: t("creditTransfer:
|
23486
|
+
title: t("creditTransfer:acceptTitle"),
|
23459
23487
|
icon: React.createElement(Icon.ClipboardCheck, null),
|
23460
23488
|
actionBtnText: t("creditTransfer:proceed"),
|
23461
23489
|
okAction: function (requestId, comment) {
|