@itilite/iui-user-management 1.4.85 → 1.4.87
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 +20 -0
- package/dist/index.js +65 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +66 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -188,6 +188,26 @@
|
|
|
188
188
|
._ajB82 {
|
|
189
189
|
width: 100% !important;
|
|
190
190
|
}
|
|
191
|
+
|
|
192
|
+
._1lEyQ ul li:hover {
|
|
193
|
+
background-color: rgba(254, 210, 193, 0.4509803922) !important;
|
|
194
|
+
border-radius: 8px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
._3ymE1.MuiButton-root {
|
|
198
|
+
background-color: #EC5D25;
|
|
199
|
+
color: #ffffff;
|
|
200
|
+
border: none;
|
|
201
|
+
border-radius: 8px !important;
|
|
202
|
+
padding: 8px 16px !important;
|
|
203
|
+
height: 40px;
|
|
204
|
+
}
|
|
205
|
+
._3ymE1.MuiButton-root:hover {
|
|
206
|
+
background-color: #ec5d25 !important;
|
|
207
|
+
}
|
|
208
|
+
._3ymE1 .MuiButton-endIcon svg {
|
|
209
|
+
fill: #ffffff !important;
|
|
210
|
+
}
|
|
191
211
|
._smjc4 {
|
|
192
212
|
border-radius: 15px;
|
|
193
213
|
background-color: #F4F4F4;
|
package/dist/index.js
CHANGED
|
@@ -185,7 +185,7 @@ function _finallyRethrows(body, finalizer) {
|
|
|
185
185
|
return finalizer(false, result);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
var styles = {"UUIUserManagementAddEdit":"_3n-WG","pageHeader":"_3qWcA","buttonWrapper":"_1IP9P","scrolled":"_m8f96","headingButtonWrapper":"_w9z7b","headingButtonWrapperProfile":"_12Wd9","hintText":"_ySdbZ","heading":"_2Y1Aw","headingLarge":"_2K1NF","headingMedium":"_RUuAz","headingSmall":"_23Dye","additionalInfoContainer":"_1Suhw","additionalInfoTitle":"_56iJF","titleContainer":"_H5nfl","expandIconAlign":"_3F4i0","detailsContainer":"_2G0LW","formWrapper":"_2fPRc","sectionWrapper":"_37Gqp","margin":"_2Sdl7","minGridWidth":"_2D7iu","firstRowMargin":"_1BozG","firstChildMargin":"_2C3Mb","paddingTop":"_DBPjV","backGrdColorOnHover":"_5oE6H","fieldMargin":"_RCWjq","productContainerGap":"_tuCbi","containerWidth":"_1oWos","productItemBroder":"_T0Hcd","headingPadding":"_2MFfQ","emptyFieldContainer":"_3VWtw","emptyFieldDescription":"_2jC5u","rowGap":"_1NJFY","formTitle":"_GAKk2","formDescription":"_3TZ6Z","themeLink":"_eJ_1B","dashedLine":"_3ZOs1","dividerColor":"_2pxEJ","errorTextCls":"_27eth","backdrop":"_Pm0Au","inputWidth":"_ajB82"};
|
|
188
|
+
var styles = {"UUIUserManagementAddEdit":"_3n-WG","pageHeader":"_3qWcA","buttonWrapper":"_1IP9P","scrolled":"_m8f96","headingButtonWrapper":"_w9z7b","headingButtonWrapperProfile":"_12Wd9","hintText":"_ySdbZ","heading":"_2Y1Aw","headingLarge":"_2K1NF","headingMedium":"_RUuAz","headingSmall":"_23Dye","additionalInfoContainer":"_1Suhw","additionalInfoTitle":"_56iJF","titleContainer":"_H5nfl","expandIconAlign":"_3F4i0","detailsContainer":"_2G0LW","formWrapper":"_2fPRc","sectionWrapper":"_37Gqp","margin":"_2Sdl7","minGridWidth":"_2D7iu","firstRowMargin":"_1BozG","firstChildMargin":"_2C3Mb","paddingTop":"_DBPjV","backGrdColorOnHover":"_5oE6H","fieldMargin":"_RCWjq","productContainerGap":"_tuCbi","containerWidth":"_1oWos","productItemBroder":"_T0Hcd","headingPadding":"_2MFfQ","emptyFieldContainer":"_3VWtw","emptyFieldDescription":"_2jC5u","rowGap":"_1NJFY","formTitle":"_GAKk2","formDescription":"_3TZ6Z","themeLink":"_eJ_1B","dashedLine":"_3ZOs1","dividerColor":"_2pxEJ","errorTextCls":"_27eth","backdrop":"_Pm0Au","inputWidth":"_ajB82","buttonRight":"_1lEyQ","containedDropdownBtn":"_3ymE1"};
|
|
189
189
|
|
|
190
190
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
191
191
|
|
|
@@ -889,6 +889,9 @@ var formatCreateUserPayload = function formatCreateUserPayload(payload) {
|
|
|
889
889
|
approvers: {},
|
|
890
890
|
requested_user_is_admin: payload.isCardsAdmin
|
|
891
891
|
};
|
|
892
|
+
if (payload.send_welcome_email !== undefined) {
|
|
893
|
+
res.send_welcome_email = payload.send_welcome_email;
|
|
894
|
+
}
|
|
892
895
|
var userTags = [];
|
|
893
896
|
for (var key in payload.userTagType) {
|
|
894
897
|
if (Object.hasOwnProperty.call(payload.userTagType, key) && payload.userTagType[key]) {
|
|
@@ -5070,6 +5073,7 @@ function withStore(Component) {
|
|
|
5070
5073
|
}
|
|
5071
5074
|
|
|
5072
5075
|
var ExpandMoreIcon = function ExpandMoreIcon(props) {
|
|
5076
|
+
var fillColor = props.fillColor || '#6B7280';
|
|
5073
5077
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
5074
5078
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5075
5079
|
width: props.width,
|
|
@@ -5077,7 +5081,7 @@ var ExpandMoreIcon = function ExpandMoreIcon(props) {
|
|
|
5077
5081
|
fill: "none",
|
|
5078
5082
|
viewBox: "0 0 12 7"
|
|
5079
5083
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
5080
|
-
fill:
|
|
5084
|
+
fill: fillColor,
|
|
5081
5085
|
d: "M.293.294a1 1 0 011.414 0L6 4.587 10.293.294a1 1 0 111.414 1.414l-5 5a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414z"
|
|
5082
5086
|
}));
|
|
5083
5087
|
};
|
|
@@ -7726,7 +7730,10 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7726
7730
|
return Promise.reject(e);
|
|
7727
7731
|
}
|
|
7728
7732
|
};
|
|
7729
|
-
var formSubmitHandler = function formSubmitHandler() {
|
|
7733
|
+
var formSubmitHandler = function formSubmitHandler(send_welcome_email) {
|
|
7734
|
+
if (send_welcome_email === void 0) {
|
|
7735
|
+
send_welcome_email = false;
|
|
7736
|
+
}
|
|
7730
7737
|
try {
|
|
7731
7738
|
var checkAnyError = doesFormHasError();
|
|
7732
7739
|
if (checkAnyError) {
|
|
@@ -7764,6 +7771,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7764
7771
|
cardsRole: cardsRole,
|
|
7765
7772
|
isCardsAdmin: isCardsAdmin
|
|
7766
7773
|
};
|
|
7774
|
+
if (!isEditMode && !isProfile) {
|
|
7775
|
+
payload.send_welcome_email = send_welcome_email;
|
|
7776
|
+
}
|
|
7767
7777
|
if (verifyUserId) {
|
|
7768
7778
|
payload.verifyUserId = verifyUserId;
|
|
7769
7779
|
}
|
|
@@ -8152,12 +8162,34 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
8152
8162
|
onClick: handleCancelNavigation
|
|
8153
8163
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8154
8164
|
component: "div",
|
|
8155
|
-
className:
|
|
8156
|
-
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
8165
|
+
className: clsx('pageHeader--button-single', styles.buttonRight)
|
|
8166
|
+
}, isEditMode || isProfile ? /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
8157
8167
|
buttonText: "Save",
|
|
8158
8168
|
type: "contained",
|
|
8159
8169
|
onClick: formSubmitHandler,
|
|
8160
8170
|
disabled: isPageLoading || productAccess.travel === false && productAccess.expense === false || !!doesFormHasError()
|
|
8171
|
+
}) : /*#__PURE__*/React__default.createElement(iuistyles.IUIDropdownButton, {
|
|
8172
|
+
buttonText: "Create user",
|
|
8173
|
+
outlinedBtn: false,
|
|
8174
|
+
className: styles.containedDropdownBtn,
|
|
8175
|
+
placement: "bottom-end",
|
|
8176
|
+
endIcon: /*#__PURE__*/React__default.createElement(ExpandMoreIcon, {
|
|
8177
|
+
fillColor: "white",
|
|
8178
|
+
width: "10",
|
|
8179
|
+
height: "10",
|
|
8180
|
+
fill: true
|
|
8181
|
+
}),
|
|
8182
|
+
menuListInfo: [{
|
|
8183
|
+
label: 'Send email invite',
|
|
8184
|
+
handler: function handler() {
|
|
8185
|
+
return formSubmitHandler(true);
|
|
8186
|
+
}
|
|
8187
|
+
}, {
|
|
8188
|
+
label: 'Do not send email',
|
|
8189
|
+
handler: function handler() {
|
|
8190
|
+
return formSubmitHandler(false);
|
|
8191
|
+
}
|
|
8192
|
+
}]
|
|
8161
8193
|
}))))), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8162
8194
|
component: "div",
|
|
8163
8195
|
marginTop: "8rem",
|
|
@@ -8669,10 +8701,15 @@ var downloadUploadedRecords = function downloadUploadedRecords(type, jobId) {
|
|
|
8669
8701
|
});
|
|
8670
8702
|
};
|
|
8671
8703
|
};
|
|
8672
|
-
var importUploadedRecords = function importUploadedRecords(jobId, canUpdateExistingUsers) {
|
|
8704
|
+
var importUploadedRecords = function importUploadedRecords(jobId, canUpdateExistingUsers, sendInvite) {
|
|
8705
|
+
if (sendInvite === void 0) {
|
|
8706
|
+
sendInvite = false;
|
|
8707
|
+
}
|
|
8673
8708
|
return function (dispatch) {
|
|
8674
8709
|
return new Promise(function (resolve, reject) {
|
|
8675
|
-
api$8.post(userBulkImport.importRecords() + "?job_id=" + jobId + "&update=" + canUpdateExistingUsers
|
|
8710
|
+
api$8.post(userBulkImport.importRecords() + "?job_id=" + jobId + "&update=" + canUpdateExistingUsers, {
|
|
8711
|
+
send_welcome_email: sendInvite
|
|
8712
|
+
}).then(function (res) {
|
|
8676
8713
|
resolve(res);
|
|
8677
8714
|
})["catch"](function (err) {
|
|
8678
8715
|
reject(err);
|
|
@@ -8934,8 +8971,11 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
8934
8971
|
canUpdateExistingUsers = _useState5[0],
|
|
8935
8972
|
setCanUpdateExistingUsers = _useState5[1];
|
|
8936
8973
|
var _useState6 = React.useState(false),
|
|
8937
|
-
|
|
8938
|
-
|
|
8974
|
+
sendInvite = _useState6[0],
|
|
8975
|
+
setSendInvite = _useState6[1];
|
|
8976
|
+
var _useState7 = React.useState(false),
|
|
8977
|
+
isFileDownloading = _useState7[0],
|
|
8978
|
+
setDownlStatus = _useState7[1];
|
|
8939
8979
|
var _useSelector = reactRedux.useSelector(function (state) {
|
|
8940
8980
|
return state.common;
|
|
8941
8981
|
}),
|
|
@@ -9043,7 +9083,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
9043
9083
|
}
|
|
9044
9084
|
}
|
|
9045
9085
|
setImportStatus(1);
|
|
9046
|
-
return Promise.resolve(dispatch(importUploadedRecords(jobId, canUpdateExistingUsers ? 1 : 0))).then(function (res) {
|
|
9086
|
+
return Promise.resolve(dispatch(importUploadedRecords(jobId, canUpdateExistingUsers ? 1 : 0, sendInvite))).then(function (res) {
|
|
9047
9087
|
var _temp = function () {
|
|
9048
9088
|
if (res.data.status) {
|
|
9049
9089
|
return Promise.resolve(dispatch(_executionJob(jobId, 'is_job_completed')).then(function (resp) {
|
|
@@ -9074,6 +9114,9 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
9074
9114
|
var handleExistingUserUpdation = function handleExistingUserUpdation(event) {
|
|
9075
9115
|
setCanUpdateExistingUsers(!canUpdateExistingUsers);
|
|
9076
9116
|
};
|
|
9117
|
+
var handleSendInvite = function handleSendInvite() {
|
|
9118
|
+
setSendInvite(!sendInvite);
|
|
9119
|
+
};
|
|
9077
9120
|
var CustomStepIcon = function CustomStepIcon(step) {
|
|
9078
9121
|
if ((importStatus === 1 || importStatus === 2 || importStatus === 4) && step === Number(activeStep)) {
|
|
9079
9122
|
return /*#__PURE__*/React__default.createElement(iuistyles.IUIPrimaryRadio, {
|
|
@@ -9383,6 +9426,18 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
9383
9426
|
label: "Update any existing users",
|
|
9384
9427
|
className: clsx(styles$5.checkboxlabel, (_clsx5 = {}, _clsx5[styles$5.disabledText] = +userBulkImportInfo.exist_users === 0, _clsx5)),
|
|
9385
9428
|
disabled: +userBulkImportInfo.exist_users === 0
|
|
9429
|
+
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
9430
|
+
display: "flex",
|
|
9431
|
+
style: {
|
|
9432
|
+
paddingLeft: '28px'
|
|
9433
|
+
}
|
|
9434
|
+
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIFormControlLabel, {
|
|
9435
|
+
control: /*#__PURE__*/React__default.createElement(iuistyles.IUICheckBox, {
|
|
9436
|
+
handleCheckBoxHandler: handleSendInvite,
|
|
9437
|
+
checked: sendInvite
|
|
9438
|
+
}),
|
|
9439
|
+
label: "Send invitation emails to new users who have not logged into the platform.",
|
|
9440
|
+
className: clsx(styles$5.checkboxlabel)
|
|
9386
9441
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
9387
9442
|
display: "flex",
|
|
9388
9443
|
style: {
|