sag_components 2.0.0-beta190 → 2.0.0-beta192
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 +28 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -39833,6 +39833,25 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
39833
39833
|
console.warn("TableBody: Invalid data or columns prop");
|
|
39834
39834
|
return null;
|
|
39835
39835
|
}
|
|
39836
|
+
|
|
39837
|
+
// Expose methods to parent component via ref
|
|
39838
|
+
useImperativeHandle(ref, () => ({
|
|
39839
|
+
clearFocus: () => {
|
|
39840
|
+
setFocusedRowIndex(null);
|
|
39841
|
+
setHoveredRowIndex(null);
|
|
39842
|
+
},
|
|
39843
|
+
setFocus: index => {
|
|
39844
|
+
setFocusedRowIndex(index);
|
|
39845
|
+
},
|
|
39846
|
+
getFocusedIndex: () => {
|
|
39847
|
+
return focusedRowIndex;
|
|
39848
|
+
},
|
|
39849
|
+
clearSelection: () => {
|
|
39850
|
+
setFocusedRowIndex(null);
|
|
39851
|
+
setHoveredRowIndex(null);
|
|
39852
|
+
setOpenDropdowns({});
|
|
39853
|
+
}
|
|
39854
|
+
}), [focusedRowIndex]);
|
|
39836
39855
|
useEffect(() => {
|
|
39837
39856
|
if (isCommentModalOpen && currentCommentRow !== null && data[currentCommentRow]) {
|
|
39838
39857
|
const initialText = data[currentCommentRow]?.Comments || "";
|
|
@@ -40304,7 +40323,15 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
40304
40323
|
document.removeEventListener("click", handleClickOutside);
|
|
40305
40324
|
};
|
|
40306
40325
|
}, []);
|
|
40307
|
-
|
|
40326
|
+
console.log('TableBody Debug Info:', {
|
|
40327
|
+
dataLength: data?.length,
|
|
40328
|
+
columnsLength: columns?.length,
|
|
40329
|
+
hasUseShimmerChromeEffect: typeof useShimmerChromeEffect,
|
|
40330
|
+
hasChromeShimmerText: typeof ChromeShimmerText,
|
|
40331
|
+
indexToShimmer,
|
|
40332
|
+
sampleRow: data[0],
|
|
40333
|
+
sampleColumn: columns[0]
|
|
40334
|
+
});
|
|
40308
40335
|
// Return null if no data
|
|
40309
40336
|
if (data.length === 0) {
|
|
40310
40337
|
return /*#__PURE__*/React$1.createElement(StyledTableBody, {
|