@linzjs/step-ag-grid 14.3.0 → 14.3.2
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/step-ag-grid.esm.js
CHANGED
|
@@ -713,7 +713,7 @@ var GridHeaderSelect = function (_a) {
|
|
|
713
713
|
*/
|
|
714
714
|
var Grid = function (_a) {
|
|
715
715
|
var _b, _c, _d;
|
|
716
|
-
var dataTestId = _a["data-testid"], _e = _a.rowSelection, rowSelection = _e === void 0 ? "multiple" : _e, _f = _a.suppressColumnVirtualization, suppressColumnVirtualization = _f === void 0 ? true : _f, _g = _a.theme, theme = _g === void 0 ? "ag-theme-alpine" : _g, _h = _a.sizeColumns, sizeColumns = _h === void 0 ? "auto" : _h, _j = _a.selectColumnPinned, selectColumnPinned = _j === void 0 ?
|
|
716
|
+
var dataTestId = _a["data-testid"], _e = _a.rowSelection, rowSelection = _e === void 0 ? "multiple" : _e, _f = _a.suppressColumnVirtualization, suppressColumnVirtualization = _f === void 0 ? true : _f, _g = _a.theme, theme = _g === void 0 ? "ag-theme-alpine" : _g, _h = _a.sizeColumns, sizeColumns = _h === void 0 ? "auto" : _h, _j = _a.selectColumnPinned, selectColumnPinned = _j === void 0 ? null : _j, params = __rest(_a, ["data-testid", "rowSelection", "suppressColumnVirtualization", "theme", "sizeColumns", "selectColumnPinned"]);
|
|
717
717
|
var _k = useContext(GridContext), gridReady = _k.gridReady, setApis = _k.setApis, prePopupOps = _k.prePopupOps, ensureRowVisible = _k.ensureRowVisible, getFirstRowId = _k.getFirstRowId, selectRowsById = _k.selectRowsById, focusByRowById = _k.focusByRowById, ensureSelectedRowIsVisible = _k.ensureSelectedRowIsVisible, autoSizeColumns = _k.autoSizeColumns, sizeColumnsToFit = _k.sizeColumnsToFit, externallySelectedItemsAreInSync = _k.externallySelectedItemsAreInSync, setExternallySelectedItemsAreInSync = _k.setExternallySelectedItemsAreInSync, isExternalFilterPresent = _k.isExternalFilterPresent, doesExternalFilterPass = _k.doesExternalFilterPass, setOnCellEditingComplete = _k.setOnCellEditingComplete;
|
|
718
718
|
var _l = useContext(GridUpdatingContext), checkUpdating = _l.checkUpdating, updatedDep = _l.updatedDep, isUpdating = _l.isUpdating;
|
|
719
719
|
var gridDivRef = useRef(null);
|
|
@@ -4968,32 +4968,29 @@ var GridContextProvider = function (props) {
|
|
|
4968
4968
|
!((_a = nextColDef.cellEditorParams) === null || _a === void 0 ? void 0 : _a.preventAutoEdit) &&
|
|
4969
4969
|
!((_b = nextColDef.cellRendererParams) === null || _b === void 0 ? void 0 : _b.editAction));
|
|
4970
4970
|
};
|
|
4971
|
-
var foundEditableCell = false;
|
|
4972
4971
|
// Just in case I've missed something, we don't want the loop to hang everything
|
|
4973
|
-
var maxIterations = 50;
|
|
4974
|
-
|
|
4975
|
-
var postRow = null;
|
|
4976
|
-
do {
|
|
4977
|
-
preRow = gridApi.getFocusedCell();
|
|
4972
|
+
for (var maxIterations = 0; maxIterations < 50; maxIterations++) {
|
|
4973
|
+
var preRow = gridApi.getFocusedCell();
|
|
4978
4974
|
tabDirection === 1 ? gridApi.tabToNextCell() : gridApi.tabToPreviousCell();
|
|
4979
|
-
postRow = gridApi.getFocusedCell();
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4975
|
+
var postRow = gridApi.getFocusedCell();
|
|
4976
|
+
if ((preRow === null || preRow === void 0 ? void 0 : preRow.rowIndex) !== (postRow === null || postRow === void 0 ? void 0 : postRow.rowIndex) || (preRow === null || preRow === void 0 ? void 0 : preRow.column) === (postRow === null || postRow === void 0 ? void 0 : postRow.column)) {
|
|
4977
|
+
// We didn't find an editable cell in the same row, or the cell column didn't change
|
|
4978
|
+
// implying it was start/end of grid
|
|
4979
|
+
break;
|
|
4980
|
+
}
|
|
4981
|
+
if (focusedCellIsEditable()) {
|
|
4982
|
+
var focusedCell = gridApi === null || gridApi === void 0 ? void 0 : gridApi.getFocusedCell();
|
|
4983
|
+
if (focusedCell) {
|
|
4984
|
+
prePopupOps();
|
|
4985
|
+
gridApi.startEditingCell({
|
|
4986
|
+
rowIndex: focusedCell.rowIndex,
|
|
4987
|
+
colKey: focusedCell.column.getColId()
|
|
4988
|
+
});
|
|
4989
|
+
return true;
|
|
4990
|
+
}
|
|
4994
4991
|
}
|
|
4995
4992
|
}
|
|
4996
|
-
return
|
|
4993
|
+
return false;
|
|
4997
4994
|
}, [gridApi, prePopupOps]);
|
|
4998
4995
|
var updatingCells = useCallback(function (props, fnUpdate, setSaving, tabDirection) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4999
4996
|
return __generator(this, function (_a) {
|
|
@@ -5045,7 +5042,7 @@ var GridContextProvider = function (props) {
|
|
|
5045
5042
|
postPopupFocusedCell &&
|
|
5046
5043
|
prePopupFocusedCell.current.rowIndex == postPopupFocusedCell.rowIndex &&
|
|
5047
5044
|
prePopupFocusedCell.current.column.getColId() == postPopupFocusedCell.column.getColId()) {
|
|
5048
|
-
if (!tabDirection || selectNextEditableCell(tabDirection)) {
|
|
5045
|
+
if (!tabDirection || !selectNextEditableCell(tabDirection)) {
|
|
5049
5046
|
cellEditingCompleteCallbackRef.current && cellEditingCompleteCallbackRef.current();
|
|
5050
5047
|
}
|
|
5051
5048
|
}
|