@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.
@@ -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) => setValue(e.target.value), placeholder: props.placeholder ?? 'Type here', onBlur: () => {
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') {