@itilite/iui-user-management 0.4.37 → 0.4.38
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 +0 -63
- package/dist/index.js +169 -534
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +170 -535
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9,7 +9,7 @@ import { combineReducers, createStore, applyMiddleware } from 'redux';
|
|
|
9
9
|
import thunk from 'redux-thunk';
|
|
10
10
|
import moment from 'moment';
|
|
11
11
|
import { composeWithDevTools } from 'redux-devtools-extension';
|
|
12
|
-
import { useHistory
|
|
12
|
+
import { useHistory } from 'react-router-dom';
|
|
13
13
|
import { withStyles, makeStyles } from '@material-ui/core/styles';
|
|
14
14
|
import Tooltip from '@material-ui/core/Tooltip';
|
|
15
15
|
import Switch from '@material-ui/core/Switch';
|
|
@@ -456,14 +456,6 @@ var userPanelUrl = {
|
|
|
456
456
|
return "api/v1/user-management/company/" + IUILocalStorageService.getCompanyId() + "/transfer-users";
|
|
457
457
|
}
|
|
458
458
|
};
|
|
459
|
-
var departmentUrl = {
|
|
460
|
-
departmentUrl: function departmentUrl() {
|
|
461
|
-
return "api/v1/user-management/company/" + IUILocalStorageService.getCompanyId() + "/department";
|
|
462
|
-
},
|
|
463
|
-
getDepartmentHead: function getDepartmentHead(departmentId, page) {
|
|
464
|
-
return "api/v1/user-management/company/" + IUILocalStorageService.getCompanyId() + "/department/" + departmentId + "/users?page=" + page;
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
459
|
|
|
468
460
|
var api = configs.api;
|
|
469
461
|
var NAoptionConfig = {
|
|
@@ -692,46 +684,6 @@ var countryOptions = function countryOptions(search, loadedOptions, _ref5) {
|
|
|
692
684
|
return Promise.reject(e);
|
|
693
685
|
}
|
|
694
686
|
};
|
|
695
|
-
var departmentHeadOptions = function departmentHeadOptions(search, loadedOptions, _ref6) {
|
|
696
|
-
var page = _ref6.page,
|
|
697
|
-
departmentId = _ref6.departmentId;
|
|
698
|
-
try {
|
|
699
|
-
return Promise.resolve(_catch(function () {
|
|
700
|
-
return Promise.resolve(api.get(departmentUrl.getDepartmentHead(departmentId, page) + "&search=" + search).then(function (res) {
|
|
701
|
-
return res.data;
|
|
702
|
-
})).then(function (response) {
|
|
703
|
-
var mappedValue = response.results.map(function (item) {
|
|
704
|
-
return {
|
|
705
|
-
value: item.id,
|
|
706
|
-
label: item.first_name + ' ' + item.last_name,
|
|
707
|
-
type: 'detailed',
|
|
708
|
-
data: item
|
|
709
|
-
};
|
|
710
|
-
});
|
|
711
|
-
console.log(response.next);
|
|
712
|
-
return {
|
|
713
|
-
options: mappedValue,
|
|
714
|
-
hasMore: !!response.next,
|
|
715
|
-
additional: {
|
|
716
|
-
page: page + 1,
|
|
717
|
-
departmentId: departmentId
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
});
|
|
721
|
-
}, function () {
|
|
722
|
-
return {
|
|
723
|
-
options: [],
|
|
724
|
-
hasMore: false,
|
|
725
|
-
additional: {
|
|
726
|
-
page: 1,
|
|
727
|
-
departmentId: departmentId
|
|
728
|
-
}
|
|
729
|
-
};
|
|
730
|
-
}));
|
|
731
|
-
} catch (e) {
|
|
732
|
-
return Promise.reject(e);
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
687
|
|
|
736
688
|
var UserRole = function UserRole(_ref) {
|
|
737
689
|
var _ref$list = _ref.list,
|
|
@@ -1767,7 +1719,7 @@ var verifyUserInfo = function verifyUserInfo(userId) {
|
|
|
1767
1719
|
var submitAddModalData = function submitAddModalData(tableName, data) {
|
|
1768
1720
|
return function (dispatch) {
|
|
1769
1721
|
return new Promise(function (resolve, reject) {
|
|
1770
|
-
api$2.post(
|
|
1722
|
+
api$2.post(userAddEditUrl.dropdownList() + ("?action=add&table=" + tableName), data).then(function (res) {
|
|
1771
1723
|
resolve(res);
|
|
1772
1724
|
})["catch"](function (err) {
|
|
1773
1725
|
var _err$response17, _err$response17$data;
|
|
@@ -1803,7 +1755,6 @@ var OPEN_DIALOG = 'OPEN_DIALOG';
|
|
|
1803
1755
|
var CLOSE_DIALOG = 'CLOSE_DIALOG';
|
|
1804
1756
|
var FETCH_USERPANEL_DATA = 'FETCH_USERPANEL_DATA';
|
|
1805
1757
|
var UNASSIGNED_USERS = 'Not assigned';
|
|
1806
|
-
var FETCH_DEPARTMENT_USERS_DATA = 'FETCH_DEPARTMENT_USERS_DATA';
|
|
1807
1758
|
|
|
1808
1759
|
var api$3 = configs.api;
|
|
1809
1760
|
var IUIToastMessageService$2 = services.IUIToastMessageService;
|
|
@@ -1853,14 +1804,14 @@ var getUserPanalData = function getUserPanalData(params) {
|
|
|
1853
1804
|
var addRecord = function addRecord(tableName, data, getParam) {
|
|
1854
1805
|
return function (dispatch) {
|
|
1855
1806
|
return new Promise(function (resolve, reject) {
|
|
1856
|
-
api$3.post(
|
|
1807
|
+
api$3.post(userPanelUrl.addUnit(tableName), data).then(function (res) {
|
|
1857
1808
|
dispatch(getUserPanalData(getParam));
|
|
1858
1809
|
dispatch(closeDialog());
|
|
1859
1810
|
resolve(res);
|
|
1860
1811
|
})["catch"](function (err) {
|
|
1861
|
-
var _err$
|
|
1812
|
+
var _err$response2, _err$response2$data;
|
|
1862
1813
|
dispatch(userPanelStopLoader());
|
|
1863
|
-
IUIToastMessageService$2.warningNotify((err === null || err === void 0 ? void 0 : (_err$
|
|
1814
|
+
IUIToastMessageService$2.warningNotify((err === null || err === void 0 ? void 0 : (_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.message) || 'Opps, Something went wrong.');
|
|
1864
1815
|
});
|
|
1865
1816
|
});
|
|
1866
1817
|
};
|
|
@@ -1874,37 +1825,25 @@ var deleteRecord = function deleteRecord(tableName, id, getParam) {
|
|
|
1874
1825
|
dispatch(userPanelStopLoader());
|
|
1875
1826
|
resolve();
|
|
1876
1827
|
})["catch"](function (err) {
|
|
1877
|
-
var _err$
|
|
1878
|
-
IUIToastMessageService$2.warningNotify((err === null || err === void 0 ? void 0 : (_err$
|
|
1828
|
+
var _err$response3, _err$response3$data;
|
|
1829
|
+
IUIToastMessageService$2.warningNotify((err === null || err === void 0 ? void 0 : (_err$response3 = err.response) === null || _err$response3 === void 0 ? void 0 : (_err$response3$data = _err$response3.data) === null || _err$response3$data === void 0 ? void 0 : _err$response3$data.message) || 'Opps, Something went wrong.');
|
|
1879
1830
|
dispatch(userPanelStopLoader());
|
|
1880
1831
|
});
|
|
1881
1832
|
});
|
|
1882
1833
|
};
|
|
1883
1834
|
};
|
|
1884
|
-
var editRecord = function editRecord(tableName, data, getParam
|
|
1835
|
+
var editRecord = function editRecord(tableName, data, getParam) {
|
|
1885
1836
|
return function (dispatch) {
|
|
1886
1837
|
return new Promise(function (resolve, reject) {
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
});
|
|
1897
|
-
} else {
|
|
1898
|
-
api$3.post(userPanelUrl.editUnit(tableName), data).then(function (res) {
|
|
1899
|
-
dispatch(getUserPanalData(getParam));
|
|
1900
|
-
dispatch(closeDialog());
|
|
1901
|
-
resolve();
|
|
1902
|
-
})["catch"](function (err) {
|
|
1903
|
-
var _err$response6, _err$response6$data;
|
|
1904
|
-
dispatch(userPanelStopLoader());
|
|
1905
|
-
IUIToastMessageService$2.warningNotify((err === null || err === void 0 ? void 0 : (_err$response6 = err.response) === null || _err$response6 === void 0 ? void 0 : (_err$response6$data = _err$response6.data) === null || _err$response6$data === void 0 ? void 0 : _err$response6$data.message) || 'Opps, Something went wrong.');
|
|
1906
|
-
});
|
|
1907
|
-
}
|
|
1838
|
+
api$3.post(userPanelUrl.editUnit(tableName), data).then(function (res) {
|
|
1839
|
+
dispatch(getUserPanalData(getParam));
|
|
1840
|
+
dispatch(closeDialog());
|
|
1841
|
+
resolve();
|
|
1842
|
+
})["catch"](function (err) {
|
|
1843
|
+
var _err$response4, _err$response4$data;
|
|
1844
|
+
dispatch(userPanelStopLoader());
|
|
1845
|
+
IUIToastMessageService$2.warningNotify((err === null || err === void 0 ? void 0 : (_err$response4 = err.response) === null || _err$response4 === void 0 ? void 0 : (_err$response4$data = _err$response4.data) === null || _err$response4$data === void 0 ? void 0 : _err$response4$data.message) || 'Opps, Something went wrong.');
|
|
1846
|
+
});
|
|
1908
1847
|
});
|
|
1909
1848
|
};
|
|
1910
1849
|
};
|
|
@@ -1916,8 +1855,8 @@ var moveRecord = function moveRecord(tableName, data, getParam) {
|
|
|
1916
1855
|
dispatch(closeDialog());
|
|
1917
1856
|
resolve(res);
|
|
1918
1857
|
})["catch"](function (err) {
|
|
1919
|
-
var _err$
|
|
1920
|
-
IUIToastMessageService$2.warningNotify((err === null || err === void 0 ? void 0 : (_err$
|
|
1858
|
+
var _err$response5, _err$response5$data;
|
|
1859
|
+
IUIToastMessageService$2.warningNotify((err === null || err === void 0 ? void 0 : (_err$response5 = err.response) === null || _err$response5 === void 0 ? void 0 : (_err$response5$data = _err$response5.data) === null || _err$response5$data === void 0 ? void 0 : _err$response5$data.message) || 'Opps, Something went wrong.');
|
|
1921
1860
|
});
|
|
1922
1861
|
});
|
|
1923
1862
|
};
|
|
@@ -3107,6 +3046,31 @@ var workInfo = [{
|
|
|
3107
3046
|
minLength: 0
|
|
3108
3047
|
},
|
|
3109
3048
|
disableText: 'Please get in touch with your administrator to change this value.'
|
|
3049
|
+
}, {
|
|
3050
|
+
id: 7,
|
|
3051
|
+
label: 'Manager',
|
|
3052
|
+
name: 'manager',
|
|
3053
|
+
required: false,
|
|
3054
|
+
type: 'async_select',
|
|
3055
|
+
fullWidth: false,
|
|
3056
|
+
visibility: true,
|
|
3057
|
+
readOnly: false,
|
|
3058
|
+
placeholder: 'Select manager',
|
|
3059
|
+
tabelName: 'manager',
|
|
3060
|
+
product: 'travel',
|
|
3061
|
+
loadOption: approversOptions
|
|
3062
|
+
}, {
|
|
3063
|
+
id: 8,
|
|
3064
|
+
label: 'Skip manager',
|
|
3065
|
+
name: 'skip_manager',
|
|
3066
|
+
required: false,
|
|
3067
|
+
type: 'async_select',
|
|
3068
|
+
fullWidth: false,
|
|
3069
|
+
visibility: true,
|
|
3070
|
+
readOnly: false,
|
|
3071
|
+
placeholder: 'Select manager',
|
|
3072
|
+
product: 'travel',
|
|
3073
|
+
loadOption: approversOptions
|
|
3110
3074
|
}, {
|
|
3111
3075
|
id: 9,
|
|
3112
3076
|
label: 'Base location',
|
|
@@ -4017,7 +3981,6 @@ var initialState$2 = {
|
|
|
4017
3981
|
previous: null,
|
|
4018
3982
|
results: []
|
|
4019
3983
|
},
|
|
4020
|
-
deptUsers: [],
|
|
4021
3984
|
loading: false
|
|
4022
3985
|
};
|
|
4023
3986
|
var reducer$2 = function reducer(state, action) {
|
|
@@ -4087,12 +4050,6 @@ var reducer$2 = function reducer(state, action) {
|
|
|
4087
4050
|
loading: false
|
|
4088
4051
|
});
|
|
4089
4052
|
}
|
|
4090
|
-
case FETCH_DEPARTMENT_USERS_DATA:
|
|
4091
|
-
{
|
|
4092
|
-
return _extends({}, state, {
|
|
4093
|
-
deptUsers: action.payload
|
|
4094
|
-
});
|
|
4095
|
-
}
|
|
4096
4053
|
default:
|
|
4097
4054
|
return state;
|
|
4098
4055
|
}
|
|
@@ -4871,7 +4828,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4871
4828
|
isILadmin = _useSelector2.isILadmin,
|
|
4872
4829
|
companyName = _useSelector2.companyName;
|
|
4873
4830
|
var history = useHistory();
|
|
4874
|
-
var location = useLocation();
|
|
4875
4831
|
var _useState = useState({
|
|
4876
4832
|
travel: false,
|
|
4877
4833
|
expense: false
|
|
@@ -4940,6 +4896,14 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4940
4896
|
},
|
|
4941
4897
|
designation: '',
|
|
4942
4898
|
base_location: '',
|
|
4899
|
+
manager: {
|
|
4900
|
+
value: '',
|
|
4901
|
+
label: 'Select Manager'
|
|
4902
|
+
},
|
|
4903
|
+
skip_manager: {
|
|
4904
|
+
value: '',
|
|
4905
|
+
label: 'Select Manager'
|
|
4906
|
+
},
|
|
4943
4907
|
currency: {
|
|
4944
4908
|
value: defaultCurrency,
|
|
4945
4909
|
label: defaultCurrency
|
|
@@ -5127,29 +5091,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5127
5091
|
var onAddModalClose = function onAddModalClose() {
|
|
5128
5092
|
setAddModalData(_extends({}, defaultAddModalData));
|
|
5129
5093
|
};
|
|
5130
|
-
useEffect(function () {
|
|
5131
|
-
var _location$state, _location$state2, _location$state5, _location$state6;
|
|
5132
|
-
if (location !== null && location !== void 0 && (_location$state = location.state) !== null && _location$state !== void 0 && _location$state.id && location !== null && location !== void 0 && (_location$state2 = location.state) !== null && _location$state2 !== void 0 && _location$state2.name) {
|
|
5133
|
-
var _location$state3, _location$state4;
|
|
5134
|
-
setEmployeeInfoInput(_extends({}, employeeInfoInput, {
|
|
5135
|
-
department: {
|
|
5136
|
-
value: location === null || location === void 0 ? void 0 : (_location$state3 = location.state) === null || _location$state3 === void 0 ? void 0 : _location$state3.id,
|
|
5137
|
-
label: location === null || location === void 0 ? void 0 : (_location$state4 = location.state) === null || _location$state4 === void 0 ? void 0 : _location$state4.name
|
|
5138
|
-
}
|
|
5139
|
-
}));
|
|
5140
|
-
}
|
|
5141
|
-
if (location !== null && location !== void 0 && (_location$state5 = location.state) !== null && _location$state5 !== void 0 && _location$state5.is_default_dept_head && location !== null && location !== void 0 && (_location$state6 = location.state) !== null && _location$state6 !== void 0 && _location$state6.dept_head_details.length) {
|
|
5142
|
-
var _location$state7, _location$state8, _location$state9, _extends2;
|
|
5143
|
-
var _name = 'sequence-2';
|
|
5144
|
-
var _value = {
|
|
5145
|
-
label: location === null || location === void 0 ? void 0 : (_location$state7 = location.state) === null || _location$state7 === void 0 ? void 0 : _location$state7.dept_head_details[0].email,
|
|
5146
|
-
type: 'detailed',
|
|
5147
|
-
value: location === null || location === void 0 ? void 0 : (_location$state8 = location.state) === null || _location$state8 === void 0 ? void 0 : _location$state8.dept_head_details[0].email,
|
|
5148
|
-
data: location === null || location === void 0 ? void 0 : (_location$state9 = location.state) === null || _location$state9 === void 0 ? void 0 : _location$state9.dept_head_details[0]
|
|
5149
|
-
};
|
|
5150
|
-
setTravelApproversInput(_extends({}, travelApproversInput, (_extends2 = {}, _extends2[_name] = _value, _extends2)));
|
|
5151
|
-
}
|
|
5152
|
-
}, []);
|
|
5153
5094
|
var onModalOpen = function onModalOpen(e, id) {
|
|
5154
5095
|
var title = '';
|
|
5155
5096
|
if (id === 'entity') {
|
|
@@ -5175,43 +5116,24 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5175
5116
|
}));
|
|
5176
5117
|
} else {
|
|
5177
5118
|
dispatch(showLoader());
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
department_head_id: null
|
|
5183
|
-
};
|
|
5184
|
-
} else {
|
|
5185
|
-
dataObj = {
|
|
5186
|
-
names: [validatedValue]
|
|
5187
|
-
};
|
|
5188
|
-
}
|
|
5189
|
-
dispatch(submitAddModalData(addModalData.id, dataObj)).then(function (res) {
|
|
5190
|
-
var _extends5;
|
|
5191
|
-
console.log(res);
|
|
5119
|
+
dispatch(submitAddModalData(addModalData.id, {
|
|
5120
|
+
names: [validatedValue]
|
|
5121
|
+
})).then(function (res) {
|
|
5122
|
+
var _extends2, _extends3;
|
|
5192
5123
|
setAddModalData(_extends({}, addModalData, {
|
|
5193
5124
|
isOpen: false
|
|
5194
5125
|
}));
|
|
5195
5126
|
IUIToastMessageService$4.sNotify(addModalData.title + " added successfully.");
|
|
5196
5127
|
var tempKey = addModalData.id === 'employee_level' ? 'emp_level' : addModalData.id;
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
}, _extends3)));
|
|
5203
|
-
} else {
|
|
5204
|
-
var _extends4;
|
|
5205
|
-
setEmployeeInfoInput(_extends({}, employeeInfoInput, (_extends4 = {}, _extends4[tempKey] = {
|
|
5206
|
-
value: res.data.value,
|
|
5207
|
-
label: res.data.label
|
|
5208
|
-
}, _extends4)));
|
|
5209
|
-
}
|
|
5210
|
-
updateInputChangeLog(_extends({}, inputChangeLog, (_extends5 = {}, _extends5[tempKey] = true, _extends5)));
|
|
5128
|
+
setEmployeeInfoInput(_extends({}, employeeInfoInput, (_extends2 = {}, _extends2[tempKey] = {
|
|
5129
|
+
value: res.data.value,
|
|
5130
|
+
label: res.data.label
|
|
5131
|
+
}, _extends2)));
|
|
5132
|
+
updateInputChangeLog(_extends({}, inputChangeLog, (_extends3 = {}, _extends3[tempKey] = true, _extends3)));
|
|
5211
5133
|
asyncSelectRefs.current[tempKey].current.blur();
|
|
5212
5134
|
clearCacheForAsyncDropdown(function (prevState) {
|
|
5213
|
-
var
|
|
5214
|
-
return _extends({}, prevState, (
|
|
5135
|
+
var _extends4;
|
|
5136
|
+
return _extends({}, prevState, (_extends4 = {}, _extends4[tempKey] = prevState[tempKey] + 1, _extends4));
|
|
5215
5137
|
});
|
|
5216
5138
|
dispatch(stopLoader());
|
|
5217
5139
|
});
|
|
@@ -5230,8 +5152,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5230
5152
|
try {
|
|
5231
5153
|
var _temp6 = function _temp6() {
|
|
5232
5154
|
if (Object.hasOwnProperty.call(inputChangeLog, _name)) {
|
|
5233
|
-
var
|
|
5234
|
-
updateInputChangeLog(_extends({}, inputChangeLog, (
|
|
5155
|
+
var _extends5;
|
|
5156
|
+
updateInputChangeLog(_extends({}, inputChangeLog, (_extends5 = {}, _extends5[_name] = true, _extends5)));
|
|
5235
5157
|
}
|
|
5236
5158
|
};
|
|
5237
5159
|
var _name = args._name,
|
|
@@ -5254,8 +5176,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5254
5176
|
updateError('contact_country_code', _isError, _errorMsg);
|
|
5255
5177
|
} else {
|
|
5256
5178
|
var _temp8 = function _temp8() {
|
|
5257
|
-
var
|
|
5258
|
-
setPersonalInfoInput(_extends({}, personalInfoInput, (
|
|
5179
|
+
var _extends6;
|
|
5180
|
+
setPersonalInfoInput(_extends({}, personalInfoInput, (_extends6 = {}, _extends6[_name] = _value, _extends6)));
|
|
5259
5181
|
updateError(_name, _isError, _errorMsg);
|
|
5260
5182
|
};
|
|
5261
5183
|
var _temp9 = function () {
|
|
@@ -5303,7 +5225,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5303
5225
|
}
|
|
5304
5226
|
};
|
|
5305
5227
|
var onEmployeeInfoChange = function onEmployeeInfoChange(args) {
|
|
5306
|
-
var
|
|
5228
|
+
var _extends7;
|
|
5307
5229
|
var _name = args._name,
|
|
5308
5230
|
_value = args._value,
|
|
5309
5231
|
_isError = args._isError,
|
|
@@ -5312,11 +5234,11 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5312
5234
|
_name: _name,
|
|
5313
5235
|
_value: _value
|
|
5314
5236
|
});
|
|
5315
|
-
setEmployeeInfoInput(_extends({}, employeeInfoInput, (
|
|
5237
|
+
setEmployeeInfoInput(_extends({}, employeeInfoInput, (_extends7 = {}, _extends7[_name] = _value, _extends7)));
|
|
5316
5238
|
updateError(_name, _isError, _errorMsg);
|
|
5317
5239
|
if (Object.hasOwnProperty.call(inputChangeLog, _name)) {
|
|
5318
|
-
var
|
|
5319
|
-
updateInputChangeLog(_extends({}, inputChangeLog, (
|
|
5240
|
+
var _extends8;
|
|
5241
|
+
updateInputChangeLog(_extends({}, inputChangeLog, (_extends8 = {}, _extends8[_name] = true, _extends8)));
|
|
5320
5242
|
}
|
|
5321
5243
|
};
|
|
5322
5244
|
var getUserTagTypeId = function getUserTagTypeId(name) {
|
|
@@ -5326,9 +5248,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5326
5248
|
return tag.id;
|
|
5327
5249
|
};
|
|
5328
5250
|
var onUserTagTypeChange = function onUserTagTypeChange(args) {
|
|
5329
|
-
var
|
|
5251
|
+
var _extends9;
|
|
5330
5252
|
var e = args._event;
|
|
5331
|
-
setUserTagType(_extends({}, userTagType, (
|
|
5253
|
+
setUserTagType(_extends({}, userTagType, (_extends9 = {}, _extends9[e.target.name] = userTagType[e.target.name] ? false : getUserTagTypeId(e.target.name), _extends9)));
|
|
5332
5254
|
if (Object.hasOwnProperty.call(inputChangeLog, 'userTagType')) {
|
|
5333
5255
|
updateInputChangeLog(_extends({}, inputChangeLog, {
|
|
5334
5256
|
userTagType: true
|
|
@@ -5336,23 +5258,22 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5336
5258
|
}
|
|
5337
5259
|
};
|
|
5338
5260
|
var onCustomFieldsChange = function onCustomFieldsChange(_ref2) {
|
|
5339
|
-
var
|
|
5261
|
+
var _extends10;
|
|
5340
5262
|
var _name = _ref2._name,
|
|
5341
5263
|
_value = _ref2._value;
|
|
5342
|
-
setCustomFieldsInput(_extends({}, customFieldsInput, (
|
|
5264
|
+
setCustomFieldsInput(_extends({}, customFieldsInput, (_extends10 = {}, _extends10[_name] = _value, _extends10)));
|
|
5343
5265
|
};
|
|
5344
5266
|
var onTravelApproversInputChange = function onTravelApproversInputChange(_ref3) {
|
|
5345
|
-
var
|
|
5267
|
+
var _extends11;
|
|
5346
5268
|
var _name = _ref3._name,
|
|
5347
5269
|
_value = _ref3._value;
|
|
5348
|
-
|
|
5349
|
-
setTravelApproversInput(_extends({}, travelApproversInput, (_extends13 = {}, _extends13[_name] = _value, _extends13)));
|
|
5270
|
+
setTravelApproversInput(_extends({}, travelApproversInput, (_extends11 = {}, _extends11[_name] = _value, _extends11)));
|
|
5350
5271
|
};
|
|
5351
5272
|
var onExpenseApproversInputChange = function onExpenseApproversInputChange(_ref4) {
|
|
5352
|
-
var
|
|
5273
|
+
var _extends12;
|
|
5353
5274
|
var _name = _ref4._name,
|
|
5354
5275
|
_value = _ref4._value;
|
|
5355
|
-
setExpenseApproversInput(_extends({}, expenseApproversInput, (
|
|
5276
|
+
setExpenseApproversInput(_extends({}, expenseApproversInput, (_extends12 = {}, _extends12[_name] = _value, _extends12)));
|
|
5356
5277
|
};
|
|
5357
5278
|
var onMemInfoInputChange = function onMemInfoInputChange(index, key, val) {
|
|
5358
5279
|
var _membershipInfoInput = [].concat(membershipInfoInput);
|
|
@@ -5386,39 +5307,39 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5386
5307
|
setMembershipInfoInput(_membershipInfoInputTemp);
|
|
5387
5308
|
};
|
|
5388
5309
|
var travelPreferenceOnChange = function travelPreferenceOnChange(args) {
|
|
5389
|
-
var
|
|
5310
|
+
var _extends13;
|
|
5390
5311
|
var _name = args._name,
|
|
5391
5312
|
_value = args._value,
|
|
5392
5313
|
_isError = args._isError,
|
|
5393
5314
|
_errorMsg = args._errorMsg;
|
|
5394
|
-
settravelPreferenceInfo(_extends({}, travelPreferenceInfo, (
|
|
5315
|
+
settravelPreferenceInfo(_extends({}, travelPreferenceInfo, (_extends13 = {}, _extends13[_name] = _value, _extends13)));
|
|
5395
5316
|
if (Object.hasOwnProperty.call(inputChangeLog, _name)) {
|
|
5396
|
-
var
|
|
5397
|
-
updateInputChangeLog(_extends({}, inputChangeLog, (
|
|
5317
|
+
var _extends14;
|
|
5318
|
+
updateInputChangeLog(_extends({}, inputChangeLog, (_extends14 = {}, _extends14[_name] = true, _extends14)));
|
|
5398
5319
|
}
|
|
5399
5320
|
updateError(_name, _isError, _errorMsg);
|
|
5400
5321
|
};
|
|
5401
5322
|
var onSecureTraveelerInfoInputChange = function onSecureTraveelerInfoInputChange(args) {
|
|
5402
|
-
var
|
|
5323
|
+
var _extends15;
|
|
5403
5324
|
var _name = args._name,
|
|
5404
5325
|
_value = args._value,
|
|
5405
5326
|
_isError = args._isError,
|
|
5406
5327
|
_errorMsg = args._errorMsg;
|
|
5407
|
-
setSecureTravelInputInfo(_extends({}, secureTravelInputInfo, (
|
|
5328
|
+
setSecureTravelInputInfo(_extends({}, secureTravelInputInfo, (_extends15 = {}, _extends15[_name] = _value, _extends15)));
|
|
5408
5329
|
if (Object.hasOwnProperty.call(inputChangeLog, _name)) {
|
|
5409
|
-
var
|
|
5410
|
-
updateInputChangeLog(_extends({}, inputChangeLog, (
|
|
5330
|
+
var _extends16;
|
|
5331
|
+
updateInputChangeLog(_extends({}, inputChangeLog, (_extends16 = {}, _extends16[_name] = true, _extends16)));
|
|
5411
5332
|
}
|
|
5412
5333
|
updateError(_name, _isError, _errorMsg);
|
|
5413
5334
|
};
|
|
5414
5335
|
var onPassportInfoInputChange = function onPassportInfoInputChange(args) {
|
|
5415
5336
|
try {
|
|
5416
5337
|
var _temp14 = function _temp14() {
|
|
5417
|
-
var
|
|
5418
|
-
setPassportInfoInput(_extends({}, passportInfoInput, (
|
|
5338
|
+
var _extends17;
|
|
5339
|
+
setPassportInfoInput(_extends({}, passportInfoInput, (_extends17 = {}, _extends17[_name] = _value, _extends17)));
|
|
5419
5340
|
if (Object.hasOwnProperty.call(inputChangeLog, _name)) {
|
|
5420
|
-
var
|
|
5421
|
-
updateInputChangeLog(_extends({}, inputChangeLog, (
|
|
5341
|
+
var _extends18;
|
|
5342
|
+
updateInputChangeLog(_extends({}, inputChangeLog, (_extends18 = {}, _extends18[_name] = true, _extends18)));
|
|
5422
5343
|
}
|
|
5423
5344
|
updateError(_name, _isError, _errorMsg);
|
|
5424
5345
|
};
|
|
@@ -5524,8 +5445,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5524
5445
|
return _errorArray;
|
|
5525
5446
|
});
|
|
5526
5447
|
setErrorMsgs(function (prevState) {
|
|
5527
|
-
var
|
|
5528
|
-
return _extends({}, prevState, (
|
|
5448
|
+
var _extends19;
|
|
5449
|
+
return _extends({}, prevState, (_extends19 = {}, _extends19[_name] = _errorMsg, _extends19));
|
|
5529
5450
|
});
|
|
5530
5451
|
};
|
|
5531
5452
|
var dispatch = useDispatch();
|
|
@@ -5864,10 +5785,23 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5864
5785
|
IUIToastMessageService$4.warningNotify(checkAnyError);
|
|
5865
5786
|
return Promise.resolve();
|
|
5866
5787
|
}
|
|
5788
|
+
var manager_info = {
|
|
5789
|
+
manager: '',
|
|
5790
|
+
skip_manager: ''
|
|
5791
|
+
};
|
|
5792
|
+
if (employeeInfoInput.manager.value !== '') {
|
|
5793
|
+
manager_info.manager = employeeInfoInput.manager.value;
|
|
5794
|
+
delete employeeInfoInput.manager;
|
|
5795
|
+
}
|
|
5796
|
+
if (employeeInfoInput.skip_manager.value !== '') {
|
|
5797
|
+
manager_info.skip_manager = employeeInfoInput.skip_manager.value;
|
|
5798
|
+
delete employeeInfoInput.skip_manager;
|
|
5799
|
+
}
|
|
5867
5800
|
var payload = {
|
|
5868
5801
|
personalInfoInput: personalInfoInput,
|
|
5869
5802
|
employeeInfoInput: employeeInfoInput,
|
|
5870
5803
|
customFieldsInput: customFieldsInput,
|
|
5804
|
+
manager_info: manager_info,
|
|
5871
5805
|
productAccess: productAccess,
|
|
5872
5806
|
travelRole: travelRole,
|
|
5873
5807
|
travelApproversInput: travelApproversInput,
|
|
@@ -6030,7 +5964,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6030
5964
|
}
|
|
6031
5965
|
}
|
|
6032
5966
|
}
|
|
6033
|
-
return Promise.resolve();
|
|
6034
5967
|
}
|
|
6035
5968
|
if (isEditMode && editUserId || isProfile) {
|
|
6036
5969
|
dispatch(showLoader());
|
|
@@ -6851,7 +6784,7 @@ var fetchBulkactionHistory = function fetchBulkactionHistory(url) {
|
|
|
6851
6784
|
};
|
|
6852
6785
|
};
|
|
6853
6786
|
|
|
6854
|
-
var styles$5 = {"UUIUserManagementList":"_3WNHx","scrollOverlayMenu":"_2_WEg","overlaysearch":"_1Pbhb","pageHeader":"_1WLpc","buttonWrapper":"_2egTG","headingWrapper":"_1He01","headingSignUpWrapper":"_Q8vqd","heading":"_1uPaO","headingLarge":"_2FsLd","headingMedium":"_nGXA9","headingSmall":"_2rpwF","description":"_25vb9","headerText":"_1Ny9J","letterImage":"_2hr3R","tablewrapper":"_1-RPw","rowText":"_1LXyO","textTransform":"_3kFQS","lightColor":"_3Ghgw","avatarClassName":"_2qO_X","tooltipText":"_151u_","tooltip":"_-LQNH","importModalBodyContainer":"_25xUk","dividerColor":"_2HZv9","w100":"_3vGmU","downloadTemplateContainer":"_3-Xu_","downloadTemplateDescContainer":"_tLw43","labelContainer":"_7TYUZ","downlTempHeader":"__CZpe","downlTempDescription":"_19jEe","downloadTemplateButton":"_1qXtq","fileUploaderContainer":"_1YVz2","colGap":"_3vnY5","deActivateModalContainer":"_28H9H","backdrop":"_1ky1x","errorText":"_26_if","
|
|
6787
|
+
var styles$5 = {"UUIUserManagementList":"_3WNHx","scrollOverlayMenu":"_2_WEg","overlaysearch":"_1Pbhb","pageHeader":"_1WLpc","buttonWrapper":"_2egTG","headingWrapper":"_1He01","headingSignUpWrapper":"_Q8vqd","heading":"_1uPaO","headingLarge":"_2FsLd","headingMedium":"_nGXA9","headingSmall":"_2rpwF","description":"_25vb9","headerText":"_1Ny9J","letterImage":"_2hr3R","tablewrapper":"_1-RPw","rowText":"_1LXyO","textTransform":"_3kFQS","lightColor":"_3Ghgw","avatarClassName":"_2qO_X","tooltipText":"_151u_","tooltip":"_-LQNH","importModalBodyContainer":"_25xUk","dividerColor":"_2HZv9","w100":"_3vGmU","downloadTemplateContainer":"_3-Xu_","downloadTemplateDescContainer":"_tLw43","labelContainer":"_7TYUZ","downlTempHeader":"__CZpe","downlTempDescription":"_19jEe","downloadTemplateButton":"_1qXtq","fileUploaderContainer":"_1YVz2","colGap":"_3vnY5","deActivateModalContainer":"_28H9H","backdrop":"_1ky1x","errorText":"_26_if","user_list_page_tabs":"_xWE7K","TabLabelCount":"_13pXn"};
|
|
6855
6788
|
|
|
6856
6789
|
var BulkUploadModal = function BulkUploadModal(props) {
|
|
6857
6790
|
var isOpenImportUsersModal = props.isOpenImportUsersModal,
|
|
@@ -8636,25 +8569,6 @@ function InviteInfoIcon() {
|
|
|
8636
8569
|
}));
|
|
8637
8570
|
}
|
|
8638
8571
|
|
|
8639
|
-
function InfoYellowIcon(props) {
|
|
8640
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
8641
|
-
width: props.width,
|
|
8642
|
-
height: props.height,
|
|
8643
|
-
viewBox: "0 0 20 20",
|
|
8644
|
-
fill: "none",
|
|
8645
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8646
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
8647
|
-
d: "M11 4.99951C11 5.5518 10.5523 5.99951 10 5.99951C9.44771 5.99951 9 5.5518 9 4.99951C9 4.44723 9.44771 3.99951 10 3.99951C10.5523 3.99951 11 4.44723 11 4.99951Z",
|
|
8648
|
-
fill: "#CA8A04"
|
|
8649
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8650
|
-
d: "M8 7.99951C7.44772 7.99951 7 8.44723 7 8.99951C7 9.5518 7.44772 9.99951 8 9.99951H9V12.9995H8C7.44772 12.9995 7 13.4472 7 13.9995C7 14.5518 7.44772 14.9995 8 14.9995H12C12.5523 14.9995 13 14.5518 13 13.9995C13 13.4472 12.5523 12.9995 12 12.9995H11V8.99951C11 8.44723 10.5523 7.99951 10 7.99951H8Z",
|
|
8651
|
-
fill: "#CA8A04"
|
|
8652
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8653
|
-
d: "M0 9.99951C0 15.5224 4.47715 19.9995 10 19.9995C15.5228 19.9995 20 15.5224 20 9.99951C20 4.47666 15.5228 -0.000488281 10 -0.000488281C4.47715 -0.000488281 0 4.47666 0 9.99951ZM10 1.99951C14.4183 1.99951 18 5.58123 18 9.99951C18 14.4178 14.4183 17.9995 10 17.9995C5.58172 17.9995 2 14.4178 2 9.99951C2 5.58123 5.58172 1.99951 10 1.99951Z",
|
|
8654
|
-
fill: "#CA8A04"
|
|
8655
|
-
}));
|
|
8656
|
-
}
|
|
8657
|
-
|
|
8658
8572
|
var IUIToastMessageService$7 = services.IUIToastMessageService;
|
|
8659
8573
|
var env$7 = configs.env;
|
|
8660
8574
|
var UndoButton = function UndoButton(_ref) {
|
|
@@ -8706,12 +8620,9 @@ var UserList = function UserList(_ref2) {
|
|
|
8706
8620
|
var _React$useState3 = React.useState('asc'),
|
|
8707
8621
|
order = _React$useState3[0],
|
|
8708
8622
|
setOrder = _React$useState3[1];
|
|
8709
|
-
var _React$useState4 = React.useState(
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
var _React$useState5 = React.useState('first_name'),
|
|
8713
|
-
orderBy = _React$useState5[0],
|
|
8714
|
-
setOrderBy = _React$useState5[1];
|
|
8623
|
+
var _React$useState4 = React.useState('first_name'),
|
|
8624
|
+
orderBy = _React$useState4[0],
|
|
8625
|
+
setOrderBy = _React$useState4[1];
|
|
8715
8626
|
var _useState2 = useState(''),
|
|
8716
8627
|
searchValue = _useState2[0],
|
|
8717
8628
|
setSearchValue = _useState2[1];
|
|
@@ -8746,21 +8657,15 @@ var UserList = function UserList(_ref2) {
|
|
|
8746
8657
|
var _useState10 = useState(false),
|
|
8747
8658
|
isApiFetching = _useState10[0],
|
|
8748
8659
|
setisApiFetching = _useState10[1];
|
|
8749
|
-
var _useState11 = useState(
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
var
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
var _useState13 = useState(''),
|
|
8759
|
-
userIds = _useState13[0],
|
|
8760
|
-
setUserIds = _useState13[1];
|
|
8761
|
-
var _React$useState6 = React.useState(false),
|
|
8762
|
-
overlayMenu = _React$useState6[0],
|
|
8763
|
-
setOverlayMenu = _React$useState6[1];
|
|
8660
|
+
var _useState11 = useState(false),
|
|
8661
|
+
showInviteModal = _useState11[0],
|
|
8662
|
+
setToggleInviteModal = _useState11[1];
|
|
8663
|
+
var _useState12 = useState(''),
|
|
8664
|
+
userIds = _useState12[0],
|
|
8665
|
+
setUserIds = _useState12[1];
|
|
8666
|
+
var _React$useState5 = React.useState(false),
|
|
8667
|
+
overlayMenu = _React$useState5[0],
|
|
8668
|
+
setOverlayMenu = _React$useState5[1];
|
|
8764
8669
|
useScrollPosition(function (_ref3) {
|
|
8765
8670
|
var prevPos = _ref3.prevPos,
|
|
8766
8671
|
currPos = _ref3.currPos;
|
|
@@ -8781,33 +8686,33 @@ var UserList = function UserList(_ref2) {
|
|
|
8781
8686
|
behavior: 'smooth'
|
|
8782
8687
|
});
|
|
8783
8688
|
};
|
|
8784
|
-
var _React$
|
|
8785
|
-
signup_page = _React$
|
|
8786
|
-
setSignUpPage = _React$
|
|
8787
|
-
var
|
|
8788
|
-
signup_rowsPerPage =
|
|
8789
|
-
setSignUpRowsPerPage =
|
|
8790
|
-
var _React$
|
|
8791
|
-
signup_order = _React$
|
|
8792
|
-
setSignUpOrder = _React$
|
|
8793
|
-
var _React$
|
|
8794
|
-
signup_orderBy = _React$
|
|
8795
|
-
setSignUpOrderBy = _React$
|
|
8796
|
-
var
|
|
8797
|
-
signup_searchValue =
|
|
8798
|
-
set_signup_SearchValue =
|
|
8689
|
+
var _React$useState6 = React.useState(1),
|
|
8690
|
+
signup_page = _React$useState6[0],
|
|
8691
|
+
setSignUpPage = _React$useState6[1];
|
|
8692
|
+
var _useState13 = useState(5),
|
|
8693
|
+
signup_rowsPerPage = _useState13[0],
|
|
8694
|
+
setSignUpRowsPerPage = _useState13[1];
|
|
8695
|
+
var _React$useState7 = React.useState('asc'),
|
|
8696
|
+
signup_order = _React$useState7[0],
|
|
8697
|
+
setSignUpOrder = _React$useState7[1];
|
|
8698
|
+
var _React$useState8 = React.useState('fname'),
|
|
8699
|
+
signup_orderBy = _React$useState8[0],
|
|
8700
|
+
setSignUpOrderBy = _React$useState8[1];
|
|
8701
|
+
var _useState14 = useState(''),
|
|
8702
|
+
signup_searchValue = _useState14[0],
|
|
8703
|
+
set_signup_SearchValue = _useState14[1];
|
|
8704
|
+
var _useState15 = useState(false),
|
|
8705
|
+
isSignUpSortingChange = _useState15[0],
|
|
8706
|
+
setSignUpSortingChange = _useState15[1];
|
|
8799
8707
|
var _useState16 = useState(false),
|
|
8800
|
-
|
|
8801
|
-
|
|
8708
|
+
isSignUpSearchingChange = _useState16[0],
|
|
8709
|
+
setSignUpSearchingChange = _useState16[1];
|
|
8802
8710
|
var _useState17 = useState(false),
|
|
8803
|
-
|
|
8804
|
-
|
|
8711
|
+
isSignUpSortingChangeTemp = _useState17[0],
|
|
8712
|
+
setSignUpSortingChangeTemp = _useState17[1];
|
|
8805
8713
|
var _useState18 = useState(false),
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
var _useState19 = useState(false),
|
|
8809
|
-
isSignUpSearchingChangeTemp = _useState19[0],
|
|
8810
|
-
setSignUpSearchingChangeTemp = _useState19[1];
|
|
8714
|
+
isSignUpSearchingChangeTemp = _useState18[0],
|
|
8715
|
+
setSignUpSearchingChangeTemp = _useState18[1];
|
|
8811
8716
|
var _useSelector3 = useSelector(function (state) {
|
|
8812
8717
|
return state.userList;
|
|
8813
8718
|
}),
|
|
@@ -9322,82 +9227,6 @@ var UserList = function UserList(_ref2) {
|
|
|
9322
9227
|
}))
|
|
9323
9228
|
}]
|
|
9324
9229
|
}))), /*#__PURE__*/React.createElement(IUIModal, {
|
|
9325
|
-
isOpen: deactivateSingle,
|
|
9326
|
-
closeHandler: function closeHandler() {
|
|
9327
|
-
setDeactivateSingle(false);
|
|
9328
|
-
},
|
|
9329
|
-
cancelLabel: "Cancel",
|
|
9330
|
-
submitLabel: "Deactivate",
|
|
9331
|
-
submitHandler: handleDeactivateUsers,
|
|
9332
|
-
headerText: "Deactivate this user?",
|
|
9333
|
-
width: "400px",
|
|
9334
|
-
subHanderText: "",
|
|
9335
|
-
submitBtnClass: styles$5.deactivateBtn,
|
|
9336
|
-
isDisabledSubmitBtn: true
|
|
9337
|
-
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
9338
|
-
className: styles$5.deactivateSingle
|
|
9339
|
-
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
9340
|
-
className: styles$5.deactivateAlert
|
|
9341
|
-
}, /*#__PURE__*/React.createElement(InfoYellowIcon, {
|
|
9342
|
-
width: "9",
|
|
9343
|
-
height: "9"
|
|
9344
|
-
}), /*#__PURE__*/React.createElement(IUITypography, null, /*#__PURE__*/React.createElement("b", null, "Anvesh Dunna"), " is linked with multiple roles. You can deactivate them only once you transfer the roles to another user.")), /*#__PURE__*/React.createElement(IUIBox, {
|
|
9345
|
-
className: "iui__mb-15 iui__mt-15"
|
|
9346
|
-
}, /*#__PURE__*/React.createElement(IUIAsyncSelect, {
|
|
9347
|
-
isMove: true,
|
|
9348
|
-
additional: {
|
|
9349
|
-
page: 1,
|
|
9350
|
-
product: 'travel',
|
|
9351
|
-
placeholder: 'Select a user'
|
|
9352
|
-
},
|
|
9353
|
-
placeHolderCheck: travelFYI !== undefined && travelFYI.value === '',
|
|
9354
|
-
label: "Transfer admin role to",
|
|
9355
|
-
value: travelFYI,
|
|
9356
|
-
onValueChange: function onValueChange(_ref4) {
|
|
9357
|
-
var _value = _ref4._value;
|
|
9358
|
-
return setTravelFYI(_value);
|
|
9359
|
-
},
|
|
9360
|
-
loadOption: approversOptions,
|
|
9361
|
-
disableText: "Please get in touch with your administrator to change this value."
|
|
9362
|
-
})), /*#__PURE__*/React.createElement(IUITypography, {
|
|
9363
|
-
className: clsx('iui__mb-5', styles$5.departmentHeadText)
|
|
9364
|
-
}, "Anvesh Dunna is the department head for: Product Design."), /*#__PURE__*/React.createElement(IUIBox, {
|
|
9365
|
-
className: "iui__mb-15"
|
|
9366
|
-
}, /*#__PURE__*/React.createElement(IUIAsyncSelect, {
|
|
9367
|
-
isMove: true,
|
|
9368
|
-
additional: {
|
|
9369
|
-
page: 1,
|
|
9370
|
-
product: 'travel',
|
|
9371
|
-
placeholder: 'Select a user'
|
|
9372
|
-
},
|
|
9373
|
-
placeHolderCheck: travelFYI !== undefined && travelFYI.value === '',
|
|
9374
|
-
label: "Transfer department head role to",
|
|
9375
|
-
value: travelFYI,
|
|
9376
|
-
onValueChange: function onValueChange(_ref5) {
|
|
9377
|
-
var _value = _ref5._value;
|
|
9378
|
-
return setTravelFYI(_value);
|
|
9379
|
-
},
|
|
9380
|
-
loadOption: approversOptions,
|
|
9381
|
-
disableText: "Please get in touch with your administrator to change this value."
|
|
9382
|
-
})), /*#__PURE__*/React.createElement(IUIBox, {
|
|
9383
|
-
className: "iui__mb-15"
|
|
9384
|
-
}, /*#__PURE__*/React.createElement(IUIAsyncSelect, {
|
|
9385
|
-
isMove: true,
|
|
9386
|
-
additional: {
|
|
9387
|
-
page: 1,
|
|
9388
|
-
product: 'travel',
|
|
9389
|
-
placeholder: 'Select a user'
|
|
9390
|
-
},
|
|
9391
|
-
placeHolderCheck: travelFYI !== undefined && travelFYI.value === '',
|
|
9392
|
-
label: "Transfer approver role to",
|
|
9393
|
-
value: travelFYI,
|
|
9394
|
-
onValueChange: function onValueChange(_ref6) {
|
|
9395
|
-
var _value = _ref6._value;
|
|
9396
|
-
return setTravelFYI(_value);
|
|
9397
|
-
},
|
|
9398
|
-
loadOption: approversOptions,
|
|
9399
|
-
disableText: "Please get in touch with your administrator to change this value."
|
|
9400
|
-
})))), /*#__PURE__*/React.createElement(IUIModal, {
|
|
9401
9230
|
isOpen: Object.values(selected).flat().length > 0 && isOpenDeActivateModal,
|
|
9402
9231
|
closeHandler: closeDeActivateModal,
|
|
9403
9232
|
cancelLabel: "Cancel",
|
|
@@ -9466,8 +9295,8 @@ var UserList = function UserList(_ref2) {
|
|
|
9466
9295
|
errMsg: hasVerificationError
|
|
9467
9296
|
}));
|
|
9468
9297
|
};
|
|
9469
|
-
var TabLabelCount = function TabLabelCount(
|
|
9470
|
-
var count =
|
|
9298
|
+
var TabLabelCount = function TabLabelCount(_ref4) {
|
|
9299
|
+
var count = _ref4.count;
|
|
9471
9300
|
return /*#__PURE__*/React.createElement(IUIBox, {
|
|
9472
9301
|
className: styles$5.TabLabelCount
|
|
9473
9302
|
}, " ", count, " ");
|
|
@@ -9542,12 +9371,11 @@ function Header(props) {
|
|
|
9542
9371
|
})));
|
|
9543
9372
|
}
|
|
9544
9373
|
|
|
9545
|
-
var styles$7 = {"sidebar__container":"_1EFxC","sidebar__wrapper":"_3Mk3_","sidebar__navlinks":"_29KVG","sidebar__navlinks-title":"_2Eg7m","MuiListItem-button":"_3yWwI","Mui-selected":"_3Ou88","
|
|
9374
|
+
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"};
|
|
9546
9375
|
|
|
9547
9376
|
function Listview(_ref) {
|
|
9548
9377
|
var data = _ref.data,
|
|
9549
9378
|
name = _ref.name,
|
|
9550
|
-
tableName = _ref.tableName,
|
|
9551
9379
|
handleEditDialog = _ref.handleEditDialog,
|
|
9552
9380
|
handleDeleteDialog = _ref.handleDeleteDialog,
|
|
9553
9381
|
orderBy = _ref.orderBy,
|
|
@@ -9560,82 +9388,16 @@ function Listview(_ref) {
|
|
|
9560
9388
|
handleChangePage = _ref$handleChangePage === void 0 ? function () {} : _ref$handleChangePage,
|
|
9561
9389
|
page = _ref.page,
|
|
9562
9390
|
rowsPerPage = _ref.rowsPerPage;
|
|
9563
|
-
var deptHeadDetails = function deptHeadDetails(data) {
|
|
9564
|
-
var _data$dept_head_detai;
|
|
9565
|
-
if ((data === null || data === void 0 ? void 0 : (_data$dept_head_detai = data.dept_head_details) === null || _data$dept_head_detai === void 0 ? void 0 : _data$dept_head_detai.length) > 0) {
|
|
9566
|
-
return data.dept_head_details[0].first_name + ' ' + data.dept_head_details[0].last_name;
|
|
9567
|
-
}
|
|
9568
|
-
};
|
|
9569
9391
|
var columns = [{
|
|
9570
9392
|
id: 'name',
|
|
9571
9393
|
label: name,
|
|
9572
|
-
width: '
|
|
9573
|
-
sortable: true,
|
|
9574
|
-
cell: function cell(row) {
|
|
9575
|
-
return /*#__PURE__*/React.createElement(IUIBox, {
|
|
9576
|
-
component: "div"
|
|
9577
|
-
}, row.name);
|
|
9578
|
-
}
|
|
9579
|
-
}, {
|
|
9580
|
-
id: 'no_of_users',
|
|
9581
|
-
label: 'Number of users',
|
|
9582
|
-
width: '40%',
|
|
9583
|
-
sortable: true,
|
|
9584
|
-
cell: function cell(row) {
|
|
9585
|
-
return /*#__PURE__*/React.createElement(IUIBox, {
|
|
9586
|
-
component: "div"
|
|
9587
|
-
}, row.no_of_users);
|
|
9588
|
-
}
|
|
9589
|
-
}, {
|
|
9590
|
-
id: 'actions',
|
|
9591
|
-
label: 'Actions',
|
|
9592
|
-
width: '20%',
|
|
9593
|
-
cell: function cell(row) {
|
|
9594
|
-
return row.code !== UNASSIGNED_USERS && /*#__PURE__*/React.createElement(IUIBox, {
|
|
9595
|
-
display: "flex"
|
|
9596
|
-
}, /*#__PURE__*/React.createElement(IUIButton, {
|
|
9597
|
-
buttonText: "Edit",
|
|
9598
|
-
className: styles$7.buttonWidth,
|
|
9599
|
-
onClick: function onClick() {
|
|
9600
|
-
return handleEditDialog(row);
|
|
9601
|
-
}
|
|
9602
|
-
}), row.no_of_users > 0 ? /*#__PURE__*/React.createElement(IUIButton, {
|
|
9603
|
-
buttonText: "Delete",
|
|
9604
|
-
className: styles$7.buttonWidth,
|
|
9605
|
-
onClick: function onClick() {
|
|
9606
|
-
return handleDeleteDialog(row, true);
|
|
9607
|
-
}
|
|
9608
|
-
}) : /*#__PURE__*/React.createElement(IUIButton, {
|
|
9609
|
-
buttonText: "Delete",
|
|
9610
|
-
className: styles$7.buttonWidth,
|
|
9611
|
-
onClick: function onClick() {
|
|
9612
|
-
return handleDeleteDialog(row, false);
|
|
9613
|
-
}
|
|
9614
|
-
}));
|
|
9615
|
-
}
|
|
9616
|
-
}];
|
|
9617
|
-
var departmentColumns = [{
|
|
9618
|
-
id: 'name',
|
|
9619
|
-
label: name,
|
|
9620
|
-
width: '30%',
|
|
9394
|
+
width: '45%',
|
|
9621
9395
|
sortable: true,
|
|
9622
9396
|
cell: function cell(row) {
|
|
9623
9397
|
return /*#__PURE__*/React.createElement(IUIBox, {
|
|
9624
9398
|
component: "div"
|
|
9625
9399
|
}, row.name);
|
|
9626
9400
|
}
|
|
9627
|
-
}, {
|
|
9628
|
-
id: 'department_head',
|
|
9629
|
-
label: 'Department head',
|
|
9630
|
-
width: '30%',
|
|
9631
|
-
sortable: true,
|
|
9632
|
-
cell: function cell(row) {
|
|
9633
|
-
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(IUIBox, {
|
|
9634
|
-
component: "div"
|
|
9635
|
-
}, deptHeadDetails(row)), row.is_default_dept_head && /*#__PURE__*/React.createElement(IUITypography, {
|
|
9636
|
-
className: clsx(styles$7.rowText, styles$7.textTransform, styles$7.lightColor)
|
|
9637
|
-
}, "Assigned by default"));
|
|
9638
|
-
}
|
|
9639
9401
|
}, {
|
|
9640
9402
|
id: 'no_of_users',
|
|
9641
9403
|
label: 'Number of users',
|
|
@@ -9649,7 +9411,7 @@ function Listview(_ref) {
|
|
|
9649
9411
|
}, {
|
|
9650
9412
|
id: 'actions',
|
|
9651
9413
|
label: 'Actions',
|
|
9652
|
-
width: '
|
|
9414
|
+
width: '10%',
|
|
9653
9415
|
cell: function cell(row) {
|
|
9654
9416
|
return row.code !== UNASSIGNED_USERS && /*#__PURE__*/React.createElement(IUIBox, {
|
|
9655
9417
|
display: "flex"
|
|
@@ -9682,7 +9444,7 @@ function Listview(_ref) {
|
|
|
9682
9444
|
hasFilter: true,
|
|
9683
9445
|
isCheckboxTable: false,
|
|
9684
9446
|
count: data.count,
|
|
9685
|
-
columns:
|
|
9447
|
+
columns: columns,
|
|
9686
9448
|
rows: data.results,
|
|
9687
9449
|
page: page,
|
|
9688
9450
|
handleChangePage: handleChangePage,
|
|
@@ -9739,44 +9501,15 @@ function EditPanelDialog(_ref) {
|
|
|
9739
9501
|
var isOpen = _ref.isOpen,
|
|
9740
9502
|
closeHandler = _ref.closeHandler,
|
|
9741
9503
|
onValueChange = _ref.onValueChange,
|
|
9742
|
-
|
|
9504
|
+
submitHandler = _ref.submitHandler,
|
|
9743
9505
|
isError = _ref.isError,
|
|
9744
9506
|
name = _ref.name,
|
|
9745
9507
|
isDisabledSubmitBtn = _ref.isDisabledSubmitBtn,
|
|
9746
|
-
validation = _ref.validation
|
|
9747
|
-
rowData = _ref.rowData,
|
|
9748
|
-
tableName = _ref.tableName,
|
|
9749
|
-
config = _ref.config;
|
|
9508
|
+
validation = _ref.validation;
|
|
9750
9509
|
var _useSelector = useSelector(function (state) {
|
|
9751
9510
|
return state.userPanel;
|
|
9752
9511
|
}),
|
|
9753
9512
|
dialogData = _useSelector.dialogData;
|
|
9754
|
-
var deptHeadDetails = function deptHeadDetails(data) {
|
|
9755
|
-
var _data$dept_head_detai;
|
|
9756
|
-
if ((data === null || data === void 0 ? void 0 : (_data$dept_head_detai = data.dept_head_details) === null || _data$dept_head_detai === void 0 ? void 0 : _data$dept_head_detai.length) > 0) {
|
|
9757
|
-
setHead({
|
|
9758
|
-
value: data.dept_head_details[0].id,
|
|
9759
|
-
label: data.dept_head_details[0].first_name + ' ' + data.dept_head_details[0].last_name
|
|
9760
|
-
});
|
|
9761
|
-
}
|
|
9762
|
-
};
|
|
9763
|
-
var _useState = useState({
|
|
9764
|
-
value: '',
|
|
9765
|
-
label: 'Select'
|
|
9766
|
-
}),
|
|
9767
|
-
head = _useState[0],
|
|
9768
|
-
setHead = _useState[1];
|
|
9769
|
-
useEffect(function () {
|
|
9770
|
-
deptHeadDetails(rowData);
|
|
9771
|
-
}, [rowData]);
|
|
9772
|
-
var history = useHistory();
|
|
9773
|
-
var handleAddPageNavigation = function handleAddPageNavigation() {
|
|
9774
|
-
console.log(rowData);
|
|
9775
|
-
history.push({
|
|
9776
|
-
pathname: config.routes.users.add.path,
|
|
9777
|
-
state: rowData
|
|
9778
|
-
});
|
|
9779
|
-
};
|
|
9780
9513
|
return /*#__PURE__*/React.createElement(IUIModal, {
|
|
9781
9514
|
isDisabledSubmitBtn: isDisabledSubmitBtn,
|
|
9782
9515
|
isOpen: isOpen,
|
|
@@ -9784,59 +9517,25 @@ function EditPanelDialog(_ref) {
|
|
|
9784
9517
|
headerText: "Edit " + name.toLowerCase(),
|
|
9785
9518
|
cancelLabel: (_dialogData$labels = dialogData.labels) === null || _dialogData$labels === void 0 ? void 0 : _dialogData$labels.cancelLabel,
|
|
9786
9519
|
submitLabel: (_dialogData$labels2 = dialogData.labels) === null || _dialogData$labels2 === void 0 ? void 0 : _dialogData$labels2.submitLabel,
|
|
9787
|
-
submitHandler:
|
|
9788
|
-
|
|
9789
|
-
},
|
|
9790
|
-
width: tableName === 'department' ? '400px' : '365px',
|
|
9520
|
+
submitHandler: submitHandler,
|
|
9521
|
+
width: "365px",
|
|
9791
9522
|
hideCloseIcon: false,
|
|
9792
9523
|
modalBodyStyle: {
|
|
9793
|
-
|
|
9524
|
+
maxHeight: '400px',
|
|
9525
|
+
overflow: 'auto',
|
|
9526
|
+
margin: '0px'
|
|
9794
9527
|
},
|
|
9795
9528
|
footerStyle: {
|
|
9796
9529
|
justifyContent: 'end'
|
|
9797
9530
|
}
|
|
9798
|
-
}, tableName === 'department' && rowData.no_of_users === 0 && /*#__PURE__*/React.createElement(IUIBox, {
|
|
9799
|
-
display: "flex",
|
|
9800
|
-
justifyContent: "center",
|
|
9801
|
-
alignItems: "center",
|
|
9802
|
-
flexDirection: "column",
|
|
9803
|
-
style: {
|
|
9804
|
-
marginBottom: '30px'
|
|
9805
|
-
}
|
|
9806
9531
|
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
9532
|
+
component: "div",
|
|
9807
9533
|
display: "flex",
|
|
9808
9534
|
justifyContent: "center",
|
|
9809
9535
|
alignItems: "center",
|
|
9810
9536
|
flexDirection: "column",
|
|
9811
|
-
|
|
9812
|
-
}, /*#__PURE__*/React.createElement(
|
|
9813
|
-
className: styles$7.alertDescContainer
|
|
9814
|
-
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
9815
|
-
className: styles$7.iconLayout,
|
|
9816
|
-
style: {
|
|
9817
|
-
paddingTop: '4px'
|
|
9818
|
-
}
|
|
9819
|
-
}, /*#__PURE__*/React.createElement(BoldInfoIcon, {
|
|
9820
|
-
color: "#CA8A04",
|
|
9821
|
-
width: "25",
|
|
9822
|
-
height: "20",
|
|
9823
|
-
className: styles$7.iconStyle
|
|
9824
|
-
})), /*#__PURE__*/React.createElement(IUILabel, {
|
|
9825
|
-
label: "By default, the primary admin gets assigned as the department head. This department has no users, so to change department head, add a new user.",
|
|
9826
|
-
style: {
|
|
9827
|
-
fontWeight: 'normal'
|
|
9828
|
-
}
|
|
9829
|
-
})), /*#__PURE__*/React.createElement(IUIButton, {
|
|
9830
|
-
buttonText: "Add user",
|
|
9831
|
-
type: "text",
|
|
9832
|
-
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
9833
|
-
width: "9",
|
|
9834
|
-
height: "9",
|
|
9835
|
-
color: "#EC5D25"
|
|
9836
|
-
}),
|
|
9837
|
-
onClick: handleAddPageNavigation,
|
|
9838
|
-
className: styles$7.addUserButton
|
|
9839
|
-
}))), /*#__PURE__*/React.createElement(IUIInput, {
|
|
9537
|
+
padding: "8px 24px"
|
|
9538
|
+
}, /*#__PURE__*/React.createElement(IUIInput, {
|
|
9840
9539
|
label: name + " name",
|
|
9841
9540
|
name: "name",
|
|
9842
9541
|
defaultValue: dialogData.data.name,
|
|
@@ -9845,49 +9544,7 @@ function EditPanelDialog(_ref) {
|
|
|
9845
9544
|
isError: isError,
|
|
9846
9545
|
validation: validation,
|
|
9847
9546
|
errorMsg: "Please enter " + name.toLowerCase() + " name.",
|
|
9848
|
-
required: true
|
|
9849
|
-
style: tableName === 'department' && {
|
|
9850
|
-
width: '350px'
|
|
9851
|
-
}
|
|
9852
|
-
}), tableName === 'department' && rowData.no_of_users === 0 && /*#__PURE__*/React.createElement(IUIBox, {
|
|
9853
|
-
className: "iui__mt-15",
|
|
9854
|
-
style: {
|
|
9855
|
-
width: '100%'
|
|
9856
|
-
}
|
|
9857
|
-
}, /*#__PURE__*/React.createElement(IUIInput, {
|
|
9858
|
-
label: "Department head",
|
|
9859
|
-
name: "name",
|
|
9860
|
-
defaultValue: head.label,
|
|
9861
|
-
placeholder: "",
|
|
9862
|
-
readOnly: true,
|
|
9863
|
-
style: {
|
|
9864
|
-
width: '350px'
|
|
9865
|
-
}
|
|
9866
|
-
})), tableName === 'department' && rowData.no_of_users > 0 && /*#__PURE__*/React.createElement(IUIBox, {
|
|
9867
|
-
className: "iui__mt-15",
|
|
9868
|
-
style: {
|
|
9869
|
-
width: '100%'
|
|
9870
|
-
}
|
|
9871
|
-
}, /*#__PURE__*/React.createElement(IUIAsyncSelect, {
|
|
9872
|
-
noResultsText: true,
|
|
9873
|
-
isMove: true,
|
|
9874
|
-
additional: {
|
|
9875
|
-
page: 1,
|
|
9876
|
-
departmentId: rowData.id
|
|
9877
|
-
},
|
|
9878
|
-
placeHolderCheck: head !== undefined && head.value === '',
|
|
9879
|
-
label: "Department head",
|
|
9880
|
-
value: head,
|
|
9881
|
-
onValueChange: function onValueChange(_ref2) {
|
|
9882
|
-
var _value = _ref2._value;
|
|
9883
|
-
return setHead(_value);
|
|
9884
|
-
},
|
|
9885
|
-
loadOption: departmentHeadOptions,
|
|
9886
|
-
disableText: "Please get in touch with your administrator to change this value.",
|
|
9887
|
-
customLoadingText: "No users found in this department",
|
|
9888
|
-
customLoadingTextStyle: {
|
|
9889
|
-
color: '#374151'
|
|
9890
|
-
}
|
|
9547
|
+
required: true
|
|
9891
9548
|
})));
|
|
9892
9549
|
}
|
|
9893
9550
|
|
|
@@ -10066,15 +9723,12 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10066
9723
|
var _useState13 = useState(false),
|
|
10067
9724
|
isSortingChangeTemp = _useState13[0],
|
|
10068
9725
|
setSortingChangeTemp = _useState13[1];
|
|
10069
|
-
var _useState14 = useState(
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
var _useState15 = useState(
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
var _useState16 = useState(5),
|
|
10076
|
-
rowsPerPage = _useState16[0],
|
|
10077
|
-
setRowsPerPage = _useState16[1];
|
|
9726
|
+
var _useState14 = useState(1),
|
|
9727
|
+
page = _useState14[0],
|
|
9728
|
+
setPage = _useState14[1];
|
|
9729
|
+
var _useState15 = useState(5),
|
|
9730
|
+
rowsPerPage = _useState15[0],
|
|
9731
|
+
setRowsPerPage = _useState15[1];
|
|
10078
9732
|
var orderingParam = orderBy;
|
|
10079
9733
|
var _useSelector = useSelector(function (state) {
|
|
10080
9734
|
return state.userPanel;
|
|
@@ -10170,7 +9824,6 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10170
9824
|
submitLabel: 'Save'
|
|
10171
9825
|
}, '', data));
|
|
10172
9826
|
setDataList(data.name);
|
|
10173
|
-
setRowData(data);
|
|
10174
9827
|
setEditModal(true);
|
|
10175
9828
|
};
|
|
10176
9829
|
var closeEditDialog = function closeEditDialog() {
|
|
@@ -10185,12 +9838,6 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10185
9838
|
var payload = {
|
|
10186
9839
|
names: [dataList]
|
|
10187
9840
|
};
|
|
10188
|
-
if (tableName === 'department') {
|
|
10189
|
-
payload = {
|
|
10190
|
-
name: dataList,
|
|
10191
|
-
department_head_id: null
|
|
10192
|
-
};
|
|
10193
|
-
}
|
|
10194
9841
|
var message = title + " added successfully.";
|
|
10195
9842
|
handleApiCall(addRecord, payload, message, 'add');
|
|
10196
9843
|
} else {
|
|
@@ -10204,12 +9851,9 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10204
9851
|
var message = title + " deleted successfully.";
|
|
10205
9852
|
handleApiCall(deleteRecord, payload, message, 'delete');
|
|
10206
9853
|
};
|
|
10207
|
-
var handleApiCall = function handleApiCall(dispatchFun, payload, message, type
|
|
10208
|
-
if (optionalParams === void 0) {
|
|
10209
|
-
optionalParams = null;
|
|
10210
|
-
}
|
|
9854
|
+
var handleApiCall = function handleApiCall(dispatchFun, payload, message, type) {
|
|
10211
9855
|
dispatch(userPanelShowLoader());
|
|
10212
|
-
dispatch(dispatchFun(tableName, payload, getApiData()
|
|
9856
|
+
dispatch(dispatchFun(tableName, payload, getApiData())).then(function (res) {
|
|
10213
9857
|
IUIToastMessageService$8.sNotify(type === 'move' ? res.data.message : "" + message);
|
|
10214
9858
|
dispatch(userPanelStopLoader());
|
|
10215
9859
|
if (type === 'delete') {
|
|
@@ -10251,14 +9895,8 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10251
9895
|
name: dataList
|
|
10252
9896
|
}]
|
|
10253
9897
|
};
|
|
10254
|
-
if (tableName === 'department') {
|
|
10255
|
-
payload = {
|
|
10256
|
-
name: dataList,
|
|
10257
|
-
department_head_id: data.value === '' || rowData.is_default_dept_head && rowData.dept_head === data.value ? null : data.value
|
|
10258
|
-
};
|
|
10259
|
-
}
|
|
10260
9898
|
var message = title + " updated successfully.";
|
|
10261
|
-
handleApiCall(editRecord, payload, message, 'edit'
|
|
9899
|
+
handleApiCall(editRecord, payload, message, 'edit');
|
|
10262
9900
|
setErrorEdit(false);
|
|
10263
9901
|
} else {
|
|
10264
9902
|
setErrorEdit(true);
|
|
@@ -10365,10 +10003,7 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10365
10003
|
submitHandler: handleEditPanel,
|
|
10366
10004
|
isError: errorEdit,
|
|
10367
10005
|
isDisabledSubmitBtn: loading,
|
|
10368
|
-
validation: validation
|
|
10369
|
-
rowData: rowData,
|
|
10370
|
-
tableName: tableName,
|
|
10371
|
-
config: config
|
|
10006
|
+
validation: validation
|
|
10372
10007
|
})) : /*#__PURE__*/React.createElement(VerificationError, {
|
|
10373
10008
|
config: config
|
|
10374
10009
|
}));
|