@applica-software-guru/react-admin 1.3.172 → 1.3.174
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/ra-fields/AttachmentField.d.ts +10 -3
- package/dist/components/ra-fields/AttachmentField.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +2 -2
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +43 -36
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +2 -2
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-fields/AttachmentField.tsx +18 -5
- package/src/components/ra-lists/BulkFloatingActionsToolbar.tsx +2 -2
|
@@ -6,18 +6,25 @@ export type AttachmentFieldProps = BaseAttachmentFieldProps & {
|
|
|
6
6
|
property?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Allows you to define the base resource to use, for REST calls, to retrieve user data associated with the single attachment.
|
|
10
|
+
* If not specified, the default value is 'entities/user'.
|
|
10
11
|
*/
|
|
11
12
|
userResource?: string;
|
|
13
|
+
/**
|
|
14
|
+
* If true, the user data associated with the single attachment will be displayed.
|
|
15
|
+
*/
|
|
16
|
+
showUser?: boolean;
|
|
12
17
|
};
|
|
13
18
|
declare const AttachmentField: {
|
|
14
|
-
({ entityId, property, disabled, userResource, ...props }: AttachmentFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
({ entityId, property, disabled, showUser, userResource, ...props }: AttachmentFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
15
20
|
propTypes: {
|
|
16
21
|
source: PropTypes.Requireable<string>;
|
|
17
22
|
title: PropTypes.Requireable<string>;
|
|
18
23
|
disabled: PropTypes.Requireable<boolean>;
|
|
19
24
|
src: PropTypes.Requireable<string>;
|
|
20
|
-
target: PropTypes.Requireable<string>;
|
|
25
|
+
target: PropTypes.Requireable<string>; /**
|
|
26
|
+
* If true, the user data associated with the single attachment will be displayed.
|
|
27
|
+
*/
|
|
21
28
|
download: PropTypes.Requireable<NonNullable<string | boolean>>;
|
|
22
29
|
ping: PropTypes.Requireable<string>;
|
|
23
30
|
rel: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentField.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-fields/AttachmentField.tsx"],"names":[],"mappings":"AAAA,OAA4B,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAKtF,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB
|
|
1
|
+
{"version":3,"file":"AttachmentField.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-fields/AttachmentField.tsx"],"names":[],"mappings":"AAAA,OAA4B,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAKtF,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,eAAe;yEAOlB,oBAAoB;;;;;;+CAbrB;;WAEG;;;;;;;;;;;;;;CAwEJ,CAAC;AAUF,eAAe,eAAe,CAAC"}
|