@linzjs/step-ag-grid 30.3.0 → 30.4.0
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/src/components/gridForm/GridFormInlineTextInput.d.ts +5 -0
- package/dist/step-ag-grid.cjs +8 -1
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +8 -1
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridForm/GridFormInlineTextInput.tsx +9 -1
- package/src/stories/grid/GridInlineText.stories.tsx +99 -18
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -63177,7 +63177,14 @@ const GridFormInlineTextInput = (props) => {
|
|
|
63177
63177
|
input?.removeEventListener('keydown', tabRecorder, { capture: true });
|
|
63178
63178
|
};
|
|
63179
63179
|
}, [tabRecorder]);
|
|
63180
|
-
return (jsx("div", { className: clsx('GridFormInlineTextInput', invalid() && 'GridFormInlineTextInput-error'), title: String(invalid() ?? ''), children: jsx("input", { ref: inputRef, type: 'text', value: value, onChange: (e) =>
|
|
63180
|
+
return (jsx("div", { className: clsx('GridFormInlineTextInput', invalid() && 'GridFormInlineTextInput-error'), title: String(invalid() ?? ''), children: jsx("input", { ref: inputRef, type: 'text', value: value, onChange: (e) => {
|
|
63181
|
+
setValue(e.target.value);
|
|
63182
|
+
if (props.onChange) {
|
|
63183
|
+
const selectedRows = getSelectedRows();
|
|
63184
|
+
const selectedRowIds = selectedRows.map((data) => data.id);
|
|
63185
|
+
props.onChange({ selectedRows, selectedRowIds, value: e.target.value });
|
|
63186
|
+
}
|
|
63187
|
+
}, placeholder: props.placeholder ?? 'Type here', onBlur: () => {
|
|
63181
63188
|
void triggerSave(CloseReason.BLUR);
|
|
63182
63189
|
}, onKeyUp: (e) => {
|
|
63183
63190
|
if (e.key === 'Enter') {
|