@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.
package/dist/index.js CHANGED
@@ -6048,12 +6048,12 @@ var UserAddEdit = function UserAddEdit(props) {
6048
6048
  setErrorArray(_errorArray);
6049
6049
  setErrorMsgs(_errorMsgs);
6050
6050
  var _loop = function _loop() {
6051
- if (Object.hasOwnProperty.call(_errorMsgs, _key3)) {
6052
- if (_errorMsgs[_key3]) {
6053
- if (_key3 in passportInfoInput || _key3 in travelPreferenceInfo || _key3 in secureTravelInputInfo) {
6051
+ if (Object.hasOwnProperty.call(_errorMsgs, key)) {
6052
+ if (_errorMsgs[key]) {
6053
+ if (key in passportInfoInput || key in travelPreferenceInfo || key in secureTravelInputInfo) {
6054
6054
  setAdditionalInfoFlag('open');
6055
6055
  }
6056
- var el = document.getElementById(_key3 === 'country_code' || _key3 === 'contact_country_code' ? 'contact_number' : _key3);
6056
+ var el = document.getElementById(key === 'country_code' || key === 'contact_country_code' ? 'contact_number' : key);
6057
6057
  if (el) {
6058
6058
  setTimeout(function () {
6059
6059
  el.scrollIntoView({
@@ -6099,12 +6099,12 @@ var UserAddEdit = function UserAddEdit(props) {
6099
6099
  setErrorArray(Object.keys(err));
6100
6100
  setErrorMsgs(err);
6101
6101
  var _loop2 = function _loop2() {
6102
- if (Object.hasOwnProperty.call(err, _key4)) {
6103
- if (err[_key4]) {
6104
- if (_key4 in passportInfoInput || _key4 in travelPreferenceInfo || _key4 in secureTravelInputInfo) {
6102
+ if (Object.hasOwnProperty.call(err, key)) {
6103
+ if (err[key]) {
6104
+ if (key in passportInfoInput || key in travelPreferenceInfo || key in secureTravelInputInfo) {
6105
6105
  setAdditionalInfoFlag('open');
6106
6106
  }
6107
- var el = document.getElementById(_key4 === 'country_code' || _key4 === 'contact_country_code' ? 'contact_number' : _key4);
6107
+ var el = document.getElementById(key === 'country_code' || key === 'contact_country_code' ? 'contact_number' : key);
6108
6108
  if (el) {
6109
6109
  setTimeout(function () {
6110
6110
  el.scrollIntoView({
@@ -6149,12 +6149,12 @@ var UserAddEdit = function UserAddEdit(props) {
6149
6149
  setErrorArray(Object.keys(err));
6150
6150
  setErrorMsgs(err);
6151
6151
  var _loop3 = function _loop3() {
6152
- if (Object.hasOwnProperty.call(err, _key5)) {
6153
- if (err[_key5]) {
6154
- if (_key5 in passportInfoInput || _key5 in travelPreferenceInfo || _key5 in secureTravelInputInfo) {
6152
+ if (Object.hasOwnProperty.call(err, key)) {
6153
+ if (err[key]) {
6154
+ if (key in passportInfoInput || key in travelPreferenceInfo || key in secureTravelInputInfo) {
6155
6155
  setAdditionalInfoFlag('open');
6156
6156
  }
6157
- var el = document.getElementById(_key5 === 'country_code' || _key5 === 'contact_country_code' ? 'contact_number' : _key5);
6157
+ var el = document.getElementById(key === 'country_code' || key === 'contact_country_code' ? 'contact_number' : key);
6158
6158
  if (el) {
6159
6159
  setTimeout(function () {
6160
6160
  el.scrollIntoView({
@@ -9266,6 +9266,9 @@ var UserList = function UserList(_ref2) {
9266
9266
  userId: userId
9267
9267
  }));
9268
9268
  };
9269
+ var knowMore = function knowMore() {
9270
+ window.open('https://itilite.notion.site/All-about-deactivating-users-77554de1fb494832ac7e344ca14277f0', '_blank');
9271
+ };
9269
9272
  var dispatch = reactRedux.useDispatch();
9270
9273
  React.useEffect(function () {
9271
9274
  if (isTokenVerified === true) {
@@ -9517,8 +9520,7 @@ var UserList = function UserList(_ref2) {
9517
9520
  }, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
9518
9521
  variant: "body2",
9519
9522
  className: clsx(styles$5.description)
9520
- }, "Verify and add users to allow them to start using ITILITE. Set up preferences for receiving sign up request updates in", ' ', /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
9521
- variant: "span",
9523
+ }, "Verify and add users to allow them to start using ITILITE. Set up preferences for receiving sign up request updates in", ' ', /*#__PURE__*/React__default.createElement("span", {
9522
9524
  onClick: config.routes.notification && redirectToNotifications,
9523
9525
  className: clsx(config.routes.notification && 'iui__cursor-pointer iui__border--bottom_solid_black500-1')
9524
9526
  }, "Notifications"))), /*#__PURE__*/React__default.createElement(SingupRequests, {
@@ -9576,7 +9578,12 @@ var UserList = function UserList(_ref2) {
9576
9578
  }, /*#__PURE__*/React__default.createElement(InfoYellowIcon, {
9577
9579
  width: "9",
9578
9580
  height: "9"
9579
- }), /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, null, /*#__PURE__*/React__default.createElement("b", null, deactivateUser), " is linked with following role. You can deactivate them only once you transfer the role to another user.")), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
9581
+ }), /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
9582
+ variant: "body2"
9583
+ }, /*#__PURE__*/React__default.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__default.createElement("span", {
9584
+ onClick: knowMore,
9585
+ className: "iui__cursor-pointer iui__border--bottom_solid_black500-1"
9586
+ }, "Know more"))), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
9580
9587
  className: "iui__mt-15"
9581
9588
  }, /*#__PURE__*/React__default.createElement(iuistyles.IUIAsyncSelect, {
9582
9589
  isMove: true,
@@ -9642,7 +9649,12 @@ var UserList = function UserList(_ref2) {
9642
9649
  }, /*#__PURE__*/React__default.createElement(RedWarningIcon, {
9643
9650
  color: "#9A6700",
9644
9651
  size: "14"
9645
- }), /*#__PURE__*/React__default.createElement(iuistyles.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__default.createElement(iuistyles.IUIBox, {
9652
+ }), /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
9653
+ variant: "body2"
9654
+ }, "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__default.createElement("span", {
9655
+ onClick: knowMore,
9656
+ className: "iui__cursor-pointer iui__border--bottom_solid_black500-1"
9657
+ }, "Know more"))), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
9646
9658
  className: "iui__my-15"
9647
9659
  }, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
9648
9660
  className: "iui__font--para-large iui__font--weight-medium"