@axelor/aos-mobile-core 0.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/README.md +310 -0
- package/lib/api/attached-files-api.d.ts +8 -0
- package/lib/api/attached-files-api.js +51 -0
- package/lib/api/attached-files-api.js.map +1 -0
- package/lib/api/login-api.d.ts +5 -0
- package/lib/api/login-api.js +41 -0
- package/lib/api/login-api.js.map +1 -0
- package/lib/api/mail-message-api.d.ts +43 -0
- package/lib/api/mail-message-api.js +114 -0
- package/lib/api/mail-message-api.js.map +1 -0
- package/lib/api/menu-config-api.d.ts +5 -0
- package/lib/api/menu-config-api.js +68 -0
- package/lib/api/menu-config-api.js.map +1 -0
- package/lib/api/metafile-api.d.ts +6 -0
- package/lib/api/metafile-api.js +50 -0
- package/lib/api/metafile-api.js.map +1 -0
- package/lib/api/mobile-config-api.d.ts +1 -0
- package/lib/api/mobile-config-api.js +31 -0
- package/lib/api/mobile-config-api.js.map +1 -0
- package/lib/api/net-info-utils.d.ts +5 -0
- package/lib/api/net-info-utils.js +29 -0
- package/lib/api/net-info-utils.js.map +1 -0
- package/lib/api/traceback-api.d.ts +7 -0
- package/lib/api/traceback-api.js +35 -0
- package/lib/api/traceback-api.js.map +1 -0
- package/lib/api/utils.d.ts +25 -0
- package/lib/api/utils.js +92 -0
- package/lib/api/utils.js.map +1 -0
- package/lib/app/Application.d.ts +15 -0
- package/lib/app/Application.js +29 -0
- package/lib/app/Application.js.map +1 -0
- package/lib/app/ContextedApplication.d.ts +9 -0
- package/lib/app/ContextedApplication.js +80 -0
- package/lib/app/ContextedApplication.js.map +1 -0
- package/lib/app/ContextsProvider.d.ts +14 -0
- package/lib/app/ContextsProvider.js +63 -0
- package/lib/app/ContextsProvider.js.map +1 -0
- package/lib/app/Module.d.ts +26 -0
- package/lib/app/Module.js +19 -0
- package/lib/app/Module.js.map +1 -0
- package/lib/app/RootNavigator.d.ts +7 -0
- package/lib/app/RootNavigator.js +69 -0
- package/lib/app/RootNavigator.js.map +1 -0
- package/lib/app/index.d.ts +5 -0
- package/lib/app/index.js +22 -0
- package/lib/app/index.js.map +1 -0
- package/lib/assets/Logo_Axelor.png +0 -0
- package/lib/auth/api/company-api.d.ts +1 -0
- package/lib/auth/api/company-api.js +31 -0
- package/lib/auth/api/company-api.js.map +1 -0
- package/lib/auth/api/config-api.d.ts +2 -0
- package/lib/auth/api/config-api.js +45 -0
- package/lib/auth/api/config-api.js.map +1 -0
- package/lib/auth/api/index.d.ts +4 -0
- package/lib/auth/api/index.js +22 -0
- package/lib/auth/api/index.js.map +1 -0
- package/lib/auth/api/language-api.d.ts +1 -0
- package/lib/auth/api/language-api.js +24 -0
- package/lib/auth/api/language-api.js.map +1 -0
- package/lib/auth/api/user-api.d.ts +2 -0
- package/lib/auth/api/user-api.js +30 -0
- package/lib/auth/api/user-api.js.map +1 -0
- package/lib/auth/features/asyncFunctionsIndex.d.ts +4 -0
- package/lib/auth/features/asyncFunctionsIndex.js +22 -0
- package/lib/auth/features/asyncFunctionsIndex.js.map +1 -0
- package/lib/auth/features/companySlice.d.ts +14 -0
- package/lib/auth/features/companySlice.js +48 -0
- package/lib/auth/features/companySlice.js.map +1 -0
- package/lib/auth/features/configSlice.d.ts +37 -0
- package/lib/auth/features/configSlice.js +82 -0
- package/lib/auth/features/configSlice.js.map +1 -0
- package/lib/auth/features/index.d.ts +4 -0
- package/lib/auth/features/index.js +22 -0
- package/lib/auth/features/index.js.map +1 -0
- package/lib/auth/features/languageSlice.d.ts +14 -0
- package/lib/auth/features/languageSlice.js +48 -0
- package/lib/auth/features/languageSlice.js.map +1 -0
- package/lib/auth/features/userSlice.d.ts +27 -0
- package/lib/auth/features/userSlice.js +83 -0
- package/lib/auth/features/userSlice.js.map +1 -0
- package/lib/auth/i18n/en.json +23 -0
- package/lib/auth/i18n/fr.json +23 -0
- package/lib/auth/index.d.ts +5 -0
- package/lib/auth/index.js +55 -0
- package/lib/auth/index.js.map +1 -0
- package/lib/auth/screens/SettingsScreen.d.ts +4 -0
- package/lib/auth/screens/SettingsScreen.js +79 -0
- package/lib/auth/screens/SettingsScreen.js.map +1 -0
- package/lib/auth/screens/UserScreen.d.ts +5 -0
- package/lib/auth/screens/UserScreen.js +116 -0
- package/lib/auth/screens/UserScreen.js.map +1 -0
- package/lib/auth/screens/index.d.ts +2 -0
- package/lib/auth/screens/index.js +20 -0
- package/lib/auth/screens/index.js.map +1 -0
- package/lib/axios/AxiosApi.d.ts +12 -0
- package/lib/axios/AxiosApi.js +32 -0
- package/lib/axios/AxiosApi.js.map +1 -0
- package/lib/components/external/Camera/Camera.d.ts +2 -0
- package/lib/components/external/Camera/Camera.js +148 -0
- package/lib/components/external/Camera/Camera.js.map +1 -0
- package/lib/components/external/Camera/CaptureButton.d.ts +10 -0
- package/lib/components/external/Camera/CaptureButton.js +118 -0
- package/lib/components/external/Camera/CaptureButton.js.map +1 -0
- package/lib/components/external/CameraScanner/CameraScanner.d.ts +10 -0
- package/lib/components/external/CameraScanner/CameraScanner.js +87 -0
- package/lib/components/external/CameraScanner/CameraScanner.js.map +1 -0
- package/lib/components/external/PlanningView/PlanningView.d.ts +11 -0
- package/lib/components/external/PlanningView/PlanningView.js +123 -0
- package/lib/components/external/PlanningView/PlanningView.js.map +1 -0
- package/lib/components/external/PlanningView/agenda.helpers.d.ts +10 -0
- package/lib/components/external/PlanningView/agenda.helpers.js +90 -0
- package/lib/components/external/PlanningView/agenda.helpers.js.map +1 -0
- package/lib/components/external/Scanner/Scanner.d.ts +2 -0
- package/lib/components/external/Scanner/Scanner.js +67 -0
- package/lib/components/external/Scanner/Scanner.js.map +1 -0
- package/lib/components/external/Stopwatch/Stopwatch.d.ts +18 -0
- package/lib/components/external/Stopwatch/Stopwatch.js +114 -0
- package/lib/components/external/Stopwatch/Stopwatch.js.map +1 -0
- package/lib/components/external/Timer/Timer.d.ts +9 -0
- package/lib/components/external/Timer/Timer.js +60 -0
- package/lib/components/external/Timer/Timer.js.map +1 -0
- package/lib/components/external/index.d.ts +6 -0
- package/lib/components/external/index.js +24 -0
- package/lib/components/external/index.js.map +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.js +22 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/molecules/ErrorText/ErrorText.d.ts +4 -0
- package/lib/components/molecules/ErrorText/ErrorText.js +31 -0
- package/lib/components/molecules/ErrorText/ErrorText.js.map +1 -0
- package/lib/components/molecules/HeaderOptionsMenuItem/HeaderOptionMenuItem.d.ts +9 -0
- package/lib/components/molecules/HeaderOptionsMenuItem/HeaderOptionMenuItem.js +56 -0
- package/lib/components/molecules/HeaderOptionsMenuItem/HeaderOptionMenuItem.js.map +1 -0
- package/lib/components/molecules/IconSettings/IconSettings.d.ts +4 -0
- package/lib/components/molecules/IconSettings/IconSettings.js +31 -0
- package/lib/components/molecules/IconSettings/IconSettings.js.map +1 -0
- package/lib/components/molecules/InputBarCodeCard/InputBarCodeCard.d.ts +7 -0
- package/lib/components/molecules/InputBarCodeCard/InputBarCodeCard.js +84 -0
- package/lib/components/molecules/InputBarCodeCard/InputBarCodeCard.js.map +1 -0
- package/lib/components/molecules/LoginButton/LoginButton.d.ts +4 -0
- package/lib/components/molecules/LoginButton/LoginButton.js +40 -0
- package/lib/components/molecules/LoginButton/LoginButton.js.map +1 -0
- package/lib/components/molecules/MailMessageReadIcon/MailMessageReadIcon.d.ts +7 -0
- package/lib/components/molecules/MailMessageReadIcon/MailMessageReadIcon.js +55 -0
- package/lib/components/molecules/MailMessageReadIcon/MailMessageReadIcon.js.map +1 -0
- package/lib/components/molecules/TrackItem/TrackItem.d.ts +9 -0
- package/lib/components/molecules/TrackItem/TrackItem.js +65 -0
- package/lib/components/molecules/TrackItem/TrackItem.js.map +1 -0
- package/lib/components/molecules/index.d.ts +7 -0
- package/lib/components/molecules/index.js +25 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/components/organisms/AOSImage/AOSImage.d.ts +15 -0
- package/lib/components/organisms/AOSImage/AOSImage.js +37 -0
- package/lib/components/organisms/AOSImage/AOSImage.js.map +1 -0
- package/lib/components/organisms/AOSImageBubble/AOSImageBubble.d.ts +9 -0
- package/lib/components/organisms/AOSImageBubble/AOSImageBubble.js +30 -0
- package/lib/components/organisms/AOSImageBubble/AOSImageBubble.js.map +1 -0
- package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.d.ts +9 -0
- package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.js +68 -0
- package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.js.map +1 -0
- package/lib/components/organisms/LogoImage/LogoImage.d.ts +4 -0
- package/lib/components/organisms/LogoImage/LogoImage.js +52 -0
- package/lib/components/organisms/LogoImage/LogoImage.js.map +1 -0
- package/lib/components/organisms/MailMessageCard/MailMessageCard.d.ts +17 -0
- package/lib/components/organisms/MailMessageCard/MailMessageCard.js +79 -0
- package/lib/components/organisms/MailMessageCard/MailMessageCard.js.map +1 -0
- package/lib/components/organisms/MailMessageCommentCard/MailMessageCommentCard.d.ts +12 -0
- package/lib/components/organisms/MailMessageCommentCard/MailMessageCommentCard.js +139 -0
- package/lib/components/organisms/MailMessageCommentCard/MailMessageCommentCard.js.map +1 -0
- package/lib/components/organisms/MailMessageNotificationCard/MailMessageNotificationCard.d.ts +15 -0
- package/lib/components/organisms/MailMessageNotificationCard/MailMessageNotificationCard.js +79 -0
- package/lib/components/organisms/MailMessageNotificationCard/MailMessageNotificationCard.js.map +1 -0
- package/lib/components/organisms/PasswordInput/PasswordInput.d.ts +7 -0
- package/lib/components/organisms/PasswordInput/PasswordInput.js +36 -0
- package/lib/components/organisms/PasswordInput/PasswordInput.js.map +1 -0
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.d.ts +17 -0
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.js +68 -0
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.js.map +1 -0
- package/lib/components/organisms/UrlInput/UrlInput.d.ts +10 -0
- package/lib/components/organisms/UrlInput/UrlInput.js +38 -0
- package/lib/components/organisms/UrlInput/UrlInput.js.map +1 -0
- package/lib/components/organisms/UsernameInput/UsernameInput.d.ts +6 -0
- package/lib/components/organisms/UsernameInput/UsernameInput.js +33 -0
- package/lib/components/organisms/UsernameInput/UsernameInput.js.map +1 -0
- package/lib/components/organisms/index.d.ts +11 -0
- package/lib/components/organisms/index.js +29 -0
- package/lib/components/organisms/index.js.map +1 -0
- package/lib/components/templates/AttachedFilesView/AttachedFilesView.d.ts +10 -0
- package/lib/components/templates/AttachedFilesView/AttachedFilesView.js +87 -0
- package/lib/components/templates/AttachedFilesView/AttachedFilesView.js.map +1 -0
- package/lib/components/templates/MailMessageView/MailMessageView.d.ts +6 -0
- package/lib/components/templates/MailMessageView/MailMessageView.js +140 -0
- package/lib/components/templates/MailMessageView/MailMessageView.js.map +1 -0
- package/lib/components/templates/index.d.ts +2 -0
- package/lib/components/templates/index.js +20 -0
- package/lib/components/templates/index.js.map +1 -0
- package/lib/features/attachedFilesSlice.d.ts +35 -0
- package/lib/features/attachedFilesSlice.js +82 -0
- package/lib/features/attachedFilesSlice.js.map +1 -0
- package/lib/features/authSlice.d.ts +44 -0
- package/lib/features/authSlice.js +67 -0
- package/lib/features/authSlice.js.map +1 -0
- package/lib/features/cameraSlice.d.ts +14 -0
- package/lib/features/cameraSlice.js +52 -0
- package/lib/features/cameraSlice.js.map +1 -0
- package/lib/features/index.d.ts +8 -0
- package/lib/features/index.js +26 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/mailMessageSlice.d.ts +97 -0
- package/lib/features/mailMessageSlice.js +219 -0
- package/lib/features/mailMessageSlice.js.map +1 -0
- package/lib/features/menuConfigSlice.d.ts +14 -0
- package/lib/features/menuConfigSlice.js +48 -0
- package/lib/features/menuConfigSlice.js.map +1 -0
- package/lib/features/metafileSlice.d.ts +14 -0
- package/lib/features/metafileSlice.js +48 -0
- package/lib/features/metafileSlice.js.map +1 -0
- package/lib/features/mobileConfigSlice.d.ts +14 -0
- package/lib/features/mobileConfigSlice.js +52 -0
- package/lib/features/mobileConfigSlice.js.map +1 -0
- package/lib/features/scannerSlice.d.ts +14 -0
- package/lib/features/scannerSlice.js +52 -0
- package/lib/features/scannerSlice.js.map +1 -0
- package/lib/hooks/use-effect-debugger.d.ts +1 -0
- package/lib/hooks/use-effect-debugger.js +47 -0
- package/lib/hooks/use-effect-debugger.js.map +1 -0
- package/lib/i18n/api/translation.d.ts +2 -0
- package/lib/i18n/api/translation.js +38 -0
- package/lib/i18n/api/translation.js.map +1 -0
- package/lib/i18n/component/Translator.d.ts +6 -0
- package/lib/i18n/component/Translator.js +74 -0
- package/lib/i18n/component/Translator.js.map +1 -0
- package/lib/i18n/helpers/langages.d.ts +3 -0
- package/lib/i18n/helpers/langages.js +34 -0
- package/lib/i18n/helpers/langages.js.map +1 -0
- package/lib/i18n/helpers/translations.d.ts +1 -0
- package/lib/i18n/helpers/translations.js +24 -0
- package/lib/i18n/helpers/translations.js.map +1 -0
- package/lib/i18n/hooks/use-translator.d.ts +5 -0
- package/lib/i18n/hooks/use-translator.js +24 -0
- package/lib/i18n/hooks/use-translator.js.map +1 -0
- package/lib/i18n/i18n.d.ts +20 -0
- package/lib/i18n/i18n.js +53 -0
- package/lib/i18n/i18n.js.map +1 -0
- package/lib/i18n/index.d.ts +4 -0
- package/lib/i18n/index.js +22 -0
- package/lib/i18n/index.js.map +1 -0
- package/lib/i18n/translations/en.json +52 -0
- package/lib/i18n/translations/fr.json +52 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +36 -0
- package/lib/index.js.map +1 -0
- package/lib/navigator/Navigator.d.ts +12 -0
- package/lib/navigator/Navigator.js +118 -0
- package/lib/navigator/Navigator.js.map +1 -0
- package/lib/navigator/drawer/AuthMenuIconButton.d.ts +6 -0
- package/lib/navigator/drawer/AuthMenuIconButton.js +29 -0
- package/lib/navigator/drawer/AuthMenuIconButton.js.map +1 -0
- package/lib/navigator/drawer/BackIcon.d.ts +4 -0
- package/lib/navigator/drawer/BackIcon.js +32 -0
- package/lib/navigator/drawer/BackIcon.js.map +1 -0
- package/lib/navigator/drawer/DrawerContent.d.ts +8 -0
- package/lib/navigator/drawer/DrawerContent.js +177 -0
- package/lib/navigator/drawer/DrawerContent.js.map +1 -0
- package/lib/navigator/drawer/DrawerToggleButton.d.ts +4 -0
- package/lib/navigator/drawer/DrawerToggleButton.js +32 -0
- package/lib/navigator/drawer/DrawerToggleButton.js.map +1 -0
- package/lib/navigator/drawer/Menu.d.ts +8 -0
- package/lib/navigator/drawer/Menu.js +91 -0
- package/lib/navigator/drawer/Menu.js.map +1 -0
- package/lib/navigator/drawer/MenuIconButton.d.ts +10 -0
- package/lib/navigator/drawer/MenuIconButton.js +64 -0
- package/lib/navigator/drawer/MenuIconButton.js.map +1 -0
- package/lib/navigator/drawer/MenuItem.d.ts +8 -0
- package/lib/navigator/drawer/MenuItem.js +71 -0
- package/lib/navigator/drawer/MenuItem.js.map +1 -0
- package/lib/navigator/menu.helper.d.ts +8 -0
- package/lib/navigator/menu.helper.js +50 -0
- package/lib/navigator/menu.helper.js.map +1 -0
- package/lib/navigator/module.helper.d.ts +7 -0
- package/lib/navigator/module.helper.js +95 -0
- package/lib/navigator/module.helper.js.map +1 -0
- package/lib/navigator/roles.helper.d.ts +4 -0
- package/lib/navigator/roles.helper.js +33 -0
- package/lib/navigator/roles.helper.js.map +1 -0
- package/lib/redux/hooks.d.ts +5 -0
- package/lib/redux/hooks.js +25 -0
- package/lib/redux/hooks.js.map +1 -0
- package/lib/redux/store.d.ts +1 -0
- package/lib/redux/store.js +28 -0
- package/lib/redux/store.js.map +1 -0
- package/lib/screens/AttachedFilesScreen.d.ts +5 -0
- package/lib/screens/AttachedFilesScreen.js +26 -0
- package/lib/screens/AttachedFilesScreen.js.map +1 -0
- package/lib/screens/ErrorScreen.d.ts +5 -0
- package/lib/screens/ErrorScreen.js +46 -0
- package/lib/screens/ErrorScreen.js.map +1 -0
- package/lib/screens/LoginScreen.d.ts +4 -0
- package/lib/screens/LoginScreen.js +115 -0
- package/lib/screens/LoginScreen.js.map +1 -0
- package/lib/screens/MailMessageScreen.d.ts +5 -0
- package/lib/screens/MailMessageScreen.js +25 -0
- package/lib/screens/MailMessageScreen.js.map +1 -0
- package/lib/storage/Storage.d.ts +17 -0
- package/lib/storage/Storage.js +53 -0
- package/lib/storage/Storage.js.map +1 -0
- package/lib/tools/ClipboardProvider.d.ts +7 -0
- package/lib/tools/ClipboardProvider.js +59 -0
- package/lib/tools/ClipboardProvider.js.map +1 -0
- package/lib/tools/FileViewer.d.ts +13 -0
- package/lib/tools/FileViewer.js +48 -0
- package/lib/tools/FileViewer.js.map +1 -0
- package/lib/tools/LinkingProvider.d.ts +17 -0
- package/lib/tools/LinkingProvider.js +94 -0
- package/lib/tools/LinkingProvider.js.map +1 -0
- package/lib/tools/index.d.ts +3 -0
- package/lib/tools/index.js +21 -0
- package/lib/tools/index.js.map +1 -0
- package/lib/tools/linking.helper.d.ts +25 -0
- package/lib/tools/linking.helper.js +70 -0
- package/lib/tools/linking.helper.js.map +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.js +20 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/mail-message-notification-type.d.ts +12 -0
- package/lib/types/mail-message-notification-type.js +48 -0
- package/lib/types/mail-message-notification-type.js.map +1 -0
- package/lib/types/stopwatch-type.d.ts +14 -0
- package/lib/types/stopwatch-type.js +64 -0
- package/lib/types/stopwatch-type.js.map +1 -0
- package/lib/utils/agenda.d.ts +1 -0
- package/lib/utils/agenda.js +28 -0
- package/lib/utils/agenda.js.map +1 -0
- package/lib/utils/date.d.ts +4 -0
- package/lib/utils/date.js +41 -0
- package/lib/utils/date.js.map +1 -0
- package/lib/utils/displayers.d.ts +1 -0
- package/lib/utils/displayers.js +19 -0
- package/lib/utils/displayers.js.map +1 -0
- package/lib/utils/formatters.d.ts +5 -0
- package/lib/utils/formatters.js +74 -0
- package/lib/utils/formatters.js.map +1 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +27 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/list.d.ts +3 -0
- package/lib/utils/list.js +101 -0
- package/lib/utils/list.js.map +1 -0
- package/lib/utils/object.d.ts +2 -0
- package/lib/utils/object.js +36 -0
- package/lib/utils/object.js.map +1 -0
- package/lib/utils/show-toast-message.d.ts +2 -0
- package/lib/utils/show-toast-message.js +22 -0
- package/lib/utils/show-toast-message.js.map +1 -0
- package/lib/utils/string.d.ts +4 -0
- package/lib/utils/string.js +54 -0
- package/lib/utils/string.js.map +1 -0
- package/lib/utils/time.d.ts +4 -0
- package/lib/utils/time.js +78 -0
- package/lib/utils/time.js.map +1 -0
- package/package.json +95 -0
|
@@ -0,0 +1,25 @@
|
|
|
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 from 'react';
|
|
19
|
+
import { MailMessageView } from '../components';
|
|
20
|
+
const MailMessageScreen = ({ route, navigation }) => {
|
|
21
|
+
const { model, modelId } = route.params;
|
|
22
|
+
return (<MailMessageView model={model} modelId={modelId} navigation={navigation}/>);
|
|
23
|
+
};
|
|
24
|
+
export default MailMessageScreen;
|
|
25
|
+
//# sourceMappingURL=MailMessageScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MailMessageScreen.js","sourceRoot":"","sources":["../../src/screens/MailMessageScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAE9C,MAAM,iBAAiB,GAAG,CAAC,EAAC,KAAK,EAAE,UAAU,EAAC,EAAE,EAAE;IAChD,MAAM,EAAC,KAAK,EAAE,OAAO,EAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IACtC,OAAO,CACL,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,EAAG,CAC5E,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface InternalStorage {
|
|
2
|
+
set(key: string, value: any): void;
|
|
3
|
+
getString(key: string): string | undefined;
|
|
4
|
+
contains(key: string): boolean;
|
|
5
|
+
clearAll(): void;
|
|
6
|
+
}
|
|
7
|
+
declare class Storage {
|
|
8
|
+
private storage;
|
|
9
|
+
constructor(storage: InternalStorage);
|
|
10
|
+
contains(key: string): boolean;
|
|
11
|
+
setItem(key: string, value: any): void;
|
|
12
|
+
getItem(key: string): any;
|
|
13
|
+
clearAll(): void;
|
|
14
|
+
}
|
|
15
|
+
export declare const storage: Storage;
|
|
16
|
+
export declare function useStorage(): Storage;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { MMKV } from 'react-native-mmkv';
|
|
19
|
+
class Storage {
|
|
20
|
+
storage;
|
|
21
|
+
constructor(storage) {
|
|
22
|
+
this.storage = storage;
|
|
23
|
+
}
|
|
24
|
+
contains(key) {
|
|
25
|
+
return this.storage.contains(key);
|
|
26
|
+
}
|
|
27
|
+
setItem(key, value) {
|
|
28
|
+
if (value instanceof Object || value instanceof Array) {
|
|
29
|
+
this.storage.set(key, JSON.stringify(value));
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.storage.set(key, value);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
getItem(key) {
|
|
36
|
+
const strItem = this.storage.getString(key);
|
|
37
|
+
try {
|
|
38
|
+
const item = JSON.parse(strItem);
|
|
39
|
+
return item;
|
|
40
|
+
}
|
|
41
|
+
catch (e) {
|
|
42
|
+
return strItem;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
clearAll() {
|
|
46
|
+
this.storage.clearAll();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export const storage = new Storage(new MMKV());
|
|
50
|
+
export function useStorage() {
|
|
51
|
+
return storage;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=Storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Storage.js","sourceRo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://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 Toast from 'react-native-toast-message';
|
|
19
|
+
import Clipboard from '@react-native-clipboard/clipboard';
|
|
20
|
+
class ClipboardProvider {
|
|
21
|
+
constructor() { }
|
|
22
|
+
copyToClipboard(data) {
|
|
23
|
+
try {
|
|
24
|
+
Clipboard.setString(data);
|
|
25
|
+
Toast.show({
|
|
26
|
+
type: 'success',
|
|
27
|
+
position: 'bottom',
|
|
28
|
+
bottomOffset: 20,
|
|
29
|
+
text1: 'Success',
|
|
30
|
+
text2: `${data} successfully copied to clipboard.`,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
Toast.show({
|
|
35
|
+
type: 'error',
|
|
36
|
+
position: 'bottom',
|
|
37
|
+
bottomOffset: 20,
|
|
38
|
+
text1: 'Could not copy element',
|
|
39
|
+
text2: `Error while coping element to clipboard: ${error}.`,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
async fetchCopiedText() {
|
|
44
|
+
return Clipboard.getString()
|
|
45
|
+
.then((value) => value)
|
|
46
|
+
.catch(error => {
|
|
47
|
+
Toast.show({
|
|
48
|
+
type: 'error',
|
|
49
|
+
position: 'bottom',
|
|
50
|
+
bottomOffset: 20,
|
|
51
|
+
text1: 'Error',
|
|
52
|
+
text2: `Error while fetching copied text: ${error}.`,
|
|
53
|
+
});
|
|
54
|
+
return '';
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export const clipboardProvider = new ClipboardProvider();
|
|
59
|
+
//# sourceMappingURL=ClipboardProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClipboardProvider.js","sourceRoot":"","sources":["../../src/tools/ClipboardProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAC/C,OAAO,SAAS,MAAM,mCAAmC,CAAC;AAE1D,MAAM,iBAAiB;IACrB,gBAAe,CAAC;IAEhB,eAAe,CAAC,IAAY;QAC1B,IAAI;YACF,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAC1B,KAAK,CAAC,IAAI,CAAC;gBACT,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,QAAQ;gBAClB,YAAY,EAAE,EAAE;gBAChB,KAAK,EAAE,SAAS;gBAChB,KAAK,EAAE,GAAG,IAAI,oCAAoC;aACnD,CAAC,CAAC;SACJ;QAAC,OAAO,KAAK,EAAE;YACd,KAAK,CAAC,IAAI,CAAC;gBACT,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,QAAQ;gBAClB,YAAY,EAAE,EAAE;gBAChB,KAAK,EAAE,wBAAwB;gBAC/B,KAAK,EAAE,4CAA4C,KAAK,GAAG;aAC5D,CAAC,CAAC;SACJ;IACH,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,OAAO,SAAS,CAAC,SAAS,EAAE;aACzB,IAAI,CAAC,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC;aAC9B,KAAK,CAAC,KAAK,CAAC,EAAE;YACb,KAAK,CAAC,IAAI,CAAC;gBACT,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,QAAQ;gBAClB,YAAY,EAAE,EAAE;gBAChB,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE,qCAAqC,KAAK,GAAG;aACrD,CAAC,CAAC;YACH,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACP,CAAC;CACF;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TranslatorProps } from '../i18n/hooks/use-translator';
|
|
2
|
+
interface fileItemProps {
|
|
3
|
+
fileName: string;
|
|
4
|
+
id: number;
|
|
5
|
+
isMetaFile?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface ConnexionNeed {
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
token: string;
|
|
10
|
+
jsessionId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const openFileInExternalApp: (file: fileItemProps, authentification: ConnexionNeed, I18n: TranslatorProps) => Promise<void>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
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 FileViewer from 'react-native-file-viewer';
|
|
19
|
+
import RNFS from 'react-native-fs';
|
|
20
|
+
import { showToastMessage } from '../utils/show-toast-message';
|
|
21
|
+
export const openFileInExternalApp = async (file, authentification, I18n) => {
|
|
22
|
+
const localFile = `${RNFS.DocumentDirectoryPath}/${file?.fileName}`;
|
|
23
|
+
const options = {
|
|
24
|
+
fromUrl: file.isMetaFile
|
|
25
|
+
? `${authentification.baseUrl}ws/rest/com.axelor.meta.db.MetaFile/${file?.id}/content/download`
|
|
26
|
+
: `${authentification.baseUrl}ws/dms/inline/${file?.id}`,
|
|
27
|
+
toFile: localFile,
|
|
28
|
+
headers: {
|
|
29
|
+
Cookie: `CSRF-TOKEN=${authentification.token}; ${authentification.jsessionId}`,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
RNFS.downloadFile(options)
|
|
33
|
+
.promise.then(() => FileViewer.open(localFile, { showOpenWithDialog: true }))
|
|
34
|
+
.then(() => {
|
|
35
|
+
// success
|
|
36
|
+
})
|
|
37
|
+
.catch(error => {
|
|
38
|
+
// error
|
|
39
|
+
showToastMessage({
|
|
40
|
+
type: 'error',
|
|
41
|
+
position: 'bottom',
|
|
42
|
+
text1: I18n.t('Auth_Error'),
|
|
43
|
+
text2: I18n.t('Auth_CannotOpenFile'),
|
|
44
|
+
});
|
|
45
|
+
console.log(error);
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=FileViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileViewer.js","sourceRoot":"","sources":["../../src/tools/FileViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAc7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EACxC,IAAmB,EACnB,gBAA+B,EAC/B,IAAqB,EACrB,EAAE;IACF,MAAM,SAAS,GAAG,GAAG,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE,QAAQ,EAAE,CAAC;IACpE,MAAM,OAAO,GAAG;QACd,OAAO,EAAE,IAAI,CAAC,UAAU;YACtB,CAAC,CAAC,GAAG,gBAAgB,CAAC,OAAO,uCAAuC,IAAI,EAAE,EAAE,mBAAmB;YAC/F,CAAC,CAAC,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,IAAI,EAAE,EAAE,EAAE;QAC1D,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE;YACP,MAAM,EAAE,cAAc,gBAAgB,CAAC,KAAK,KAAK,gBAAgB,CAAC,UAAU,EAAE;SAC/E;KACF,CAAC;IAEF,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC;SACvB,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,EAAC,kBAAkB,EAAE,IAAI,EAAC,CAAC,CAAC;SAC1E,IAAI,CAAC,GAAG,EAAE;QACT,UAAU;IACZ,CAAC,CAAC;SACD,KAAK,CAAC,KAAK,CAAC,EAAE;QACb,QAAQ;QACR,gBAAgB,CAAC;YACf,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;YAC3B,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC;SACrC,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;AACP,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare class LinkingProvider {
|
|
2
|
+
constructor();
|
|
3
|
+
openURL(url: string, error: {
|
|
4
|
+
title: string;
|
|
5
|
+
message: string;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
openBrowser(url: string): Promise<void>;
|
|
8
|
+
openCallApp(tel: string): Promise<void>;
|
|
9
|
+
openSMSApp(tel: string): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* @param email one or more recipient email addresses (separated by a "," or a ";")
|
|
12
|
+
*/
|
|
13
|
+
openMailApp(email: string, subject?: string, body?: string, to?: string, cc?: string, bcc?: string): Promise<void>;
|
|
14
|
+
openMapApp(address?: string, destination?: string, latitude?: number, longitude?: number, transportType?: string): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare const linkingProvider: LinkingProvider;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { Linking } from 'react-native';
|
|
19
|
+
import Toast from 'react-native-toast-message';
|
|
20
|
+
import { createURLParams, mapURLBuilder, TransportType } from './linking.helper';
|
|
21
|
+
class LinkingProvider {
|
|
22
|
+
constructor() { }
|
|
23
|
+
async openURL(url, error) {
|
|
24
|
+
const supported = await Linking.canOpenURL(url);
|
|
25
|
+
if (supported) {
|
|
26
|
+
try {
|
|
27
|
+
await Linking.openURL(url);
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
Toast.show({
|
|
31
|
+
type: 'error',
|
|
32
|
+
position: 'bottom',
|
|
33
|
+
bottomOffset: 20,
|
|
34
|
+
text1: error.title,
|
|
35
|
+
text2: `${error.message}: ${e.message}.`,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
Toast.show({
|
|
41
|
+
type: 'error',
|
|
42
|
+
position: 'bottom',
|
|
43
|
+
bottomOffset: 20,
|
|
44
|
+
text1: 'Unsupported external link',
|
|
45
|
+
text2: `Don't know how to open this URL: ${url}.`,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async openBrowser(url) {
|
|
50
|
+
await this.openURL(url, {
|
|
51
|
+
title: 'Could not open the url',
|
|
52
|
+
message: `Error while opening ${url} in the browser`,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
async openCallApp(tel) {
|
|
56
|
+
const URL = `tel:${tel}`;
|
|
57
|
+
await this.openURL(URL, {
|
|
58
|
+
title: 'Could not open the call app',
|
|
59
|
+
message: `Error while opening ${tel} in the call app`,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
async openSMSApp(tel) {
|
|
63
|
+
const URL = `sms:${tel}`;
|
|
64
|
+
await this.openURL(URL, {
|
|
65
|
+
title: 'Could not open the sms app',
|
|
66
|
+
message: `Error while opening ${tel} in the sms app`,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @param email one or more recipient email addresses (separated by a "," or a ";")
|
|
71
|
+
*/
|
|
72
|
+
async openMailApp(email, subject, body, to, cc, bcc) {
|
|
73
|
+
const URL = createURLParams(`mailto:${email}`, [
|
|
74
|
+
{ param: 'subject', value: subject },
|
|
75
|
+
{ param: 'body', value: body },
|
|
76
|
+
{ param: 'to', value: to },
|
|
77
|
+
{ param: 'cc', value: cc },
|
|
78
|
+
{ param: 'bcc', value: bcc },
|
|
79
|
+
]);
|
|
80
|
+
await this.openURL(URL, {
|
|
81
|
+
title: 'Could not open the mail app',
|
|
82
|
+
message: `Error while opening ${email} in the mail app`,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
async openMapApp(address, destination, latitude, longitude, transportType = TransportType.DRIVING) {
|
|
86
|
+
const URL = mapURLBuilder(address, destination, latitude, longitude, transportType);
|
|
87
|
+
await this.openURL(URL, {
|
|
88
|
+
title: 'Could not open the map app',
|
|
89
|
+
message: `Error while opening ${address} in the map app`,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export const linkingProvider = new LinkingProvider();
|
|
94
|
+
//# sourceMappingURL=LinkingProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkingProvider.js","sourceRoot":"","sources":["../../src/tools/LinkingProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAC/C,OAAO,EAAC,eAAe,EAAE,aAAa,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE/E,MAAM,eAAe;IACnB,gBAAe,CAAC;IAEhB,KAAK,CAAC,OAAO,CAAC,GAAW,EAAE,KAAuC;QAChE,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAChD,IAAI,SAAS,EAAE;YACb,IAAI;gBACF,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;aAC5B;YAAC,OAAO,CAAC,EAAE;gBACV,KAAK,CAAC,IAAI,CAAC;oBACT,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,QAAQ;oBAClB,YAAY,EAAE,EAAE;oBAChB,KAAK,EAAE,KAAK,CAAC,KAAK;oBAClB,KAAK,EAAE,GAAG,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,GAAG;iBACzC,CAAC,CAAC;aACJ;SACF;aAAM;YACL,KAAK,CAAC,IAAI,CAAC;gBACT,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,Q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,EAAC;SAC3B,CAAC,CAAC;QACH,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;YACtB,KAAK,EAAE,6BAA6B;YACpC,OAAO,EAAE,uBAAuB,KAAK,kBAAkB;SACxD,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAgB,EAChB,WAAoB,EACpB,QAAiB,EACjB,SAAkB,EAClB,gBAAwB,aAAa,CAAC,OAAO;QAE7C,MAAM,GAAG,GAAG,aAAa,CACvB,OAAO,EACP,WAAW,EACX,QAAQ,EACR,SAAS,EACT,aAAa,CACd,CAAC;QACF,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;YACtB,KAAK,EAAE,4BAA4B;YACnC,OAAO,EAAE,uBAAuB,OAAO,iBAAiB;SACzD,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { clipboardProvider } from './ClipboardProvider';
|
|
19
|
+
export { openFileInExternalApp } from './FileViewer';
|
|
20
|
+
export { linkingProvider } from './LinkingProvider';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,qBAAqB,EAAC,MAAM,cAAc,CAAC;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const isIOS: boolean;
|
|
2
|
+
export declare const TransportType: {
|
|
3
|
+
DRIVING: string;
|
|
4
|
+
WALKING: string;
|
|
5
|
+
PUBLIC_TRANSPORT: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const androidMapAppType: {
|
|
8
|
+
localisation: string;
|
|
9
|
+
navigation: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const createURLParams: (baseURL: string, params: Array<{
|
|
12
|
+
param: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}>) => string;
|
|
15
|
+
export declare const mapURLBuilder: (address?: string, destination?: string, latitude?: number, longitude?: number, transportType?: string) => string;
|
|
16
|
+
export declare const iosMapURLBuilder: (address?: string, destination?: string, latitude?: number, longitude?: number, transportType?: string) => string;
|
|
17
|
+
export declare const androidMapURLBuilder: (address?: string, destination?: string, latitude?: number, longitude?: number, transportType?: string) => string;
|
|
18
|
+
export declare const createAndroidLocalisationURLParams: (address?: string, latitude?: number, longitude?: number) => {
|
|
19
|
+
param: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
22
|
+
export declare const createAndroidNavigaitonURLParams: (destination?: string, transportType?: string) => {
|
|
23
|
+
param: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { Platform } from 'react-native';
|
|
19
|
+
export const isIOS = Platform.OS === 'ios';
|
|
20
|
+
export const TransportType = {
|
|
21
|
+
DRIVING: 'd',
|
|
22
|
+
WALKING: 'w',
|
|
23
|
+
PUBLIC_TRANSPORT: 'r',
|
|
24
|
+
};
|
|
25
|
+
export const androidMapAppType = {
|
|
26
|
+
localisation: 'geo://',
|
|
27
|
+
navigation: 'google.navigation://',
|
|
28
|
+
};
|
|
29
|
+
export const createURLParams = (baseURL, params) => `${baseURL}?${params
|
|
30
|
+
.filter(p => p?.value && p.value !== '' && p.value !== ',')
|
|
31
|
+
.map(p => `${p.param}=${encodeURI(p.value)}`)
|
|
32
|
+
.join('&')}`;
|
|
33
|
+
export const mapURLBuilder = (address, destination, latitude, longitude, transportType = TransportType[Platform.OS].CAR) => {
|
|
34
|
+
return isIOS
|
|
35
|
+
? iosMapURLBuilder(address, destination, latitude, longitude, transportType)
|
|
36
|
+
: androidMapURLBuilder(address, destination, latitude, longitude, transportType);
|
|
37
|
+
};
|
|
38
|
+
export const iosMapURLBuilder = (address, destination, latitude, longitude, transportType = TransportType.DRIVING) => {
|
|
39
|
+
const params = [
|
|
40
|
+
{ param: 'q', value: address },
|
|
41
|
+
{ param: 'saddr', value: address },
|
|
42
|
+
{ param: 'daddr', value: destination },
|
|
43
|
+
{ param: 'sll', value: `${latitude},${longitude}` },
|
|
44
|
+
{ param: 'dirflg', value: transportType },
|
|
45
|
+
];
|
|
46
|
+
return createURLParams('maps://', params);
|
|
47
|
+
};
|
|
48
|
+
export const androidMapURLBuilder = (address, destination, latitude, longitude, transportType = TransportType.DRIVING) => {
|
|
49
|
+
const baseURL = destination
|
|
50
|
+
? androidMapAppType.navigation
|
|
51
|
+
: androidMapAppType.localisation;
|
|
52
|
+
const params = destination
|
|
53
|
+
? createAndroidNavigaitonURLParams(destination, transportType)
|
|
54
|
+
: createAndroidLocalisationURLParams(address, latitude, longitude);
|
|
55
|
+
return createURLParams(baseURL, params);
|
|
56
|
+
};
|
|
57
|
+
export const createAndroidLocalisationURLParams = (address, latitude, longitude) => {
|
|
58
|
+
return [
|
|
59
|
+
latitude && longitude
|
|
60
|
+
? { param: 'q', value: `@${latitude},${longitude}` }
|
|
61
|
+
: { param: 'q', value: address },
|
|
62
|
+
];
|
|
63
|
+
};
|
|
64
|
+
export const createAndroidNavigaitonURLParams = (destination, transportType = TransportType.DRIVING) => {
|
|
65
|
+
return [
|
|
66
|
+
{ param: 'q', value: destination },
|
|
67
|
+
{ param: 'mode', value: transportType },
|
|
68
|
+
];
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=linking.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linking.helper.js","sourceRoot":"","sources":["../../src/tools/linking.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,GAAG;IACZ,gBAAgB,EAAE,GAAG;CACtB,CAAC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,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAC;KACtC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 MailMessageNotificationType } from './mail-message-notification-type';
|
|
19
|
+
export { default as StopwatchType } from './stopwatch-type';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,2BAA2B,EAAC,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare class MailMessageNotificationType {
|
|
2
|
+
static style: {
|
|
3
|
+
Default: string;
|
|
4
|
+
Important: string;
|
|
5
|
+
Success: string;
|
|
6
|
+
Warning: string;
|
|
7
|
+
Inverse: string;
|
|
8
|
+
Info: string;
|
|
9
|
+
};
|
|
10
|
+
static getTagColor: (style: any, Colors: any) => any;
|
|
11
|
+
}
|
|
12
|
+
export default MailMessageNotificationType;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
class MailMessageNotificationType {
|
|
19
|
+
static style = {
|
|
20
|
+
Default: 'default',
|
|
21
|
+
Important: 'important',
|
|
22
|
+
Success: 'success',
|
|
23
|
+
Warning: 'orange',
|
|
24
|
+
Inverse: 'inverse',
|
|
25
|
+
Info: 'info',
|
|
26
|
+
};
|
|
27
|
+
static getTagColor = (style, Colors) => {
|
|
28
|
+
switch (style) {
|
|
29
|
+
case this.style.Default:
|
|
30
|
+
return Colors.defaultColor;
|
|
31
|
+
case this.style.Important:
|
|
32
|
+
return Colors.importantColor;
|
|
33
|
+
case this.style.Success:
|
|
34
|
+
return Colors.successColor;
|
|
35
|
+
case this.style.Warning:
|
|
36
|
+
return Colors.warningColor;
|
|
37
|
+
case this.style.Inverse:
|
|
38
|
+
return Colors.inverseColor;
|
|
39
|
+
case this.style.Info:
|
|
40
|
+
return Colors.infoColor;
|
|
41
|
+
default:
|
|
42
|
+
console.warn(`Style provided with value ${style} is not supported by Mail Message Tag`);
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export default MailMessageNotificationType;
|
|
48
|
+
//# sourceMappingURL=mail-message-notification-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mail-message-notification-type.js","sourceRoot":"","sources":["../../src/types/mail-message-notification-type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,2BAA2B;IAC/B,MAAM,CAAC,KAAK,GAAG;QACb,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,WAAW;QACtB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,MAAM;KACb,CAAC;IAEF,MAAM,CAAC,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QACrC,QAAQ,KAAK,EAAE;YACb,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO;gBACrB,OAAO,MAAM,CAAC,YAAY,CAAC;YAC7B,KAAK,IAAI,CAAC,KAAK,CAAC,SAAS;gBACvB,OAAO,MAAM,CAAC,cAAc,CAAC;YAC/B,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO;gBACrB,OAAO,MAAM,CAAC,YAAY,CAAC;YAC7B,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO;gBACrB,OAAO,MAAM,CAAC,YAAY,CAAC;YAC7B,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO;gBACrB,OAAO,MAAM,CAAC,YAAY,CAAC;YAC7B,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI;gBAClB,OAAO,MAAM,CAAC,SAAS,CAAC;YAC1B;gBACE,OAAO,CAAC,IAAI,CACV,6BAA6B,KAAK,uCAAuC,CAC1E,CAAC;gBACF,OAAO,IAAI,CAAC;SACf;IACH,CAAC,CAAC;;AAGJ,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare class StopwatchType {
|
|
2
|
+
static status: {
|
|
3
|
+
Ready: number;
|
|
4
|
+
InProgress: number;
|
|
5
|
+
Paused: number;
|
|
6
|
+
Finished: number;
|
|
7
|
+
Canceled: number;
|
|
8
|
+
};
|
|
9
|
+
static getStatus: (select: any, I18n: {
|
|
10
|
+
t: (key: string) => string;
|
|
11
|
+
}) => string;
|
|
12
|
+
static getStatusBorderColor: (status: any, Colors: any) => any;
|
|
13
|
+
}
|
|
14
|
+
export default StopwatchType;
|