@itilite/iui-user-management 1.3.11 → 1.3.12

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.
@@ -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 _ & are allowed."
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,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',
@@ -5164,9 +5189,6 @@ var UserAddEdit = function UserAddEdit(props) {
5164
5189
  var _useState25 = useState([]),
5165
5190
  uploadedFiles = _useState25[0],
5166
5191
  setUploadedFiles = _useState25[1];
5167
- var _useState26 = useState(70),
5168
- maxLengthForModal = _useState26[0],
5169
- setMaxLengthForModal = _useState26[1];
5170
5192
  var defaultAddModalData = {
5171
5193
  isOpen: false,
5172
5194
  isError: false,
@@ -5179,12 +5201,12 @@ var UserAddEdit = function UserAddEdit(props) {
5179
5201
  regexOnBlur: null,
5180
5202
  maxLimit: '',
5181
5203
  minLimit: '',
5182
- maxLength: maxLengthForModal,
5204
+ maxLength: 70,
5183
5205
  minLength: 0
5184
5206
  };
5185
- var _useState27 = useState(defaultAddModalData),
5186
- addModalData = _useState27[0],
5187
- setAddModalData = _useState27[1];
5207
+ var _useState26 = useState(defaultAddModalData),
5208
+ addModalData = _useState26[0],
5209
+ setAddModalData = _useState26[1];
5188
5210
  var onAddModalClose = function onAddModalClose() {
5189
5211
  setAddModalData(_extends({}, defaultAddModalData));
5190
5212
  };
@@ -5204,16 +5226,12 @@ var UserAddEdit = function UserAddEdit(props) {
5204
5226
  var title = '';
5205
5227
  if (id === 'entity') {
5206
5228
  title = 'Entity';
5207
- setMaxLengthForModal(70);
5208
5229
  } else if (id === 'department') {
5209
5230
  title = 'Department';
5210
- setMaxLengthForModal(70);
5211
5231
  } else if (id === 'business_unit') {
5212
- setMaxLengthForModal(150);
5213
5232
  title = 'Business unit';
5214
5233
  } else if (id === 'employee_level') {
5215
5234
  title = 'Employee level';
5216
- setMaxLengthForModal(70);
5217
5235
  }
5218
5236
  setAddModalData(_extends({}, addModalData, {
5219
5237
  isOpen: true,
@@ -5928,7 +5946,7 @@ var UserAddEdit = function UserAddEdit(props) {
5928
5946
  IUIToastMessageService$4.warningNotify(checkAnyError);
5929
5947
  return Promise.resolve();
5930
5948
  }
5931
- console.log(employeeInfoInput, 'data');
5949
+ console.log(employeeInfoInput, "data");
5932
5950
  if (employeeInfoInput.manager_id.value !== '') {
5933
5951
  employeeInfoInput.manager_id = employeeInfoInput.manager.value;
5934
5952
  }
@@ -8938,7 +8956,9 @@ var UserList = function UserList(_ref2) {
8938
8956
  }),
8939
8957
  signupRequestListInfo = _useSelector3.signupRequestListInfo;
8940
8958
  var redirectToNotifications = function redirectToNotifications() {
8941
- history.push(config.routes.notification.path);
8959
+ history.push({
8960
+ pathname: "/settings/notifications"
8961
+ });
8942
8962
  };
8943
8963
  var openDeactivateModal = function openDeactivateModal() {
8944
8964
  if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
@@ -10414,20 +10434,12 @@ var UserPanel = function UserPanel(_ref) {
10414
10434
  var validatedValue = _value.replace(/\s+/g, ' ').trim();
10415
10435
  setDataList(validatedValue);
10416
10436
  };
10417
- var _useState17 = useState(70),
10418
- maxLengthForModal = _useState17[0],
10419
- setMaxLengthForModal = _useState17[1];
10420
- useEffect(function () {
10421
- if (title === 'Business unit') {
10422
- setMaxLengthForModal(150);
10423
- }
10424
- }, []);
10425
10437
  var validation = {
10426
10438
  regexOnChange: /^[(A-Z)(a-z)(0-9)&'\-_.,/: ]*$/,
10427
10439
  regexOnBlur: null,
10428
10440
  maxLimit: '',
10429
10441
  minLimit: '',
10430
- maxLength: maxLengthForModal,
10442
+ maxLength: 70,
10431
10443
  minLength: 0
10432
10444
  };
10433
10445
  useEffect(function () {