@itilite/iui-user-management 0.4.504 → 0.4.505

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.
@@ -6045,12 +6045,12 @@ var UserAddEdit = function UserAddEdit(props) {
6045
6045
  setErrorArray(_errorArray);
6046
6046
  setErrorMsgs(_errorMsgs);
6047
6047
  var _loop = function _loop() {
6048
- if (Object.hasOwnProperty.call(_errorMsgs, _key3)) {
6049
- if (_errorMsgs[_key3]) {
6050
- if (_key3 in passportInfoInput || _key3 in travelPreferenceInfo || _key3 in secureTravelInputInfo) {
6048
+ if (Object.hasOwnProperty.call(_errorMsgs, key)) {
6049
+ if (_errorMsgs[key]) {
6050
+ if (key in passportInfoInput || key in travelPreferenceInfo || key in secureTravelInputInfo) {
6051
6051
  setAdditionalInfoFlag('open');
6052
6052
  }
6053
- var el = document.getElementById(_key3 === 'country_code' || _key3 === 'contact_country_code' ? 'contact_number' : _key3);
6053
+ var el = document.getElementById(key === 'country_code' || key === 'contact_country_code' ? 'contact_number' : key);
6054
6054
  if (el) {
6055
6055
  setTimeout(function () {
6056
6056
  el.scrollIntoView({
@@ -6096,12 +6096,12 @@ var UserAddEdit = function UserAddEdit(props) {
6096
6096
  setErrorArray(Object.keys(err));
6097
6097
  setErrorMsgs(err);
6098
6098
  var _loop2 = function _loop2() {
6099
- if (Object.hasOwnProperty.call(err, _key4)) {
6100
- if (err[_key4]) {
6101
- if (_key4 in passportInfoInput || _key4 in travelPreferenceInfo || _key4 in secureTravelInputInfo) {
6099
+ if (Object.hasOwnProperty.call(err, key)) {
6100
+ if (err[key]) {
6101
+ if (key in passportInfoInput || key in travelPreferenceInfo || key in secureTravelInputInfo) {
6102
6102
  setAdditionalInfoFlag('open');
6103
6103
  }
6104
- var el = document.getElementById(_key4 === 'country_code' || _key4 === 'contact_country_code' ? 'contact_number' : _key4);
6104
+ var el = document.getElementById(key === 'country_code' || key === 'contact_country_code' ? 'contact_number' : key);
6105
6105
  if (el) {
6106
6106
  setTimeout(function () {
6107
6107
  el.scrollIntoView({
@@ -6146,12 +6146,12 @@ var UserAddEdit = function UserAddEdit(props) {
6146
6146
  setErrorArray(Object.keys(err));
6147
6147
  setErrorMsgs(err);
6148
6148
  var _loop3 = function _loop3() {
6149
- if (Object.hasOwnProperty.call(err, _key5)) {
6150
- if (err[_key5]) {
6151
- if (_key5 in passportInfoInput || _key5 in travelPreferenceInfo || _key5 in secureTravelInputInfo) {
6149
+ if (Object.hasOwnProperty.call(err, key)) {
6150
+ if (err[key]) {
6151
+ if (key in passportInfoInput || key in travelPreferenceInfo || key in secureTravelInputInfo) {
6152
6152
  setAdditionalInfoFlag('open');
6153
6153
  }
6154
- var el = document.getElementById(_key5 === 'country_code' || _key5 === 'contact_country_code' ? 'contact_number' : _key5);
6154
+ var el = document.getElementById(key === 'country_code' || key === 'contact_country_code' ? 'contact_number' : key);
6155
6155
  if (el) {
6156
6156
  setTimeout(function () {
6157
6157
  el.scrollIntoView({
@@ -9263,6 +9263,9 @@ var UserList = function UserList(_ref2) {
9263
9263
  userId: userId
9264
9264
  }));
9265
9265
  };
9266
+ var knowMore = function knowMore() {
9267
+ window.open('https://itilite.notion.site/All-about-deactivating-users-77554de1fb494832ac7e344ca14277f0', '_blank');
9268
+ };
9266
9269
  var dispatch = useDispatch();
9267
9270
  useEffect(function () {
9268
9271
  if (isTokenVerified === true) {
@@ -9514,8 +9517,7 @@ var UserList = function UserList(_ref2) {
9514
9517
  }, /*#__PURE__*/React.createElement(IUITypography, {
9515
9518
  variant: "body2",
9516
9519
  className: clsx(styles$5.description)
9517
- }, "Verify and add users to allow them to start using ITILITE. Set up preferences for receiving sign up request updates in", ' ', /*#__PURE__*/React.createElement(IUITypography, {
9518
- variant: "span",
9520
+ }, "Verify and add users to allow them to start using ITILITE. Set up preferences for receiving sign up request updates in", ' ', /*#__PURE__*/React.createElement("span", {
9519
9521
  onClick: config.routes.notification && redirectToNotifications,
9520
9522
  className: clsx(config.routes.notification && 'iui__cursor-pointer iui__border--bottom_solid_black500-1')
9521
9523
  }, "Notifications"))), /*#__PURE__*/React.createElement(SingupRequests, {
@@ -9573,7 +9575,12 @@ var UserList = function UserList(_ref2) {
9573
9575
  }, /*#__PURE__*/React.createElement(InfoYellowIcon, {
9574
9576
  width: "9",
9575
9577
  height: "9"
9576
- }), /*#__PURE__*/React.createElement(IUITypography, null, /*#__PURE__*/React.createElement("b", null, deactivateUser), " is linked with following role. You can deactivate them only once you transfer the role to another user.")), /*#__PURE__*/React.createElement(IUIBox, {
9578
+ }), /*#__PURE__*/React.createElement(IUITypography, {
9579
+ variant: "body2"
9580
+ }, /*#__PURE__*/React.createElement("b", null, deactivateUser), " is linked with following role. You can deactivate only once you transfer the role to another user. The changes will reflect subsequently.", ' ', /*#__PURE__*/React.createElement("span", {
9581
+ onClick: knowMore,
9582
+ className: "iui__cursor-pointer iui__border--bottom_solid_black500-1"
9583
+ }, "Know more"))), /*#__PURE__*/React.createElement(IUIBox, {
9577
9584
  className: "iui__mt-15"
9578
9585
  }, /*#__PURE__*/React.createElement(IUIAsyncSelect, {
9579
9586
  isMove: true,
@@ -9639,7 +9646,12 @@ var UserList = function UserList(_ref2) {
9639
9646
  }, /*#__PURE__*/React.createElement(RedWarningIcon, {
9640
9647
  color: "#9A6700",
9641
9648
  size: "14"
9642
- }), /*#__PURE__*/React.createElement(IUITypography, null, "Some users are linked with approval roles. Deactivating these users will result in missing roles and approvers. Deactivate these users individually and transfer their roles to avoid missing roles.")), /*#__PURE__*/React.createElement(IUIBox, {
9649
+ }), /*#__PURE__*/React.createElement(IUITypography, {
9650
+ variant: "body2"
9651
+ }, "Some users are linked with approval roles. Deactivating these users will result in missing roles and approvers. Deactivate these users individually and transfer their roles to avoid missing roles. The changes will reflect subsequently.", ' ', /*#__PURE__*/React.createElement("span", {
9652
+ onClick: knowMore,
9653
+ className: "iui__cursor-pointer iui__border--bottom_solid_black500-1"
9654
+ }, "Know more"))), /*#__PURE__*/React.createElement(IUIBox, {
9643
9655
  className: "iui__my-15"
9644
9656
  }, /*#__PURE__*/React.createElement(IUIBox, {
9645
9657
  className: "iui__font--para-large iui__font--weight-medium"