@mseva/digit-ui-module-noc 1.0.88 → 1.0.89
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 +19 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -8326,9 +8326,9 @@ const configBPAApproverApplication = ({
|
|
|
8326
8326
|
},
|
|
8327
8327
|
form: [{
|
|
8328
8328
|
body: [{
|
|
8329
|
-
label: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_FEE" ? null : t(assigneeLabel || `WF_ROLE_${(_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : _action$assigneeRoles[0]}`),
|
|
8329
|
+
label: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_FEE" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_BACK" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_ZONE" ? null : t(assigneeLabel || `WF_ROLE_${(_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : _action$assigneeRoles[0]}`),
|
|
8330
8330
|
type: "dropdown",
|
|
8331
|
-
populators: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_FEE" ? null : /*#__PURE__*/React.createElement(DropdownWithDesignation, {
|
|
8331
|
+
populators: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_FEE" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_BACK" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_ZONE" ? null : /*#__PURE__*/React.createElement(DropdownWithDesignation, {
|
|
8332
8332
|
option: approvers,
|
|
8333
8333
|
autoComplete: "off",
|
|
8334
8334
|
optionKey: "name",
|
|
@@ -12238,7 +12238,11 @@ const SubOccupancyTable = ({
|
|
|
12238
12238
|
const accessData = plot => {
|
|
12239
12239
|
const name = plot;
|
|
12240
12240
|
return (originalRow, rowIndex, columns) => {
|
|
12241
|
-
return
|
|
12241
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12242
|
+
style: {
|
|
12243
|
+
overflowWrap: "break-word"
|
|
12244
|
+
}
|
|
12245
|
+
}, originalRow[name]);
|
|
12242
12246
|
};
|
|
12243
12247
|
};
|
|
12244
12248
|
const tableColumns = useMemo(() => {
|
|
@@ -26075,7 +26079,7 @@ const NewNOCStepFormOne = ({
|
|
|
26075
26079
|
onGoNext,
|
|
26076
26080
|
onBackClick
|
|
26077
26081
|
}) => {
|
|
26078
|
-
var _currentStepData$appl, _userInfo$info, _userInfo$info$roles;
|
|
26082
|
+
var _currentStepData$appl, _userInfo$info, _userInfo$info$roles, _userInfo$info2, _userInfo$info2$roles;
|
|
26079
26083
|
const dispatch = useDispatch();
|
|
26080
26084
|
const {
|
|
26081
26085
|
t
|
|
@@ -26093,6 +26097,7 @@ const NewNOCStepFormOne = ({
|
|
|
26093
26097
|
const ownerPhotos = useSelector(function (state) {
|
|
26094
26098
|
return state.noc.NOCNewApplicationFormReducer.ownerPhotos;
|
|
26095
26099
|
});
|
|
26100
|
+
const tenantId = localStorage.getItem("CITIZEN.CITY");
|
|
26096
26101
|
console.log("ownerIds", ownerIds);
|
|
26097
26102
|
console.log("ownerPhotos", ownerPhotos);
|
|
26098
26103
|
React.useEffect(() => {
|
|
@@ -26246,6 +26251,10 @@ const NewNOCStepFormOne = ({
|
|
|
26246
26251
|
const stateCode = Digit.ULBService.getStateId();
|
|
26247
26252
|
const [stakeHolderRoles, setStakeholderRoles] = useState(false);
|
|
26248
26253
|
const userRoles = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info = userInfo.info) === null || _userInfo$info === void 0 ? void 0 : (_userInfo$info$roles = _userInfo$info.roles) === null || _userInfo$info$roles === void 0 ? void 0 : _userInfo$info$roles.map(roleData => roleData.code);
|
|
26254
|
+
const userRolesMapped = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info2 = userInfo.info) === null || _userInfo$info2 === void 0 ? void 0 : (_userInfo$info2$roles = _userInfo$info2.roles) === null || _userInfo$info2$roles === void 0 ? void 0 : _userInfo$info2$roles.map(roleData => ({
|
|
26255
|
+
role: roleData === null || roleData === void 0 ? void 0 : roleData.code,
|
|
26256
|
+
tenantId: roleData === null || roleData === void 0 ? void 0 : roleData.tenantId
|
|
26257
|
+
}));
|
|
26249
26258
|
const {
|
|
26250
26259
|
data: stakeHolderDetails,
|
|
26251
26260
|
isLoading: stakeHolderDetailsLoading
|
|
@@ -26263,7 +26272,9 @@ const NewNOCStepFormOne = ({
|
|
|
26263
26272
|
});
|
|
26264
26273
|
const uniqueRoles = roles === null || roles === void 0 ? void 0 : roles.filter((item, i, ar) => ar.indexOf(item) === i);
|
|
26265
26274
|
uniqueRoles === null || uniqueRoles === void 0 ? void 0 : uniqueRoles.map(unRole => {
|
|
26266
|
-
if (userRoles !== null && userRoles !== void 0 && userRoles.includes(
|
|
26275
|
+
if (userRoles !== null && userRoles !== void 0 && userRoles.includes("BPA_ARCHITECT")) {
|
|
26276
|
+
setIsRegisteredStakeHolder(true);
|
|
26277
|
+
} else if (userRolesMapped !== null && userRolesMapped !== void 0 && userRolesMapped.find(userRole => (userRole === null || userRole === void 0 ? void 0 : userRole.role) === unRole && (userRole === null || userRole === void 0 ? void 0 : userRole.tenantId) === tenantId)) {
|
|
26267
26278
|
setIsRegisteredStakeHolder(true);
|
|
26268
26279
|
}
|
|
26269
26280
|
});
|
|
@@ -29730,8 +29741,9 @@ const MyApplications = ({
|
|
|
29730
29741
|
row
|
|
29731
29742
|
}) => {
|
|
29732
29743
|
var _row$original, _row$original$Applica, _row$original2, _row$original2$Applic;
|
|
29744
|
+
const encodedAppNo = encodeURIComponentCustom$1((_row$original = row.original) === null || _row$original === void 0 ? void 0 : (_row$original$Applica = _row$original.Applications) === null || _row$original$Applica === void 0 ? void 0 : _row$original$Applica.applicationNo);
|
|
29733
29745
|
return /*#__PURE__*/React.createElement(Link, {
|
|
29734
|
-
to: `/digit-ui/citizen/noc/search/application-overview/${
|
|
29746
|
+
to: `/digit-ui/citizen/noc/search/application-overview/${encodedAppNo}`
|
|
29735
29747
|
}, /*#__PURE__*/React.createElement("b", null, GetCell((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : (_row$original2$Applic = _row$original2.Applications) === null || _row$original2$Applic === void 0 ? void 0 : _row$original2$Applic.applicationNo)));
|
|
29736
29748
|
}
|
|
29737
29749
|
}, {
|
|
@@ -29744,7 +29756,7 @@ const MyApplications = ({
|
|
|
29744
29756
|
Header: t("NOC_APPLICATION_STATUS"),
|
|
29745
29757
|
accessor: row => {
|
|
29746
29758
|
var _row$Applications3;
|
|
29747
|
-
return row === null || row === void 0 ? void 0 : (_row$Applications3 = row.Applications) === null || _row$Applications3 === void 0 ? void 0 : _row$Applications3.applicationStatus;
|
|
29759
|
+
return t(row === null || row === void 0 ? void 0 : (_row$Applications3 = row.Applications) === null || _row$Applications3 === void 0 ? void 0 : _row$Applications3.applicationStatus);
|
|
29748
29760
|
},
|
|
29749
29761
|
Cell: ({
|
|
29750
29762
|
row
|