@axelor/aos-mobile-core 8.1.2 → 8.1.3

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.
Files changed (73) hide show
  1. package/lib/apiProviders/Action/ActionApiProvider.d.ts +1 -1
  2. package/lib/apiProviders/Action/GatewayActionApi.d.ts +1 -1
  3. package/lib/apiProviders/Action/GatewayActionApi.js +2 -2
  4. package/lib/apiProviders/Action/GatewayActionApi.js.map +1 -1
  5. package/lib/apiProviders/utils.js +5 -2
  6. package/lib/apiProviders/utils.js.map +1 -1
  7. package/lib/app/ContextsProvider.js +4 -1
  8. package/lib/app/ContextsProvider.js.map +1 -1
  9. package/lib/auth/hooks/use-auth-headers.js +40 -2
  10. package/lib/auth/hooks/use-auth-headers.js.map +1 -1
  11. package/lib/auth/screens/SettingsScreen.js +4 -1
  12. package/lib/auth/screens/SettingsScreen.js.map +1 -1
  13. package/lib/components/external/PlanningView/PlanningView.js +2 -1
  14. package/lib/components/external/PlanningView/PlanningView.js.map +1 -1
  15. package/lib/components/external/PlanningView/agenda.helpers.d.ts +0 -1
  16. package/lib/components/external/PlanningView/agenda.helpers.js +0 -5
  17. package/lib/components/external/PlanningView/agenda.helpers.js.map +1 -1
  18. package/lib/components/organisms/SignatureInput/SignatureInput.d.ts +8 -2
  19. package/lib/components/organisms/SignatureInput/SignatureInput.js +49 -23
  20. package/lib/components/organisms/SignatureInput/SignatureInput.js.map +1 -1
  21. package/lib/forms/studio/display.helpers.js +3 -0
  22. package/lib/forms/studio/display.helpers.js.map +1 -1
  23. package/lib/i18n/translations/en.json +13 -0
  24. package/lib/i18n/translations/fr.json +13 -0
  25. package/lib/index.d.ts +1 -0
  26. package/lib/index.js +1 -0
  27. package/lib/index.js.map +1 -1
  28. package/lib/loader/ProcessProvider.d.ts +30 -0
  29. package/lib/loader/ProcessProvider.js +211 -0
  30. package/lib/loader/ProcessProvider.js.map +1 -0
  31. package/lib/loader/ProcessStorage.d.ts +18 -0
  32. package/lib/loader/ProcessStorage.js +95 -0
  33. package/lib/loader/ProcessStorage.js.map +1 -0
  34. package/lib/loader/components/atoms/ProcessCard/ProcessCard.d.ts +15 -0
  35. package/lib/loader/components/atoms/ProcessCard/ProcessCard.js +69 -0
  36. package/lib/loader/components/atoms/ProcessCard/ProcessCard.js.map +1 -0
  37. package/lib/loader/components/atoms/index.d.ts +1 -0
  38. package/lib/loader/components/atoms/index.js +19 -0
  39. package/lib/loader/components/atoms/index.js.map +1 -0
  40. package/lib/loader/components/index.d.ts +2 -0
  41. package/lib/loader/components/index.js +20 -0
  42. package/lib/loader/components/index.js.map +1 -0
  43. package/lib/loader/components/organisms/LoaderPopup/LoaderPopup.d.ts +13 -0
  44. package/lib/loader/components/organisms/LoaderPopup/LoaderPopup.js +104 -0
  45. package/lib/loader/components/organisms/LoaderPopup/LoaderPopup.js.map +1 -0
  46. package/lib/loader/components/organisms/index.d.ts +1 -0
  47. package/lib/loader/components/organisms/index.js +19 -0
  48. package/lib/loader/components/organisms/index.js.map +1 -0
  49. package/lib/loader/helpers.d.ts +5 -0
  50. package/lib/loader/helpers.js +59 -0
  51. package/lib/loader/helpers.js.map +1 -0
  52. package/lib/loader/hooks.d.ts +6 -0
  53. package/lib/loader/hooks.js +50 -0
  54. package/lib/loader/hooks.js.map +1 -0
  55. package/lib/loader/index.d.ts +6 -0
  56. package/lib/loader/index.js +24 -0
  57. package/lib/loader/index.js.map +1 -0
  58. package/lib/loader/types.d.ts +26 -0
  59. package/lib/loader/types.js +24 -0
  60. package/lib/loader/types.js.map +1 -0
  61. package/lib/screens/ProcessListScreen.d.ts +3 -0
  62. package/lib/screens/ProcessListScreen.js +75 -0
  63. package/lib/screens/ProcessListScreen.js.map +1 -0
  64. package/lib/screens/index.d.ts +11 -0
  65. package/lib/screens/index.js +8 -0
  66. package/lib/screens/index.js.map +1 -1
  67. package/lib/utils/date.d.ts +1 -0
  68. package/lib/utils/date.js +5 -0
  69. package/lib/utils/date.js.map +1 -1
  70. package/lib/utils/index.d.ts +1 -1
  71. package/lib/utils/index.js +1 -1
  72. package/lib/utils/index.js.map +1 -1
  73. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/loader/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface LoaderPopupProps {
3
+ start?: boolean;
4
+ autoLeave?: boolean;
5
+ timeout?: number;
6
+ name: string;
7
+ disabled?: boolean;
8
+ process: () => Promise<any>;
9
+ onSuccess: () => void;
10
+ onError: () => void;
11
+ }
12
+ declare const LoaderPopup: ({ start, autoLeave, timeout, name, disabled, process, onSuccess, onError, }: LoaderPopupProps) => React.JSX.Element;
13
+ export default LoaderPopup;
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 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, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
19
+ import { ActivityIndicator, StyleSheet, View } from 'react-native';
20
+ import { Alert, Button, Label, Text, useConfig, useThemeColor, } from '@axelor/aos-mobile-ui';
21
+ import { useNavigation } from '../../../../hooks/use-navigation';
22
+ import { useTranslator } from '../../../../i18n';
23
+ import { processProvider } from '../../../ProcessProvider';
24
+ import { ProcessStatus } from '../../../types';
25
+ const LoaderPopup = ({ start = false, autoLeave = false, timeout = 1000, name, disabled = false, process, onSuccess, onError, }) => {
26
+ const I18n = useTranslator();
27
+ const Colors = useThemeColor();
28
+ const navigation = useNavigation();
29
+ const { setActivityIndicator } = useConfig();
30
+ const [loading, setLoading] = useState(false);
31
+ const [showPopup, setShowPopup] = useState(false);
32
+ const [processItem, setProcessItem] = useState();
33
+ const timeoutRef = useRef(null);
34
+ const processOptions = useMemo(() => ({
35
+ name,
36
+ disabled,
37
+ process,
38
+ onSuccess,
39
+ onError,
40
+ }), [name, disabled, process, onSuccess, onError]);
41
+ const onEndProcess = useCallback(() => {
42
+ setLoading(false);
43
+ setShowPopup(false);
44
+ }, []);
45
+ const handleNotifyMe = useCallback(() => {
46
+ setShowPopup(false);
47
+ setActivityIndicator(false);
48
+ processProvider.notifyMe(processItem.key);
49
+ navigation.goBack();
50
+ }, [navigation, processItem, setActivityIndicator]);
51
+ useEffect(() => {
52
+ if (start) {
53
+ const processKey = new Date().getTime().toString();
54
+ const _process = processProvider.registerProcess(processKey, processOptions);
55
+ setProcessItem(_process);
56
+ processProvider.on(processKey, ProcessStatus.InProgress, () => setLoading(true));
57
+ processProvider.on(processKey, ProcessStatus.Success, () => onEndProcess());
58
+ processProvider.on(processKey, ProcessStatus.Failed, () => onEndProcess());
59
+ processProvider.runProcess(processKey, I18n);
60
+ }
61
+ }, [I18n, onEndProcess, processOptions, start]);
62
+ useEffect(() => {
63
+ if (loading) {
64
+ setActivityIndicator(true);
65
+ timeoutRef.current = setTimeout(() => {
66
+ setActivityIndicator(false);
67
+ autoLeave ? handleNotifyMe() : setShowPopup(true);
68
+ }, timeout);
69
+ }
70
+ return () => {
71
+ setActivityIndicator(false);
72
+ clearTimeout(timeoutRef.current);
73
+ };
74
+ }, [
75
+ autoLeave,
76
+ handleNotifyMe,
77
+ loading,
78
+ setActivityIndicator,
79
+ setShowPopup,
80
+ timeout,
81
+ ]);
82
+ return (<Alert visible={showPopup}>
83
+ <Label type="danger" message={I18n.t('Base_Loader_DoNotCloseTheApp')} iconName="exclamation-triangle-fill"/>
84
+ <View style={styles.loadingContainer}>
85
+ <ActivityIndicator size="large" color={Colors.primaryColor.background}/>
86
+ <Text style={styles.marginLeft} writingType="title">
87
+ {I18n.t('Base_Loader_LoadingInProgress')}
88
+ </Text>
89
+ </View>
90
+ <Button iconName="check-lg" title={I18n.t('Base_Loader_NotifyMe')} onPress={handleNotifyMe}/>
91
+ </Alert>);
92
+ };
93
+ const styles = StyleSheet.create({
94
+ loadingContainer: {
95
+ flexDirection: 'row',
96
+ alignItems: 'center',
97
+ marginVertical: 15,
98
+ },
99
+ marginLeft: {
100
+ marginLeft: 10,
101
+ },
102
+ });
103
+ export default LoaderPopup;
104
+ //# sourceMappingURL=LoaderPopup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoaderPopup.js","sourceRoot":"","sources":["../../../../../src/loader/components/organisms/LoaderPopup/LoaderPopup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACjE,OAAO,EACL,KAAK,EACL,MAAM,EACN,KAAK,EACL,IAAI,EACJ,SAAS,EACT,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAc,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAa1D,MAAM,WAAW,GAAG,CAAC,EACnB,KAAK,GAAG,KAAK,EACb,SAAS,GAAG,KAAK,EACjB,OAAO,GAAG,IAAI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axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export { default as LoaderPopup } from './LoaderPopup/LoaderPopup';
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/loader/components/organisms/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Color, ThemeColors } from '@axelor/aos-mobile-ui';
2
+ import { ProcessItem, ProcessStatus } from './types';
3
+ export declare const serialize: (list: ProcessItem[]) => string;
4
+ export declare const deserialize: (data: string) => any[];
5
+ export declare const getProcessStatusColor: (status: ProcessStatus, Colors: ThemeColors) => Color;
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 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 { ProcessStatus } from './types';
19
+ const serializeItem = (p) => {
20
+ return JSON.stringify(p);
21
+ };
22
+ const deserializeItem = (data) => {
23
+ return JSON.parse(data);
24
+ };
25
+ export const serialize = (list) => {
26
+ if (!Array.isArray(list) || list.length === 0) {
27
+ return '[]';
28
+ }
29
+ return JSON.stringify(list.map(p => serializeItem(p)));
30
+ };
31
+ export const deserialize = (data) => {
32
+ if (data == null || data.length === 0) {
33
+ return [];
34
+ }
35
+ try {
36
+ if (!Array.isArray(data)) {
37
+ return [];
38
+ }
39
+ return data.map(i => deserializeItem(i));
40
+ }
41
+ catch (e) {
42
+ console.error('Deserialization error:', e);
43
+ return [];
44
+ }
45
+ };
46
+ export const getProcessStatusColor = (status, Colors) => {
47
+ switch (status) {
48
+ case ProcessStatus.InProgress:
49
+ return Colors.progressColor;
50
+ case ProcessStatus.Success:
51
+ return Colors.successColor;
52
+ case ProcessStatus.Failed:
53
+ return Colors.errorColor;
54
+ default:
55
+ console.warn(`Status provided with value ${status} is not supported by Process.`);
56
+ return null;
57
+ }
58
+ };
59
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/loader/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAc,aAAa,EAAC,MAAM,SAAS,CAAC;AAEnD,MAAM,aAAa,GAAG,CAAC,CAAc,EAAE,EAAE;IACvC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAC3B,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,EAAE;IACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAmB,EAAU,EAAE;IACvD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IAED,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,EAAE;IAC1C,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACrC,OAAO,EAAE,CAAC;KACX;IAED,IAAI;QACF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACxB,OAAO,EAAE,CAAC;SACX;QAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;KAC1C;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,CAAC,CAAC,CAAC;QAC3C,OAAO,EAAE,CAAC;KACX;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,MAAqB,EACrB,MAAmB,EACZ,EAAE;IACT,QAAQ,MAAM,EAAE;QACd,KAAK,aAAa,CAAC,UAAU;YAC3B,OAAO,MAAM,CAAC,aAAa,CAAC;QAC9B,KAAK,aAAa,CAAC,OAAO;YACxB,OAAO,MAAM,CAAC,YAAY,CAAC;QAC7B,KAAK,aAAa,CAAC,MAAM;YACvB,OAAO,MAAM,CAAC,UAAU,CAAC;QAC3B;YACE,OAAO,CAAC,IAAI,CACV,8BAA8B,MAAM,+BAA+B,CACpE,CAAC;YACF,OAAO,IAAI,CAAC;KACf;AACH,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ProcessItem } from './types';
2
+ export declare const useLoaderListener: () => {
3
+ numberRunningProcesses: number;
4
+ numberUnreadProcess: number;
5
+ processList: ProcessItem[];
6
+ };
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 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 { useCallback, useEffect, useMemo, useState } from 'react';
19
+ import { processProvider } from './ProcessProvider';
20
+ import { processStorage } from './ProcessStorage';
21
+ export const useLoaderListener = () => {
22
+ const [numberRunningProcesses, setNumberRunningProcesses] = useState(0);
23
+ const [numberUnreadProcess, setNumberUnreadProcess] = useState(0);
24
+ const [processList, setProcessList] = useState([]);
25
+ useEffect(() => {
26
+ setNumberRunningProcesses(processProvider.getNumberRunningProcess());
27
+ const handleProcessChange = newNumber => {
28
+ setNumberRunningProcesses(newNumber);
29
+ };
30
+ processProvider.subscribeNRProcess(handleProcessChange);
31
+ return () => {
32
+ processProvider.unsubscribeNRProcess(handleProcessChange);
33
+ };
34
+ }, []);
35
+ const refreshData = useCallback(({ numberUnreadProcess: _numberUnreadProcess, processList: _processList, }) => {
36
+ setNumberUnreadProcess(_numberUnreadProcess);
37
+ setProcessList(_processList);
38
+ }, []);
39
+ useEffect(() => {
40
+ processStorage.register(refreshData);
41
+ }, [refreshData]);
42
+ return useMemo(() => {
43
+ return {
44
+ numberRunningProcesses,
45
+ numberUnreadProcess,
46
+ processList,
47
+ };
48
+ }, [numberRunningProcesses, numberUnreadProcess, processList]);
49
+ };
50
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","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;IACvC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,OAAO;YACL,sBAAsB;YACtB,mBAAmB;YACnB,WAAW;SACZ,CAAC;IACJ,CAAC,EAAE,CAAC,sBAAsB,EAAE,mBAAmB,EAAE,WAAW,CAAC,CAAC,CAAC;AACjE,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './components';
2
+ export { processProvider } from './ProcessProvider';
3
+ export { processStorage } from './ProcessStorage';
4
+ export { ProcessStatus } from './types';
5
+ export { getProcessStatusColor } from './helpers';
6
+ export { useLoaderListener } from './hooks';
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 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 * from './components';
19
+ export { processProvider } from './ProcessProvider';
20
+ export { processStorage } from './ProcessStorage';
21
+ export { ProcessStatus } from './types';
22
+ export { getProcessStatusColor } from './helpers';
23
+ export { useLoaderListener } from './hooks';
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/loader/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AACtC,OAAO,EAAC,qBAAqB,EAAC,MAAM,WAAW,CAAC;AAChD,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC"}
@@ -0,0 +1,26 @@
1
+ export type ProcessOption = {
2
+ name: string;
3
+ disabled: boolean;
4
+ process: () => Promise<any>;
5
+ onSuccess: (response?: any) => void;
6
+ onError: (error?: any) => void;
7
+ };
8
+ export declare enum ProcessStatus {
9
+ InProgress = 0,
10
+ Success = 1,
11
+ Failed = 2
12
+ }
13
+ export type CallBack = (...args: any[]) => void;
14
+ export type Event = {
15
+ [e in ProcessStatus]: CallBack[];
16
+ };
17
+ export type ProcessItem = ProcessOption & {
18
+ key: string;
19
+ loading: boolean;
20
+ notifyMe: boolean;
21
+ response: string;
22
+ status: number;
23
+ executed: boolean;
24
+ startedDate: string;
25
+ endDate: string;
26
+ };
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 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 ProcessStatus;
19
+ (function (ProcessStatus) {
20
+ ProcessStatus[ProcessStatus["InProgress"] = 0] = "InProgress";
21
+ ProcessStatus[ProcessStatus["Success"] = 1] = "Success";
22
+ ProcessStatus[ProcessStatus["Failed"] = 2] = "Failed";
23
+ })(ProcessStatus || (ProcessStatus = {}));
24
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/loader/types.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAUH,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,6DAAc,CAAA;IACd,uDAAW,CAAA;IACX,qDAAU,CAAA;AACZ,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ProcessListScreen: () => React.JSX.Element;
3
+ export default ProcessListScreen;
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 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, { useCallback, useEffect, useState } from 'react';
19
+ import { ChipSelect, HeaderContainer, Screen, ScrollList, ToggleSwitch, useThemeColor, } from '@axelor/aos-mobile-ui';
20
+ import { filterChip, isToday } from '../utils';
21
+ import { useTranslator } from '../i18n';
22
+ import { getProcessStatusColor, ProcessCard, processProvider, ProcessStatus, useLoaderListener, } from '../loader';
23
+ const ProcessListScreen = () => {
24
+ const I18n = useTranslator();
25
+ const Colors = useThemeColor();
26
+ const { processList } = useLoaderListener();
27
+ const [filteredList, setFilteredList] = useState(processList);
28
+ const [isTodayProcess, setIsTodayProcess] = useState(true);
29
+ const [selectedStatus, setSelectedStatus] = useState([]);
30
+ const filterOnDate = useCallback(list => {
31
+ if (!Array.isArray(list) || list.length === 0) {
32
+ return [];
33
+ }
34
+ else {
35
+ let _list = list;
36
+ if (isTodayProcess) {
37
+ _list = list?.filter(item => isToday(item.startedDate) ||
38
+ item.status === ProcessStatus.InProgress);
39
+ }
40
+ return _list.sort((a, b) => new Date(b.startedDate).getTime() -
41
+ new Date(a.startedDate).getTime());
42
+ }
43
+ }, [isTodayProcess]);
44
+ const filterOnStatus = useCallback(list => {
45
+ return filterChip(list, selectedStatus, 'status');
46
+ }, [selectedStatus]);
47
+ useEffect(() => {
48
+ setFilteredList(filterOnStatus(filterOnDate(processList)));
49
+ }, [filterOnDate, filterOnStatus, processList]);
50
+ useEffect(() => {
51
+ processProvider.setNumberUnreadProcess(0);
52
+ }, []);
53
+ return (<Screen removeSpaceOnTop={true}>
54
+ <HeaderContainer fixedItems={<ToggleSwitch leftTitle={I18n.t('Base_Loader_Today')} rightTitle={I18n.t('Base_All')} onSwitch={() => setIsTodayProcess(!isTodayProcess)}/>} chipComponent={<ChipSelect mode="multi" onChangeValue={setSelectedStatus} selectionItems={[
55
+ {
56
+ title: I18n.t('Base_Loader_Status_InProgress'),
57
+ color: getProcessStatusColor(ProcessStatus.InProgress, Colors),
58
+ key: ProcessStatus.InProgress,
59
+ },
60
+ {
61
+ title: I18n.t('Base_Loader_Status_Success'),
62
+ color: getProcessStatusColor(ProcessStatus.Success, Colors),
63
+ key: ProcessStatus.Success,
64
+ },
65
+ {
66
+ title: I18n.t('Base_Loader_Status_Failed'),
67
+ color: getProcessStatusColor(ProcessStatus.Failed, Colors),
68
+ key: ProcessStatus.Failed,
69
+ },
70
+ ]}/>} expandableFilter={false}/>
71
+ <ScrollList loadingList={false} data={filteredList} renderItem={({ item }) => (<ProcessCard processKey={item.key} name={item.name} status={item.status} executed={item.executed} startedDate={item.startedDate} endDate={item.endDate} onSuccess={item.onSuccess} onError={item.onError}/>)} fetchData={() => { }} moreLoading={false} isListEnd={true} translator={I18n.t}/>
72
+ </Screen>);
73
+ };
74
+ export default ProcessListScreen;
75
+ //# sourceMappingURL=Proc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AAS,CAAC,CAC1B,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EACtB,CACH,CAAC,CACF,SAAS,CAAC,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CACpB,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,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -43,9 +43,20 @@ declare namespace _default {
43
43
  }
44
44
  export { options_3 as options };
45
45
  }
46
+ namespace ProcessListScreen {
47
+ let title_4: string;
48
+ export { title_4 as title };
49
+ export { ProcessListScreen as component };
50
+ export namespace options_4 {
51
+ let shadedHeader_4: boolean;
52
+ export { shadedHeader_4 as shadedHeader };
53
+ }
54
+ export { options_4 as options };
55
+ }
46
56
  }
47
57
  export default _default;
48
58
  import AttachedFilesScreen_1 from './AttachedFilesScreen';
49
59
  import MailMessageScreen_1 from './MailMessageScreen';
50
60
  import BarcodeDisplayScreen_1 from './BarcodeDisplayScreen';
51
61
  import JsonFieldScreen_1 from './JsonFieldScreen';
62
+ import ProcessListScreen_1 from './ProcessListScreen';
@@ -19,6 +19,7 @@ import AttachedFilesScreen from './AttachedFilesScreen';
19
19
  import BarcodeDisplayScreen from './BarcodeDisplayScreen';
20
20
  import JsonFieldScreen from './JsonFieldScreen';
21
21
  import MailMessageScreen from './MailMessageScreen';
22
+ import ProcessListScreen from './ProcessListScreen';
22
23
  export default {
23
24
  AttachedFilesScreen: {
24
25
  title: 'Base_AttachedFiles',
@@ -52,5 +53,12 @@ export default {
52
53
  shadedHeader: true,
53
54
  },
54
55
  },
56
+ ProcessListScreen: {
57
+ title: 'Base_Loader_ProcessList',
58
+ component: ProcessListScreen,
59
+ options: {
60
+ shadedHeader: false,
61
+ },
62
+ },
55
63
  };
56
64
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/screens/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,eAAe;IACb,mBAAmB,EAAE;QACnB,KAAK,EAAE,oBAAoB;QAC3B,SAAS,EAAE,mBAAmB;QAC9B,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,mBAAmB;QAC1B,SAAS,EAAE,iBAAiB;QAC5B,QAAQ,EAAE,0BAA0B;QACpC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,oBAAoB,EAAE;QACpB,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,oBAAoB;QAC/B,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE;YACP,YAAY,EAAE,IAAI;SACnB;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,qBAAqB;QAC5B,SAAS,EAAE,eAAe;QAC1B,QAAQ,EAAE,6BAA6B;QACvC,OAAO,EAAE;YACP,YAAY,EAAE,IAAI;SACnB;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/screens/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,eAAe;IACb,mBAAmB,EAAE;QACnB,KAAK,EAAE,oBAAoB;QAC3B,SAAS,EAAE,mBAAmB;QAC9B,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,mBAAmB;QAC1B,SAAS,EAAE,iBAAiB;QAC5B,QAAQ,EAAE,0BAA0B;QACpC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,oBAAoB,EAAE;QACpB,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,oBAAoB;QAC/B,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE;YACP,YAAY,EAAE,IAAI;SACnB;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,qBAAqB;QAC5B,SAAS,EAAE,eAAe;QAC1B,QAAQ,EAAE,6BAA6B;QACvC,OAAO,EAAE;YACP,YAAY,EAAE,IAAI;SACnB;KACF;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,yBAAyB;QAChC,SAAS,EAAE,iBAAiB;QAC5B,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;CACF,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export declare const isDate: (date: string) => boolean;
2
2
  export declare const isDateTime: (date: string) => boolean;
3
+ export declare const isToday: (date: any) => boolean;
3
4
  export declare const getNextMonth: (date: Date) => Date;
4
5
  export declare const getPreviousMonth: (date: Date) => Date;
5
6
  export declare const getStartOfDay: (date: Date) => Date;
package/lib/utils/date.js CHANGED
@@ -22,6 +22,11 @@ export const isDate = (date) => {
22
22
  export const isDateTime = (date) => {
23
23
  return isDate(date) && date?.length > 10;
24
24
  };
25
+ export const isToday = date => {
26
+ const d = new Date(date);
27
+ const today = new Date();
28
+ return sameDate(d, today);
29
+ };
25
30
  export const getNextMonth = (date) => {
26
31
  if (date.getMonth() === 11) {
27
32
  return new Date(date.getFullYear() + 1, 0, 1);
@@ -1 +1 @@
1
- {"version":3,"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AAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,IAAY,EACZ,IAAkC,EACwB,EAAE;IAC5D,IAAI,IAAI,IAAI,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IAE7B,OAAO;QACL,GAAG,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC;QACxB,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE;QACrB,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;QAC5B,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE;KAC1B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAU,EAAE;IACxD,IAAI,IAAI,IAAI,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5B,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export { updateAgendaItems } from './agenda';
2
- export { diffDate, getDay, getEndOfDay, getFullDateItems, getMonth, getNextMonth, getPreviousMonth, getStartOfDay, incrementDate, isDate, isDateTime, ISODateTimeToDate, sameDate, } from './date';
2
+ export { diffDate, getDay, getEndOfDay, getFullDateItems, getMonth, getNextMonth, getPreviousMonth, getStartOfDay, incrementDate, isDate, isDateTime, ISODateTimeToDate, isToday, sameDate, } from './date';
3
3
  export { displayItemName, displayItemFullname } from './displayers';
4
4
  export { formatDate, formatDateTime, formatTime, formatScan, formatURL, getNowDateZonesISOString, getDateZonesISOString, formatRequestBody, } from './formatters';
5
5
  export { useBinaryImageUri, useBinaryPictureUri, useMetafileUri } from './image';
@@ -16,7 +16,7 @@
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
18
  export { updateAgendaItems } from './agenda';
19
- export { diffDate, getDay, getEndOfDay, getFullDateItems, getMonth, getNextMonth, getPreviousMonth, getStartOfDay, incrementDate, isDate, isDateTime, ISODateTimeToDate, sameDate, } from './date';
19
+ export { diffDate, getDay, getEndOfDay, getFullDateItems, getMonth, getNextMonth, getPreviousMonth, getStartOfDay, incrementDate, isDate, isDateTime, ISODateTimeToDate, isToday, sameDate, } from './date';
20
20
  export { displayItemName, displayItemFullname } from './displayers';
21
21
  export { formatDate, formatDateTime, formatTime, formatScan, formatURL, getNowDateZonesISOString, getDateZonesISOString, formatRequestBody, } from './formatters';
22
22
  export { useBinaryImageUri, useBinaryPictureUri, useMetafileUri } from './image';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EACL,QAAQ,EACR,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,QAAQ,GACT,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,cAAc,CAAC;AAClE,OAAO,EACL,UAAU,EACV,cAAc,EACd,UAAU,EACV,UAAU,EACV,SAAS,EACT,wBAAwB,EACxB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAC,MAAM,QAAQ,CAAC;AACrD,OAAO,EACL,aAAa,EACb,cAAc,EACd,eAAe,EACf,cAAc,EACd,2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AAU,CAAC;AAClB,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAC,MAAM,UAAU,CAAC;AAC7E,OAAO,EAAC,UAAU,EAAE,kBAAkB,EAAC,MAAM,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axelor/aos-mobile-core",
3
- "version": "8.1.2",
3
+ "version": "8.1.3",
4
4
  "author": "Axelor",
5
5
  "license": "AGPL-3.0-only",
6
6
  "publishConfig": {
@@ -24,8 +24,8 @@
24
24
  "license:add": "npx add-copyright-header --generate --dir 'src'"
25
25
  },
26
26
  "dependencies": {
27
- "@axelor/aos-mobile-error": "8.1.2",
28
- "@axelor/aos-mobile-ui": "8.1.2",
27
+ "@axelor/aos-mobile-error": "8.1.3",
28
+ "@axelor/aos-mobile-ui": "8.1.3",
29
29
  "@react-navigation/drawer": "6.6.15",
30
30
  "@react-navigation/native": "6.1.17",
31
31
  "@react-navigation/native-stack": "6.9.26",