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