@axelor/aos-mobile-core 6.5.2 → 7.0.1
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/lib/api/login-api.d.ts +4 -1
- package/lib/api/login-api.js +5 -2
- package/lib/api/login-api.js.map +1 -1
- package/lib/api/mail-message-api.js +3 -1
- package/lib/api/mail-message-api.js.map +1 -1
- package/lib/api/mobile-config-api.js +3 -1
- package/lib/api/mobile-config-api.js.map +1 -1
- package/lib/api/traceback-api.d.ts +1 -1
- package/lib/api/traceback-api.js +5 -3
- package/lib/api/traceback-api.js.map +1 -1
- package/lib/apiProviders/Action/ActionApiProvider.d.ts +1 -0
- package/lib/apiProviders/Action/AosActionApi.d.ts +1 -0
- package/lib/apiProviders/Action/AosActionApi.js +14 -5
- package/lib/apiProviders/Action/AosActionApi.js.map +1 -1
- package/lib/apiProviders/Action/GatewayActionApi.d.ts +1 -0
- package/lib/apiProviders/Action/GatewayActionApi.js +18 -15
- package/lib/apiProviders/Action/GatewayActionApi.js.map +1 -1
- package/lib/apiProviders/Action/index.d.ts +1 -1
- package/lib/apiProviders/Action/utils.d.ts +10 -1
- package/lib/apiProviders/Model/AopModelApi.d.ts +14 -7
- package/lib/apiProviders/Model/AopModelApi.js +21 -8
- package/lib/apiProviders/Model/AopModelApi.js.map +1 -1
- package/lib/apiProviders/Model/GatewayModelApi.d.ts +18 -7
- package/lib/apiProviders/Model/GatewayModelApi.js +37 -22
- package/lib/apiProviders/Model/GatewayModelApi.js.map +1 -1
- package/lib/apiProviders/Model/ModelApiProvider.d.ts +16 -10
- package/lib/apiProviders/Model/utils.d.ts +6 -1
- package/lib/apiProviders/Standard/ObjectFieldsProvider.js +2 -1
- package/lib/apiProviders/Standard/ObjectFieldsProvider.js.map +1 -1
- package/lib/apiProviders/config.d.ts +4 -0
- package/lib/apiProviders/config.js +22 -0
- package/lib/apiProviders/config.js.map +1 -0
- package/lib/apiProviders/index.d.ts +1 -1
- package/lib/apiProviders/index.js +1 -1
- package/lib/apiProviders/index.js.map +1 -1
- package/lib/apiProviders/utils.d.ts +15 -1
- package/lib/apiProviders/utils.js +70 -7
- package/lib/apiProviders/utils.js.map +1 -1
- package/lib/app/Application.d.ts +10 -10
- package/lib/app/Application.js +10 -2
- package/lib/app/Application.js.map +1 -1
- package/lib/app/ContextedApplication.d.ts +5 -11
- package/lib/app/ContextedApplication.js +14 -8
- package/lib/app/ContextedApplication.js.map +1 -1
- package/lib/app/ContextsProvider.d.ts +5 -2
- package/lib/app/ContextsProvider.js +7 -4
- package/lib/app/ContextsProvider.js.map +1 -1
- package/lib/app/RootNavigator.d.ts +1 -2
- package/lib/app/RootNavigator.js +25 -33
- package/lib/app/RootNavigator.js.map +1 -1
- package/lib/app/types.d.ts +14 -0
- package/lib/app/types.js +19 -0
- package/lib/app/types.js.map +1 -0
- package/lib/auth/api/config-api.js +10 -11
- package/lib/auth/api/config-api.js.map +1 -1
- package/lib/auth/hooks/use-auth-headers.js +35 -2
- package/lib/auth/hooks/use-auth-headers.js.map +1 -1
- package/lib/auth/i18n/en.json +14 -1
- package/lib/auth/i18n/fr.json +13 -0
- package/lib/auth/screens/SettingsScreen.d.ts +1 -2
- package/lib/auth/screens/SettingsScreen.js +14 -9
- package/lib/auth/screens/SettingsScreen.js.map +1 -1
- package/lib/auth/screens/UserScreen.d.ts +1 -2
- package/lib/auth/screens/UserScreen.js +13 -10
- package/lib/auth/screens/UserScreen.js.map +1 -1
- package/lib/components/external/Camera/Camera.js +6 -3
- package/lib/components/external/Camera/Camera.js.map +1 -1
- package/lib/components/external/CameraScanner/CameraScanner.js +6 -3
- package/lib/components/external/CameraScanner/CameraScanner.js.map +1 -1
- package/lib/components/external/PlanningView/PlanningView.d.ts +3 -1
- package/lib/components/external/PlanningView/PlanningView.js +35 -4
- package/lib/components/external/PlanningView/PlanningView.js.map +1 -1
- package/lib/components/external/Scanner/Scanner.js +21 -17
- package/lib/components/external/Scanner/Scanner.js.map +1 -1
- package/lib/components/external/Stopwatch/Stopwatch.d.ts +2 -1
- package/lib/components/external/Stopwatch/Stopwatch.js +20 -12
- package/lib/components/external/Stopwatch/Stopwatch.js.map +1 -1
- package/lib/components/molecules/ErrorText/ErrorText.d.ts +2 -1
- package/lib/components/molecules/ErrorText/ErrorText.js +8 -2
- package/lib/components/molecules/ErrorText/ErrorText.js.map +1 -1
- package/lib/components/molecules/HeaderBand/HeaderBand.d.ts +8 -0
- package/lib/components/molecules/HeaderBand/HeaderBand.js +51 -0
- package/lib/components/molecules/HeaderBand/HeaderBand.js.map +1 -0
- package/lib/components/molecules/HeaderOptionsMenuItem/HeaderOptionMenuItem.d.ts +2 -1
- package/lib/components/molecules/HeaderOptionsMenuItem/HeaderOptionMenuItem.js +13 -4
- package/lib/components/molecules/HeaderOptionsMenuItem/HeaderOptionMenuItem.js.map +1 -1
- package/lib/components/molecules/LoginButton/LoginButton.d.ts +2 -1
- package/lib/components/molecules/LoginButton/LoginButton.js +8 -4
- package/lib/components/molecules/LoginButton/LoginButton.js.map +1 -1
- package/lib/components/molecules/SessionNumberIndicator/SessionNumberIndicator.d.ts +4 -0
- package/lib/components/molecules/SessionNumberIndicator/SessionNumberIndicator.js +44 -0
- package/lib/components/molecules/SessionNumberIndicator/SessionNumberIndicator.js.map +1 -0
- package/lib/components/molecules/index.d.ts +2 -0
- package/lib/components/molecules/index.js +2 -0
- package/lib/components/molecules/index.js.map +1 -1
- package/lib/components/organisms/DateInput/DateInput.js +16 -6
- package/lib/components/organisms/DateInput/DateInput.js.map +1 -1
- package/lib/components/organisms/HeaderBandList/HeaderBandList.d.ts +2 -0
- package/lib/components/organisms/HeaderBandList/HeaderBandList.js +36 -0
- package/lib/components/organisms/HeaderBandList/HeaderBandList.js.map +1 -0
- package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.js +3 -3
- package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.js.map +1 -1
- package/lib/components/organisms/LogoImage/LogoImage.d.ts +4 -2
- package/lib/components/organisms/LogoImage/LogoImage.js +34 -22
- package/lib/components/organisms/LogoImage/LogoImage.js.map +1 -1
- package/lib/components/organisms/PasswordInput/PasswordInput.d.ts +2 -1
- package/lib/components/organisms/PasswordInput/PasswordInput.js +8 -5
- package/lib/components/organisms/PasswordInput/PasswordInput.js.map +1 -1
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.d.ts +9 -2
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.js +5 -3
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.js.map +1 -1
- package/lib/components/organisms/SessionButtons/SessionButtons.d.ts +17 -0
- package/lib/components/organisms/SessionButtons/SessionButtons.js +90 -0
- package/lib/components/organisms/SessionButtons/SessionButtons.js.map +1 -0
- package/lib/components/organisms/SessionNameInput/SessionNameInput.d.ts +8 -0
- package/lib/components/organisms/SessionNameInput/SessionNameInput.js +36 -0
- package/lib/components/organisms/SessionNameInput/SessionNameInput.js.map +1 -0
- package/lib/components/organisms/UrlInput/UrlInput.d.ts +3 -1
- package/lib/components/organisms/UrlInput/UrlInput.js +6 -4
- package/lib/components/organisms/UrlInput/UrlInput.js.map +1 -1
- package/lib/components/organisms/UsernameInput/UsernameInput.d.ts +3 -1
- package/lib/components/organisms/UsernameInput/UsernameInput.js +6 -4
- package/lib/components/organisms/UsernameInput/UsernameInput.js.map +1 -1
- package/lib/components/organisms/index.d.ts +3 -1
- package/lib/components/organisms/index.js +3 -1
- package/lib/components/organisms/index.js.map +1 -1
- package/lib/components/templates/AttachedFilesView/AttachedFilesView.js +4 -5
- package/lib/components/templates/AttachedFilesView/AttachedFilesView.js.map +1 -1
- package/lib/components/templates/PopupCreateSession/PopupCreateSession.d.ts +10 -0
- package/lib/components/templates/PopupCreateSession/PopupCreateSession.js +171 -0
- package/lib/components/templates/PopupCreateSession/PopupCreateSession.js.map +1 -0
- package/lib/components/templates/PopupMinimalRequiredVersion/PopupMinimalRequiredVersion.d.ts +5 -0
- package/lib/components/templates/PopupMinimalRequiredVersion/PopupMinimalRequiredVersion.js +64 -0
- package/lib/components/templates/PopupMinimalRequiredVersion/PopupMinimalRequiredVersion.js.map +1 -0
- package/lib/components/templates/PopupSession/PopupSession.d.ts +8 -0
- package/lib/components/templates/PopupSession/PopupSession.js +135 -0
- package/lib/components/templates/PopupSession/PopupSession.js.map +1 -0
- package/lib/components/templates/PopupSessionList/PopupSessionList.d.ts +7 -0
- package/lib/components/templates/PopupSessionList/PopupSessionList.js +107 -0
- package/lib/components/templates/PopupSessionList/PopupSessionList.js.map +1 -0
- package/lib/components/templates/index.d.ts +4 -0
- package/lib/components/templates/index.js +4 -0
- package/lib/components/templates/index.js.map +1 -1
- package/lib/config/RouterProvider.d.ts +8 -0
- package/lib/config/RouterProvider.js +49 -0
- package/lib/config/RouterProvider.js.map +1 -0
- package/lib/config/index.d.ts +1 -0
- package/lib/config/index.js +19 -0
- package/lib/config/index.js.map +1 -0
- package/lib/config/routes.d.ts +31 -0
- package/lib/config/routes.js +41 -0
- package/lib/config/routes.js.map +1 -0
- package/lib/features/authSlice.d.ts +31 -14
- package/lib/features/authSlice.js +29 -6
- package/lib/features/authSlice.js.map +1 -1
- package/lib/header/HeaderActionsProvider.js +1 -1
- package/lib/header/HeaderActionsProvider.js.map +1 -1
- package/lib/header/HeaderBandContext.d.ts +10 -0
- package/lib/header/HeaderBandContext.js +58 -0
- package/lib/header/HeaderBandContext.js.map +1 -0
- package/lib/header/header-band-context.helper.d.ts +5 -0
- package/lib/header/header-band-context.helper.js +44 -0
- package/lib/header/header-band-context.helper.js.map +1 -0
- package/lib/header/index.d.ts +3 -1
- package/lib/header/index.js +2 -0
- package/lib/header/index.js.map +1 -1
- package/lib/header/types.d.ts +10 -0
- package/lib/i18n/translations/en.json +6 -1
- package/lib/i18n/translations/fr.json +6 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/navigator/Navigator.d.ts +3 -2
- package/lib/navigator/Navigator.js +14 -4
- package/lib/navigator/Navigator.js.map +1 -1
- package/lib/navigator/drawer/DrawerContent.d.ts +3 -2
- package/lib/navigator/drawer/DrawerContent.js +29 -6
- package/lib/navigator/drawer/DrawerContent.js.map +1 -1
- package/lib/navigator/drawer/Header.js +6 -3
- package/lib/navigator/drawer/Header.js.map +1 -1
- package/lib/navigator/drawer/MenuIconButton.js +6 -2
- package/lib/navigator/drawer/MenuIconButton.js.map +1 -1
- package/lib/navigator/module.helper.js +1 -1
- package/lib/navigator/module.helper.js.map +1 -1
- package/lib/screens/LoginScreen.js +76 -52
- package/lib/screens/LoginScreen.js.map +1 -1
- package/lib/screens/SessionManagementScreen.d.ts +4 -0
- package/lib/screens/SessionManagementScreen.js +97 -0
- package/lib/screens/SessionManagementScreen.js.map +1 -0
- package/lib/sessions/SessionStorage.d.ts +22 -0
- package/lib/sessions/SessionStorage.js +93 -0
- package/lib/sessions/SessionStorage.js.map +1 -0
- package/lib/sessions/hook.d.ts +5 -0
- package/lib/sessions/hook.js +37 -0
- package/lib/sessions/hook.js.map +1 -0
- package/lib/sessions/index.d.ts +4 -0
- package/lib/sessions/index.js +22 -0
- package/lib/sessions/index.js.map +1 -0
- package/lib/sessions/type.d.ts +7 -0
- package/lib/{utils/storage-keys.js → sessions/type.js} +1 -1
- package/lib/sessions/type.js.map +1 -0
- package/lib/sessions/utils.d.ts +4 -0
- package/lib/sessions/utils.js +34 -0
- package/lib/sessions/utils.js.map +1 -0
- package/lib/utils/api.js +1 -3
- package/lib/utils/api.js.map +1 -1
- package/lib/utils/filter.js +6 -8
- package/lib/utils/filter.js.map +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/list.d.ts +0 -1
- package/lib/utils/list.js +0 -13
- package/lib/utils/list.js.map +1 -1
- package/lib/utils/object.js +1 -1
- package/lib/utils/object.js.map +1 -1
- package/lib/utils/string.js +2 -2
- package/lib/utils/string.js.map +1 -1
- package/package.json +5 -5
- package/lib/components/organisms/AutoCompleteSearchInput/AutoCompleteSearchInput.d.ts +0 -19
- package/lib/components/organisms/AutoCompleteSearchInput/AutoCompleteSearchInput.js +0 -58
- package/lib/components/organisms/AutoCompleteSearchInput/AutoCompleteSearchInput.js.map +0 -1
- package/lib/utils/storage-keys.d.ts +0 -1
- package/lib/utils/storage-keys.js.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export { default as RouterProvider } from './RouterProvider';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default routes;
|
|
2
|
+
declare namespace routes {
|
|
3
|
+
namespace AOS6 {
|
|
4
|
+
const App: string;
|
|
5
|
+
const AppBase: string;
|
|
6
|
+
const AppCrm: string;
|
|
7
|
+
const TraceBack: string;
|
|
8
|
+
const AppSupplychain: string;
|
|
9
|
+
const EmailAddress: string;
|
|
10
|
+
const AppMobileSettings: string;
|
|
11
|
+
const MailMessages: string;
|
|
12
|
+
}
|
|
13
|
+
namespace AOS7 {
|
|
14
|
+
const App_1: string;
|
|
15
|
+
export { App_1 as App };
|
|
16
|
+
const AppBase_1: string;
|
|
17
|
+
export { AppBase_1 as AppBase };
|
|
18
|
+
const AppCrm_1: string;
|
|
19
|
+
export { AppCrm_1 as AppCrm };
|
|
20
|
+
const TraceBack_1: string;
|
|
21
|
+
export { TraceBack_1 as TraceBack };
|
|
22
|
+
const AppSupplychain_1: string;
|
|
23
|
+
export { AppSupplychain_1 as AppSupplychain };
|
|
24
|
+
const EmailAddress_1: string;
|
|
25
|
+
export { EmailAddress_1 as EmailAddress };
|
|
26
|
+
const AppMobileSettings_1: string;
|
|
27
|
+
export { AppMobileSettings_1 as AppMobileSettings };
|
|
28
|
+
const MailMessages_1: string;
|
|
29
|
+
export { MailMessages_1 as MailMessages };
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
const routes = {
|
|
19
|
+
AOS6: {
|
|
20
|
+
App: '/ws/rest/com.axelor.apps.base.db.App',
|
|
21
|
+
AppBase: '/ws/rest/com.axelor.apps.base.db.AppBase',
|
|
22
|
+
AppCrm: '/ws/rest/com.axelor.apps.base.db.AppCrm',
|
|
23
|
+
TraceBack: '/ws/rest/com.axelor.exception.db.TraceBack',
|
|
24
|
+
AppSupplychain: '/ws/rest/com.axelor.apps.base.db.AppSupplychain',
|
|
25
|
+
EmailAddress: '/ws/rest/com.axelor.apps.message.db.EmailAddress',
|
|
26
|
+
AppMobileSettings: '/ws/rest/com.axelor.apps.base.db.AppMobileSettings',
|
|
27
|
+
MailMessages: '/ws/rest/com.axelor.mail.db.MailMessage/messages',
|
|
28
|
+
},
|
|
29
|
+
AOS7: {
|
|
30
|
+
App: '/ws/rest/com.axelor.studio.db.App',
|
|
31
|
+
AppBase: '/ws/rest/com.axelor.studio.db.AppBase',
|
|
32
|
+
AppCrm: '/ws/rest/com.axelor.studio.db.AppCrm',
|
|
33
|
+
TraceBack: '/ws/rest/com.axelor.apps.base.db.TraceBack',
|
|
34
|
+
AppSupplychain: ' /ws/rest/com.axelor.studio.db.AppSupplychain',
|
|
35
|
+
EmailAddress: '/ws/rest/com.axelor.message.db.EmailAddress',
|
|
36
|
+
AppMobileSettings: '/ws/rest/com.axelor.studio.db.AppMobileSettings',
|
|
37
|
+
MailMessages: '/ws/messages',
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
export default routes;
|
|
41
|
+
//# sourceMappingURL=routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../src/config/routes.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,MAAM,GAAG;IACb,IAAI,EAAE;QACJ,GAAG,EAAE,sCAAsC;QAC3C,OAAO,EAAE,0CAA0C;QACnD,MAAM,EAAE,yCAAyC;QACjD,SAAS,EAAE,4CAA4C;QACvD,cAAc,EAAE,iDAAiD;QACjE,YAAY,EAAE,kDAAkD;QAChE,iBAAiB,EAAE,oDAAoD;QACvE,YAAY,EAAE,kDAAkD;KACjE;IACD,IAAI,EAAE;QACJ,GAAG,EAAE,mCAAmC;QACxC,OAAO,EAAE,uCAAuC;QAChD,MAAM,EAAE,sCAAsC;QAC9C,SAAS,EAAE,4CAA4C;QACvD,cAAc,EAAE,+CAA+C;QAC/D,YAAY,EAAE,6CAA6C;QAC3D,iBAAiB,EAAE,iDAAiD;QACpE,YAAY,EAAE,cAAc;KAC7B;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -5,6 +5,7 @@ export const login: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
5
5
|
userId: any;
|
|
6
6
|
requestInterceptorId: number;
|
|
7
7
|
responseInterceptorId: number;
|
|
8
|
+
applicationMode: any;
|
|
8
9
|
}, void, {
|
|
9
10
|
state?: unknown;
|
|
10
11
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
|
|
@@ -15,6 +16,16 @@ export const login: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
15
16
|
fulfilledMeta?: unknown;
|
|
16
17
|
rejectedMeta?: unknown;
|
|
17
18
|
}>;
|
|
19
|
+
export const isUrlValid: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
20
|
+
state?: unknown;
|
|
21
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
|
|
22
|
+
extra?: unknown;
|
|
23
|
+
rejectValue?: unknown;
|
|
24
|
+
serializedErrorType?: unknown;
|
|
25
|
+
pendingMeta?: unknown;
|
|
26
|
+
fulfilledMeta?: unknown;
|
|
27
|
+
rejectedMeta?: unknown;
|
|
28
|
+
}>;
|
|
18
29
|
export const logout: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
19
30
|
state?: unknown;
|
|
20
31
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
|
|
@@ -25,17 +36,7 @@ export const logout: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
|
25
36
|
fulfilledMeta?: unknown;
|
|
26
37
|
rejectedMeta?: unknown;
|
|
27
38
|
}>;
|
|
28
|
-
export const authSlice: import("@reduxjs/toolkit").Slice<{
|
|
29
|
-
loading: boolean;
|
|
30
|
-
logged: boolean;
|
|
31
|
-
userId: any;
|
|
32
|
-
baseUrl: any;
|
|
33
|
-
token: any;
|
|
34
|
-
jsessionId: any;
|
|
35
|
-
requestInterceptorId: any;
|
|
36
|
-
responseInterceptorId: any;
|
|
37
|
-
error: any;
|
|
38
|
-
}, import("@reduxjs/toolkit").SliceCaseReducers<{
|
|
39
|
+
export const authSlice: import("@reduxjs/toolkit").Slice<import("immer/dist/internal").WritableDraft<{
|
|
39
40
|
loading: boolean;
|
|
40
41
|
logged: boolean;
|
|
41
42
|
userId: any;
|
|
@@ -44,9 +45,24 @@ export const authSlice: import("@reduxjs/toolkit").Slice<{
|
|
|
44
45
|
jsessionId: any;
|
|
45
46
|
requestInterceptorId: any;
|
|
46
47
|
responseInterceptorId: any;
|
|
48
|
+
applicationMode: any;
|
|
47
49
|
error: any;
|
|
48
|
-
}>,
|
|
49
|
-
|
|
50
|
+
}>, {
|
|
51
|
+
clearError: (state: import("immer/dist/internal").WritableDraft<{
|
|
52
|
+
loading: boolean;
|
|
53
|
+
logged: boolean;
|
|
54
|
+
userId: any;
|
|
55
|
+
baseUrl: any;
|
|
56
|
+
token: any;
|
|
57
|
+
jsessionId: any;
|
|
58
|
+
requestInterceptorId: any;
|
|
59
|
+
responseInterceptorId: any;
|
|
60
|
+
applicationMode: any;
|
|
61
|
+
error: any;
|
|
62
|
+
}>) => void;
|
|
63
|
+
}, "auth">;
|
|
64
|
+
export const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/clearError">;
|
|
65
|
+
export const authReducer: import("redux").Reducer<import("immer/dist/internal").WritableDraft<{
|
|
50
66
|
loading: boolean;
|
|
51
67
|
logged: boolean;
|
|
52
68
|
userId: any;
|
|
@@ -55,5 +71,6 @@ export const authReducer: import("redux").Reducer<{
|
|
|
55
71
|
jsessionId: any;
|
|
56
72
|
requestInterceptorId: any;
|
|
57
73
|
responseInterceptorId: any;
|
|
74
|
+
applicationMode: any;
|
|
58
75
|
error: any;
|
|
59
|
-
}
|
|
76
|
+
}>, import("redux").AnyAction>;
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
19
19
|
import axios from 'axios';
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
20
|
+
import { getActiveUserInfo, loginApi } from '../api/login-api';
|
|
21
|
+
import { saveUrlInStorage } from '../sessions';
|
|
22
|
+
import { checkNullString } from '../utils';
|
|
22
23
|
import { testUrl } from '../utils/api';
|
|
23
|
-
import { URL_STORAGE_KEY } from '../utils/storage-keys';
|
|
24
24
|
export const login = createAsyncThunk('auth/login', async ({ url, username, password }) => {
|
|
25
25
|
const urlWithProtocol = await testUrl(url);
|
|
26
26
|
const { token, jsessionId, requestInterceptorId, responseInterceptorId } = await loginApi(urlWithProtocol, username, password);
|
|
27
|
-
const userId = await
|
|
28
|
-
|
|
27
|
+
const { userId, applicationMode } = await getActiveUserInfo();
|
|
28
|
+
saveUrlInStorage(urlWithProtocol);
|
|
29
29
|
return {
|
|
30
30
|
url: urlWithProtocol,
|
|
31
31
|
token,
|
|
@@ -33,8 +33,16 @@ export const login = createAsyncThunk('auth/login', async ({ url, username, pass
|
|
|
33
33
|
userId,
|
|
34
34
|
requestInterceptorId,
|
|
35
35
|
responseInterceptorId,
|
|
36
|
+
applicationMode,
|
|
36
37
|
};
|
|
37
38
|
});
|
|
39
|
+
export const isUrlValid = createAsyncThunk('auth/isUrlValid', async ({ url }) => {
|
|
40
|
+
if (!checkNullString(url)) {
|
|
41
|
+
const urlWithProtocol = await testUrl(url);
|
|
42
|
+
return urlWithProtocol;
|
|
43
|
+
}
|
|
44
|
+
return url;
|
|
45
|
+
});
|
|
38
46
|
export const logout = createAsyncThunk('auth/logout', async function (data, { getState }) {
|
|
39
47
|
const { requestInterceptorId, responseInterceptorId } = getState()?.auth;
|
|
40
48
|
axios.interceptors.request.eject(requestInterceptorId);
|
|
@@ -50,11 +58,17 @@ const initialState = {
|
|
|
50
58
|
jsessionId: null,
|
|
51
59
|
requestInterceptorId: null,
|
|
52
60
|
responseInterceptorId: null,
|
|
61
|
+
applicationMode: null,
|
|
53
62
|
error: null,
|
|
54
63
|
};
|
|
55
64
|
export const authSlice = createSlice({
|
|
56
65
|
name: 'auth',
|
|
57
66
|
initialState,
|
|
67
|
+
reducers: {
|
|
68
|
+
clearError: state => {
|
|
69
|
+
state.error = null;
|
|
70
|
+
},
|
|
71
|
+
},
|
|
58
72
|
extraReducers: builder => {
|
|
59
73
|
builder.addCase(login.pending, state => {
|
|
60
74
|
state.logged = false;
|
|
@@ -64,7 +78,7 @@ export const authSlice = createSlice({
|
|
|
64
78
|
state.error = null;
|
|
65
79
|
});
|
|
66
80
|
builder.addCase(login.fulfilled, (state, action) => {
|
|
67
|
-
const { url, token, jsessionId, userId, requestInterceptorId, responseInterceptorId, } = action.payload;
|
|
81
|
+
const { url, token, jsessionId, userId, requestInterceptorId, responseInterceptorId, applicationMode, } = action.payload;
|
|
68
82
|
state.logged = token != null;
|
|
69
83
|
state.loading = false;
|
|
70
84
|
state.userId = userId;
|
|
@@ -74,11 +88,18 @@ export const authSlice = createSlice({
|
|
|
74
88
|
state.error = null;
|
|
75
89
|
state.requestInterceptorId = requestInterceptorId;
|
|
76
90
|
state.responseInterceptorId = responseInterceptorId;
|
|
91
|
+
state.applicationMode = applicationMode;
|
|
77
92
|
});
|
|
78
93
|
builder.addCase(login.rejected, (state, action) => {
|
|
79
94
|
state.loading = false;
|
|
80
95
|
state.error = { ...action.error, url: action.meta?.arg?.url };
|
|
81
96
|
});
|
|
97
|
+
builder.addCase(isUrlValid.fulfilled, (state, action) => {
|
|
98
|
+
state.error = null;
|
|
99
|
+
});
|
|
100
|
+
builder.addCase(isUrlValid.rejected, (state, action) => {
|
|
101
|
+
state.error = { ...action.error, url: action.meta?.arg?.url };
|
|
102
|
+
});
|
|
82
103
|
builder.addCase(logout.fulfilled, state => {
|
|
83
104
|
state.logged = false;
|
|
84
105
|
state.loading = false;
|
|
@@ -88,8 +109,10 @@ export const authSlice = createSlice({
|
|
|
88
109
|
state.error = null;
|
|
89
110
|
state.requestInterceptorId = null;
|
|
90
111
|
state.responseInterceptorId = null;
|
|
112
|
+
state.applicationMode = null;
|
|
91
113
|
});
|
|
92
114
|
},
|
|
93
115
|
});
|
|
116
|
+
export const { clearError } = authSlice.actions;
|
|
94
117
|
export const authReducer = authSlice.reducer;
|
|
95
118
|
//# sourceMappingURL=authSlice.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authSlice.js","sourceRoot":"","sources":["../../src/features/authSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"authSlice.js","sourceRoot":"","sources":["../../src/features/authSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,iBAAiB,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAErC,MAAM,CAAC,MAAM,KAAK,GAAG,gBAAgB,CACnC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G,OAAO;gBACV,OAAO,EAAE,YAAY,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;aAC3D,CAAC;SACH;QACD,IAAI,CAAC,WAAW,EAAE,CAAC;IACrB,CAAC;IAED,gBAAgB,CAAC,GAAW;QAC1B,OAAO,uBAAuB,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IAC1D,CAAC;CACF;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,qBAAqB,EAAE,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAgB,EAAE,EAAE;IACnD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,EAAE,CAAC;IAEvC,SAAS,CAAC,GAAG,EAAE;QACb,qBAAqB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,uBAAuB,GAAG,WAAW,CACzC,GAAG,CAAC,EAAE,CAAC,uBAAuB,CAAC,MAAM,EAAE,GAAG,CAAC,EAC3C,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,CAAC,EAAC,OAAO,EAAE,uBAAuB,CAAC,QAAQ,CAAC,EAAC,CAAC,EACpD,CAAC,uBAAuB,EAAE,QAAQ,CAAC,CACpC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HeaderBandItem } from './types';
|
|
2
|
+
interface HeaderBandContextState {
|
|
3
|
+
allBands: HeaderBandItem[];
|
|
4
|
+
registerHeaderBand: (band: HeaderBandItem) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const HeaderBandProvider: ({ children }: {
|
|
7
|
+
children: any;
|
|
8
|
+
}) => JSX.Element;
|
|
9
|
+
export declare const useHeaderBand: () => HeaderBandContextState;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { createContext, useCallback, useContext, useMemo, useReducer, } from 'react';
|
|
19
|
+
import { HeaderBandHelper } from './header-band-context.helper';
|
|
20
|
+
const defaultHeaderBandContext = {
|
|
21
|
+
allBands: [],
|
|
22
|
+
registerHeaderBand: () => {
|
|
23
|
+
throw new Error('HeaderBandProvider should be mounted to register header band');
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
const HeaderBandContext = createContext(defaultHeaderBandContext);
|
|
27
|
+
const actionTypes = {
|
|
28
|
+
registerHeaderBand: 'registerHeaderBand',
|
|
29
|
+
};
|
|
30
|
+
const headerBandReducer = (state, action) => {
|
|
31
|
+
switch (action.type) {
|
|
32
|
+
case actionTypes.registerHeaderBand: {
|
|
33
|
+
return {
|
|
34
|
+
...state,
|
|
35
|
+
allBands: HeaderBandHelper.registerHeaderBand(state.allBands, action.payload),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const actions = {
|
|
41
|
+
registerHeaderBand: band => ({
|
|
42
|
+
type: actionTypes.registerHeaderBand,
|
|
43
|
+
payload: band,
|
|
44
|
+
}),
|
|
45
|
+
};
|
|
46
|
+
export const HeaderBandProvider = ({ children }) => {
|
|
47
|
+
const [state, dispatch] = useReducer(headerBandReducer, defaultHeaderBandContext);
|
|
48
|
+
const registerHeaderBand = useCallback(band => dispatch(actions.registerHeaderBand(band)), []);
|
|
49
|
+
const headerBandContextState = useMemo(() => ({
|
|
50
|
+
...state,
|
|
51
|
+
registerHeaderBand: registerHeaderBand,
|
|
52
|
+
}), [state, registerHeaderBand]);
|
|
53
|
+
return (<HeaderBandContext.Provider value={headerBandContextState}>
|
|
54
|
+
{children}
|
|
55
|
+
</HeaderBandContext.Provider>);
|
|
56
|
+
};
|
|
57
|
+
export const useHeaderBand = () => useContext(HeaderBandContext);
|
|
58
|
+
//# sourceMappingURL=HeaderBandContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderBandContext.js","sourceRoot":"","sources":["../../src/header/HeaderBandContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,OAAO,EACP,UAAU,GACX,MAAM,OAAO,CAAC;AAEf,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAY9D,MAAM,wBAAwB,GAAG;IAC/B,QAAQ,EAAE,EAAE;IACZ,kBAAkB,EAAE,GAAG,EAAE;QACvB,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,aAAa,CACrC,wBAAwB,CACzB,CAAC;AAEF,MAAM,WAAW,GAAG;IAClB,kBAAkB,EAAE,oBAAoB;CACzC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CACxB,KAA6B,EAC7B,MAAwB,EACA,EAAE;IAC1B,QAAQ,MAAM,CAAC,IAAI,EAAE;QACnB,KAAK,WAAW,CAAC,kBAAkB,CAAC,CAAC;YACnC,OAAO;gBACL,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you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export class HeaderBandHelper {
|
|
19
|
+
static filterBands = (allBands) => {
|
|
20
|
+
return allBands
|
|
21
|
+
.filter(band => band.showIf)
|
|
22
|
+
.sort((a, b) => a.order - b.order);
|
|
23
|
+
};
|
|
24
|
+
static registerHeaderBand(allBands, band) {
|
|
25
|
+
if (band == null || band.key == null) {
|
|
26
|
+
return allBands;
|
|
27
|
+
}
|
|
28
|
+
const index = allBands.findIndex(e => e.key === band.key);
|
|
29
|
+
if (index !== -1) {
|
|
30
|
+
return allBands.map((item, i) => i === index ? { ...item, ...band } : item);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
return [
|
|
34
|
+
...allBands,
|
|
35
|
+
{
|
|
36
|
+
order: (allBands.length + 1) * 10,
|
|
37
|
+
showIf: false,
|
|
38
|
+
...band,
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=header-band-context.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-band-context.helper.js","sourceRoot":"","sources":["../../src/header/header-band-context.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,OAAO,gBAAgB;IAC3B,MAAM,CAAC,WAAW,GAAG,CAAC,QAA0B,EAAoB,EAAE;QACpE,OAAO,QAAQ;aACZ,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;aAC3B,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC,CAAC;IAEF,MAAM,CAAC,kBAAkB,CACvB,QAA0B,EAC1B,IAAoB;QAEpB,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;YACpC,OAAO,QAAQ,CAAC;SACjB;QAED,MAAM,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1D,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;YAChB,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAC9B,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,EAAC,GAAG,IAAI,EAAE,GAAG,IAAI,EAAC,CAAC,CAAC,CAAC,IAAI,CACxC,CAAC;SACH;aAAM;YACL,OAAO;gBACL,GAAG,QAAQ;gBACX;oBACE,KAAK,EAAE,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE;oBACjC,MAAM,EAAE,KAAK;oBACb,GAAG,IAAI;iBACR;aACF,CAAC;SACH;IACH,CAAC"}
|
package/lib/header/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { headerActionsProvider, useHeaderOptions } from './HeaderActionsProvider';
|
|
2
2
|
export { useBasicActions } from './hooks';
|
|
3
|
-
export { HeaderActions, HeaderOptions, ActionType } from './types';
|
|
3
|
+
export { HeaderActions, HeaderOptions, ActionType, HeaderBandItem, } from './types';
|
|
4
|
+
export { HeaderBandProvider, useHeaderBand } from './HeaderBandContext';
|
|
5
|
+
export { HeaderBandHelper } from './header-band-context.helper';
|
package/lib/header/index.js
CHANGED
|
@@ -17,4 +17,6 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export { headerActionsProvider, useHeaderOptions } from './HeaderActionsProvider';
|
|
19
19
|
export { useBasicActions } from './hooks';
|
|
20
|
+
export { HeaderBandProvider, useHeaderBand } from './HeaderBandContext';
|
|
21
|
+
export { HeaderBandHelper } from './header-band-context.helper';
|
|
20
22
|
//# sourceMappingURL=index.js.map
|
package/lib/header/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/header/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,qBAAqB,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/header/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,qBAAqB,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAOxC,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC"}
|
package/lib/header/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Color } from '@axelor/aos-mobile-ui';
|
|
1
2
|
export interface HeaderActions {
|
|
2
3
|
[key: string]: HeaderOptions;
|
|
3
4
|
}
|
|
@@ -6,6 +7,7 @@ export interface HeaderOptions {
|
|
|
6
7
|
modelId?: number;
|
|
7
8
|
disableMailMessages?: boolean;
|
|
8
9
|
attachedFileScreenTitle?: string;
|
|
10
|
+
headerTitle?: string;
|
|
9
11
|
actions?: ActionType[];
|
|
10
12
|
}
|
|
11
13
|
export interface ActionType {
|
|
@@ -17,6 +19,14 @@ export interface ActionType {
|
|
|
17
19
|
FontAwesome5?: boolean;
|
|
18
20
|
indicator?: number;
|
|
19
21
|
hideIf?: boolean;
|
|
22
|
+
disableIf?: boolean;
|
|
20
23
|
onPress: () => void;
|
|
21
24
|
showInHeader?: boolean;
|
|
22
25
|
}
|
|
26
|
+
export interface HeaderBandItem {
|
|
27
|
+
key: string;
|
|
28
|
+
color: Color;
|
|
29
|
+
text: string;
|
|
30
|
+
showIf: boolean;
|
|
31
|
+
order?: number;
|
|
32
|
+
}
|
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
"Base_ViewAll": "View all",
|
|
36
36
|
"Base_ChooseFile": "Choose a file",
|
|
37
37
|
"Base_NoAppConfigured": "No module configured on your application, please contact an administrator.",
|
|
38
|
+
"Base_MinimalRequiredVersion": "The current version is below the minimum required version, please update your application.",
|
|
39
|
+
"Base_Contact_Admin": "Please contact an administrator.",
|
|
38
40
|
"Base_Unknown": "Unknown",
|
|
39
41
|
"Base_Next": "Next",
|
|
40
42
|
"Base_Estimated": "Estimated",
|
|
@@ -61,9 +63,11 @@
|
|
|
61
63
|
"Stopwatch_TimerFormat": "mm:ss",
|
|
62
64
|
"Base_Information": "Information",
|
|
63
65
|
"Base_Refresh": "Refresh application",
|
|
66
|
+
"Base_Update": "Update application",
|
|
64
67
|
"Base_Logout": "Log out",
|
|
65
68
|
"Base_TimeFormat": "HH:mm",
|
|
66
69
|
"Base_ConnectedOn": "Connected on",
|
|
70
|
+
"Base_Status": "Status",
|
|
67
71
|
"Base_Error": "Error",
|
|
68
72
|
"Base_Success": "Success",
|
|
69
73
|
"Base_Failed_To": "Failed to",
|
|
@@ -81,5 +85,6 @@
|
|
|
81
85
|
"Base_SliceAction_MarkMailMessageAsRead": "mark mail message as read",
|
|
82
86
|
"Base_SliceAction_MarkAllMailMessageAsRead": "mark all mail messages as read",
|
|
83
87
|
"Base_SliceAction_FetchMenuConfig": "fetch menu config",
|
|
84
|
-
"Base_SliceAction_FetchMobileConfig": "fetch mobile config"
|
|
88
|
+
"Base_SliceAction_FetchMobileConfig": "fetch mobile config",
|
|
89
|
+
"Base_Offline_Mode": "The internet connection is disabled"
|
|
85
90
|
}
|
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
"Base_ViewAll": "Tout voir",
|
|
36
36
|
"Base_ChooseFile": "Choisir un fichier",
|
|
37
37
|
"Base_NoAppConfigured": "Votre application n'est pas configurée, merci de contacter un administrateur.",
|
|
38
|
+
"Base_MinimalRequiredVersion": "La version actuelle est en dessous de la version minimale requise, merci de mettre à jour votre application.",
|
|
39
|
+
"Base_Contact_Admin": "Merci de contacter un administrateur.",
|
|
38
40
|
"Base_Unknown": "Inconnue",
|
|
39
41
|
"Base_Next": "Suivant",
|
|
40
42
|
"Base_Estimated": "Estimée",
|
|
@@ -61,9 +63,11 @@
|
|
|
61
63
|
"Stopwatch_TimerFormat": "mm:ss",
|
|
62
64
|
"Base_Information": "Information",
|
|
63
65
|
"Base_Refresh": "Actualiser l'application",
|
|
66
|
+
"Base_Update": "Mettre à jour l'application",
|
|
64
67
|
"Base_Logout": "Déconnexion",
|
|
65
68
|
"Base_TimeFormat": "HH:mm",
|
|
66
69
|
"Base_ConnectedOn": "Connecté à",
|
|
70
|
+
"Base_Status": "Statut",
|
|
67
71
|
"Base_Error": "Erreur",
|
|
68
72
|
"Base_Success": "Succès",
|
|
69
73
|
"Base_Failed_To": "N'a pas réussi à effectuer l'action :",
|
|
@@ -81,5 +85,6 @@
|
|
|
81
85
|
"Base_SliceAction_MarkMailMessageAsRead": "marquer le message comme lu",
|
|
82
86
|
"Base_SliceAction_MarkAllMailMessageAsRead": "marquer tous les messages comme lus",
|
|
83
87
|
"Base_SliceAction_FetchMenuConfig": "récupération des configs de menus",
|
|
84
|
-
"Base_SliceAction_FetchMobileConfig": "récupération des configs mobile"
|
|
88
|
+
"Base_SliceAction_FetchMobileConfig": "récupération des configs mobile",
|
|
89
|
+
"Base_Offline_Mode": "La connexion internet est désactivée"
|
|
85
90
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export { login, logout } from './features/authSlice';
|
|
|
8
8
|
export * from './apiProviders';
|
|
9
9
|
export { useScannedValueByKey, useScannerSelector, enableScan, scanValue, disableScan, default as scannerReducer, } from './features/scannerSlice';
|
|
10
10
|
export { useCameraSelector, useCameraValueByKey, enableCamera, takePhoto, disableCamera, default as cameraReducer, } from './features/cameraSlice';
|
|
11
|
+
export { useEffectOnline, useOnline, enable as enableOnline, disable as disableOnline, } from './features/onlineSlice';
|
|
12
|
+
export { getNetInfo } from './api/net-info-utils';
|
|
11
13
|
export { uploadFile } from './api/metafile-api';
|
|
12
14
|
export { useDispatch, useSelector } from './redux/hooks';
|
|
13
15
|
export * from './components';
|
|
@@ -16,5 +18,6 @@ export * from './utils';
|
|
|
16
18
|
export * from './types';
|
|
17
19
|
export * from './auth';
|
|
18
20
|
export * from './i18n';
|
|
21
|
+
export * from './config';
|
|
19
22
|
export * from './header';
|
|
20
23
|
export { useNavigation } from './hooks/use-navigation';
|
package/lib/index.js
CHANGED
|
@@ -25,6 +25,8 @@ export { login, logout } from './features/authSlice';
|
|
|
25
25
|
export * from './apiProviders';
|
|
26
26
|
export { useScannedValueByKey, useScannerSelector, enableScan, scanValue, disableScan, default as scannerReducer, } from './features/scannerSlice';
|
|
27
27
|
export { useCameraSelector, useCameraValueByKey, enableCamera, takePhoto, disableCamera, default as cameraReducer, } from './features/cameraSlice';
|
|
28
|
+
export { useEffectOnline, useOnline, enable as enableOnline, disable as disableOnline, } from './features/onlineSlice';
|
|
29
|
+
export { getNetInfo } from './api/net-info-utils';
|
|
28
30
|
export { uploadFile } from './api/metafile-api';
|
|
29
31
|
export { useDispatch, useSelector } from './redux/hooks';
|
|
30
32
|
export * from './components';
|
|
@@ -33,6 +35,7 @@ export * from './utils';
|
|
|
33
35
|
export * from './types';
|
|
34
36
|
export * from './auth';
|
|
35
37
|
export * from './i18n';
|
|
38
|
+
export * from './config';
|
|
36
39
|
export * from './header';
|
|
37
40
|
export { useNavigation } from './hooks/use-navigation';
|
|
38
41
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,OAAO,CAAC;AACtB,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAChD,OAAO,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,KAAK,EAAE,MAAM,EAAC,MAAM,sBAAsB,CAAC;AACnD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,WAAW,EACX,OAAO,IAAI,cAAc,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,aAAa,EACb,OAAO,IAAI,aAAa,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC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vB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC"}
|
|
@@ -5,9 +5,10 @@ export const ModuleNavigatorContext: React.Context<{
|
|
|
5
5
|
}>;
|
|
6
6
|
export default Navigator;
|
|
7
7
|
import React from "react";
|
|
8
|
-
declare function Navigator({ modules, mainMenu,
|
|
8
|
+
declare function Navigator({ modules, mainMenu, onRefresh, version, versionCheckConfig, }: {
|
|
9
9
|
modules: any;
|
|
10
10
|
mainMenu: any;
|
|
11
|
-
showModulesSubtitle?: boolean;
|
|
12
11
|
onRefresh: any;
|
|
12
|
+
version: any;
|
|
13
|
+
versionCheckConfig: any;
|
|
13
14
|
}): JSX.Element;
|