@applica-software-guru/react-admin 1.3.171 → 1.3.173

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.
@@ -125,6 +125,10 @@ export type ApplicaAdminProps = AdminProps & {
125
125
  * This image must be a component with absolute positioning.
126
126
  */
127
127
  background?: React.ReactNode;
128
+ /**
129
+ * Indicates whether the theme toggler should be displayed.
130
+ */
131
+ enableThemeToggler: boolean;
128
132
  };
129
133
  /**
130
134
  * Define a basic super cool application based on React Admin, Mantis Theme and our style.
@@ -134,7 +138,7 @@ export type ApplicaAdminProps = AdminProps & {
134
138
  * @returns {React.ReactElement}
135
139
  */
136
140
  declare const ApplicaAdmin: {
137
- ({ theme, themeConfig, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, copy, version, dataProvider, authProvider, errorHandler, error, notification, enableNotification, enableRegistration, enablePasswordRecover, queryClient, background, ...props }: ApplicaAdminProps): import("react/jsx-runtime").JSX.Element;
141
+ ({ theme, themeConfig, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, copy, version, dataProvider, authProvider, errorHandler, error, notification, enableNotification, enableRegistration, enablePasswordRecover, queryClient, background, enableThemeToggler, ...props }: ApplicaAdminProps): import("react/jsx-runtime").JSX.Element;
138
142
  defaultProps: {
139
143
  fileFields: never[];
140
144
  defaultLocale: string;
@@ -146,6 +150,7 @@ declare const ApplicaAdmin: {
146
150
  enableForgotPassword: boolean;
147
151
  loginPage: import("react/jsx-runtime").JSX.Element;
148
152
  queryClient: QueryClient;
153
+ enableThemeToggler: boolean;
149
154
  store: import("react-admin").Store;
150
155
  title: string;
151
156
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicaAdmin.d.ts","sourceRoot":"","sources":["../../src/ApplicaAdmin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAwD,WAAW,EAAu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,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,YAAY;gTAyBf,iBAAiB;;;;;;;;;;;;;;;;;CAmGnB,CAAC;AAsCF,eAAe,YAAY,CAAC"}
@@ -5,12 +5,14 @@ type ILayoutProps = React.PropsWithChildren<{
5
5
  version: string;
6
6
  copy?: string;
7
7
  error?: React.ComponentType<ErrorProps>;
8
+ enableThemeToggler: boolean;
8
9
  }>;
9
10
  declare const Layout: import("react").ForwardRefExoticComponent<{
10
11
  name: string;
11
12
  version: string;
12
13
  copy?: string | undefined;
13
14
  error?: import("react").ComponentType<ErrorProps> | undefined;
15
+ enableThemeToggler: boolean;
14
16
  } & {
15
17
  children?: import("react").ReactNode;
16
18
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Layout.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AAQhE,KAAK,YAAY,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CACzC,CAAC,CAAC;AAEH,QAAA,MAAM,MAAM;UANJ,MAAM;aACH,MAAM;;;;;;;;;;2CA4Cf,CAAC;AAEH,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Layout.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AAQhE,KAAK,YAAY,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACxC,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAAC,CAAC;AAEH,QAAA,MAAM,MAAM;UAPJ,MAAM;aACH,MAAM;;;wBAGK,OAAO;;;;;;;;2CA0C3B,CAAC;AAEH,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -6,18 +6,25 @@ export type AttachmentFieldProps = BaseAttachmentFieldProps & {
6
6
  property?: string;
7
7
  disabled?: boolean;
8
8
  /**
9
- * Consente di definire la risorsa base da utilizzare, per le chiamate REST, per recuperare i dati dell'utente associato al singolo allegato.
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;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,eAAe;+DAAgF,oBAAoB;;;;;;;;;;;;;;;;;;;;CA4DxH,CAAC;AAUF,eAAe,eAAe,CAAC"}
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"}