@itilite/iui-user-management 0.4.300 → 0.4.302
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.css +11 -2
- package/dist/index.js +29 -66
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +29 -66
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -6503,14 +6503,10 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6503
6503
|
window.location.href = config.routes.profile.redirectUrl.cancel;
|
|
6504
6504
|
}
|
|
6505
6505
|
}
|
|
6506
|
-
} else if (verifyUserId && isILadmin) {
|
|
6507
|
-
var _config$routes4, _config$routes4$signu, _config$routes4$signu2;
|
|
6508
|
-
|
|
6509
|
-
(config === null || config === void 0 ? void 0 : (_config$routes4 = config.routes) === null || _config$routes4 === void 0 ? void 0 : (_config$routes4$signu = _config$routes4.signupRequest) === null || _config$routes4$signu === void 0 ? void 0 : (_config$routes4$signu2 = _config$routes4$signu.list) === null || _config$routes4$signu2 === void 0 ? void 0 : _config$routes4$signu2.path) && window.location.assign(config.routes.signupRequest.list.path);
|
|
6510
6506
|
} else {
|
|
6511
|
-
var _config$
|
|
6507
|
+
var _config$routes4, _config$routes4$users, _config$routes4$users2;
|
|
6512
6508
|
|
|
6513
|
-
(config === null || config === void 0 ? void 0 : (_config$
|
|
6509
|
+
(config === null || config === void 0 ? void 0 : (_config$routes4 = config.routes) === null || _config$routes4 === void 0 ? void 0 : (_config$routes4$users = _config$routes4.users) === null || _config$routes4$users === void 0 ? void 0 : (_config$routes4$users2 = _config$routes4$users.list) === null || _config$routes4$users2 === void 0 ? void 0 : _config$routes4$users2.path) && history.push(config.routes.users.list.path);
|
|
6514
6510
|
}
|
|
6515
6511
|
};
|
|
6516
6512
|
|
|
@@ -6633,48 +6629,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6633
6629
|
}
|
|
6634
6630
|
};
|
|
6635
6631
|
|
|
6636
|
-
var UndoButton = function UndoButton(_ref5) {
|
|
6637
|
-
var msg = _ref5.msg,
|
|
6638
|
-
id = _ref5.id;
|
|
6639
|
-
return /*#__PURE__*/React.createElement(IUIBox, {
|
|
6640
|
-
display: "flex",
|
|
6641
|
-
flexDirection: "row"
|
|
6642
|
-
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
6643
|
-
style: {
|
|
6644
|
-
whiteSpace: 'nowrap',
|
|
6645
|
-
paddingTop: '8px'
|
|
6646
|
-
}
|
|
6647
|
-
}, msg), /*#__PURE__*/React.createElement(IUIButton, {
|
|
6648
|
-
type: "text",
|
|
6649
|
-
buttonText: "UNDO",
|
|
6650
|
-
style: {
|
|
6651
|
-
color: '#FFFFFF'
|
|
6652
|
-
},
|
|
6653
|
-
onClick: function onClick() {
|
|
6654
|
-
return dispatch(undoneSignUpRejection(id));
|
|
6655
|
-
}
|
|
6656
|
-
}));
|
|
6657
|
-
};
|
|
6658
|
-
|
|
6659
|
-
var handleSignUpRequestRejection = function handleSignUpRequestRejection() {
|
|
6660
|
-
if (verifyUserId && isILadmin) {
|
|
6661
|
-
dispatch(showLoader());
|
|
6662
|
-
dispatch(rejectUserVerification(verifyUserId)).then(function (res) {
|
|
6663
|
-
var _res$data;
|
|
6664
|
-
|
|
6665
|
-
IUIToastMessageService$4.undoNotify( /*#__PURE__*/React.createElement(UndoButton, {
|
|
6666
|
-
msg: (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.message) || 'Sign-up request rejected',
|
|
6667
|
-
id: verifyUserId
|
|
6668
|
-
}));
|
|
6669
|
-
setTimeout(function () {
|
|
6670
|
-
window.location.assign(config.routes.signupRequest.list.path);
|
|
6671
|
-
}, 1500);
|
|
6672
|
-
})["finally"](function () {
|
|
6673
|
-
dispatch(stopLoader());
|
|
6674
|
-
});
|
|
6675
|
-
}
|
|
6676
|
-
};
|
|
6677
|
-
|
|
6678
6632
|
return /*#__PURE__*/React.createElement(IUIBox, {
|
|
6679
6633
|
component: "div",
|
|
6680
6634
|
className: styles.UUIUserManagementAddEdit
|
|
@@ -6691,7 +6645,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6691
6645
|
className: styles.breadcrumb
|
|
6692
6646
|
}, /*#__PURE__*/React.createElement(IUIBreadCrumb, {
|
|
6693
6647
|
breadCrumbs: [{
|
|
6694
|
-
href:
|
|
6648
|
+
href: config.routes.users.list.path,
|
|
6695
6649
|
label: 'Users',
|
|
6696
6650
|
hasLink: true
|
|
6697
6651
|
}]
|
|
@@ -6726,14 +6680,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6726
6680
|
type: "contained",
|
|
6727
6681
|
onClick: formSubmitHandler,
|
|
6728
6682
|
disabled: isPageLoading || productAccess.travel === false && productAccess.expense === false || !!doesFormHasError()
|
|
6729
|
-
})),
|
|
6730
|
-
component: "div",
|
|
6731
|
-
className: clsx(styles.buttonSingle, styles.buttonLeft)
|
|
6732
|
-
}, /*#__PURE__*/React.createElement(IUIButton, {
|
|
6733
|
-
buttonText: "Reject",
|
|
6734
|
-
type: "outlined",
|
|
6735
|
-
onClick: handleSignUpRequestRejection
|
|
6736
|
-
})) : null))), /*#__PURE__*/React.createElement(IUIBox, {
|
|
6683
|
+
}))))), /*#__PURE__*/React.createElement(IUIBox, {
|
|
6737
6684
|
component: "div",
|
|
6738
6685
|
marginTop: "8rem",
|
|
6739
6686
|
flexDirection: "column"
|
|
@@ -6922,8 +6869,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6922
6869
|
addFields: function addFields() {
|
|
6923
6870
|
return dispatch(addTravelApproverField());
|
|
6924
6871
|
},
|
|
6925
|
-
onRoleChange: function onRoleChange(
|
|
6926
|
-
var _value =
|
|
6872
|
+
onRoleChange: function onRoleChange(_ref5) {
|
|
6873
|
+
var _value = _ref5._value;
|
|
6927
6874
|
return setTravelRole(_value);
|
|
6928
6875
|
},
|
|
6929
6876
|
roleValue: travelRole,
|
|
@@ -6963,8 +6910,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6963
6910
|
addFields: function addFields() {
|
|
6964
6911
|
return dispatch(addExpenseApproverField());
|
|
6965
6912
|
},
|
|
6966
|
-
onRoleChange: function onRoleChange(
|
|
6967
|
-
var _value =
|
|
6913
|
+
onRoleChange: function onRoleChange(_ref6) {
|
|
6914
|
+
var _value = _ref6._value;
|
|
6968
6915
|
return setExpenseRole(_value);
|
|
6969
6916
|
},
|
|
6970
6917
|
roleValue: expenseRole,
|
|
@@ -7269,7 +7216,7 @@ var fetchBulkactionHistory = function fetchBulkactionHistory(url) {
|
|
|
7269
7216
|
};
|
|
7270
7217
|
};
|
|
7271
7218
|
|
|
7272
|
-
var styles$5 = {"UUIUserManagementList":"_3WNHx","pageHeader":"_1WLpc","buttonWrapper":"_2egTG","headingWrapper":"_1He01","heading":"_1uPaO","headingLarge":"_2FsLd","headingMedium":"_nGXA9","headingSmall":"_2rpwF","description":"_25vb9","headerText":"_1Ny9J","letterImage":"_2hr3R","tablewrapper":"_1-RPw","rowText":"_1LXyO","textTransform":"_3kFQS","lightColor":"_3Ghgw","avatarClassName":"_2qO_X","importModalBodyContainer":"_25xUk","dividerColor":"_2HZv9","w100":"_3vGmU","downloadTemplateContainer":"_3-Xu_","downloadTemplateDescContainer":"_tLw43","labelContainer":"_7TYUZ","downlTempHeader":"__CZpe","downlTempDescription":"_19jEe","downloadTemplateButton":"_1qXtq","fileUploaderContainer":"_1YVz2","colGap":"_3vnY5","deActivateModalContainer":"_28H9H","backdrop":"_1ky1x","errorText":"_26_if","user_list_page_tabs":"_xWE7K","TabLabelCount":"_13pXn"};
|
|
7219
|
+
var styles$5 = {"UUIUserManagementList":"_3WNHx","pageHeader":"_1WLpc","buttonWrapper":"_2egTG","headingWrapper":"_1He01","headingSignUpWrapper":"_Q8vqd","heading":"_1uPaO","headingLarge":"_2FsLd","headingMedium":"_nGXA9","headingSmall":"_2rpwF","description":"_25vb9","headerText":"_1Ny9J","letterImage":"_2hr3R","tablewrapper":"_1-RPw","rowText":"_1LXyO","textTransform":"_3kFQS","lightColor":"_3Ghgw","avatarClassName":"_2qO_X","importModalBodyContainer":"_25xUk","dividerColor":"_2HZv9","w100":"_3vGmU","downloadTemplateContainer":"_3-Xu_","downloadTemplateDescContainer":"_tLw43","labelContainer":"_7TYUZ","downlTempHeader":"__CZpe","downlTempDescription":"_19jEe","downloadTemplateButton":"_1qXtq","fileUploaderContainer":"_1YVz2","colGap":"_3vnY5","deActivateModalContainer":"_28H9H","backdrop":"_1ky1x","errorText":"_26_if","user_list_page_tabs":"_xWE7K","TabLabelCount":"_13pXn"};
|
|
7273
7220
|
|
|
7274
7221
|
var BulkUploadModal = function BulkUploadModal(props) {
|
|
7275
7222
|
var isOpenImportUsersModal = props.isOpenImportUsersModal,
|
|
@@ -9052,6 +8999,10 @@ var UserList = function UserList(_ref) {
|
|
|
9052
8999
|
}),
|
|
9053
9000
|
signupRequestListInfo = _useSelector3.signupRequestListInfo;
|
|
9054
9001
|
|
|
9002
|
+
var _useState17 = useState(0),
|
|
9003
|
+
tabValue = _useState17[0],
|
|
9004
|
+
setTabValue = _useState17[1];
|
|
9005
|
+
|
|
9055
9006
|
var openDeactivateModal = function openDeactivateModal() {
|
|
9056
9007
|
if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
|
|
9057
9008
|
IUIToastMessageService$7.warningNotify('Select at least one user to deactivate.');
|
|
@@ -9457,12 +9408,20 @@ var UserList = function UserList(_ref) {
|
|
|
9457
9408
|
})), /*#__PURE__*/React.createElement(IUIBox, {
|
|
9458
9409
|
className: styles$5.tablewrapper
|
|
9459
9410
|
}, /*#__PURE__*/React.createElement(IUITabs, {
|
|
9411
|
+
value: tabValue,
|
|
9412
|
+
customTabHandler: function customTabHandler(value) {
|
|
9413
|
+
return setTabValue(value);
|
|
9414
|
+
},
|
|
9460
9415
|
className: styles$5.user_list_page_tabs,
|
|
9461
9416
|
tabs: [{
|
|
9462
|
-
label: /*#__PURE__*/React.createElement(IUIBox, null, "Current
|
|
9417
|
+
label: /*#__PURE__*/React.createElement(IUIBox, null, "Current users", ' ', /*#__PURE__*/React.createElement(TabLabelCount, {
|
|
9463
9418
|
count: userListInfo.count
|
|
9464
9419
|
}), ' '),
|
|
9465
|
-
content: /*#__PURE__*/React.createElement(IUIBox,
|
|
9420
|
+
content: /*#__PURE__*/React.createElement(IUIBox, {
|
|
9421
|
+
style: {
|
|
9422
|
+
marginLeft: '-17px'
|
|
9423
|
+
}
|
|
9424
|
+
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
9466
9425
|
component: "div",
|
|
9467
9426
|
className: styles$5.headingWrapper
|
|
9468
9427
|
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
@@ -9490,9 +9449,13 @@ var UserList = function UserList(_ref) {
|
|
|
9490
9449
|
label: /*#__PURE__*/React.createElement(IUIBox, null, "Sign-up requests", ' ', /*#__PURE__*/React.createElement(TabLabelCount, {
|
|
9491
9450
|
count: signupRequestListInfo.count
|
|
9492
9451
|
}), ' '),
|
|
9493
|
-
content: /*#__PURE__*/React.createElement(IUIBox,
|
|
9452
|
+
content: /*#__PURE__*/React.createElement(IUIBox, {
|
|
9453
|
+
style: {
|
|
9454
|
+
marginLeft: '-17px'
|
|
9455
|
+
}
|
|
9456
|
+
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
9494
9457
|
component: "div",
|
|
9495
|
-
className: styles$5.
|
|
9458
|
+
className: styles$5.headingSignUpWrapper
|
|
9496
9459
|
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
9497
9460
|
variant: "body2",
|
|
9498
9461
|
className: clsx(styles$5.description)
|