@itilite/iui-user-management 0.4.912 → 0.4.913
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 +140 -128
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +140 -128
- 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(res.data.country_code_details);
|
|
1364
1364
|
})["catch"](function (err) {
|
|
1365
1365
|
reject(err);
|
|
1366
1366
|
})["finally"](function () {});
|
|
@@ -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 and
|
|
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 . & ' ( ) - , / are allowed."
|
|
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,31 +3155,6 @@ 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
|
|
3183
3158
|
}, {
|
|
3184
3159
|
id: 9,
|
|
3185
3160
|
label: 'Base location',
|
|
@@ -4980,7 +4955,32 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4980
4955
|
}
|
|
4981
4956
|
setProductAccess(_productAccess);
|
|
4982
4957
|
};
|
|
4983
|
-
var _useState2 = useState(
|
|
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({
|
|
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 = _useState5[0],
|
|
4995
|
+
setPersonalInfoInput = _useState5[1];
|
|
4996
|
+
var _useState6 = 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 = _useState6[0],
|
|
5030
|
+
setEmployeeInfoInput = _useState6[1];
|
|
5031
|
+
var _useState7 = 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 = _useState7[0],
|
|
5041
|
+
clearCacheForAsyncDropdown = _useState7[1];
|
|
5042
|
+
var _useState8 = useState({}),
|
|
5043
|
+
userTagType = _useState8[0],
|
|
5044
|
+
setUserTagType = _useState8[1];
|
|
5045
|
+
var _useState9 = useState(false),
|
|
5046
|
+
scroll = _useState9[0],
|
|
5047
|
+
setScroll = _useState9[1];
|
|
5048
|
+
var _useState10 = useState({}),
|
|
5049
|
+
customFieldsInput = _useState10[0],
|
|
5050
|
+
setCustomFieldsInput = _useState10[1];
|
|
5051
|
+
var _useState11 = useState('traveler'),
|
|
5052
|
+
travelRole = _useState11[0],
|
|
5053
|
+
setTravelRole = _useState11[1];
|
|
5054
|
+
var _useState12 = useState({}),
|
|
5055
|
+
travelApproversInput = _useState12[0],
|
|
5056
|
+
setTravelApproversInput = _useState12[1];
|
|
5057
|
+
var _useState13 = 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 = _useState13[0],
|
|
5062
|
+
setTravelFYI = _useState13[1];
|
|
5063
|
+
var _useState14 = useState([]),
|
|
5064
|
+
membershipInfoInput = _useState14[0],
|
|
5065
|
+
setMembershipInfoInput = _useState14[1];
|
|
5066
|
+
var _useState15 = useState([]),
|
|
5067
|
+
removedMembershipInfoInput = _useState15[0],
|
|
5068
|
+
setRemovedMembershipInfoInput = _useState15[1];
|
|
5069
|
+
var _useState16 = useState({
|
|
5070
5070
|
flight_seat_preference: '',
|
|
5071
5071
|
meal_preference: ''
|
|
5072
5072
|
}),
|
|
5073
|
-
travelPreferenceInfo =
|
|
5074
|
-
settravelPreferenceInfo =
|
|
5075
|
-
var
|
|
5073
|
+
travelPreferenceInfo = _useState16[0],
|
|
5074
|
+
settravelPreferenceInfo = _useState16[1];
|
|
5075
|
+
var _useState17 = useState({
|
|
5076
5076
|
trusted_traveller: '',
|
|
5077
5077
|
redress_number: ''
|
|
5078
5078
|
}),
|
|
5079
|
-
secureTravelInputInfo =
|
|
5080
|
-
setSecureTravelInputInfo =
|
|
5081
|
-
var
|
|
5079
|
+
secureTravelInputInfo = _useState17[0],
|
|
5080
|
+
setSecureTravelInputInfo = _useState17[1];
|
|
5081
|
+
var _useState18 = 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 = _useState18[0],
|
|
5097
|
+
setPassportInfoInput = _useState18[1];
|
|
5098
|
+
var _useState19 = useState([]),
|
|
5099
|
+
filesForDelete = _useState19[0],
|
|
5100
|
+
setFilesForDelete = _useState19[1];
|
|
5101
|
+
var _useState20 = useState([]),
|
|
5102
|
+
profilePicDelete = _useState20[0],
|
|
5103
|
+
setProfilePicDelete = _useState20[1];
|
|
5104
|
+
var _useState21 = useState(config.env.isTravelProduct && isProfile ? 'open' : ''),
|
|
5105
|
+
isAdditionalInfoExpanded = _useState21[0],
|
|
5106
|
+
setAdditionalInfoFlag = _useState21[1];
|
|
5107
|
+
var _useState22 = useState('submitter'),
|
|
5108
|
+
expenseRole = _useState22[0],
|
|
5109
|
+
setExpenseRole = _useState22[1];
|
|
5110
|
+
var _useState23 = useState({}),
|
|
5111
|
+
expenseApproversInput = _useState23[0],
|
|
5112
|
+
setExpenseApproversInput = _useState23[1];
|
|
5113
|
+
var _useState24 = useState({
|
|
5114
5114
|
value: '',
|
|
5115
5115
|
label: 'Select approver'
|
|
5116
5116
|
}),
|
|
5117
|
-
expenseFYI =
|
|
5118
|
-
setExpenseFYI =
|
|
5117
|
+
expenseFYI = _useState24[0],
|
|
5118
|
+
setExpenseFYI = _useState24[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 _useState25 = useState([]),
|
|
5126
|
+
errorArray = _useState25[0],
|
|
5127
|
+
setErrorArray = _useState25[1];
|
|
5128
|
+
var _useState26 = 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 = _useState26[0],
|
|
5159
|
+
setErrorMsgs = _useState26[1];
|
|
5160
|
+
var _useState27 = useState({
|
|
5161
5161
|
first_name: false,
|
|
5162
5162
|
last_name: false,
|
|
5163
5163
|
email: false,
|
|
@@ -5184,11 +5184,14 @@ 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 =
|
|
5187
|
+
inputChangeLog = _useState27[0],
|
|
5188
|
+
updateInputChangeLog = _useState27[1];
|
|
5189
|
+
var _useState28 = useState([]),
|
|
5190
|
+
uploadedFiles = _useState28[0],
|
|
5191
|
+
setUploadedFiles = _useState28[1];
|
|
5192
|
+
var _useState29 = useState(70),
|
|
5193
|
+
maxLengthForModal = _useState29[0],
|
|
5194
|
+
setMaxLengthForModal = _useState29[1];
|
|
5192
5195
|
var defaultAddModalData = {
|
|
5193
5196
|
isOpen: false,
|
|
5194
5197
|
isError: false,
|
|
@@ -5201,12 +5204,12 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5201
5204
|
regexOnBlur: null,
|
|
5202
5205
|
maxLimit: '',
|
|
5203
5206
|
minLimit: '',
|
|
5204
|
-
maxLength:
|
|
5207
|
+
maxLength: maxLengthForModal,
|
|
5205
5208
|
minLength: 0
|
|
5206
5209
|
};
|
|
5207
|
-
var
|
|
5208
|
-
addModalData =
|
|
5209
|
-
setAddModalData =
|
|
5210
|
+
var _useState30 = useState(defaultAddModalData),
|
|
5211
|
+
addModalData = _useState30[0],
|
|
5212
|
+
setAddModalData = _useState30[1];
|
|
5210
5213
|
var onAddModalClose = function onAddModalClose() {
|
|
5211
5214
|
setAddModalData(_extends({}, defaultAddModalData));
|
|
5212
5215
|
};
|
|
@@ -5226,12 +5229,16 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5226
5229
|
var title = '';
|
|
5227
5230
|
if (id === 'entity') {
|
|
5228
5231
|
title = 'Entity';
|
|
5232
|
+
setMaxLengthForModal(70);
|
|
5229
5233
|
} else if (id === 'department') {
|
|
5230
5234
|
title = 'Department';
|
|
5235
|
+
setMaxLengthForModal(70);
|
|
5231
5236
|
} else if (id === 'business_unit') {
|
|
5237
|
+
setMaxLengthForModal(150);
|
|
5232
5238
|
title = 'Business unit';
|
|
5233
5239
|
} else if (id === 'employee_level') {
|
|
5234
5240
|
title = 'Employee level';
|
|
5241
|
+
setMaxLengthForModal(70);
|
|
5235
5242
|
}
|
|
5236
5243
|
setAddModalData(_extends({}, addModalData, {
|
|
5237
5244
|
isOpen: true,
|
|
@@ -5625,6 +5632,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5625
5632
|
}
|
|
5626
5633
|
}));
|
|
5627
5634
|
dispatch(fetchCountryCodes()).then(function (_res) {
|
|
5635
|
+
setCountryContactCode(_res);
|
|
5636
|
+
console.log('this is new', _res);
|
|
5628
5637
|
if (isEditMode) {
|
|
5629
5638
|
if (!isProfile && !editUserId) return false;
|
|
5630
5639
|
dispatch(setStaticFieldsVisibility({
|
|
@@ -5946,7 +5955,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5946
5955
|
IUIToastMessageService$4.warningNotify(checkAnyError);
|
|
5947
5956
|
return Promise.resolve();
|
|
5948
5957
|
}
|
|
5949
|
-
console.log(employeeInfoInput,
|
|
5958
|
+
console.log(employeeInfoInput, 'data');
|
|
5950
5959
|
if (employeeInfoInput.manager_id.value !== '') {
|
|
5951
5960
|
employeeInfoInput.manager_id = employeeInfoInput.manager.value;
|
|
5952
5961
|
}
|
|
@@ -6010,6 +6019,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6010
6019
|
}
|
|
6011
6020
|
}
|
|
6012
6021
|
for (var _key in employeeInfo) {
|
|
6022
|
+
console.log('key', _key);
|
|
6013
6023
|
if (Object.hasOwnProperty.call(employeeInfo, _key)) {
|
|
6014
6024
|
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) {
|
|
6015
6025
|
_isError = true;
|
|
@@ -6267,17 +6277,14 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6267
6277
|
if (verifyUserId) {
|
|
6268
6278
|
dispatch(showLoader());
|
|
6269
6279
|
dispatch(verifyUserInfo(verifyUserId)).then(function (res) {
|
|
6280
|
+
console.log('this is response', res);
|
|
6281
|
+
setNewCountryCode(res === null || res === void 0 ? void 0 : res.country_contact_code);
|
|
6270
6282
|
setPersonalInfoInput(function (prevState) {
|
|
6271
6283
|
return _extends({}, prevState, {
|
|
6272
|
-
first_name: res.
|
|
6273
|
-
last_name: res.
|
|
6284
|
+
first_name: res.first_name,
|
|
6285
|
+
last_name: res.last_name,
|
|
6274
6286
|
email: res.email,
|
|
6275
|
-
contact_number: res.
|
|
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
|
-
}(),
|
|
6287
|
+
contact_number: res === null || res === void 0 ? void 0 : res.contact_number,
|
|
6281
6288
|
gender: function () {
|
|
6282
6289
|
if (res.gender === 'male') return 'Male';else if (res.gender === 'female') return 'Female';else if (res.gender === 'others') return 'Others';else return '';
|
|
6283
6290
|
}()
|
|
@@ -8631,17 +8638,17 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8631
8638
|
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
8632
8639
|
};
|
|
8633
8640
|
var columns = [{
|
|
8634
|
-
id: '
|
|
8641
|
+
id: 'first_name',
|
|
8635
8642
|
label: 'Name',
|
|
8636
8643
|
minWidth: 250,
|
|
8637
8644
|
sortable: true,
|
|
8638
8645
|
cell: function cell(row) {
|
|
8639
8646
|
var _row$profile_pic2;
|
|
8640
8647
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIProfileBox, {
|
|
8641
|
-
firstName: row.
|
|
8642
|
-
lastName: row.
|
|
8648
|
+
firstName: row.first_name,
|
|
8649
|
+
lastName: row.last_name,
|
|
8643
8650
|
isLetterAvatar: row.profile_pic && row.profile_pic.presigned_url ? false : true,
|
|
8644
|
-
primaryText: row.
|
|
8651
|
+
primaryText: row.first_name + ' ' + row.last_name,
|
|
8645
8652
|
secondaryText: row.email,
|
|
8646
8653
|
letterAvatarTextColor: "black",
|
|
8647
8654
|
letterAvatarBackgroundColor: "#d3d3d3",
|
|
@@ -8650,7 +8657,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8650
8657
|
}));
|
|
8651
8658
|
}
|
|
8652
8659
|
}, {
|
|
8653
|
-
id: '
|
|
8660
|
+
id: 'created_at',
|
|
8654
8661
|
label: 'Requested on',
|
|
8655
8662
|
minWidth: 100,
|
|
8656
8663
|
sortable: true,
|
|
@@ -8660,7 +8667,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8660
8667
|
width: 100
|
|
8661
8668
|
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
8662
8669
|
className: clsx(styles$5.rowText, styles$5.textTransform)
|
|
8663
|
-
}, formatDate(row.
|
|
8670
|
+
}, formatDate(row.created_at)));
|
|
8664
8671
|
}
|
|
8665
8672
|
}, {
|
|
8666
8673
|
id: 'actions',
|
|
@@ -8933,7 +8940,7 @@ var UserList = function UserList(_ref2) {
|
|
|
8933
8940
|
var _React$useState11 = React.useState('asc'),
|
|
8934
8941
|
signup_order = _React$useState11[0],
|
|
8935
8942
|
setSignUpOrder = _React$useState11[1];
|
|
8936
|
-
var _React$useState12 = React.useState('
|
|
8943
|
+
var _React$useState12 = React.useState('first_name'),
|
|
8937
8944
|
signup_orderBy = _React$useState12[0],
|
|
8938
8945
|
setSignUpOrderBy = _React$useState12[1];
|
|
8939
8946
|
var _useState22 = useState(''),
|
|
@@ -8956,10 +8963,7 @@ var UserList = function UserList(_ref2) {
|
|
|
8956
8963
|
}),
|
|
8957
8964
|
signupRequestListInfo = _useSelector3.signupRequestListInfo;
|
|
8958
8965
|
var redirectToNotifications = function redirectToNotifications() {
|
|
8959
|
-
|
|
8960
|
-
history.push({
|
|
8961
|
-
pathname: "/settings/notifications"
|
|
8962
|
-
});
|
|
8966
|
+
history.push(config.routes.notification.path);
|
|
8963
8967
|
};
|
|
8964
8968
|
var openDeactivateModal = function openDeactivateModal() {
|
|
8965
8969
|
if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
|
|
@@ -9576,7 +9580,7 @@ var UserList = function UserList(_ref2) {
|
|
|
9576
9580
|
variant: "body2",
|
|
9577
9581
|
className: clsx(styles$5.description)
|
|
9578
9582
|
}, "Verify and add users to allow them to start using ITILITE. Set up preferences for receiving sign up request updates in", ' ', /*#__PURE__*/React.createElement("span", {
|
|
9579
|
-
onClick: redirectToNotifications,
|
|
9583
|
+
onClick: config.routes.notification && redirectToNotifications,
|
|
9580
9584
|
className: clsx(config.routes.notification && 'iui__cursor-pointer iui__border--bottom_solid_black500-1')
|
|
9581
9585
|
}, "Notifications"))), /*#__PURE__*/React.createElement(SingupRequests, {
|
|
9582
9586
|
data: signupRequestListInfo,
|
|
@@ -10435,12 +10439,20 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10435
10439
|
var validatedValue = _value.replace(/\s+/g, ' ').trim();
|
|
10436
10440
|
setDataList(validatedValue);
|
|
10437
10441
|
};
|
|
10442
|
+
var _useState17 = useState(70),
|
|
10443
|
+
maxLengthForModal = _useState17[0],
|
|
10444
|
+
setMaxLengthForModal = _useState17[1];
|
|
10445
|
+
useEffect(function () {
|
|
10446
|
+
if (title === 'Business unit') {
|
|
10447
|
+
setMaxLengthForModal(150);
|
|
10448
|
+
}
|
|
10449
|
+
}, []);
|
|
10438
10450
|
var validation = {
|
|
10439
10451
|
regexOnChange: /^[(A-Z)(a-z)(0-9)&'\-_.,/: ]*$/,
|
|
10440
10452
|
regexOnBlur: null,
|
|
10441
10453
|
maxLimit: '',
|
|
10442
10454
|
minLimit: '',
|
|
10443
|
-
maxLength:
|
|
10455
|
+
maxLength: maxLengthForModal,
|
|
10444
10456
|
minLength: 0
|
|
10445
10457
|
};
|
|
10446
10458
|
useEffect(function () {
|