@itilite/iui-user-management 1.4.4987 → 1.4.4988
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.css +4 -5
- package/dist/index.js +11 -57
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -57
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -5369,7 +5369,6 @@ var Membership = function Membership(_ref) {
|
|
|
5369
5369
|
var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
5370
5370
|
var _clsx;
|
|
5371
5371
|
var membershipInfoInput = _ref.membershipInfoInput,
|
|
5372
|
-
addMemInfoInput = _ref.addMemInfoInput,
|
|
5373
5372
|
travelPreferenceInfo = _ref.travelPreferenceInfo,
|
|
5374
5373
|
_ref$travelPreference = _ref.travelPreferenceOnChange,
|
|
5375
5374
|
travelPreferenceOnChange = _ref$travelPreference === void 0 ? function () {} : _ref$travelPreference,
|
|
@@ -5497,50 +5496,7 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
5497
5496
|
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
5498
5497
|
container: true,
|
|
5499
5498
|
className: styles.formFieldsWrapper
|
|
5500
|
-
},
|
|
5501
|
-
className: styles.emptyFieldContainer
|
|
5502
|
-
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
5503
|
-
className: styles.emptyFieldDescription
|
|
5504
|
-
}, "No membership details added yet"), /*#__PURE__*/React.createElement(IUIBox, {
|
|
5505
|
-
className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
|
|
5506
|
-
display: "flex"
|
|
5507
|
-
}, /*#__PURE__*/React.createElement(IUIButton, {
|
|
5508
|
-
buttonText: "Add airline",
|
|
5509
|
-
type: "text",
|
|
5510
|
-
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
5511
|
-
width: "10",
|
|
5512
|
-
height: "10",
|
|
5513
|
-
color: "#EC5D25"
|
|
5514
|
-
}),
|
|
5515
|
-
className: styles.paddingTop,
|
|
5516
|
-
onClick: function onClick(e) {
|
|
5517
|
-
return addMemInfoInput('flight');
|
|
5518
|
-
}
|
|
5519
|
-
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
5520
|
-
buttonText: "Add hotel",
|
|
5521
|
-
type: "text",
|
|
5522
|
-
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
5523
|
-
width: "10",
|
|
5524
|
-
height: "10",
|
|
5525
|
-
color: "#EC5D25"
|
|
5526
|
-
}),
|
|
5527
|
-
className: styles.paddingTop,
|
|
5528
|
-
onClick: function onClick(e) {
|
|
5529
|
-
return addMemInfoInput('hotel');
|
|
5530
|
-
}
|
|
5531
|
-
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
5532
|
-
buttonText: "Add car rental",
|
|
5533
|
-
type: "text",
|
|
5534
|
-
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
5535
|
-
width: "10",
|
|
5536
|
-
height: "10",
|
|
5537
|
-
color: "#EC5D25"
|
|
5538
|
-
}),
|
|
5539
|
-
className: styles.paddingTop,
|
|
5540
|
-
onClick: function onClick(e) {
|
|
5541
|
-
return addMemInfoInput('rental_car');
|
|
5542
|
-
}
|
|
5543
|
-
}))), /*#__PURE__*/React.createElement(Membership, {
|
|
5499
|
+
}, /*#__PURE__*/React.createElement(Membership, {
|
|
5544
5500
|
membershipInfoInput: membershipInfoInput,
|
|
5545
5501
|
setMembershipInfoInput: setMembershipInfoInput,
|
|
5546
5502
|
isProfile: isProfile
|
|
@@ -6020,7 +5976,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6020
5976
|
method: 'GET',
|
|
6021
5977
|
headers: {
|
|
6022
5978
|
'Content-Type': 'application/json',
|
|
6023
|
-
authorization: "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
5979
|
+
'authorization': "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
6024
5980
|
}
|
|
6025
5981
|
}).then(function (response) {
|
|
6026
5982
|
return response.json();
|
|
@@ -6032,7 +5988,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6032
5988
|
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
6033
5989
|
}
|
|
6034
5990
|
})["catch"](function (error) {
|
|
6035
|
-
console.log(
|
|
5991
|
+
console.log("errorrr", error);
|
|
6036
5992
|
});
|
|
6037
5993
|
};
|
|
6038
5994
|
var fetchLoggedUserCardsDetails = function fetchLoggedUserCardsDetails() {
|
|
@@ -6040,7 +5996,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6040
5996
|
method: 'GET',
|
|
6041
5997
|
headers: {
|
|
6042
5998
|
'Content-Type': 'application/json',
|
|
6043
|
-
authorization: "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
5999
|
+
'authorization': "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
6044
6000
|
}
|
|
6045
6001
|
}).then(function (response) {
|
|
6046
6002
|
return response.json();
|
|
@@ -6052,7 +6008,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6052
6008
|
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
6053
6009
|
}
|
|
6054
6010
|
})["catch"](function (error) {
|
|
6055
|
-
console.log(
|
|
6011
|
+
console.log("errorrr", error);
|
|
6056
6012
|
});
|
|
6057
6013
|
};
|
|
6058
6014
|
useEffect(function () {
|
|
@@ -7092,7 +7048,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7092
7048
|
employeeInfoInput.skip_manager_id = employeeInfoInput.skip_manager.value;
|
|
7093
7049
|
}
|
|
7094
7050
|
var cardsPayload = {
|
|
7095
|
-
roles: [cardsRole]
|
|
7051
|
+
"roles": [cardsRole]
|
|
7096
7052
|
};
|
|
7097
7053
|
var payload = {
|
|
7098
7054
|
personalInfoInput: personalInfoInput,
|
|
@@ -7278,7 +7234,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7278
7234
|
body: JSON.stringify(cardsPayload),
|
|
7279
7235
|
headers: {
|
|
7280
7236
|
'Content-Type': 'application/json',
|
|
7281
|
-
authorization: "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
7237
|
+
'authorization': "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
7282
7238
|
}
|
|
7283
7239
|
}).then(function (response) {
|
|
7284
7240
|
if (response.status === 200) {
|
|
@@ -7287,7 +7243,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7287
7243
|
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
7288
7244
|
}
|
|
7289
7245
|
})["catch"](function (error) {
|
|
7290
|
-
console.log(
|
|
7246
|
+
console.log("errorrr", error);
|
|
7291
7247
|
})["finally"](function () {
|
|
7292
7248
|
dispatch(stopLoader());
|
|
7293
7249
|
});
|
|
@@ -7305,14 +7261,14 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7305
7261
|
body: JSON.stringify(cardsPayload),
|
|
7306
7262
|
headers: {
|
|
7307
7263
|
'Content-Type': 'application/json',
|
|
7308
|
-
authorization: "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
7264
|
+
'authorization': "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
7309
7265
|
}
|
|
7310
7266
|
}).then(function (response) {
|
|
7311
7267
|
if (response.status !== 200) {
|
|
7312
7268
|
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
7313
7269
|
}
|
|
7314
7270
|
})["catch"](function (error) {
|
|
7315
|
-
console.log(
|
|
7271
|
+
console.log("errorrr", error);
|
|
7316
7272
|
});
|
|
7317
7273
|
}
|
|
7318
7274
|
(config === null || config === void 0 ? void 0 : (_config$routes4 = config.routes) === null || _config$routes4 === void 0 ? void 0 : (_config$routes4$users = _config$routes4.users) === null || _config$routes4$users === void 0 ? void 0 : (_config$routes4$users2 = _config$routes4$users.list) === null || _config$routes4$users2 === void 0 ? void 0 : _config$routes4$users2.path) && history.push(config.routes.users.list.path);
|
|
@@ -7766,9 +7722,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7766
7722
|
errorMsgs: errorMsgs,
|
|
7767
7723
|
dateFormat: dateFormat,
|
|
7768
7724
|
defaultExpand: isAdditionalInfoExpanded,
|
|
7769
|
-
setAdditionalInfoFlag: setAdditionalInfoFlag
|
|
7770
|
-
setMembershipInfoInput: setMembershipInfoInput,
|
|
7771
|
-
isProfile: isProfile
|
|
7725
|
+
setAdditionalInfoFlag: setAdditionalInfoFlag
|
|
7772
7726
|
})), /*#__PURE__*/React.createElement(IUIDivider, {
|
|
7773
7727
|
className: styles.dividerColor
|
|
7774
7728
|
}), productAccess && productAccess.expense && /*#__PURE__*/React.createElement(TravelExpenseFields, {
|