@applica-software-guru/react-admin 1.0.60 → 1.0.61

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
- import { AdminProps } from 'react-admin';
1
+ import { AdminProps, AuthProvider, DataProvider } from 'react-admin';
2
2
  import { MenuProps } from 'src/types';
3
3
  export type ApplicaAdminProps = AdminProps & {
4
4
  /**
@@ -48,13 +48,14 @@ export type ApplicaAdminProps = AdminProps & {
48
48
  /**
49
49
  * Il provider di autenticazione da utilizzare nell'applicazione.
50
50
  */
51
- dataProvider: any;
51
+ dataProvider: DataProvider;
52
52
  /**
53
53
  * Il provider di dati da utilizzare nell'applicazione.
54
54
  */
55
- authProvider: any;
55
+ authProvider: AuthProvider;
56
56
  /**
57
57
  * Indica il nome della risorsa REST da utilizzare per la gestione delle notifiche.
58
+ * @default "entities/notification"
58
59
  * @example
59
60
  * // In questo caso, le notifiche verranno gestite tramite la risorsa "entities/notification"
60
61
  * <ApplicaAdmin notification="entities/notification" />
@@ -65,18 +66,33 @@ export type ApplicaAdminProps = AdminProps & {
65
66
  * Se le notifiche sono abilitate comparirà automaticamente un'icona in alto a destra nell'header.
66
67
  *
67
68
  * @example
68
- * // In questo caso, le notifiche verranno disabilitate
69
- * <ApplicaAdmin disableNotification />
69
+ * <ApplicaAdmin enableNotification />
70
70
  */
71
- disableNotification: boolean;
71
+ enableNotification: boolean;
72
72
  /**
73
73
  * Indica se la schermata di registrazione deve essere disabilitata.
74
+ * Se abilitata è necessario registrare una pagina, nelle rotte, che punti a /register
75
+ *
76
+ * @example
77
+ * // Pagina di base realizzata da Applica
78
+ * import { RegisterPage } from '.';
79
+ * <CustomRoutes noLayout>
80
+ * <Route path="/register" component={RegisterPage} />
81
+ * </CustomRoutes>
74
82
  */
75
- disableSignup: boolean;
83
+ enableRegistration: boolean;
76
84
  /**
77
85
  * Indica se la schermata di recupero password deve essere disabilitata.
86
+ * Se abilitata è necessario registrare una pagina, nelle rotte, che punti a /recover
87
+ *
88
+ * @example
89
+ * // Pagina di base realizzata da Applica
90
+ * import { RecoverPage } from '.';
91
+ * <CustomRoutes noLayout>
92
+ * <Route path="/recover" component={RecoverPage} />
93
+ * </CustomRoutes>
78
94
  */
79
- disableForgotPassword: boolean;
95
+ enablePasswordRecover: boolean;
80
96
  };
81
97
  /**
82
98
  * Definisce un'applicazione super figa basata su React Admi, Mantis Theme ed il nostro stile.
@@ -111,16 +127,16 @@ export type ApplicaAdminProps = AdminProps & {
111
127
  * @returns {React.ReactElement}
112
128
  */
113
129
  declare const ApplicaAdmin: {
114
- ({ theme, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, version, dataProvider, authProvider, notification, disableNotification, disableSignup, disableForgotPassword, ...props }: ApplicaAdminProps): import("react/jsx-runtime").JSX.Element | null;
130
+ ({ theme, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, version, dataProvider, authProvider, notification, enableNotification, enableRegistration, enablePasswordRecover, ...props }: ApplicaAdminProps): import("react/jsx-runtime").JSX.Element | null;
115
131
  defaultProps: {
116
132
  fileFields: never[];
117
133
  defaultLocale: string;
118
134
  development: boolean;
119
135
  version: string;
120
136
  notification: string;
121
- disableNotification: boolean;
122
- disableSignup: boolean;
123
- disableForgotPassword: boolean;
137
+ enableNotification: boolean;
138
+ enableRegistration: boolean;
139
+ enableForgotPassword: boolean;
124
140
  loginPage: import("react/jsx-runtime").JSX.Element;
125
141
  store: import("react-admin").Store;
126
142
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicaAdmin.d.ts","sourceRoot":"","sources":["../../src/ApplicaAdmin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AA8BtC,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG;IAC3C;;;;;;OAMG;IACH,KAAK,EAAE,GAAG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AE,GAAG,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;;;;;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;CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,QAAA,MAAM,YAAY;2NAkBf,iBAAiB;;;;;;;;;;;;;;;CAgGnB,CAAC;AAkCF,eAAe,YAAY,CAAC"}
@@ -1,16 +1,16 @@
1
1
  export default HeaderContent;
2
- declare function HeaderContent({ logoMain, logoIcon, notification, disableNotification }: {
2
+ declare function HeaderContent({ logoMain, logoIcon, notification, enableNotification }: {
3
3
  logoMain: any;
4
4
  logoIcon: any;
5
5
  notification: any;
6
- disableNotification: any;
6
+ enableNotification: any;
7
7
  }): import("react/jsx-runtime").JSX.Element;
8
8
  declare namespace HeaderContent {
9
9
  namespace propTypes {
10
10
  const logoMain: PropTypes.Requireable<PropTypes.ReactNodeLike>;
11
11
  const logoIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
12
12
  const notification: PropTypes.Requireable<string>;
13
- const disableNotification: PropTypes.Requireable<boolean>;
13
+ const enableNotification: PropTypes.Requireable<boolean>;
14
14
  }
15
15
  }
16
16
  import PropTypes from 'prop-types';
@@ -1,11 +1,11 @@
1
1
  export default Header;
2
- declare function Header({ open, logoMain, logoIcon, handleDrawerToggle, notification, disableNotification }: {
2
+ declare function Header({ open, logoMain, logoIcon, handleDrawerToggle, notification, enableNotification }: {
3
3
  open: any;
4
4
  logoMain: any;
5
5
  logoIcon: any;
6
6
  handleDrawerToggle: any;
7
7
  notification: any;
8
- disableNotification: any;
8
+ enableNotification: any;
9
9
  }): import("react/jsx-runtime").JSX.Element;
10
10
  declare namespace Header {
11
11
  namespace propTypes {
@@ -14,7 +14,7 @@ declare namespace Header {
14
14
  const logoMain: PropTypes.Requireable<PropTypes.ReactNodeLike>;
15
15
  const logoIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
16
16
  const notification: PropTypes.Requireable<string>;
17
- const disableNotification: PropTypes.Requireable<boolean>;
17
+ const enableNotification: PropTypes.Requireable<boolean>;
18
18
  }
19
19
  }
20
20
  import PropTypes from 'prop-types';
@@ -1,12 +1,12 @@
1
1
  export default Layout;
2
- declare function Layout({ children, name, version, logoMain, logoIcon, notification, disableNotification }: {
2
+ declare function Layout({ children, name, version, logoMain, logoIcon, notification, enableNotification }: {
3
3
  children: any;
4
4
  name: any;
5
5
  version: any;
6
6
  logoMain: any;
7
7
  logoIcon: any;
8
8
  notification: any;
9
- disableNotification: any;
9
+ enableNotification: any;
10
10
  }): import("react/jsx-runtime").JSX.Element;
11
11
  declare namespace Layout {
12
12
  namespace propTypes {
@@ -16,7 +16,7 @@ declare namespace Layout {
16
16
  const logoMain: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
17
  const logoIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
18
18
  const notification: PropTypes.Requireable<string>;
19
- const disableNotification: PropTypes.Requireable<boolean>;
19
+ const enableNotification: PropTypes.Requireable<boolean>;
20
20
  }
21
21
  }
22
22
  import PropTypes from 'prop-types';
@@ -13,7 +13,7 @@ export type LoginPageProps = BaseAuthProps & {
13
13
  * <Route path="/recover" component={RecoverPage} />
14
14
  * </CustomRoutes>
15
15
  */
16
- enablePasswordForgot?: boolean;
16
+ enablePasswordRecover?: boolean;
17
17
  /**
18
18
  * Indica se abilitare o meno la schermata di registrazione.
19
19
  * Se abilitato è opportuno registrare una rotta a /register con un componente
@@ -26,7 +26,7 @@ export type LoginPageProps = BaseAuthProps & {
26
26
  * <Route path="/register" component={RegisterPage} />
27
27
  * </CustomRoutes>
28
28
  */
29
- enableRegister?: boolean;
29
+ enableRegistration?: boolean;
30
30
  /**
31
31
  * Indica la pagina a cui reindirizzare l'utente dopo il login.
32
32
  * Se non specificata viene utilizzata la home page di react-admin.
@@ -34,16 +34,16 @@ export type LoginPageProps = BaseAuthProps & {
34
34
  redirectTo: string;
35
35
  };
36
36
  declare const LoginPage: {
37
- ({ version, name, enablePasswordForgot, enableRegister, redirectTo, background }: LoginPageProps): import("react/jsx-runtime").JSX.Element;
37
+ ({ version, name, enablePasswordRecover, enableRegistration, redirectTo, background }: LoginPageProps): import("react/jsx-runtime").JSX.Element;
38
38
  propTypes: {
39
39
  version: PropTypes.Validator<string>;
40
40
  name: PropTypes.Validator<string>;
41
- enablePasswordForgot: PropTypes.Requireable<boolean>;
41
+ enablePasswordRecover: PropTypes.Requireable<boolean>;
42
42
  enableRegister: PropTypes.Requireable<boolean>;
43
43
  background: PropTypes.Requireable<PropTypes.ReactElementLike>;
44
44
  };
45
45
  defaultProps: {
46
- enablePasswordForgot: boolean;
46
+ enablePasswordRecover: boolean;
47
47
  enableRegister: boolean;
48
48
  background: import("react/jsx-runtime").JSX.Element;
49
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"LoginPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/LoginPage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,QAAA,MAAM,SAAS;sFAAqF,cAAc;;;;;;;;;;;;;CA6FjH,CAAC;AAeF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"LoginPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/LoginPage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C;;;;;;;;;;;OAWG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,QAAA,MAAM,SAAS;2FAA0F,cAAc;;;;;;;;;;;;;CA6FtH,CAAC;AAeF,eAAe,SAAS,CAAC"}