@suflon/rnmd-reporting 0.0.2 → 0.0.4
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/App.tsx +2 -2
- package/index.js +3 -0
- package/metro.config.js +31 -0
- package/package.json +4 -3
- package/patches/@suflon+native-ui+0.0.18.patch +1845 -4212
- package/src/index.ts +1 -0
- package/src/modules/ManagementReport/components/AnalyticsChartView.tsx +294 -0
- package/src/modules/ManagementReport/components/CategoryTabs.tsx +85 -0
- package/src/modules/ManagementReport/components/DetailsListingView.tsx +781 -0
- package/src/modules/ManagementReport/components/DoctorFilterDropdown.tsx +157 -0
- package/src/modules/ManagementReport/components/KpiMetricsGrid.tsx +183 -0
- package/src/modules/ManagementReport/components/ManagementFilterModal.tsx +142 -0
- package/src/modules/ManagementReport/components/ManagementReportHeader.tsx +115 -0
- package/src/modules/ManagementReport/components/SubModuleTabs.tsx +58 -0
- package/src/modules/ManagementReport/components/TimeframeDropdown.tsx +162 -0
- package/src/modules/ManagementReport/components/ViewModeSwitcher.tsx +71 -0
- package/src/modules/ManagementReport/index.tsx +202 -0
- package/src/modules/Reporting/component/ReportingDetail.tsx +85 -97
- package/src/modules/Reporting/index.tsx +68 -74
- package/src/navigation/index.tsx +15 -4
- package/src/screens/DevToolsCorner.tsx +43 -8
- package/tailwind.config.js +11 -0
package/App.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import { View } from 'react-native';
|
|
|
3
3
|
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
|
|
4
4
|
import { NavigationContainer } from '@react-navigation/native';
|
|
5
5
|
import { AppNavigation } from './src/navigation';
|
|
6
|
-
import { DevToolsCorner, MOCK_ROLES } from './src/screens/DevToolsCorner';
|
|
6
|
+
import { DevToolsCorner, MOCK_ROLES, navigationRef } from './src/screens/DevToolsCorner';
|
|
7
7
|
import { useLanguageStore } from './src/stores/language.store';
|
|
8
8
|
import { RBACProvider, useAuthStore, getData } from '@suflon/native-ui';
|
|
9
9
|
import './global.css';
|
|
@@ -56,7 +56,7 @@ export default function App() {
|
|
|
56
56
|
{/* iiTop safe area for the standalone demo app so the header doesn't sit under the notch/status bar.
|
|
57
57
|
Inside the library, ConnectionListScreen still uses edges={['bottom']} so the host app isn't double padded. */}
|
|
58
58
|
<SafeAreaView style={{ flex: 1 }} edges={['top']}>
|
|
59
|
-
<NavigationContainer>
|
|
59
|
+
<NavigationContainer ref={navigationRef}>
|
|
60
60
|
<RBACProvider>
|
|
61
61
|
<AppNavigation />
|
|
62
62
|
<DevToolsCorner />
|
package/index.js
CHANGED
package/metro.config.js
CHANGED
|
@@ -31,11 +31,29 @@ function usesLocalSuflonNativeUiCheckout() {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
const singletonPackages = {
|
|
34
|
+
'@react-navigation/native': path.join(appNodeModules, '@react-navigation/native'),
|
|
35
|
+
'@react-navigation/core': path.join(appNodeModules, '@react-navigation/core'),
|
|
36
|
+
'@react-navigation/native-stack': path.join(appNodeModules, '@react-navigation/native-stack'),
|
|
37
|
+
'@react-navigation/elements': path.join(appNodeModules, '@react-navigation/elements'),
|
|
38
|
+
'@react-navigation/routers': path.join(appNodeModules, '@react-navigation/routers'),
|
|
39
|
+
'react-native-safe-area-context': path.join(appNodeModules, 'react-native-safe-area-context'),
|
|
40
|
+
'react-native-screens': path.join(appNodeModules, 'react-native-screens'),
|
|
41
|
+
'react-native-worklets': path.join(appNodeModules, 'react-native-worklets'),
|
|
42
|
+
'react-native-reanimated': path.join(appNodeModules, 'react-native-reanimated'),
|
|
34
43
|
react: path.join(appNodeModules, 'react'),
|
|
35
44
|
'react-native': path.join(appNodeModules, 'react-native'),
|
|
36
45
|
zustand: path.join(appNodeModules, 'zustand'),
|
|
37
46
|
};
|
|
38
47
|
|
|
48
|
+
const workletsPath = path.join(appNodeModules, 'react-native-worklets');
|
|
49
|
+
if (fs.existsSync(workletsPath)) {
|
|
50
|
+
singletonPackages['react-native-worklets'] = workletsPath;
|
|
51
|
+
}
|
|
52
|
+
const reanimatedPath = path.join(appNodeModules, 'react-native-reanimated');
|
|
53
|
+
if (fs.existsSync(reanimatedPath)) {
|
|
54
|
+
singletonPackages['react-native-reanimated'] = reanimatedPath;
|
|
55
|
+
}
|
|
56
|
+
|
|
39
57
|
const schedulerPath = path.join(appNodeModules, 'scheduler');
|
|
40
58
|
if (fs.existsSync(schedulerPath)) {
|
|
41
59
|
singletonPackages['scheduler'] = schedulerPath;
|
|
@@ -150,6 +168,19 @@ const config = {
|
|
|
150
168
|
extraNodeModules: singletonPackages,
|
|
151
169
|
blockList: exclusionList([/[/\\]node_modules[/\\].*\.d\.ts$/]),
|
|
152
170
|
resolveRequest: (context, moduleName, platform) => {
|
|
171
|
+
const matchedSingleton = Object.keys(singletonPackages).find(
|
|
172
|
+
(pkg) => moduleName === pkg || moduleName.startsWith(pkg + '/')
|
|
173
|
+
);
|
|
174
|
+
if (matchedSingleton) {
|
|
175
|
+
return context.resolveRequest(
|
|
176
|
+
Object.assign({}, context, {
|
|
177
|
+
originModulePath: path.join(projectRoot, 'index.js'),
|
|
178
|
+
resolveRequest: null,
|
|
179
|
+
}),
|
|
180
|
+
moduleName,
|
|
181
|
+
platform
|
|
182
|
+
);
|
|
183
|
+
}
|
|
153
184
|
if (moduleName === '@suflon/native-ui') {
|
|
154
185
|
const entry = resolveSuflonNativeUiEntry();
|
|
155
186
|
if (entry) {
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suflon/rnmd-reporting",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git://github.com/WoctorNatives/mdplix_rn_reporting.git"
|
|
8
8
|
},
|
|
9
9
|
"publishConfig": {
|
|
10
|
-
"registry": "https://registry.npmjs.org"
|
|
10
|
+
"registry": "https://registry.npmjs.org",
|
|
11
|
+
"access": "public"
|
|
11
12
|
},
|
|
12
13
|
"main": "src/index.ts",
|
|
13
14
|
"module": "src/index.ts",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"@react-navigation/native": "^7.2.5",
|
|
51
52
|
"@react-navigation/native-stack": "^7.0.0",
|
|
52
53
|
"@react-navigation/stack": "^7.0.0",
|
|
53
|
-
"@suflon/native-ui": "
|
|
54
|
+
"@suflon/native-ui": "file:../Suflon_Native_UI",
|
|
54
55
|
"axios": "^1.7.0",
|
|
55
56
|
"react-hook-form": "^7.76.1",
|
|
56
57
|
"react-native-image-picker": "^8.2.1",
|