@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 +11 -5
- package/dist/index.js.map +1 -1
- package/dist/step-ag-grid.esm.js +11 -5
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridForm/GridFormDropDown.tsx +8 -2
- package/src/components/gridForm/GridFormSubComponentTextInput.tsx +3 -1
- package/src/contexts/GridContextProvider.tsx +2 -1
package/package.json
CHANGED
|
@@ -261,9 +261,15 @@ export const GridFormDropDown = <RowType extends GridBaseRow, ValueType>(
|
|
|
261
261
|
({ optionValue }) => optionValue === item.value,
|
|
262
262
|
);
|
|
263
263
|
if ((key === "Enter" || key === "Tab") && subComponentItem) {
|
|
264
|
-
selectItemHandler(
|
|
265
|
-
|
|
264
|
+
return selectItemHandler(
|
|
265
|
+
item.value as ValueType,
|
|
266
|
+
subComponentItem.subComponentValue,
|
|
267
|
+
).then(() => {
|
|
268
|
+
ref.closeMenu();
|
|
269
|
+
return true;
|
|
270
|
+
});
|
|
266
271
|
}
|
|
272
|
+
return false;
|
|
267
273
|
},
|
|
268
274
|
key: `${props.field}-${index}_subcomponent_inner`,
|
|
269
275
|
},
|
|
@@ -27,6 +27,8 @@ export const GridFormSubComponentTextInput = ({
|
|
|
27
27
|
style={{
|
|
28
28
|
display: "flex",
|
|
29
29
|
flexDirection: "column",
|
|
30
|
+
width: "100%",
|
|
31
|
+
padding: 0,
|
|
30
32
|
}}
|
|
31
33
|
>
|
|
32
34
|
<TextInputFormatted
|
|
@@ -52,7 +54,7 @@ export const GridFormSubComponentTextInput = ({
|
|
|
52
54
|
/>
|
|
53
55
|
<span
|
|
54
56
|
style={{
|
|
55
|
-
fontSize: "0.
|
|
57
|
+
fontSize: "0.7rem",
|
|
56
58
|
}}
|
|
57
59
|
>
|
|
58
60
|
{helpText}
|
|
@@ -223,7 +223,8 @@ export const GridContextProvider = (props: GridContextProps): ReactElement => {
|
|
|
223
223
|
*/
|
|
224
224
|
const sizeColumnsToFit = (): void => {
|
|
225
225
|
gridApiOp((gridApi) => {
|
|
226
|
-
|
|
226
|
+
// Hide size columns to fit errors in tests
|
|
227
|
+
document.body.clientWidth && gridApi.sizeColumnsToFit();
|
|
227
228
|
});
|
|
228
229
|
};
|
|
229
230
|
|