@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
package/lib/auth/index.js
CHANGED
package/lib/auth/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AACpC,OAAO,cAAc,MAAM,gBAAgB,CAAC;AAC5C,OAAO,cAAc,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,YAAY,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAC,cAAc,EAAE,UAAU,EAAC,MAAM,WAAW,CAAC;AACrD,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AACvC,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC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AC;IAChD,cAAc,EAAE,KAAK,EAAE,MAAc,EAAE,EAAE;QACvC,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC;aACrC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;aACjC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAErB,MAAM,uBAAuB,CAAC,IAAI,CAAC,CAAC;QACpC,MAAM,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF,CAAC;AAEF,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -15,109 +15,75 @@
|
|
|
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, { useCallback
|
|
18
|
+
import React, { useCallback } from 'react';
|
|
19
19
|
import { StyleSheet, View } from 'react-native';
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
20
|
+
import { Icon, Picker, RightIconButton, Screen, ScrollView, SwitchCard, Text, useThemeColor, GroupedCard, } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useSelector } from '../../redux/hooks';
|
|
22
22
|
import { useTranslator } from '../../i18n';
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
import { NavigationToolsButton, TranslationsButton } from '../components';
|
|
27
|
-
import { useIsAdmin } from '../../permissions';
|
|
28
|
-
import { useStorageUpdater } from '../../hooks/use-storage-config';
|
|
29
|
-
const SettingsScreen = ({ children }) => {
|
|
23
|
+
import { useStorageUpdater } from '../../hooks';
|
|
24
|
+
import { SettingsItemType, useSettings } from '../settings';
|
|
25
|
+
const SettingsScreen = () => {
|
|
30
26
|
const I18n = useTranslator();
|
|
31
|
-
const
|
|
32
|
-
const online = useOnline();
|
|
33
|
-
const isAdmin = useIsAdmin();
|
|
34
|
-
const dispatch = useDispatch();
|
|
35
|
-
const { showFilter, toggleFilterConfig, virtualKeyboardVisibility, setVirtualKeyboardVisibility, setShowSubtitles, showSubtitles, showToolbox, setShowToolbox, } = useConfig();
|
|
27
|
+
const Colors = useThemeColor();
|
|
36
28
|
useStorageUpdater();
|
|
29
|
+
const { switchItems, pickerItems, buttonItems } = useSettings();
|
|
37
30
|
const { appVersion, baseUrl } = useSelector(state => state.auth);
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const handleChangeTheme = useCallback(newTheme => Theme.changeTheme(newTheme), [Theme]);
|
|
49
|
-
const updateLanguage = useCallback(localization => {
|
|
50
|
-
dispatch(updateActiveUser({
|
|
51
|
-
id: user.id,
|
|
52
|
-
localization: { id: localization },
|
|
53
|
-
version: user.version,
|
|
54
|
-
}));
|
|
55
|
-
}, [dispatch, user]);
|
|
56
|
-
const handleToggleConnection = useCallback(state => {
|
|
57
|
-
if (!state) {
|
|
58
|
-
dispatch(enable());
|
|
31
|
+
const renderSettingsItem = useCallback((item) => {
|
|
32
|
+
switch (item.type) {
|
|
33
|
+
case SettingsItemType.picker:
|
|
34
|
+
return (<Picker key={item.key} title={item.title} defaultValue={item.defaultValue} listItems={item.listItems} labelField={item.labelField} valueField={item.valueField} onValueChange={item.onValueChange} emptyValue={item.emptyValue ?? false}/>);
|
|
35
|
+
case SettingsItemType.switch:
|
|
36
|
+
return (<SwitchCard key={item.key} title={item.title} defaultValue={item.defaultValue} onToggle={item.onToggle} style={styles.switchCard} showWrapper={false}/>);
|
|
37
|
+
case SettingsItemType.button:
|
|
38
|
+
return (<RightIconButton key={item.key} title={item.title} icon={<Icon name="chevron-right" color={Colors.primaryColor.background}/>} style={styles.button} onPress={item.onPress} showWrapper={false}/>);
|
|
39
|
+
default:
|
|
40
|
+
return null;
|
|
59
41
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
}, [dispatch]);
|
|
64
|
-
useEffectOnline();
|
|
65
|
-
const handleToggleColorBlind = useCallback(state => {
|
|
66
|
-
if (state) {
|
|
67
|
-
Theme.activateColorBlind();
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
Theme.desactivateColorBlind();
|
|
71
|
-
}
|
|
72
|
-
}, [Theme]);
|
|
73
|
-
const handleToggleSubtitles = useCallback(state => {
|
|
74
|
-
setShowSubtitles(state);
|
|
75
|
-
}, [setShowSubtitles]);
|
|
76
|
-
const handleToggleToolbox = useCallback(state => {
|
|
77
|
-
setShowToolbox(state);
|
|
78
|
-
}, [setShowToolbox]);
|
|
79
|
-
return (<Screen style={styles.screen}>
|
|
42
|
+
}, [Colors]);
|
|
43
|
+
return (<Screen>
|
|
80
44
|
<ScrollView>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<Picker title={I18n.t('User_VirtualKeyboardVisibility')} defaultValue={virtualKeyboardVisibility} listItems={keyboardVisibilityList} labelField="name" valueField="visibility" onValueChange={setVirtualKeyboardVisibility} emptyValue={false}/>
|
|
85
|
-
<SwitchCard title={I18n.t('User_ShowFilter')} defaultValue={showFilter} onToggle={toggleFilterConfig} style={[styles.topSwitchCard, styles.switchCard]}/>
|
|
86
|
-
<SwitchCard title={I18n.t('User_ColorForColorBlind')} defaultValue={Theme.isColorBlind} onToggle={handleToggleColorBlind} style={styles.switchCard}/>
|
|
87
|
-
{ApiProviderConfig.allowConnectionBlock && (<SwitchCard title={I18n.t('User_BlockConnection')} defaultValue={!online.isEnabled} onToggle={handleToggleConnection} style={styles.switchCard}/>)}
|
|
88
|
-
<SwitchCard title={I18n.t('User_Show_Drawer_Subtitles')} defaultValue={showSubtitles} onToggle={handleToggleSubtitles} style={styles.switchCard}/>
|
|
89
|
-
<SwitchCard title={I18n.t('User_ShowToolBox')} defaultValue={showToolbox} onToggle={handleToggleToolbox} style={styles.switchCard}/>
|
|
90
|
-
{children}
|
|
91
|
-
{isAdmin && <HorizontalRule style={styles.lineSeparator}/>}
|
|
92
|
-
<TranslationsButton />
|
|
93
|
-
<NavigationToolsButton />
|
|
45
|
+
<GroupedCard title={I18n.t('Auth_Preferences')} style={styles.preferencesCard} data={pickerItems} renderItem={renderSettingsItem}/>
|
|
46
|
+
<GroupedCard data={switchItems} renderItem={renderSettingsItem}/>
|
|
47
|
+
<GroupedCard data={buttonItems} renderItem={renderSettingsItem}/>
|
|
94
48
|
</ScrollView>
|
|
95
49
|
<View style={styles.footerContainer}>
|
|
96
|
-
<Text>{I18n.t('
|
|
97
|
-
<Text
|
|
98
|
-
|
|
50
|
+
<Text writingType="important" fontSize={12}>{`${I18n.t('Base_ConnectedOn')}:`}</Text>
|
|
51
|
+
<Text fontSize={12} numberOfLines={1}>
|
|
52
|
+
{baseUrl}
|
|
53
|
+
</Text>
|
|
54
|
+
<Text fontSize={12}>
|
|
55
|
+
{I18n.t('Base_Version', { appVersion: appVersion })}
|
|
56
|
+
</Text>
|
|
99
57
|
</View>
|
|
100
58
|
</Screen>);
|
|
101
59
|
};
|
|
102
60
|
const styles = StyleSheet.create({
|
|
103
|
-
|
|
104
|
-
|
|
61
|
+
preferencesCard: {
|
|
62
|
+
zIndex: 1,
|
|
63
|
+
elevation: 4,
|
|
105
64
|
},
|
|
106
|
-
|
|
65
|
+
switchCard: {
|
|
107
66
|
alignSelf: 'center',
|
|
108
|
-
|
|
109
|
-
marginVertical:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
marginTop: 5,
|
|
67
|
+
borderWidth: 0,
|
|
68
|
+
marginVertical: 0,
|
|
69
|
+
height: undefined,
|
|
70
|
+
minHeight: undefined,
|
|
113
71
|
},
|
|
114
|
-
|
|
72
|
+
button: {
|
|
115
73
|
alignSelf: 'center',
|
|
74
|
+
height: undefined,
|
|
75
|
+
minHeight: undefined,
|
|
76
|
+
width: '90%',
|
|
77
|
+
marginHorizontal: 18,
|
|
78
|
+
marginRight: 18,
|
|
79
|
+
paddingLeft: 0,
|
|
80
|
+
paddingRight: 0,
|
|
81
|
+
paddingVertical: 0,
|
|
116
82
|
},
|
|
117
83
|
footerContainer: {
|
|
118
|
-
justifyContent: 'center',
|
|
119
84
|
alignItems: 'center',
|
|
120
|
-
|
|
85
|
+
gap: 2,
|
|
86
|
+
marginBottom: 2,
|
|
121
87
|
},
|
|
122
88
|
});
|
|
123
89
|
export default SettingsScreen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsScreen.js","sourceRoot":"","sources":["../../../src/auth/screens/SettingsScreen.
|
|
1
|
+
{"version":3,"file":"SettingsScreen.js","sourceRoot":"","sources":["../../../src/auth/screens/SettingsScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,eAAe,EACf,MAAM,EACN,UAAU,EACV,UAAU,EACV,IAAI,EACJ,aAAa,EACb,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAc,gBAAgB,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAEvE,MAAM,cAAc,GAAG,GAAG,EAAE;IAC1B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;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C,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CACnC;UAAA,CAAC,OAAO,CACV;QAAA,EAAE,IAAI,CACN;QAAA,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CACjB;UAAA,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,EAAE,EAAC,UAAU,EAAE,UAAU,EAAC,CAAC,CACnD;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,eAAe,EAAE;QACf,MAAM,EAAE,CAAC;QACT,SAAS,EAAE,CAAC;KACb;IACD,UAAU,EAAE;QACV,SAAS,EAAE,QAAQ;QACnB,WAAW,EAAE,CAAC;QACd,cAAc,EAAE,CAAC;QACjB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,SAAS;KACrB;IACD,MAAM,EAAE;QACN,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,KAAK;QACZ,gBAAgB,EAAE,EAAE;QACpB,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,CAAC;QACd,YAAY,EAAE,CAAC;QACf,eAAe,EAAE,CAAC;KACnB;IACD,eAAe,EAAE;QACf,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;QACN,YAAY,EAAE,CAAC;KAChB;CACF,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -18,24 +18,26 @@
|
|
|
18
18
|
import React, { useCallback, useEffect } from 'react';
|
|
19
19
|
import { StyleSheet } from 'react-native';
|
|
20
20
|
import { Screen, ScrollView, useConfig } from '@axelor/aos-mobile-ui';
|
|
21
|
-
import { useDispatch, useSelector } from '../../index';
|
|
21
|
+
import { PopupApplicationInformation, useDefaultValuesOfUser, useDispatch, useSelector, } from '../../index';
|
|
22
|
+
import { DashboardsCard, ShortcutsCard, UserCard } from '../components';
|
|
22
23
|
import { fetchLocalizations } from '../features/localizationSlice';
|
|
23
24
|
import { fetchActiveUser } from '../features/userSlice';
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
import { useDefaultValuesOfUser } from '../../hooks/use-storage-config';
|
|
27
|
-
const UserScreen = ({ children }) => {
|
|
25
|
+
import { useUserScreen } from '../userScreen';
|
|
26
|
+
const UserScreen = () => {
|
|
28
27
|
const dispatch = useDispatch();
|
|
29
28
|
const { userId } = useSelector(state => state.auth);
|
|
30
29
|
const { base: baseConfig } = useSelector(state => state.appConfig);
|
|
31
30
|
const { loadingUser, isUser } = useSelector(state => state.user);
|
|
32
|
-
const {
|
|
31
|
+
const { contentItems } = useUserScreen();
|
|
33
32
|
const { setNbDecimalDigitForQty, setNbDecimalDigitForUnitPrice } = useConfig();
|
|
34
33
|
useDefaultValuesOfUser();
|
|
34
|
+
const fetchUser = useCallback(() => {
|
|
35
|
+
dispatch(fetchActiveUser(userId));
|
|
36
|
+
}, [dispatch, userId]);
|
|
35
37
|
useEffect(() => {
|
|
36
38
|
fetchUser();
|
|
37
39
|
dispatch(fetchLocalizations());
|
|
38
|
-
}, [dispatch, fetchUser
|
|
40
|
+
}, [dispatch, fetchUser]);
|
|
39
41
|
useEffect(() => {
|
|
40
42
|
if (baseConfig?.nbDecimalDigitForQty != null) {
|
|
41
43
|
setNbDecimalDigitForQty(baseConfig?.nbDecimalDigitForQty);
|
|
@@ -44,13 +46,11 @@ const UserScreen = ({ children }) => {
|
|
|
44
46
|
setNbDecimalDigitForUnitPrice(baseConfig?.nbDecimalDigitForUnitPrice);
|
|
45
47
|
}
|
|
46
48
|
}, [baseConfig, setNbDecimalDigitForQty, setNbDecimalDigitForUnitPrice]);
|
|
47
|
-
const fetchUser = useCallback(() => {
|
|
48
|
-
dispatch(fetchActiveUser(userId));
|
|
49
|
-
}, [dispatch, userId]);
|
|
50
49
|
return (<Screen>
|
|
51
50
|
<ScrollView refresh={{ loading: false, fetcher: fetchUser }} style={styles.scroll}>
|
|
52
|
-
<UserCard
|
|
53
|
-
<ShortcutsCard
|
|
51
|
+
<UserCard />
|
|
52
|
+
<ShortcutsCard />
|
|
53
|
+
{contentItems.map((_item) => (<_item.component key={_item.key}/>))}
|
|
54
54
|
<DashboardsCard />
|
|
55
55
|
</ScrollView>
|
|
56
56
|
<PopupApplicationInformation visible={!isUser && !loadingUser} textKey={'User_NoAppUser'} onRefresh={fetchUser}/>
|
|
@@ -58,10 +58,7 @@ const UserScreen = ({ children }) => {
|
|
|
58
58
|
};
|
|
59
59
|
const styles = StyleSheet.create({
|
|
60
60
|
scroll: {
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
marginCard: {
|
|
64
|
-
marginBottom: 10,
|
|
61
|
+
gap: 10,
|
|
65
62
|
},
|
|
66
63
|
});
|
|
67
64
|
export default UserScreen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserScreen.js","sourceRoot":"","sources":["../../../src/auth/screens/UserScreen.
|
|
1
|
+
{"version":3,"file":"UserScreen.js","sourceRoot":"","sources":["../../../src/auth/screens/UserScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACpD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAC,MAAM,uBAAuB,CAAC;AACpE,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,WAAW,EACX,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAC,eAAe,EAAC,MA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AAC;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,uBAAuB,EAAE,6BAA6B,CAAC,CAAC,CAAC;IAEzE,OAAO,CACL,CAAC,MAAM,CACL;MAAA,CAAC,UAAU,CACT,OAAO,CAAC,CAAC,EAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAC,CAAC,CAC9C,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CACrB;QAAA,CAAC,QAAQ,CAAC,AAAD,EACT;QAAA,CAAC,aAAa,CAAC,AAAD,EACd;QAAA,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,KAAqB,EAAE,EAAE,CAAC,CAC3C,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAG,CACpC,CAAC,CACF;QAAA,CAAC,cAAc,CAAC,AAAD,EACjB;MAAA,EAAE,UAAU,CACZ;MAAA,CAAC,2BAA2B,CAC1B,OAAO,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,CACjC,OAAO,CAAC,CAAC,gBAAgB,CAAC,CAC1B,SAAS,CAAC,CAAC,SAAS,CAAC,EAEzB;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,GAAG,EAAE,EAAE;KACR;CACF,CAAC,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as SettingsScreen } from
|
|
2
|
-
export { default as UserScreen } from
|
|
1
|
+
export { default as SettingsScreen } from './SettingsScreen';
|
|
2
|
+
export { default as UserScreen } from './UserScreen';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/screens/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/screens/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonSettingsItem, PickerSettingsItem, SettingsItems, SwitchSettingsItem } from './types';
|
|
2
|
+
declare class SettingsProvider {
|
|
3
|
+
private refreshCallBack;
|
|
4
|
+
private switchItems;
|
|
5
|
+
private pickerItems;
|
|
6
|
+
private buttonItems;
|
|
7
|
+
constructor();
|
|
8
|
+
register(callBack: Function): void;
|
|
9
|
+
unregister(callBack: Function): void;
|
|
10
|
+
private updateState;
|
|
11
|
+
registerSwitchItem(item: SwitchSettingsItem): void;
|
|
12
|
+
registerPickerItem(item: PickerSettingsItem): void;
|
|
13
|
+
registerButtonItem(item: ButtonSettingsItem): void;
|
|
14
|
+
getAllItems(): SettingsItems;
|
|
15
|
+
}
|
|
16
|
+
export declare const settingsProvider: SettingsProvider;
|
|
17
|
+
export declare const useSettings: () => SettingsItems;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 { useEffect, useMemo, useState } from 'react';
|
|
19
|
+
import { SettingsHelper } from './settings.helper';
|
|
20
|
+
class SettingsProvider {
|
|
21
|
+
refreshCallBack;
|
|
22
|
+
switchItems;
|
|
23
|
+
pickerItems;
|
|
24
|
+
buttonItems;
|
|
25
|
+
constructor() {
|
|
26
|
+
this.refreshCallBack = [];
|
|
27
|
+
this.switchItems = [];
|
|
28
|
+
this.pickerItems = [];
|
|
29
|
+
this.buttonItems = [];
|
|
30
|
+
}
|
|
31
|
+
register(callBack) {
|
|
32
|
+
this.refreshCallBack.push(callBack);
|
|
33
|
+
}
|
|
34
|
+
unregister(callBack) {
|
|
35
|
+
this.refreshCallBack = this.refreshCallBack.filter(_f => _f !== callBack);
|
|
36
|
+
}
|
|
37
|
+
updateState() {
|
|
38
|
+
this.refreshCallBack.forEach(_f => _f({
|
|
39
|
+
switchItems: this.switchItems,
|
|
40
|
+
pickerItems: this.pickerItems,
|
|
41
|
+
buttonItems: this.buttonItems,
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
registerSwitchItem(item) {
|
|
45
|
+
this.switchItems = SettingsHelper.registerItem(this.switchItems, item);
|
|
46
|
+
this.updateState();
|
|
47
|
+
}
|
|
48
|
+
registerPickerItem(item) {
|
|
49
|
+
this.pickerItems = SettingsHelper.registerItem(this.pickerItems, item);
|
|
50
|
+
this.updateState();
|
|
51
|
+
}
|
|
52
|
+
registerButtonItem(item) {
|
|
53
|
+
this.buttonItems = SettingsHelper.registerItem(this.buttonItems, item);
|
|
54
|
+
this.updateState();
|
|
55
|
+
}
|
|
56
|
+
getAllItems() {
|
|
57
|
+
return {
|
|
58
|
+
switchItems: this.switchItems,
|
|
59
|
+
pickerItems: this.pickerItems,
|
|
60
|
+
buttonItems: this.buttonItems,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export const settingsProvider = new SettingsProvider();
|
|
65
|
+
export const useSettings = () => {
|
|
66
|
+
const [items, setItems] = useState(settingsProvider.getAllItems());
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
settingsProvider.register(setItems);
|
|
69
|
+
return () => settingsProvider.unregister(setItems);
|
|
70
|
+
}, []);
|
|
71
|
+
return useMemo(() => ({ ...SettingsHelper.filterItems(items) }), [items]);
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=SettingsProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsProvider.js","sourceRoot":"","sources":["../../../src/auth/settings/SettingsProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAOnD,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,MAAM,gBAAgB;IACZ,eAAe,CAAa;IAC5B,WAAW,CAAuB;IAClC,WAAW,CAAuB;IAClC,WAAW,CAAuB;IAE1C;QACE,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,QAAQ,CAAC,QAAkB;QACzB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED,UAAU,CAAC,QAAkB;QAC3B,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC;IAC5E,CAAC;IAEO,WAAW;QACjB,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAChC,EAAE,CAAC;YACD,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,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CAAC,EAAC,GAAG,cAAc,CAAC,WAAW,CAAC,KAAK,CAAC,EAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAC1E,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { settingsProvider, useSettings } from './SettingsProvider';
|
|
2
|
+
export { useSettingsRegister } from './use-settings-register';
|
|
3
|
+
export { SettingsHelper } from './settings.helper';
|
|
4
|
+
export { SettingsItemType, BaseSettingsItem, ButtonSettingsItem, PickerSettingsItem, SwitchSettingsItem, SettingsItems, SettingsElt, } from './types';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 { settingsProvider, useSettings } from './SettingsProvider';
|
|
19
|
+
export { useSettingsRegister } from './use-settings-register';
|
|
20
|
+
export { SettingsHelper } from './settings.helper';
|
|
21
|
+
export { SettingsItemType, } from './types';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/settings/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACL,gBAAgB,GAOjB,MAAM,SAAS,CAAC"}
|
|
@@ -15,21 +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
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
import { RegistryHelper } from '../../utils/registry.helper';
|
|
19
|
+
export class SettingsHelper {
|
|
20
|
+
static filterItems = (config) => {
|
|
21
|
+
return {
|
|
22
|
+
switchItems: RegistryHelper.sortAndFilter(config.switchItems),
|
|
23
|
+
pickerItems: RegistryHelper.sortAndFilter(config.pickerItems),
|
|
24
|
+
buttonItems: RegistryHelper.sortAndFilter(config.buttonItems),
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
static registerItem(allItems, item) {
|
|
28
|
+
return RegistryHelper.registerItem(allItems, item);
|
|
24
29
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const styles = StyleSheet.create({
|
|
28
|
-
circleButton: {
|
|
29
|
-
marginHorizontal: 5,
|
|
30
|
-
marginTop: 5,
|
|
31
|
-
width: 40,
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
export default NavigationButton;
|
|
35
|
-
//# sourceMappingURL=NavigationButton.js.map
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=settings.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.helper.js","sourceRoot":"","sources":["../../../src/auth/settings/settings.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAG3D,MAAM,OAAO,cAAc;IACzB,MAAM,CAAC,WAAW,GAAG,CAAC,MAAqB,EAAiB,EAAE;QAC5D,OAAO;YACL,WAAW,EAAE,cAAc,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC;YAC7D,WAAW,EAAE,cAAc,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC;YAC7D,WAAW,EAAE,cAAc,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC;SAC9D,CAAC;IACJ,CAAC,CAAC;IAEF,MAAM,CAAC,YAAY,CAA6B,QAAa,EAAE,IAAO;QACpE,OAAO,cAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare enum SettingsItemType {
|
|
2
|
+
picker = "picker",
|
|
3
|
+
switch = "switch",
|
|
4
|
+
button = "button"
|
|
5
|
+
}
|
|
6
|
+
export interface BaseSettingsItem {
|
|
7
|
+
key: string;
|
|
8
|
+
type: SettingsItemType;
|
|
9
|
+
title: string;
|
|
10
|
+
order?: number;
|
|
11
|
+
showIf?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface PickerSettingsItem extends BaseSettingsItem {
|
|
14
|
+
type: SettingsItemType.picker;
|
|
15
|
+
defaultValue?: any;
|
|
16
|
+
listItems: any[];
|
|
17
|
+
labelField: string;
|
|
18
|
+
valueField: string;
|
|
19
|
+
onValueChange: (value: any) => void;
|
|
20
|
+
emptyValue?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface SwitchSettingsItem extends BaseSettingsItem {
|
|
23
|
+
type: SettingsItemType.switch;
|
|
24
|
+
defaultValue: boolean;
|
|
25
|
+
onToggle: (state?: boolean) => void;
|
|
26
|
+
}
|
|
27
|
+
export interface ButtonSettingsItem extends BaseSettingsItem {
|
|
28
|
+
type: SettingsItemType.button;
|
|
29
|
+
onPress: () => void;
|
|
30
|
+
}
|
|
31
|
+
export type SettingsItems = {
|
|
32
|
+
switchItems: SwitchSettingsItem[];
|
|
33
|
+
pickerItems: PickerSettingsItem[];
|
|
34
|
+
buttonItems: ButtonSettingsItem[];
|
|
35
|
+
};
|
|
36
|
+
export type SettingsElt = SwitchSettingsItem | PickerSettingsItem | ButtonSettingsItem;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 var SettingsItemType;
|
|
19
|
+
(function (SettingsItemType) {
|
|
20
|
+
SettingsItemType["picker"] = "picker";
|
|
21
|
+
SettingsItemType["switch"] = "switch";
|
|
22
|
+
SettingsItemType["button"] = "button";
|
|
23
|
+
})(SettingsItemType || (SettingsItemType = {}));
|
|
24
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/auth/settings/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;AACnB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSettingsRegister: () => void;
|