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