@acvl/frontend-components 0.0.28 → 0.0.30

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/cjs/index.js CHANGED
@@ -25706,7 +25706,7 @@ const typeSwitch = ({ base_object, base_key, response, submitData, useLabel, dat
25706
25706
  else if (object instanceof File) {
25707
25707
  setValue(response, key, object);
25708
25708
  }
25709
- else if (object instanceof dayjs) {
25709
+ else if (dayjs.isDayjs(object)) {
25710
25710
  setValue(response, key, object.format(get(props, `${key}.format`, "YYYY-MM-DD")));
25711
25711
  }
25712
25712
  else if ("label" in object && "value" in object) {
@@ -25782,7 +25782,7 @@ const typeSwitch = ({ base_object, base_key, response, submitData, useLabel, dat
25782
25782
  break;
25783
25783
  }
25784
25784
  };
25785
- const jsonForm = ({ submitData, data, useLabel, props, }) => {
25785
+ const jsonForm = ({ submitData, data, useLabel, props }) => {
25786
25786
  const response = {};
25787
25787
  forEach(submitData, function (value, key) {
25788
25788
  if (key != "id" && isEqual(get(data, key), value))
@@ -25800,7 +25800,7 @@ const jsonForm = ({ submitData, data, useLabel, props, }) => {
25800
25800
  });
25801
25801
  return response;
25802
25802
  };
25803
- const formDataForm = ({ submitData, data, useLabel, props, }) => {
25803
+ const formDataForm = ({ submitData, data, useLabel, props }) => {
25804
25804
  const formData = new FormData();
25805
25805
  forEach(submitData, function (value, key) {
25806
25806
  if (key != "id" && isEqual(get(data, key), value))
@@ -28178,6 +28178,11 @@ const FieldArrayField = (props) => {
28178
28178
  if (reason === xDataGrid.GridRowEditStartReasons.cellDoubleClick && detail)
28179
28179
  event.defaultMuiPrevented = true;
28180
28180
  },
28181
+ onRowEditStop: (params, event) => {
28182
+ if (params.reason === xDataGrid.GridRowEditStopReasons.rowFocusOut) {
28183
+ event.defaultMuiPrevented = true;
28184
+ }
28185
+ },
28181
28186
  }, props.dataGridProps);
28182
28187
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(material.Grid, { rowSpacing: 1, container: true, size: "grow", direction: "column", ...props.gridProps, children: [jsxRuntime.jsx(material.Grid, { size: 12, children: jsxRuntime.jsx(material.Typography, { variant: "body1", fontWeight: "bold", children: props.label }) }), jsxRuntime.jsx(material.Grid, { size: 12, children: jsxRuntime.jsx(xDataGrid.DataGrid, { ...dataGridProps }) })] }) }));
28183
28188
  };