@itilite/iui-user-management 0.4.208 → 0.4.210

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 CHANGED
@@ -787,20 +787,6 @@
787
787
  font-weight: 400;
788
788
  color: #111827;
789
789
  }
790
- ._3WNHx ._1-RPw ._1l4V- {
791
- width: 55px;
792
- height: 24px;
793
- background: #e7e7e7;
794
- border-radius: 8px;
795
- display: flex;
796
- justify-content: center;
797
- align-items: center;
798
- padding: 4px 8px;
799
- font-size: 12px;
800
- font-weight: 400;
801
- color: #111827;
802
- opacity: 0.6;
803
- }
804
790
 
805
791
  ._-LQNH {
806
792
  background: #1f2937;
package/dist/index.js CHANGED
@@ -6739,7 +6739,7 @@ var fetchBulkactionHistory = function fetchBulkactionHistory(url) {
6739
6739
  };
6740
6740
  };
6741
6741
 
6742
- var styles$5 = {"UUIUserManagementList":"_3WNHx","scrollOverlayMenu":"_2_WEg","overlaysearch":"_1Pbhb","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","tooltipText":"_151u_","tooltipTextDiv":"_1l4V-","tooltip":"_-LQNH","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"};
6742
+ var styles$5 = {"UUIUserManagementList":"_3WNHx","scrollOverlayMenu":"_2_WEg","overlaysearch":"_1Pbhb","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","tooltipText":"_151u_","tooltip":"_-LQNH","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"};
6743
6743
 
6744
6744
  var BulkUploadModal = function BulkUploadModal(props) {
6745
6745
  var isOpenImportUsersModal = props.isOpenImportUsersModal,
@@ -8225,9 +8225,9 @@ var StickyHeadTable = function StickyHeadTable(props) {
8225
8225
  cell: function cell(row) {
8226
8226
  return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
8227
8227
  component: "div",
8228
- width: 80
8228
+ width: 60
8229
8229
  }, row && row.has_visited === 0 ? /*#__PURE__*/React__default.createElement(Tooltip, {
8230
- title: "This user hasn't logged in to the platform yet",
8230
+ title: "This user hasn't logged on to the platform yet",
8231
8231
  arrow: true,
8232
8232
  classes: {
8233
8233
  arrow: classes.arrow,
@@ -8235,7 +8235,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
8235
8235
  },
8236
8236
  placement: "top-start"
8237
8237
  }, /*#__PURE__*/React__default.createElement("div", {
8238
- className: clsx(styles$5.tooltipTextDiv)
8238
+ className: clsx(styles$5.tooltipText)
8239
8239
  }, "Invited")) : null);
8240
8240
  }
8241
8241
  }, {
@@ -8336,7 +8336,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
8336
8336
  options.push({
8337
8337
  label: 'Resend invite',
8338
8338
  handler: function handler() {
8339
- return toggleInviteModal(row.id, 'single', row.first_name, row.last_name);
8339
+ return toggleInviteModal(row.id, 'single');
8340
8340
  }
8341
8341
  });
8342
8342
  }
@@ -8621,12 +8621,6 @@ var UserList = function UserList(_ref2) {
8621
8621
  var _React$useState5 = React__default.useState(false),
8622
8622
  overlayMenu = _React$useState5[0],
8623
8623
  setOverlayMenu = _React$useState5[1];
8624
- var _useState13 = React.useState(''),
8625
- userFirstName = _useState13[0],
8626
- setUserFirstName = _useState13[1];
8627
- var _useState14 = React.useState(''),
8628
- userLastName = _useState14[0],
8629
- setUserLastName = _useState14[1];
8630
8624
  useScrollPosition.useScrollPosition(function (_ref3) {
8631
8625
  var prevPos = _ref3.prevPos,
8632
8626
  currPos = _ref3.currPos;
@@ -8650,34 +8644,37 @@ var UserList = function UserList(_ref2) {
8650
8644
  var _React$useState6 = React__default.useState(1),
8651
8645
  signup_page = _React$useState6[0],
8652
8646
  setSignUpPage = _React$useState6[1];
8653
- var _useState15 = React.useState(5),
8654
- signup_rowsPerPage = _useState15[0],
8655
- setSignUpRowsPerPage = _useState15[1];
8647
+ var _useState13 = React.useState(5),
8648
+ signup_rowsPerPage = _useState13[0],
8649
+ setSignUpRowsPerPage = _useState13[1];
8656
8650
  var _React$useState7 = React__default.useState('asc'),
8657
8651
  signup_order = _React$useState7[0],
8658
8652
  setSignUpOrder = _React$useState7[1];
8659
8653
  var _React$useState8 = React__default.useState('fname'),
8660
8654
  signup_orderBy = _React$useState8[0],
8661
8655
  setSignUpOrderBy = _React$useState8[1];
8662
- var _useState16 = React.useState(''),
8663
- signup_searchValue = _useState16[0],
8664
- set_signup_SearchValue = _useState16[1];
8656
+ var _useState14 = React.useState(''),
8657
+ signup_searchValue = _useState14[0],
8658
+ set_signup_SearchValue = _useState14[1];
8659
+ var _useState15 = React.useState(false),
8660
+ isSignUpSortingChange = _useState15[0],
8661
+ setSignUpSortingChange = _useState15[1];
8662
+ var _useState16 = React.useState(false),
8663
+ isSignUpSearchingChange = _useState16[0],
8664
+ setSignUpSearchingChange = _useState16[1];
8665
8665
  var _useState17 = React.useState(false),
8666
- isSignUpSortingChange = _useState17[0],
8667
- setSignUpSortingChange = _useState17[1];
8666
+ isSignUpSortingChangeTemp = _useState17[0],
8667
+ setSignUpSortingChangeTemp = _useState17[1];
8668
8668
  var _useState18 = React.useState(false),
8669
- isSignUpSearchingChange = _useState18[0],
8670
- setSignUpSearchingChange = _useState18[1];
8671
- var _useState19 = React.useState(false),
8672
- isSignUpSortingChangeTemp = _useState19[0],
8673
- setSignUpSortingChangeTemp = _useState19[1];
8674
- var _useState20 = React.useState(false),
8675
- isSignUpSearchingChangeTemp = _useState20[0],
8676
- setSignUpSearchingChangeTemp = _useState20[1];
8669
+ isSignUpSearchingChangeTemp = _useState18[0],
8670
+ setSignUpSearchingChangeTemp = _useState18[1];
8677
8671
  var _useSelector3 = reactRedux.useSelector(function (state) {
8678
8672
  return state.userList;
8679
8673
  }),
8680
8674
  signupRequestListInfo = _useSelector3.signupRequestListInfo;
8675
+ var redirectToNotifications = function redirectToNotifications() {
8676
+ history.push(config.routes.notification.path);
8677
+ };
8681
8678
  var openDeactivateModal = function openDeactivateModal() {
8682
8679
  if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
8683
8680
  IUIToastMessageService$7.warningNotify('Select at least one user to deactivate.');
@@ -8826,19 +8823,13 @@ var UserList = function UserList(_ref2) {
8826
8823
  email: email
8827
8824
  }));
8828
8825
  };
8829
- var toggleInviteModal = function toggleInviteModal(ids, type, firstName, lastName) {
8830
- if (type === undefined) {
8831
- if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
8832
- IUIToastMessageService$7.warningNotify('Select at least one user to invite.');
8833
- return false;
8834
- }
8826
+ var toggleInviteModal = function toggleInviteModal(ids, type) {
8827
+ console.log(type);
8828
+ if (!type && (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined)) {
8829
+ IUIToastMessageService$7.warningNotify('Select at least one user to invite.');
8830
+ return false;
8835
8831
  }
8836
8832
  setUserIds(ids);
8837
- setUserFirstName(firstName);
8838
- setUserLastName(lastName);
8839
- setToggleInviteModal(!showInviteModal);
8840
- };
8841
- var toggleInviteModalClose = function toggleInviteModalClose() {
8842
8833
  setToggleInviteModal(!showInviteModal);
8843
8834
  };
8844
8835
  var onResendInviteHandler = function onResendInviteHandler() {
@@ -9162,7 +9153,11 @@ var UserList = function UserList(_ref2) {
9162
9153
  }, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
9163
9154
  variant: "body2",
9164
9155
  className: clsx(styles$5.description)
9165
- }, "Verify and add users to allow them to start using ITILITE. Set up preferences for receiving sign up request updates in Notifications.")), /*#__PURE__*/React__default.createElement(SingupRequests, {
9156
+ }, "Verify and add users to allow them to start using ITILITE. Set up preferences for receiving sign up request updates in", ' ', /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
9157
+ variant: "span",
9158
+ onClick: config.routes.notification && redirectToNotifications,
9159
+ className: clsx(config.routes.notification && 'iui__cursor-pointer iui__border--bottom_solid_black500-1')
9160
+ }, "Notifications"), ".")), /*#__PURE__*/React__default.createElement(SingupRequests, {
9166
9161
  data: signupRequestListInfo,
9167
9162
  handleChangeRowsPerPage: function handleChangeRowsPerPage(event) {
9168
9163
  setSignUpRowsPerPage(+event.target.value);
@@ -9221,9 +9216,7 @@ var UserList = function UserList(_ref2) {
9221
9216
  className: styles$5.description
9222
9217
  }, "The", ' ', Object.values(selected).flat().length === 1 ? ' user ' : ' users ', "won\u2019t be able to access itilite platform"))), /*#__PURE__*/React__default.createElement(iuistyles.IUIModal, {
9223
9218
  isOpen: showInviteModal,
9224
- closeHandler: function closeHandler() {
9225
- return toggleInviteModalClose();
9226
- },
9219
+ closeHandler: toggleInviteModal,
9227
9220
  cancelLabel: "Cancel",
9228
9221
  headerText: "Resend Invites?",
9229
9222
  submitLabel: "Send",
@@ -9255,13 +9248,7 @@ var UserList = function UserList(_ref2) {
9255
9248
  fontSize: '14px',
9256
9249
  color: '#374151'
9257
9250
  }
9258
- }, "This invitation will be sent to", ' ', /*#__PURE__*/React__default.createElement("span", {
9259
- style: {
9260
- fontSize: '14px',
9261
- color: '#374151',
9262
- fontWeight: 'bold'
9263
- }
9264
- }, userFirstName != null ? userFirstName + " " + userLastName : 'selected users'), ", who have not logged into the platform."))), /*#__PURE__*/React__default.createElement(BulkUploadModal, {
9251
+ }, "This invitation will be sent to users who have not logged into the platform."))), /*#__PURE__*/React__default.createElement(BulkUploadModal, {
9265
9252
  isOpenImportUsersModal: isOpenImportUsersModal,
9266
9253
  closeImportUsersModal: closeImportUsersModal,
9267
9254
  closeImportModal: closeImportModal