@itilite/iui-user-management 1.4.764 → 1.4.765
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 +12 -0
- package/dist/index.js +18 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -357,6 +357,18 @@
|
|
|
357
357
|
margin-bottom: 60px;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
+
._1yV0j {
|
|
361
|
+
display: flex;
|
|
362
|
+
padding: 8px;
|
|
363
|
+
flex-direction: column;
|
|
364
|
+
align-items: flex-start;
|
|
365
|
+
gap: 4px;
|
|
366
|
+
color: #CF2231;
|
|
367
|
+
border-radius: 4px;
|
|
368
|
+
background: #FFF1F0;
|
|
369
|
+
margin-bottom: 32px;
|
|
370
|
+
}
|
|
371
|
+
|
|
360
372
|
._1oHGu {
|
|
361
373
|
display: flex;
|
|
362
374
|
flex-wrap: wrap;
|
package/dist/index.js
CHANGED
|
@@ -829,7 +829,7 @@ var UserRole = function UserRole(_ref) {
|
|
|
829
829
|
|
|
830
830
|
var styles$1 = {"defaultLabel":"_smjc4","card":"_3_S9J","cardNumber":"_36E9M","cardDigit":"_2pm-T","expiryDate":"_2tBnF","cardImage":"_3QvZh","visa":"_1IpBm","mastercard":"_2x6IX","amex":"_2a38S","discover":"_2vksl","diners":"_2kQRs","jcb":"_2bO1f","unionpay":"_2_jfu","is_nothing":"_1Lrzs","addCard":"_3711U","cardDeleteBtn":"_7Da2t","cardLabel":"_PQTex","defaultBtn":"_1_ArA","cursonPointer":"_1L115","sectionWrapper":"_VpUCK","margin":"_1Fs_D","minGridWidth":"_1hl-Z","firstRowMargin":"_1WZZj","firstChildMargin":"_IT_O_","paddingTop":"_Mhnl7","dividerColor":"_3ltFd"};
|
|
831
831
|
|
|
832
|
-
var classes = {"sectionHeader":"_2d_OH","myCardsSection":"_3MNHj","companyCardsSection":"_34lN6","cardsGrid":"_1oHGu","card":"_3ZTQc","moreIcon":"_3utA0","personal":"_duePd","corporate":"_3O33a","company":"_180_L","cardHeader":"_1eF61","cardTitleSection":"_2c40W","cardMaskedNumber":"_2Vlhq","cardName":"_bp-Mt","cardType":"_3l4HZ","menuButton":"_3TTEn","lockIcon":"_1S27X","cardDetails":"_IP2rg","cardNumber":"_7FOPe","cardExpiry":"_CI_p2","cardCvv":"_3Gzqu","cardUnhide":"_ivgBf","cardFooter":"_1WgPL","brandLogo":"_EV0l8","addCardButton":"_1oaCc","plusIcon":"_w9L5L"};
|
|
832
|
+
var classes = {"sectionHeader":"_2d_OH","myCardsSection":"_3MNHj","companyCardsSection":"_34lN6","disabledNotice":"_1yV0j","cardsGrid":"_1oHGu","card":"_3ZTQc","moreIcon":"_3utA0","personal":"_duePd","corporate":"_3O33a","company":"_180_L","cardHeader":"_1eF61","cardTitleSection":"_2c40W","cardMaskedNumber":"_2Vlhq","cardName":"_bp-Mt","cardType":"_3l4HZ","menuButton":"_3TTEn","lockIcon":"_1S27X","cardDetails":"_IP2rg","cardNumber":"_7FOPe","cardExpiry":"_CI_p2","cardCvv":"_3Gzqu","cardUnhide":"_ivgBf","cardFooter":"_1WgPL","brandLogo":"_EV0l8","addCardButton":"_1oaCc","plusIcon":"_w9L5L"};
|
|
833
833
|
|
|
834
834
|
var SHOW_LOADER = 'SHOW_LOADER';
|
|
835
835
|
var STOP_LOADER = 'STOP_LOADER';
|
|
@@ -2240,7 +2240,9 @@ var env$3 = utils.configs.env;
|
|
|
2240
2240
|
var CardsManagement = function CardsManagement(_ref) {
|
|
2241
2241
|
var _pg$gateway;
|
|
2242
2242
|
var _ref$paymentDetails = _ref.paymentDetails,
|
|
2243
|
-
paymentDetails = _ref$paymentDetails === void 0 ? {} : _ref$paymentDetails
|
|
2243
|
+
paymentDetails = _ref$paymentDetails === void 0 ? {} : _ref$paymentDetails,
|
|
2244
|
+
_ref$paymentMethod = _ref.paymentMethod,
|
|
2245
|
+
paymentMethod = _ref$paymentMethod === void 0 ? null : _ref$paymentMethod;
|
|
2244
2246
|
var dispatch = reactRedux.useDispatch();
|
|
2245
2247
|
var pg = paymentDetails.pg,
|
|
2246
2248
|
_paymentDetails$cards = paymentDetails.cards,
|
|
@@ -2408,13 +2410,15 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2408
2410
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
|
|
2409
2411
|
container: true,
|
|
2410
2412
|
className: styles$1.formFieldsWrapper
|
|
2411
|
-
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
2413
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, paymentMethod === 2 && /*#__PURE__*/React__default.createElement("div", {
|
|
2414
|
+
style: classes.disabledNotice
|
|
2415
|
+
}, "Company has disabled usage of your personal cards, please reach out to your admin"), /*#__PURE__*/React__default.createElement("div", {
|
|
2412
2416
|
className: classes.cardsGrid
|
|
2413
2417
|
}, personalCards.map(function (card) {
|
|
2414
2418
|
return renderCard(card);
|
|
2415
2419
|
}), corporateCards.map(function (card) {
|
|
2416
2420
|
return renderCard(card);
|
|
2417
|
-
})), (!cards || (cards === null || cards === void 0 ? void 0 : cards.length) < 10) && (pg === null || pg === void 0 ? void 0 : (_pg$gateway = pg.gateway) === null || _pg$gateway === void 0 ? void 0 : _pg$gateway.toLowerCase()) === 'stripe' && (pg === null || pg === void 0 ? void 0 : pg.save_card_enable) === 1 && /*#__PURE__*/React__default.createElement("button", {
|
|
2421
|
+
})), (!cards || (cards === null || cards === void 0 ? void 0 : cards.length) < 10) && (pg === null || pg === void 0 ? void 0 : (_pg$gateway = pg.gateway) === null || _pg$gateway === void 0 ? void 0 : _pg$gateway.toLowerCase()) === 'stripe' && (pg === null || pg === void 0 ? void 0 : pg.save_card_enable) === 1 && paymentMethod !== 2 && /*#__PURE__*/React__default.createElement("button", {
|
|
2418
2422
|
className: classes.addCardButton,
|
|
2419
2423
|
onClick: function onClick() {
|
|
2420
2424
|
return window.location.assign(_url);
|
|
@@ -2552,7 +2556,9 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
|
|
|
2552
2556
|
_props$editUserId = props.editUserId,
|
|
2553
2557
|
editUserId = _props$editUserId === void 0 ? null : _props$editUserId,
|
|
2554
2558
|
_props$roles = props.roles,
|
|
2555
|
-
roles = _props$roles === void 0 ? [] : _props$roles
|
|
2559
|
+
roles = _props$roles === void 0 ? [] : _props$roles,
|
|
2560
|
+
_props$paymentMethod = props.paymentMethod,
|
|
2561
|
+
paymentMethod = _props$paymentMethod === void 0 ? null : _props$paymentMethod;
|
|
2556
2562
|
var _useState = React.useState({
|
|
2557
2563
|
product: '',
|
|
2558
2564
|
approvers: []
|
|
@@ -2849,7 +2855,8 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
|
|
|
2849
2855
|
placeholder: "Example label - \u201CManager\u201D"
|
|
2850
2856
|
}));
|
|
2851
2857
|
})))), type === 'travel' && paymentDetails && /*#__PURE__*/React__default.createElement(PaymentCards, {
|
|
2852
|
-
paymentDetails: paymentDetails
|
|
2858
|
+
paymentDetails: paymentDetails,
|
|
2859
|
+
paymentMethod: paymentMethod
|
|
2853
2860
|
}));
|
|
2854
2861
|
};
|
|
2855
2862
|
|
|
@@ -5970,7 +5977,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5970
5977
|
editUserId = props.editUserId,
|
|
5971
5978
|
config = props.config,
|
|
5972
5979
|
_props$isProfile = props.isProfile,
|
|
5973
|
-
isProfile = _props$isProfile === void 0 ? false : _props$isProfile
|
|
5980
|
+
isProfile = _props$isProfile === void 0 ? false : _props$isProfile,
|
|
5981
|
+
_props$paymentMethod = props.paymentMethod,
|
|
5982
|
+
paymentMethod = _props$paymentMethod === void 0 ? null : _props$paymentMethod;
|
|
5974
5983
|
env$4.init(config, isProfile);
|
|
5975
5984
|
var queryParams = new URLSearchParams(window.location.search);
|
|
5976
5985
|
var verifyUserId = Number(queryParams.get(config.routes.users.add.queryParamKeys.verifyUserId));
|
|
@@ -7881,7 +7890,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7881
7890
|
maxApprovers: maxTravelApprovers,
|
|
7882
7891
|
isProfile: isProfile,
|
|
7883
7892
|
editUserId: editUserId,
|
|
7884
|
-
roles: renderFields.travelRoles
|
|
7893
|
+
roles: renderFields.travelRoles,
|
|
7894
|
+
paymentMethod: paymentMethod
|
|
7885
7895
|
}), /*#__PURE__*/React__default.createElement(AdditionalInfo, {
|
|
7886
7896
|
membershipInfoInput: membershipInfoInput,
|
|
7887
7897
|
onMemInfoInputChange: onMemInfoInputChange,
|