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.js
CHANGED
|
@@ -39843,6 +39843,25 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
39843
39843
|
console.warn("TableBody: Invalid data or columns prop");
|
|
39844
39844
|
return null;
|
|
39845
39845
|
}
|
|
39846
|
+
|
|
39847
|
+
// Expose methods to parent component via ref
|
|
39848
|
+
React$1.useImperativeHandle(ref, () => ({
|
|
39849
|
+
clearFocus: () => {
|
|
39850
|
+
setFocusedRowIndex(null);
|
|
39851
|
+
setHoveredRowIndex(null);
|
|
39852
|
+
},
|
|
39853
|
+
setFocus: index => {
|
|
39854
|
+
setFocusedRowIndex(index);
|
|
39855
|
+
},
|
|
39856
|
+
getFocusedIndex: () => {
|
|
39857
|
+
return focusedRowIndex;
|
|
39858
|
+
},
|
|
39859
|
+
clearSelection: () => {
|
|
39860
|
+
setFocusedRowIndex(null);
|
|
39861
|
+
setHoveredRowIndex(null);
|
|
39862
|
+
setOpenDropdowns({});
|
|
39863
|
+
}
|
|
39864
|
+
}), [focusedRowIndex]);
|
|
39846
39865
|
React$1.useEffect(() => {
|
|
39847
39866
|
if (isCommentModalOpen && currentCommentRow !== null && data[currentCommentRow]) {
|
|
39848
39867
|
const initialText = data[currentCommentRow]?.Comments || "";
|
|
@@ -40314,7 +40333,15 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
40314
40333
|
document.removeEventListener("click", handleClickOutside);
|
|
40315
40334
|
};
|
|
40316
40335
|
}, []);
|
|
40317
|
-
|
|
40336
|
+
console.log('TableBody Debug Info:', {
|
|
40337
|
+
dataLength: data?.length,
|
|
40338
|
+
columnsLength: columns?.length,
|
|
40339
|
+
hasUseShimmerChromeEffect: typeof useShimmerChromeEffect,
|
|
40340
|
+
hasChromeShimmerText: typeof ChromeShimmerText,
|
|
40341
|
+
indexToShimmer,
|
|
40342
|
+
sampleRow: data[0],
|
|
40343
|
+
sampleColumn: columns[0]
|
|
40344
|
+
});
|
|
40318
40345
|
// Return null if no data
|
|
40319
40346
|
if (data.length === 0) {
|
|
40320
40347
|
return /*#__PURE__*/React__default["default"].createElement(StyledTableBody, {
|