@itilite/iui-user-management 0.3.12 → 0.3.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.css +5 -0
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1786,6 +1786,7 @@ var STOP_LOADER$2 = 'STOP_LOADER';
|
|
|
1786
1786
|
var OPEN_DIALOG = 'OPEN_DIALOG';
|
|
1787
1787
|
var CLOSE_DIALOG = 'CLOSE_DIALOG';
|
|
1788
1788
|
var FETCH_USERPANEL_DATA = 'FETCH_USERPANEL_DATA';
|
|
1789
|
+
var UNASSIGNED_USERS = 'Not assigned';
|
|
1789
1790
|
|
|
1790
1791
|
var api$3 = configs.api;
|
|
1791
1792
|
var IUIToastMessageService$2 = services.IUIToastMessageService;
|
|
@@ -4105,6 +4106,12 @@ var reducer$2 = function reducer(state, action) {
|
|
|
4105
4106
|
switch (action.type) {
|
|
4106
4107
|
case FETCH_USERPANEL_DATA:
|
|
4107
4108
|
{
|
|
4109
|
+
action.payload.previous === null && action.payload.results.unshift({
|
|
4110
|
+
code: UNASSIGNED_USERS,
|
|
4111
|
+
company: 4,
|
|
4112
|
+
name: UNASSIGNED_USERS,
|
|
4113
|
+
no_of_users: action.payload.unassigned_users
|
|
4114
|
+
});
|
|
4108
4115
|
return _extends({}, state, {
|
|
4109
4116
|
userPanelData: action.payload
|
|
4110
4117
|
});
|
|
@@ -9215,7 +9222,7 @@ function Header(props) {
|
|
|
9215
9222
|
})));
|
|
9216
9223
|
}
|
|
9217
9224
|
|
|
9218
|
-
var styles$7 = {"sidebar__container":"_1EFxC","sidebar__wrapper":"_3Mk3_","sidebar__navlinks":"_29KVG","sidebar__navlinks-title":"_2Eg7m","MuiListItem-button":"_3yWwI","Mui-selected":"_3Ou88","buttonWidth":"_13tv0","onBoardText":"_HUoW-","iconStyle":"_3k0Fb","iconLayout":"_v3GT2","baseAlert":"_12zY5","headingWrapper":"_20Qv9","pageHeader":"_36au5","description":"_tULrl","headerText":"_3W_ZV"};
|
|
9225
|
+
var styles$7 = {"sidebar__container":"_1EFxC","sidebar__wrapper":"_3Mk3_","sidebar__navlinks":"_29KVG","sidebar__navlinks-title":"_2Eg7m","MuiListItem-button":"_3yWwI","Mui-selected":"_3Ou88","buttonWidth":"_13tv0","onBoardText":"_HUoW-","iconStyle":"_3k0Fb","iconLayout":"_v3GT2","baseAlert":"_12zY5","headingWrapper":"_20Qv9","pageHeader":"_36au5","description":"_tULrl","headerText":"_3W_ZV","tableContainer":"_3xdGF"};
|
|
9219
9226
|
|
|
9220
9227
|
function Listview(_ref) {
|
|
9221
9228
|
var data = _ref.data,
|
|
@@ -9257,7 +9264,7 @@ function Listview(_ref) {
|
|
|
9257
9264
|
label: 'Actions',
|
|
9258
9265
|
width: '10%',
|
|
9259
9266
|
cell: function cell(row) {
|
|
9260
|
-
return /*#__PURE__*/React.createElement(IUIBox, {
|
|
9267
|
+
return row.code !== UNASSIGNED_USERS && /*#__PURE__*/React.createElement(IUIBox, {
|
|
9261
9268
|
display: "flex"
|
|
9262
9269
|
}, /*#__PURE__*/React.createElement(IUIButton, {
|
|
9263
9270
|
buttonText: "Edit",
|
|
@@ -9281,7 +9288,8 @@ function Listview(_ref) {
|
|
|
9281
9288
|
}
|
|
9282
9289
|
}];
|
|
9283
9290
|
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(IUIBox, {
|
|
9284
|
-
p: 3
|
|
9291
|
+
p: 3,
|
|
9292
|
+
className: data !== null && data !== void 0 && data.results && data.results.length > 0 && data.results[0].code === UNASSIGNED_USERS ? styles$7.tableContainer : ''
|
|
9285
9293
|
}, /*#__PURE__*/React.createElement(IUITable, {
|
|
9286
9294
|
searchHide: true,
|
|
9287
9295
|
hasFilter: true,
|