@linzjs/step-ag-grid 4.0.0 → 4.0.1
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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/step-ag-grid.esm.js +6 -6
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridForm/GridFormSubComponentTextArea.tsx +1 -1
- package/src/components/gridForm/GridFormSubComponentTextInput.tsx +1 -1
- package/src/components/gridForm/GridFormTextArea.tsx +2 -2
- package/src/components/gridForm/GridFormTextInput.tsx +2 -2
package/package.json
CHANGED
|
@@ -47,9 +47,9 @@ export const GridFormSubComponentTextArea = (props: GridSubComponentTextAreaProp
|
|
|
47
47
|
}}
|
|
48
48
|
onKeyUp={(e) => {
|
|
49
49
|
if (e.key === "Tab") {
|
|
50
|
-
!e.shiftKey && triggerSave().then();
|
|
51
50
|
e.preventDefault();
|
|
52
51
|
e.stopPropagation();
|
|
52
|
+
!e.shiftKey && triggerSave().then();
|
|
53
53
|
}
|
|
54
54
|
}}
|
|
55
55
|
/>
|
|
@@ -42,9 +42,9 @@ export const GridFormSubComponentTextInput = (props: GridFormSubComponentTextInp
|
|
|
42
42
|
}}
|
|
43
43
|
onKeyUp={(e) => {
|
|
44
44
|
if (e.key === "Tab") {
|
|
45
|
-
!e.shiftKey && triggerSave().then();
|
|
46
45
|
e.preventDefault();
|
|
47
46
|
e.stopPropagation();
|
|
47
|
+
!e.shiftKey && triggerSave().then();
|
|
48
48
|
} else if (e.key === "Enter") {
|
|
49
49
|
triggerSave().then();
|
|
50
50
|
e.preventDefault();
|
|
@@ -42,7 +42,7 @@ export const GridFormTextArea = <RowType extends GridBaseRow>(props: GridFormTex
|
|
|
42
42
|
},
|
|
43
43
|
[invalid, initialVale, value, props, field],
|
|
44
44
|
);
|
|
45
|
-
const { popoverWrapper,
|
|
45
|
+
const { popoverWrapper, onlyInputKeyboardEventHandlers } = useGridPopoverHook({ className: props.className, save });
|
|
46
46
|
return popoverWrapper(
|
|
47
47
|
<div style={{ display: "flex", flexDirection: "row", width: props.width ?? 240 }}>
|
|
48
48
|
<TextAreaInput
|
|
@@ -51,7 +51,7 @@ export const GridFormTextArea = <RowType extends GridBaseRow>(props: GridFormTex
|
|
|
51
51
|
error={invalid()}
|
|
52
52
|
placeholder={props.placeholder}
|
|
53
53
|
helpText={helpText}
|
|
54
|
-
{...
|
|
54
|
+
{...onlyInputKeyboardEventHandlers}
|
|
55
55
|
/>
|
|
56
56
|
</div>,
|
|
57
57
|
);
|
|
@@ -45,7 +45,7 @@ export const GridFormTextInput = <RowType extends GridBaseRow>(props: GridFormTe
|
|
|
45
45
|
},
|
|
46
46
|
[invalid, value, initValue, props, field],
|
|
47
47
|
);
|
|
48
|
-
const { popoverWrapper,
|
|
48
|
+
const { popoverWrapper, onlyInputKeyboardEventHandlers } = useGridPopoverHook({ className: props.className, save });
|
|
49
49
|
|
|
50
50
|
return popoverWrapper(
|
|
51
51
|
<div style={{ display: "flex", flexDirection: "row", width: props.width ?? 240 }} className={"FormTest"}>
|
|
@@ -56,7 +56,7 @@ export const GridFormTextInput = <RowType extends GridBaseRow>(props: GridFormTe
|
|
|
56
56
|
formatted={props.units}
|
|
57
57
|
style={{ width: "100%" }}
|
|
58
58
|
placeholder={props.placeholder}
|
|
59
|
-
{...
|
|
59
|
+
{...onlyInputKeyboardEventHandlers}
|
|
60
60
|
helpText={helpText}
|
|
61
61
|
/>
|
|
62
62
|
</div>,
|