@axelor/aos-mobile-core 9.1.12 → 9.2.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/apiProviders/Standard/ObjectFieldsProvider.d.ts +2 -2
- package/lib/apiProviders/Standard/ObjectFieldsProvider.js.map +1 -1
- package/lib/app/RootNavigator.d.ts +9 -8
- package/lib/app/RootNavigator.js +20 -19
- package/lib/app/RootNavigator.js.map +1 -1
- package/lib/app/modules/types.d.ts +2 -4
- package/lib/auth/components/index.d.ts +1 -1
- package/lib/auth/components/index.js.map +1 -1
- package/lib/auth/components/molecules/DashboardsCard/DashboardsCard.d.ts +1 -1
- package/lib/auth/components/molecules/DashboardsCard/DashboardsCard.js +6 -11
- package/lib/auth/components/molecules/DashboardsCard/DashboardsCard.js.map +1 -1
- package/lib/auth/components/molecules/ShortcutsCard/ShortcutsCard.d.ts +2 -4
- package/lib/auth/components/molecules/ShortcutsCard/ShortcutsCard.js +19 -22
- package/lib/auth/components/molecules/ShortcutsCard/ShortcutsCard.js.map +1 -1
- package/lib/auth/components/molecules/UserCard/UserCard.d.ts +2 -3
- package/lib/auth/components/molecules/UserCard/UserCard.js +28 -45
- package/lib/auth/components/molecules/UserCard/UserCard.js.map +1 -1
- package/lib/auth/components/molecules/index.d.ts +3 -5
- package/lib/auth/components/molecules/index.js +0 -2
- package/lib/auth/components/molecules/index.js.map +1 -1
- package/lib/auth/hooks/use-auth-headers.d.ts +1 -1
- package/lib/auth/hooks/use-auth-headers.js +2 -0
- package/lib/auth/hooks/use-auth-headers.js.map +1 -1
- package/lib/auth/i18n/en.json +4 -0
- package/lib/auth/i18n/fr.json +4 -0
- package/lib/auth/index.d.ts +2 -0
- package/lib/auth/index.js +2 -0
- package/lib/auth/index.js.map +1 -1
- package/lib/auth/screens/SettingsScreen.d.ts +2 -4
- package/lib/auth/screens/SettingsScreen.js +49 -83
- package/lib/auth/screens/SettingsScreen.js.map +1 -1
- package/lib/auth/screens/UserScreen.d.ts +2 -4
- package/lib/auth/screens/UserScreen.js +13 -16
- package/lib/auth/screens/UserScreen.js.map +1 -1
- package/lib/auth/screens/index.d.ts +2 -2
- package/lib/auth/screens/index.js.map +1 -1
- package/lib/auth/settings/SettingsProvider.d.ts +18 -0
- package/lib/auth/settings/SettingsProvider.js +73 -0
- package/lib/auth/settings/SettingsProvider.js.map +1 -0
- package/lib/auth/settings/index.d.ts +4 -0
- package/lib/auth/settings/index.js +22 -0
- package/lib/auth/settings/index.js.map +1 -0
- package/lib/auth/settings/settings.helper.d.ts +5 -0
- package/lib/{components/external/PlanningView/NavigationButton.js → auth/settings/settings.helper.js} +13 -17
- package/lib/auth/settings/settings.helper.js.map +1 -0
- package/lib/auth/settings/types.d.ts +36 -0
- package/lib/auth/settings/types.js +24 -0
- package/lib/auth/settings/types.js.map +1 -0
- package/lib/auth/settings/use-settings-register.d.ts +1 -0
- package/lib/auth/settings/use-settings-register.js +211 -0
- package/lib/auth/settings/use-settings-register.js.map +1 -0
- package/lib/auth/userScreen/UserScreenProvider.d.ts +15 -0
- package/lib/auth/userScreen/UserScreenProvider.js +64 -0
- package/lib/auth/userScreen/UserScreenProvider.js.map +1 -0
- package/lib/auth/userScreen/index.d.ts +3 -0
- package/lib/auth/userScreen/index.js +21 -0
- package/lib/auth/userScreen/index.js.map +1 -0
- package/lib/auth/userScreen/types.d.ts +14 -0
- package/lib/auth/userScreen/types.js +23 -0
- package/lib/auth/userScreen/types.js.map +1 -0
- package/lib/auth/userScreen/user-screen.helper.d.ts +5 -0
- package/lib/auth/userScreen/user-screen.helper.js +26 -0
- package/lib/auth/userScreen/user-screen.helper.js.map +1 -0
- package/lib/components/external/Camera/Camera.js +1 -1
- package/lib/components/external/Camera/CaptureButton.js +1 -1
- package/lib/components/external/Camera/CaptureButton.js.map +1 -1
- package/lib/components/external/PlanningView/PlanningView.d.ts +2 -1
- package/lib/components/external/PlanningView/PlanningView.js +21 -121
- package/lib/components/external/PlanningView/PlanningView.js.map +1 -1
- package/lib/components/external/PlanningView/agenda.helpers.d.ts +4 -13
- package/lib/components/external/PlanningView/agenda.helpers.js +27 -128
- package/lib/components/external/PlanningView/agenda.helpers.js.map +1 -1
- package/lib/components/external/Stopwatch/Stopwatch.js +28 -24
- package/lib/components/external/Stopwatch/Stopwatch.js.map +1 -1
- package/lib/components/external/Toast/ToastDisplay.d.ts +1 -1
- package/lib/components/external/Toast/ToastDisplay.js +46 -22
- package/lib/components/external/Toast/ToastDisplay.js.map +1 -1
- package/lib/components/molecules/DateDisplay/DateDisplay.js +1 -1
- package/lib/components/molecules/DatePicker/DatePicker.d.ts +2 -2
- package/lib/components/molecules/DatePicker/DatePicker.js +1 -1
- package/lib/components/molecules/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/molecules/HeaderBand/HeaderBand.js +4 -9
- package/lib/components/molecules/HeaderBand/HeaderBand.js.map +1 -1
- package/lib/components/molecules/InputBarCodeCard/InputBarCodeCard.d.ts +1 -1
- package/lib/components/molecules/InputBarCodeCard/InputBarCodeCard.js +12 -30
- package/lib/components/molecules/InputBarCodeCard/InputBarCodeCard.js.map +1 -1
- package/lib/components/molecules/UploadFileInput/UploadFileInput.js +39 -40
- package/lib/components/molecules/UploadFileInput/UploadFileInput.js.map +1 -1
- package/lib/components/molecules/index.d.ts +0 -1
- package/lib/components/molecules/index.js +0 -1
- package/lib/components/molecules/index.js.map +1 -1
- package/lib/components/organisms/AOSImage/AOSImage.js +1 -1
- package/lib/components/organisms/AOSImage/AOSImage.js.map +1 -1
- package/lib/components/organisms/DateInput/DateInput.d.ts +1 -1
- package/lib/components/organisms/DateInput/DateInput.js +18 -15
- package/lib/components/organisms/DateInput/DateInput.js.map +1 -1
- package/lib/components/organisms/FilterContainer/FilterContainer.js +11 -8
- package/lib/components/organisms/FilterContainer/FilterContainer.js.map +1 -1
- package/lib/components/organisms/PopupFilters/PopupFilters.js +8 -3
- package/lib/components/organisms/PopupFilters/PopupFilters.js.map +1 -1
- package/lib/components/organisms/SignatureInput/SignatureInput.js +15 -23
- package/lib/components/organisms/SignatureInput/SignatureInput.js.map +1 -1
- package/lib/components/pages/CustomFieldForm/CustomFieldForm.js +1 -0
- package/lib/components/pages/CustomFieldForm/CustomFieldForm.js.map +1 -1
- package/lib/components/pages/FormView/Components/Field.js +2 -10
- package/lib/components/pages/FormView/Components/Field.js.map +1 -1
- package/lib/components/pages/FormView/Components/Panel.js +8 -6
- package/lib/components/pages/FormView/Components/Panel.js.map +1 -1
- package/lib/components/pages/FormView/FormView.d.ts +2 -1
- package/lib/components/pages/FormView/FormView.js +20 -4
- package/lib/components/pages/FormView/FormView.js.map +1 -1
- package/lib/components/templates/PeriodInput/PeriodInput.js +7 -6
- package/lib/components/templates/PeriodInput/PeriodInput.js.map +1 -1
- package/lib/components/templates/SocialNetworkLinks/SocialNetworkLinks.d.ts +3 -2
- package/lib/components/templates/SocialNetworkLinks/SocialNetworkLinks.js +9 -16
- package/lib/components/templates/SocialNetworkLinks/SocialNetworkLinks.js.map +1 -1
- package/lib/dashboards/component/AOPChart/DynamicSearchForm.d.ts +4 -4
- package/lib/dashboards/component/AOPChart/DynamicSearchForm.js +23 -23
- package/lib/dashboards/component/AOPChart/DynamicSearchForm.js.map +1 -1
- package/lib/dashboards/view/DashboardView.js +1 -1
- package/lib/dashboards/view/DashboardView.js.map +1 -1
- package/lib/features/authSlice.d.ts +1 -1
- package/lib/forms/api.helpers.d.ts +1 -1
- package/lib/forms/display.helpers.d.ts +2 -2
- package/lib/forms/display.helpers.js.map +1 -1
- package/lib/forms/types.d.ts +5 -5
- package/lib/header/FilterProvider.js +2 -2
- package/lib/header/FilterProvider.js.map +1 -1
- package/lib/header/HeaderActionsProvider.d.ts +2 -2
- package/lib/header/HeaderActionsProvider.js.map +1 -1
- package/lib/header/utils.d.ts +1 -1
- package/lib/header/utils.js +2 -6
- package/lib/header/utils.js.map +1 -1
- package/lib/hooks/index.d.ts +2 -2
- package/lib/hooks/index.js +2 -2
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-background-function.d.ts +1 -1
- package/lib/hooks/use-background-function.js +2 -2
- package/lib/hooks/use-background-function.js.map +1 -1
- package/lib/hooks/use-effect-debugger.d.ts +4 -3
- package/lib/hooks/use-effect-debugger.js.map +1 -1
- package/lib/hooks/use-header-registers.d.ts +1 -1
- package/lib/hooks/use-header-registers.js +1 -1
- package/lib/hooks/use-header-registers.js.map +1 -1
- package/lib/i18n/i18n.d.ts +1 -1
- package/lib/i18n/i18n.js +2 -1
- package/lib/i18n/i18n.js.map +1 -1
- package/lib/i18n/translations/en.json +4 -1
- package/lib/i18n/translations/fr.json +3 -0
- package/lib/loader/components/atoms/ProcessCard/ProcessCard.js +3 -5
- package/lib/loader/components/atoms/ProcessCard/ProcessCard.js.map +1 -1
- package/lib/navigator/Navigator.d.ts +4 -4
- package/lib/navigator/Navigator.js +45 -29
- package/lib/navigator/Navigator.js.map +1 -1
- package/lib/navigator/components/DrawerContent.js +51 -47
- package/lib/navigator/components/DrawerContent.js.map +1 -1
- package/lib/navigator/components/header/Header.d.ts +1 -2
- package/lib/navigator/components/header/Header.js +13 -35
- package/lib/navigator/components/header/Header.js.map +1 -1
- package/lib/navigator/components/header/HeaderButton.js +13 -6
- package/lib/navigator/components/header/HeaderButton.js.map +1 -1
- package/lib/navigator/components/header/HeaderOptionMenu.js +17 -3
- package/lib/navigator/components/header/HeaderOptionMenu.js.map +1 -1
- package/lib/navigator/components/header/HeaderOptionMenuItem.js +18 -15
- package/lib/navigator/components/header/HeaderOptionMenuItem.js.map +1 -1
- package/lib/navigator/components/menu/AuthMenu.js +9 -3
- package/lib/navigator/components/menu/AuthMenu.js.map +1 -1
- package/lib/navigator/components/menu/Menu.js +10 -4
- package/lib/navigator/components/menu/Menu.js.map +1 -1
- package/lib/navigator/components/menu/MenuIconButton.d.ts +3 -1
- package/lib/navigator/components/menu/MenuIconButton.js +60 -41
- package/lib/navigator/components/menu/MenuIconButton.js.map +1 -1
- package/lib/navigator/components/menu/MenuIconTile.d.ts +14 -0
- package/lib/navigator/components/menu/MenuIconTile.js +45 -0
- package/lib/navigator/components/menu/MenuIconTile.js.map +1 -0
- package/lib/navigator/components/menu/MenuItemEntry.d.ts +1 -1
- package/lib/navigator/components/menu/MenuItemEntry.js +30 -46
- package/lib/navigator/components/menu/MenuItemEntry.js.map +1 -1
- package/lib/navigator/components/menu/MenuItemList.js +13 -10
- package/lib/navigator/components/menu/MenuItemList.js.map +1 -1
- package/lib/navigator/components/menu/MenuSeparator.d.ts +1 -2
- package/lib/navigator/components/menu/MenuSeparator.js +16 -21
- package/lib/navigator/components/menu/MenuSeparator.js.map +1 -1
- package/lib/navigator/components/menu/SubMenuItem.js +1 -2
- package/lib/navigator/components/menu/SubMenuItem.js.map +1 -1
- package/lib/navigator/components/menu/SubMenuItemList.js +19 -4
- package/lib/navigator/components/menu/SubMenuItemList.js.map +1 -1
- package/lib/navigator/components/menu/index.d.ts +0 -1
- package/lib/navigator/components/menu/index.js +0 -1
- package/lib/navigator/components/menu/index.js.map +1 -1
- package/lib/navigator/helpers/index.d.ts +1 -0
- package/lib/navigator/helpers/index.js +1 -0
- package/lib/navigator/helpers/index.js.map +1 -1
- package/lib/navigator/helpers/module.helper.d.ts +3 -3
- package/lib/navigator/helpers/module.helper.js +3 -4
- package/lib/navigator/helpers/module.helper.js.map +1 -1
- package/lib/navigator/helpers/screen-orientation.helper.d.ts +6 -0
- package/lib/navigator/helpers/screen-orientation.helper.js +36 -0
- package/lib/navigator/helpers/screen-orientation.helper.js.map +1 -0
- package/lib/navigator/providers/module-navigator.d.ts +2 -2
- package/lib/navigator/providers/module-navigator.js +1 -3
- package/lib/navigator/providers/module-navigator.js.map +1 -1
- package/lib/screens/LoginScreen.d.ts +2 -4
- package/lib/screens/LoginScreen.js +45 -58
- package/lib/screens/LoginScreen.js.map +1 -1
- package/lib/screens/ProcessListScreen.js +1 -1
- package/lib/screens/ProcessListScreen.js.map +1 -1
- package/lib/screens/SessionManagementScreen.d.ts +2 -4
- package/lib/screens/SessionManagementScreen.js +15 -27
- package/lib/screens/SessionManagementScreen.js.map +1 -1
- package/lib/screens/index.js +0 -10
- package/lib/screens/index.js.map +1 -1
- package/lib/sessions/components/alerts/PopupCreateSession.d.ts +11 -10
- package/lib/sessions/components/alerts/PopupCreateSession.js +19 -32
- package/lib/sessions/components/alerts/PopupCreateSession.js.map +1 -1
- package/lib/sessions/components/alerts/PopupEditSession.d.ts +9 -8
- package/lib/sessions/components/alerts/PopupEditSession.js +9 -10
- package/lib/sessions/components/alerts/PopupEditSession.js.map +1 -1
- package/lib/sessions/components/alerts/PopupSession.d.ts +10 -9
- package/lib/sessions/components/alerts/PopupSession.js +9 -10
- package/lib/sessions/components/alerts/PopupSession.js.map +1 -1
- package/lib/sessions/components/display/LogoImage.d.ts +5 -5
- package/lib/sessions/components/display/LogoImage.js +16 -18
- package/lib/sessions/components/display/LogoImage.js.map +1 -1
- package/lib/sessions/components/display/SessionCard.d.ts +13 -10
- package/lib/sessions/components/display/SessionCard.js +53 -45
- package/lib/sessions/components/display/SessionCard.js.map +1 -1
- package/lib/sessions/components/display/SessionListCard.d.ts +14 -11
- package/lib/sessions/components/display/SessionListCard.js +24 -16
- package/lib/sessions/components/display/SessionListCard.js.map +1 -1
- package/lib/sessions/components/error/ErrorText.d.ts +5 -5
- package/lib/sessions/components/error/ErrorText.js +2 -4
- package/lib/sessions/components/error/ErrorText.js.map +1 -1
- package/lib/sessions/components/inputs/DefaultCheckbox.d.ts +1 -1
- package/lib/sessions/components/inputs/DefaultCheckbox.js +2 -10
- package/lib/sessions/components/inputs/DefaultCheckbox.js.map +1 -1
- package/lib/sessions/components/inputs/MfaCodeInput.d.ts +1 -1
- package/lib/sessions/components/inputs/MfaCodeInput.js +3 -14
- package/lib/sessions/components/inputs/MfaCodeInput.js.map +1 -1
- package/lib/sessions/components/inputs/PasswordInput.d.ts +9 -8
- package/lib/sessions/components/inputs/PasswordInput.js +7 -18
- package/lib/sessions/components/inputs/PasswordInput.js.map +1 -1
- package/lib/sessions/components/inputs/SessionInputs.d.ts +14 -13
- package/lib/sessions/components/inputs/SessionInputs.js +25 -48
- package/lib/sessions/components/inputs/SessionInputs.js.map +1 -1
- package/lib/sessions/components/inputs/SessionNameInput.d.ts +9 -8
- package/lib/sessions/components/inputs/SessionNameInput.js +6 -17
- package/lib/sessions/components/inputs/SessionNameInput.js.map +1 -1
- package/lib/sessions/components/inputs/UrlInput.d.ts +11 -10
- package/lib/sessions/components/inputs/UrlInput.js +8 -18
- package/lib/sessions/components/inputs/UrlInput.js.map +1 -1
- package/lib/sessions/components/inputs/UsernameInput.d.ts +11 -10
- package/lib/sessions/components/inputs/UsernameInput.js +7 -18
- package/lib/sessions/components/inputs/UsernameInput.js.map +1 -1
- package/lib/tools/ContactProvider.d.ts +1 -0
- package/lib/tools/ContactProvider.js +21 -22
- package/lib/tools/ContactProvider.js.map +1 -1
- package/lib/tools/LinkingProvider.d.ts +2 -2
- package/lib/tools/LinkingProvider.js +4 -0
- package/lib/tools/LinkingProvider.js.map +1 -1
- package/lib/utils/image.d.ts +2 -2
- package/lib/utils/image.js +1 -1
- package/lib/utils/image.js.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/registry.helper.d.ts +9 -0
- package/lib/{components/molecules/FocusScreen/FocusScreen.js → utils/registry.helper.js} +18 -17
- package/lib/utils/registry.helper.js.map +1 -0
- package/package.json +42 -46
- package/lib/auth/components/molecules/NavigationToolsButton/NavigationToolsButton.d.ts +0 -3
- package/lib/auth/components/molecules/NavigationToolsButton/NavigationToolsButton.js +0 -60
- package/lib/auth/components/molecules/NavigationToolsButton/NavigationToolsButton.js.map +0 -1
- package/lib/auth/components/molecules/TranslationsButton/TranslationsButton.d.ts +0 -3
- package/lib/auth/components/molecules/TranslationsButton/TranslationsButton.js +0 -61
- package/lib/auth/components/molecules/TranslationsButton/TranslationsButton.js.map +0 -1
- package/lib/components/external/PlanningView/AgendaItemDisplay.d.ts +0 -8
- package/lib/components/external/PlanningView/AgendaItemDisplay.js +0 -81
- package/lib/components/external/PlanningView/AgendaItemDisplay.js.map +0 -1
- package/lib/components/external/PlanningView/DayDisplay.d.ts +0 -5
- package/lib/components/external/PlanningView/DayDisplay.js +0 -59
- package/lib/components/external/PlanningView/DayDisplay.js.map +0 -1
- package/lib/components/external/PlanningView/MonthDisplay.d.ts +0 -6
- package/lib/components/external/PlanningView/MonthDisplay.js +0 -46
- package/lib/components/external/PlanningView/MonthDisplay.js.map +0 -1
- package/lib/components/external/PlanningView/NavigationButton.d.ts +0 -7
- package/lib/components/external/PlanningView/NavigationButton.js.map +0 -1
- package/lib/components/molecules/FocusScreen/FocusScreen.d.ts +0 -12
- package/lib/components/molecules/FocusScreen/FocusScreen.js.map +0 -1
- package/lib/navigator/components/menu/MenuTitle.d.ts +0 -8
- package/lib/navigator/components/menu/MenuTitle.js +0 -55
- package/lib/navigator/components/menu/MenuTitle.js.map +0 -1
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
19
19
|
import { StyleSheet, View, Animated, TouchableOpacity, Dimensions, } from 'react-native';
|
|
20
|
-
import { GestureHandlerRootView,
|
|
21
|
-
import Swipeable from 'react-native-gesture-handler/
|
|
22
|
-
import { useThemeColor, Card, Text, Icon } from '@axelor/aos-mobile-ui';
|
|
20
|
+
import { GestureHandlerRootView, Touchable } from 'react-native-gesture-handler';
|
|
21
|
+
import Swipeable from 'react-native-gesture-handler/ReanimatedSwipeable';
|
|
22
|
+
import { useThemeColor, Card, Text, Icon, LabelText, } from '@axelor/aos-mobile-ui';
|
|
23
|
+
import { sessionStorage } from '../../SessionStorage';
|
|
23
24
|
import LogoImage from './LogoImage';
|
|
24
|
-
|
|
25
|
-
const SessionCard = ({ session, changeActiveSession, openConnection, openEdition, isUnactive, logoFile, handleRemove = null, }) => {
|
|
25
|
+
const SessionCard = ({ session, changeActiveSession, openConnection, openEdition, isUnactive, logoFile, handleRemove, }) => {
|
|
26
26
|
const Colors = useThemeColor();
|
|
27
27
|
const ref = useRef(null);
|
|
28
28
|
const translateXAnim = useRef(new Animated.Value(0)).current;
|
|
@@ -71,26 +71,22 @@ const SessionCard = ({ session, changeActiveSession, openConnection, openEdition
|
|
|
71
71
|
translateYAnim.setValue(0);
|
|
72
72
|
});
|
|
73
73
|
}, [handleRemove, scaleAnim, session, translateXAnim, translateYAnim]);
|
|
74
|
-
const renderActionButton = (
|
|
75
|
-
return (<
|
|
76
|
-
<
|
|
74
|
+
const renderActionButton = (iconName, color, onPress) => {
|
|
75
|
+
return (<View style={styles.actionView}>
|
|
76
|
+
<Touchable onPress={onPress}>
|
|
77
77
|
<View style={[
|
|
78
78
|
styles.action,
|
|
79
79
|
{ borderColor: color, backgroundColor: Colors.backgroundColor },
|
|
80
80
|
]}>
|
|
81
|
-
<Icon name={iconName} color={
|
|
81
|
+
<Icon name={iconName} color={color} size={18}/>
|
|
82
82
|
</View>
|
|
83
|
-
</
|
|
84
|
-
</
|
|
83
|
+
</Touchable>
|
|
84
|
+
</View>);
|
|
85
85
|
};
|
|
86
|
-
const renderRightActions = (
|
|
87
|
-
const trans = dragX.interpolate({
|
|
88
|
-
inputRange: [0, 100],
|
|
89
|
-
outputRange: [0, 1],
|
|
90
|
-
});
|
|
86
|
+
const renderRightActions = () => {
|
|
91
87
|
return (<View style={styles.actionsContainer}>
|
|
92
|
-
{renderActionButton(
|
|
93
|
-
{renderActionButton(
|
|
88
|
+
{renderActionButton('pencil-fill', Colors.primaryColor.background, handleEdition)}
|
|
89
|
+
{renderActionButton('trash3-fill', Colors.errorColor.background, animateRemoval)}
|
|
94
90
|
</View>);
|
|
95
91
|
};
|
|
96
92
|
useEffect(() => {
|
|
@@ -112,22 +108,22 @@ const SessionCard = ({ session, changeActiveSession, openConnection, openEdition
|
|
|
112
108
|
],
|
|
113
109
|
},
|
|
114
110
|
]}>
|
|
115
|
-
<Card style={
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
111
|
+
<Card style={styles.cardContainer}>
|
|
112
|
+
{session?.isDefault && (<View style={[
|
|
113
|
+
styles.activeSession,
|
|
114
|
+
{ backgroundColor: Colors.primaryColor.background },
|
|
115
|
+
]}/>)}
|
|
116
|
+
<View style={[
|
|
117
|
+
styles.logoTile,
|
|
118
|
+
{ borderColor: Colors.secondaryColor.background_light },
|
|
122
119
|
]}>
|
|
123
|
-
<View style={styles.imageContainer}>
|
|
124
120
|
<LogoImage logoFile={logoFile} url={session.url}/>
|
|
125
121
|
</View>
|
|
126
122
|
<View style={styles.textContainer}>
|
|
127
|
-
<Text writingType="title" fontSize={
|
|
123
|
+
<Text writingType="title" fontSize={16}>
|
|
128
124
|
{session.name}
|
|
129
125
|
</Text>
|
|
130
|
-
<
|
|
126
|
+
<LabelText iconName="link-45deg" title={session.url} onlyOneLine size={14} textSize={14}/>
|
|
131
127
|
</View>
|
|
132
128
|
</Card>
|
|
133
129
|
</Animated.View>
|
|
@@ -144,38 +140,50 @@ const styles = StyleSheet.create({
|
|
|
144
140
|
flexDirection: 'row',
|
|
145
141
|
alignItems: 'center',
|
|
146
142
|
marginVertical: 4,
|
|
143
|
+
paddingVertical: 16,
|
|
144
|
+
paddingHorizontal: 10,
|
|
147
145
|
width: '90%',
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
minHeight: 88,
|
|
147
|
+
borderRadius: 16,
|
|
148
|
+
},
|
|
149
|
+
activeSession: {
|
|
150
|
+
borderRadius: 20,
|
|
151
|
+
height: '100%',
|
|
152
|
+
width: 4,
|
|
153
|
+
marginRight: 10,
|
|
150
154
|
},
|
|
151
|
-
|
|
152
|
-
width:
|
|
153
|
-
height:
|
|
155
|
+
logoTile: {
|
|
156
|
+
width: 60,
|
|
157
|
+
height: 60,
|
|
158
|
+
borderRadius: 12,
|
|
159
|
+
borderWidth: 0.5,
|
|
160
|
+
padding: 6,
|
|
161
|
+
overflow: 'hidden',
|
|
154
162
|
},
|
|
155
163
|
textContainer: {
|
|
156
164
|
flexDirection: 'column',
|
|
157
|
-
|
|
158
|
-
marginLeft:
|
|
165
|
+
flex: 1,
|
|
166
|
+
marginLeft: 10,
|
|
159
167
|
},
|
|
160
168
|
actionsContainer: {
|
|
161
|
-
|
|
162
|
-
marginLeft: -15,
|
|
169
|
+
marginLeft: -8,
|
|
163
170
|
marginRight: 20,
|
|
164
|
-
marginVertical:
|
|
165
|
-
flexDirection: '
|
|
171
|
+
marginVertical: 8,
|
|
172
|
+
flexDirection: 'row',
|
|
173
|
+
alignItems: 'center',
|
|
166
174
|
},
|
|
167
175
|
actionView: {
|
|
168
|
-
|
|
176
|
+
height: '100%',
|
|
177
|
+
justifyContent: 'center',
|
|
169
178
|
},
|
|
170
179
|
action: {
|
|
171
|
-
width:
|
|
172
|
-
height:
|
|
180
|
+
width: 56,
|
|
181
|
+
height: 56,
|
|
173
182
|
alignSelf: 'center',
|
|
174
183
|
justifyContent: 'center',
|
|
175
184
|
alignItems: 'center',
|
|
176
|
-
borderWidth:
|
|
177
|
-
borderRadius:
|
|
178
|
-
marginVertical: 2,
|
|
185
|
+
borderWidth: 1,
|
|
186
|
+
borderRadius: 16,
|
|
179
187
|
marginHorizontal: 4,
|
|
180
188
|
},
|
|
181
189
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionCard.js","sourceRoot":"","sources":["../../../../src/sessions/components/display/SessionCard.
|
|
1
|
+
{"version":3,"file":"SessionCard.js","sourceRoot":"","sources":["../../../../src/sessions/components/display/SessionCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAC5D,OAAO,EACL,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,UAAU,G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BAAgB,EAAE;QAChB,UAAU,EAAE,CAAC,CAAC;QACd,WAAW,EAAE,EAAE;QACf,cAAc,EAAE,CAAC;QACjB,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;KACrB;IACD,UAAU,EAAE;QACV,MAAM,EAAE,MAAM;QACd,cAAc,EAAE,QAAQ;KACzB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,SAAS,EAAE,QAAQ;QACnB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,CAAC;QACd,YAAY,EAAE,EAAE;QAChB,gBAAgB,EAAE,CAAC;KACpB;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
export default SessionListCard;
|
|
2
|
-
declare function SessionListCard({ logoFile, sessionList, changeActiveSession, openConnection, openEdition, openCreation, session, handleRemoveSession, }: {
|
|
3
|
-
logoFile: any;
|
|
4
|
-
sessionList: any;
|
|
5
|
-
changeActiveSession: any;
|
|
6
|
-
openConnection: any;
|
|
7
|
-
openEdition: any;
|
|
8
|
-
openCreation: any;
|
|
9
|
-
session: any;
|
|
10
|
-
handleRemoveSession?: any;
|
|
11
|
-
}): React.JSX.Element;
|
|
12
1
|
import React from 'react';
|
|
2
|
+
import { Session } from '../../type';
|
|
3
|
+
declare const SessionListCard: ({ logoFile, sessionList, changeActiveSession, openConnection, openEdition, openCreation, session, handleRemoveSession, }: {
|
|
4
|
+
logoFile?: any;
|
|
5
|
+
sessionList?: Session[];
|
|
6
|
+
changeActiveSession: (_v?: Session) => void;
|
|
7
|
+
openConnection: () => void;
|
|
8
|
+
openEdition: () => void;
|
|
9
|
+
openCreation: () => void;
|
|
10
|
+
session?: Session;
|
|
11
|
+
handleRemoveSession?: (data: {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export default SessionListCard;
|
|
@@ -16,38 +16,46 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
import React, { useMemo } from 'react';
|
|
19
|
-
import { ScrollView, StyleSheet, View } from 'react-native';
|
|
20
|
-
import { useThemeColor, Icon } from '@axelor/aos-mobile-ui';
|
|
19
|
+
import { ScrollView, StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
20
|
+
import { useThemeColor, Icon, Text, Card } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useTranslator } from '../../../i18n';
|
|
21
22
|
import { SessionCard } from '../../components';
|
|
22
|
-
const SessionListCard = ({ logoFile, sessionList, changeActiveSession, openConnection, openEdition, openCreation, session, handleRemoveSession
|
|
23
|
+
const SessionListCard = ({ logoFile, sessionList, changeActiveSession, openConnection, openEdition, openCreation, session, handleRemoveSession, }) => {
|
|
23
24
|
const Colors = useThemeColor();
|
|
25
|
+
const I18n = useTranslator();
|
|
24
26
|
const sessions = useMemo(() => sessionList, [sessionList]);
|
|
25
|
-
const styles = useMemo(() => getStyles(Colors), [Colors]);
|
|
26
27
|
return (<View style={styles.container}>
|
|
27
|
-
<
|
|
28
|
-
<
|
|
29
|
-
|
|
28
|
+
<Card style={styles.addContainer}>
|
|
29
|
+
<TouchableOpacity style={styles.addButton} onPress={openCreation} activeOpacity={0.9}>
|
|
30
|
+
<Icon name="plus-lg" size={16} color={Colors.secondaryColor_dark.background_light}/>
|
|
31
|
+
<Text writingType="important" fontSize={16} textColor={Colors.secondaryColor_dark.background_light}>
|
|
32
|
+
{I18n.t('Base_Add')}
|
|
33
|
+
</Text>
|
|
34
|
+
</TouchableOpacity>
|
|
35
|
+
</Card>
|
|
30
36
|
{!Array.isArray(sessions) || sessions?.length === 0 ? null : (<ScrollView>
|
|
31
37
|
{sessions.map(_session => (<SessionCard key={_session.id} session={_session} changeActiveSession={changeActiveSession} openConnection={openConnection} openEdition={openEdition} isUnactive={_session.id !== session?.id} logoFile={logoFile} handleRemove={handleRemoveSession}/>))}
|
|
32
38
|
</ScrollView>)}
|
|
33
39
|
</View>);
|
|
34
40
|
};
|
|
35
|
-
const
|
|
41
|
+
const styles = StyleSheet.create({
|
|
36
42
|
container: {
|
|
37
43
|
width: '100%',
|
|
38
44
|
height: '65%',
|
|
39
45
|
},
|
|
40
|
-
|
|
46
|
+
addContainer: {
|
|
41
47
|
alignSelf: 'flex-end',
|
|
42
48
|
marginRight: '5%',
|
|
49
|
+
marginBottom: 8,
|
|
50
|
+
paddingHorizontal: 12,
|
|
51
|
+
paddingRight: 12,
|
|
52
|
+
paddingVertical: 10,
|
|
53
|
+
borderRadius: 12,
|
|
43
54
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
backgroundColor: Colors.secondaryColor_dark.foreground,
|
|
49
|
-
borderWidth: 1,
|
|
50
|
-
borderColor: Colors.primaryColor.background,
|
|
55
|
+
addButton: {
|
|
56
|
+
flexDirection: 'row',
|
|
57
|
+
alignItems: 'center',
|
|
58
|
+
gap: 8,
|
|
51
59
|
},
|
|
52
60
|
});
|
|
53
61
|
export default SessionListCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionListCard.js","sourceRoot":"","sources":["../../../../src/sessions/components/display/SessionListCard.
|
|
1
|
+
{"version":3,"file":"SessionListCard.js","sourceRoot":"","sources":["../../../../src/sessions/components/display/SessionListCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,C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,CAAC,CAAC,CAC3D,CAAC,UAAU,CACT;UAAA,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CACxB,CAAC,WAAW,CACV,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CACjB,OAAO,CAAC,CAAC,QAAQ,CAAC,CAClB,mBAAmB,CAAC,CAAC,mBAAmB,CAAC,CACzC,cAAc,CAAC,CAAC,cAAc,CAAC,CAC/B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,OAAO,EAAE,EAAE,CAAC,CACxC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,YAAY,CAAC,CAAC,mBAAmB,CAAC,EAClC,CACH,CAAC,CACJ;QAAA,EAAE,UAAU,CAAC,CACd,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,KAAK;KACd;IACD,YAAY,EAAE;QACZ,SAAS,EAAE,UAAU;QACrB,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,CAAC;QACf,iBAAiB,EAAE,EAAE;QACrB,YAAY,EAAE,EAAE;QAChB,eAAe,EAAE,EAAE;QACnB,YAAY,EAAE,EAAE;KACjB;IACD,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;KACP;CACF,CAAC,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export default ErrorText;
|
|
2
|
-
declare function ErrorText({ error, style }: {
|
|
3
|
-
error: any;
|
|
4
|
-
style: any;
|
|
5
|
-
}): React.JSX.Element;
|
|
6
1
|
import React from 'react';
|
|
2
|
+
declare const ErrorText: ({ error, style }: {
|
|
3
|
+
error: any;
|
|
4
|
+
style?: any;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export default ErrorText;
|
|
@@ -26,9 +26,8 @@ const NO_CONNECTION_CODE = 418;
|
|
|
26
26
|
const ErrorText = ({ error, style }) => {
|
|
27
27
|
const I18n = useTranslator();
|
|
28
28
|
const errorCode = useMemo(() => {
|
|
29
|
-
if (error?.message == null)
|
|
29
|
+
if (error?.message == null)
|
|
30
30
|
return null;
|
|
31
|
-
}
|
|
32
31
|
const regexResult = error.message.match(ERROR_CODE_REGEX)?.[0];
|
|
33
32
|
return regexResult == null ? null : parseFloat(regexResult);
|
|
34
33
|
}, [error]);
|
|
@@ -44,9 +43,8 @@ const ErrorText = ({ error, style }) => {
|
|
|
44
43
|
}
|
|
45
44
|
return error?.message;
|
|
46
45
|
}, [I18n, error, errorCode]);
|
|
47
|
-
if (error == null)
|
|
46
|
+
if (error == null)
|
|
48
47
|
return null;
|
|
49
|
-
}
|
|
50
48
|
return (<WarningCard style={[styles.card, style]} errorMessage={errorMessage}/>);
|
|
51
49
|
};
|
|
52
50
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorText.js","sourceRoot":"","sources":["../../../../src/sessions/components/error/ErrorText.
|
|
1
|
+
{"version":3,"file":"ErrorText.js","sourceRoot":"","sources":["../../../../src/sessions/components/error/ErrorText.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,gBAAgB,GAAG,SAAS,CAAC;AACnC,MAAM,WAAW,GAAG,GAAG,CAAC;AACxB,MAAM,SAAS,GAAG,GAAG,CAA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AAC,CAAC,YAAY,CAAC,EAAG,CACzE,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
interface props {
|
|
3
3
|
style?: any;
|
|
4
4
|
value?: boolean;
|
|
5
|
-
onChange
|
|
5
|
+
onChange: (value?: boolean) => void;
|
|
6
6
|
hidden?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const DefaultCheckbox: ({ style, value, onChange, hidden }: props) => React.JSX.Element;
|
|
@@ -16,21 +16,13 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
import React from 'react';
|
|
19
|
-
import { StyleSheet } from 'react-native';
|
|
20
19
|
import { Checkbox } from '@axelor/aos-mobile-ui';
|
|
21
20
|
import { useTranslator } from '../../../i18n';
|
|
22
21
|
const DefaultCheckbox = ({ style, value, onChange, hidden = false }) => {
|
|
23
22
|
const I18n = useTranslator();
|
|
24
|
-
if (hidden)
|
|
23
|
+
if (hidden)
|
|
25
24
|
return null;
|
|
26
|
-
}
|
|
27
|
-
return (<Checkbox title={I18n.t('Base_Connection_DefaultSession')} isDefaultChecked={value} onChange={onChange} iconSize={20} style={[styles.checkbox, style]}/>);
|
|
25
|
+
return (<Checkbox title={I18n.t('Base_Connection_DefaultSession')} isDefaultChecked={value} onChange={onChange} iconSize={20} style={style}/>);
|
|
28
26
|
};
|
|
29
|
-
const styles = StyleSheet.create({
|
|
30
|
-
checkbox: {
|
|
31
|
-
alignSelf: 'flex-start',
|
|
32
|
-
marginLeft: 20,
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
27
|
export default DefaultCheckbox;
|
|
36
28
|
//# sourceMappingURL=DefaultCheckbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultCheckbox.js","sourceRoot":"","sources":["../../../../src/sessions/components/inputs/DefaultCheckbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"DefaultCheckbox.js","sourceRoot":"","sources":["../../../../src/sessions/components/inputs/DefaultCheckbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AAS5C,MAAM,eAAe,GAAG,CAAC,EAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK,EAAQ,EAAE,EAAE;IAC1E,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,IAAI,MAAM;QAAE,OAAO,IAAI,CAAC;IAExB,OAAO,CACL,CAAC,QAAQ,CACP,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAChD,gBAAgB,CAAC,CAAC,KAAK,CAAC,CACxB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,EAAE,CAAC,CACb,KAAK,CAAC,CAAC,KAAK,CAAC,EACb,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { MfaMethod } from '../../mfa';
|
|
|
3
3
|
interface MfaCodeInputProps {
|
|
4
4
|
style?: any;
|
|
5
5
|
value: string;
|
|
6
|
-
onChange: (
|
|
6
|
+
onChange: (_v?: string) => void;
|
|
7
7
|
selectedMethod?: MfaMethod;
|
|
8
8
|
}
|
|
9
9
|
declare const MfaCodeInput: ({ style, value, onChange, selectedMethod, }: MfaCodeInputProps) => React.JSX.Element;
|
|
@@ -15,24 +15,13 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import React
|
|
19
|
-
import {
|
|
20
|
-
import { checkNullString, getCommonStyles, Icon, IconInput, useThemeColor, } from '@axelor/aos-mobile-ui';
|
|
18
|
+
import React from 'react';
|
|
19
|
+
import { Icon, IconInput } from '@axelor/aos-mobile-ui';
|
|
21
20
|
import { useTranslator } from '../../../i18n';
|
|
22
21
|
import { getMfaPlaceholderKey } from '../../mfa';
|
|
23
22
|
const MfaCodeInput = ({ style, value, onChange, selectedMethod, }) => {
|
|
24
|
-
const Colors = useThemeColor();
|
|
25
23
|
const I18n = useTranslator();
|
|
26
|
-
|
|
27
|
-
return (<IconInput style={[style, commonStyles.inputFocused]} value={value} onChange={onChange} placeholder={I18n.t(getMfaPlaceholderKey(selectedMethod))} keyboardType="number-pad" required leftIconsList={[
|
|
28
|
-
<Icon name="shield-lock-fill" size={17} style={styles.icon}/>,
|
|
29
|
-
]} onEndFocus={() => { }}/>);
|
|
24
|
+
return (<IconInput style={style} value={value} onChange={onChange} placeholder={I18n.t(getMfaPlaceholderKey(selectedMethod))} keyboardType="number-pad" required leftIconsList={[<Icon name="shield-lock-fill" size={14}/>]}/>);
|
|
30
25
|
};
|
|
31
|
-
const styles = StyleSheet.create({
|
|
32
|
-
icon: {
|
|
33
|
-
width: '7%',
|
|
34
|
-
margin: 3,
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
26
|
export default MfaCodeInput;
|
|
38
27
|
//# sourceMappingURL=MfaCodeInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MfaCodeInput.js","sourceRoot":"","sources":["../../../../src/sessions/components/inputs/MfaCodeInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"MfaCodeInput.js","sourceRoot":"","sources":["../../../../src/sessions/components/inputs/MfaCodeInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,IAAI,EAAE,SAAS,EAAC,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAY,oBAAoB,EAAC,MAAM,WAAW,CAAC;AAS1D,MAAM,YAAY,GAAG,CAAC,EACpB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,cAAc,GACI,EAAE,EAAE;IACtB,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,OAAO,CACL,CAAC,SAAS,CACR,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC,CAAC,CAC1D,YAAY,CAAC,YAAY,CACzB,QAAQ,CACR,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAG,CAAC,CAAC,EAC5D,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
style
|
|
4
|
-
value
|
|
5
|
-
onChange
|
|
6
|
-
readOnly
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface PasswordInputProps {
|
|
3
|
+
style?: any;
|
|
4
|
+
value?: string;
|
|
5
|
+
onChange?: (_v?: string) => void;
|
|
6
|
+
readOnly?: boolean;
|
|
7
7
|
showRequiredFields?: boolean;
|
|
8
8
|
hidden?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
9
|
+
}
|
|
10
|
+
declare const PasswordInput: ({ style, value, onChange, readOnly, showRequiredFields, hidden, }: PasswordInputProps) => React.JSX.Element;
|
|
11
|
+
export default PasswordInput;
|
|
@@ -15,28 +15,17 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import React, {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
import { checkNullString } from '../../../utils';
|
|
23
|
-
const PasswordInput = ({ style, value, onChange, readOnly, showRequiredFields = false, hidden = false, }) => {
|
|
18
|
+
import React, { useState } from 'react';
|
|
19
|
+
import { Icon, IconInput } from '@axelor/aos-mobile-ui';
|
|
20
|
+
import { useTranslator } from '../../../i18n';
|
|
21
|
+
const PasswordInput = ({ style, value, onChange, readOnly = false, showRequiredFields = false, hidden = false, }) => {
|
|
24
22
|
const I18n = useTranslator();
|
|
25
|
-
const Colors = useThemeColor();
|
|
26
23
|
const [visible, setVisible] = useState(false);
|
|
27
|
-
|
|
28
|
-
if (hidden) {
|
|
24
|
+
if (hidden)
|
|
29
25
|
return null;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
<Icon name={visible ? 'eye-slash-fill' : 'eye-fill'} size={17} touchable={true} onPress={() => setVisible(!visible)} style={styles.icon}/>,
|
|
26
|
+
return (<IconInput style={style} value={value} onChange={onChange} readOnly={readOnly} required={showRequiredFields} secureTextEntry={!visible} placeholder={I18n.t('Base_Connection_Password')} leftIconsList={[<Icon name="key-fill" size={14}/>]} rightIconsList={[
|
|
27
|
+
<Icon name={visible ? 'eye-slash-fill' : 'eye-fill'} size={14} touchable={true} onPress={() => setVisible(!visible)}/>,
|
|
33
28
|
]}/>);
|
|
34
29
|
};
|
|
35
|
-
const styles = StyleSheet.create({
|
|
36
|
-
icon: {
|
|
37
|
-
width: '7%',
|
|
38
|
-
margin: 3,
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
30
|
export default PasswordInput;
|
|
42
31
|
//# sourceMappingURL=PasswordInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInput.js","sourceRoot":"","sources":["../../../../src/sessions/components/inputs/PasswordInput.
|
|
1
|
+
{"version":3,"file":"PasswordInput.js","sourceRoot":"","sources":["../../../../src/sessions/components/inputs/PasswordInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,IAAI,EAAE,SAAS,EAAC,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AAW5C,MAAM,aAAa,GAAG,CAAC,EACrB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,kBAAkB,GAAG,KAAK,EAC1B,MAAM,GAAG,KAAK,GACK,EAAE,EAAE;IACvB,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,IAAI,MAAM;QAAE,OAAO,IAAI,CAAC;IAExB,OAAO,CACL,CAAC,SAAS,CACR,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,kBAAkB,CAAC,CAC7B,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAC1B,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAChD,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAG,CAAC,CAAC,CACpD,cAAc,CAAC,CAAC;YACd,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU,CAAC,CAC9C,IAAI,CAAC,CAAC,EAAE,CAAC,CACT,SAAS,CAAC,CAAC,IAAI,CAAC,CAChB,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,EACpC;SACH,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export default SessionInputs;
|
|
2
|
-
declare function SessionInputs({ style, sessionList, session, showUrlInput, loading, mode, showPopup, onValidation, hidden, saveBeforeScan, }: {
|
|
3
|
-
style: any;
|
|
4
|
-
sessionList: any;
|
|
5
|
-
session: any;
|
|
6
|
-
showUrlInput: any;
|
|
7
|
-
loading: any;
|
|
8
|
-
mode: any;
|
|
9
|
-
showPopup: any;
|
|
10
|
-
onValidation: any;
|
|
11
|
-
hidden: any;
|
|
12
|
-
saveBeforeScan?: () => void;
|
|
13
|
-
}): React.JSX.Element;
|
|
14
1
|
import React from 'react';
|
|
2
|
+
import { Session } from '../../type';
|
|
3
|
+
declare const SessionInputs: ({ style, sessionList, session, showUrlInput, loading, mode, showPopup, onValidation, hidden, saveBeforeScan, }: {
|
|
4
|
+
style?: any;
|
|
5
|
+
sessionList?: Session[];
|
|
6
|
+
session?: Session;
|
|
7
|
+
showUrlInput?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
mode: string;
|
|
10
|
+
showPopup?: (_v: boolean) => void;
|
|
11
|
+
onValidation: (_v?: any) => void;
|
|
12
|
+
hidden?: boolean;
|
|
13
|
+
saveBeforeScan?: (_v?: any) => void;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export default SessionInputs;
|