@linzjs/step-ag-grid 7.11.1 → 7.11.3
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.js +25 -26
- package/dist/index.js.map +1 -1
- package/dist/step-ag-grid.esm.js +25 -26
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridForm/GridFormMultiSelect.tsx +1 -1
- package/src/react-menu3/utils/utils.ts +10 -9
- package/src/utils/testUtil.ts +0 -1
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -198,19 +198,21 @@ function commonProps(isDisabled, isHovering) {
|
|
|
198
198
|
}
|
|
199
199
|
var indexOfNode = function (nodeList, node) { return findIndex(nodeList, node); };
|
|
200
200
|
var focusFirstInput = function (container) {
|
|
201
|
-
|
|
201
|
+
// We can't use instanceof Element in portals, so I use querySelectorAll as a proxy here
|
|
202
|
+
if (!container || !("querySelectorAll" in container))
|
|
202
203
|
return false;
|
|
203
204
|
var inputs = container.querySelectorAll("input[type='text'],textarea");
|
|
204
205
|
var input = inputs[0];
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
206
|
+
// Using focus as proxy for HTMLElement
|
|
207
|
+
if (!input || !("focus" in input))
|
|
208
|
+
return false;
|
|
209
|
+
input.focus();
|
|
210
|
+
// Text areas should start at end
|
|
211
|
+
// this is a proxy for instanceof HTMLTextAreaElement
|
|
212
|
+
if (input.type === "textarea") {
|
|
213
|
+
input.selectionStart = input.value.length;
|
|
212
214
|
}
|
|
213
|
-
return
|
|
215
|
+
return true;
|
|
214
216
|
};
|
|
215
217
|
|
|
216
218
|
/******************************************************************************
|
|
@@ -3771,7 +3773,7 @@ var MenuRadioItem = function (props) {
|
|
|
3771
3773
|
}, [options, setOptions]);
|
|
3772
3774
|
return (jsx(MenuItem, __assign({ onClick: function (e) {
|
|
3773
3775
|
// Global react-menu MenuItem handler handles tabs
|
|
3774
|
-
if (e.key !== "Tab") {
|
|
3776
|
+
if (e.key !== "Tab" && e.key !== "Enter") {
|
|
3775
3777
|
e.keepOpen = true;
|
|
3776
3778
|
toggleValue(item);
|
|
3777
3779
|
}
|
|
@@ -24580,25 +24582,22 @@ var selectCell = function (rowId, colId, within) { return __awaiter(void 0, void
|
|
|
24580
24582
|
var editCell = function (rowId, colId, within) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24581
24583
|
return __generator(this, function (_a) {
|
|
24582
24584
|
switch (_a.label) {
|
|
24583
|
-
case 0: return [4 /*yield*/,
|
|
24585
|
+
case 0: return [4 /*yield*/, act(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
24586
|
+
var cell;
|
|
24587
|
+
return __generator(this, function (_a) {
|
|
24588
|
+
switch (_a.label) {
|
|
24589
|
+
case 0: return [4 /*yield*/, findCell(rowId, colId, within)];
|
|
24590
|
+
case 1:
|
|
24591
|
+
cell = _a.sent();
|
|
24592
|
+
userEvent.dblClick(cell);
|
|
24593
|
+
return [2 /*return*/];
|
|
24594
|
+
}
|
|
24595
|
+
});
|
|
24596
|
+
}); })];
|
|
24584
24597
|
case 1:
|
|
24585
|
-
_a.sent();
|
|
24586
|
-
return [4 /*yield*/, act(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
24587
|
-
var cell;
|
|
24588
|
-
return __generator(this, function (_a) {
|
|
24589
|
-
switch (_a.label) {
|
|
24590
|
-
case 0: return [4 /*yield*/, findCell(rowId, colId, within)];
|
|
24591
|
-
case 1:
|
|
24592
|
-
cell = _a.sent();
|
|
24593
|
-
userEvent.dblClick(cell);
|
|
24594
|
-
return [2 /*return*/];
|
|
24595
|
-
}
|
|
24596
|
-
});
|
|
24597
|
-
}); })];
|
|
24598
|
-
case 2:
|
|
24599
24598
|
_a.sent();
|
|
24600
24599
|
return [4 /*yield*/, waitForWrapper(findOpenMenu)];
|
|
24601
|
-
case
|
|
24600
|
+
case 2:
|
|
24602
24601
|
_a.sent();
|
|
24603
24602
|
return [2 /*return*/];
|
|
24604
24603
|
}
|