@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/esm/index.js CHANGED
@@ -6672,7 +6672,7 @@ var AddNewCompanyComponent = function (props) {
6672
6672
  String(value).trim() === undefined ||
6673
6673
  value === null ||
6674
6674
  value === undefined) {
6675
- throw new Error("".concat(t("addCompany:nationalSopValue"), " ").concat(t("isRequired")));
6675
+ throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6676
6676
  }
6677
6677
  return [2 /*return*/];
6678
6678
  });
@@ -7847,15 +7847,6 @@ var ProgrammeManagementComponent = function (props) {
7847
7847
  setMinistryLevelFilter(false);
7848
7848
  }
7849
7849
  }
7850
- else if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.CERTIFIER) {
7851
- setDataFilter(v.target.checked
7852
- ? {
7853
- key: "certifierId",
7854
- operation: "ANY",
7855
- value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId,
7856
- }
7857
- : undefined);
7858
- }
7859
7850
  else {
7860
7851
  setDataFilter(v.target.checked
7861
7852
  ? {
@@ -23776,7 +23767,7 @@ var CreditTransferComponent = function (props) {
23776
23767
  else {
23777
23768
  setMinistryLevelFilter(false);
23778
23769
  }
23779
- } }, t("view:ministryLevel")))),
23770
+ } }, t("ndcAction:ministryLevel")))),
23780
23771
  React.createElement("div", { className: "search-bar" },
23781
23772
  React.createElement(Search, { onPressEnter: onSearch, placeholder: "Search", allowClear: true, onChange: function (e) {
23782
23773
  return e.target.value === ""
@@ -28503,9 +28494,7 @@ var InvestmentBody = function (props) {
28503
28494
  React.createElement("div", { className: "invester" },
28504
28495
  React.createElement("div", { className: "name-and-progress" },
28505
28496
  React.createElement("div", { className: "name" }, investmentData === null || investmentData === void 0 ? void 0 : investmentData.invester),
28506
- React.createElement("div", { className: "progress" },
28507
- (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.APPROVED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28508
- (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
28497
+ 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" } })))),
28509
28498
  React.createElement("div", { className: "time" }, moment(parseInt(investmentData === null || investmentData === void 0 ? void 0 : investmentData.createdAt)).format("DD MMMM YYYY @ HH:mm"))),
28510
28499
  React.createElement("div", { className: "amount" },
28511
28500
  "$",
@@ -28975,26 +28964,8 @@ var ProgrammeRetireForm = function (props) {
28975
28964
  var ProgrammeRevokeForm = function (props) {
28976
28965
  var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, showCertifiers = props.showCertifiers, translator = props.translator;
28977
28966
  var t = translator.t;
28978
- var form = Form.useForm()[0];
28979
28967
  var _a = useState(undefined), popupError = _a[0], setPopupError = _a[1];
28980
28968
  var _b = useState(false), loading = _b[0], setLoading = _b[1];
28981
- var _c = useState(false), remarks = _c[0], setRemarks = _c[1];
28982
- var onRemarkValues = function () { return __awaiter(void 0, void 0, void 0, function () {
28983
- var comment;
28984
- return __generator(this, function (_a) {
28985
- comment = form.getFieldValue("comment");
28986
- if (comment === undefined || comment === "") {
28987
- setRemarks(false);
28988
- }
28989
- else {
28990
- setRemarks(true);
28991
- }
28992
- return [2 /*return*/];
28993
- });
28994
- }); };
28995
- useEffect(function () {
28996
- onRemarkValues();
28997
- });
28998
28969
  return (React.createElement("div", { className: "transfer-form" },
28999
28970
  React.createElement(Row, null,
29000
28971
  React.createElement(Col, { span: 24, className: "sub-text" }, subText)),
@@ -29002,7 +28973,7 @@ var ProgrammeRevokeForm = function (props) {
29002
28973
  certifierId: programme.certifierId && programme.certifierId.length === 1
29003
28974
  ? Number(programme.certifierId[0])
29004
28975
  : undefined,
29005
- }, onChange: function () { return setPopupError(undefined); }, onValuesChange: onRemarkValues, form: form, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
28976
+ }, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
29006
28977
  var res;
29007
28978
  return __generator(this, function (_a) {
29008
28979
  switch (_a.label) {
@@ -29041,7 +29012,7 @@ var ProgrammeRevokeForm = function (props) {
29041
29012
  popupError ? (React.createElement(Alert, { className: "error", message: popupError, type: "error", showIcon: true })) : (""),
29042
29013
  React.createElement(Form.Item, { className: "footer" },
29043
29014
  React.createElement(Button, { htmlType: "button", onClick: onCancel }, t("view:cancel")),
29044
- React.createElement(Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading, disabled: !remarks }, actionBtnText)))));
29015
+ React.createElement(Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading }, actionBtnText)))));
29045
29016
  };
29046
29017
 
29047
29018
  var ProgrammeTransferForm = function (props) {