@itilite/iui-user-management 1.4.962 → 1.4.963-beta.3
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 +53 -37
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +53 -37
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -187,7 +187,17 @@ function _finallyRethrows(body, finalizer) {
|
|
|
187
187
|
|
|
188
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
|
-
function r(e)
|
|
190
|
+
function r(e) {
|
|
191
|
+
var t,
|
|
192
|
+
f,
|
|
193
|
+
n = "";
|
|
194
|
+
if ("string" == typeof e || "number" == typeof e) n += e;else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
195
|
+
return n;
|
|
196
|
+
}
|
|
197
|
+
function clsx() {
|
|
198
|
+
for (var e, t, f = 0, n = ""; f < arguments.length;) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
199
|
+
return n;
|
|
200
|
+
}
|
|
191
201
|
|
|
192
202
|
var GetInputType = React__default.forwardRef(function (props, ref) {
|
|
193
203
|
var _p = props._p,
|
|
@@ -2824,7 +2834,6 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2824
2834
|
var timeDiff = cardExpDate.getTime() - currentDate.getTime();
|
|
2825
2835
|
var daysToExpire = Math.ceil(timeDiff / (1000 * 3600 * 24));
|
|
2826
2836
|
var expiresSoon = daysToExpire <= 30 && !isExpired;
|
|
2827
|
-
var showMenuButton = cardsCount === 1 || cardsCount > 1 && !isDefaultCard;
|
|
2828
2837
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2829
2838
|
key: card.id,
|
|
2830
2839
|
className: clsx(classes.card, classes[cardClass], (_clsx = {}, _clsx[classes.disabledCard] = isDisabled, _clsx))
|
|
@@ -2844,7 +2853,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2844
2853
|
className: classes.cardType
|
|
2845
2854
|
}, getCardTypeLabel(card.category), isDefaultCard && /*#__PURE__*/React__default.createElement("span", null, ' (Default)'))), isCompanyCard ? /*#__PURE__*/React__default.createElement(LockIcon, {
|
|
2846
2855
|
className: classes.lockIcon
|
|
2847
|
-
}) :
|
|
2856
|
+
}) : /*#__PURE__*/React__default.createElement(core.IconButton, {
|
|
2848
2857
|
size: "small",
|
|
2849
2858
|
onClick: function onClick(e) {
|
|
2850
2859
|
return handleMenuClick(e, card);
|
|
@@ -2853,7 +2862,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2853
2862
|
}, /*#__PURE__*/React__default.createElement(MoreIcon, {
|
|
2854
2863
|
className: clsx(classes.moreIcon, classes[cardClass]),
|
|
2855
2864
|
color: isCompanyCard ? '#2EA363' : '#3D89FF'
|
|
2856
|
-
}))
|
|
2865
|
+
})) ), /*#__PURE__*/React__default.createElement("div", {
|
|
2857
2866
|
className: classes.cardDetails
|
|
2858
2867
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2859
2868
|
className: classes.cardNumber
|
|
@@ -10691,9 +10700,11 @@ var UndoButton = function UndoButton(_ref) {
|
|
|
10691
10700
|
}, "UNDO"));
|
|
10692
10701
|
};
|
|
10693
10702
|
var UserList = function UserList(_ref2) {
|
|
10703
|
+
var _config$features;
|
|
10694
10704
|
var config = _ref2.config,
|
|
10695
10705
|
isProfile = _ref2.isProfile;
|
|
10696
10706
|
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);
|
|
10697
10708
|
var history = reactRouterDom.useHistory();
|
|
10698
10709
|
var _useSelector = reactRedux.useSelector(function (state) {
|
|
10699
10710
|
return state.userList;
|
|
@@ -11294,6 +11305,10 @@ var UserList = function UserList(_ref2) {
|
|
|
11294
11305
|
if (!isSearchingChange && !isSortingChange && !isSignUpSearchingChange && !isSignUpSortingChange) {
|
|
11295
11306
|
dispatch(showDataFetchingStatus());
|
|
11296
11307
|
dispatch(fetchUsersList(url)).then(function () {
|
|
11308
|
+
if (hideSignupRequestsTab) {
|
|
11309
|
+
dispatch(stopDataFetchingStatus());
|
|
11310
|
+
return;
|
|
11311
|
+
}
|
|
11297
11312
|
dispatch(fetchUserSignupRequests({
|
|
11298
11313
|
ordering: signup_order === 'asc' ? signup_orderBy : "-" + signup_orderBy,
|
|
11299
11314
|
length: signup_rowsPerPage,
|
|
@@ -11347,6 +11362,38 @@ var UserList = function UserList(_ref2) {
|
|
|
11347
11362
|
onClick: handleAddPageNavigation
|
|
11348
11363
|
})));
|
|
11349
11364
|
};
|
|
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
|
+
}));
|
|
11350
11397
|
return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
11351
11398
|
component: "div",
|
|
11352
11399
|
className: styles$6.UUIUserManagementList
|
|
@@ -11421,7 +11468,7 @@ var UserList = function UserList(_ref2) {
|
|
|
11421
11468
|
alignItems: "center"
|
|
11422
11469
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
11423
11470
|
className: styles$6.tablewrapper
|
|
11424
|
-
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITabs, {
|
|
11471
|
+
}, hideSignupRequestsTab ? currentUsersPanel : /*#__PURE__*/React__default.createElement(iuistyles.IUITabs, {
|
|
11425
11472
|
value: tabValue,
|
|
11426
11473
|
customTabHandler: function customTabHandler(value) {
|
|
11427
11474
|
return dispatch(updateTabValue(value));
|
|
@@ -11431,38 +11478,7 @@ var UserList = function UserList(_ref2) {
|
|
|
11431
11478
|
label: /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, null, "Current users", ' ', /*#__PURE__*/React__default.createElement(TabLabelCount, {
|
|
11432
11479
|
count: userListInfo.count
|
|
11433
11480
|
}), ' '),
|
|
11434
|
-
content:
|
|
11435
|
-
style: {
|
|
11436
|
-
marginLeft: '-17px'
|
|
11437
|
-
}
|
|
11438
|
-
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
11439
|
-
component: "div",
|
|
11440
|
-
className: styles$6.headingWrapper
|
|
11441
|
-
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
11442
|
-
variant: "body2",
|
|
11443
|
-
className: clsx(styles$6.description)
|
|
11444
|
-
}, "Create new users, customize user permissions and manage user accounts")), /*#__PURE__*/React__default.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
|
-
}))
|
|
11481
|
+
content: currentUsersPanel
|
|
11466
11482
|
}, {
|
|
11467
11483
|
label: /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, null, "Sign-up requests", ' ', /*#__PURE__*/React__default.createElement(TabLabelCount, {
|
|
11468
11484
|
count: signupRequestListInfo.count
|