@axelor/aos-mobile-core 7.1.0 → 7.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/metafile-api.d.ts +11 -0
- package/lib/api/metafile-api.js +18 -7
- package/lib/api/metafile-api.js.map +1 -1
- package/lib/api/mobile-config-api.js +9 -15
- package/lib/api/mobile-config-api.js.map +1 -1
- package/lib/api/model-api.d.ts +4 -0
- package/lib/api/model-api.js +28 -0
- package/lib/api/model-api.js.map +1 -0
- package/lib/apiProviders/utils.d.ts +7 -7
- package/lib/apiProviders/utils.js +31 -23
- package/lib/apiProviders/utils.js.map +1 -1
- package/lib/app/Module.d.ts +15 -2
- package/lib/app/RootNavigator.js +1 -1
- package/lib/auth/api/user-api.js +5 -3
- package/lib/auth/api/user-api.js.map +1 -1
- package/lib/auth/components/index.d.ts +1 -0
- package/lib/auth/components/index.js +19 -0
- package/lib/auth/components/index.js.map +1 -0
- package/lib/auth/components/molecules/TranslationsButton/TranslationsButton.d.ts +2 -0
- package/lib/auth/components/molecules/TranslationsButton/TranslationsButton.js +63 -0
- package/lib/auth/components/molecules/TranslationsButton/TranslationsButton.js.map +1 -0
- package/lib/auth/components/molecules/index.d.ts +1 -0
- package/lib/auth/components/molecules/index.js +19 -0
- package/lib/auth/components/molecules/index.js.map +1 -0
- package/lib/auth/features/companySlice.d.ts +1 -1
- package/lib/auth/features/configSlice.d.ts +1 -1
- package/lib/auth/features/languageSlice.d.ts +1 -1
- package/lib/auth/features/userSlice.d.ts +1 -1
- package/lib/auth/features/userSlice.js +7 -5
- package/lib/auth/features/userSlice.js.map +1 -1
- package/lib/auth/i18n/en.json +0 -16
- package/lib/auth/i18n/fr.json +0 -16
- package/lib/auth/index.js +1 -0
- package/lib/auth/index.js.map +1 -1
- package/lib/auth/models/objectFields.js +14 -0
- package/lib/auth/models/objectFields.js.map +1 -1
- package/lib/auth/screens/SettingsScreen.js +7 -31
- package/lib/auth/screens/SettingsScreen.js.map +1 -1
- package/lib/auth/screens/UserScreen.js +4 -4
- package/lib/auth/screens/UserScreen.js.map +1 -1
- package/lib/components/external/Camera/Camera.js +15 -5
- package/lib/components/external/Camera/Camera.js.map +1 -1
- package/lib/components/external/Camera/CaptureButton.d.ts +2 -1
- package/lib/components/external/Camera/CaptureButton.js +3 -3
- package/lib/components/external/Camera/CaptureButton.js.map +1 -1
- package/lib/components/external/Stopwatch/Stopwatch.d.ts +5 -1
- package/lib/components/external/Stopwatch/Stopwatch.js +35 -11
- package/lib/components/external/Stopwatch/Stopwatch.js.map +1 -1
- package/lib/components/external/Timer/Timer.d.ts +3 -2
- package/lib/components/external/Timer/Timer.js +5 -4
- package/lib/components/external/Timer/Timer.js.map +1 -1
- package/lib/components/molecules/CameraButton/CameraButton.d.ts +12 -0
- package/lib/components/molecules/CameraButton/CameraButton.js +87 -0
- package/lib/components/molecules/CameraButton/CameraButton.js.map +1 -0
- package/lib/components/molecules/UploadFileInput/UploadFileInput.d.ts +10 -3
- package/lib/components/molecules/UploadFileInput/UploadFileInput.js +166 -20
- package/lib/components/molecules/UploadFileInput/UploadFileInput.js.map +1 -1
- package/lib/components/molecules/index.d.ts +1 -3
- package/lib/components/molecules/index.js +1 -3
- package/lib/components/molecules/index.js.map +1 -1
- package/lib/components/organisms/DateInput/DateInput.d.ts +2 -1
- package/lib/components/organisms/DateInput/DateInput.js +8 -5
- package/lib/components/organisms/DateInput/DateInput.js.map +1 -1
- package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.d.ts +2 -1
- package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.js +5 -4
- package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.js.map +1 -1
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.d.ts +4 -1
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.js +2 -2
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.js.map +1 -1
- package/lib/components/organisms/index.d.ts +1 -6
- package/lib/components/organisms/index.js +1 -6
- package/lib/components/organisms/index.js.map +1 -1
- package/lib/components/templates/AttachedFilesView/AttachedFilesView.js +1 -1
- package/lib/components/templates/AttachedFilesView/AttachedFilesView.js.map +1 -1
- package/lib/components/templates/SocialNetworkLinks/SocialNetworkLinks.d.ts +13 -0
- package/lib/components/templates/SocialNetworkLinks/SocialNetworkLinks.js +58 -0
- package/lib/components/templates/SocialNetworkLinks/SocialNetworkLinks.js.map +1 -0
- package/lib/components/templates/index.d.ts +1 -3
- package/lib/components/templates/index.js +1 -3
- package/lib/components/templates/index.js.map +1 -1
- package/lib/config/routes.d.ts +20 -20
- package/lib/features/attachedFilesSlice.d.ts +1 -1
- package/lib/features/authSlice.d.ts +1 -1
- package/lib/features/cameraScannerSlice.d.ts +2 -2
- package/lib/features/cameraScannerSlice.js +4 -1
- package/lib/features/cameraScannerSlice.js.map +1 -1
- package/lib/features/cameraSlice.d.ts +13 -4
- package/lib/features/cameraSlice.js +4 -1
- package/lib/features/cameraSlice.js.map +1 -1
- package/lib/features/mailMessageSlice.d.ts +1 -1
- package/lib/features/menuConfigSlice.d.ts +1 -1
- package/lib/features/metaModuleSlice.d.ts +1 -1
- package/lib/features/metafileSlice.d.ts +1 -1
- package/lib/features/mobileConfigSlice.d.ts +1 -1
- package/lib/features/onlineSlice.d.ts +1 -1
- package/lib/features/scannerSlice.d.ts +2 -2
- package/lib/features/scannerSlice.js +4 -1
- package/lib/features/scannerSlice.js.map +1 -1
- package/lib/header/HeaderActionsProvider.d.ts +3 -4
- package/lib/header/HeaderActionsProvider.js +16 -10
- package/lib/header/HeaderActionsProvider.js.map +1 -1
- package/lib/header/hooks.d.ts +15 -1
- package/lib/header/hooks.js +28 -2
- package/lib/header/hooks.js.map +1 -1
- package/lib/header/index.d.ts +2 -1
- package/lib/header/index.js +2 -1
- package/lib/header/index.js.map +1 -1
- package/lib/header/types.d.ts +1 -0
- package/lib/i18n/component/Translator.d.ts +1 -1
- package/lib/i18n/hooks/use-translator.d.ts +1 -1
- package/lib/i18n/hooks/use-translator.js +3 -1
- package/lib/i18n/hooks/use-translator.js.map +1 -1
- package/lib/i18n/translations/en.json +35 -4
- package/lib/i18n/translations/fr.json +35 -4
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/navigator/Navigator.d.ts +1 -1
- package/lib/navigator/Navigator.js +21 -25
- package/lib/navigator/Navigator.js.map +1 -1
- package/lib/navigator/drawer/DrawerContent.js +39 -21
- package/lib/navigator/drawer/DrawerContent.js.map +1 -1
- package/lib/navigator/drawer/Header.js +26 -6
- package/lib/navigator/drawer/Header.js.map +1 -1
- package/lib/navigator/drawer/Menu.d.ts +2 -1
- package/lib/navigator/drawer/Menu.js +42 -17
- package/lib/navigator/drawer/Menu.js.map +1 -1
- package/lib/navigator/drawer/MenuItem.d.ts +8 -5
- package/lib/navigator/drawer/MenuItem.js +11 -51
- package/lib/navigator/drawer/MenuItem.js.map +1 -1
- package/lib/navigator/drawer/MenuItemEntry.d.ts +12 -0
- package/lib/navigator/drawer/MenuItemEntry.js +89 -0
- package/lib/navigator/drawer/MenuItemEntry.js.map +1 -0
- package/lib/navigator/drawer/SubMenuItem.d.ts +7 -0
- package/lib/navigator/drawer/SubMenuItem.js +34 -0
- package/lib/navigator/drawer/SubMenuItem.js.map +1 -0
- package/lib/navigator/drawer/SubMenuItemList.d.ts +10 -0
- package/lib/navigator/drawer/SubMenuItemList.js +46 -0
- package/lib/navigator/drawer/SubMenuItemList.js.map +1 -0
- package/lib/navigator/menu.helper.d.ts +9 -0
- package/lib/navigator/menu.helper.js +92 -0
- package/lib/navigator/menu.helper.js.map +1 -1
- package/lib/navigator/module.helper.d.ts +5 -0
- package/lib/navigator/module.helper.js +37 -1
- package/lib/navigator/module.helper.js.map +1 -1
- package/lib/redux/store.d.ts +1 -1
- package/lib/screens/BarcodeDisplayScreen.d.ts +4 -0
- package/lib/screens/BarcodeDisplayScreen.js +54 -0
- package/lib/screens/BarcodeDisplayScreen.js.map +1 -0
- package/lib/screens/LoginScreen.js +47 -73
- package/lib/screens/LoginScreen.js.map +1 -1
- package/lib/screens/SessionManagementScreen.js +41 -21
- package/lib/screens/SessionManagementScreen.js.map +1 -1
- package/lib/screens/index.d.ts +38 -0
- package/lib/screens/index.js +47 -0
- package/lib/screens/index.js.map +1 -0
- package/lib/sessions/SessionStorage.d.ts +4 -5
- package/lib/sessions/SessionStorage.js +30 -22
- package/lib/sessions/SessionStorage.js.map +1 -1
- package/lib/sessions/components/alerts/PopupCreateSession.d.ts +10 -0
- package/lib/sessions/components/alerts/PopupCreateSession.js +137 -0
- package/lib/sessions/components/alerts/PopupCreateSession.js.map +1 -0
- package/lib/sessions/components/alerts/PopupEditSession.d.ts +8 -0
- package/lib/sessions/components/alerts/PopupEditSession.js +84 -0
- package/lib/sessions/components/alerts/PopupEditSession.js.map +1 -0
- package/lib/sessions/components/alerts/PopupSession.d.ts +9 -0
- package/lib/sessions/components/alerts/PopupSession.js +84 -0
- package/lib/sessions/components/alerts/PopupSession.js.map +1 -0
- package/lib/sessions/components/alerts/index.d.ts +3 -0
- package/lib/sessions/components/alerts/index.js +21 -0
- package/lib/sessions/components/alerts/index.js.map +1 -0
- package/lib/sessions/components/buttons/DisabledButton.d.ts +7 -0
- package/lib/{components/molecules/LoginButton/LoginButton.js → sessions/components/buttons/DisabledButton.js} +5 -5
- package/lib/sessions/components/buttons/DisabledButton.js.map +1 -0
- package/lib/sessions/components/buttons/LoginButton.js +24 -0
- package/lib/sessions/components/buttons/LoginButton.js.map +1 -0
- package/lib/sessions/components/buttons/UpdateButton.d.ts +6 -0
- package/lib/sessions/components/buttons/UpdateButton.js +24 -0
- package/lib/sessions/components/buttons/UpdateButton.js.map +1 -0
- package/lib/sessions/components/buttons/index.d.ts +3 -0
- package/lib/sessions/components/buttons/index.js +21 -0
- package/lib/sessions/components/buttons/index.js.map +1 -0
- package/lib/sessions/components/display/LogoImage.js.map +1 -0
- package/lib/sessions/components/display/SessionCard.d.ts +9 -0
- package/lib/sessions/components/display/SessionCard.js +185 -0
- package/lib/sessions/components/display/SessionCard.js.map +1 -0
- package/lib/sessions/components/display/SessionListCard.d.ts +10 -0
- package/lib/sessions/components/display/SessionListCard.js +75 -0
- package/lib/sessions/components/display/SessionListCard.js.map +1 -0
- package/lib/sessions/components/display/index.d.ts +3 -0
- package/lib/sessions/components/display/index.js +21 -0
- package/lib/sessions/components/display/index.js.map +1 -0
- package/lib/{components/molecules/ErrorText → sessions/components/error}/ErrorText.js +2 -2
- package/lib/sessions/components/error/ErrorText.js.map +1 -0
- package/lib/sessions/components/error/index.d.ts +1 -0
- package/lib/sessions/components/error/index.js +19 -0
- package/lib/sessions/components/error/index.js.map +1 -0
- package/lib/sessions/components/index.d.ts +5 -0
- package/lib/sessions/components/index.js +23 -0
- package/lib/sessions/components/index.js.map +1 -0
- package/lib/sessions/components/inputs/DefaultCheckbox.d.ts +8 -0
- package/lib/sessions/components/inputs/DefaultCheckbox.js +36 -0
- package/lib/sessions/components/inputs/DefaultCheckbox.js.map +1 -0
- package/lib/{components/organisms/PasswordInput → sessions/components/inputs}/PasswordInput.d.ts +2 -1
- package/lib/{components/organisms/PasswordInput → sessions/components/inputs}/PasswordInput.js +5 -2
- package/lib/sessions/components/inputs/PasswordInput.js.map +1 -0
- package/lib/sessions/components/inputs/SessionInputs.d.ts +13 -0
- package/lib/sessions/components/inputs/SessionInputs.js +180 -0
- package/lib/sessions/components/inputs/SessionInputs.js.map +1 -0
- package/lib/{components/organisms/SessionNameInput → sessions/components/inputs}/SessionNameInput.d.ts +2 -1
- package/lib/{components/organisms/SessionNameInput → sessions/components/inputs}/SessionNameInput.js +5 -2
- package/lib/sessions/components/inputs/SessionNameInput.js.map +1 -0
- package/lib/{components/organisms/UrlInput → sessions/components/inputs}/UrlInput.d.ts +2 -1
- package/lib/{components/organisms/UrlInput → sessions/components/inputs}/UrlInput.js +14 -3
- package/lib/sessions/components/inputs/UrlInput.js.map +1 -0
- package/lib/{components/organisms/UsernameInput → sessions/components/inputs}/UsernameInput.js +10 -2
- package/lib/sessions/components/inputs/UsernameInput.js.map +1 -0
- package/lib/sessions/components/inputs/index.d.ts +6 -0
- package/lib/sessions/components/inputs/index.js +24 -0
- package/lib/sessions/components/inputs/index.js.map +1 -0
- package/lib/sessions/hook.d.ts +1 -1
- package/lib/sessions/hook.js +5 -5
- package/lib/sessions/hook.js.map +1 -1
- package/lib/sessions/index.d.ts +2 -1
- package/lib/sessions/index.js +2 -1
- package/lib/sessions/index.js.map +1 -1
- package/lib/sessions/type.d.ts +2 -1
- package/lib/sessions/type.js.map +1 -1
- package/lib/sessions/utils.d.ts +2 -1
- package/lib/sessions/utils.js +26 -7
- package/lib/sessions/utils.js.map +1 -1
- package/lib/tools/ContactProvider.d.ts +9 -0
- package/lib/tools/ContactProvider.js +98 -0
- package/lib/tools/ContactProvider.js.map +1 -0
- package/lib/tools/LinkingProvider.d.ts +2 -2
- package/lib/tools/LinkingProvider.js +4 -4
- package/lib/tools/LinkingProvider.js.map +1 -1
- package/lib/tools/contact.helper.d.ts +21 -0
- package/lib/tools/contact.helper.js +136 -0
- package/lib/tools/contact.helper.js.map +1 -0
- package/lib/tools/index.d.ts +1 -0
- package/lib/tools/index.js +1 -0
- package/lib/tools/index.js.map +1 -1
- package/lib/utils/date.d.ts +16 -0
- package/lib/utils/date.js +41 -0
- package/lib/utils/date.js.map +1 -1
- package/lib/utils/filter.d.ts +4 -0
- package/lib/utils/filter.js +13 -0
- package/lib/utils/filter.js.map +1 -1
- package/lib/utils/formatters.d.ts +1 -0
- package/lib/utils/formatters.js +16 -0
- package/lib/utils/formatters.js.map +1 -1
- package/lib/utils/index.d.ts +3 -3
- package/lib/utils/index.js +3 -3
- package/lib/utils/index.js.map +1 -1
- package/package.json +12 -10
- package/lib/components/molecules/ErrorText/ErrorText.js.map +0 -1
- package/lib/components/molecules/LoginButton/LoginButton.js.map +0 -1
- package/lib/components/molecules/SessionNumberIndicator/SessionNumberIndicator.d.ts +0 -4
- package/lib/components/molecules/SessionNumberIndicator/SessionNumberIndicator.js +0 -44
- package/lib/components/molecules/SessionNumberIndicator/SessionNumberIndicator.js.map +0 -1
- package/lib/components/organisms/LogoImage/LogoImage.js.map +0 -1
- package/lib/components/organisms/PasswordInput/PasswordInput.js.map +0 -1
- package/lib/components/organisms/SessionButtons/SessionButtons.d.ts +0 -17
- package/lib/components/organisms/SessionButtons/SessionButtons.js +0 -93
- package/lib/components/organisms/SessionButtons/SessionButtons.js.map +0 -1
- package/lib/components/organisms/SessionNameInput/SessionNameInput.js.map +0 -1
- package/lib/components/organisms/UrlInput/UrlInput.js.map +0 -1
- package/lib/components/organisms/UsernameInput/UsernameInput.js.map +0 -1
- package/lib/components/templates/PopupCreateSession/PopupCreateSession.d.ts +0 -10
- package/lib/components/templates/PopupCreateSession/PopupCreateSession.js +0 -171
- package/lib/components/templates/PopupCreateSession/PopupCreateSession.js.map +0 -1
- package/lib/components/templates/PopupSession/PopupSession.d.ts +0 -8
- package/lib/components/templates/PopupSession/PopupSession.js +0 -135
- package/lib/components/templates/PopupSession/PopupSession.js.map +0 -1
- package/lib/components/templates/PopupSessionList/PopupSessionList.d.ts +0 -7
- package/lib/components/templates/PopupSessionList/PopupSessionList.js +0 -107
- package/lib/components/templates/PopupSessionList/PopupSessionList.js.map +0 -1
- /package/lib/{components/molecules/LoginButton → sessions/components/buttons}/LoginButton.d.ts +0 -0
- /package/lib/{components/organisms/LogoImage → sessions/components/display}/LogoImage.d.ts +0 -0
- /package/lib/{components/organisms/LogoImage → sessions/components/display}/LogoImage.js +0 -0
- /package/lib/{components/molecules/ErrorText → sessions/components/error}/ErrorText.d.ts +0 -0
- /package/lib/{components/organisms/UsernameInput → sessions/components/inputs}/UsernameInput.d.ts +0 -0
|
@@ -3,13 +3,8 @@ export { default as AOSImageBubble } from "./AOSImageBubble/AOSImageBubble";
|
|
|
3
3
|
export { default as DateInput } from "./DateInput/DateInput";
|
|
4
4
|
export { default as HeaderBandList } from "./HeaderBandList/HeaderBandList";
|
|
5
5
|
export { default as HeaderOptionsMenu } from "./HeaderOptionsMenu/HeaderOptionsMenu";
|
|
6
|
-
export { default as LogoImage } from "
|
|
6
|
+
export { default as LogoImage } from "../../sessions/components/display/LogoImage";
|
|
7
7
|
export { default as MailMessageCard } from "./MailMessageCard/MailMessageCard";
|
|
8
8
|
export { default as MailMessageCommentCard } from "./MailMessageCommentCard/MailMessageCommentCard";
|
|
9
9
|
export { default as MailMessageNotificationCard } from "./MailMessageNotificationCard/MailMessageNotificationCard";
|
|
10
|
-
export { default as PasswordInput } from "./PasswordInput/PasswordInput";
|
|
11
10
|
export { default as ScannerAutocompleteSearch } from "./ScannerAutocompleteSearch/ScannerAutocompleteSearch";
|
|
12
|
-
export { default as SessionNameInput } from "./SessionNameInput/SessionNameInput";
|
|
13
|
-
export { default as UrlInput } from "./UrlInput/UrlInput";
|
|
14
|
-
export { default as UsernameInput } from "./UsernameInput/UsernameInput";
|
|
15
|
-
export { ChooseSessionButton, ConnectSessionButton, CreateSessionButton, NoActiveSessionButton } from "./SessionButtons/SessionButtons";
|
|
@@ -20,14 +20,9 @@ export { default as AOSImageBubble } from './AOSImageBubble/AOSImageBubble';
|
|
|
20
20
|
export { default as DateInput } from './DateInput/DateInput';
|
|
21
21
|
export { default as HeaderBandList } from './HeaderBandList/HeaderBandList';
|
|
22
22
|
export { default as HeaderOptionsMenu } from './HeaderOptionsMenu/HeaderOptionsMenu';
|
|
23
|
-
export { default as LogoImage } from '
|
|
23
|
+
export { default as LogoImage } from '../../sessions/components/display/LogoImage';
|
|
24
24
|
export { default as MailMessageCard } from './MailMessageCard/MailMessageCard';
|
|
25
25
|
export { default as MailMessageCommentCard } from './MailMessageCommentCard/MailMessageCommentCard';
|
|
26
26
|
export { default as MailMessageNotificationCard } from './MailMessageNotificationCard/MailMessageNotificationCard';
|
|
27
|
-
export { default as PasswordInput } from './PasswordInput/PasswordInput';
|
|
28
27
|
export { default as ScannerAutocompleteSearch } from './ScannerAutocompleteSearch/ScannerAutocompleteSearch';
|
|
29
|
-
export { ChooseSessionButton, ConnectSessionButton, CreateSessionButton, NoActiveSessionButton, } from './SessionButtons/SessionButtons';
|
|
30
|
-
export { default as SessionNameInput } from './SessionNameInput/SessionNameInput';
|
|
31
|
-
export { default as UrlInput } from './UrlInput/UrlInput';
|
|
32
|
-
export { default as UsernameInput } from './UsernameInput/UsernameInput';
|
|
33
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/organisms/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/organisms/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,2BAA2B,EAAC,MAAM,2DAA2D,CAAC;AACjH,OAAO,EAAC,OAAO,IAAI,yBAAyB,EAAC,MAAM,uDAAuD,CAAC"}
|
|
@@ -46,7 +46,7 @@ function AttachedFilesView({ files, model, modelId, isStaticList = false, isMeta
|
|
|
46
46
|
}));
|
|
47
47
|
}, [dispatch, isStaticList, files, model, modelId]);
|
|
48
48
|
const filterOnSelectExtension = useCallback(list => {
|
|
49
|
-
if (list
|
|
49
|
+
if (!Array.isArray(list) || list.length === 0) {
|
|
50
50
|
return list;
|
|
51
51
|
}
|
|
52
52
|
else if (selectedStatus.length > 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachedFilesView.js","sourceRoot":"","sources":["../../../../src/components/templates/AttachedFilesView/AttachedFilesView.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AACrD,OAAO,EACL,cAAc,EACd,UAAU,EACV,IAAI,EACJ,eAAe,EACf,MAAM,EACN,UAAU,EACV,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,aAAa,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EACL,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EA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AC;YACJ,CAAC,CAAC,gBAAgB,CAAC;gBACf,KAAK;gBACL,OAAO;aACR,CAAC,CACP,CAAC;IACJ,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IAEpD,MAAM,uBAAuB,GAAG,WAAW,CACzC,IAAI,CAAC,EAAE;QACL,IAAI,
|
|
1
|
+
{"version":3,"file":"AttachedFilesView.js","sourceRoot":"","sources":["../../../../src/components/templates/AttachedFilesView/AttachedFilesView.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AACrD,OAAO,EACL,cAAc,EACd,UAAU,EACV,IAAI,EACJ,eAAe,EACf,MAAM,EACN,UAAU,EACV,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,aAAa,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EACL,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAAC,MAAM,iBAAiB,CAAC;AAEtD,SAAS,iBAAiB,CAAC,EACzB,KAAK,EACL,KAAK,EACL,OAAO,EACP,YAAY,GAAG,KAAK,EACpB,UAAU,GAAG,KAAK,EAClB,WAAW,GACZ;IACC,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EAAC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAC,GA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AC,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,CAC7C,cAAc,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBACtC,OAAO;oBACL,KAAK,EAAE,GAAG,GAAG,EAAE,CAAC,WAAW,EAAE;oBAC7B,KAAK,EAAE,MAAM,CAAC,YAAY;oBAC1B,GAAG,EAAE,GAAG;iBACT,CAAC;YACJ,CAAC,CAAC,CAAC,EACH,CACH,EAEH;MAAA,CAAC,UAAU,CACT,WAAW,CAAC,CAAC,OAAO,CAAC,CACrB,IAAI,CAAC,CAAC,YAAY,CAAC,CACnB,UAAU,CAAC,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,CACtB,CAAC,cAAc,CACb,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CACxB,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CACpC,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAC7B,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EACnB,CACH,CAAC,CACF,SAAS,CAAC,CAAC,aAAa,CAAC,CACzB,MAAM,CAAC,CAAC,IAAI,CAAC,CACb,WAAW,CAAC,CAAC,KAAK,CAAC,CACnB,SAAS,CAAC,CAAC,IAAI,CAAC,CAChB,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAEvB;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const SocialNetworkLinks: ({ size, data, googleColor, hideGoogle, linkedinColor, hideLinkedin, }: {
|
|
2
|
+
size?: number;
|
|
3
|
+
data: {
|
|
4
|
+
name?: string;
|
|
5
|
+
lastName?: string;
|
|
6
|
+
company?: string;
|
|
7
|
+
};
|
|
8
|
+
googleColor?: string;
|
|
9
|
+
hideGoogle?: boolean;
|
|
10
|
+
linkedinColor?: string;
|
|
11
|
+
hideLinkedin?: boolean;
|
|
12
|
+
}) => JSX.Element;
|
|
13
|
+
export default SocialNetworkLinks;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { Icon, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { linkingProvider } from '../../../tools';
|
|
22
|
+
const formatGoogleSearch = (name, lastName, company) => {
|
|
23
|
+
let result = '';
|
|
24
|
+
if (name != null && lastName != null) {
|
|
25
|
+
result = result.concat(name).concat('+').concat(lastName);
|
|
26
|
+
}
|
|
27
|
+
if (company != null) {
|
|
28
|
+
result = result.concat('+').concat(company).concat('+');
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
const formatLinkedinSearch = (name, lastName, company) => {
|
|
33
|
+
if (name != null && lastName != null) {
|
|
34
|
+
return `${name}/${lastName}`;
|
|
35
|
+
}
|
|
36
|
+
if (company != null) {
|
|
37
|
+
return company;
|
|
38
|
+
}
|
|
39
|
+
return '';
|
|
40
|
+
};
|
|
41
|
+
const SocialNetworkLinks = ({ size = 20, data, googleColor, hideGoogle = false, linkedinColor, hideLinkedin = false, }) => {
|
|
42
|
+
const Colors = useThemeColor();
|
|
43
|
+
return (<View style={styles.container}>
|
|
44
|
+
{!hideGoogle && (<Icon style={styles.icon} name="google" FontAwesome5={false} color={googleColor || Colors.primaryColor.background} touchable={true} size={size} onPress={() => linkingProvider.openBrowser(`https://www.google.com/search?q=${formatGoogleSearch(data.name, data.lastName, data.company)}&gws_rd=cr`)}/>)}
|
|
45
|
+
{!hideLinkedin && (<Icon style={styles.icon} name="linkedin" FontAwesome5={false} color={linkedinColor || Colors.primaryColor.background} touchable={true} size={size} onPress={() => linkingProvider.openBrowser(`https://www.linkedin.com/pub/dir/${formatLinkedinSearch(data.name, data.lastName, data.company)}`, false)}/>)}
|
|
46
|
+
</View>);
|
|
47
|
+
};
|
|
48
|
+
const styles = StyleSheet.create({
|
|
49
|
+
container: {
|
|
50
|
+
flexDirection: 'row',
|
|
51
|
+
alignContent: 'center',
|
|
52
|
+
},
|
|
53
|
+
icon: {
|
|
54
|
+
marginHorizontal: 2,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
export default SocialNetworkLinks;
|
|
58
|
+
//# sourceMappingURL=SocialNetworkLinks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialNetworkLinks.js","sourceRoot":"","sources":["../../../../src/components/templates/SocialNetworkLinks/SocialNetworkLinks.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,IAAI,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAE/C,MAAM,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ACpB,KAAK,CAAC,CAAC,WAAW,IAAI,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CACrD,SAAS,CAAC,CAAC,IAAI,CAAC,CAChB,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,OAAO,CAAC,CAAC,GAAG,EAAE,CACZ,eAAe,CAAC,WAAW,CACzB,mCAAmC,kBAAkB,CACnD,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,OAAO,CACb,YAAY,CACd,CACF,EACD,CACH,CACD;MAAA,CAAC,CAAC,YAAY,IAAI,CAChB,CAAC,IAAI,CACH,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnB,IAAI,CAAC,UAAU,CACf,YAAY,CAAC,CAAC,KAAK,CAAC,CACpB,KAAK,CAAC,CAAC,aAAa,IAAI,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CACvD,SAAS,CAAC,CAAC,IAAI,CAAC,CAChB,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,OAAO,CAAC,CAAC,GAAG,EAAE,CACZ,eAAe,CAAC,WAAW,CACzB,oCAAoC,oBAAoB,CACtD,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,OAAO,CACb,EAAE,EACH,KAAK,CACN,CACF,EACD,CACH,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,YAAY,EAAE,QAAQ;KACvB;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,CAAC;KACpB;CACF,CAAC,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export { default as AttachedFilesView } from "./AttachedFilesView/AttachedFilesView";
|
|
2
2
|
export { default as MailMessageView } from "./MailMessageView/MailMessageView";
|
|
3
3
|
export { default as PopupApplicationNotConfigured } from "./PopupApplicationNotConfigured/PopupApplicationNotConfigured";
|
|
4
|
-
export { default as PopupCreateSession } from "./PopupCreateSession/PopupCreateSession";
|
|
5
4
|
export { default as PopupMinimalRequiredVersion } from "./PopupMinimalRequiredVersion/PopupMinimalRequiredVersion";
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as PopupSessionList } from "./PopupSessionList/PopupSessionList";
|
|
5
|
+
export { default as SocialNetworkLinks } from "./SocialNetworkLinks/SocialNetworkLinks";
|
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
export { default as AttachedFilesView } from './AttachedFilesView/AttachedFilesView';
|
|
19
19
|
export { default as MailMessageView } from './MailMessageView/MailMessageView';
|
|
20
20
|
export { default as PopupApplicationNotConfigured } from './PopupApplicationNotConfigured/PopupApplicationNotConfigured';
|
|
21
|
-
export { default as PopupCreateSession } from './PopupCreateSession/PopupCreateSession';
|
|
22
21
|
export { default as PopupMinimalRequiredVersion } from './PopupMinimalRequiredVersion/PopupMinimalRequiredVersion';
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as PopupSessionList } from './PopupSessionList/PopupSessionList';
|
|
22
|
+
export { default as SocialNetworkLinks } from './SocialNetworkLinks/SocialNetworkLinks';
|
|
25
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/templates/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,OAAO,IAAI,6BAA6B,EAAC,MAAM,+DAA+D,CAAC;AACvH,OAAO,EAAC,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/templates/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,OAAO,IAAI,6BAA6B,EAAC,MAAM,+DAA+D,CAAC;AACvH,OAAO,EAAC,OAAO,IAAI,2BAA2B,EAAC,MAAM,2DAA2D,CAAC;AACjH,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,yCAAyC,CAAC"}
|
package/lib/config/routes.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
export default routes;
|
|
2
2
|
declare namespace routes {
|
|
3
3
|
namespace AOS6 {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
let App: string;
|
|
5
|
+
let AppBase: string;
|
|
6
|
+
let AppCrm: string;
|
|
7
|
+
let AppHeldesk: string;
|
|
8
|
+
let AppStock: string;
|
|
9
|
+
let AppSupplychain: string;
|
|
10
|
+
let AppMobileSettings: string;
|
|
11
|
+
let TraceBack: string;
|
|
12
|
+
let EmailAddress: string;
|
|
13
|
+
let MailMessages: string;
|
|
14
14
|
}
|
|
15
15
|
namespace AOS7 {
|
|
16
|
-
|
|
16
|
+
let App_1: string;
|
|
17
17
|
export { App_1 as App };
|
|
18
|
-
|
|
18
|
+
let AppBase_1: string;
|
|
19
19
|
export { AppBase_1 as AppBase };
|
|
20
|
-
|
|
20
|
+
let AppCrm_1: string;
|
|
21
21
|
export { AppCrm_1 as AppCrm };
|
|
22
|
-
|
|
22
|
+
let AppHeldesk_1: string;
|
|
23
23
|
export { AppHeldesk_1 as AppHeldesk };
|
|
24
|
-
|
|
24
|
+
let AppStock_1: string;
|
|
25
25
|
export { AppStock_1 as AppStock };
|
|
26
|
-
|
|
26
|
+
let AppSupplychain_1: string;
|
|
27
27
|
export { AppSupplychain_1 as AppSupplychain };
|
|
28
|
-
|
|
28
|
+
let AppMobileSettings_1: string;
|
|
29
29
|
export { AppMobileSettings_1 as AppMobileSettings };
|
|
30
|
-
|
|
30
|
+
let TraceBack_1: string;
|
|
31
31
|
export { TraceBack_1 as TraceBack };
|
|
32
|
-
|
|
32
|
+
let EmailAddress_1: string;
|
|
33
33
|
export { EmailAddress_1 as EmailAddress };
|
|
34
|
-
|
|
34
|
+
let MailMessages_1: string;
|
|
35
35
|
export { MailMessages_1 as MailMessages };
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -7,12 +7,12 @@ interface CameraScannerSliceState {
|
|
|
7
7
|
cameraKey: string | null;
|
|
8
8
|
barcode: Barcode | null;
|
|
9
9
|
}
|
|
10
|
-
export declare const enableCameraScanner: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cameraScanner/enableCameraScanner">, scanBarcode: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cameraScanner/scanBarcode">, disableCameraScanner: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cameraScanner/disableCameraScanner">;
|
|
10
|
+
export declare const enableCameraScanner: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cameraScanner/enableCameraScanner">, scanBarcode: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cameraScanner/scanBarcode">, disableCameraScanner: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cameraScanner/disableCameraScanner">, clearBarcode: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cameraScanner/clearBarcode">;
|
|
11
11
|
export declare const useCameraScannerSelector: () => CameraScannerSliceState;
|
|
12
12
|
export declare const useCameraScannerValueByKey: (key: string) => Barcode | null;
|
|
13
13
|
declare const _default: import("redux").Reducer<{
|
|
14
14
|
isEnabled: boolean;
|
|
15
15
|
cameraKey: any;
|
|
16
16
|
barcode: any;
|
|
17
|
-
}
|
|
17
|
+
}>;
|
|
18
18
|
export default _default;
|
|
@@ -40,9 +40,12 @@ const cameraScannerSlice = createSlice({
|
|
|
40
40
|
state.cameraKey = null;
|
|
41
41
|
state.barcode = null;
|
|
42
42
|
},
|
|
43
|
+
clearBarcode(state) {
|
|
44
|
+
state.barcode = null;
|
|
45
|
+
},
|
|
43
46
|
},
|
|
44
47
|
});
|
|
45
|
-
export const { enableCameraScanner, scanBarcode, disableCameraScanner } = cameraScannerSlice.actions;
|
|
48
|
+
export const { enableCameraScanner, scanBarcode, disableCameraScanner, clearBarcode, } = cameraScannerSlice.actions;
|
|
46
49
|
const selectCameraScanner = state => state.cameraScanner;
|
|
47
50
|
export const useCameraScannerSelector = () => useSelector(selectCameraScanner);
|
|
48
51
|
export const useCameraScannerValueByKey = key => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cameraScannerSlice.js","sourceRoot":"","sources":["../../src/features/cameraScannerSlice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAa7C,MAAM,kBAAkB,GAAG,WAAW,CAAC;IACrC,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE;QACZ,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,IAAI;KACd;IACD,QAAQ,EAAE;QACR,mBAAmB,CAAC,KAAK,EAAE,MAAM;YAC/B,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;YACvB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC;YACjC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACvB,CAAC;QACD,WAAW,CAAC,KAAK,EAAE,MAAM;YACvB,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC;YACxB,KAA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YAChB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACvB,CAAC;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EACX,mBAAmB,EACnB,WAAW,EACX,oBAAoB,EACpB,YAAY,GACb,GAAG,kBAAkB,CAAC,OAAO,CAAC;AAE/B,MAAM,mBAAmB,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;AAEzD,MAAM,CAAC,MAAM,wBAAwB,GAAkC,GAAG,EAAE,CAC1E,WAAW,CAAC,mBAAmB,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,0BAA0B,GAEjB,GAAG,CAAC,EAAE;IAC1B,MAAM,EAAC,SAAS,EAAE,OAAO,EAAC,GAAG,wBAAwB,EAAE,CAAC;IACxD,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAC1C,CAAC,SAAS,EAAE,GAAG,EAAE,OAAO,CAAC,CAC1B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC,OAAO,CAAC"}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
+
export interface CameraPhoto {
|
|
2
|
+
name: string;
|
|
3
|
+
pictureExtention: string;
|
|
4
|
+
dateTime: string;
|
|
5
|
+
type: string;
|
|
6
|
+
size: number;
|
|
7
|
+
base64: string;
|
|
8
|
+
fullBase64: string;
|
|
9
|
+
}
|
|
1
10
|
interface CameraSliceState {
|
|
2
11
|
isEnabled: boolean;
|
|
3
12
|
cameraKey: string | null;
|
|
4
|
-
photo:
|
|
13
|
+
photo: CameraPhoto | null;
|
|
5
14
|
}
|
|
6
|
-
export declare const enableCamera: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "camera/enableCamera">, takePhoto: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "camera/takePhoto">, disableCamera: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"camera/disableCamera">;
|
|
15
|
+
export declare const enableCamera: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "camera/enableCamera">, takePhoto: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "camera/takePhoto">, disableCamera: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"camera/disableCamera">, clearPhoto: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"camera/clearPhoto">;
|
|
7
16
|
export declare const useCameraSelector: () => CameraSliceState;
|
|
8
|
-
export declare const useCameraValueByKey: (key: string) =>
|
|
17
|
+
export declare const useCameraValueByKey: (key: string) => CameraPhoto | null;
|
|
9
18
|
declare const _default: import("redux").Reducer<{
|
|
10
19
|
isEnabled: boolean;
|
|
11
20
|
cameraKey: any;
|
|
12
21
|
photo: any;
|
|
13
|
-
}
|
|
22
|
+
}>;
|
|
14
23
|
export default _default;
|
|
@@ -34,6 +34,9 @@ const cameraSlice = createSlice({
|
|
|
34
34
|
takePhoto(state, action) {
|
|
35
35
|
state.photo = action.payload;
|
|
36
36
|
},
|
|
37
|
+
clearPhoto(state) {
|
|
38
|
+
state.photo = null;
|
|
39
|
+
},
|
|
37
40
|
disableCamera(state) {
|
|
38
41
|
state.isEnabled = false;
|
|
39
42
|
state.cameraKey = null;
|
|
@@ -41,7 +44,7 @@ const cameraSlice = createSlice({
|
|
|
41
44
|
},
|
|
42
45
|
},
|
|
43
46
|
});
|
|
44
|
-
export const { enableCamera, takePhoto, disableCamera } = cameraSlice.actions;
|
|
47
|
+
export const { enableCamera, takePhoto, disableCamera, clearPhoto } = cameraSlice.actions;
|
|
45
48
|
const selectCamera = state => state.camera;
|
|
46
49
|
export const useCameraSelector = () => useSelector(selectCamera);
|
|
47
50
|
export const useCameraValueByKey = key => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cameraSlice.js","sourceRoot":"","sources":["../../src/features/cameraSlice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAE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AO,CAAC;AAEtB,MAAM,YAAY,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAA2B,GAAG,EAAE,CAC5D,WAAW,CAAC,YAAY,CAAC,CAAC;AAE5B,MAAM,CAAC,MAAM,mBAAmB,GAAwC,GAAG,CAAC,EAAE;IAC5E,MAAM,EAAC,SAAS,EAAE,KAAK,EAAC,GAAG,iBAAiB,EAAE,CAAC;IAC/C,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,EACxC,CAAC,SAAS,EAAE,GAAG,EAAE,KAAK,CAAC,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC,OAAO,CAAC"}
|
|
@@ -6,6 +6,6 @@ export declare const onlineSlice: import("@reduxjs/toolkit").Slice<OnlineState,
|
|
|
6
6
|
disable: (state: import("immer/dist/internal").WritableDraft<OnlineState>) => void;
|
|
7
7
|
}, "online">;
|
|
8
8
|
export declare const disable: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"online/disable">, enable: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"online/enable">;
|
|
9
|
-
export declare const onlineReducer: import("redux").Reducer<OnlineState
|
|
9
|
+
export declare const onlineReducer: import("redux").Reducer<OnlineState>;
|
|
10
10
|
export declare const useOnline: () => OnlineState;
|
|
11
11
|
export declare const useEffectOnline: () => void;
|
|
@@ -3,12 +3,12 @@ interface ScannerSliceState {
|
|
|
3
3
|
scanKey: string | null;
|
|
4
4
|
scannedValue: string | null;
|
|
5
5
|
}
|
|
6
|
-
export declare const enableScan: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "scanner/enableScan">, scanValue: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "scanner/scanValue">, disableScan: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"scanner/disableScan">;
|
|
6
|
+
export declare const enableScan: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "scanner/enableScan">, scanValue: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "scanner/scanValue">, disableScan: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"scanner/disableScan">, clearScan: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"scanner/clearScan">;
|
|
7
7
|
export declare const useScannerSelector: () => ScannerSliceState;
|
|
8
8
|
export declare const useScannedValueByKey: (key: string) => string | null;
|
|
9
9
|
declare const _default: import("redux").Reducer<{
|
|
10
10
|
isEnabled: boolean;
|
|
11
11
|
scanKey: any;
|
|
12
12
|
scannedValue: any;
|
|
13
|
-
}
|
|
13
|
+
}>;
|
|
14
14
|
export default _default;
|
|
@@ -39,9 +39,12 @@ const scannerSlice = createSlice({
|
|
|
39
39
|
state.scanKey = null;
|
|
40
40
|
state.scannedValue = null;
|
|
41
41
|
},
|
|
42
|
+
clearScan(state) {
|
|
43
|
+
state.scannedValue = null;
|
|
44
|
+
},
|
|
42
45
|
},
|
|
43
46
|
});
|
|
44
|
-
export const { enableScan, scanValue, disableScan } = scannerSlice.actions;
|
|
47
|
+
export const { enableScan, scanValue, disableScan, clearScan } = scannerSlice.actions;
|
|
45
48
|
const selectScanner = state => state.scanner;
|
|
46
49
|
export const useScannerSelector = () => useSelector(selectScanner);
|
|
47
50
|
export const useScannedValueByKey = key => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scannerSlice.js","sourceRoot":"","sources":["../../src/features/scannerSlice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAQ7C,MAAM,YAAY,GAAG,WAAW,CAAC;IAC/B,IAAI,EAAE,SAAS;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K,CAAC,YAAY,GAAG,IAAI,CAAC;QAC5B,CAAC;QACD,SAAS,CAAC,KAAK,EAAE,MAAM;YACrB,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC;QACtC,CAAC;QACD,WAAW,CAAC,KAAK;YACf,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC;YACxB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;YACrB,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;QAC5B,CAAC;QACD,SAAS,CAAC,KAAK;YACb,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;QAC5B,CAAC;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EAAC,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAC,GAC1D,YAAY,CAAC,OAAO,CAAC;AAEvB,MAAM,aAAa,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAA4B,GAAG,EAAE,CAC9D,WAAW,CAAC,aAAa,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,oBAAoB,GAAmC,GAAG,CAAC,EAAE;IACxE,MAAM,EAAC,OAAO,EAAE,YAAY,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACrD,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,EAC7C,CAAC,OAAO,EAAE,GAAG,EAAE,YAAY,CAAC,CAC7B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC,OAAO,CAAC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { HeaderOptions } from './types';
|
|
1
|
+
import { HeaderActions, HeaderOptions } from './types';
|
|
2
2
|
declare class HeaderActionsProvider {
|
|
3
3
|
private headerActions;
|
|
4
4
|
private refreshCallBack;
|
|
5
5
|
constructor();
|
|
6
6
|
register(callBack: any): void;
|
|
7
|
-
private updateState;
|
|
8
7
|
registerModel(key: string, options: HeaderOptions): void;
|
|
9
8
|
getHeaderOptions(key: string): HeaderOptions;
|
|
10
9
|
}
|
|
11
10
|
export declare const headerActionsProvider: HeaderActionsProvider;
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
11
|
+
export declare const useHeaderActions: () => {
|
|
12
|
+
headers: HeaderActions;
|
|
14
13
|
};
|
|
15
14
|
export {};
|
|
@@ -27,9 +27,6 @@ class HeaderActionsProvider {
|
|
|
27
27
|
register(callBack) {
|
|
28
28
|
this.refreshCallBack = callBack;
|
|
29
29
|
}
|
|
30
|
-
updateState() {
|
|
31
|
-
this.refreshCallBack(this.headerActions);
|
|
32
|
-
}
|
|
33
30
|
registerModel(key, options) {
|
|
34
31
|
if (!Object.keys(this.headerActions).includes(key)) {
|
|
35
32
|
this.headerActions[key] = options;
|
|
@@ -42,19 +39,28 @@ class HeaderActionsProvider {
|
|
|
42
39
|
actions: mergeActions(oldOptions.actions, options.actions),
|
|
43
40
|
};
|
|
44
41
|
}
|
|
45
|
-
this.
|
|
42
|
+
this.refreshCallBack(key, this.headerActions[key]);
|
|
46
43
|
}
|
|
47
44
|
getHeaderOptions(key) {
|
|
48
45
|
return fetchOptionsOfHeaderKey(this.headerActions, key);
|
|
49
46
|
}
|
|
50
47
|
}
|
|
51
48
|
export const headerActionsProvider = new HeaderActionsProvider();
|
|
52
|
-
export const
|
|
53
|
-
const [
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
export const useHeaderActions = () => {
|
|
50
|
+
const [headers, setHeaders] = useState();
|
|
51
|
+
const refreshData = useCallback((key, options) => {
|
|
52
|
+
setHeaders(_current => {
|
|
53
|
+
if (_current?.[key] === options) {
|
|
54
|
+
return _current;
|
|
55
|
+
}
|
|
56
|
+
const updatedHeaders = _current != null ? { ..._current } : {};
|
|
57
|
+
updatedHeaders[key] = options;
|
|
58
|
+
return updatedHeaders;
|
|
59
|
+
});
|
|
56
60
|
}, []);
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
headerActionsProvider.register(refreshData);
|
|
63
|
+
}, [refreshData]);
|
|
64
|
+
return useMemo(() => ({ headers }), [headers]);
|
|
59
65
|
};
|
|
60
66
|
//# sourceMappingURL=HeaderActionsProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderActionsProvider.js","sourceRoot":"","sources":["../../src/header/HeaderActionsProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAC,uBAAuB,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC;AAE9D,MAAM,qBAAqB;IACjB,aAAa,CAAgB;IAC7B,eAAe,CAAW;IAElC;QACE,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,IAAI,CAAC,eAAe,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;IAClC,CAAC;IAED,QAAQ,CAAC,QAAQ;QACf,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC;IAClC,CAAC;
|
|
1
|
+
{"version":3,"file":"HeaderActionsProvider.js","sourceRoot":"","sources":["../../src/header/HeaderActionsProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAC,uBAAuB,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC;AAE9D,MAAM,qBAAqB;IACjB,aAAa,CAAgB;IAC7B,eAAe,CAAW;IAElC;QACE,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,IAAI,CAAC,eAAe,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;IAClC,CAAC;I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G,QAAQ,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAE7D,cAAc,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;YAE9B,OAAO,cAAc,CAAC;QACxB,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,SAAS,CAAC,GAAG,EAAE;QACb,qBAAqB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAC,OAAO,EAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/C,CAAC,CAAC"}
|
package/lib/header/hooks.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export function useBasicActions({ model, modelId, disableMailMessages, attachedFileScreenTitle, }: {
|
|
1
|
+
export function useBasicActions({ model, modelId, disableMailMessages, attachedFileScreenTitle, barcodeFieldname, }: {
|
|
2
2
|
model: any;
|
|
3
3
|
modelId: any;
|
|
4
4
|
disableMailMessages: any;
|
|
5
5
|
attachedFileScreenTitle: any;
|
|
6
|
+
barcodeFieldname?: string;
|
|
6
7
|
}): {
|
|
7
8
|
mailMessagesAction: {
|
|
8
9
|
key: string;
|
|
@@ -25,6 +26,15 @@ export function useBasicActions({ model, modelId, disableMailMessages, attachedF
|
|
|
25
26
|
onPress: () => void;
|
|
26
27
|
showInHeader: boolean;
|
|
27
28
|
};
|
|
29
|
+
barcodeAction: {
|
|
30
|
+
key: string;
|
|
31
|
+
order: number;
|
|
32
|
+
title: string;
|
|
33
|
+
iconName: string;
|
|
34
|
+
hideIf: boolean;
|
|
35
|
+
onPress: () => void;
|
|
36
|
+
showInHeader: boolean;
|
|
37
|
+
};
|
|
28
38
|
} | {
|
|
29
39
|
mailMessagesAction: {
|
|
30
40
|
key: string;
|
|
@@ -34,4 +44,8 @@ export function useBasicActions({ model, modelId, disableMailMessages, attachedF
|
|
|
34
44
|
key: string;
|
|
35
45
|
hideIf: boolean;
|
|
36
46
|
};
|
|
47
|
+
barcodeAction: {
|
|
48
|
+
key: string;
|
|
49
|
+
hideIf: boolean;
|
|
50
|
+
};
|
|
37
51
|
};
|