@itilite/iui-user-management 1.4.962 → 1.4.963-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 +42 -36
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +42 -36
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2821,7 +2821,6 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2821
2821
|
var timeDiff = cardExpDate.getTime() - currentDate.getTime();
|
|
2822
2822
|
var daysToExpire = Math.ceil(timeDiff / (1000 * 3600 * 24));
|
|
2823
2823
|
var expiresSoon = daysToExpire <= 30 && !isExpired;
|
|
2824
|
-
var showMenuButton = cardsCount === 1 || cardsCount > 1 && !isDefaultCard;
|
|
2825
2824
|
return /*#__PURE__*/React.createElement("div", {
|
|
2826
2825
|
key: card.id,
|
|
2827
2826
|
className: clsx(classes.card, classes[cardClass], (_clsx = {}, _clsx[classes.disabledCard] = isDisabled, _clsx))
|
|
@@ -2841,7 +2840,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2841
2840
|
className: classes.cardType
|
|
2842
2841
|
}, getCardTypeLabel(card.category), isDefaultCard && /*#__PURE__*/React.createElement("span", null, ' (Default)'))), isCompanyCard ? /*#__PURE__*/React.createElement(LockIcon, {
|
|
2843
2842
|
className: classes.lockIcon
|
|
2844
|
-
}) :
|
|
2843
|
+
}) : /*#__PURE__*/React.createElement(IconButton, {
|
|
2845
2844
|
size: "small",
|
|
2846
2845
|
onClick: function onClick(e) {
|
|
2847
2846
|
return handleMenuClick(e, card);
|
|
@@ -2850,7 +2849,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2850
2849
|
}, /*#__PURE__*/React.createElement(MoreIcon, {
|
|
2851
2850
|
className: clsx(classes.moreIcon, classes[cardClass]),
|
|
2852
2851
|
color: isCompanyCard ? '#2EA363' : '#3D89FF'
|
|
2853
|
-
}))
|
|
2852
|
+
})) ), /*#__PURE__*/React.createElement("div", {
|
|
2854
2853
|
className: classes.cardDetails
|
|
2855
2854
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2856
2855
|
className: classes.cardNumber
|
|
@@ -10688,9 +10687,11 @@ var UndoButton = function UndoButton(_ref) {
|
|
|
10688
10687
|
}, "UNDO"));
|
|
10689
10688
|
};
|
|
10690
10689
|
var UserList = function UserList(_ref2) {
|
|
10690
|
+
var _config$features;
|
|
10691
10691
|
var config = _ref2.config,
|
|
10692
10692
|
isProfile = _ref2.isProfile;
|
|
10693
10693
|
env$7.init(config, isProfile);
|
|
10694
|
+
var hideSignupRequestsTab = !!(config !== null && config !== void 0 && (_config$features = config.features) !== null && _config$features !== void 0 && _config$features.hideSignupRequestsTab);
|
|
10694
10695
|
var history = useHistory();
|
|
10695
10696
|
var _useSelector = useSelector(function (state) {
|
|
10696
10697
|
return state.userList;
|
|
@@ -11291,6 +11292,10 @@ var UserList = function UserList(_ref2) {
|
|
|
11291
11292
|
if (!isSearchingChange && !isSortingChange && !isSignUpSearchingChange && !isSignUpSortingChange) {
|
|
11292
11293
|
dispatch(showDataFetchingStatus());
|
|
11293
11294
|
dispatch(fetchUsersList(url)).then(function () {
|
|
11295
|
+
if (hideSignupRequestsTab) {
|
|
11296
|
+
dispatch(stopDataFetchingStatus());
|
|
11297
|
+
return;
|
|
11298
|
+
}
|
|
11294
11299
|
dispatch(fetchUserSignupRequests({
|
|
11295
11300
|
ordering: signup_order === 'asc' ? signup_orderBy : "-" + signup_orderBy,
|
|
11296
11301
|
length: signup_rowsPerPage,
|
|
@@ -11344,6 +11349,38 @@ var UserList = function UserList(_ref2) {
|
|
|
11344
11349
|
onClick: handleAddPageNavigation
|
|
11345
11350
|
})));
|
|
11346
11351
|
};
|
|
11352
|
+
var currentUsersPanel = /*#__PURE__*/React.createElement(IUIBox, {
|
|
11353
|
+
style: {
|
|
11354
|
+
marginLeft: '-17px'
|
|
11355
|
+
}
|
|
11356
|
+
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
11357
|
+
component: "div",
|
|
11358
|
+
className: styles$6.headingWrapper
|
|
11359
|
+
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
11360
|
+
variant: "body2",
|
|
11361
|
+
className: clsx(styles$6.description)
|
|
11362
|
+
}, "Create new users, customize user permissions and manage user accounts")), /*#__PURE__*/React.createElement(StickyHeadTable, {
|
|
11363
|
+
data: userListInfo,
|
|
11364
|
+
handleChangeRowsPerPage: handleChangeRowsPerPage,
|
|
11365
|
+
handleChangePage: handleChangePage,
|
|
11366
|
+
page: page,
|
|
11367
|
+
rowsPerPage: rowsPerPage,
|
|
11368
|
+
handleActiveUser: handleActiveUser,
|
|
11369
|
+
handleSelectAllClick: handleSelectAllClick,
|
|
11370
|
+
selected: selected,
|
|
11371
|
+
handleSingleCheckBoxClick: handleSingleCheckBoxClick,
|
|
11372
|
+
orderBy: orderBy,
|
|
11373
|
+
order: order,
|
|
11374
|
+
onRequestSort: onRequestSort,
|
|
11375
|
+
onSearchHandler: onSearchHandler,
|
|
11376
|
+
onEditHandler: handleEditUserClick,
|
|
11377
|
+
disableRowCheckbox: deactivatedUsers,
|
|
11378
|
+
searchValue: searchValue,
|
|
11379
|
+
isILadmin: isILadmin,
|
|
11380
|
+
onPrimaryAdminHandler: onPrimaryAdminHandler,
|
|
11381
|
+
onResetPasswordHandler: onResetPasswordHandler,
|
|
11382
|
+
toggleInviteModal: toggleInviteModal
|
|
11383
|
+
}));
|
|
11347
11384
|
return /*#__PURE__*/React.createElement(IUIBox, {
|
|
11348
11385
|
component: "div",
|
|
11349
11386
|
className: styles$6.UUIUserManagementList
|
|
@@ -11418,7 +11455,7 @@ var UserList = function UserList(_ref2) {
|
|
|
11418
11455
|
alignItems: "center"
|
|
11419
11456
|
})), /*#__PURE__*/React.createElement(IUIBox, {
|
|
11420
11457
|
className: styles$6.tablewrapper
|
|
11421
|
-
}, /*#__PURE__*/React.createElement(IUITabs, {
|
|
11458
|
+
}, hideSignupRequestsTab ? currentUsersPanel : /*#__PURE__*/React.createElement(IUITabs, {
|
|
11422
11459
|
value: tabValue,
|
|
11423
11460
|
customTabHandler: function customTabHandler(value) {
|
|
11424
11461
|
return dispatch(updateTabValue(value));
|
|
@@ -11428,38 +11465,7 @@ var UserList = function UserList(_ref2) {
|
|
|
11428
11465
|
label: /*#__PURE__*/React.createElement(IUIBox, null, "Current users", ' ', /*#__PURE__*/React.createElement(TabLabelCount, {
|
|
11429
11466
|
count: userListInfo.count
|
|
11430
11467
|
}), ' '),
|
|
11431
|
-
content:
|
|
11432
|
-
style: {
|
|
11433
|
-
marginLeft: '-17px'
|
|
11434
|
-
}
|
|
11435
|
-
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
11436
|
-
component: "div",
|
|
11437
|
-
className: styles$6.headingWrapper
|
|
11438
|
-
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
11439
|
-
variant: "body2",
|
|
11440
|
-
className: clsx(styles$6.description)
|
|
11441
|
-
}, "Create new users, customize user permissions and manage user accounts")), /*#__PURE__*/React.createElement(StickyHeadTable, {
|
|
11442
|
-
data: userListInfo,
|
|
11443
|
-
handleChangeRowsPerPage: handleChangeRowsPerPage,
|
|
11444
|
-
handleChangePage: handleChangePage,
|
|
11445
|
-
page: page,
|
|
11446
|
-
rowsPerPage: rowsPerPage,
|
|
11447
|
-
handleActiveUser: handleActiveUser,
|
|
11448
|
-
handleSelectAllClick: handleSelectAllClick,
|
|
11449
|
-
selected: selected,
|
|
11450
|
-
handleSingleCheckBoxClick: handleSingleCheckBoxClick,
|
|
11451
|
-
orderBy: orderBy,
|
|
11452
|
-
order: order,
|
|
11453
|
-
onRequestSort: onRequestSort,
|
|
11454
|
-
onSearchHandler: onSearchHandler,
|
|
11455
|
-
onEditHandler: handleEditUserClick,
|
|
11456
|
-
disableRowCheckbox: deactivatedUsers,
|
|
11457
|
-
searchValue: searchValue,
|
|
11458
|
-
isILadmin: isILadmin,
|
|
11459
|
-
onPrimaryAdminHandler: onPrimaryAdminHandler,
|
|
11460
|
-
onResetPasswordHandler: onResetPasswordHandler,
|
|
11461
|
-
toggleInviteModal: toggleInviteModal
|
|
11462
|
-
}))
|
|
11468
|
+
content: currentUsersPanel
|
|
11463
11469
|
}, {
|
|
11464
11470
|
label: /*#__PURE__*/React.createElement(IUIBox, null, "Sign-up requests", ' ', /*#__PURE__*/React.createElement(TabLabelCount, {
|
|
11465
11471
|
count: signupRequestListInfo.count
|