@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.css
CHANGED
|
@@ -421,8 +421,8 @@
|
|
|
421
421
|
max-height: 40px;
|
|
422
422
|
max-width: 48px;
|
|
423
423
|
border-radius: 6px;
|
|
424
|
-
-o-object-fit:
|
|
425
|
-
object-fit:
|
|
424
|
+
-o-object-fit: contain;
|
|
425
|
+
object-fit: contain;
|
|
426
426
|
border: 1px solid #d1d5db;
|
|
427
427
|
}
|
|
428
428
|
|
|
@@ -528,9 +528,8 @@
|
|
|
528
528
|
width: 48px;
|
|
529
529
|
height: 40px;
|
|
530
530
|
border-radius: 4px;
|
|
531
|
-
-o-object-fit:
|
|
532
|
-
object-fit:
|
|
533
|
-
border: 1px solid #d1d5db;
|
|
531
|
+
-o-object-fit: contain;
|
|
532
|
+
object-fit: contain;
|
|
534
533
|
}
|
|
535
534
|
._2cSoW img {
|
|
536
535
|
width: 48px;
|
package/dist/index.js
CHANGED
|
@@ -5372,7 +5372,6 @@ var Membership = function Membership(_ref) {
|
|
|
5372
5372
|
var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
5373
5373
|
var _clsx;
|
|
5374
5374
|
var membershipInfoInput = _ref.membershipInfoInput,
|
|
5375
|
-
addMemInfoInput = _ref.addMemInfoInput,
|
|
5376
5375
|
travelPreferenceInfo = _ref.travelPreferenceInfo,
|
|
5377
5376
|
_ref$travelPreference = _ref.travelPreferenceOnChange,
|
|
5378
5377
|
travelPreferenceOnChange = _ref$travelPreference === void 0 ? function () {} : _ref$travelPreference,
|
|
@@ -5500,50 +5499,7 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
5500
5499
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
|
|
5501
5500
|
container: true,
|
|
5502
5501
|
className: styles.formFieldsWrapper
|
|
5503
|
-
},
|
|
5504
|
-
className: styles.emptyFieldContainer
|
|
5505
|
-
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
5506
|
-
className: styles.emptyFieldDescription
|
|
5507
|
-
}, "No membership details added yet"), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
5508
|
-
className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
|
|
5509
|
-
display: "flex"
|
|
5510
|
-
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
5511
|
-
buttonText: "Add airline",
|
|
5512
|
-
type: "text",
|
|
5513
|
-
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
5514
|
-
width: "10",
|
|
5515
|
-
height: "10",
|
|
5516
|
-
color: "#EC5D25"
|
|
5517
|
-
}),
|
|
5518
|
-
className: styles.paddingTop,
|
|
5519
|
-
onClick: function onClick(e) {
|
|
5520
|
-
return addMemInfoInput('flight');
|
|
5521
|
-
}
|
|
5522
|
-
}), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
5523
|
-
buttonText: "Add hotel",
|
|
5524
|
-
type: "text",
|
|
5525
|
-
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
5526
|
-
width: "10",
|
|
5527
|
-
height: "10",
|
|
5528
|
-
color: "#EC5D25"
|
|
5529
|
-
}),
|
|
5530
|
-
className: styles.paddingTop,
|
|
5531
|
-
onClick: function onClick(e) {
|
|
5532
|
-
return addMemInfoInput('hotel');
|
|
5533
|
-
}
|
|
5534
|
-
}), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
5535
|
-
buttonText: "Add car rental",
|
|
5536
|
-
type: "text",
|
|
5537
|
-
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
5538
|
-
width: "10",
|
|
5539
|
-
height: "10",
|
|
5540
|
-
color: "#EC5D25"
|
|
5541
|
-
}),
|
|
5542
|
-
className: styles.paddingTop,
|
|
5543
|
-
onClick: function onClick(e) {
|
|
5544
|
-
return addMemInfoInput('rental_car');
|
|
5545
|
-
}
|
|
5546
|
-
}))), /*#__PURE__*/React__default.createElement(Membership, {
|
|
5502
|
+
}, /*#__PURE__*/React__default.createElement(Membership, {
|
|
5547
5503
|
membershipInfoInput: membershipInfoInput,
|
|
5548
5504
|
setMembershipInfoInput: setMembershipInfoInput,
|
|
5549
5505
|
isProfile: isProfile
|
|
@@ -6023,7 +5979,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6023
5979
|
method: 'GET',
|
|
6024
5980
|
headers: {
|
|
6025
5981
|
'Content-Type': 'application/json',
|
|
6026
|
-
authorization: "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
5982
|
+
'authorization': "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
6027
5983
|
}
|
|
6028
5984
|
}).then(function (response) {
|
|
6029
5985
|
return response.json();
|
|
@@ -6035,7 +5991,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6035
5991
|
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
6036
5992
|
}
|
|
6037
5993
|
})["catch"](function (error) {
|
|
6038
|
-
console.log(
|
|
5994
|
+
console.log("errorrr", error);
|
|
6039
5995
|
});
|
|
6040
5996
|
};
|
|
6041
5997
|
var fetchLoggedUserCardsDetails = function fetchLoggedUserCardsDetails() {
|
|
@@ -6043,7 +5999,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6043
5999
|
method: 'GET',
|
|
6044
6000
|
headers: {
|
|
6045
6001
|
'Content-Type': 'application/json',
|
|
6046
|
-
authorization: "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
6002
|
+
'authorization': "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
6047
6003
|
}
|
|
6048
6004
|
}).then(function (response) {
|
|
6049
6005
|
return response.json();
|
|
@@ -6055,7 +6011,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6055
6011
|
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
6056
6012
|
}
|
|
6057
6013
|
})["catch"](function (error) {
|
|
6058
|
-
console.log(
|
|
6014
|
+
console.log("errorrr", error);
|
|
6059
6015
|
});
|
|
6060
6016
|
};
|
|
6061
6017
|
React.useEffect(function () {
|
|
@@ -7095,7 +7051,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7095
7051
|
employeeInfoInput.skip_manager_id = employeeInfoInput.skip_manager.value;
|
|
7096
7052
|
}
|
|
7097
7053
|
var cardsPayload = {
|
|
7098
|
-
roles: [cardsRole]
|
|
7054
|
+
"roles": [cardsRole]
|
|
7099
7055
|
};
|
|
7100
7056
|
var payload = {
|
|
7101
7057
|
personalInfoInput: personalInfoInput,
|
|
@@ -7281,7 +7237,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7281
7237
|
body: JSON.stringify(cardsPayload),
|
|
7282
7238
|
headers: {
|
|
7283
7239
|
'Content-Type': 'application/json',
|
|
7284
|
-
authorization: "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
7240
|
+
'authorization': "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
7285
7241
|
}
|
|
7286
7242
|
}).then(function (response) {
|
|
7287
7243
|
if (response.status === 200) {
|
|
@@ -7290,7 +7246,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7290
7246
|
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
7291
7247
|
}
|
|
7292
7248
|
})["catch"](function (error) {
|
|
7293
|
-
console.log(
|
|
7249
|
+
console.log("errorrr", error);
|
|
7294
7250
|
})["finally"](function () {
|
|
7295
7251
|
dispatch(stopLoader());
|
|
7296
7252
|
});
|
|
@@ -7308,14 +7264,14 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7308
7264
|
body: JSON.stringify(cardsPayload),
|
|
7309
7265
|
headers: {
|
|
7310
7266
|
'Content-Type': 'application/json',
|
|
7311
|
-
authorization: "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
7267
|
+
'authorization': "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
7312
7268
|
}
|
|
7313
7269
|
}).then(function (response) {
|
|
7314
7270
|
if (response.status !== 200) {
|
|
7315
7271
|
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
7316
7272
|
}
|
|
7317
7273
|
})["catch"](function (error) {
|
|
7318
|
-
console.log(
|
|
7274
|
+
console.log("errorrr", error);
|
|
7319
7275
|
});
|
|
7320
7276
|
}
|
|
7321
7277
|
(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);
|
|
@@ -7769,9 +7725,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7769
7725
|
errorMsgs: errorMsgs,
|
|
7770
7726
|
dateFormat: dateFormat,
|
|
7771
7727
|
defaultExpand: isAdditionalInfoExpanded,
|
|
7772
|
-
setAdditionalInfoFlag: setAdditionalInfoFlag
|
|
7773
|
-
setMembershipInfoInput: setMembershipInfoInput,
|
|
7774
|
-
isProfile: isProfile
|
|
7728
|
+
setAdditionalInfoFlag: setAdditionalInfoFlag
|
|
7775
7729
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
|
|
7776
7730
|
className: styles.dividerColor
|
|
7777
7731
|
}), productAccess && productAccess.expense && /*#__PURE__*/React__default.createElement(TravelExpenseFields, {
|