@linzjs/step-ag-grid 7.3.1 → 7.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/index.js CHANGED
@@ -2012,6 +2012,7 @@ var GridContext = React.createContext({
2012
2012
  }); },
2013
2013
  ensureRowVisible: function () {
2014
2014
  console.error("no context provider for ensureRowVisible");
2015
+ return true;
2015
2016
  },
2016
2017
  ensureSelectedRowIsVisible: function () {
2017
2018
  console.error("no context provider for ensureSelectedRowIsVisible");
@@ -2227,9 +2228,12 @@ var GridContextProvider = function (props) {
2227
2228
  return gridApiOp(function (gridApi) { return isNotEmpty(gridApi.getEditingCells()); }, function () { return false; });
2228
2229
  };
2229
2230
  var ensureRowVisible = function (id) {
2230
- gridApiOp(function (gridApi) {
2231
+ return gridApiOp(function (gridApi) {
2231
2232
  var node = gridApi.getRowNode("".concat(id));
2232
- node && gridApi.ensureNodeVisible(node);
2233
+ if (!node)
2234
+ return false;
2235
+ gridApi.ensureNodeVisible(node);
2236
+ return true;
2233
2237
  });
2234
2238
  };
2235
2239
  /**
@@ -4267,7 +4271,7 @@ var GridFormTextArea = function (props) {
4267
4271
  invalid: invalid,
4268
4272
  save: save
4269
4273
  }).popoverWrapper;
4270
- return popoverWrapper(jsxRuntime.jsx("div", __assign({ style: { display: "flex", flexDirection: "row", width: (_b = props.width) !== null && _b !== void 0 ? _b : 240 } }, { children: jsxRuntime.jsx(TextAreaInput, { value: value, onChange: function (e) { return setValue(e.target.value); }, error: invalid(), placeholder: props.placeholder, helpText: helpText }) })));
4274
+ return popoverWrapper(jsxRuntime.jsx("div", __assign({ className: "subComponent", style: { display: "flex", flexDirection: "row", width: (_b = props.width) !== null && _b !== void 0 ? _b : 240 } }, { children: jsxRuntime.jsx(TextAreaInput, { value: value, onChange: function (e) { return setValue(e.target.value); }, error: invalid(), placeholder: props.placeholder, helpText: helpText }) })));
4271
4275
  };
4272
4276
 
4273
4277
  var GridPopoverTextArea = function (colDef, params) { return GridCell(colDef, __assign({ editor: GridFormTextArea }, params)); };
@@ -4304,7 +4308,7 @@ var GridFormTextInput = function (props) {
4304
4308
  invalid: invalid,
4305
4309
  save: save
4306
4310
  }).popoverWrapper;
4307
- return popoverWrapper(jsxRuntime.jsx("div", __assign({ style: { display: "flex", flexDirection: "row", width: (_b = props.width) !== null && _b !== void 0 ? _b : 240 }, className: "FormTest" }, { children: jsxRuntime.jsx(TextInputFormatted, { value: value, onChange: function (e) { return setValue(e.target.value); }, error: invalid(), formatted: props.units, style: { width: "100%" }, placeholder: props.placeholder, helpText: helpText }) })));
4311
+ return popoverWrapper(jsxRuntime.jsx("div", __assign({ style: { display: "flex", flexDirection: "row", width: (_b = props.width) !== null && _b !== void 0 ? _b : 240 }, className: "FormTest subComponent" }, { children: jsxRuntime.jsx(TextInputFormatted, { value: value, onChange: function (e) { return setValue(e.target.value); }, error: invalid(), formatted: props.units, style: { width: "100%" }, placeholder: props.placeholder, helpText: helpText }) })));
4308
4312
  };
4309
4313
 
4310
4314
  var GridPopoverTextInput = function (colDef, params) {
@@ -24437,7 +24441,7 @@ var cellContains = function (rowId, colId, text, within) { return __awaiter(void
24437
24441
  case 2: return [2 /*return*/, _a.sent()];
24438
24442
  }
24439
24443
  });
24440
- }); })];
24444
+ }); }, { timeout: 10000 })];
24441
24445
  case 1: return [2 /*return*/, _a.sent()];
24442
24446
  }
24443
24447
  });
@@ -24614,6 +24618,7 @@ var typeOtherInput = function (value) { return __awaiter(void 0, void 0, void 0,
24614
24618
  return [4 /*yield*/, findQuick({ classes: ".subComponent", child: { tagName: "input[type='text']" } }, openMenu)];
24615
24619
  case 2:
24616
24620
  otherInput = _a.sent();
24621
+ userEvent.clear(otherInput);
24617
24622
  userEvent.type(otherInput, value);
24618
24623
  return [2 /*return*/];
24619
24624
  }
@@ -24629,6 +24634,7 @@ var typeOtherTextArea = function (value) { return __awaiter(void 0, void 0, void
24629
24634
  return [4 /*yield*/, findQuick({ classes: ".subComponent", child: { tagName: "textarea" } }, openMenu)];
24630
24635
  case 2:
24631
24636
  otherTextArea = _a.sent();
24637
+ userEvent.clear(otherTextArea);
24632
24638
  userEvent.type(otherTextArea, value);
24633
24639
  return [2 /*return*/];
24634
24640
  }