@mseva/upyog-ui-module-ads 1.1.84 → 1.1.86-dev.1
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -16798,6 +16798,7 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
|
|
|
16798
16798
|
const formats = (downloadLink === null || downloadLink === void 0 ? void 0 : (_downloadLink$split = downloadLink.split(",")) === null || _downloadLink$split === void 0 ? void 0 : _downloadLink$split.filter(Boolean)) || [];
|
|
16799
16799
|
return (formats === null || formats === void 0 ? void 0 : formats.find(link => !(link !== null && link !== void 0 && link.includes("large")) && !(link !== null && link !== void 0 && link.includes("medium")) && !(link !== null && link !== void 0 && link.includes("small")))) || (formats === null || formats === void 0 ? void 0 : formats[0]) || "";
|
|
16800
16800
|
};
|
|
16801
|
+
const pattern = /\[#\?.*?\*\*\]/;
|
|
16801
16802
|
const timelineRows = timeline.map((item, index) => {
|
|
16802
16803
|
var _item$auditDetails, _item$auditDetails2, _item$assigner, _item$assigner2, _item$assigner3, _item$wfComment;
|
|
16803
16804
|
const createdDate = (item === null || item === void 0 ? void 0 : (_item$auditDetails = item.auditDetails) === null || _item$auditDetails === void 0 ? void 0 : _item$auditDetails.created) || "N/A";
|
|
@@ -16807,7 +16808,8 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
|
|
|
16807
16808
|
const mobileNumber = (item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.mobileNumber) || "N/A";
|
|
16808
16809
|
const action = (item === null || item === void 0 ? void 0 : item.performedAction) || "N/A";
|
|
16809
16810
|
const status = (item === null || item === void 0 ? void 0 : item.status) || (item === null || item === void 0 ? void 0 : item.state) || "N/A";
|
|
16810
|
-
const
|
|
16811
|
+
const rawComment = (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment[0]) || "-";
|
|
16812
|
+
const comment = typeof rawComment === "string" ? rawComment.split(pattern)[0] : rawComment;
|
|
16811
16813
|
const documents = (item === null || item === void 0 ? void 0 : item.wfDocuments) || [];
|
|
16812
16814
|
const sla = (item === null || item === void 0 ? void 0 : item.sla) || "N/A";
|
|
16813
16815
|
const assignedTo = Array.isArray(item === null || item === void 0 ? void 0 : item.assignes) ? item.assignes.map(a => a === null || a === void 0 ? void 0 : a.name).filter(Boolean).join(", ") : "";
|