@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/index.js
CHANGED
|
@@ -219,19 +219,21 @@ function commonProps(isDisabled, isHovering) {
|
|
|
219
219
|
}
|
|
220
220
|
var indexOfNode = function (nodeList, node) { return lodashEs.findIndex(nodeList, node); };
|
|
221
221
|
var focusFirstInput = function (container) {
|
|
222
|
-
|
|
222
|
+
// We can't use instanceof Element in portals, so I use querySelectorAll as a proxy here
|
|
223
|
+
if (!container || !("querySelectorAll" in container))
|
|
223
224
|
return false;
|
|
224
225
|
var inputs = container.querySelectorAll("input[type='text'],textarea");
|
|
225
226
|
var input = inputs[0];
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
227
|
+
// Using focus as proxy for HTMLElement
|
|
228
|
+
if (!input || !("focus" in input))
|
|
229
|
+
return false;
|
|
230
|
+
input.focus();
|
|
231
|
+
// Text areas should start at end
|
|
232
|
+
// this is a proxy for instanceof HTMLTextAreaElement
|
|
233
|
+
if (input.type === "textarea") {
|
|
234
|
+
input.selectionStart = input.value.length;
|
|
233
235
|
}
|
|
234
|
-
return
|
|
236
|
+
return true;
|
|
235
237
|
};
|
|
236
238
|
|
|
237
239
|
/******************************************************************************
|
|
@@ -3792,7 +3794,7 @@ var MenuRadioItem = function (props) {
|
|
|
3792
3794
|
}, [options, setOptions]);
|
|
3793
3795
|
return (jsxRuntime.jsx(MenuItem, __assign({ onClick: function (e) {
|
|
3794
3796
|
// Global react-menu MenuItem handler handles tabs
|
|
3795
|
-
if (e.key !== "Tab") {
|
|
3797
|
+
if (e.key !== "Tab" && e.key !== "Enter") {
|
|
3796
3798
|
e.keepOpen = true;
|
|
3797
3799
|
toggleValue(item);
|
|
3798
3800
|
}
|
|
@@ -24601,25 +24603,22 @@ var selectCell = function (rowId, colId, within) { return __awaiter(void 0, void
|
|
|
24601
24603
|
var editCell = function (rowId, colId, within) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24602
24604
|
return __generator(this, function (_a) {
|
|
24603
24605
|
switch (_a.label) {
|
|
24604
|
-
case 0: return [4 /*yield*/,
|
|
24606
|
+
case 0: return [4 /*yield*/, act(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
24607
|
+
var cell;
|
|
24608
|
+
return __generator(this, function (_a) {
|
|
24609
|
+
switch (_a.label) {
|
|
24610
|
+
case 0: return [4 /*yield*/, findCell(rowId, colId, within)];
|
|
24611
|
+
case 1:
|
|
24612
|
+
cell = _a.sent();
|
|
24613
|
+
userEvent.dblClick(cell);
|
|
24614
|
+
return [2 /*return*/];
|
|
24615
|
+
}
|
|
24616
|
+
});
|
|
24617
|
+
}); })];
|
|
24605
24618
|
case 1:
|
|
24606
|
-
_a.sent();
|
|
24607
|
-
return [4 /*yield*/, act(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
24608
|
-
var cell;
|
|
24609
|
-
return __generator(this, function (_a) {
|
|
24610
|
-
switch (_a.label) {
|
|
24611
|
-
case 0: return [4 /*yield*/, findCell(rowId, colId, within)];
|
|
24612
|
-
case 1:
|
|
24613
|
-
cell = _a.sent();
|
|
24614
|
-
userEvent.dblClick(cell);
|
|
24615
|
-
return [2 /*return*/];
|
|
24616
|
-
}
|
|
24617
|
-
});
|
|
24618
|
-
}); })];
|
|
24619
|
-
case 2:
|
|
24620
24619
|
_a.sent();
|
|
24621
24620
|
return [4 /*yield*/, waitForWrapper(findOpenMenu)];
|
|
24622
|
-
case
|
|
24621
|
+
case 2:
|
|
24623
24622
|
_a.sent();
|
|
24624
24623
|
return [2 /*return*/];
|
|
24625
24624
|
}
|