sag_components 2.0.0-beta341 → 2.0.0-beta342
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.esm.js +12 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -17
- package/dist/index.js.map +1 -1
- package/dist/types/components/Table/TableHeader.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -37842,10 +37842,6 @@ const HeaderCell = styled.th`
|
|
|
37842
37842
|
padding: 12px 8px 12px 0px;
|
|
37843
37843
|
`}
|
|
37844
37844
|
|
|
37845
|
-
/* Remove right padding on the last header cell when expand arrow is on the right */
|
|
37846
|
-
${props => props.$isBeforeExpand && `
|
|
37847
|
-
padding-right: 0px;
|
|
37848
|
-
`}
|
|
37849
37845
|
`;
|
|
37850
37846
|
const ColumnContent = styled.div`
|
|
37851
37847
|
display: flex;
|
|
@@ -41322,6 +41318,7 @@ const TableHeader = ({
|
|
|
41322
41318
|
activeSorts = [],
|
|
41323
41319
|
expandable = false,
|
|
41324
41320
|
expandPosition = "left",
|
|
41321
|
+
hideExpandColumn = false,
|
|
41325
41322
|
onHeaderCheckboxClick = () => {},
|
|
41326
41323
|
headerCheckboxStates = {},
|
|
41327
41324
|
resetFiltersKey = 0,
|
|
@@ -41862,7 +41859,7 @@ const TableHeader = ({
|
|
|
41862
41859
|
onReset: () => handleSortReset(key)
|
|
41863
41860
|
});
|
|
41864
41861
|
};
|
|
41865
|
-
return /*#__PURE__*/React$1.createElement(StyledTableHeader, null, /*#__PURE__*/React$1.createElement("tr", null, expandable && expandPosition !== "right" && /*#__PURE__*/React$1.createElement(HeaderCell, {
|
|
41862
|
+
return /*#__PURE__*/React$1.createElement(StyledTableHeader, null, /*#__PURE__*/React$1.createElement("tr", null, !hideExpandColumn && expandable && expandPosition !== "right" && /*#__PURE__*/React$1.createElement(HeaderCell, {
|
|
41866
41863
|
$fieldType: "expand",
|
|
41867
41864
|
$minWidth: "16px",
|
|
41868
41865
|
$maxWidth: "16px"
|
|
@@ -41870,8 +41867,7 @@ const TableHeader = ({
|
|
|
41870
41867
|
key: column.key || index,
|
|
41871
41868
|
$fieldType: column.fieldType?.toLowerCase(),
|
|
41872
41869
|
$minWidth: column.minWidth,
|
|
41873
|
-
$maxWidth: column.maxWidth
|
|
41874
|
-
$isBeforeExpand: expandPosition === "right" && index === columns.length - 1
|
|
41870
|
+
$maxWidth: column.maxWidth
|
|
41875
41871
|
}, /*#__PURE__*/React$1.createElement(ColumnContent, null, column.checkBox && /*#__PURE__*/React$1.createElement(ColumnCheckbox, {
|
|
41876
41872
|
type: "checkbox",
|
|
41877
41873
|
onChange: e => handleCheckboxChange(column.key, e.target.checked),
|
|
@@ -41914,7 +41910,7 @@ const TableHeader = ({
|
|
|
41914
41910
|
}, /*#__PURE__*/React$1.createElement(FilterIcon, {
|
|
41915
41911
|
state: getFilterIconState(column.key),
|
|
41916
41912
|
isActive: shouldShowActiveIcon(column.key)
|
|
41917
|
-
})))))), expandable && expandPosition === "right" && /*#__PURE__*/React$1.createElement(HeaderCell, {
|
|
41913
|
+
})))))), !hideExpandColumn && expandable && expandPosition === "right" && /*#__PURE__*/React$1.createElement(HeaderCell, {
|
|
41918
41914
|
$fieldType: "expand",
|
|
41919
41915
|
$minWidth: "16px",
|
|
41920
41916
|
$maxWidth: "16px"
|
|
@@ -42102,10 +42098,6 @@ const TableCell = styled.td`
|
|
|
42102
42098
|
padding: 12px 8px 12px 0px;
|
|
42103
42099
|
`}
|
|
42104
42100
|
|
|
42105
|
-
/* Remove right padding on the last data cell when expand arrow is on the right */
|
|
42106
|
-
${props => props.$isBeforeExpand && `
|
|
42107
|
-
padding-right: 0px;
|
|
42108
|
-
`}
|
|
42109
42101
|
|
|
42110
42102
|
/* Special handling for dropdown cells - ensure proper overflow */
|
|
42111
42103
|
${props => props.$fieldType === 'dropdown' && `
|
|
@@ -43631,6 +43623,7 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
43631
43623
|
expandedContent = {},
|
|
43632
43624
|
onExpandRow = () => {},
|
|
43633
43625
|
expandedBackgroundColor = "#E6F0F0",
|
|
43626
|
+
hideExpandColumn = false,
|
|
43634
43627
|
onDropdownSelected = () => {},
|
|
43635
43628
|
onCheckboxClick = () => {},
|
|
43636
43629
|
onHeaderCheckboxClick = () => {},
|
|
@@ -44462,7 +44455,7 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
44462
44455
|
onMouseEnter: () => !isEditMode && setHoveredRowIndex(rowIndex),
|
|
44463
44456
|
onMouseLeave: () => !isEditMode && setHoveredRowIndex(null),
|
|
44464
44457
|
onClick: () => handleRowClick(row, rowIndex)
|
|
44465
|
-
}, expandPosition !== "right" && (expandable && expandedContent[rowIndex] !== undefined && expandedContent[rowIndex] !== null ? /*#__PURE__*/React$1.createElement(TableCell, {
|
|
44458
|
+
}, !hideExpandColumn && expandPosition !== "right" && (expandable && expandedContent[rowIndex] !== undefined && expandedContent[rowIndex] !== null ? /*#__PURE__*/React$1.createElement(TableCell, {
|
|
44466
44459
|
$fieldType: "expand",
|
|
44467
44460
|
$minWidth: "16px",
|
|
44468
44461
|
$maxWidth: "16px"
|
|
@@ -44545,9 +44538,8 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
44545
44538
|
$editable: !!column.editable,
|
|
44546
44539
|
$color: column.color,
|
|
44547
44540
|
$minWidth: column.minWidth,
|
|
44548
|
-
$maxWidth: column.maxWidth
|
|
44549
|
-
|
|
44550
|
-
}, fieldTooltip && !isTextBasedField ? /*#__PURE__*/React$1.createElement(CellContentWrapper, {
|
|
44541
|
+
$maxWidth: column.maxWidth
|
|
44542
|
+
}, column.renderCell ? column.renderCell(value, row, rowIndex, expandedRows[rowIndex] || false) : fieldTooltip && !isTextBasedField ? /*#__PURE__*/React$1.createElement(CellContentWrapper, {
|
|
44551
44543
|
ref: el => applyTooltip(el, fieldTooltip)
|
|
44552
44544
|
}, renderCellContent(formattedValue, isTextBasedField, shouldShimmer)) : column.groupBreak ? /*#__PURE__*/React$1.createElement("strong", null, renderCellContent(formattedValue, isTextBasedField, shouldShimmer)) : column.editable && column.allowNotAvailable ? /*#__PURE__*/React$1.createElement(NotAvailableCellWrapper, null, notAvailableFields[row.id]?.[column.key] ? /*#__PURE__*/React$1.createElement(NotAvailableText, {
|
|
44553
44545
|
onClick: () => {
|
|
@@ -44598,7 +44590,7 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
44598
44590
|
}))))) : column.editable && column.renderEditableCell ? column.renderEditableCell(rowIndex, row, {
|
|
44599
44591
|
markAllNotValidFields
|
|
44600
44592
|
}) : renderCellContent(formattedValue, isTextBasedField, shouldShimmer));
|
|
44601
|
-
}), expandPosition === "right" && (expandable && expandedContent[rowIndex] !== undefined && expandedContent[rowIndex] !== null ? /*#__PURE__*/React$1.createElement(TableCell, {
|
|
44593
|
+
}), !hideExpandColumn && expandPosition === "right" && (expandable && expandedContent[rowIndex] !== undefined && expandedContent[rowIndex] !== null ? /*#__PURE__*/React$1.createElement(TableCell, {
|
|
44602
44594
|
$fieldType: "expand",
|
|
44603
44595
|
$minWidth: "16px",
|
|
44604
44596
|
$maxWidth: "16px"
|
|
@@ -48248,6 +48240,7 @@ const Table = props => {
|
|
|
48248
48240
|
expandedContent = {},
|
|
48249
48241
|
onExpandRow = () => {},
|
|
48250
48242
|
expandedBackgroundColor = "#E6F0F0",
|
|
48243
|
+
hideExpandColumn = false,
|
|
48251
48244
|
onDropdownSelected = () => {},
|
|
48252
48245
|
onCheckboxClick = () => {},
|
|
48253
48246
|
onHeaderCheckboxClick = () => {},
|
|
@@ -48395,6 +48388,7 @@ const Table = props => {
|
|
|
48395
48388
|
onSelectAll: onSelectAll,
|
|
48396
48389
|
expandable: expandable,
|
|
48397
48390
|
expandPosition: expandPosition,
|
|
48391
|
+
hideExpandColumn: hideExpandColumn,
|
|
48398
48392
|
onHeaderCheckboxClick: onHeaderCheckboxClick,
|
|
48399
48393
|
headerCheckboxStates: headerCheckboxStates,
|
|
48400
48394
|
resetFiltersKey: resetFiltersKey,
|
|
@@ -48423,6 +48417,7 @@ const Table = props => {
|
|
|
48423
48417
|
onFocusChange: handleTableFocusChange,
|
|
48424
48418
|
expandable: expandable,
|
|
48425
48419
|
expandPosition: expandPosition,
|
|
48420
|
+
hideExpandColumn: hideExpandColumn,
|
|
48426
48421
|
expandedRows: expandedRows,
|
|
48427
48422
|
expandedContent: expandedContent,
|
|
48428
48423
|
onExpandRow: onExpandRow,
|