@itilite/iui-user-management 0.4.5 → 0.4.7

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 CHANGED
@@ -1530,7 +1530,7 @@ var resetPasswordForUser = function resetPasswordForUser(data) {
1530
1530
  api$1.post("" + userAddEditUrl.resetPasswordForUserApi(), {
1531
1531
  email: data.email
1532
1532
  }).then(function (res) {
1533
- IUIToastMessageService.sNotify(' Reset password link sent successfully');
1533
+ IUIToastMessageService.sNotify(res.data.message.toString());
1534
1534
  resolve();
1535
1535
  })["catch"](function (err) {
1536
1536
  if (!err.response.data.status) {
@@ -1550,7 +1550,7 @@ var resendInviteForUser = function resendInviteForUser(data) {
1550
1550
  api$1.post(userAddEditUrl.resendInviteForUserApi(), {
1551
1551
  user_ids: data
1552
1552
  }).then(function (res) {
1553
- IUIToastMessageService.sNotify('Invitation sent successfully');
1553
+ IUIToastMessageService.sNotify(res.data.message.toString());
1554
1554
  resolve();
1555
1555
  })["catch"](function (err) {
1556
1556
  if (!err.response.data.status) {
@@ -8686,18 +8686,18 @@ var StickyHeadTable = function StickyHeadTable(props) {
8686
8686
  }, {
8687
8687
  id: 'first_name',
8688
8688
  label: '',
8689
- minWidth: 100,
8689
+ minWidth: 60,
8690
8690
  sortable: true,
8691
8691
  cell: function cell(row) {
8692
8692
  return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
8693
8693
  component: "div",
8694
- width: 100
8694
+ width: 60
8695
8695
  }, row && row.has_visited === 0 ? /*#__PURE__*/React__default.createElement("div", {
8696
8696
  title: "This user hasn't logged on to the platform yet",
8697
8697
  style: {
8698
8698
  width: '55px',
8699
8699
  height: '24px',
8700
- background: 'lightgrey',
8700
+ background: '#F9FAFB',
8701
8701
  borderRadius: '8px',
8702
8702
  display: 'flex',
8703
8703
  justifyContent: 'center',
@@ -8711,7 +8711,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
8711
8711
  }, {
8712
8712
  id: 'emp_info__department__name',
8713
8713
  label: 'Department',
8714
- minWidth: 100,
8714
+ minWidth: 80,
8715
8715
  sortable: true,
8716
8716
  cell: function cell(row) {
8717
8717
  return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
@@ -8724,7 +8724,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
8724
8724
  }, {
8725
8725
  id: 'productusermapping__role',
8726
8726
  label: 'Product roles',
8727
- minWidth: 170,
8727
+ minWidth: 125,
8728
8728
  sortable: true,
8729
8729
  cell: function cell(row) {
8730
8730
  return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
@@ -8760,7 +8760,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
8760
8760
  }, {
8761
8761
  id: 'status',
8762
8762
  label: 'Status',
8763
- minWidth: 190,
8763
+ minWidth: 160,
8764
8764
  cell: function cell(row) {
8765
8765
  return /*#__PURE__*/React__default.createElement(iuistyles.IUIFormGroup, null, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
8766
8766
  component: "div",
@@ -8786,7 +8786,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
8786
8786
  }, {
8787
8787
  id: 'actions',
8788
8788
  label: 'Actions',
8789
- minWidth: 170,
8789
+ minWidth: 70,
8790
8790
  align: 'left',
8791
8791
  cell: function cell(row) {
8792
8792
  var options = [{
@@ -9112,8 +9112,14 @@ var UserList = function UserList(_ref) {
9112
9112
 
9113
9113
  if (userIds && !isNaN(userIds)) {
9114
9114
  userIdArr = [userIds];
9115
- } else if (selected[page] && selected[page].length) {
9116
- userIdArr = selected[page];
9115
+ } else if (Object.keys(selected).length) {
9116
+ Object.values(selected).map(function (val, i) {
9117
+ if (val.length) {
9118
+ val.map(function (idx, i) {
9119
+ userIdArr.push(idx);
9120
+ });
9121
+ }
9122
+ });
9117
9123
  }
9118
9124
 
9119
9125
  setUserIds('');