@mseva/digit-ui-module-rentandlease 1.0.19 → 1.0.20
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 +25 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7544,6 +7544,9 @@ const RALApplicationDetails = () => {
|
|
|
7544
7544
|
moduleCode: "RENT_N_LEASE_NEW",
|
|
7545
7545
|
role: "EMPLOYEE"
|
|
7546
7546
|
});
|
|
7547
|
+
const getDate = epoch => {
|
|
7548
|
+
return Digit.DateUtils.ConvertEpochToDate(epoch);
|
|
7549
|
+
};
|
|
7547
7550
|
const propertyDetails = applicationData !== null && applicationData !== void 0 && applicationData.additionalDetails ? applicationData.additionalDetails : {};
|
|
7548
7551
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
7549
7552
|
className: "cardHeaderWithOptions ral-app-details-header"
|
|
@@ -7614,6 +7617,15 @@ const RALApplicationDetails = () => {
|
|
|
7614
7617
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
7615
7618
|
label: t("RENT_LEASE_LOCATION_TYPE"),
|
|
7616
7619
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.locationType) || t("CS_NA")
|
|
7620
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
7621
|
+
label: t("RAL_START_DATE"),
|
|
7622
|
+
text: getDate(applicationData === null || applicationData === void 0 ? void 0 : applicationData.startDate) || t("CS_NA")
|
|
7623
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
7624
|
+
label: t("RAL_END_DATE"),
|
|
7625
|
+
text: getDate(applicationData === null || applicationData === void 0 ? void 0 : applicationData.endDate) || t("CS_NA")
|
|
7626
|
+
}), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tradeLicenseNumber) && /*#__PURE__*/React.createElement(Row, {
|
|
7627
|
+
label: t("RENT_LEASE_TRADE_LICENSE_NUMBER"),
|
|
7628
|
+
text: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tradeLicenseNumber) || t("CS_NA")
|
|
7617
7629
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
7618
7630
|
className: "ral-card-subheader-24-margin"
|
|
7619
7631
|
}, t("CS_COMMON_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Card, {
|
|
@@ -9022,7 +9034,7 @@ const RALApplicationDetails$1 = () => {
|
|
|
9022
9034
|
return (_e$roles2 = e.roles) === null || _e$roles2 === void 0 ? void 0 : _e$roles2.includes(role);
|
|
9023
9035
|
})) || !e.roles;
|
|
9024
9036
|
}));
|
|
9025
|
-
if ((_actions = actions) !== null && _actions !== void 0 && _actions.some(action => action.action === "REQUEST_FOR_DISCONNECTION") && (applicationData === null || applicationData === void 0 ? void 0 : applicationData.endDate)
|
|
9037
|
+
if ((_actions = actions) !== null && _actions !== void 0 && _actions.some(action => action.action === "REQUEST_FOR_DISCONNECTION") && Date.now() >= (applicationData === null || applicationData === void 0 ? void 0 : applicationData.endDate) - 15 * 24 * 60 * 60 * 1000) {
|
|
9026
9038
|
actions = [...(actions || []), {
|
|
9027
9039
|
action: "RENEWAL"
|
|
9028
9040
|
}];
|
|
@@ -9035,6 +9047,9 @@ const RALApplicationDetails$1 = () => {
|
|
|
9035
9047
|
setShowModal(false);
|
|
9036
9048
|
setShowToast(false);
|
|
9037
9049
|
};
|
|
9050
|
+
const getDate = epoch => {
|
|
9051
|
+
return Digit.DateUtils.ConvertEpochToDate(epoch);
|
|
9052
|
+
};
|
|
9038
9053
|
function onActionSelect(action) {
|
|
9039
9054
|
var _ref, _action$state, _filterRoles$;
|
|
9040
9055
|
const payload = {
|
|
@@ -9275,6 +9290,15 @@ const RALApplicationDetails$1 = () => {
|
|
|
9275
9290
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
9276
9291
|
label: t("RENT_LEASE_LOCATION_TYPE"),
|
|
9277
9292
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.locationType) || t("CS_NA")
|
|
9293
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
9294
|
+
label: t("RAL_START_DATE"),
|
|
9295
|
+
text: getDate(applicationData === null || applicationData === void 0 ? void 0 : applicationData.startDate) || t("CS_NA")
|
|
9296
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
9297
|
+
label: t("RAL_END_DATE"),
|
|
9298
|
+
text: getDate(applicationData === null || applicationData === void 0 ? void 0 : applicationData.endDate) || t("CS_NA")
|
|
9299
|
+
}), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tradeLicenseNumber) && /*#__PURE__*/React.createElement(Row, {
|
|
9300
|
+
label: t("RENT_LEASE_TRADE_LICENSE_NUMBER"),
|
|
9301
|
+
text: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tradeLicenseNumber) || t("CS_NA")
|
|
9278
9302
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
9279
9303
|
className: "ral-card-subheader-24-margin"
|
|
9280
9304
|
}, t("CS_COMMON_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Card, {
|