@itilite/iui-user-management 1.5.0-beta-3 → 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.css +0 -3
- package/dist/index.js +38 -51
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +38 -51
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -185,7 +185,7 @@ function _finallyRethrows(body, finalizer) {
|
|
|
185
185
|
return finalizer(false, result);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
var styles = {"UUIUserManagementAddEdit":"_3n-WG","pageHeader":"_3qWcA","buttonWrapper":"_1IP9P","scrolled":"_m8f96","
|
|
188
|
+
var styles = {"UUIUserManagementAddEdit":"_3n-WG","pageHeader":"_3qWcA","buttonWrapper":"_1IP9P","scrolled":"_m8f96","headingButtonWrapper":"_w9z7b","headingButtonWrapperProfile":"_12Wd9","hintText":"_ySdbZ","heading":"_2Y1Aw","headingLarge":"_2K1NF","headingMedium":"_RUuAz","headingSmall":"_23Dye","additionalInfoContainer":"_1Suhw","additionalInfoTitle":"_56iJF","titleContainer":"_H5nfl","expandIconAlign":"_3F4i0","detailsContainer":"_2G0LW","formWrapper":"_2fPRc","sectionWrapper":"_37Gqp","margin":"_2Sdl7","minGridWidth":"_2D7iu","firstRowMargin":"_1BozG","firstChildMargin":"_2C3Mb","paddingTop":"_DBPjV","backGrdColorOnHover":"_5oE6H","fieldMargin":"_RCWjq","productContainerGap":"_tuCbi","containerWidth":"_1oWos","productItemBroder":"_T0Hcd","headingPadding":"_2MFfQ","emptyFieldContainer":"_3VWtw","emptyFieldDescription":"_2jC5u","rowGap":"_1NJFY","formTitle":"_GAKk2","formDescription":"_3TZ6Z","themeLink":"_eJ_1B","dashedLine":"_3ZOs1","dividerColor":"_2pxEJ","errorTextCls":"_27eth","backdrop":"_Pm0Au","inputWidth":"_ajB82","buttonRight":"_1lEyQ","containedDropdownBtn":"_3ymE1"};
|
|
189
189
|
|
|
190
190
|
function r(e) {
|
|
191
191
|
var t,
|
|
@@ -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.'
|
|
@@ -6848,13 +6848,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6848
6848
|
var _useState9 = React.useState(false),
|
|
6849
6849
|
scroll = _useState9[0],
|
|
6850
6850
|
setScroll = _useState9[1];
|
|
6851
|
-
var isInsideIframe = function () {
|
|
6852
|
-
try {
|
|
6853
|
-
return window.self !== window.top;
|
|
6854
|
-
} catch (e) {
|
|
6855
|
-
return true;
|
|
6856
|
-
}
|
|
6857
|
-
}();
|
|
6858
6851
|
var _useState10 = React.useState({}),
|
|
6859
6852
|
customFieldsInput = _useState10[0],
|
|
6860
6853
|
setCustomFieldsInput = _useState10[1];
|
|
@@ -8201,7 +8194,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
8201
8194
|
color: "inherit"
|
|
8202
8195
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8203
8196
|
component: "div",
|
|
8204
|
-
className: clsx(styles.pageHeader, scroll ? styles.scrolled : ''
|
|
8197
|
+
className: clsx(styles.pageHeader, scroll ? styles.scrolled : '')
|
|
8205
8198
|
}, !isProfile && /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8206
8199
|
component: "div",
|
|
8207
8200
|
className: styles.breadcrumb
|
|
@@ -10166,6 +10159,7 @@ var DropdownBtn = function DropdownBtn(props) {
|
|
|
10166
10159
|
anchorEl: anchorRef.current,
|
|
10167
10160
|
role: undefined,
|
|
10168
10161
|
transition: true,
|
|
10162
|
+
disablePortal: true,
|
|
10169
10163
|
style: {
|
|
10170
10164
|
zIndex: '9'
|
|
10171
10165
|
},
|
|
@@ -10700,11 +10694,9 @@ var UndoButton = function UndoButton(_ref) {
|
|
|
10700
10694
|
}, "UNDO"));
|
|
10701
10695
|
};
|
|
10702
10696
|
var UserList = function UserList(_ref2) {
|
|
10703
|
-
var _config$features;
|
|
10704
10697
|
var config = _ref2.config,
|
|
10705
10698
|
isProfile = _ref2.isProfile;
|
|
10706
10699
|
env$7.init(config, isProfile);
|
|
10707
|
-
var hideSignupRequestsTab = !!(config !== null && config !== void 0 && (_config$features = config.features) !== null && _config$features !== void 0 && _config$features.hideSignupRequestsTab);
|
|
10708
10700
|
var history = reactRouterDom.useHistory();
|
|
10709
10701
|
var _useSelector = reactRedux.useSelector(function (state) {
|
|
10710
10702
|
return state.userList;
|
|
@@ -11305,10 +11297,6 @@ var UserList = function UserList(_ref2) {
|
|
|
11305
11297
|
if (!isSearchingChange && !isSortingChange && !isSignUpSearchingChange && !isSignUpSortingChange) {
|
|
11306
11298
|
dispatch(showDataFetchingStatus());
|
|
11307
11299
|
dispatch(fetchUsersList(url)).then(function () {
|
|
11308
|
-
if (hideSignupRequestsTab) {
|
|
11309
|
-
dispatch(stopDataFetchingStatus());
|
|
11310
|
-
return;
|
|
11311
|
-
}
|
|
11312
11300
|
dispatch(fetchUserSignupRequests({
|
|
11313
11301
|
ordering: signup_order === 'asc' ? signup_orderBy : "-" + signup_orderBy,
|
|
11314
11302
|
length: signup_rowsPerPage,
|
|
@@ -11362,38 +11350,6 @@ var UserList = function UserList(_ref2) {
|
|
|
11362
11350
|
onClick: handleAddPageNavigation
|
|
11363
11351
|
})));
|
|
11364
11352
|
};
|
|
11365
|
-
var currentUsersPanel = /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
11366
|
-
style: {
|
|
11367
|
-
marginLeft: '-17px'
|
|
11368
|
-
}
|
|
11369
|
-
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
11370
|
-
component: "div",
|
|
11371
|
-
className: styles$6.headingWrapper
|
|
11372
|
-
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
11373
|
-
variant: "body2",
|
|
11374
|
-
className: clsx(styles$6.description)
|
|
11375
|
-
}, "Create new users, customize user permissions and manage user accounts")), /*#__PURE__*/React__default.createElement(StickyHeadTable, {
|
|
11376
|
-
data: userListInfo,
|
|
11377
|
-
handleChangeRowsPerPage: handleChangeRowsPerPage,
|
|
11378
|
-
handleChangePage: handleChangePage,
|
|
11379
|
-
page: page,
|
|
11380
|
-
rowsPerPage: rowsPerPage,
|
|
11381
|
-
handleActiveUser: handleActiveUser,
|
|
11382
|
-
handleSelectAllClick: handleSelectAllClick,
|
|
11383
|
-
selected: selected,
|
|
11384
|
-
handleSingleCheckBoxClick: handleSingleCheckBoxClick,
|
|
11385
|
-
orderBy: orderBy,
|
|
11386
|
-
order: order,
|
|
11387
|
-
onRequestSort: onRequestSort,
|
|
11388
|
-
onSearchHandler: onSearchHandler,
|
|
11389
|
-
onEditHandler: handleEditUserClick,
|
|
11390
|
-
disableRowCheckbox: deactivatedUsers,
|
|
11391
|
-
searchValue: searchValue,
|
|
11392
|
-
isILadmin: isILadmin,
|
|
11393
|
-
onPrimaryAdminHandler: onPrimaryAdminHandler,
|
|
11394
|
-
onResetPasswordHandler: onResetPasswordHandler,
|
|
11395
|
-
toggleInviteModal: toggleInviteModal
|
|
11396
|
-
}));
|
|
11397
11353
|
return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
11398
11354
|
component: "div",
|
|
11399
11355
|
className: styles$6.UUIUserManagementList
|
|
@@ -11468,7 +11424,7 @@ var UserList = function UserList(_ref2) {
|
|
|
11468
11424
|
alignItems: "center"
|
|
11469
11425
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
11470
11426
|
className: styles$6.tablewrapper
|
|
11471
|
-
},
|
|
11427
|
+
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITabs, {
|
|
11472
11428
|
value: tabValue,
|
|
11473
11429
|
customTabHandler: function customTabHandler(value) {
|
|
11474
11430
|
return dispatch(updateTabValue(value));
|
|
@@ -11478,7 +11434,38 @@ var UserList = function UserList(_ref2) {
|
|
|
11478
11434
|
label: /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, null, "Current users", ' ', /*#__PURE__*/React__default.createElement(TabLabelCount, {
|
|
11479
11435
|
count: userListInfo.count
|
|
11480
11436
|
}), ' '),
|
|
11481
|
-
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
|
+
}))
|
|
11482
11469
|
}, {
|
|
11483
11470
|
label: /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, null, "Sign-up requests", ' ', /*#__PURE__*/React__default.createElement(TabLabelCount, {
|
|
11484
11471
|
count: signupRequestListInfo.count
|