@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 +28 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +28 -16
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -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,
|
|
6049
|
-
if (_errorMsgs[
|
|
6050
|
-
if (
|
|
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(
|
|
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,
|
|
6100
|
-
if (err[
|
|
6101
|
-
if (
|
|
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(
|
|
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,
|
|
6150
|
-
if (err[
|
|
6151
|
-
if (
|
|
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(
|
|
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(
|
|
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,
|
|
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,
|
|
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"
|