@applica-software-guru/react-admin 1.0.58 → 1.0.59
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/README.md +1 -1
- package/dist/ApplicaAdmin.d.ts +67 -1
- package/dist/ApplicaAdmin.d.ts.map +1 -1
- package/dist/components/MainIcon.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/ra-pages/LoginPage/AuthCard.d.ts +12 -0
- package/dist/components/ra-pages/LoginPage/AuthCard.d.ts.map +1 -0
- package/dist/components/ra-pages/LoginPage/AuthLogin.d.ts +6 -0
- package/dist/components/ra-pages/LoginPage/AuthLogin.d.ts.map +1 -0
- package/dist/components/ra-pages/LoginPage/AuthWrapper.d.ts +15 -0
- package/dist/components/ra-pages/LoginPage/AuthWrapper.d.ts.map +1 -0
- package/dist/components/ra-pages/LoginPage/Login.d.ts +34 -0
- package/dist/components/ra-pages/LoginPage/Login.d.ts.map +1 -0
- package/dist/components/ra-pages/LoginPage/index.d.ts +3 -0
- package/dist/components/ra-pages/LoginPage/index.d.ts.map +1 -0
- package/dist/components/ra-pages/index.d.ts +3 -0
- package/dist/components/ra-pages/index.d.ts.map +1 -0
- package/dist/react-admin.cjs.js +48 -48
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +7158 -7078
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +50 -50
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +5 -6
- package/src/ApplicaAdmin.tsx +83 -60
- package/src/components/MainIcon.jsx +4 -3
- package/src/components/index.jsx +1 -0
- package/src/components/ra-pages/LoginPage/AuthCard.jsx +33 -0
- package/src/components/ra-pages/LoginPage/AuthLogin.jsx +79 -0
- package/src/components/ra-pages/LoginPage/AuthWrapper.jsx +46 -0
- package/src/components/ra-pages/LoginPage/Login.tsx +61 -0
- package/src/components/ra-pages/LoginPage/index.jsx +3 -0
- package/src/components/ra-pages/index.ts +3 -0
- package/src/playground/App.jsx +2 -0
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Per avviare il progetto, segui questi passi:
|
|
|
22
22
|
|
|
23
23
|
- `nvm use` per impostare la versione di Node.js corretta;
|
|
24
24
|
- `npm install` per installare le dipendenze;
|
|
25
|
-
- `npm run
|
|
25
|
+
- `npm run dev` per avviare il playground in modalità sviluppo;
|
|
26
26
|
- divertiti a testare le componenti!
|
|
27
27
|
|
|
28
28
|
## Contribuire
|
package/dist/ApplicaAdmin.d.ts
CHANGED
|
@@ -1,19 +1,82 @@
|
|
|
1
1
|
import { AdminProps } from 'react-admin';
|
|
2
2
|
import { MenuProps } from 'src/types';
|
|
3
3
|
export type ApplicaAdminProps = AdminProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Eventuali configurazioni aggiuntive da passare al tema.
|
|
6
|
+
* @remarks Questo tema è basato su Mantis Theme (https://mantisdashboard.io/)
|
|
7
|
+
*
|
|
8
|
+
* @see https://marmelab.com/react-admin/Theming.html
|
|
9
|
+
* @see https://material-ui.com/customization/theming/
|
|
10
|
+
*/
|
|
4
11
|
theme: any;
|
|
12
|
+
/**
|
|
13
|
+
* URL dell'API da utilizzare nell'applicazione.
|
|
14
|
+
* Sebbene venga già definito un dataProvider ed authProvider di default, è possibile che l'app
|
|
15
|
+
* utilizzi l'apiUrl specificato per ulteriori operazioni (es. getstione delle notifiche).
|
|
16
|
+
*/
|
|
5
17
|
apiUrl: string;
|
|
18
|
+
/**
|
|
19
|
+
* La lingua di default da utilizzare nell'applicazione.
|
|
20
|
+
*/
|
|
6
21
|
defaultLocale: string;
|
|
22
|
+
/**
|
|
23
|
+
* Se impostato a true, l'applicazione lavora in modalità sviluppo.
|
|
24
|
+
* La modalità sviluppo è utile per effettuare test e debug ed esegue attività che non sono
|
|
25
|
+
* consigliate in produzione (es. cattura e inoltro dei messaggi non localizzati).
|
|
26
|
+
*/
|
|
7
27
|
development: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Il logo da visualizzare nella barra laterale quando il menu è espanso lateralmente.
|
|
30
|
+
*/
|
|
8
31
|
logoMain: any;
|
|
32
|
+
/**
|
|
33
|
+
* Eventuale logo da visualizzare nella barra laterale quando il menu è ridotto lateralmente.
|
|
34
|
+
*/
|
|
9
35
|
logoIcon: any;
|
|
36
|
+
/**
|
|
37
|
+
* Configurazione del menu da visualizzare nell'applicazione.
|
|
38
|
+
*/
|
|
10
39
|
menu: MenuProps;
|
|
40
|
+
/**
|
|
41
|
+
* Nome dell'applicazione da mostrare nell'header.
|
|
42
|
+
*/
|
|
11
43
|
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* Versione dell'applicazione da mostrare nel footer.
|
|
46
|
+
*/
|
|
12
47
|
version: string;
|
|
48
|
+
/**
|
|
49
|
+
* Il provider di autenticazione da utilizzare nell'applicazione.
|
|
50
|
+
*/
|
|
13
51
|
dataProvider: any;
|
|
52
|
+
/**
|
|
53
|
+
* Il provider di dati da utilizzare nell'applicazione.
|
|
54
|
+
*/
|
|
14
55
|
authProvider: any;
|
|
56
|
+
/**
|
|
57
|
+
* Indica il nome della risorsa REST da utilizzare per la gestione delle notifiche.
|
|
58
|
+
* @example
|
|
59
|
+
* // In questo caso, le notifiche verranno gestite tramite la risorsa "entities/notification"
|
|
60
|
+
* <ApplicaAdmin notification="entities/notification" />
|
|
61
|
+
*/
|
|
15
62
|
notification: string;
|
|
63
|
+
/**
|
|
64
|
+
* Indica se le notifiche devono essere disabilitate.
|
|
65
|
+
* Se le notifiche sono abilitate comparirà automaticamente un'icona in alto a destra nell'header.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* // In questo caso, le notifiche verranno disabilitate
|
|
69
|
+
* <ApplicaAdmin disableNotification />
|
|
70
|
+
*/
|
|
16
71
|
disableNotification: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Indica se la schermata di registrazione deve essere disabilitata.
|
|
74
|
+
*/
|
|
75
|
+
disableSignup: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Indica se la schermata di recupero password deve essere disabilitata.
|
|
78
|
+
*/
|
|
79
|
+
disableForgotPassword: boolean;
|
|
17
80
|
};
|
|
18
81
|
/**
|
|
19
82
|
* Definisce un'applicazione super figa basata su React Admi, Mantis Theme ed il nostro stile.
|
|
@@ -48,7 +111,7 @@ export type ApplicaAdminProps = AdminProps & {
|
|
|
48
111
|
* @returns {React.ReactElement}
|
|
49
112
|
*/
|
|
50
113
|
declare const ApplicaAdmin: {
|
|
51
|
-
({ theme, apiUrl, defaultLocale, development, logoMain, logoIcon, menu, name, version, dataProvider, authProvider, notification, disableNotification, ...props }: ApplicaAdminProps): import("react/jsx-runtime").JSX.Element | null;
|
|
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;
|
|
52
115
|
defaultProps: {
|
|
53
116
|
fileFields: never[];
|
|
54
117
|
defaultLocale: string;
|
|
@@ -56,6 +119,9 @@ declare const ApplicaAdmin: {
|
|
|
56
119
|
version: string;
|
|
57
120
|
notification: string;
|
|
58
121
|
disableNotification: boolean;
|
|
122
|
+
disableSignup: boolean;
|
|
123
|
+
disableForgotPassword: boolean;
|
|
124
|
+
loginPage: import("react/jsx-runtime").JSX.Element;
|
|
59
125
|
store: import("react-admin").Store;
|
|
60
126
|
title: string;
|
|
61
127
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicaAdmin.d.ts","sourceRoot":"","sources":["../../src/ApplicaAdmin.tsx"],"names":[],"mappings":"
|
|
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,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,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,GAAG,CAAC;IAClB;;OAEG;IACH,YAAY,EAAE,GAAG,CAAC;IAClB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;OAOG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,QAAA,MAAM,YAAY;uNAkBf,iBAAiB;;;;;;;;;;;;;;;CA0FnB,CAAC;AAkCF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainIcon.d.ts","sourceRoot":"","sources":["../../../src/components/MainIcon.jsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"MainIcon.d.ts","sourceRoot":"","sources":["../../../src/components/MainIcon.jsx"],"names":[],"mappings":";AAIA;;4CAUC;;;;;;sBAZqB,YAAY"}
|
|
@@ -6,6 +6,7 @@ export * from "./ra-inputs";
|
|
|
6
6
|
export * from "./ra-lists";
|
|
7
7
|
export * from "./ra-forms";
|
|
8
8
|
export * from "./ra-custom";
|
|
9
|
+
export * from "./ra-pages";
|
|
9
10
|
import MainIcon from './MainIcon';
|
|
10
11
|
import ActionsMenu from './ActionsMenu';
|
|
11
12
|
import Loadable from './Loadable';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.jsx"],"names":[],"mappings":";;;;;;;;;qBAMqB,YAAY;wBANT,eAAe;qBAElB,YAAY;mBACd,UAAU;mBAFV,UAAU;iBAGZ,QAAQ;qBACJ,YAAY;sBAIX,aAAa;oBACf,WAAW;4BAHH,eAAe;yBAClB,gBAAgB;sBAGnB,aAAa"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default AuthCard;
|
|
2
|
+
declare function AuthCard({ children, ...other }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
children: any;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace AuthCard {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
import PropTypes from 'prop-types';
|
|
12
|
+
//# sourceMappingURL=AuthCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-pages/LoginPage/AuthCard.jsx"],"names":[],"mappings":";AAKA;;;4CAqBC;;;;;;sBAxBqB,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthLogin.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-pages/LoginPage/AuthLogin.jsx"],"names":[],"mappings":";AAMA;;;4CAsEC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default AuthWrapper;
|
|
2
|
+
declare function AuthWrapper({ version, name, children }: {
|
|
3
|
+
version: any;
|
|
4
|
+
name: any;
|
|
5
|
+
children: any;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare namespace AuthWrapper {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
|
+
const version: PropTypes.Requireable<string>;
|
|
11
|
+
const name: PropTypes.Requireable<string>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import PropTypes from 'prop-types';
|
|
15
|
+
//# sourceMappingURL=AuthWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-pages/LoginPage/AuthWrapper.jsx"],"names":[],"mappings":";AAOA;;;;4CA8BC;;;;;;;;sBAhCqB,YAAY"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export type LoginProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Versione dell'applicazione.
|
|
5
|
+
*/
|
|
6
|
+
version: string;
|
|
7
|
+
/**
|
|
8
|
+
* Nome dell'applicazione.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Indica se abilitare o meno la schermata di recupero password.
|
|
13
|
+
*/
|
|
14
|
+
enablePasswordForgot?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Indica se abilitare o meno la schermata di registrazione.
|
|
17
|
+
*/
|
|
18
|
+
enableSignup?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare const Login: {
|
|
21
|
+
({ version, name, enablePasswordForgot, enableSignup }: LoginProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
propTypes: {
|
|
23
|
+
version: PropTypes.Validator<string>;
|
|
24
|
+
name: PropTypes.Validator<string>;
|
|
25
|
+
enablePasswordForgot: PropTypes.Requireable<boolean>;
|
|
26
|
+
enableSignup: PropTypes.Requireable<boolean>;
|
|
27
|
+
};
|
|
28
|
+
defaultProps: {
|
|
29
|
+
enablePasswordForgot: boolean;
|
|
30
|
+
enableSignup: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default Login;
|
|
34
|
+
//# sourceMappingURL=Login.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Login.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-pages/LoginPage/Login.tsx"],"names":[],"mappings":"AAKA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AACF,QAAA,MAAM,KAAK;4DAA2D,UAAU;;;;;;;;;;;CAqB/E,CAAC;AAaF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-pages/LoginPage/index.jsx"],"names":[],"mappings":";kBAAkB,SAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,CAAC"}
|