@undp/carbon-library 1.0.292-CARBON-368.1 → 1.0.292-CARBON-369.0

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 CHANGED
@@ -6693,7 +6693,7 @@ var AddNewCompanyComponent = function (props) {
6693
6693
  String(value).trim() === undefined ||
6694
6694
  value === null ||
6695
6695
  value === undefined) {
6696
- throw new Error("".concat(t("addCompany:nationalSopValue"), " ").concat(t("isRequired")));
6696
+ throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6697
6697
  }
6698
6698
  return [2 /*return*/];
6699
6699
  });
@@ -7868,15 +7868,6 @@ var ProgrammeManagementComponent = function (props) {
7868
7868
  setMinistryLevelFilter(false);
7869
7869
  }
7870
7870
  }
7871
- else if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.CERTIFIER) {
7872
- setDataFilter(v.target.checked
7873
- ? {
7874
- key: "certifierId",
7875
- operation: "ANY",
7876
- value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId,
7877
- }
7878
- : undefined);
7879
- }
7880
7871
  else {
7881
7872
  setDataFilter(v.target.checked
7882
7873
  ? {
@@ -23797,7 +23788,7 @@ var CreditTransferComponent = function (props) {
23797
23788
  else {
23798
23789
  setMinistryLevelFilter(false);
23799
23790
  }
23800
- } }, t("view:ministryLevel")))),
23791
+ } }, t("ndcAction:ministryLevel")))),
23801
23792
  React.createElement("div", { className: "search-bar" },
23802
23793
  React.createElement(Search, { onPressEnter: onSearch, placeholder: "Search", allowClear: true, onChange: function (e) {
23803
23794
  return e.target.value === ""
@@ -28524,9 +28515,7 @@ var InvestmentBody = function (props) {
28524
28515
  React.createElement("div", { className: "invester" },
28525
28516
  React.createElement("div", { className: "name-and-progress" },
28526
28517
  React.createElement("div", { className: "name" }, investmentData === null || investmentData === void 0 ? void 0 : investmentData.invester),
28527
- React.createElement("div", { className: "progress" },
28528
- (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.APPROVED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28529
- (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
28518
+ React.createElement("div", { className: "progress" }, (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.APPROVED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })))),
28530
28519
  React.createElement("div", { className: "time" }, moment(parseInt(investmentData === null || investmentData === void 0 ? void 0 : investmentData.createdAt)).format("DD MMMM YYYY @ HH:mm"))),
28531
28520
  React.createElement("div", { className: "amount" },
28532
28521
  "$",
@@ -28996,26 +28985,8 @@ var ProgrammeRetireForm = function (props) {
28996
28985
  var ProgrammeRevokeForm = function (props) {
28997
28986
  var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, showCertifiers = props.showCertifiers, translator = props.translator;
28998
28987
  var t = translator.t;
28999
- var form = antd.Form.useForm()[0];
29000
28988
  var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
29001
28989
  var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
29002
- var _c = React.useState(false), remarks = _c[0], setRemarks = _c[1];
29003
- var onRemarkValues = function () { return __awaiter(void 0, void 0, void 0, function () {
29004
- var comment;
29005
- return __generator(this, function (_a) {
29006
- comment = form.getFieldValue("comment");
29007
- if (comment === undefined || comment === "") {
29008
- setRemarks(false);
29009
- }
29010
- else {
29011
- setRemarks(true);
29012
- }
29013
- return [2 /*return*/];
29014
- });
29015
- }); };
29016
- React.useEffect(function () {
29017
- onRemarkValues();
29018
- });
29019
28990
  return (React.createElement("div", { className: "transfer-form" },
29020
28991
  React.createElement(antd.Row, null,
29021
28992
  React.createElement(antd.Col, { span: 24, className: "sub-text" }, subText)),
@@ -29023,7 +28994,7 @@ var ProgrammeRevokeForm = function (props) {
29023
28994
  certifierId: programme.certifierId && programme.certifierId.length === 1
29024
28995
  ? Number(programme.certifierId[0])
29025
28996
  : undefined,
29026
- }, onChange: function () { return setPopupError(undefined); }, onValuesChange: onRemarkValues, form: form, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
28997
+ }, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
29027
28998
  var res;
29028
28999
  return __generator(this, function (_a) {
29029
29000
  switch (_a.label) {
@@ -29062,7 +29033,7 @@ var ProgrammeRevokeForm = function (props) {
29062
29033
  popupError ? (React.createElement(antd.Alert, { className: "error", message: popupError, type: "error", showIcon: true })) : (""),
29063
29034
  React.createElement(antd.Form.Item, { className: "footer" },
29064
29035
  React.createElement(antd.Button, { htmlType: "button", onClick: onCancel }, t("view:cancel")),
29065
- React.createElement(antd.Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading, disabled: !remarks }, actionBtnText)))));
29036
+ React.createElement(antd.Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading }, actionBtnText)))));
29066
29037
  };
29067
29038
 
29068
29039
  var ProgrammeTransferForm = function (props) {