@linzjs/step-ag-grid 7.0.1 → 7.0.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "7.0.1",
5
+ "version": "7.0.2",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -71,7 +71,7 @@ export const GridCell = <RowType extends GridBaseRow, Props extends CellEditorCo
71
71
  suppressKeyboardEvent: (e) => {
72
72
  // It's important that aggrid doesn't trigger edit on enter
73
73
  // as the incorrect selected rows will be returned
74
- return e.event.key === "Enter";
74
+ return !["ArrowLeft", "ArrowRight", "ArrowDown", "ArrowUp", "Tab", " "].includes(e.event.key);
75
75
  },
76
76
  ...(custom?.editorParams && {
77
77
  cellEditorParams: { ...custom.editorParams, multiEdit: custom.multiEdit },
@@ -224,8 +224,7 @@ export const GridFormDropDown = <RowType extends GridBaseRow>(props: GridFormPop
224
224
  <div style={{ display: "flex", width: "100%" }}>
225
225
  <input
226
226
  autoFocus
227
- className={"free-text-input"}
228
- style={{ border: "0px" }}
227
+ className={"LuiTextInput-input"}
229
228
  ref={ref}
230
229
  type="text"
231
230
  placeholder={props.filterPlaceholder ?? "Placeholder"}
@@ -242,7 +241,9 @@ export const GridFormDropDown = <RowType extends GridBaseRow>(props: GridFormPop
242
241
  <ComponentLoadingWrapper loading={!options} className={"GridFormDropDown-options"}>
243
242
  <>
244
243
  {options && options.length == filteredValues?.length && (
245
- <MenuItem key={`${fieldToString(field)}-empty`}>[Empty]</MenuItem>
244
+ <MenuItem key={`${fieldToString(field)}-empty`} className={"GridPopoverEditDropDown-noOptions"}>
245
+ No Options
246
+ </MenuItem>
246
247
  )}
247
248
  {options?.map((item: FinalSelectOption, index) =>
248
249
  item.value === MenuSeparatorString ? (
@@ -16,3 +16,7 @@
16
16
  .GridPopoverEditDropDown-containerUnlimited .GridFormDropDown-options {
17
17
  overflow-y: auto;
18
18
  }
19
+
20
+ .GridPopoverEditDropDown-noOptions {
21
+ justify-content: center;
22
+ }