@undp/carbon-library 1.0.124-CARBON-315.2 → 1.0.124-CARBON-315.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -24143,11 +24143,13 @@ var NdcActionBody = function (props) {
24143
24143
  var _a = useConnection(); _a.get; _a.put; var post = _a.post;
24144
24144
  var _b = useState(false), loading = _b[0], setLoading = _b[1];
24145
24145
  var _c = useState(), monitoringReportData = _c[0], setMonitoringReportData = _c[1];
24146
- var _d = useState(), verificationReportData = _d[0], setVerificationReportData = _d[1];
24147
- var _e = useState(), ndcActionId = _e[0], setNdcActionId = _e[1];
24148
- var _f = useState(false), openRejectDocConfirmationModal = _f[0], setOpenRejectDocConfirmationModal = _f[1];
24149
- var _g = useState({}), actionInfo = _g[0], setActionInfo = _g[1];
24150
- var _h = useState({}), rejectDocData = _h[0], setRejectDocData = _h[1];
24146
+ var _d = useState(""), monitoringReportversion = _d[0], setMonitoringReportversion = _d[1];
24147
+ var _e = useState(), verificationReportData = _e[0], setVerificationReportData = _e[1];
24148
+ var _f = useState(""), verificationReportVersion = _f[0], setVerificationReportversion = _f[1];
24149
+ var _g = useState(), ndcActionId = _g[0], setNdcActionId = _g[1];
24150
+ var _h = useState(false), openRejectDocConfirmationModal = _h[0], setOpenRejectDocConfirmationModal = _h[1];
24151
+ var _j = useState({}), actionInfo = _j[0], setActionInfo = _j[1];
24152
+ var _k = useState({}), rejectDocData = _k[0], setRejectDocData = _k[1];
24151
24153
  var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
24152
24154
  ? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
24153
24155
  : 5000000;
@@ -24288,9 +24290,15 @@ var NdcActionBody = function (props) {
24288
24290
  setNdcActionId(item === null || item === void 0 ? void 0 : item.id);
24289
24291
  if (item === null || item === void 0 ? void 0 : item.monitoringReport) {
24290
24292
  setMonitoringReportData(item === null || item === void 0 ? void 0 : item.monitoringReport);
24293
+ var versionfull = item === null || item === void 0 ? void 0 : item.monitoringReport.url.split("_")[(item === null || item === void 0 ? void 0 : item.monitoringReport.url.split("_").length) - 1];
24294
+ var version = versionfull ? versionfull.split(".")[0] : "V1";
24295
+ setMonitoringReportversion(version.startsWith("V") ? version : "V1");
24291
24296
  }
24292
24297
  if (item === null || item === void 0 ? void 0 : item.verificationReport) {
24293
24298
  setVerificationReportData(item === null || item === void 0 ? void 0 : item.verificationReport);
24299
+ var versionfull = item === null || item === void 0 ? void 0 : item.verificationReport.url.split("_")[(item === null || item === void 0 ? void 0 : item.verificationReport.url.split("_").length) - 1];
24300
+ var version = versionfull ? versionfull.split(".")[0] : "V1";
24301
+ setVerificationReportversion(version.startsWith("V") ? version : "V1");
24294
24302
  }
24295
24303
  });
24296
24304
  }, [data]);
@@ -24310,7 +24318,9 @@ var NdcActionBody = function (props) {
24310
24318
  React.createElement("div", { className: "report-type" },
24311
24319
  React.createElement("div", { className: "name-time-container" },
24312
24320
  React.createElement("div", { className: canUploadMonitorReport ? "name" : "empty" }, t("programme:monitoringReport")),
24313
- (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" }, moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm")))),
24321
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
24322
+ moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
24323
+ " ~ " + monitoringReportversion))),
24314
24324
  React.createElement("div", { className: "icon" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) ? (monitoringReportPending ? ((companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
24315
24325
  React.createElement(LikeOutlined, { onClick: function () {
24316
24326
  return docAction(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id, DocumentStatus.ACCEPTED, monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.actionId, monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.type);
@@ -24381,7 +24391,9 @@ var NdcActionBody = function (props) {
24381
24391
  React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
24382
24392
  ? "name"
24383
24393
  : "empty" }, t("programme:verificationReport")),
24384
- (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" }, moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm")))),
24394
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
24395
+ moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
24396
+ " ~ " + verificationReportVersion))),
24385
24397
  React.createElement("div", { className: "icon" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) ? (verifcationReportPending ? ((verficationCompanyRolePermission ||
24386
24398
  ministryLevelPermission) && (React.createElement(React.Fragment, null,
24387
24399
  React.createElement(LikeOutlined, { onClick: function () {
@@ -24473,15 +24485,18 @@ var ProgrammeDocuments = function (props) {
24473
24485
  var _l = useState(""), designDocStatus = _l[0], setDesignDocStatus = _l[1];
24474
24486
  var _m = useState(""), methodDocStatus = _m[0], setMethodDocStatus = _m[1];
24475
24487
  var _o = useState(""), designDocId = _o[0], setDesignDocId = _o[1];
24476
- var _p = useState(""), methDocId = _p[0], setMethDocId = _p[1];
24477
- var _q = useState([]), docData = _q[0], setDocData = _q[1];
24478
- var _r = useState(false), openRejectDocConfirmationModal = _r[0], setOpenRejectDocConfirmationModal = _r[1];
24479
- var _s = useState({}), actionInfo = _s[0], setActionInfo = _s[1];
24480
- var _t = useState({}), rejectDocData = _t[0], setRejectDocData = _t[1];
24481
- var _u = useState(""), impactAssessmentUrl = _u[0], setImpactAssessmentUrl = _u[1];
24482
- var _v = useState(""), impactAssessmentDate = _v[0], setImpactAssessmentDate = _v[1];
24483
- var _w = useState(""), impactAssessmentStatus = _w[0], setImpactAssessmentStatus = _w[1];
24484
- var _x = useState(""), impactAssessmentId = _x[0], setImpactAssessmentId = _x[1];
24488
+ var _p = useState(""), designDocversion = _p[0], setDesignDocversion = _p[1];
24489
+ var _q = useState(""), methDocId = _q[0], setMethDocId = _q[1];
24490
+ var _r = useState(""), methDocversion = _r[0], setMethDocversion = _r[1];
24491
+ var _s = useState([]), docData = _s[0], setDocData = _s[1];
24492
+ var _t = useState(false), openRejectDocConfirmationModal = _t[0], setOpenRejectDocConfirmationModal = _t[1];
24493
+ var _u = useState({}), actionInfo = _u[0], setActionInfo = _u[1];
24494
+ var _v = useState({}), rejectDocData = _v[0], setRejectDocData = _v[1];
24495
+ var _w = useState(""), impactAssessmentUrl = _w[0], setImpactAssessmentUrl = _w[1];
24496
+ var _x = useState(""), impactAssessmentDate = _x[0], setImpactAssessmentDate = _x[1];
24497
+ var _y = useState(""), impactAssessmentStatus = _y[0], setImpactAssessmentStatus = _y[1];
24498
+ var _z = useState(""), impactAssessmentId = _z[0], setImpactAssessmentId = _z[1];
24499
+ var _0 = useState(""), impactAssessmentversion = _0[0], setImpactAssessmentversion = _0[1];
24485
24500
  var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
24486
24501
  ? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
24487
24502
  : 5000000;
@@ -24509,12 +24524,18 @@ var ProgrammeDocuments = function (props) {
24509
24524
  setDesignDocDate(item === null || item === void 0 ? void 0 : item.txTime);
24510
24525
  setDesignDocStatus(item === null || item === void 0 ? void 0 : item.status);
24511
24526
  setDesignDocId(item === null || item === void 0 ? void 0 : item.id);
24527
+ var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split('_').length - 1];
24528
+ var version = versionfull ? versionfull.split('.')[0] : "1";
24529
+ setDesignDocversion(version.startsWith("V") ? version : "V1");
24512
24530
  }
24513
24531
  if ((_b = item === null || item === void 0 ? void 0 : item.url) === null || _b === void 0 ? void 0 : _b.includes("METHODOLOGY")) {
24514
24532
  setMethodologyDocUrl(item === null || item === void 0 ? void 0 : item.url);
24515
24533
  setMethodologyDate(item === null || item === void 0 ? void 0 : item.txTime);
24516
24534
  setMethodDocStatus(item === null || item === void 0 ? void 0 : item.status);
24517
24535
  setMethDocId(item === null || item === void 0 ? void 0 : item.id);
24536
+ var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split('_').length - 1];
24537
+ var version = versionfull ? versionfull.split('.')[0] : "1";
24538
+ setMethDocversion(version.startsWith("V") ? version : "V1");
24518
24539
  }
24519
24540
  if ((_c = item === null || item === void 0 ? void 0 : item.url) === null || _c === void 0 ? void 0 : _c.includes("OBJECTION")) {
24520
24541
  setNoObjectionDocUrl(item === null || item === void 0 ? void 0 : item.url);
@@ -24529,6 +24550,9 @@ var ProgrammeDocuments = function (props) {
24529
24550
  setImpactAssessmentDate(item === null || item === void 0 ? void 0 : item.txTime);
24530
24551
  setImpactAssessmentStatus(item === null || item === void 0 ? void 0 : item.status);
24531
24552
  setImpactAssessmentId(item === null || item === void 0 ? void 0 : item.id);
24553
+ var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
24554
+ var version = versionfull ? versionfull.split('.')[0] : "1";
24555
+ setImpactAssessmentversion(version.startsWith("V") ? version : "V1");
24532
24556
  }
24533
24557
  });
24534
24558
  }
@@ -24693,7 +24717,9 @@ var ProgrammeDocuments = function (props) {
24693
24717
  designDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
24694
24718
  designDocStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
24695
24719
  React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
24696
- designDocUrl !== "" && (React.createElement("div", { className: "time" }, moment(parseInt(designDocDate)).format("DD MMMM YYYY @ HH:mm")))),
24720
+ designDocUrl !== "" && (React.createElement("div", { className: "time" },
24721
+ moment(parseInt(designDocDate)).format("DD MMMM YYYY @ HH:mm"),
24722
+ " ~ " + designDocversion))),
24697
24723
  React.createElement(Col, { span: 6, className: "field-value" }, designDocUrl !== "" ? (React.createElement("div", { className: "link" },
24698
24724
  linkDocVisible(designDocStatus) && (React.createElement("a", { href: designDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
24699
24725
  React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
@@ -24729,7 +24755,9 @@ var ProgrammeDocuments = function (props) {
24729
24755
  noObjectionDocUrl !== "" && (React.createElement(Row, { className: "field", key: "Objection Document" },
24730
24756
  React.createElement(Col, { span: 18, className: "field-key" },
24731
24757
  React.createElement("div", { className: "label-uploaded" }, t("programme:objectionLett")),
24732
- React.createElement("div", { className: "time" }, moment(parseInt(noObjectionDate)).format("DD MMMM YYYY @ HH:mm"))),
24758
+ React.createElement("div", { className: "time" },
24759
+ moment(parseInt(noObjectionDate)).format("DD MMMM YYYY @ HH:mm"),
24760
+ " ~ V1")),
24733
24761
  React.createElement(Col, { span: 6, className: "field-value" },
24734
24762
  React.createElement("div", { className: "link" },
24735
24763
  React.createElement("a", { href: noObjectionDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
@@ -24757,7 +24785,9 @@ var ProgrammeDocuments = function (props) {
24757
24785
  methodDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
24758
24786
  methodDocStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
24759
24787
  React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
24760
- methodologyDocUrl !== "" && (React.createElement("div", { className: "time" }, moment(parseInt(methodologyDate)).format("DD MMMM YYYY @ HH:mm")))),
24788
+ methodologyDocUrl !== "" && (React.createElement("div", { className: "time" },
24789
+ moment(parseInt(methodologyDate)).format("DD MMMM YYYY @ HH:mm"),
24790
+ " ~ " + methDocversion))),
24761
24791
  React.createElement(Col, { span: 6, className: "field-value" }, methodologyDocUrl !== "" ? (React.createElement("div", { className: "link" },
24762
24792
  linkDocVisible(methodDocStatus) && (React.createElement("a", { href: methodologyDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
24763
24793
  React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
@@ -24802,7 +24832,9 @@ var ProgrammeDocuments = function (props) {
24802
24832
  authorisationDocUrl !== "" && (React.createElement(Row, { className: "field", key: "Authorisation Document" },
24803
24833
  React.createElement(Col, { span: 18, className: "field-key" },
24804
24834
  React.createElement("div", { className: "label-uploaded" }, t("programme:authLetterLabel")),
24805
- React.createElement("div", { className: "time" }, moment(parseInt(authorisationDocDate)).format("DD MMMM YYYY @ HH:mm"))),
24835
+ React.createElement("div", { className: "time" },
24836
+ moment(parseInt(authorisationDocDate)).format("DD MMMM YYYY @ HH:mm"),
24837
+ " ~ V1")),
24806
24838
  React.createElement(Col, { span: 6, className: "field-value" },
24807
24839
  React.createElement("div", { className: "link" },
24808
24840
  React.createElement("a", { href: authorisationDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
@@ -24829,7 +24861,9 @@ var ProgrammeDocuments = function (props) {
24829
24861
  impactAssessmentStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
24830
24862
  impactAssessmentStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
24831
24863
  React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
24832
- impactAssessmentUrl !== "" && (React.createElement("div", { className: "time" }, moment(parseInt(impactAssessmentDate)).format("DD MMMM YYYY @ HH:mm")))),
24864
+ impactAssessmentUrl !== "" && (React.createElement("div", { className: "time" },
24865
+ moment(parseInt(impactAssessmentDate)).format("DD MMMM YYYY @ HH:mm"),
24866
+ " ~ " + impactAssessmentversion))),
24833
24867
  React.createElement(Col, { span: 6, className: "field-value" }, impactAssessmentUrl !== "" ? (React.createElement("div", { className: "link" },
24834
24868
  linkDocVisible(impactAssessmentStatus) && (React.createElement("a", { href: impactAssessmentUrl, target: "_blank", rel: "noopener noreferrer", download: true },
24835
24869
  React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),