@itilite/iui-user-management 1.5.12 → 1.5.14
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 +19 -0
- package/dist/index.js +72 -66
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +76 -70
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IUIAsyncSelect, IUIBox, IUILabel, IUIFileUpload, IUICheckboxButton, IUIPhone, IUISelect, IUIDatePicker, IUIInput, IUIGrid, IUIDivider, IUITypography, IUITooltip, IUIRadio, IUIButton, IUIModal, IUISearch, IUICircularProgress, IUIAccordion, IUIAccordionSummary, IUIAccordionDetails, IUICard, IUIBackdrop, IUIBreadCrumb, IUIDropdownButton, IUIDropzone, IUIStepper, IUIIconButton, IUIFormControlLabel, IUICheckBox, IUIPrimaryRadio, IUITable, IUISkeleton, IUIProfileBox, IUIFormGroup, IUITabs } from '@itilite/iuistyles';
|
|
2
|
-
import React, { useState,
|
|
2
|
+
import React, { useState, Fragment as Fragment$1, useEffect, memo, useRef } from 'react';
|
|
3
3
|
import { configs, services, utilUrls } from '@itilite/utils';
|
|
4
4
|
import axios from 'axios';
|
|
5
|
-
import { IconButton, Menu, MenuItem, Popper, Grow, Paper, ClickAwayListener, MenuList, Typography, Box } from '@material-ui/core';
|
|
5
|
+
import { Tooltip, IconButton, Menu, MenuItem, Popper, Grow, Paper, ClickAwayListener, MenuList, Typography, Box } from '@material-ui/core';
|
|
6
6
|
import { useDispatch, useSelector, Provider } from 'react-redux';
|
|
7
7
|
import { combineReducers, createStore, applyMiddleware } from 'redux';
|
|
8
8
|
import thunk from 'redux-thunk';
|
|
@@ -10,7 +10,7 @@ import moment from 'moment';
|
|
|
10
10
|
import { composeWithDevTools } from 'redux-devtools-extension';
|
|
11
11
|
import { useParams, useHistory, useLocation } from 'react-router-dom';
|
|
12
12
|
import { withStyles, makeStyles } from '@material-ui/core/styles';
|
|
13
|
-
import Tooltip from '@material-ui/core/Tooltip';
|
|
13
|
+
import Tooltip$1 from '@material-ui/core/Tooltip';
|
|
14
14
|
import Switch from '@material-ui/core/Switch';
|
|
15
15
|
import MoreHorizIcon from '@material-ui/icons/MoreHoriz';
|
|
16
16
|
import Button from '@material-ui/core/Button';
|
|
@@ -182,7 +182,7 @@ function _finallyRethrows(body, finalizer) {
|
|
|
182
182
|
return finalizer(false, result);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
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"};
|
|
185
|
+
var styles = {"UUIUserManagementAddEdit":"_3n-WG","pageHeader":"_3qWcA","buttonWrapper":"_1IP9P","scrolled":"_m8f96","pageHeaderIframe":"_1D2-R","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"};
|
|
186
186
|
|
|
187
187
|
function r(e) {
|
|
188
188
|
var t,
|
|
@@ -420,9 +420,6 @@ var userAddEditUrl = {
|
|
|
420
420
|
setDefaultCard: function setDefaultCard(pmId, vendorId) {
|
|
421
421
|
return env.getPaymentUrl() + "/api/v1/card/default";
|
|
422
422
|
},
|
|
423
|
-
personalCardEligibility: function personalCardEligibility() {
|
|
424
|
-
return env.getPaymentUrl() + "/api/v1/card/clients/" + IUILocalStorageService.getClientId() + "/personal/eligibility?app_type=1";
|
|
425
|
-
},
|
|
426
423
|
disablePaymentCard: function disablePaymentCard() {
|
|
427
424
|
return env.getPaymentUrl() + "/api/v1/card/status";
|
|
428
425
|
},
|
|
@@ -842,7 +839,7 @@ var UserRole = function UserRole(_ref) {
|
|
|
842
839
|
|
|
843
840
|
var styles$1 = {"defaultLabel":"_smjc4","card":"_3_S9J","cardNumber":"_36E9M","cardDigit":"_2pm-T","expiryDate":"_2tBnF","cardImage":"_3QvZh","visa":"_1IpBm","mastercard":"_2x6IX","amex":"_2a38S","discover":"_2vksl","diners":"_2kQRs","jcb":"_2bO1f","unionpay":"_2_jfu","is_nothing":"_1Lrzs","addCard":"_3711U","cardDeleteBtn":"_7Da2t","cardLabel":"_PQTex","defaultBtn":"_1_ArA","cursonPointer":"_1L115","sectionWrapper":"_VpUCK","margin":"_1Fs_D","minGridWidth":"_1hl-Z","firstRowMargin":"_1WZZj","firstChildMargin":"_IT_O_","paddingTop":"_Mhnl7","dividerColor":"_3ltFd"};
|
|
844
841
|
|
|
845
|
-
var classes = {"disabledCard":"_3MVKj","expiredLabel":"_2_sgJ","expiresoonLabel":"_3G7La","sectionHeader":"_2d_OH","myCardsSection":"_3MNHj","companyCardsSection":"_34lN6","disabledNotice":"_1yV0j","cardsGrid":"_1oHGu","card":"_3ZTQc","moreIcon":"_3utA0","personal":"_duePd","corporate":"_3O33a","company":"_180_L","cardHeader":"_1eF61","cardTitleSection":"_2c40W","cardMaskedNumber":"_2Vlhq","cardName":"_bp-Mt","cardAlias":"_19m4v","cardType":"_3l4HZ","menuButton":"_3TTEn","lockIcon":"_1S27X","cardDetails":"_IP2rg","cardNumber":"_7FOPe","cardExpiry":"_CI_p2","cardCvv":"_3Gzqu","cardUnhide":"_ivgBf","cardFooter":"_1WgPL","brandLogo":"_EV0l8","addCardButton":"_1oaCc","plusIcon":"_w9L5L"};
|
|
842
|
+
var classes = {"disabledCard":"_3MVKj","expiredLabel":"_2_sgJ","invalidLabel":"_1Oqzs","expiresoonLabel":"_3G7La","sectionHeader":"_2d_OH","myCardsSection":"_3MNHj","companyCardsSection":"_34lN6","disabledNotice":"_1yV0j","cardsGrid":"_1oHGu","card":"_3ZTQc","moreIcon":"_3utA0","personal":"_duePd","corporate":"_3O33a","company":"_180_L","cardHeader":"_1eF61","cardTitleSection":"_2c40W","cardMaskedNumber":"_2Vlhq","cardName":"_bp-Mt","cardAlias":"_19m4v","cardType":"_3l4HZ","menuButton":"_3TTEn","lockIcon":"_1S27X","cardDetails":"_IP2rg","cardNumber":"_7FOPe","cardExpiry":"_CI_p2","cardCvv":"_3Gzqu","cardUnhide":"_ivgBf","cardFooter":"_1WgPL","brandLogo":"_EV0l8","addCardButton":"_1oaCc","plusIcon":"_w9L5L"};
|
|
846
843
|
|
|
847
844
|
var SHOW_LOADER = 'SHOW_LOADER';
|
|
848
845
|
var STOP_LOADER = 'STOP_LOADER';
|
|
@@ -2663,9 +2660,14 @@ var Visa = function Visa(props) {
|
|
|
2663
2660
|
}))));
|
|
2664
2661
|
};
|
|
2665
2662
|
|
|
2663
|
+
var CARDS_DISABLED = {
|
|
2664
|
+
DISABLED: '0',
|
|
2665
|
+
EXPIRED: '2',
|
|
2666
|
+
INVALID: '3'
|
|
2667
|
+
};
|
|
2668
|
+
|
|
2666
2669
|
var IUILocalStorageService$3 = services.IUILocalStorageService;
|
|
2667
|
-
var env$3 = configs.env
|
|
2668
|
-
paymentApi$1 = configs.paymentApi;
|
|
2670
|
+
var env$3 = configs.env;
|
|
2669
2671
|
var CardsManagement = function CardsManagement(_ref) {
|
|
2670
2672
|
var _selectedCard$metadat, _pg$gateway;
|
|
2671
2673
|
var _ref$paymentDetails = _ref.paymentDetails,
|
|
@@ -2686,23 +2688,6 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2686
2688
|
var _useState2 = useState(null),
|
|
2687
2689
|
selectedCard = _useState2[0],
|
|
2688
2690
|
setSelectedCard = _useState2[1];
|
|
2689
|
-
var _useState3 = useState(false),
|
|
2690
|
-
allowPersonalCardAdd = _useState3[0],
|
|
2691
|
-
setAllowPersonalCardAdd = _useState3[1];
|
|
2692
|
-
useEffect(function () {
|
|
2693
|
-
var isActive = true;
|
|
2694
|
-
paymentApi$1.get(userAddEditUrl.personalCardEligibility()).then(function (res) {
|
|
2695
|
-
if (isActive) {
|
|
2696
|
-
var _res$data, _res$data$data;
|
|
2697
|
-
setAllowPersonalCardAdd((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$data = _res$data.data) === null || _res$data$data === void 0 ? void 0 : _res$data$data.allow_personal_card_add) === true);
|
|
2698
|
-
}
|
|
2699
|
-
})["catch"](function () {
|
|
2700
|
-
if (isActive) setAllowPersonalCardAdd(false);
|
|
2701
|
-
});
|
|
2702
|
-
return function () {
|
|
2703
|
-
isActive = false;
|
|
2704
|
-
};
|
|
2705
|
-
}, []);
|
|
2706
2691
|
var handleMenuClick = function handleMenuClick(event, card) {
|
|
2707
2692
|
setAnchorEl(event.currentTarget);
|
|
2708
2693
|
setSelectedCard(card);
|
|
@@ -2837,14 +2822,20 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2837
2822
|
var isCompanyCard = (card === null || card === void 0 ? void 0 : card.category) === 'Company';
|
|
2838
2823
|
var cardClass = getCardTypeClass(card === null || card === void 0 ? void 0 : card.category);
|
|
2839
2824
|
var isDefaultCard = !!+(card === null || card === void 0 ? void 0 : (_card$metadata = card.metadata) === null || _card$metadata === void 0 ? void 0 : _card$metadata.default_card);
|
|
2840
|
-
var isExpired = card.metadata.is_enabled ===
|
|
2841
|
-
var
|
|
2825
|
+
var isExpired = card.metadata.is_enabled === CARDS_DISABLED.EXPIRED;
|
|
2826
|
+
var isInvalid = card.metadata.is_enabled === CARDS_DISABLED.INVALID;
|
|
2827
|
+
var isDisabled = card.metadata.is_enabled === CARDS_DISABLED.DISABLED || isExpired || isInvalid;
|
|
2842
2828
|
var currentDate = new Date();
|
|
2843
2829
|
var cardExpDate = new Date(parseInt(card.card.exp_year, 10), parseInt(card.card.exp_month, 10) - 1);
|
|
2844
2830
|
var timeDiff = cardExpDate.getTime() - currentDate.getTime();
|
|
2845
2831
|
var daysToExpire = Math.ceil(timeDiff / (1000 * 3600 * 24));
|
|
2846
2832
|
var expiresSoon = daysToExpire <= 30 && !isExpired;
|
|
2847
|
-
return /*#__PURE__*/React.createElement(
|
|
2833
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
2834
|
+
title: isInvalid ? 'This card is invalid, because you have been issued a new card.' : null,
|
|
2835
|
+
disableHoverListener: !isInvalid,
|
|
2836
|
+
placement: "top",
|
|
2837
|
+
arrow: true
|
|
2838
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2848
2839
|
key: card.id,
|
|
2849
2840
|
className: clsx(classes.card, classes[cardClass], (_clsx = {}, _clsx[classes.disabledCard] = isDisabled, _clsx))
|
|
2850
2841
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -2857,7 +2848,9 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2857
2848
|
className: classes.cardAlias
|
|
2858
2849
|
}, card === null || card === void 0 ? void 0 : card.alias), isExpired && /*#__PURE__*/React.createElement("span", {
|
|
2859
2850
|
className: classes.expiredLabel
|
|
2860
|
-
}, "Expired"),
|
|
2851
|
+
}, "Expired"), isInvalid && /*#__PURE__*/React.createElement("span", {
|
|
2852
|
+
className: classes.invalidLabel
|
|
2853
|
+
}, "Invalid"), expiresSoon && !isInvalid && /*#__PURE__*/React.createElement("span", {
|
|
2861
2854
|
className: clsx(classes.expiresoonLabel, classes.expiredLabel)
|
|
2862
2855
|
}, "Expires Soon")), /*#__PURE__*/React.createElement("span", {
|
|
2863
2856
|
className: classes.cardType
|
|
@@ -2884,7 +2877,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2884
2877
|
className: classes.cardCvv
|
|
2885
2878
|
}, "CVV \u2022\u2022\u2022")), /*#__PURE__*/React.createElement("div", {
|
|
2886
2879
|
className: classes.cardFooter
|
|
2887
|
-
}, /*#__PURE__*/React.createElement("div", null), getBrandLogo(card === null || card === void 0 ? void 0 : (_card$card4 = card.card) === null || _card$card4 === void 0 ? void 0 : _card$card4.brand)));
|
|
2880
|
+
}, /*#__PURE__*/React.createElement("div", null), getBrandLogo(card === null || card === void 0 ? void 0 : (_card$card4 = card.card) === null || _card$card4 === void 0 ? void 0 : _card$card4.brand))));
|
|
2888
2881
|
};
|
|
2889
2882
|
var _url = env$3.getPaymentUrl() + ("/api/v1/auth/" + IUILocalStorageService$3.getAccessToken() + "/1/" + pg.entity_id + "/0/" + pg.vendor_id + "/1");
|
|
2890
2883
|
var showMenuButton = cardsCount === 1 || cardsCount > 1 && !+(selectedCard === null || selectedCard === void 0 ? void 0 : (_selectedCard$metadat = selectedCard.metadata) === null || _selectedCard$metadat === void 0 ? void 0 : _selectedCard$metadat.default_card);
|
|
@@ -2920,7 +2913,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2920
2913
|
return renderCard(card);
|
|
2921
2914
|
}) : null, corporateCards.length !== 0 ? corporateCards === null || corporateCards === void 0 ? void 0 : corporateCards.map(function (card) {
|
|
2922
2915
|
return renderCard(card);
|
|
2923
|
-
}) : null), (!cards || cardsCount < 10) && (pg === null || pg === void 0 ? void 0 : (_pg$gateway = pg.gateway) === null || _pg$gateway === void 0 ? void 0 : _pg$gateway.toLowerCase()) === 'stripe' && (pg === null || pg === void 0 ? void 0 : pg.save_card_enable) === 1 && paymentMethod === 1 &&
|
|
2916
|
+
}) : null), console.log('cards', cards, 'cardsCount', cardsCount, pg), (!cards || cardsCount < 10) && (pg === null || pg === void 0 ? void 0 : (_pg$gateway = pg.gateway) === null || _pg$gateway === void 0 ? void 0 : _pg$gateway.toLowerCase()) === 'stripe' && (pg === null || pg === void 0 ? void 0 : pg.save_card_enable) === 1 && paymentMethod === 1 && /*#__PURE__*/React.createElement("button", {
|
|
2924
2917
|
className: classes.addCardButton,
|
|
2925
2918
|
onClick: function onClick() {
|
|
2926
2919
|
sendLog({
|
|
@@ -2969,7 +2962,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2969
2962
|
vertical: 'top',
|
|
2970
2963
|
horizontal: 'right'
|
|
2971
2964
|
}
|
|
2972
|
-
}, selectedCard && selectedCard.metadata.is_enabled !==
|
|
2965
|
+
}, selectedCard && selectedCard.metadata.is_enabled !== CARDS_DISABLED.DISABLED && selectedCard.metadata.is_enabled !== CARDS_DISABLED.EXPIRED && selectedCard.metadata.is_enabled !== CARDS_DISABLED.INVALID && !+selectedCard.metadata.default_card && /*#__PURE__*/React.createElement(MenuItem, {
|
|
2973
2966
|
onClick: handleMarkAsDefault
|
|
2974
2967
|
}, "Mark as default"), showMenuButton && /*#__PURE__*/React.createElement(MenuItem, {
|
|
2975
2968
|
onClick: handleDeleteCard,
|
|
@@ -6866,6 +6859,13 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6866
6859
|
var _useState9 = useState(false),
|
|
6867
6860
|
scroll = _useState9[0],
|
|
6868
6861
|
setScroll = _useState9[1];
|
|
6862
|
+
var isInsideIframe = function () {
|
|
6863
|
+
try {
|
|
6864
|
+
return window.self !== window.top;
|
|
6865
|
+
} catch (e) {
|
|
6866
|
+
return true;
|
|
6867
|
+
}
|
|
6868
|
+
}();
|
|
6869
6869
|
var _useState10 = useState({}),
|
|
6870
6870
|
customFieldsInput = _useState10[0],
|
|
6871
6871
|
setCustomFieldsInput = _useState10[1];
|
|
@@ -8212,7 +8212,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
8212
8212
|
color: "inherit"
|
|
8213
8213
|
})), /*#__PURE__*/React.createElement(IUIBox, {
|
|
8214
8214
|
component: "div",
|
|
8215
|
-
className: clsx(styles.pageHeader, scroll ? styles.scrolled : '')
|
|
8215
|
+
className: clsx(styles.pageHeader, scroll ? styles.scrolled : '', isInsideIframe ? styles.pageHeaderIframe : '')
|
|
8216
8216
|
}, !isProfile && /*#__PURE__*/React.createElement(IUIBox, {
|
|
8217
8217
|
component: "div",
|
|
8218
8218
|
className: styles.breadcrumb
|
|
@@ -10177,7 +10177,6 @@ var DropdownBtn = function DropdownBtn(props) {
|
|
|
10177
10177
|
anchorEl: anchorRef.current,
|
|
10178
10178
|
role: undefined,
|
|
10179
10179
|
transition: true,
|
|
10180
|
-
disablePortal: true,
|
|
10181
10180
|
style: {
|
|
10182
10181
|
zIndex: '9'
|
|
10183
10182
|
},
|
|
@@ -10334,7 +10333,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
10334
10333
|
return /*#__PURE__*/React.createElement(IUIBox, {
|
|
10335
10334
|
component: "div",
|
|
10336
10335
|
width: 80
|
|
10337
|
-
}, row && row.has_visited === 0 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
10336
|
+
}, row && row.has_visited === 0 ? /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
10338
10337
|
title: "This user hasn't logged in to the platform yet",
|
|
10339
10338
|
arrow: true,
|
|
10340
10339
|
classes: {
|
|
@@ -10712,9 +10711,11 @@ var UndoButton = function UndoButton(_ref) {
|
|
|
10712
10711
|
}, "UNDO"));
|
|
10713
10712
|
};
|
|
10714
10713
|
var UserList = function UserList(_ref2) {
|
|
10714
|
+
var _config$features;
|
|
10715
10715
|
var config = _ref2.config,
|
|
10716
10716
|
isProfile = _ref2.isProfile;
|
|
10717
10717
|
env$7.init(config, isProfile);
|
|
10718
|
+
var hideSignupRequestsTab = !!(config !== null && config !== void 0 && (_config$features = config.features) !== null && _config$features !== void 0 && _config$features.hideSignupRequestsTab);
|
|
10718
10719
|
var history = useHistory();
|
|
10719
10720
|
var _useSelector = useSelector(function (state) {
|
|
10720
10721
|
return state.userList;
|
|
@@ -11315,6 +11316,10 @@ var UserList = function UserList(_ref2) {
|
|
|
11315
11316
|
if (!isSearchingChange && !isSortingChange && !isSignUpSearchingChange && !isSignUpSortingChange) {
|
|
11316
11317
|
dispatch(showDataFetchingStatus());
|
|
11317
11318
|
dispatch(fetchUsersList(url)).then(function () {
|
|
11319
|
+
if (hideSignupRequestsTab) {
|
|
11320
|
+
dispatch(stopDataFetchingStatus());
|
|
11321
|
+
return;
|
|
11322
|
+
}
|
|
11318
11323
|
dispatch(fetchUserSignupRequests({
|
|
11319
11324
|
ordering: signup_order === 'asc' ? signup_orderBy : "-" + signup_orderBy,
|
|
11320
11325
|
length: signup_rowsPerPage,
|
|
@@ -11368,6 +11373,38 @@ var UserList = function UserList(_ref2) {
|
|
|
11368
11373
|
onClick: handleAddPageNavigation
|
|
11369
11374
|
})));
|
|
11370
11375
|
};
|
|
11376
|
+
var currentUsersPanel = /*#__PURE__*/React.createElement(IUIBox, {
|
|
11377
|
+
style: {
|
|
11378
|
+
marginLeft: '-17px'
|
|
11379
|
+
}
|
|
11380
|
+
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
11381
|
+
component: "div",
|
|
11382
|
+
className: styles$6.headingWrapper
|
|
11383
|
+
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
11384
|
+
variant: "body2",
|
|
11385
|
+
className: clsx(styles$6.description)
|
|
11386
|
+
}, "Create new users, customize user permissions and manage user accounts")), /*#__PURE__*/React.createElement(StickyHeadTable, {
|
|
11387
|
+
data: userListInfo,
|
|
11388
|
+
handleChangeRowsPerPage: handleChangeRowsPerPage,
|
|
11389
|
+
handleChangePage: handleChangePage,
|
|
11390
|
+
page: page,
|
|
11391
|
+
rowsPerPage: rowsPerPage,
|
|
11392
|
+
handleActiveUser: handleActiveUser,
|
|
11393
|
+
handleSelectAllClick: handleSelectAllClick,
|
|
11394
|
+
selected: selected,
|
|
11395
|
+
handleSingleCheckBoxClick: handleSingleCheckBoxClick,
|
|
11396
|
+
orderBy: orderBy,
|
|
11397
|
+
order: order,
|
|
11398
|
+
onRequestSort: onRequestSort,
|
|
11399
|
+
onSearchHandler: onSearchHandler,
|
|
11400
|
+
onEditHandler: handleEditUserClick,
|
|
11401
|
+
disableRowCheckbox: deactivatedUsers,
|
|
11402
|
+
searchValue: searchValue,
|
|
11403
|
+
isILadmin: isILadmin,
|
|
11404
|
+
onPrimaryAdminHandler: onPrimaryAdminHandler,
|
|
11405
|
+
onResetPasswordHandler: onResetPasswordHandler,
|
|
11406
|
+
toggleInviteModal: toggleInviteModal
|
|
11407
|
+
}));
|
|
11371
11408
|
return /*#__PURE__*/React.createElement(IUIBox, {
|
|
11372
11409
|
component: "div",
|
|
11373
11410
|
className: styles$6.UUIUserManagementList
|
|
@@ -11442,7 +11479,7 @@ var UserList = function UserList(_ref2) {
|
|
|
11442
11479
|
alignItems: "center"
|
|
11443
11480
|
})), /*#__PURE__*/React.createElement(IUIBox, {
|
|
11444
11481
|
className: styles$6.tablewrapper
|
|
11445
|
-
}, /*#__PURE__*/React.createElement(IUITabs, {
|
|
11482
|
+
}, hideSignupRequestsTab ? currentUsersPanel : /*#__PURE__*/React.createElement(IUITabs, {
|
|
11446
11483
|
value: tabValue,
|
|
11447
11484
|
customTabHandler: function customTabHandler(value) {
|
|
11448
11485
|
return dispatch(updateTabValue(value));
|
|
@@ -11452,38 +11489,7 @@ var UserList = function UserList(_ref2) {
|
|
|
11452
11489
|
label: /*#__PURE__*/React.createElement(IUIBox, null, "Current users", ' ', /*#__PURE__*/React.createElement(TabLabelCount, {
|
|
11453
11490
|
count: userListInfo.count
|
|
11454
11491
|
}), ' '),
|
|
11455
|
-
content:
|
|
11456
|
-
style: {
|
|
11457
|
-
marginLeft: '-17px'
|
|
11458
|
-
}
|
|
11459
|
-
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
11460
|
-
component: "div",
|
|
11461
|
-
className: styles$6.headingWrapper
|
|
11462
|
-
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
11463
|
-
variant: "body2",
|
|
11464
|
-
className: clsx(styles$6.description)
|
|
11465
|
-
}, "Create new users, customize user permissions and manage user accounts")), /*#__PURE__*/React.createElement(StickyHeadTable, {
|
|
11466
|
-
data: userListInfo,
|
|
11467
|
-
handleChangeRowsPerPage: handleChangeRowsPerPage,
|
|
11468
|
-
handleChangePage: handleChangePage,
|
|
11469
|
-
page: page,
|
|
11470
|
-
rowsPerPage: rowsPerPage,
|
|
11471
|
-
handleActiveUser: handleActiveUser,
|
|
11472
|
-
handleSelectAllClick: handleSelectAllClick,
|
|
11473
|
-
selected: selected,
|
|
11474
|
-
handleSingleCheckBoxClick: handleSingleCheckBoxClick,
|
|
11475
|
-
orderBy: orderBy,
|
|
11476
|
-
order: order,
|
|
11477
|
-
onRequestSort: onRequestSort,
|
|
11478
|
-
onSearchHandler: onSearchHandler,
|
|
11479
|
-
onEditHandler: handleEditUserClick,
|
|
11480
|
-
disableRowCheckbox: deactivatedUsers,
|
|
11481
|
-
searchValue: searchValue,
|
|
11482
|
-
isILadmin: isILadmin,
|
|
11483
|
-
onPrimaryAdminHandler: onPrimaryAdminHandler,
|
|
11484
|
-
onResetPasswordHandler: onResetPasswordHandler,
|
|
11485
|
-
toggleInviteModal: toggleInviteModal
|
|
11486
|
-
}))
|
|
11492
|
+
content: currentUsersPanel
|
|
11487
11493
|
}, {
|
|
11488
11494
|
label: /*#__PURE__*/React.createElement(IUIBox, null, "Sign-up requests", ' ', /*#__PURE__*/React.createElement(TabLabelCount, {
|
|
11489
11495
|
count: signupRequestListInfo.count
|