@mseva/digit-ui-module-ptr 1.3.4 → 1.3.6
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 +15 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -7785,9 +7785,9 @@ const PTRCitizenPet = ({
|
|
|
7785
7785
|
petDetails: {
|
|
7786
7786
|
...existing.petDetails,
|
|
7787
7787
|
petName: pick(data.petName, (_existing$petDetails = existing.petDetails) === null || _existing$petDetails === void 0 ? void 0 : _existing$petDetails.petName),
|
|
7788
|
-
petType: pick(((_data$petType2 = data.petType) === null || _data$petType2 === void 0 ? void 0 : _data$petType2.name)
|
|
7789
|
-
breedType: pick(((_data$breedType2 = data.breedType) === null || _data$breedType2 === void 0 ? void 0 : _data$breedType2.name)
|
|
7790
|
-
petGender: pick(((_data$petGender2 = data.petGender) === null || _data$petGender2 === void 0 ? void 0 : _data$petGender2.name)
|
|
7788
|
+
petType: pick(((_data$petType2 = data.petType) === null || _data$petType2 === void 0 ? void 0 : _data$petType2.name) || ((_data$petType3 = data.petType) === null || _data$petType3 === void 0 ? void 0 : _data$petType3.code), (_existing$petDetails2 = existing.petDetails) === null || _existing$petDetails2 === void 0 ? void 0 : _existing$petDetails2.petType),
|
|
7789
|
+
breedType: pick(((_data$breedType2 = data.breedType) === null || _data$breedType2 === void 0 ? void 0 : _data$breedType2.name) || ((_data$breedType3 = data.breedType) === null || _data$breedType3 === void 0 ? void 0 : _data$breedType3.code), (_existing$petDetails3 = existing.petDetails) === null || _existing$petDetails3 === void 0 ? void 0 : _existing$petDetails3.breedType),
|
|
7790
|
+
petGender: pick(((_data$petGender2 = data.petGender) === null || _data$petGender2 === void 0 ? void 0 : _data$petGender2.name) || ((_data$petGender3 = data.petGender) === null || _data$petGender3 === void 0 ? void 0 : _data$petGender3.code), (_existing$petDetails4 = existing.petDetails) === null || _existing$petDetails4 === void 0 ? void 0 : _existing$petDetails4.petGender),
|
|
7791
7791
|
petColor: pick(data.petColor, (_existing$petDetails5 = existing.petDetails) === null || _existing$petDetails5 === void 0 ? void 0 : _existing$petDetails5.petColor),
|
|
7792
7792
|
lastVaccineDate: pick(toEpochMilliseconds(data.lastVaccineDate), (_existing$petDetails6 = existing.petDetails) === null || _existing$petDetails6 === void 0 ? void 0 : _existing$petDetails6.lastVaccineDate),
|
|
7793
7793
|
petAge: pick(data.petAge, (_existing$petDetails7 = existing.petDetails) === null || _existing$petDetails7 === void 0 ? void 0 : _existing$petDetails7.petAge),
|
|
@@ -16216,8 +16216,8 @@ const PTRSelectProofIdentity = ({
|
|
|
16216
16216
|
useEffect(() => {
|
|
16217
16217
|
if (Array.isArray(apiDataCheck) && apiDataCheck.length > 0 && Array.isArray(apiDataCheck[0].documents)) {
|
|
16218
16218
|
const docs = apiDataCheck[0].documents.map(d => {
|
|
16219
|
-
const fileId = (d === null || d === void 0 ? void 0 : d.fileStoreId)
|
|
16220
|
-
const documentType = (d === null || d === void 0 ? void 0 : d.documentType)
|
|
16219
|
+
const fileId = (d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.filestoreId) || (d === null || d === void 0 ? void 0 : d.filestoreId) || (d === null || d === void 0 ? void 0 : d.documentUid) || null;
|
|
16220
|
+
const documentType = (d === null || d === void 0 ? void 0 : d.documentType) || (d === null || d === void 0 ? void 0 : d.type) || (d === null || d === void 0 ? void 0 : d.code) || null;
|
|
16221
16221
|
return {
|
|
16222
16222
|
documentType,
|
|
16223
16223
|
filestoreId: fileId,
|
|
@@ -16799,6 +16799,7 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
|
|
|
16799
16799
|
const formats = (downloadLink === null || downloadLink === void 0 ? void 0 : (_downloadLink$split = downloadLink.split(",")) === null || _downloadLink$split === void 0 ? void 0 : _downloadLink$split.filter(Boolean)) || [];
|
|
16800
16800
|
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]) || "";
|
|
16801
16801
|
};
|
|
16802
|
+
const pattern = /\[#\?.*?\*\*\]/;
|
|
16802
16803
|
const timelineRows = timeline.map((item, index) => {
|
|
16803
16804
|
var _item$auditDetails, _item$auditDetails2, _item$assigner, _item$assigner2, _item$assigner3, _item$wfComment;
|
|
16804
16805
|
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";
|
|
@@ -16808,7 +16809,8 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
|
|
|
16808
16809
|
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";
|
|
16809
16810
|
const action = (item === null || item === void 0 ? void 0 : item.performedAction) || "N/A";
|
|
16810
16811
|
const status = (item === null || item === void 0 ? void 0 : item.status) || (item === null || item === void 0 ? void 0 : item.state) || "N/A";
|
|
16811
|
-
const
|
|
16812
|
+
const rawComment = (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment[0]) || "-";
|
|
16813
|
+
const comment = typeof rawComment === "string" ? rawComment.split(pattern)[0] : rawComment;
|
|
16812
16814
|
const documents = (item === null || item === void 0 ? void 0 : item.wfDocuments) || [];
|
|
16813
16815
|
const sla = (item === null || item === void 0 ? void 0 : item.sla) || "N/A";
|
|
16814
16816
|
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(", ") : "";
|
|
@@ -16920,7 +16922,9 @@ function NewApplicationTimeline({
|
|
|
16920
16922
|
workflowDetails,
|
|
16921
16923
|
t,
|
|
16922
16924
|
tenantId = Digit.ULBService.getCurrentTenantId(),
|
|
16923
|
-
timeObj
|
|
16925
|
+
timeObj,
|
|
16926
|
+
empUserName = null,
|
|
16927
|
+
handleSetEmpDesignation = () => {}
|
|
16924
16928
|
}) {
|
|
16925
16929
|
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _employeeData$data, _employeeData$data$Em;
|
|
16926
16930
|
const {
|
|
@@ -16995,6 +16999,9 @@ function NewApplicationTimeline({
|
|
|
16995
16999
|
const translationKey = `COMMON_MASTERS_DESIGNATION_${assignment === null || assignment === void 0 ? void 0 : assignment.designation}`;
|
|
16996
17000
|
deptMap[emp === null || emp === void 0 ? void 0 : emp.code] = translationKey;
|
|
16997
17001
|
});
|
|
17002
|
+
if (employeeData && empUserName) {
|
|
17003
|
+
handleSetEmpDesignation(t(deptMap[empUserName]));
|
|
17004
|
+
}
|
|
16998
17005
|
if (isLoading) return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
16999
17006
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
17000
17007
|
className: "custom-timeline-container"
|
|
@@ -17152,7 +17159,7 @@ const PTRWFApplicationTimeline = props => {
|
|
|
17152
17159
|
...workflowDetails.data
|
|
17153
17160
|
};
|
|
17154
17161
|
}
|
|
17155
|
-
console.log("data ====
|
|
17162
|
+
console.log("data ==== ||Asdasdsadbkahjsdb", workflowDetails);
|
|
17156
17163
|
const isCitizen = window.location.href.includes("citizen");
|
|
17157
17164
|
const showNextActions = nextActions => {
|
|
17158
17165
|
var _nextAction, _props$application5, _props$application6, _props$application7;
|