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