@itilite/iui-user-management 0.4.217 → 0.4.219
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 -0
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6215,10 +6215,15 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6215
6215
|
dispatch(verifyUserInfo(verifyUserId)).then(function (res) {
|
|
6216
6216
|
setPersonalInfoInput(function (prevState) {
|
|
6217
6217
|
return _extends({}, prevState, {
|
|
6218
|
-
first_name: res.
|
|
6219
|
-
last_name: res.
|
|
6218
|
+
first_name: res.fname,
|
|
6219
|
+
last_name: res.lname,
|
|
6220
6220
|
email: res.email,
|
|
6221
6221
|
contact_number: res.phone,
|
|
6222
|
+
dob: function () {
|
|
6223
|
+
var dt = new Date(res.dob);
|
|
6224
|
+
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
6225
|
+
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
6226
|
+
}(),
|
|
6222
6227
|
gender: function () {
|
|
6223
6228
|
if (res.gender === 'male') return 'Male';else if (res.gender === 'female') return 'Female';else if (res.gender === 'others') return 'Others';else return '';
|
|
6224
6229
|
}()
|
|
@@ -6381,9 +6386,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6381
6386
|
if (!p.visibility) {
|
|
6382
6387
|
return null;
|
|
6383
6388
|
}
|
|
6384
|
-
if (p.name === 'profile_pic' && config.env.isExpenseProduct) {
|
|
6385
|
-
return null;
|
|
6386
|
-
}
|
|
6387
6389
|
return /*#__PURE__*/React.createElement(IUIGrid, {
|
|
6388
6390
|
item: true,
|
|
6389
6391
|
sm: 12,
|
|
@@ -8571,17 +8573,17 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8571
8573
|
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
8572
8574
|
};
|
|
8573
8575
|
var columns = [{
|
|
8574
|
-
id: '
|
|
8576
|
+
id: 'fname',
|
|
8575
8577
|
label: 'Name',
|
|
8576
8578
|
minWidth: 250,
|
|
8577
8579
|
sortable: true,
|
|
8578
8580
|
cell: function cell(row) {
|
|
8579
8581
|
var _row$profile_pic2;
|
|
8580
8582
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIProfileBox, {
|
|
8581
|
-
firstName: row.
|
|
8582
|
-
lastName: row.
|
|
8583
|
+
firstName: row.fname,
|
|
8584
|
+
lastName: row.lname,
|
|
8583
8585
|
isLetterAvatar: row.profile_pic && row.profile_pic.presigned_url ? false : true,
|
|
8584
|
-
primaryText: row.
|
|
8586
|
+
primaryText: row.fname + ' ' + row.lname,
|
|
8585
8587
|
secondaryText: row.email,
|
|
8586
8588
|
letterAvatarTextColor: "black",
|
|
8587
8589
|
letterAvatarBackgroundColor: "#d3d3d3",
|
|
@@ -8590,7 +8592,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8590
8592
|
}));
|
|
8591
8593
|
}
|
|
8592
8594
|
}, {
|
|
8593
|
-
id: '
|
|
8595
|
+
id: 'created',
|
|
8594
8596
|
label: 'Requested on',
|
|
8595
8597
|
minWidth: 100,
|
|
8596
8598
|
sortable: true,
|
|
@@ -8600,7 +8602,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8600
8602
|
width: 100
|
|
8601
8603
|
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
8602
8604
|
className: clsx(styles$5.rowText, styles$5.textTransform)
|
|
8603
|
-
}, formatDate(row.
|
|
8605
|
+
}, formatDate(row.created)));
|
|
8604
8606
|
}
|
|
8605
8607
|
}, {
|
|
8606
8608
|
id: 'actions',
|
|
@@ -8873,7 +8875,7 @@ var UserList = function UserList(_ref2) {
|
|
|
8873
8875
|
var _React$useState11 = React.useState('asc'),
|
|
8874
8876
|
signup_order = _React$useState11[0],
|
|
8875
8877
|
setSignUpOrder = _React$useState11[1];
|
|
8876
|
-
var _React$useState12 = React.useState('
|
|
8878
|
+
var _React$useState12 = React.useState('fname'),
|
|
8877
8879
|
signup_orderBy = _React$useState12[0],
|
|
8878
8880
|
setSignUpOrderBy = _React$useState12[1];
|
|
8879
8881
|
var _useState22 = useState(''),
|