@itilite/iui-user-management 1.3.12 → 1.3.14
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 +4 -0
- package/dist/index.js +141 -131
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +141 -131
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -750,7 +750,6 @@ var departmentHeadOptions = function departmentHeadOptions(search, loadedOptions
|
|
|
750
750
|
data: item
|
|
751
751
|
};
|
|
752
752
|
});
|
|
753
|
-
console.log(response.next);
|
|
754
753
|
return {
|
|
755
754
|
options: mappedValue,
|
|
756
755
|
hasMore: !!response.next,
|
|
@@ -1363,7 +1362,7 @@ var fetchCountryCodes = function fetchCountryCodes() {
|
|
|
1363
1362
|
return new Promise(function (resolve, reject) {
|
|
1364
1363
|
api$2.get(userAddEditUrl.countryCode()).then(function (res) {
|
|
1365
1364
|
dispatch(setCountryCodes(res.data.country_code_details));
|
|
1366
|
-
resolve(
|
|
1365
|
+
resolve(res.data.country_code_details);
|
|
1367
1366
|
})["catch"](function (err) {
|
|
1368
1367
|
reject(err);
|
|
1369
1368
|
})["finally"](function () {});
|
|
@@ -3057,8 +3056,8 @@ var workInfo = [{
|
|
|
3057
3056
|
validation: {
|
|
3058
3057
|
regexOnChange: null,
|
|
3059
3058
|
regexOnBlur: [{
|
|
3060
|
-
regex: /^[(A-Z)(a-z)(0-9)
|
|
3061
|
-
message: "Only alphabets, numbers and
|
|
3059
|
+
regex: /^[(A-Z)(a-z)(0-9)\-_& ]*$/,
|
|
3060
|
+
message: "Only alphabets, numbers, - and _ & are allowed."
|
|
3062
3061
|
}],
|
|
3063
3062
|
maxLimit: '',
|
|
3064
3063
|
minLimit: '',
|
|
@@ -3146,8 +3145,8 @@ var workInfo = [{
|
|
|
3146
3145
|
validation: {
|
|
3147
3146
|
regexOnChange: null,
|
|
3148
3147
|
regexOnBlur: [{
|
|
3149
|
-
regex: /^[A-Za-z0-9
|
|
3150
|
-
message: "Only alphabets, numbers & special characters . & ' ( ) - , / are allowed."
|
|
3148
|
+
regex: /^[A-Za-z0-9 \-_.,&'()\/]*$/,
|
|
3149
|
+
message: "Only alphabets, numbers & special characters . & ' ( ) _ - , / are allowed."
|
|
3151
3150
|
}, {
|
|
3152
3151
|
regex: /^[a-zA-Z]/,
|
|
3153
3152
|
message: 'Designation should start with alphabets'
|
|
@@ -3158,31 +3157,6 @@ var workInfo = [{
|
|
|
3158
3157
|
minLength: 0
|
|
3159
3158
|
},
|
|
3160
3159
|
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
3160
|
}, {
|
|
3187
3161
|
id: 9,
|
|
3188
3162
|
label: 'Base location',
|
|
@@ -4983,7 +4957,31 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4983
4957
|
}
|
|
4984
4958
|
setProductAccess(_productAccess);
|
|
4985
4959
|
};
|
|
4986
|
-
var _useState2 = React.useState(
|
|
4960
|
+
var _useState2 = React.useState(''),
|
|
4961
|
+
newCountryCode = _useState2[0],
|
|
4962
|
+
setNewCountryCode = _useState2[1];
|
|
4963
|
+
var _useState3 = React.useState(),
|
|
4964
|
+
countryDialCode = _useState3[0],
|
|
4965
|
+
setCountryDialCode = _useState3[1];
|
|
4966
|
+
var _useState4 = React.useState([]),
|
|
4967
|
+
countryContactCode = _useState4[0],
|
|
4968
|
+
setCountryContactCode = _useState4[1];
|
|
4969
|
+
React.useEffect(function () {
|
|
4970
|
+
var countryObject = countryContactCode.find(function (t) {
|
|
4971
|
+
return t.dial_code === countryDialCode;
|
|
4972
|
+
});
|
|
4973
|
+
if (countryObject) {
|
|
4974
|
+
setPersonalInfoInput(_extends({}, personalInfoInput, {
|
|
4975
|
+
country_code: countryObject.code
|
|
4976
|
+
}));
|
|
4977
|
+
}
|
|
4978
|
+
}, [countryDialCode]);
|
|
4979
|
+
React.useEffect(function () {
|
|
4980
|
+
var extractedNumber = newCountryCode.substring(1);
|
|
4981
|
+
var convertedNumber = parseInt(extractedNumber);
|
|
4982
|
+
setCountryDialCode(convertedNumber);
|
|
4983
|
+
}, [newCountryCode]);
|
|
4984
|
+
var _useState5 = React.useState({
|
|
4987
4985
|
first_name: '',
|
|
4988
4986
|
last_name: '',
|
|
4989
4987
|
email: '',
|
|
@@ -4994,9 +4992,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4994
4992
|
contact_country_code: '',
|
|
4995
4993
|
profile_pic: []
|
|
4996
4994
|
}),
|
|
4997
|
-
personalInfoInput =
|
|
4998
|
-
setPersonalInfoInput =
|
|
4999
|
-
var
|
|
4995
|
+
personalInfoInput = _useState5[0],
|
|
4996
|
+
setPersonalInfoInput = _useState5[1];
|
|
4997
|
+
var _useState6 = React.useState({
|
|
5000
4998
|
emp_level: {
|
|
5001
4999
|
value: '',
|
|
5002
5000
|
label: 'Select employee level'
|
|
@@ -5029,9 +5027,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5029
5027
|
label: defaultCurrency
|
|
5030
5028
|
}
|
|
5031
5029
|
}),
|
|
5032
|
-
employeeInfoInput =
|
|
5033
|
-
setEmployeeInfoInput =
|
|
5034
|
-
var
|
|
5030
|
+
employeeInfoInput = _useState6[0],
|
|
5031
|
+
setEmployeeInfoInput = _useState6[1];
|
|
5032
|
+
var _useState7 = React.useState({
|
|
5035
5033
|
emp_level: 0,
|
|
5036
5034
|
entity: 0,
|
|
5037
5035
|
business_unit: 0,
|
|
@@ -5040,48 +5038,48 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5040
5038
|
manager_id: 0,
|
|
5041
5039
|
skip_manager_id: 0
|
|
5042
5040
|
}),
|
|
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
|
|
5041
|
+
cacheForAsyncDropdown = _useState7[0],
|
|
5042
|
+
clearCacheForAsyncDropdown = _useState7[1];
|
|
5043
|
+
var _useState8 = React.useState({}),
|
|
5044
|
+
userTagType = _useState8[0],
|
|
5045
|
+
setUserTagType = _useState8[1];
|
|
5046
|
+
var _useState9 = React.useState(false),
|
|
5047
|
+
scroll = _useState9[0],
|
|
5048
|
+
setScroll = _useState9[1];
|
|
5049
|
+
var _useState10 = React.useState({}),
|
|
5050
|
+
customFieldsInput = _useState10[0],
|
|
5051
|
+
setCustomFieldsInput = _useState10[1];
|
|
5052
|
+
var _useState11 = React.useState('traveler'),
|
|
5053
|
+
travelRole = _useState11[0],
|
|
5054
|
+
setTravelRole = _useState11[1];
|
|
5055
|
+
var _useState12 = React.useState({}),
|
|
5056
|
+
travelApproversInput = _useState12[0],
|
|
5057
|
+
setTravelApproversInput = _useState12[1];
|
|
5058
|
+
var _useState13 = React.useState({
|
|
5061
5059
|
value: '',
|
|
5062
5060
|
label: 'Select approver'
|
|
5063
5061
|
}),
|
|
5064
|
-
travelFYI =
|
|
5065
|
-
setTravelFYI =
|
|
5066
|
-
var
|
|
5067
|
-
membershipInfoInput =
|
|
5068
|
-
setMembershipInfoInput =
|
|
5069
|
-
var
|
|
5070
|
-
removedMembershipInfoInput =
|
|
5071
|
-
setRemovedMembershipInfoInput =
|
|
5072
|
-
var
|
|
5062
|
+
travelFYI = _useState13[0],
|
|
5063
|
+
setTravelFYI = _useState13[1];
|
|
5064
|
+
var _useState14 = React.useState([]),
|
|
5065
|
+
membershipInfoInput = _useState14[0],
|
|
5066
|
+
setMembershipInfoInput = _useState14[1];
|
|
5067
|
+
var _useState15 = React.useState([]),
|
|
5068
|
+
removedMembershipInfoInput = _useState15[0],
|
|
5069
|
+
setRemovedMembershipInfoInput = _useState15[1];
|
|
5070
|
+
var _useState16 = React.useState({
|
|
5073
5071
|
flight_seat_preference: '',
|
|
5074
5072
|
meal_preference: ''
|
|
5075
5073
|
}),
|
|
5076
|
-
travelPreferenceInfo =
|
|
5077
|
-
settravelPreferenceInfo =
|
|
5078
|
-
var
|
|
5074
|
+
travelPreferenceInfo = _useState16[0],
|
|
5075
|
+
settravelPreferenceInfo = _useState16[1];
|
|
5076
|
+
var _useState17 = React.useState({
|
|
5079
5077
|
trusted_traveller: '',
|
|
5080
5078
|
redress_number: ''
|
|
5081
5079
|
}),
|
|
5082
|
-
secureTravelInputInfo =
|
|
5083
|
-
setSecureTravelInputInfo =
|
|
5084
|
-
var
|
|
5080
|
+
secureTravelInputInfo = _useState17[0],
|
|
5081
|
+
setSecureTravelInputInfo = _useState17[1];
|
|
5082
|
+
var _useState18 = React.useState({
|
|
5085
5083
|
passport_issue_country: {
|
|
5086
5084
|
value: '',
|
|
5087
5085
|
label: 'Select country'
|
|
@@ -5096,39 +5094,39 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5096
5094
|
passport_photo: [],
|
|
5097
5095
|
travel_docs: []
|
|
5098
5096
|
}),
|
|
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
|
|
5097
|
+
passportInfoInput = _useState18[0],
|
|
5098
|
+
setPassportInfoInput = _useState18[1];
|
|
5099
|
+
var _useState19 = React.useState([]),
|
|
5100
|
+
filesForDelete = _useState19[0],
|
|
5101
|
+
setFilesForDelete = _useState19[1];
|
|
5102
|
+
var _useState20 = React.useState([]),
|
|
5103
|
+
profilePicDelete = _useState20[0],
|
|
5104
|
+
setProfilePicDelete = _useState20[1];
|
|
5105
|
+
var _useState21 = React.useState(config.env.isTravelProduct && isProfile ? 'open' : ''),
|
|
5106
|
+
isAdditionalInfoExpanded = _useState21[0],
|
|
5107
|
+
setAdditionalInfoFlag = _useState21[1];
|
|
5108
|
+
var _useState22 = React.useState('submitter'),
|
|
5109
|
+
expenseRole = _useState22[0],
|
|
5110
|
+
setExpenseRole = _useState22[1];
|
|
5111
|
+
var _useState23 = React.useState({}),
|
|
5112
|
+
expenseApproversInput = _useState23[0],
|
|
5113
|
+
setExpenseApproversInput = _useState23[1];
|
|
5114
|
+
var _useState24 = React.useState({
|
|
5117
5115
|
value: '',
|
|
5118
5116
|
label: 'Select approver'
|
|
5119
5117
|
}),
|
|
5120
|
-
expenseFYI =
|
|
5121
|
-
setExpenseFYI =
|
|
5118
|
+
expenseFYI = _useState24[0],
|
|
5119
|
+
setExpenseFYI = _useState24[1];
|
|
5122
5120
|
var asyncSelectRefs = React.useRef({
|
|
5123
5121
|
emp_level: React.useRef(null),
|
|
5124
5122
|
entity: React.useRef(null),
|
|
5125
5123
|
business_unit: React.useRef(null),
|
|
5126
5124
|
department: React.useRef(null)
|
|
5127
5125
|
});
|
|
5128
|
-
var
|
|
5129
|
-
errorArray =
|
|
5130
|
-
setErrorArray =
|
|
5131
|
-
var
|
|
5126
|
+
var _useState25 = React.useState([]),
|
|
5127
|
+
errorArray = _useState25[0],
|
|
5128
|
+
setErrorArray = _useState25[1];
|
|
5129
|
+
var _useState26 = React.useState({
|
|
5132
5130
|
first_name: '',
|
|
5133
5131
|
last_name: '',
|
|
5134
5132
|
email: '',
|
|
@@ -5158,9 +5156,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5158
5156
|
userTagType: '',
|
|
5159
5157
|
profile_pic: ''
|
|
5160
5158
|
}),
|
|
5161
|
-
errorMsgs =
|
|
5162
|
-
setErrorMsgs =
|
|
5163
|
-
var
|
|
5159
|
+
errorMsgs = _useState26[0],
|
|
5160
|
+
setErrorMsgs = _useState26[1];
|
|
5161
|
+
var _useState27 = React.useState({
|
|
5164
5162
|
first_name: false,
|
|
5165
5163
|
last_name: false,
|
|
5166
5164
|
email: false,
|
|
@@ -5187,11 +5185,14 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5187
5185
|
userTagType: false,
|
|
5188
5186
|
profile_pic: false
|
|
5189
5187
|
}),
|
|
5190
|
-
inputChangeLog =
|
|
5191
|
-
updateInputChangeLog =
|
|
5192
|
-
var
|
|
5193
|
-
uploadedFiles =
|
|
5194
|
-
setUploadedFiles =
|
|
5188
|
+
inputChangeLog = _useState27[0],
|
|
5189
|
+
updateInputChangeLog = _useState27[1];
|
|
5190
|
+
var _useState28 = React.useState([]),
|
|
5191
|
+
uploadedFiles = _useState28[0],
|
|
5192
|
+
setUploadedFiles = _useState28[1];
|
|
5193
|
+
var _useState29 = React.useState(70),
|
|
5194
|
+
maxLengthForModal = _useState29[0],
|
|
5195
|
+
setMaxLengthForModal = _useState29[1];
|
|
5195
5196
|
var defaultAddModalData = {
|
|
5196
5197
|
isOpen: false,
|
|
5197
5198
|
isError: false,
|
|
@@ -5204,12 +5205,12 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5204
5205
|
regexOnBlur: null,
|
|
5205
5206
|
maxLimit: '',
|
|
5206
5207
|
minLimit: '',
|
|
5207
|
-
maxLength:
|
|
5208
|
+
maxLength: maxLengthForModal,
|
|
5208
5209
|
minLength: 0
|
|
5209
5210
|
};
|
|
5210
|
-
var
|
|
5211
|
-
addModalData =
|
|
5212
|
-
setAddModalData =
|
|
5211
|
+
var _useState30 = React.useState(defaultAddModalData),
|
|
5212
|
+
addModalData = _useState30[0],
|
|
5213
|
+
setAddModalData = _useState30[1];
|
|
5213
5214
|
var onAddModalClose = function onAddModalClose() {
|
|
5214
5215
|
setAddModalData(_extends({}, defaultAddModalData));
|
|
5215
5216
|
};
|
|
@@ -5229,12 +5230,16 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5229
5230
|
var title = '';
|
|
5230
5231
|
if (id === 'entity') {
|
|
5231
5232
|
title = 'Entity';
|
|
5233
|
+
setMaxLengthForModal(70);
|
|
5232
5234
|
} else if (id === 'department') {
|
|
5233
5235
|
title = 'Department';
|
|
5236
|
+
setMaxLengthForModal(70);
|
|
5234
5237
|
} else if (id === 'business_unit') {
|
|
5238
|
+
setMaxLengthForModal(150);
|
|
5235
5239
|
title = 'Business unit';
|
|
5236
5240
|
} else if (id === 'employee_level') {
|
|
5237
5241
|
title = 'Employee level';
|
|
5242
|
+
setMaxLengthForModal(70);
|
|
5238
5243
|
}
|
|
5239
5244
|
setAddModalData(_extends({}, addModalData, {
|
|
5240
5245
|
isOpen: true,
|
|
@@ -5382,7 +5387,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5382
5387
|
_value = args._value,
|
|
5383
5388
|
_isError = args._isError,
|
|
5384
5389
|
_errorMsg = args._errorMsg;
|
|
5385
|
-
console.log(_name, _value);
|
|
5386
5390
|
setEmployeeInfoInput(_extends({}, employeeInfoInput, (_extends8 = {}, _extends8[_name] = _value, _extends8)));
|
|
5387
5391
|
updateError(_name, _isError, _errorMsg);
|
|
5388
5392
|
if (Object.hasOwnProperty.call(inputChangeLog, _name)) {
|
|
@@ -5416,7 +5420,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5416
5420
|
var _extends12;
|
|
5417
5421
|
var _name = _ref3._name,
|
|
5418
5422
|
_value = _ref3._value;
|
|
5419
|
-
console.log(_name, _value, 'travel');
|
|
5420
5423
|
setTravelApproversInput(_extends({}, travelApproversInput, (_extends12 = {}, _extends12[_name] = _value, _extends12)));
|
|
5421
5424
|
};
|
|
5422
5425
|
var onExpenseApproversInputChange = function onExpenseApproversInputChange(_ref4) {
|
|
@@ -5628,6 +5631,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5628
5631
|
}
|
|
5629
5632
|
}));
|
|
5630
5633
|
dispatch(fetchCountryCodes()).then(function (_res) {
|
|
5634
|
+
setCountryContactCode(_res);
|
|
5631
5635
|
if (isEditMode) {
|
|
5632
5636
|
if (!isProfile && !editUserId) return false;
|
|
5633
5637
|
dispatch(setStaticFieldsVisibility({
|
|
@@ -5949,7 +5953,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5949
5953
|
IUIToastMessageService$4.warningNotify(checkAnyError);
|
|
5950
5954
|
return Promise.resolve();
|
|
5951
5955
|
}
|
|
5952
|
-
console.log(employeeInfoInput, "data");
|
|
5953
5956
|
if (employeeInfoInput.manager_id.value !== '') {
|
|
5954
5957
|
employeeInfoInput.manager_id = employeeInfoInput.manager.value;
|
|
5955
5958
|
}
|
|
@@ -6270,17 +6273,13 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6270
6273
|
if (verifyUserId) {
|
|
6271
6274
|
dispatch(showLoader());
|
|
6272
6275
|
dispatch(verifyUserInfo(verifyUserId)).then(function (res) {
|
|
6276
|
+
setNewCountryCode(res === null || res === void 0 ? void 0 : res.country_contact_code);
|
|
6273
6277
|
setPersonalInfoInput(function (prevState) {
|
|
6274
6278
|
return _extends({}, prevState, {
|
|
6275
|
-
first_name: res.
|
|
6276
|
-
last_name: res.
|
|
6279
|
+
first_name: res.first_name,
|
|
6280
|
+
last_name: res.last_name,
|
|
6277
6281
|
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
|
-
}(),
|
|
6282
|
+
contact_number: res === null || res === void 0 ? void 0 : res.contact_number,
|
|
6284
6283
|
gender: function () {
|
|
6285
6284
|
if (res.gender === 'male') return 'Male';else if (res.gender === 'female') return 'Female';else if (res.gender === 'others') return 'Others';else return '';
|
|
6286
6285
|
}()
|
|
@@ -8634,17 +8633,17 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8634
8633
|
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
8635
8634
|
};
|
|
8636
8635
|
var columns = [{
|
|
8637
|
-
id: '
|
|
8636
|
+
id: 'first_name',
|
|
8638
8637
|
label: 'Name',
|
|
8639
8638
|
minWidth: 250,
|
|
8640
8639
|
sortable: true,
|
|
8641
8640
|
cell: function cell(row) {
|
|
8642
8641
|
var _row$profile_pic2;
|
|
8643
8642
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIProfileBox, {
|
|
8644
|
-
firstName: row.
|
|
8645
|
-
lastName: row.
|
|
8643
|
+
firstName: row.first_name,
|
|
8644
|
+
lastName: row.last_name,
|
|
8646
8645
|
isLetterAvatar: row.profile_pic && row.profile_pic.presigned_url ? false : true,
|
|
8647
|
-
primaryText: row.
|
|
8646
|
+
primaryText: row.first_name + ' ' + row.last_name,
|
|
8648
8647
|
secondaryText: row.email,
|
|
8649
8648
|
letterAvatarTextColor: "black",
|
|
8650
8649
|
letterAvatarBackgroundColor: "#d3d3d3",
|
|
@@ -8653,7 +8652,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8653
8652
|
}));
|
|
8654
8653
|
}
|
|
8655
8654
|
}, {
|
|
8656
|
-
id: '
|
|
8655
|
+
id: 'created_at',
|
|
8657
8656
|
label: 'Requested on',
|
|
8658
8657
|
minWidth: 100,
|
|
8659
8658
|
sortable: true,
|
|
@@ -8663,7 +8662,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8663
8662
|
width: 100
|
|
8664
8663
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
8665
8664
|
className: clsx(styles$5.rowText, styles$5.textTransform)
|
|
8666
|
-
}, formatDate(row.
|
|
8665
|
+
}, formatDate(row.created_at)));
|
|
8667
8666
|
}
|
|
8668
8667
|
}, {
|
|
8669
8668
|
id: 'actions',
|
|
@@ -8936,7 +8935,7 @@ var UserList = function UserList(_ref2) {
|
|
|
8936
8935
|
var _React$useState11 = React__default.useState('asc'),
|
|
8937
8936
|
signup_order = _React$useState11[0],
|
|
8938
8937
|
setSignUpOrder = _React$useState11[1];
|
|
8939
|
-
var _React$useState12 = React__default.useState('
|
|
8938
|
+
var _React$useState12 = React__default.useState('first_name'),
|
|
8940
8939
|
signup_orderBy = _React$useState12[0],
|
|
8941
8940
|
setSignUpOrderBy = _React$useState12[1];
|
|
8942
8941
|
var _useState22 = React.useState(''),
|
|
@@ -8959,9 +8958,11 @@ var UserList = function UserList(_ref2) {
|
|
|
8959
8958
|
}),
|
|
8960
8959
|
signupRequestListInfo = _useSelector3.signupRequestListInfo;
|
|
8961
8960
|
var redirectToNotifications = function redirectToNotifications() {
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8961
|
+
if (config.routes.notification) {
|
|
8962
|
+
history.push({
|
|
8963
|
+
pathname: config.routes.notification.path
|
|
8964
|
+
});
|
|
8965
|
+
}
|
|
8965
8966
|
};
|
|
8966
8967
|
var openDeactivateModal = function openDeactivateModal() {
|
|
8967
8968
|
if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
|
|
@@ -9074,11 +9075,13 @@ var UserList = function UserList(_ref2) {
|
|
|
9074
9075
|
setSortingChangeTemp(!isSortingChangeTemp);
|
|
9075
9076
|
};
|
|
9076
9077
|
var onSearchHandler = function onSearchHandler(value) {
|
|
9078
|
+
setPage(1);
|
|
9077
9079
|
setSearchValue(value);
|
|
9078
9080
|
setSearchingChange(true);
|
|
9079
9081
|
setSearchingChangeTemp(!isSearchingChangeTemp);
|
|
9080
9082
|
};
|
|
9081
9083
|
var onSignUpReqeustSearchHandler = function onSignUpReqeustSearchHandler(value) {
|
|
9084
|
+
setPage(1);
|
|
9082
9085
|
set_signup_SearchValue(value);
|
|
9083
9086
|
setSignUpSearchingChange(true);
|
|
9084
9087
|
setSignUpSearchingChangeTemp(!isSignUpSearchingChangeTemp);
|
|
@@ -9578,7 +9581,7 @@ var UserList = function UserList(_ref2) {
|
|
|
9578
9581
|
variant: "body2",
|
|
9579
9582
|
className: clsx(styles$5.description)
|
|
9580
9583
|
}, "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", {
|
|
9581
|
-
onClick:
|
|
9584
|
+
onClick: redirectToNotifications,
|
|
9582
9585
|
className: clsx(config.routes.notification && 'iui__cursor-pointer iui__border--bottom_solid_black500-1')
|
|
9583
9586
|
}, "Notifications"))), /*#__PURE__*/React__default.createElement(SingupRequests, {
|
|
9584
9587
|
data: signupRequestListInfo,
|
|
@@ -10116,7 +10119,6 @@ function EditPanelDialog(_ref) {
|
|
|
10116
10119
|
}, [rowData]);
|
|
10117
10120
|
var history = reactRouterDom.useHistory();
|
|
10118
10121
|
var handleAddPageNavigation = function handleAddPageNavigation() {
|
|
10119
|
-
console.log(rowData);
|
|
10120
10122
|
history.push({
|
|
10121
10123
|
pathname: config.routes.users.add.path,
|
|
10122
10124
|
state: rowData
|
|
@@ -10437,12 +10439,20 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10437
10439
|
var validatedValue = _value.replace(/\s+/g, ' ').trim();
|
|
10438
10440
|
setDataList(validatedValue);
|
|
10439
10441
|
};
|
|
10442
|
+
var _useState17 = React.useState(70),
|
|
10443
|
+
maxLengthForModal = _useState17[0],
|
|
10444
|
+
setMaxLengthForModal = _useState17[1];
|
|
10445
|
+
React.useEffect(function () {
|
|
10446
|
+
if (title === 'Business unit') {
|
|
10447
|
+
setMaxLengthForModal(150);
|
|
10448
|
+
}
|
|
10449
|
+
}, []);
|
|
10440
10450
|
var validation = {
|
|
10441
10451
|
regexOnChange: /^[(A-Z)(a-z)(0-9)&'\-_.,/: ]*$/,
|
|
10442
10452
|
regexOnBlur: null,
|
|
10443
10453
|
maxLimit: '',
|
|
10444
10454
|
minLimit: '',
|
|
10445
|
-
maxLength:
|
|
10455
|
+
maxLength: maxLengthForModal,
|
|
10446
10456
|
minLength: 0
|
|
10447
10457
|
};
|
|
10448
10458
|
React.useEffect(function () {
|