@itilite/iui-user-management 1.5.0-beta-2 → 1.5.0-beta.1

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.
@@ -3604,7 +3604,7 @@ var personalInfo = [{
3604
3604
  readOnly: false,
3605
3605
  placeholder: 'Enter first and middle name',
3606
3606
  validation: {
3607
- regexOnChange: null,
3607
+ regexOnChange: /^(?!.* {2}).*$/,
3608
3608
  regexOnBlur: [{
3609
3609
  regex: /^[a-zA-Z ]*$/,
3610
3610
  message: 'Only alphabets are allowed.'
@@ -3626,7 +3626,7 @@ var personalInfo = [{
3626
3626
  readOnly: false,
3627
3627
  placeholder: 'Enter last name',
3628
3628
  validation: {
3629
- regexOnChange: null,
3629
+ regexOnChange: /^(?!.* {2}).*$/,
3630
3630
  regexOnBlur: [{
3631
3631
  regex: /^[a-zA-Z ]*$/,
3632
3632
  message: 'Only alphabets are allowed.'
@@ -10156,6 +10156,7 @@ var DropdownBtn = function DropdownBtn(props) {
10156
10156
  anchorEl: anchorRef.current,
10157
10157
  role: undefined,
10158
10158
  transition: true,
10159
+ disablePortal: true,
10159
10160
  style: {
10160
10161
  zIndex: '9'
10161
10162
  },
@@ -10690,11 +10691,9 @@ var UndoButton = function UndoButton(_ref) {
10690
10691
  }, "UNDO"));
10691
10692
  };
10692
10693
  var UserList = function UserList(_ref2) {
10693
- var _config$features;
10694
10694
  var config = _ref2.config,
10695
10695
  isProfile = _ref2.isProfile;
10696
10696
  env$7.init(config, isProfile);
10697
- var hideSignupRequestsTab = !!(config !== null && config !== void 0 && (_config$features = config.features) !== null && _config$features !== void 0 && _config$features.hideSignupRequestsTab);
10698
10697
  var history = useHistory();
10699
10698
  var _useSelector = useSelector(function (state) {
10700
10699
  return state.userList;
@@ -11295,10 +11294,6 @@ var UserList = function UserList(_ref2) {
11295
11294
  if (!isSearchingChange && !isSortingChange && !isSignUpSearchingChange && !isSignUpSortingChange) {
11296
11295
  dispatch(showDataFetchingStatus());
11297
11296
  dispatch(fetchUsersList(url)).then(function () {
11298
- if (hideSignupRequestsTab) {
11299
- dispatch(stopDataFetchingStatus());
11300
- return;
11301
- }
11302
11297
  dispatch(fetchUserSignupRequests({
11303
11298
  ordering: signup_order === 'asc' ? signup_orderBy : "-" + signup_orderBy,
11304
11299
  length: signup_rowsPerPage,
@@ -11352,38 +11347,6 @@ var UserList = function UserList(_ref2) {
11352
11347
  onClick: handleAddPageNavigation
11353
11348
  })));
11354
11349
  };
11355
- var currentUsersPanel = /*#__PURE__*/React.createElement(IUIBox, {
11356
- style: {
11357
- marginLeft: '-17px'
11358
- }
11359
- }, /*#__PURE__*/React.createElement(IUIBox, {
11360
- component: "div",
11361
- className: styles$6.headingWrapper
11362
- }, /*#__PURE__*/React.createElement(IUITypography, {
11363
- variant: "body2",
11364
- className: clsx(styles$6.description)
11365
- }, "Create new users, customize user permissions and manage user accounts")), /*#__PURE__*/React.createElement(StickyHeadTable, {
11366
- data: userListInfo,
11367
- handleChangeRowsPerPage: handleChangeRowsPerPage,
11368
- handleChangePage: handleChangePage,
11369
- page: page,
11370
- rowsPerPage: rowsPerPage,
11371
- handleActiveUser: handleActiveUser,
11372
- handleSelectAllClick: handleSelectAllClick,
11373
- selected: selected,
11374
- handleSingleCheckBoxClick: handleSingleCheckBoxClick,
11375
- orderBy: orderBy,
11376
- order: order,
11377
- onRequestSort: onRequestSort,
11378
- onSearchHandler: onSearchHandler,
11379
- onEditHandler: handleEditUserClick,
11380
- disableRowCheckbox: deactivatedUsers,
11381
- searchValue: searchValue,
11382
- isILadmin: isILadmin,
11383
- onPrimaryAdminHandler: onPrimaryAdminHandler,
11384
- onResetPasswordHandler: onResetPasswordHandler,
11385
- toggleInviteModal: toggleInviteModal
11386
- }));
11387
11350
  return /*#__PURE__*/React.createElement(IUIBox, {
11388
11351
  component: "div",
11389
11352
  className: styles$6.UUIUserManagementList
@@ -11458,7 +11421,7 @@ var UserList = function UserList(_ref2) {
11458
11421
  alignItems: "center"
11459
11422
  })), /*#__PURE__*/React.createElement(IUIBox, {
11460
11423
  className: styles$6.tablewrapper
11461
- }, hideSignupRequestsTab ? currentUsersPanel : /*#__PURE__*/React.createElement(IUITabs, {
11424
+ }, /*#__PURE__*/React.createElement(IUITabs, {
11462
11425
  value: tabValue,
11463
11426
  customTabHandler: function customTabHandler(value) {
11464
11427
  return dispatch(updateTabValue(value));
@@ -11468,7 +11431,38 @@ var UserList = function UserList(_ref2) {
11468
11431
  label: /*#__PURE__*/React.createElement(IUIBox, null, "Current users", ' ', /*#__PURE__*/React.createElement(TabLabelCount, {
11469
11432
  count: userListInfo.count
11470
11433
  }), ' '),
11471
- content: currentUsersPanel
11434
+ content: /*#__PURE__*/React.createElement(IUIBox, {
11435
+ style: {
11436
+ marginLeft: '-17px'
11437
+ }
11438
+ }, /*#__PURE__*/React.createElement(IUIBox, {
11439
+ component: "div",
11440
+ className: styles$6.headingWrapper
11441
+ }, /*#__PURE__*/React.createElement(IUITypography, {
11442
+ variant: "body2",
11443
+ className: clsx(styles$6.description)
11444
+ }, "Create new users, customize user permissions and manage user accounts")), /*#__PURE__*/React.createElement(StickyHeadTable, {
11445
+ data: userListInfo,
11446
+ handleChangeRowsPerPage: handleChangeRowsPerPage,
11447
+ handleChangePage: handleChangePage,
11448
+ page: page,
11449
+ rowsPerPage: rowsPerPage,
11450
+ handleActiveUser: handleActiveUser,
11451
+ handleSelectAllClick: handleSelectAllClick,
11452
+ selected: selected,
11453
+ handleSingleCheckBoxClick: handleSingleCheckBoxClick,
11454
+ orderBy: orderBy,
11455
+ order: order,
11456
+ onRequestSort: onRequestSort,
11457
+ onSearchHandler: onSearchHandler,
11458
+ onEditHandler: handleEditUserClick,
11459
+ disableRowCheckbox: deactivatedUsers,
11460
+ searchValue: searchValue,
11461
+ isILadmin: isILadmin,
11462
+ onPrimaryAdminHandler: onPrimaryAdminHandler,
11463
+ onResetPasswordHandler: onResetPasswordHandler,
11464
+ toggleInviteModal: toggleInviteModal
11465
+ }))
11472
11466
  }, {
11473
11467
  label: /*#__PURE__*/React.createElement(IUIBox, null, "Sign-up requests", ' ', /*#__PURE__*/React.createElement(TabLabelCount, {
11474
11468
  count: signupRequestListInfo.count