@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 CHANGED
@@ -756,6 +756,9 @@
756
756
  ._3WNHx ._1-RPw ._3Ghgw {
757
757
  color: #6b7280;
758
758
  }
759
+ ._3WNHx ._1-RPw ._2qO_X {
760
+ font-weight: normal;
761
+ }
759
762
 
760
763
  ._25xUk {
761
764
  gap: 25px;
package/dist/index.js CHANGED
@@ -6419,7 +6419,7 @@ var fetchBulkactionHistory = function fetchBulkactionHistory(url) {
6419
6419
  };
6420
6420
  };
6421
6421
 
6422
- 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"};
6422
+ 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"};
6423
6423
 
6424
6424
  var BulkUploadModal = function BulkUploadModal(props) {
6425
6425
  var isOpenImportUsersModal = props.isOpenImportUsersModal,
@@ -7273,7 +7273,9 @@ var BulkActionHistoryTable = function BulkActionHistoryTable(props) {
7273
7273
  _props$handleDownload = props.handleDownloadRecords,
7274
7274
  handleDownloadRecords = _props$handleDownload === void 0 ? function () {} : _props$handleDownload,
7275
7275
  _props$handleNavigate = props.handleNavigateToImportUserPage,
7276
- handleNavigateToImportUserPage = _props$handleNavigate === void 0 ? function () {} : _props$handleNavigate;
7276
+ handleNavigateToImportUserPage = _props$handleNavigate === void 0 ? function () {} : _props$handleNavigate,
7277
+ _props$isRowClickable = props.isRowClickable,
7278
+ isRowClickable = _props$isRowClickable === void 0 ? function () {} : _props$isRowClickable;
7277
7279
 
7278
7280
  var getStatusIcon = function getStatusIcon(status) {
7279
7281
  switch (status) {
@@ -7472,7 +7474,7 @@ var BulkActionHistoryTable = function BulkActionHistoryTable(props) {
7472
7474
  onRequestSort: onRequestSort,
7473
7475
  onSearchHandler: onSearchHandler,
7474
7476
  handleRowClick: handleNavigateToImportUserPage,
7475
- isRowClickable: true
7477
+ isRowClickable: isRowClickable
7476
7478
  });
7477
7479
  };
7478
7480
 
@@ -7602,8 +7604,13 @@ var BulkActionHistory = function BulkActionHistory(_ref) {
7602
7604
  setSearchingChangeTemp(!isSearchingChangeTemp);
7603
7605
  };
7604
7606
 
7605
- var handleNavigateToImportUserPage = function handleNavigateToImportUserPage(event, jobId) {
7606
- history.push(config.routes.bulkUpload["import"].path.replace(":" + config.routes.bulkUpload["import"].paramKeys.jobId, jobId));
7607
+ var handleNavigateToImportUserPage = function handleNavigateToImportUserPage(event, data) {
7608
+ if (data.history_info.type === 'deactivate') return false;
7609
+ history.push(config.routes.bulkUpload["import"].path.replace(":" + config.routes.bulkUpload["import"].paramKeys.jobId, data.id));
7610
+ };
7611
+
7612
+ var isRowClickable = function isRowClickable(data) {
7613
+ return data.history_info.type !== 'deactivate';
7607
7614
  };
7608
7615
 
7609
7616
  var handleDownloadRecords = function handleDownloadRecords(e, type, jobId) {
@@ -7733,7 +7740,8 @@ var BulkActionHistory = function BulkActionHistory(_ref) {
7733
7740
  onRequestSort: onRequestSort,
7734
7741
  onSearchHandler: onSearchHandler,
7735
7742
  handleDownloadRecords: handleDownloadRecords,
7736
- handleNavigateToImportUserPage: handleNavigateToImportUserPage
7743
+ handleNavigateToImportUserPage: handleNavigateToImportUserPage,
7744
+ isRowClickable: isRowClickable
7737
7745
  }))));
7738
7746
  };
7739
7747
 
@@ -7818,37 +7826,22 @@ var StickyHeadTable = function StickyHeadTable(props) {
7818
7826
  _props$disableRowChec = props.disableRowCheckbox,
7819
7827
  disableRowCheckbox = _props$disableRowChec === void 0 ? false : _props$disableRowChec,
7820
7828
  searchValue = props.searchValue;
7821
-
7822
- var getFirstLetterofName = function getFirstLetterofName(firstName, lastName) {
7823
- return firstName.charAt(0).toUpperCase() + lastName.charAt(0).toUpperCase();
7824
- };
7825
-
7826
7829
  var columns = [{
7827
7830
  id: 'first_name',
7828
7831
  label: 'Name',
7829
7832
  minWidth: 250,
7830
7833
  sortable: true,
7831
7834
  cell: function cell(row) {
7832
- return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
7833
- component: "div",
7834
- display: "flex",
7835
- alignItems: "center"
7836
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
7837
- component: "div",
7838
- width: 50
7839
- }, /*#__PURE__*/React__default.createElement("p", {
7840
- "data-letters": getFirstLetterofName(row.first_name, row.last_name),
7841
- className: styles$5.letterImage
7842
- })), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
7843
- component: "div",
7844
- display: "flex",
7845
- flexDirection: "column",
7846
- width: 200
7847
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
7848
- className: clsx(styles$5.rowText, styles$5.textTransform)
7849
- }, row.first_name + ' ' + row.last_name), /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
7850
- className: clsx(styles$5.rowText, styles$5.lightColor)
7851
- }, row.email)));
7835
+ return /*#__PURE__*/React__default.createElement(iuistyles.IUIProfileBox, {
7836
+ firstName: row.first_name,
7837
+ lastName: row.last_name,
7838
+ isLetterAvatar: true,
7839
+ primaryText: row.first_name + ' ' + row.last_name,
7840
+ secondaryText: row.email,
7841
+ letterAvatarTextColor: "black",
7842
+ letterAvatarBackgroundColor: "#d3d3d3",
7843
+ avatarClassName: styles$5.avatarClassName
7844
+ });
7852
7845
  }
7853
7846
  }, {
7854
7847
  id: 'emp_info__department__name',