@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.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -1789,6 +1789,7 @@ var STOP_LOADER$2 = 'STOP_LOADER';
|
|
|
1789
1789
|
var OPEN_DIALOG = 'OPEN_DIALOG';
|
|
1790
1790
|
var CLOSE_DIALOG = 'CLOSE_DIALOG';
|
|
1791
1791
|
var FETCH_USERPANEL_DATA = 'FETCH_USERPANEL_DATA';
|
|
1792
|
+
var UNASSIGNED_USERS = 'Not assigned';
|
|
1792
1793
|
|
|
1793
1794
|
var api$3 = utils.configs.api;
|
|
1794
1795
|
var IUIToastMessageService$2 = utils.services.IUIToastMessageService;
|
|
@@ -4108,6 +4109,12 @@ var reducer$2 = function reducer(state, action) {
|
|
|
4108
4109
|
switch (action.type) {
|
|
4109
4110
|
case FETCH_USERPANEL_DATA:
|
|
4110
4111
|
{
|
|
4112
|
+
action.payload.previous === null && action.payload.results.unshift({
|
|
4113
|
+
code: UNASSIGNED_USERS,
|
|
4114
|
+
company: 4,
|
|
4115
|
+
name: UNASSIGNED_USERS,
|
|
4116
|
+
no_of_users: action.payload.unassigned_users
|
|
4117
|
+
});
|
|
4111
4118
|
return _extends({}, state, {
|
|
4112
4119
|
userPanelData: action.payload
|
|
4113
4120
|
});
|
|
@@ -9218,7 +9225,7 @@ function Header(props) {
|
|
|
9218
9225
|
})));
|
|
9219
9226
|
}
|
|
9220
9227
|
|
|
9221
|
-
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"};
|
|
9228
|
+
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"};
|
|
9222
9229
|
|
|
9223
9230
|
function Listview(_ref) {
|
|
9224
9231
|
var data = _ref.data,
|
|
@@ -9260,7 +9267,7 @@ function Listview(_ref) {
|
|
|
9260
9267
|
label: 'Actions',
|
|
9261
9268
|
width: '10%',
|
|
9262
9269
|
cell: function cell(row) {
|
|
9263
|
-
return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
9270
|
+
return row.code !== UNASSIGNED_USERS && /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
9264
9271
|
display: "flex"
|
|
9265
9272
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
9266
9273
|
buttonText: "Edit",
|
|
@@ -9284,7 +9291,8 @@ function Listview(_ref) {
|
|
|
9284
9291
|
}
|
|
9285
9292
|
}];
|
|
9286
9293
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
9287
|
-
p: 3
|
|
9294
|
+
p: 3,
|
|
9295
|
+
className: data !== null && data !== void 0 && data.results && data.results.length > 0 && data.results[0].code === UNASSIGNED_USERS ? styles$7.tableContainer : ''
|
|
9288
9296
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITable, {
|
|
9289
9297
|
searchHide: true,
|
|
9290
9298
|
hasFilter: true,
|