@acvl/frontend-components 0.0.8 → 0.0.9

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.
@@ -1,4 +1,4 @@
1
1
  export { default as Base } from './Base';
2
2
  export * from './cells';
3
3
  export * from './columns';
4
- export { GridColDefPropsOverrides } from './types';
4
+ export { GridColDefPropsOverrides, GridArgs, MyDataGridProps, MyGridFilterModel } from './types';
package/dist/esm/index.js CHANGED
@@ -26576,12 +26576,10 @@ const DeleteButton = (props) => {
26576
26576
  };
26577
26577
 
26578
26578
  const SaveCancelButton = (props) => {
26579
- // const nav = useNavigation();
26580
- const handleCancel = useCallback(() => {
26581
- // nav.useNavigate(-1);
26582
- }, [
26583
- //useNavigate
26584
- ]);
26579
+ const navigate = useNavigate();
26580
+ const handleCancel = () => {
26581
+ navigate(-1);
26582
+ };
26585
26583
  // ===== || KEYDOWN || ===== //
26586
26584
  const handleKeyPress = useCallback((event) => {
26587
26585
  if (event.key === 'Escape') {
@@ -30850,6 +30848,7 @@ const Base = (props) => {
30850
30848
  const navigate = useNavigate();
30851
30849
  useImperativeHandle(props.ref, () => ({
30852
30850
  getApi: () => apiRef.current,
30851
+ setFilterModel: setFilterModel,
30853
30852
  }));
30854
30853
  // ========================= || PAGINADO || ========================= //
30855
30854
  const [paginationModel, setPaginationModel] = useState({ page: 0, pageSize: 50 });
@@ -31626,7 +31625,7 @@ function DetailPage(props) {
31626
31625
  return (jsx(SaveCancelButton, { slotProps: {
31627
31626
  saveBtn: {
31628
31627
  loading: mutationIsLoading,
31629
- disabled: form.formState.isDirty,
31628
+ disabled: !form.formState.isDirty,
31630
31629
  ...(props.slotProps?.button?.save?.type == 'onClick' ? {
31631
31630
  type: 'button',
31632
31631
  onClick: onSubmitHandler,