@linzjs/step-ag-grid 2.4.8 → 2.4.10

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
@@ -2075,7 +2075,8 @@ var GridContextProvider = function (props) {
2075
2075
  */
2076
2076
  var sizeColumnsToFit = function () {
2077
2077
  gridApiOp(function (gridApi) {
2078
- gridApi.sizeColumnsToFit();
2078
+ // Hide size columns to fit errors in tests
2079
+ document.body.clientWidth && gridApi.sizeColumnsToFit();
2079
2080
  });
2080
2081
  };
2081
2082
  var stopEditing = function () { return gridApiOp(function (gridApi) { return gridApi.stopEditing(); }); };
@@ -3094,9 +3095,12 @@ var GridFormDropDown = function (_props) {
3094
3095
  return optionValue === item.value;
3095
3096
  });
3096
3097
  if ((key === "Enter" || key === "Tab") && subComponentItem) {
3097
- selectItemHandler(item.value, subComponentItem.subComponentValue);
3098
- ref.closeMenu();
3098
+ return selectItemHandler(item.value, subComponentItem.subComponentValue).then(function () {
3099
+ ref.closeMenu();
3100
+ return true;
3101
+ });
3099
3102
  }
3103
+ return false;
3100
3104
  },
3101
3105
  key: "".concat(props.field, "-").concat(index, "_subcomponent_inner")
3102
3106
  }, ref);
@@ -3741,7 +3745,9 @@ var GridFormSubComponentTextInput = function (_a) {
3741
3745
  var _b = react.useState(""), inputValue = _b[0], setInputValue = _b[1];
3742
3746
  return (jsxRuntime.jsxs("div", __assign({ style: {
3743
3747
  display: "flex",
3744
- flexDirection: "column"
3748
+ flexDirection: "column",
3749
+ width: "100%",
3750
+ padding: 0
3745
3751
  } }, { children: [jsxRuntime.jsx(TextInputFormatted, { className: inputClass, value: inputValue, onChange: function (e) {
3746
3752
  var value = e.target.value;
3747
3753
  setValue(value);
@@ -3758,7 +3764,7 @@ var GridFormSubComponentTextInput = function (_a) {
3758
3764
  width: "100%"
3759
3765
  }
3760
3766
  } }), jsxRuntime.jsx("span", __assign({ style: {
3761
- fontSize: "0.75rem"
3767
+ fontSize: "0.7rem"
3762
3768
  } }, { children: helpText }))] })));
3763
3769
  };
3764
3770