@applica-software-guru/react-admin 1.3.136 → 1.3.138

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,8 +1,58 @@
1
- export default ReferenceManyField;
2
- declare function ReferenceManyField(props: any): import("react/jsx-runtime").JSX.Element;
3
- declare namespace ReferenceManyField {
4
- const defaultProps: any;
5
- const propTypes: {
1
+ import PropTypes from 'prop-types';
2
+ import { ReferenceManyFieldProps as RaReferenceManyFieldProps } from 'react-admin';
3
+ import React from 'react';
4
+ export type StyledDivProps = {
5
+ children?: React.ReactNode;
6
+ className?: string;
7
+ };
8
+ export type ReferenceManyFieldProps = RaReferenceManyFieldProps & {
9
+ /**
10
+ * Default false, serve ad aggiungere un margine attorno al componente.
11
+ */
12
+ margin?: boolean;
13
+ /**
14
+ * Default false, serve ad aggiungere un bordo inferiore al componente.
15
+ */
16
+ border?: boolean;
17
+ /**
18
+ * Default undefined, serve ad aggiungere un padding superiore al componente per consentire
19
+ * la visualizzazione della toolbar delle bulk action buttons.
20
+ */
21
+ bulkActionButtons?: boolean | any;
22
+ };
23
+ export type StyledRootProps = ReferenceManyFieldProps & {
24
+ theme?: any;
25
+ bulkActionButtons?: boolean | any;
26
+ };
27
+ /**
28
+ * Consente di gestire la visualizzazione di una lista di record correlati ad un record principale.
29
+ * Questo componente è una versione customizzata del componente ReferenceManyField di React-Admin.
30
+ *
31
+ * Se vuoi visualizzare record e non mostrare l'elenco delle azioni disponibili (bulk action buttons)
32
+ * puoi impostare la prop bulkActionButtons a false e, successivamente, se utilizzi un componente interno di tipo <Datagrid />
33
+ * devi impostare la stessa proprietà, bulkActionButtons, a false (in questo modo viene completamente eliminato il padding
34
+ * superiore del componente <Datagrid />).
35
+ *
36
+ * @example
37
+ * import { ReferenceManyField, Datagrid } from '../..';
38
+ *
39
+ * const MyComponent = (props) => (
40
+ * <ReferenceManyField {...props} bulkActionButtons={false}>
41
+ * <Datagrid bulkActionButtons={false}>
42
+ * ...
43
+ * </Datagrid>
44
+ * </ReferenceManyField>
45
+ *
46
+ * @param props {ReferenceManyFieldProps}
47
+ * @returns {JSX.Element}
48
+ */
49
+ declare const ReferenceManyField: {
50
+ (props: ReferenceManyFieldProps): import("react/jsx-runtime").JSX.Element;
51
+ defaultProps: {
52
+ margin: boolean;
53
+ border: boolean;
54
+ };
55
+ propTypes: {
6
56
  margin: PropTypes.Requireable<boolean>;
7
57
  border: PropTypes.Requireable<boolean>;
8
58
  children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
@@ -22,6 +72,6 @@ declare namespace ReferenceManyField {
22
72
  }>>>;
23
73
  target: PropTypes.Validator<string>;
24
74
  };
25
- }
26
- import PropTypes from 'prop-types';
75
+ };
76
+ export default ReferenceManyField;
27
77
  //# sourceMappingURL=ReferenceManyField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReferenceManyField.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-fields/ReferenceManyField.jsx"],"names":[],"mappings":";AA6DA,yFAIC;;;;;;;;;;;;;;;;;;;;;;;;sBAjEqB,YAAY"}
1
+ {"version":3,"file":"ReferenceManyField.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-fields/ReferenceManyField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAA0D,uBAAuB,IAAI,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE3I,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,yBAAyB,GAAG;IAChE;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,uBAAuB,GAAG;IACtD,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,iBAAiB,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;CACnC,CAAC;AA2EF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,kBAAkB;YAAW,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;CAKzD,CAAC;AAaF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BaseForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/BaseForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,aAAa,CAAC;AAK9C,KAAK,cAAc,GAAG,SAAS,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AA6BF,iBAAS,QAAQ,CAAC,KAAK,EAAE,cAAc,2CAYtC;AAED,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"BaseForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/BaseForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,aAAa,CAAC;AAK9C,KAAK,cAAc,GAAG,SAAS,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AA8BF,iBAAS,QAAQ,CAAC,KAAK,EAAE,cAAc,2CAYtC;AAED,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -30,7 +30,10 @@ declare namespace ReferenceManyInput {
30
30
  order: PropTypes.Requireable<"ASC" | "DESC">;
31
31
  }>>>;
32
32
  };
33
- const defaultProps: any;
33
+ const defaultProps: {
34
+ margin: boolean;
35
+ border: boolean;
36
+ };
34
37
  }
35
38
  import PropTypes from 'prop-types';
36
39
  //# sourceMappingURL=ReferenceManyInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReferenceManyInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/ReferenceManyInput.jsx"],"names":[],"mappings":";AAMA;;;;;;;4CAWC;;;;;;;;;;;;;;;;;;;;;;;;;;sBAdqB,YAAY"}
1
+ {"version":3,"file":"ReferenceManyInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/ReferenceManyInput.jsx"],"names":[],"mappings":";AAMA;;;;;;;4CAWC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAdqB,YAAY"}