@undp/carbon-library 1.0.302-CARBON-368.0 → 1.0.302-CARBON-369.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +5 -34
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +5 -34
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -6678,7 +6678,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6678
6678
|
String(value).trim() === undefined ||
|
6679
6679
|
value === null ||
|
6680
6680
|
value === undefined) {
|
6681
|
-
throw new Error("".concat(t("addCompany:nationalSopValue"), " ").concat(t("isRequired")));
|
6681
|
+
throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
|
6682
6682
|
}
|
6683
6683
|
return [2 /*return*/];
|
6684
6684
|
});
|
@@ -7855,15 +7855,6 @@ var ProgrammeManagementComponent = function (props) {
|
|
7855
7855
|
setMinistryLevelFilter(false);
|
7856
7856
|
}
|
7857
7857
|
}
|
7858
|
-
else if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.CERTIFIER) {
|
7859
|
-
setDataFilter(v.target.checked
|
7860
|
-
? {
|
7861
|
-
key: "certifierId",
|
7862
|
-
operation: "ANY",
|
7863
|
-
value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId,
|
7864
|
-
}
|
7865
|
-
: undefined);
|
7866
|
-
}
|
7867
7858
|
else {
|
7868
7859
|
setDataFilter(v.target.checked
|
7869
7860
|
? {
|
@@ -24209,7 +24200,7 @@ var CreditTransferComponent = function (props) {
|
|
24209
24200
|
else {
|
24210
24201
|
setMinistryLevelFilter(false);
|
24211
24202
|
}
|
24212
|
-
} }, t("
|
24203
|
+
} }, t("ndcAction:ministryLevel")))),
|
24213
24204
|
React.createElement("div", { className: "search-bar" },
|
24214
24205
|
React.createElement(Search, { onPressEnter: onSearch, placeholder: "Search", allowClear: true, onChange: function (e) {
|
24215
24206
|
return e.target.value === ""
|
@@ -28754,9 +28745,7 @@ var InvestmentBody = function (props) {
|
|
28754
28745
|
React.createElement("div", { className: "invester" },
|
28755
28746
|
React.createElement("div", { className: "name-and-progress" },
|
28756
28747
|
React.createElement("div", { className: "name" }, investmentData === null || investmentData === void 0 ? void 0 : investmentData.invester),
|
28757
|
-
React.createElement("div", { className: "progress" },
|
28758
|
-
(investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.APPROVED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28759
|
-
(investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
28748
|
+
React.createElement("div", { className: "progress" }, (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.APPROVED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })))),
|
28760
28749
|
React.createElement("div", { className: "time" }, moment(parseInt(investmentData === null || investmentData === void 0 ? void 0 : investmentData.createdAt)).format("DD MMMM YYYY @ HH:mm"))),
|
28761
28750
|
React.createElement("div", { className: "amount" },
|
28762
28751
|
"$",
|
@@ -29226,26 +29215,8 @@ var ProgrammeRetireForm = function (props) {
|
|
29226
29215
|
var ProgrammeRevokeForm = function (props) {
|
29227
29216
|
var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, showCertifiers = props.showCertifiers, translator = props.translator;
|
29228
29217
|
var t = translator.t;
|
29229
|
-
var form = Form.useForm()[0];
|
29230
29218
|
var _a = useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
29231
29219
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
29232
|
-
var _c = useState(false), remarks = _c[0], setRemarks = _c[1];
|
29233
|
-
var onRemarkValues = function () { return __awaiter(void 0, void 0, void 0, function () {
|
29234
|
-
var comment;
|
29235
|
-
return __generator(this, function (_a) {
|
29236
|
-
comment = form.getFieldValue("comment");
|
29237
|
-
if (comment === undefined || comment === "") {
|
29238
|
-
setRemarks(false);
|
29239
|
-
}
|
29240
|
-
else {
|
29241
|
-
setRemarks(true);
|
29242
|
-
}
|
29243
|
-
return [2 /*return*/];
|
29244
|
-
});
|
29245
|
-
}); };
|
29246
|
-
useEffect(function () {
|
29247
|
-
onRemarkValues();
|
29248
|
-
});
|
29249
29220
|
return (React.createElement("div", { className: "transfer-form" },
|
29250
29221
|
React.createElement(Row, null,
|
29251
29222
|
React.createElement(Col, { span: 24, className: "sub-text" }, subText)),
|
@@ -29253,7 +29224,7 @@ var ProgrammeRevokeForm = function (props) {
|
|
29253
29224
|
certifierId: programme.certifierId && programme.certifierId.length === 1
|
29254
29225
|
? Number(programme.certifierId[0])
|
29255
29226
|
: undefined,
|
29256
|
-
}, onChange: function () { return setPopupError(undefined); },
|
29227
|
+
}, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
|
29257
29228
|
var res;
|
29258
29229
|
return __generator(this, function (_a) {
|
29259
29230
|
switch (_a.label) {
|
@@ -29292,7 +29263,7 @@ var ProgrammeRevokeForm = function (props) {
|
|
29292
29263
|
popupError ? (React.createElement(Alert, { className: "error", message: popupError, type: "error", showIcon: true })) : (""),
|
29293
29264
|
React.createElement(Form.Item, { className: "footer" },
|
29294
29265
|
React.createElement(Button, { htmlType: "button", onClick: onCancel }, t("view:cancel")),
|
29295
|
-
React.createElement(Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading
|
29266
|
+
React.createElement(Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading }, actionBtnText)))));
|
29296
29267
|
};
|
29297
29268
|
|
29298
29269
|
var ProgrammeTransferForm = function (props) {
|