@itilite/iui-user-management 0.0.11 → 0.0.12
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 +3 -0
- package/dist/index.js +24 -31
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +25 -32
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUIAsyncSelect, IUIBox, IUILabel, IUIFileUpload, IUICheckboxButton, IUIPhone, IUISelect, IUIDatePicker, IUIInput, IUIDivider, IUIGrid, IUITypography, IUIRadio, IUIButton, IUIModal, IUIAccordion, IUIAccordionSummary, IUIAccordionDetails, IUIIconButton, IUICard, IUIBackdrop, IUICircularProgress, IUIBreadCrumb, IUIDropzone, IUIStepper, IUIFormControlLabel, IUICheckBox, IUIPrimaryRadio, IUITable, IUISkeleton, IUIFormGroup, IUIDropdownButton } from '@itilite/iuistyles';
|
|
1
|
+
import { IUIAsyncSelect, IUIBox, IUILabel, IUIFileUpload, IUICheckboxButton, IUIPhone, IUISelect, IUIDatePicker, IUIInput, IUIDivider, IUIGrid, IUITypography, IUIRadio, IUIButton, IUIModal, IUIAccordion, IUIAccordionSummary, IUIAccordionDetails, IUIIconButton, IUICard, IUIBackdrop, IUICircularProgress, IUIBreadCrumb, IUIDropzone, IUIStepper, IUIFormControlLabel, IUICheckBox, IUIPrimaryRadio, IUITable, IUISkeleton, IUIProfileBox, IUIFormGroup, IUIDropdownButton } from '@itilite/iuistyles';
|
|
2
2
|
import React, { useState, useEffect, Fragment as Fragment$1 } from 'react';
|
|
3
3
|
import { configs, services, utilUrls } from '@itilite/utils';
|
|
4
4
|
import moment from 'moment';
|
|
@@ -6416,7 +6416,7 @@ var fetchBulkactionHistory = function fetchBulkactionHistory(url) {
|
|
|
6416
6416
|
};
|
|
6417
6417
|
};
|
|
6418
6418
|
|
|
6419
|
-
var styles$5 = {"UUIUserManagementList":"_3WNHx","pageHeader":"_1WLpc","buttonWrapper":"_2egTG","headingWrapper":"_1He01","heading":"_1uPaO","headingLarge":"_2FsLd","headingMedium":"_nGXA9","headingSmall":"_2rpwF","description":"_25vb9","headerText":"_1Ny9J","letterImage":"_2hr3R","tablewrapper":"_1-RPw","rowText":"_1LXyO","textTransform":"_3kFQS","lightColor":"_3Ghgw","importModalBodyContainer":"_25xUk","dividerColor":"_2HZv9","w100":"_3vGmU","downloadTemplateContainer":"_3-Xu_","downloadTemplateDescContainer":"_tLw43","labelContainer":"_7TYUZ","downlTempHeader":"__CZpe","downlTempDescription":"_19jEe","colGap":"_3vnY5","deActivateModalContainer":"_28H9H","backdrop":"_1ky1x","errorText":"_26_if"};
|
|
6419
|
+
var styles$5 = {"UUIUserManagementList":"_3WNHx","pageHeader":"_1WLpc","buttonWrapper":"_2egTG","headingWrapper":"_1He01","heading":"_1uPaO","headingLarge":"_2FsLd","headingMedium":"_nGXA9","headingSmall":"_2rpwF","description":"_25vb9","headerText":"_1Ny9J","letterImage":"_2hr3R","tablewrapper":"_1-RPw","rowText":"_1LXyO","textTransform":"_3kFQS","lightColor":"_3Ghgw","avatarClassName":"_2qO_X","importModalBodyContainer":"_25xUk","dividerColor":"_2HZv9","w100":"_3vGmU","downloadTemplateContainer":"_3-Xu_","downloadTemplateDescContainer":"_tLw43","labelContainer":"_7TYUZ","downlTempHeader":"__CZpe","downlTempDescription":"_19jEe","colGap":"_3vnY5","deActivateModalContainer":"_28H9H","backdrop":"_1ky1x","errorText":"_26_if"};
|
|
6420
6420
|
|
|
6421
6421
|
var BulkUploadModal = function BulkUploadModal(props) {
|
|
6422
6422
|
var isOpenImportUsersModal = props.isOpenImportUsersModal,
|
|
@@ -7270,7 +7270,9 @@ var BulkActionHistoryTable = function BulkActionHistoryTable(props) {
|
|
|
7270
7270
|
_props$handleDownload = props.handleDownloadRecords,
|
|
7271
7271
|
handleDownloadRecords = _props$handleDownload === void 0 ? function () {} : _props$handleDownload,
|
|
7272
7272
|
_props$handleNavigate = props.handleNavigateToImportUserPage,
|
|
7273
|
-
handleNavigateToImportUserPage = _props$handleNavigate === void 0 ? function () {} : _props$handleNavigate
|
|
7273
|
+
handleNavigateToImportUserPage = _props$handleNavigate === void 0 ? function () {} : _props$handleNavigate,
|
|
7274
|
+
_props$isRowClickable = props.isRowClickable,
|
|
7275
|
+
isRowClickable = _props$isRowClickable === void 0 ? function () {} : _props$isRowClickable;
|
|
7274
7276
|
|
|
7275
7277
|
var getStatusIcon = function getStatusIcon(status) {
|
|
7276
7278
|
switch (status) {
|
|
@@ -7469,7 +7471,7 @@ var BulkActionHistoryTable = function BulkActionHistoryTable(props) {
|
|
|
7469
7471
|
onRequestSort: onRequestSort,
|
|
7470
7472
|
onSearchHandler: onSearchHandler,
|
|
7471
7473
|
handleRowClick: handleNavigateToImportUserPage,
|
|
7472
|
-
isRowClickable:
|
|
7474
|
+
isRowClickable: isRowClickable
|
|
7473
7475
|
});
|
|
7474
7476
|
};
|
|
7475
7477
|
|
|
@@ -7599,8 +7601,13 @@ var BulkActionHistory = function BulkActionHistory(_ref) {
|
|
|
7599
7601
|
setSearchingChangeTemp(!isSearchingChangeTemp);
|
|
7600
7602
|
};
|
|
7601
7603
|
|
|
7602
|
-
var handleNavigateToImportUserPage = function handleNavigateToImportUserPage(event,
|
|
7603
|
-
|
|
7604
|
+
var handleNavigateToImportUserPage = function handleNavigateToImportUserPage(event, data) {
|
|
7605
|
+
if (data.history_info.type === 'deactivate') return false;
|
|
7606
|
+
history.push(config.routes.bulkUpload["import"].path.replace(":" + config.routes.bulkUpload["import"].paramKeys.jobId, data.id));
|
|
7607
|
+
};
|
|
7608
|
+
|
|
7609
|
+
var isRowClickable = function isRowClickable(data) {
|
|
7610
|
+
return data.history_info.type !== 'deactivate';
|
|
7604
7611
|
};
|
|
7605
7612
|
|
|
7606
7613
|
var handleDownloadRecords = function handleDownloadRecords(e, type, jobId) {
|
|
@@ -7730,7 +7737,8 @@ var BulkActionHistory = function BulkActionHistory(_ref) {
|
|
|
7730
7737
|
onRequestSort: onRequestSort,
|
|
7731
7738
|
onSearchHandler: onSearchHandler,
|
|
7732
7739
|
handleDownloadRecords: handleDownloadRecords,
|
|
7733
|
-
handleNavigateToImportUserPage: handleNavigateToImportUserPage
|
|
7740
|
+
handleNavigateToImportUserPage: handleNavigateToImportUserPage,
|
|
7741
|
+
isRowClickable: isRowClickable
|
|
7734
7742
|
}))));
|
|
7735
7743
|
};
|
|
7736
7744
|
|
|
@@ -7815,37 +7823,22 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
7815
7823
|
_props$disableRowChec = props.disableRowCheckbox,
|
|
7816
7824
|
disableRowCheckbox = _props$disableRowChec === void 0 ? false : _props$disableRowChec,
|
|
7817
7825
|
searchValue = props.searchValue;
|
|
7818
|
-
|
|
7819
|
-
var getFirstLetterofName = function getFirstLetterofName(firstName, lastName) {
|
|
7820
|
-
return firstName.charAt(0).toUpperCase() + lastName.charAt(0).toUpperCase();
|
|
7821
|
-
};
|
|
7822
|
-
|
|
7823
7826
|
var columns = [{
|
|
7824
7827
|
id: 'first_name',
|
|
7825
7828
|
label: 'Name',
|
|
7826
7829
|
minWidth: 250,
|
|
7827
7830
|
sortable: true,
|
|
7828
7831
|
cell: function cell(row) {
|
|
7829
|
-
return /*#__PURE__*/React.createElement(
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
})), /*#__PURE__*/React.createElement(IUIBox, {
|
|
7840
|
-
component: "div",
|
|
7841
|
-
display: "flex",
|
|
7842
|
-
flexDirection: "column",
|
|
7843
|
-
width: 200
|
|
7844
|
-
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
7845
|
-
className: clsx(styles$5.rowText, styles$5.textTransform)
|
|
7846
|
-
}, row.first_name + ' ' + row.last_name), /*#__PURE__*/React.createElement(IUITypography, {
|
|
7847
|
-
className: clsx(styles$5.rowText, styles$5.lightColor)
|
|
7848
|
-
}, row.email)));
|
|
7832
|
+
return /*#__PURE__*/React.createElement(IUIProfileBox, {
|
|
7833
|
+
firstName: row.first_name,
|
|
7834
|
+
lastName: row.last_name,
|
|
7835
|
+
isLetterAvatar: true,
|
|
7836
|
+
primaryText: row.first_name + ' ' + row.last_name,
|
|
7837
|
+
secondaryText: row.email,
|
|
7838
|
+
letterAvatarTextColor: "black",
|
|
7839
|
+
letterAvatarBackgroundColor: "#d3d3d3",
|
|
7840
|
+
avatarClassName: styles$5.avatarClassName
|
|
7841
|
+
});
|
|
7849
7842
|
}
|
|
7850
7843
|
}, {
|
|
7851
7844
|
id: 'emp_info__department__name',
|