@itilite/iui-user-management 0.4.912 → 0.4.914
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 +141 -127
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +141 -127
- 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(res.data.country_code_details);
|
|
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 and
|
|
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 . & ' ( ) - , / are allowed."
|
|
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,31 +3158,6 @@ 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
|
|
3186
3161
|
}, {
|
|
3187
3162
|
id: 9,
|
|
3188
3163
|
label: 'Base location',
|
|
@@ -4983,7 +4958,32 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4983
4958
|
}
|
|
4984
4959
|
setProductAccess(_productAccess);
|
|
4985
4960
|
};
|
|
4986
|
-
var _useState2 = React.useState(
|
|
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({
|
|
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 = _useState5[0],
|
|
4998
|
+
setPersonalInfoInput = _useState5[1];
|
|
4999
|
+
var _useState6 = 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 = _useState6[0],
|
|
5033
|
+
setEmployeeInfoInput = _useState6[1];
|
|
5034
|
+
var _useState7 = 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 = _useState7[0],
|
|
5044
|
+
clearCacheForAsyncDropdown = _useState7[1];
|
|
5045
|
+
var _useState8 = React.useState({}),
|
|
5046
|
+
userTagType = _useState8[0],
|
|
5047
|
+
setUserTagType = _useState8[1];
|
|
5048
|
+
var _useState9 = React.useState(false),
|
|
5049
|
+
scroll = _useState9[0],
|
|
5050
|
+
setScroll = _useState9[1];
|
|
5051
|
+
var _useState10 = React.useState({}),
|
|
5052
|
+
customFieldsInput = _useState10[0],
|
|
5053
|
+
setCustomFieldsInput = _useState10[1];
|
|
5054
|
+
var _useState11 = React.useState('traveler'),
|
|
5055
|
+
travelRole = _useState11[0],
|
|
5056
|
+
setTravelRole = _useState11[1];
|
|
5057
|
+
var _useState12 = React.useState({}),
|
|
5058
|
+
travelApproversInput = _useState12[0],
|
|
5059
|
+
setTravelApproversInput = _useState12[1];
|
|
5060
|
+
var _useState13 = 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 = _useState13[0],
|
|
5065
|
+
setTravelFYI = _useState13[1];
|
|
5066
|
+
var _useState14 = React.useState([]),
|
|
5067
|
+
membershipInfoInput = _useState14[0],
|
|
5068
|
+
setMembershipInfoInput = _useState14[1];
|
|
5069
|
+
var _useState15 = React.useState([]),
|
|
5070
|
+
removedMembershipInfoInput = _useState15[0],
|
|
5071
|
+
setRemovedMembershipInfoInput = _useState15[1];
|
|
5072
|
+
var _useState16 = React.useState({
|
|
5073
5073
|
flight_seat_preference: '',
|
|
5074
5074
|
meal_preference: ''
|
|
5075
5075
|
}),
|
|
5076
|
-
travelPreferenceInfo =
|
|
5077
|
-
settravelPreferenceInfo =
|
|
5078
|
-
var
|
|
5076
|
+
travelPreferenceInfo = _useState16[0],
|
|
5077
|
+
settravelPreferenceInfo = _useState16[1];
|
|
5078
|
+
var _useState17 = React.useState({
|
|
5079
5079
|
trusted_traveller: '',
|
|
5080
5080
|
redress_number: ''
|
|
5081
5081
|
}),
|
|
5082
|
-
secureTravelInputInfo =
|
|
5083
|
-
setSecureTravelInputInfo =
|
|
5084
|
-
var
|
|
5082
|
+
secureTravelInputInfo = _useState17[0],
|
|
5083
|
+
setSecureTravelInputInfo = _useState17[1];
|
|
5084
|
+
var _useState18 = 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 = _useState18[0],
|
|
5100
|
+
setPassportInfoInput = _useState18[1];
|
|
5101
|
+
var _useState19 = React.useState([]),
|
|
5102
|
+
filesForDelete = _useState19[0],
|
|
5103
|
+
setFilesForDelete = _useState19[1];
|
|
5104
|
+
var _useState20 = React.useState([]),
|
|
5105
|
+
profilePicDelete = _useState20[0],
|
|
5106
|
+
setProfilePicDelete = _useState20[1];
|
|
5107
|
+
var _useState21 = React.useState(config.env.isTravelProduct && isProfile ? 'open' : ''),
|
|
5108
|
+
isAdditionalInfoExpanded = _useState21[0],
|
|
5109
|
+
setAdditionalInfoFlag = _useState21[1];
|
|
5110
|
+
var _useState22 = React.useState('submitter'),
|
|
5111
|
+
expenseRole = _useState22[0],
|
|
5112
|
+
setExpenseRole = _useState22[1];
|
|
5113
|
+
var _useState23 = React.useState({}),
|
|
5114
|
+
expenseApproversInput = _useState23[0],
|
|
5115
|
+
setExpenseApproversInput = _useState23[1];
|
|
5116
|
+
var _useState24 = React.useState({
|
|
5117
5117
|
value: '',
|
|
5118
5118
|
label: 'Select approver'
|
|
5119
5119
|
}),
|
|
5120
|
-
expenseFYI =
|
|
5121
|
-
setExpenseFYI =
|
|
5120
|
+
expenseFYI = _useState24[0],
|
|
5121
|
+
setExpenseFYI = _useState24[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 _useState25 = React.useState([]),
|
|
5129
|
+
errorArray = _useState25[0],
|
|
5130
|
+
setErrorArray = _useState25[1];
|
|
5131
|
+
var _useState26 = 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 = _useState26[0],
|
|
5162
|
+
setErrorMsgs = _useState26[1];
|
|
5163
|
+
var _useState27 = React.useState({
|
|
5164
5164
|
first_name: false,
|
|
5165
5165
|
last_name: false,
|
|
5166
5166
|
email: false,
|
|
@@ -5187,11 +5187,14 @@ 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 =
|
|
5190
|
+
inputChangeLog = _useState27[0],
|
|
5191
|
+
updateInputChangeLog = _useState27[1];
|
|
5192
|
+
var _useState28 = React.useState([]),
|
|
5193
|
+
uploadedFiles = _useState28[0],
|
|
5194
|
+
setUploadedFiles = _useState28[1];
|
|
5195
|
+
var _useState29 = React.useState(70),
|
|
5196
|
+
maxLengthForModal = _useState29[0],
|
|
5197
|
+
setMaxLengthForModal = _useState29[1];
|
|
5195
5198
|
var defaultAddModalData = {
|
|
5196
5199
|
isOpen: false,
|
|
5197
5200
|
isError: false,
|
|
@@ -5204,12 +5207,12 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5204
5207
|
regexOnBlur: null,
|
|
5205
5208
|
maxLimit: '',
|
|
5206
5209
|
minLimit: '',
|
|
5207
|
-
maxLength:
|
|
5210
|
+
maxLength: maxLengthForModal,
|
|
5208
5211
|
minLength: 0
|
|
5209
5212
|
};
|
|
5210
|
-
var
|
|
5211
|
-
addModalData =
|
|
5212
|
-
setAddModalData =
|
|
5213
|
+
var _useState30 = React.useState(defaultAddModalData),
|
|
5214
|
+
addModalData = _useState30[0],
|
|
5215
|
+
setAddModalData = _useState30[1];
|
|
5213
5216
|
var onAddModalClose = function onAddModalClose() {
|
|
5214
5217
|
setAddModalData(_extends({}, defaultAddModalData));
|
|
5215
5218
|
};
|
|
@@ -5229,12 +5232,16 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5229
5232
|
var title = '';
|
|
5230
5233
|
if (id === 'entity') {
|
|
5231
5234
|
title = 'Entity';
|
|
5235
|
+
setMaxLengthForModal(70);
|
|
5232
5236
|
} else if (id === 'department') {
|
|
5233
5237
|
title = 'Department';
|
|
5238
|
+
setMaxLengthForModal(70);
|
|
5234
5239
|
} else if (id === 'business_unit') {
|
|
5240
|
+
setMaxLengthForModal(150);
|
|
5235
5241
|
title = 'Business unit';
|
|
5236
5242
|
} else if (id === 'employee_level') {
|
|
5237
5243
|
title = 'Employee level';
|
|
5244
|
+
setMaxLengthForModal(70);
|
|
5238
5245
|
}
|
|
5239
5246
|
setAddModalData(_extends({}, addModalData, {
|
|
5240
5247
|
isOpen: true,
|
|
@@ -5628,6 +5635,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5628
5635
|
}
|
|
5629
5636
|
}));
|
|
5630
5637
|
dispatch(fetchCountryCodes()).then(function (_res) {
|
|
5638
|
+
setCountryContactCode(_res);
|
|
5639
|
+
console.log('this is new', _res);
|
|
5631
5640
|
if (isEditMode) {
|
|
5632
5641
|
if (!isProfile && !editUserId) return false;
|
|
5633
5642
|
dispatch(setStaticFieldsVisibility({
|
|
@@ -5949,7 +5958,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5949
5958
|
IUIToastMessageService$4.warningNotify(checkAnyError);
|
|
5950
5959
|
return Promise.resolve();
|
|
5951
5960
|
}
|
|
5952
|
-
console.log(employeeInfoInput,
|
|
5961
|
+
console.log(employeeInfoInput, 'data');
|
|
5953
5962
|
if (employeeInfoInput.manager_id.value !== '') {
|
|
5954
5963
|
employeeInfoInput.manager_id = employeeInfoInput.manager.value;
|
|
5955
5964
|
}
|
|
@@ -6013,6 +6022,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6013
6022
|
}
|
|
6014
6023
|
}
|
|
6015
6024
|
for (var _key in employeeInfo) {
|
|
6025
|
+
console.log('key', _key);
|
|
6016
6026
|
if (Object.hasOwnProperty.call(employeeInfo, _key)) {
|
|
6017
6027
|
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) {
|
|
6018
6028
|
_isError = true;
|
|
@@ -6270,17 +6280,14 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6270
6280
|
if (verifyUserId) {
|
|
6271
6281
|
dispatch(showLoader());
|
|
6272
6282
|
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);
|
|
6273
6285
|
setPersonalInfoInput(function (prevState) {
|
|
6274
6286
|
return _extends({}, prevState, {
|
|
6275
|
-
first_name: res.
|
|
6276
|
-
last_name: res.
|
|
6287
|
+
first_name: res.first_name,
|
|
6288
|
+
last_name: res.last_name,
|
|
6277
6289
|
email: res.email,
|
|
6278
|
-
contact_number: res.
|
|
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
|
-
}(),
|
|
6290
|
+
contact_number: res === null || res === void 0 ? void 0 : res.contact_number,
|
|
6284
6291
|
gender: function () {
|
|
6285
6292
|
if (res.gender === 'male') return 'Male';else if (res.gender === 'female') return 'Female';else if (res.gender === 'others') return 'Others';else return '';
|
|
6286
6293
|
}()
|
|
@@ -8634,17 +8641,17 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8634
8641
|
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
8635
8642
|
};
|
|
8636
8643
|
var columns = [{
|
|
8637
|
-
id: '
|
|
8644
|
+
id: 'first_name',
|
|
8638
8645
|
label: 'Name',
|
|
8639
8646
|
minWidth: 250,
|
|
8640
8647
|
sortable: true,
|
|
8641
8648
|
cell: function cell(row) {
|
|
8642
8649
|
var _row$profile_pic2;
|
|
8643
8650
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIProfileBox, {
|
|
8644
|
-
firstName: row.
|
|
8645
|
-
lastName: row.
|
|
8651
|
+
firstName: row.first_name,
|
|
8652
|
+
lastName: row.last_name,
|
|
8646
8653
|
isLetterAvatar: row.profile_pic && row.profile_pic.presigned_url ? false : true,
|
|
8647
|
-
primaryText: row.
|
|
8654
|
+
primaryText: row.first_name + ' ' + row.last_name,
|
|
8648
8655
|
secondaryText: row.email,
|
|
8649
8656
|
letterAvatarTextColor: "black",
|
|
8650
8657
|
letterAvatarBackgroundColor: "#d3d3d3",
|
|
@@ -8653,7 +8660,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8653
8660
|
}));
|
|
8654
8661
|
}
|
|
8655
8662
|
}, {
|
|
8656
|
-
id: '
|
|
8663
|
+
id: 'created_at',
|
|
8657
8664
|
label: 'Requested on',
|
|
8658
8665
|
minWidth: 100,
|
|
8659
8666
|
sortable: true,
|
|
@@ -8663,7 +8670,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8663
8670
|
width: 100
|
|
8664
8671
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
8665
8672
|
className: clsx(styles$5.rowText, styles$5.textTransform)
|
|
8666
|
-
}, formatDate(row.
|
|
8673
|
+
}, formatDate(row.created_at)));
|
|
8667
8674
|
}
|
|
8668
8675
|
}, {
|
|
8669
8676
|
id: 'actions',
|
|
@@ -8936,7 +8943,7 @@ var UserList = function UserList(_ref2) {
|
|
|
8936
8943
|
var _React$useState11 = React__default.useState('asc'),
|
|
8937
8944
|
signup_order = _React$useState11[0],
|
|
8938
8945
|
setSignUpOrder = _React$useState11[1];
|
|
8939
|
-
var _React$useState12 = React__default.useState('
|
|
8946
|
+
var _React$useState12 = React__default.useState('first_name'),
|
|
8940
8947
|
signup_orderBy = _React$useState12[0],
|
|
8941
8948
|
setSignUpOrderBy = _React$useState12[1];
|
|
8942
8949
|
var _useState22 = React.useState(''),
|
|
@@ -8959,9 +8966,8 @@ var UserList = function UserList(_ref2) {
|
|
|
8959
8966
|
}),
|
|
8960
8967
|
signupRequestListInfo = _useSelector3.signupRequestListInfo;
|
|
8961
8968
|
var redirectToNotifications = function redirectToNotifications() {
|
|
8962
|
-
console.log("Notification is clicked");
|
|
8963
8969
|
history.push({
|
|
8964
|
-
pathname: "
|
|
8970
|
+
pathname: ""
|
|
8965
8971
|
});
|
|
8966
8972
|
};
|
|
8967
8973
|
var openDeactivateModal = function openDeactivateModal() {
|
|
@@ -9579,9 +9585,9 @@ var UserList = function UserList(_ref2) {
|
|
|
9579
9585
|
variant: "body2",
|
|
9580
9586
|
className: clsx(styles$5.description)
|
|
9581
9587
|
}, "Verify and add users to allow them to start using ITILITE. Set up preferences for receiving sign up request updates in", ' ', /*#__PURE__*/React__default.createElement("span", {
|
|
9582
|
-
onClick: redirectToNotifications,
|
|
9588
|
+
onClick: config.routes.notification && redirectToNotifications,
|
|
9583
9589
|
className: clsx(config.routes.notification && 'iui__cursor-pointer iui__border--bottom_solid_black500-1')
|
|
9584
|
-
}, "Notifications"))), /*#__PURE__*/React__default.createElement(SingupRequests, {
|
|
9590
|
+
}, "Notifications"))), console.log("signupRequestListInfo", signupRequestListInfo), /*#__PURE__*/React__default.createElement(SingupRequests, {
|
|
9585
9591
|
data: signupRequestListInfo,
|
|
9586
9592
|
handleChangeRowsPerPage: function handleChangeRowsPerPage(event) {
|
|
9587
9593
|
setSignUpRowsPerPage(+event.target.value);
|
|
@@ -10438,12 +10444,20 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10438
10444
|
var validatedValue = _value.replace(/\s+/g, ' ').trim();
|
|
10439
10445
|
setDataList(validatedValue);
|
|
10440
10446
|
};
|
|
10447
|
+
var _useState17 = React.useState(70),
|
|
10448
|
+
maxLengthForModal = _useState17[0],
|
|
10449
|
+
setMaxLengthForModal = _useState17[1];
|
|
10450
|
+
React.useEffect(function () {
|
|
10451
|
+
if (title === 'Business unit') {
|
|
10452
|
+
setMaxLengthForModal(150);
|
|
10453
|
+
}
|
|
10454
|
+
}, []);
|
|
10441
10455
|
var validation = {
|
|
10442
10456
|
regexOnChange: /^[(A-Z)(a-z)(0-9)&'\-_.,/: ]*$/,
|
|
10443
10457
|
regexOnBlur: null,
|
|
10444
10458
|
maxLimit: '',
|
|
10445
10459
|
minLimit: '',
|
|
10446
|
-
maxLength:
|
|
10460
|
+
maxLength: maxLengthForModal,
|
|
10447
10461
|
minLength: 0
|
|
10448
10462
|
};
|
|
10449
10463
|
React.useEffect(function () {
|