@itilite/iui-user-management 0.4.909 → 0.4.911
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 +128 -143
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +128 -143
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1360,7 +1360,7 @@ var fetchCountryCodes = function fetchCountryCodes() {
|
|
|
1360
1360
|
return new Promise(function (resolve, reject) {
|
|
1361
1361
|
api$2.get(userAddEditUrl.countryCode()).then(function (res) {
|
|
1362
1362
|
dispatch(setCountryCodes(res.data.country_code_details));
|
|
1363
|
-
resolve(
|
|
1363
|
+
resolve('success');
|
|
1364
1364
|
})["catch"](function (err) {
|
|
1365
1365
|
reject(err);
|
|
1366
1366
|
})["finally"](function () {});
|
|
@@ -2957,7 +2957,7 @@ var personalInfo = [{
|
|
|
2957
2957
|
id: 4,
|
|
2958
2958
|
label: 'Phone number',
|
|
2959
2959
|
name: 'contact_number',
|
|
2960
|
-
required:
|
|
2960
|
+
required: true,
|
|
2961
2961
|
type: 'phone',
|
|
2962
2962
|
fullWidth: false,
|
|
2963
2963
|
visibility: true,
|
|
@@ -3054,8 +3054,8 @@ var workInfo = [{
|
|
|
3054
3054
|
validation: {
|
|
3055
3055
|
regexOnChange: null,
|
|
3056
3056
|
regexOnBlur: [{
|
|
3057
|
-
regex: /^[(A-Z)(a-z)(0-9)
|
|
3058
|
-
message: "Only alphabets, numbers
|
|
3057
|
+
regex: /^[(A-Z)(a-z)(0-9)\-& ]*$/,
|
|
3058
|
+
message: "Only alphabets, numbers and - & are allowed."
|
|
3059
3059
|
}],
|
|
3060
3060
|
maxLimit: '',
|
|
3061
3061
|
minLimit: '',
|
|
@@ -3143,8 +3143,8 @@ var workInfo = [{
|
|
|
3143
3143
|
validation: {
|
|
3144
3144
|
regexOnChange: null,
|
|
3145
3145
|
regexOnBlur: [{
|
|
3146
|
-
regex: /^[A-Za-z0-9
|
|
3147
|
-
message: "Only alphabets, numbers & special characters . & ' ( )
|
|
3146
|
+
regex: /^[A-Za-z0-9 \-.,&'()\/]*$/,
|
|
3147
|
+
message: "Only alphabets, numbers & special characters . & ' ( ) - , / are allowed."
|
|
3148
3148
|
}, {
|
|
3149
3149
|
regex: /^[a-zA-Z]/,
|
|
3150
3150
|
message: 'Designation should start with alphabets'
|
|
@@ -3155,6 +3155,31 @@ var workInfo = [{
|
|
|
3155
3155
|
minLength: 0
|
|
3156
3156
|
},
|
|
3157
3157
|
disableText: 'Please get in touch with your administrator to change this value.'
|
|
3158
|
+
}, {
|
|
3159
|
+
id: 7,
|
|
3160
|
+
label: 'Manager',
|
|
3161
|
+
name: 'manager',
|
|
3162
|
+
required: false,
|
|
3163
|
+
type: 'async_select',
|
|
3164
|
+
fullWidth: false,
|
|
3165
|
+
visibility: true,
|
|
3166
|
+
readOnly: false,
|
|
3167
|
+
placeholder: 'Select manager',
|
|
3168
|
+
tabelName: 'manager',
|
|
3169
|
+
product: 'travel',
|
|
3170
|
+
loadOption: approversOptions
|
|
3171
|
+
}, {
|
|
3172
|
+
id: 8,
|
|
3173
|
+
label: 'Skip manager',
|
|
3174
|
+
name: 'skip_manager',
|
|
3175
|
+
required: false,
|
|
3176
|
+
type: 'async_select',
|
|
3177
|
+
fullWidth: false,
|
|
3178
|
+
visibility: true,
|
|
3179
|
+
readOnly: false,
|
|
3180
|
+
placeholder: 'Select manager',
|
|
3181
|
+
product: 'travel',
|
|
3182
|
+
loadOption: approversOptions
|
|
3158
3183
|
}, {
|
|
3159
3184
|
id: 9,
|
|
3160
3185
|
label: 'Base location',
|
|
@@ -4955,32 +4980,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4955
4980
|
}
|
|
4956
4981
|
setProductAccess(_productAccess);
|
|
4957
4982
|
};
|
|
4958
|
-
var _useState2 = useState(
|
|
4959
|
-
newCountryCode = _useState2[0],
|
|
4960
|
-
setNewCountryCode = _useState2[1];
|
|
4961
|
-
var _useState3 = useState(),
|
|
4962
|
-
countryDialCode = _useState3[0],
|
|
4963
|
-
setCountryDialCode = _useState3[1];
|
|
4964
|
-
var _useState4 = useState([]),
|
|
4965
|
-
countryContactCode = _useState4[0],
|
|
4966
|
-
setCountryContactCode = _useState4[1];
|
|
4967
|
-
useEffect(function () {
|
|
4968
|
-
var countryObject = countryContactCode.find(function (t) {
|
|
4969
|
-
return t.dial_code === countryDialCode;
|
|
4970
|
-
});
|
|
4971
|
-
console.log('countryObject', countryDialCode, countryObject);
|
|
4972
|
-
if (countryObject) {
|
|
4973
|
-
setPersonalInfoInput(_extends({}, personalInfoInput, {
|
|
4974
|
-
country_code: countryObject.code
|
|
4975
|
-
}));
|
|
4976
|
-
}
|
|
4977
|
-
}, [countryDialCode]);
|
|
4978
|
-
useEffect(function () {
|
|
4979
|
-
var extractedNumber = newCountryCode.substring(1);
|
|
4980
|
-
var convertedNumber = parseInt(extractedNumber);
|
|
4981
|
-
setCountryDialCode(convertedNumber);
|
|
4982
|
-
}, [newCountryCode]);
|
|
4983
|
-
var _useState5 = useState({
|
|
4983
|
+
var _useState2 = useState({
|
|
4984
4984
|
first_name: '',
|
|
4985
4985
|
last_name: '',
|
|
4986
4986
|
email: '',
|
|
@@ -4991,9 +4991,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4991
4991
|
contact_country_code: '',
|
|
4992
4992
|
profile_pic: []
|
|
4993
4993
|
}),
|
|
4994
|
-
personalInfoInput =
|
|
4995
|
-
setPersonalInfoInput =
|
|
4996
|
-
var
|
|
4994
|
+
personalInfoInput = _useState2[0],
|
|
4995
|
+
setPersonalInfoInput = _useState2[1];
|
|
4996
|
+
var _useState3 = useState({
|
|
4997
4997
|
emp_level: {
|
|
4998
4998
|
value: '',
|
|
4999
4999
|
label: 'Select employee level'
|
|
@@ -5026,9 +5026,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5026
5026
|
label: defaultCurrency
|
|
5027
5027
|
}
|
|
5028
5028
|
}),
|
|
5029
|
-
employeeInfoInput =
|
|
5030
|
-
setEmployeeInfoInput =
|
|
5031
|
-
var
|
|
5029
|
+
employeeInfoInput = _useState3[0],
|
|
5030
|
+
setEmployeeInfoInput = _useState3[1];
|
|
5031
|
+
var _useState4 = useState({
|
|
5032
5032
|
emp_level: 0,
|
|
5033
5033
|
entity: 0,
|
|
5034
5034
|
business_unit: 0,
|
|
@@ -5037,48 +5037,48 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5037
5037
|
manager_id: 0,
|
|
5038
5038
|
skip_manager_id: 0
|
|
5039
5039
|
}),
|
|
5040
|
-
cacheForAsyncDropdown =
|
|
5041
|
-
clearCacheForAsyncDropdown =
|
|
5042
|
-
var
|
|
5043
|
-
userTagType =
|
|
5044
|
-
setUserTagType =
|
|
5045
|
-
var
|
|
5046
|
-
scroll =
|
|
5047
|
-
setScroll =
|
|
5048
|
-
var
|
|
5049
|
-
customFieldsInput =
|
|
5050
|
-
setCustomFieldsInput =
|
|
5051
|
-
var
|
|
5052
|
-
travelRole =
|
|
5053
|
-
setTravelRole =
|
|
5054
|
-
var
|
|
5055
|
-
travelApproversInput =
|
|
5056
|
-
setTravelApproversInput =
|
|
5057
|
-
var
|
|
5040
|
+
cacheForAsyncDropdown = _useState4[0],
|
|
5041
|
+
clearCacheForAsyncDropdown = _useState4[1];
|
|
5042
|
+
var _useState5 = useState({}),
|
|
5043
|
+
userTagType = _useState5[0],
|
|
5044
|
+
setUserTagType = _useState5[1];
|
|
5045
|
+
var _useState6 = useState(false),
|
|
5046
|
+
scroll = _useState6[0],
|
|
5047
|
+
setScroll = _useState6[1];
|
|
5048
|
+
var _useState7 = useState({}),
|
|
5049
|
+
customFieldsInput = _useState7[0],
|
|
5050
|
+
setCustomFieldsInput = _useState7[1];
|
|
5051
|
+
var _useState8 = useState('traveler'),
|
|
5052
|
+
travelRole = _useState8[0],
|
|
5053
|
+
setTravelRole = _useState8[1];
|
|
5054
|
+
var _useState9 = useState({}),
|
|
5055
|
+
travelApproversInput = _useState9[0],
|
|
5056
|
+
setTravelApproversInput = _useState9[1];
|
|
5057
|
+
var _useState10 = useState({
|
|
5058
5058
|
value: '',
|
|
5059
5059
|
label: 'Select approver'
|
|
5060
5060
|
}),
|
|
5061
|
-
travelFYI =
|
|
5062
|
-
setTravelFYI =
|
|
5063
|
-
var
|
|
5064
|
-
membershipInfoInput =
|
|
5065
|
-
setMembershipInfoInput =
|
|
5066
|
-
var
|
|
5067
|
-
removedMembershipInfoInput =
|
|
5068
|
-
setRemovedMembershipInfoInput =
|
|
5069
|
-
var
|
|
5061
|
+
travelFYI = _useState10[0],
|
|
5062
|
+
setTravelFYI = _useState10[1];
|
|
5063
|
+
var _useState11 = useState([]),
|
|
5064
|
+
membershipInfoInput = _useState11[0],
|
|
5065
|
+
setMembershipInfoInput = _useState11[1];
|
|
5066
|
+
var _useState12 = useState([]),
|
|
5067
|
+
removedMembershipInfoInput = _useState12[0],
|
|
5068
|
+
setRemovedMembershipInfoInput = _useState12[1];
|
|
5069
|
+
var _useState13 = useState({
|
|
5070
5070
|
flight_seat_preference: '',
|
|
5071
5071
|
meal_preference: ''
|
|
5072
5072
|
}),
|
|
5073
|
-
travelPreferenceInfo =
|
|
5074
|
-
settravelPreferenceInfo =
|
|
5075
|
-
var
|
|
5073
|
+
travelPreferenceInfo = _useState13[0],
|
|
5074
|
+
settravelPreferenceInfo = _useState13[1];
|
|
5075
|
+
var _useState14 = useState({
|
|
5076
5076
|
trusted_traveller: '',
|
|
5077
5077
|
redress_number: ''
|
|
5078
5078
|
}),
|
|
5079
|
-
secureTravelInputInfo =
|
|
5080
|
-
setSecureTravelInputInfo =
|
|
5081
|
-
var
|
|
5079
|
+
secureTravelInputInfo = _useState14[0],
|
|
5080
|
+
setSecureTravelInputInfo = _useState14[1];
|
|
5081
|
+
var _useState15 = useState({
|
|
5082
5082
|
passport_issue_country: {
|
|
5083
5083
|
value: '',
|
|
5084
5084
|
label: 'Select country'
|
|
@@ -5093,39 +5093,39 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5093
5093
|
passport_photo: [],
|
|
5094
5094
|
travel_docs: []
|
|
5095
5095
|
}),
|
|
5096
|
-
passportInfoInput =
|
|
5097
|
-
setPassportInfoInput =
|
|
5098
|
-
var
|
|
5099
|
-
filesForDelete =
|
|
5100
|
-
setFilesForDelete =
|
|
5101
|
-
var
|
|
5102
|
-
profilePicDelete =
|
|
5103
|
-
setProfilePicDelete =
|
|
5104
|
-
var
|
|
5105
|
-
isAdditionalInfoExpanded =
|
|
5106
|
-
setAdditionalInfoFlag =
|
|
5107
|
-
var
|
|
5108
|
-
expenseRole =
|
|
5109
|
-
setExpenseRole =
|
|
5110
|
-
var
|
|
5111
|
-
expenseApproversInput =
|
|
5112
|
-
setExpenseApproversInput =
|
|
5113
|
-
var
|
|
5096
|
+
passportInfoInput = _useState15[0],
|
|
5097
|
+
setPassportInfoInput = _useState15[1];
|
|
5098
|
+
var _useState16 = useState([]),
|
|
5099
|
+
filesForDelete = _useState16[0],
|
|
5100
|
+
setFilesForDelete = _useState16[1];
|
|
5101
|
+
var _useState17 = useState([]),
|
|
5102
|
+
profilePicDelete = _useState17[0],
|
|
5103
|
+
setProfilePicDelete = _useState17[1];
|
|
5104
|
+
var _useState18 = useState(config.env.isTravelProduct && isProfile ? 'open' : ''),
|
|
5105
|
+
isAdditionalInfoExpanded = _useState18[0],
|
|
5106
|
+
setAdditionalInfoFlag = _useState18[1];
|
|
5107
|
+
var _useState19 = useState('submitter'),
|
|
5108
|
+
expenseRole = _useState19[0],
|
|
5109
|
+
setExpenseRole = _useState19[1];
|
|
5110
|
+
var _useState20 = useState({}),
|
|
5111
|
+
expenseApproversInput = _useState20[0],
|
|
5112
|
+
setExpenseApproversInput = _useState20[1];
|
|
5113
|
+
var _useState21 = useState({
|
|
5114
5114
|
value: '',
|
|
5115
5115
|
label: 'Select approver'
|
|
5116
5116
|
}),
|
|
5117
|
-
expenseFYI =
|
|
5118
|
-
setExpenseFYI =
|
|
5117
|
+
expenseFYI = _useState21[0],
|
|
5118
|
+
setExpenseFYI = _useState21[1];
|
|
5119
5119
|
var asyncSelectRefs = useRef({
|
|
5120
5120
|
emp_level: useRef(null),
|
|
5121
5121
|
entity: useRef(null),
|
|
5122
5122
|
business_unit: useRef(null),
|
|
5123
5123
|
department: useRef(null)
|
|
5124
5124
|
});
|
|
5125
|
-
var
|
|
5126
|
-
errorArray =
|
|
5127
|
-
setErrorArray =
|
|
5128
|
-
var
|
|
5125
|
+
var _useState22 = useState([]),
|
|
5126
|
+
errorArray = _useState22[0],
|
|
5127
|
+
setErrorArray = _useState22[1];
|
|
5128
|
+
var _useState23 = useState({
|
|
5129
5129
|
first_name: '',
|
|
5130
5130
|
last_name: '',
|
|
5131
5131
|
email: '',
|
|
@@ -5155,9 +5155,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5155
5155
|
userTagType: '',
|
|
5156
5156
|
profile_pic: ''
|
|
5157
5157
|
}),
|
|
5158
|
-
errorMsgs =
|
|
5159
|
-
setErrorMsgs =
|
|
5160
|
-
var
|
|
5158
|
+
errorMsgs = _useState23[0],
|
|
5159
|
+
setErrorMsgs = _useState23[1];
|
|
5160
|
+
var _useState24 = useState({
|
|
5161
5161
|
first_name: false,
|
|
5162
5162
|
last_name: false,
|
|
5163
5163
|
email: false,
|
|
@@ -5184,14 +5184,11 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5184
5184
|
userTagType: false,
|
|
5185
5185
|
profile_pic: false
|
|
5186
5186
|
}),
|
|
5187
|
-
inputChangeLog =
|
|
5188
|
-
updateInputChangeLog =
|
|
5189
|
-
var
|
|
5190
|
-
uploadedFiles =
|
|
5191
|
-
setUploadedFiles =
|
|
5192
|
-
var _useState29 = useState(70),
|
|
5193
|
-
maxLengthForModal = _useState29[0],
|
|
5194
|
-
setMaxLengthForModal = _useState29[1];
|
|
5187
|
+
inputChangeLog = _useState24[0],
|
|
5188
|
+
updateInputChangeLog = _useState24[1];
|
|
5189
|
+
var _useState25 = useState([]),
|
|
5190
|
+
uploadedFiles = _useState25[0],
|
|
5191
|
+
setUploadedFiles = _useState25[1];
|
|
5195
5192
|
var defaultAddModalData = {
|
|
5196
5193
|
isOpen: false,
|
|
5197
5194
|
isError: false,
|
|
@@ -5204,12 +5201,12 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5204
5201
|
regexOnBlur: null,
|
|
5205
5202
|
maxLimit: '',
|
|
5206
5203
|
minLimit: '',
|
|
5207
|
-
maxLength:
|
|
5204
|
+
maxLength: 70,
|
|
5208
5205
|
minLength: 0
|
|
5209
5206
|
};
|
|
5210
|
-
var
|
|
5211
|
-
addModalData =
|
|
5212
|
-
setAddModalData =
|
|
5207
|
+
var _useState26 = useState(defaultAddModalData),
|
|
5208
|
+
addModalData = _useState26[0],
|
|
5209
|
+
setAddModalData = _useState26[1];
|
|
5213
5210
|
var onAddModalClose = function onAddModalClose() {
|
|
5214
5211
|
setAddModalData(_extends({}, defaultAddModalData));
|
|
5215
5212
|
};
|
|
@@ -5229,16 +5226,12 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5229
5226
|
var title = '';
|
|
5230
5227
|
if (id === 'entity') {
|
|
5231
5228
|
title = 'Entity';
|
|
5232
|
-
setMaxLengthForModal(70);
|
|
5233
5229
|
} else if (id === 'department') {
|
|
5234
5230
|
title = 'Department';
|
|
5235
|
-
setMaxLengthForModal(70);
|
|
5236
5231
|
} else if (id === 'business_unit') {
|
|
5237
|
-
setMaxLengthForModal(150);
|
|
5238
5232
|
title = 'Business unit';
|
|
5239
5233
|
} else if (id === 'employee_level') {
|
|
5240
5234
|
title = 'Employee level';
|
|
5241
|
-
setMaxLengthForModal(70);
|
|
5242
5235
|
}
|
|
5243
5236
|
setAddModalData(_extends({}, addModalData, {
|
|
5244
5237
|
isOpen: true,
|
|
@@ -5632,8 +5625,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5632
5625
|
}
|
|
5633
5626
|
}));
|
|
5634
5627
|
dispatch(fetchCountryCodes()).then(function (_res) {
|
|
5635
|
-
setCountryContactCode(_res);
|
|
5636
|
-
console.log('this is new', _res);
|
|
5637
5628
|
if (isEditMode) {
|
|
5638
5629
|
if (!isProfile && !editUserId) return false;
|
|
5639
5630
|
dispatch(setStaticFieldsVisibility({
|
|
@@ -5955,7 +5946,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5955
5946
|
IUIToastMessageService$4.warningNotify(checkAnyError);
|
|
5956
5947
|
return Promise.resolve();
|
|
5957
5948
|
}
|
|
5958
|
-
console.log(employeeInfoInput,
|
|
5949
|
+
console.log(employeeInfoInput, "data");
|
|
5959
5950
|
if (employeeInfoInput.manager_id.value !== '') {
|
|
5960
5951
|
employeeInfoInput.manager_id = employeeInfoInput.manager.value;
|
|
5961
5952
|
}
|
|
@@ -6019,11 +6010,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6019
6010
|
}
|
|
6020
6011
|
}
|
|
6021
6012
|
for (var _key in employeeInfo) {
|
|
6022
|
-
console.log('key', _key);
|
|
6023
6013
|
if (Object.hasOwnProperty.call(employeeInfo, _key)) {
|
|
6024
|
-
|
|
6025
|
-
console.log('employeeInfo0000', (_employeeInfoInput$_k = employeeInfoInput[_key]) === null || _employeeInfoInput$_k === void 0 ? void 0 : _employeeInfoInput$_k.value, 'sajkdhjasj');
|
|
6026
|
-
if (employeeInfo[_key] === false && employeeInfoInput[_key] !== undefined && (typeof employeeInfoInput[_key] === 'string' && !employeeInfoInput[_key] || typeof employeeInfoInput[_key] === 'object' && !employeeInfoInput[_key].value || !employeeInfoInput[_key].value) === '' && fieldsVisibility.employee_info[_key] !== 2) {
|
|
6014
|
+
if (employeeInfo[_key] === false && employeeInfoInput[_key] !== undefined && (typeof employeeInfoInput[_key] === 'string' && !employeeInfoInput[_key] || typeof employeeInfoInput[_key] === 'object' && !employeeInfoInput[_key].value) && fieldsVisibility.employee_info[_key] !== 2) {
|
|
6027
6015
|
_isError = true;
|
|
6028
6016
|
if (_errorArray.indexOf(_key) === -1) _errorArray.push(_key);
|
|
6029
6017
|
_errorMsgs[_key] = ErrorMessages[_key];
|
|
@@ -6279,14 +6267,17 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6279
6267
|
if (verifyUserId) {
|
|
6280
6268
|
dispatch(showLoader());
|
|
6281
6269
|
dispatch(verifyUserInfo(verifyUserId)).then(function (res) {
|
|
6282
|
-
console.log('this is response', res);
|
|
6283
|
-
setNewCountryCode(res === null || res === void 0 ? void 0 : res.country_contact_code);
|
|
6284
6270
|
setPersonalInfoInput(function (prevState) {
|
|
6285
6271
|
return _extends({}, prevState, {
|
|
6286
|
-
first_name: res.
|
|
6287
|
-
last_name: res.
|
|
6272
|
+
first_name: res.fname,
|
|
6273
|
+
last_name: res.lname,
|
|
6288
6274
|
email: res.email,
|
|
6289
|
-
contact_number: res
|
|
6275
|
+
contact_number: res.phone,
|
|
6276
|
+
dob: function () {
|
|
6277
|
+
var dt = new Date(res.dob);
|
|
6278
|
+
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
6279
|
+
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
6280
|
+
}(),
|
|
6290
6281
|
gender: function () {
|
|
6291
6282
|
if (res.gender === 'male') return 'Male';else if (res.gender === 'female') return 'Female';else if (res.gender === 'others') return 'Others';else return '';
|
|
6292
6283
|
}()
|
|
@@ -8640,17 +8631,17 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8640
8631
|
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
8641
8632
|
};
|
|
8642
8633
|
var columns = [{
|
|
8643
|
-
id: '
|
|
8634
|
+
id: 'fname',
|
|
8644
8635
|
label: 'Name',
|
|
8645
8636
|
minWidth: 250,
|
|
8646
8637
|
sortable: true,
|
|
8647
8638
|
cell: function cell(row) {
|
|
8648
8639
|
var _row$profile_pic2;
|
|
8649
8640
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIProfileBox, {
|
|
8650
|
-
firstName: row.
|
|
8651
|
-
lastName: row.
|
|
8641
|
+
firstName: row.fname,
|
|
8642
|
+
lastName: row.lname,
|
|
8652
8643
|
isLetterAvatar: row.profile_pic && row.profile_pic.presigned_url ? false : true,
|
|
8653
|
-
primaryText: row.
|
|
8644
|
+
primaryText: row.fname + ' ' + row.lname,
|
|
8654
8645
|
secondaryText: row.email,
|
|
8655
8646
|
letterAvatarTextColor: "black",
|
|
8656
8647
|
letterAvatarBackgroundColor: "#d3d3d3",
|
|
@@ -8659,7 +8650,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8659
8650
|
}));
|
|
8660
8651
|
}
|
|
8661
8652
|
}, {
|
|
8662
|
-
id: '
|
|
8653
|
+
id: 'created',
|
|
8663
8654
|
label: 'Requested on',
|
|
8664
8655
|
minWidth: 100,
|
|
8665
8656
|
sortable: true,
|
|
@@ -8669,7 +8660,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8669
8660
|
width: 100
|
|
8670
8661
|
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
8671
8662
|
className: clsx(styles$5.rowText, styles$5.textTransform)
|
|
8672
|
-
}, formatDate(row.
|
|
8663
|
+
}, formatDate(row.created)));
|
|
8673
8664
|
}
|
|
8674
8665
|
}, {
|
|
8675
8666
|
id: 'actions',
|
|
@@ -8942,7 +8933,7 @@ var UserList = function UserList(_ref2) {
|
|
|
8942
8933
|
var _React$useState11 = React.useState('asc'),
|
|
8943
8934
|
signup_order = _React$useState11[0],
|
|
8944
8935
|
setSignUpOrder = _React$useState11[1];
|
|
8945
|
-
var _React$useState12 = React.useState('
|
|
8936
|
+
var _React$useState12 = React.useState('fname'),
|
|
8946
8937
|
signup_orderBy = _React$useState12[0],
|
|
8947
8938
|
setSignUpOrderBy = _React$useState12[1];
|
|
8948
8939
|
var _useState22 = useState(''),
|
|
@@ -8965,7 +8956,9 @@ var UserList = function UserList(_ref2) {
|
|
|
8965
8956
|
}),
|
|
8966
8957
|
signupRequestListInfo = _useSelector3.signupRequestListInfo;
|
|
8967
8958
|
var redirectToNotifications = function redirectToNotifications() {
|
|
8968
|
-
history.push(
|
|
8959
|
+
history.push({
|
|
8960
|
+
pathname: "/settings/notifications"
|
|
8961
|
+
});
|
|
8969
8962
|
};
|
|
8970
8963
|
var openDeactivateModal = function openDeactivateModal() {
|
|
8971
8964
|
if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
|
|
@@ -10441,20 +10434,12 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10441
10434
|
var validatedValue = _value.replace(/\s+/g, ' ').trim();
|
|
10442
10435
|
setDataList(validatedValue);
|
|
10443
10436
|
};
|
|
10444
|
-
var _useState17 = useState(70),
|
|
10445
|
-
maxLengthForModal = _useState17[0],
|
|
10446
|
-
setMaxLengthForModal = _useState17[1];
|
|
10447
|
-
useEffect(function () {
|
|
10448
|
-
if (title === 'Business unit') {
|
|
10449
|
-
setMaxLengthForModal(150);
|
|
10450
|
-
}
|
|
10451
|
-
}, []);
|
|
10452
10437
|
var validation = {
|
|
10453
10438
|
regexOnChange: /^[(A-Z)(a-z)(0-9)&'\-_.,/: ]*$/,
|
|
10454
10439
|
regexOnBlur: null,
|
|
10455
10440
|
maxLimit: '',
|
|
10456
10441
|
minLimit: '',
|
|
10457
|
-
maxLength:
|
|
10442
|
+
maxLength: 70,
|
|
10458
10443
|
minLength: 0
|
|
10459
10444
|
};
|
|
10460
10445
|
useEffect(function () {
|