@itilite/iui-user-management 0.4.11 → 0.4.13
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 +7 -46
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -46
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var thunk = _interopDefault(require('redux-thunk'));
|
|
|
14
14
|
var reduxDevtoolsExtension = require('redux-devtools-extension');
|
|
15
15
|
var reactRouterDom = require('react-router-dom');
|
|
16
16
|
var styles$8 = require('@material-ui/core/styles');
|
|
17
|
-
|
|
17
|
+
require('@material-ui/core/Tooltip');
|
|
18
18
|
var Switch = _interopDefault(require('@material-ui/core/Switch'));
|
|
19
19
|
var MoreHorizIcon = _interopDefault(require('@material-ui/icons/MoreHoriz'));
|
|
20
20
|
var Button = _interopDefault(require('@material-ui/core/Button'));
|
|
@@ -7605,10 +7605,6 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
7605
7605
|
selected = props.selected,
|
|
7606
7606
|
_props$handleSingleCh = props.handleSingleCheckBoxClick,
|
|
7607
7607
|
handleSingleCheckBoxClick = _props$handleSingleCh === void 0 ? function () {} : _props$handleSingleCh,
|
|
7608
|
-
_props$onResetPasswor = props.onResetPasswordHandler,
|
|
7609
|
-
onResetPasswordHandler = _props$onResetPasswor === void 0 ? function () {} : _props$onResetPasswor,
|
|
7610
|
-
_props$toggleInviteMo = props.toggleInviteModal,
|
|
7611
|
-
toggleInviteModal = _props$toggleInviteMo === void 0 ? function () {} : _props$toggleInviteMo,
|
|
7612
7608
|
orderBy = props.orderBy,
|
|
7613
7609
|
order = props.order,
|
|
7614
7610
|
_props$onRequestSort = props.onRequestSort,
|
|
@@ -7660,28 +7656,8 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
7660
7656
|
profilePath: row === null || row === void 0 ? void 0 : (_row$profile_pic = row.profile_pic) === null || _row$profile_pic === void 0 ? void 0 : _row$profile_pic.presigned_url
|
|
7661
7657
|
}));
|
|
7662
7658
|
}
|
|
7663
|
-
},
|
|
7664
|
-
|
|
7665
|
-
label: '',
|
|
7666
|
-
minWidth: 60,
|
|
7667
|
-
sortable: true,
|
|
7668
|
-
cell: function cell(row) {
|
|
7669
|
-
return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
7670
|
-
component: "div",
|
|
7671
|
-
width: 60
|
|
7672
|
-
}, row && row.has_visited === 0 ? /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
7673
|
-
title: "This user hasn't logged on to the platform yet",
|
|
7674
|
-
arrow: true,
|
|
7675
|
-
classes: {
|
|
7676
|
-
arrow: classes.arrow,
|
|
7677
|
-
tooltip: classes.tooltip
|
|
7678
|
-
},
|
|
7679
|
-
placement: "top-start"
|
|
7680
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7681
|
-
className: clsx(styles$5.tooltipText)
|
|
7682
|
-
}, "Invited")) : null);
|
|
7683
|
-
}
|
|
7684
|
-
}, {
|
|
7659
|
+
},
|
|
7660
|
+
{
|
|
7685
7661
|
id: 'emp_info__department__name',
|
|
7686
7662
|
label: 'Department',
|
|
7687
7663
|
minWidth: 80,
|
|
@@ -7776,21 +7752,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
7776
7752
|
}
|
|
7777
7753
|
});
|
|
7778
7754
|
}
|
|
7779
|
-
|
|
7780
|
-
options.push({
|
|
7781
|
-
label: 'Reset password',
|
|
7782
|
-
handler: function handler() {
|
|
7783
|
-
return onResetPasswordHandler(row.email);
|
|
7784
|
-
}
|
|
7785
|
-
});
|
|
7786
|
-
} else {
|
|
7787
|
-
options.push({
|
|
7788
|
-
label: 'Resend invite',
|
|
7789
|
-
handler: function handler() {
|
|
7790
|
-
return toggleInviteModal(row.id);
|
|
7791
|
-
}
|
|
7792
|
-
});
|
|
7793
|
-
}
|
|
7755
|
+
|
|
7794
7756
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
7795
7757
|
style: {
|
|
7796
7758
|
marginLeft: '50px'
|
|
@@ -8083,10 +8045,9 @@ var UserList = function UserList(_ref) {
|
|
|
8083
8045
|
}, {
|
|
8084
8046
|
label: 'Bulk action history',
|
|
8085
8047
|
handler: handleBulkActionHistoryClick
|
|
8086
|
-
}
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
}];
|
|
8048
|
+
}
|
|
8049
|
+
];
|
|
8050
|
+
|
|
8090
8051
|
React.useEffect(function () {
|
|
8091
8052
|
var roleCanAccess = ['travel_itilite_admin', 'travel_admin', 'expense_itilite_admin', 'expense_admin'];
|
|
8092
8053
|
dispatch(showDataFetchingStatus());
|