@applica-software-guru/react-admin 1.4.201 → 1.4.203
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/components/MenuPopover/styles.d.ts.map +1 -1
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts +22 -3
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-fields/ReferenceManyField.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +58 -58
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +5928 -5917
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +58 -58
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/MenuPopover/styles.jsx +2 -3
- package/src/components/ra-buttons/CreateInDialogButton.tsx +36 -8
- package/src/components/ra-fields/ReferenceManyField.tsx +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuPopover/styles.jsx"],"names":[],"mappings":"AAEA,+
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuPopover/styles.jsx"],"names":[],"mappings":"AAEA,+PAuFG"}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
import { RedirectionSideEffect } from 'react-admin';
|
|
1
|
+
import { CreateControllerProps, RedirectionSideEffect } from 'react-admin';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { SxProps } from '@mui/material/styles';
|
|
4
|
-
export type CreateInDialogContentProps = {
|
|
4
|
+
export type CreateInDialogContentProps = CreateControllerProps & {
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
record?: any;
|
|
7
7
|
redirect: RedirectionSideEffect | boolean | undefined;
|
|
8
8
|
children: React.ReactElement;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use mutationOptions.onSubmit instead
|
|
11
|
+
*/
|
|
9
12
|
onSubmit?: (record: any, close: () => void) => void;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use mutationOptions.onSuccess instead
|
|
15
|
+
*/
|
|
10
16
|
onSuccess?: (data: any) => void;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use mutationOptions.onError instead
|
|
19
|
+
*/
|
|
11
20
|
onError?: (error: any) => void;
|
|
12
21
|
};
|
|
13
|
-
export type CreateInDialogButtonProps = {
|
|
22
|
+
export type CreateInDialogButtonProps = CreateControllerProps & {
|
|
14
23
|
fullWidth?: boolean;
|
|
15
24
|
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
|
|
16
25
|
label?: string;
|
|
@@ -25,8 +34,18 @@ export type CreateInDialogButtonProps = {
|
|
|
25
34
|
* If set to false, the button will always render as a regular button, regardless of the screen size.
|
|
26
35
|
*/
|
|
27
36
|
fab: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Use mutationOptions.onSubmit instead
|
|
39
|
+
*/
|
|
28
40
|
onSubmit?: (record: any, close: () => void) => void;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Use mutationOptions.onSuccess instead
|
|
43
|
+
*/
|
|
29
44
|
onSuccess?: (data: any) => void;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @deprecated Use mutationOptions.onError instead
|
|
48
|
+
*/
|
|
30
49
|
onError?: (error: any) => void;
|
|
31
50
|
};
|
|
32
51
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateInDialogButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-buttons/CreateInDialogButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CreateInDialogButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-buttons/CreateInDialogButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EAErB,qBAAqB,EAQtB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAgC,MAAM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S,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAgB,EAChB,QAAe,EACf,KAA0B,EAC1B,MAAM,EACN,QAAQ,EACR,WAAkB,EAClB,SAAS,EACT,EAAE,EACF,KAAK,EACL,GAAU,EACV,QAAQ,EACR,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,yBAAyB,GAAG,GAAG,CAAC,OAAO,CAuDzC;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceManyField.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-fields/ReferenceManyField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA0D,uBAAuB,IAAI,yBAAyB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ReferenceManyField.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-fields/ReferenceManyField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA0D,uBAAuB,IAAI,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAyE3I,MAAM,MAAM,uBAAuB,GAAG,yBAAyB,GAAG;IAChE;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAO9E;AAED,eAAe,kBAAkB,CAAC"}
|