@undp/carbon-library 1.0.134-CARBON-326.0 → 1.0.134-CARBON-326.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +1 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -7
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -18698,18 +18698,12 @@ var NdcActionViewComponent = function (props) {
|
|
18698
18698
|
});
|
18699
18699
|
}); };
|
18700
18700
|
var getProjectReportActions = function (reportData) {
|
18701
|
-
var versionfull = (reportData === null || reportData === void 0 ? void 0 : reportData.url).split("_")[(reportData === null || reportData === void 0 ? void 0 : reportData.url).split("_").length - 1];
|
18702
|
-
var version = versionfull ? versionfull.split(".")[0] : "1";
|
18703
|
-
var Docversion = version.startsWith("V") ? version : "V1";
|
18704
18701
|
return (React.createElement(Row, null,
|
18705
18702
|
React.createElement("div", { className: "icon" },
|
18706
18703
|
(reportData === null || reportData === void 0 ? void 0 : reportData.status) === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
18707
18704
|
(reportData === null || reportData === void 0 ? void 0 : reportData.status) === DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
18708
18705
|
React.createElement("div", { className: "link mg-left-1" }, (reportData === null || reportData === void 0 ? void 0 : reportData.url) && linkDocVisible(reportData === null || reportData === void 0 ? void 0 : reportData.status) && (React.createElement("a", { href: reportData === null || reportData === void 0 ? void 0 : reportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
|
18709
|
-
React.createElement(LinkOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))
|
18710
|
-
(reportData === null || reportData === void 0 ? void 0 : reportData.url) !== "" && (React.createElement("div", { className: "time" },
|
18711
|
-
moment(parseInt(reportData === null || reportData === void 0 ? void 0 : reportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
18712
|
-
" ~ " + Docversion))));
|
18706
|
+
React.createElement(LinkOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))));
|
18713
18707
|
};
|
18714
18708
|
var getProjectReports = function () { return __awaiter(void 0, void 0, void 0, function () {
|
18715
18709
|
var reportDetails, response, exception_1;
|