@itilite/iui-user-management 1.3.10 → 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'
@@ -5189,9 +5189,6 @@ var UserAddEdit = function UserAddEdit(props) {
5189
5189
  var _useState25 = useState([]),
5190
5190
  uploadedFiles = _useState25[0],
5191
5191
  setUploadedFiles = _useState25[1];
5192
- var _useState26 = useState(70),
5193
- maxLengthForModal = _useState26[0],
5194
- setMaxLengthForModal = _useState26[1];
5195
5192
  var defaultAddModalData = {
5196
5193
  isOpen: false,
5197
5194
  isError: false,
@@ -5204,12 +5201,12 @@ var UserAddEdit = function UserAddEdit(props) {
5204
5201
  regexOnBlur: null,
5205
5202
  maxLimit: '',
5206
5203
  minLimit: '',
5207
- maxLength: maxLengthForModal,
5204
+ maxLength: 70,
5208
5205
  minLength: 0
5209
5206
  };
5210
- var _useState27 = useState(defaultAddModalData),
5211
- addModalData = _useState27[0],
5212
- setAddModalData = _useState27[1];
5207
+ var _useState26 = useState(defaultAddModalData),
5208
+ addModalData = _useState26[0],
5209
+ setAddModalData = _useState26[1];
5213
5210
  var onAddModalClose = function onAddModalClose() {
5214
5211
  setAddModalData(_extends({}, defaultAddModalData));
5215
5212
  };
@@ -5229,16 +5226,12 @@ var UserAddEdit = function UserAddEdit(props) {
5229
5226
  var title = '';
5230
5227
  if (id === 'entity') {
5231
5228
  title = 'Entity';
5232
- setMaxLengthForModal(70);
5233
5229
  } else if (id === 'department') {
5234
5230
  title = 'Department';
5235
- setMaxLengthForModal(70);
5236
5231
  } else if (id === 'business_unit') {
5237
- setMaxLengthForModal(150);
5238
5232
  title = 'Business unit';
5239
5233
  } else if (id === 'employee_level') {
5240
5234
  title = 'Employee level';
5241
- setMaxLengthForModal(70);
5242
5235
  }
5243
5236
  setAddModalData(_extends({}, addModalData, {
5244
5237
  isOpen: true,
@@ -5953,7 +5946,7 @@ var UserAddEdit = function UserAddEdit(props) {
5953
5946
  IUIToastMessageService$4.warningNotify(checkAnyError);
5954
5947
  return Promise.resolve();
5955
5948
  }
5956
- console.log(employeeInfoInput, 'data');
5949
+ console.log(employeeInfoInput, "data");
5957
5950
  if (employeeInfoInput.manager_id.value !== '') {
5958
5951
  employeeInfoInput.manager_id = employeeInfoInput.manager.value;
5959
5952
  }
@@ -8963,7 +8956,9 @@ var UserList = function UserList(_ref2) {
8963
8956
  }),
8964
8957
  signupRequestListInfo = _useSelector3.signupRequestListInfo;
8965
8958
  var redirectToNotifications = function redirectToNotifications() {
8966
- history.push(config.routes.notification.path);
8959
+ history.push({
8960
+ pathname: "/settings/notifications"
8961
+ });
8967
8962
  };
8968
8963
  var openDeactivateModal = function openDeactivateModal() {
8969
8964
  if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
@@ -10439,20 +10434,12 @@ var UserPanel = function UserPanel(_ref) {
10439
10434
  var validatedValue = _value.replace(/\s+/g, ' ').trim();
10440
10435
  setDataList(validatedValue);
10441
10436
  };
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
- }, []);
10450
10437
  var validation = {
10451
10438
  regexOnChange: /^[(A-Z)(a-z)(0-9)&'\-_.,/: ]*$/,
10452
10439
  regexOnBlur: null,
10453
10440
  maxLimit: '',
10454
10441
  minLimit: '',
10455
- maxLength: maxLengthForModal,
10442
+ maxLength: 70,
10456
10443
  minLength: 0
10457
10444
  };
10458
10445
  useEffect(function () {