@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.
package/dist/index.js CHANGED
@@ -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 _ & are allowed."
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,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',
@@ -5167,9 +5192,6 @@ var UserAddEdit = function UserAddEdit(props) {
5167
5192
  var _useState25 = React.useState([]),
5168
5193
  uploadedFiles = _useState25[0],
5169
5194
  setUploadedFiles = _useState25[1];
5170
- var _useState26 = React.useState(70),
5171
- maxLengthForModal = _useState26[0],
5172
- setMaxLengthForModal = _useState26[1];
5173
5195
  var defaultAddModalData = {
5174
5196
  isOpen: false,
5175
5197
  isError: false,
@@ -5182,12 +5204,12 @@ var UserAddEdit = function UserAddEdit(props) {
5182
5204
  regexOnBlur: null,
5183
5205
  maxLimit: '',
5184
5206
  minLimit: '',
5185
- maxLength: maxLengthForModal,
5207
+ maxLength: 70,
5186
5208
  minLength: 0
5187
5209
  };
5188
- var _useState27 = React.useState(defaultAddModalData),
5189
- addModalData = _useState27[0],
5190
- setAddModalData = _useState27[1];
5210
+ var _useState26 = React.useState(defaultAddModalData),
5211
+ addModalData = _useState26[0],
5212
+ setAddModalData = _useState26[1];
5191
5213
  var onAddModalClose = function onAddModalClose() {
5192
5214
  setAddModalData(_extends({}, defaultAddModalData));
5193
5215
  };
@@ -5207,16 +5229,12 @@ var UserAddEdit = function UserAddEdit(props) {
5207
5229
  var title = '';
5208
5230
  if (id === 'entity') {
5209
5231
  title = 'Entity';
5210
- setMaxLengthForModal(70);
5211
5232
  } else if (id === 'department') {
5212
5233
  title = 'Department';
5213
- setMaxLengthForModal(70);
5214
5234
  } else if (id === 'business_unit') {
5215
- setMaxLengthForModal(150);
5216
5235
  title = 'Business unit';
5217
5236
  } else if (id === 'employee_level') {
5218
5237
  title = 'Employee level';
5219
- setMaxLengthForModal(70);
5220
5238
  }
5221
5239
  setAddModalData(_extends({}, addModalData, {
5222
5240
  isOpen: true,
@@ -5931,7 +5949,7 @@ var UserAddEdit = function UserAddEdit(props) {
5931
5949
  IUIToastMessageService$4.warningNotify(checkAnyError);
5932
5950
  return Promise.resolve();
5933
5951
  }
5934
- console.log(employeeInfoInput, 'data');
5952
+ console.log(employeeInfoInput, "data");
5935
5953
  if (employeeInfoInput.manager_id.value !== '') {
5936
5954
  employeeInfoInput.manager_id = employeeInfoInput.manager.value;
5937
5955
  }
@@ -8941,7 +8959,9 @@ var UserList = function UserList(_ref2) {
8941
8959
  }),
8942
8960
  signupRequestListInfo = _useSelector3.signupRequestListInfo;
8943
8961
  var redirectToNotifications = function redirectToNotifications() {
8944
- history.push(config.routes.notification.path);
8962
+ history.push({
8963
+ pathname: "/settings/notifications"
8964
+ });
8945
8965
  };
8946
8966
  var openDeactivateModal = function openDeactivateModal() {
8947
8967
  if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
@@ -10417,20 +10437,12 @@ var UserPanel = function UserPanel(_ref) {
10417
10437
  var validatedValue = _value.replace(/\s+/g, ' ').trim();
10418
10438
  setDataList(validatedValue);
10419
10439
  };
10420
- var _useState17 = React.useState(70),
10421
- maxLengthForModal = _useState17[0],
10422
- setMaxLengthForModal = _useState17[1];
10423
- React.useEffect(function () {
10424
- if (title === 'Business unit') {
10425
- setMaxLengthForModal(150);
10426
- }
10427
- }, []);
10428
10440
  var validation = {
10429
10441
  regexOnChange: /^[(A-Z)(a-z)(0-9)&'\-_.,/: ]*$/,
10430
10442
  regexOnBlur: null,
10431
10443
  maxLimit: '',
10432
10444
  minLimit: '',
10433
- maxLength: maxLengthForModal,
10445
+ maxLength: 70,
10434
10446
  minLength: 0
10435
10447
  };
10436
10448
  React.useEffect(function () {