@jescon-technologies/react-native-ui-kit 0.0.6 → 0.0.8
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/index.d.ts +2 -66
- package/index.js +1 -66
- package/package.json +1 -1
- package/src/Alerts/AAlert.js +0 -137
- package/src/Alerts/AAlertIOS.js +0 -97
- package/src/Alerts/ABlink.js +0 -40
- package/src/Common/Icons.js +0 -49
- package/src/Common/NetworkServiceCall.js +0 -265
- package/src/CommonStyle/CommonTheme.js +0 -11
- package/src/CommonStyle/ComponentFunctions.js +0 -632
- package/src/CommonStyle/PopupStyle.js +0 -146
- package/src/CommonStyle/commonStyle.js +0 -93
- package/src/CommonStyle/componentStyle.js +0 -545
- package/src/CommonStyle/optionListStyles.js +0 -175
- package/src/Components/ByProductPage.js +0 -200
- package/src/Components/CDropDownListNew.js +0 -153
- package/src/Components/CSupplierList.js +0 -88
- package/src/Components/CVerificationCard.js +0 -2822
- package/src/Components/CustomButton.js +0 -67
- package/src/Components/CustomCard.js +0 -127
- package/src/Components/CustomTextInput.js +0 -47
- package/src/Components/EquipmentPage.js +0 -313
- package/src/Components/FilterInput.Copy.js +0 -723
- package/src/Components/FilterInput.js +0 -569
- package/src/Components/HSubHeading.js +0 -68
- package/src/Components/HeaderCard.js +0 -40
- package/src/Components/MoreOptionsScreen.js +0 -251
- package/src/Components/NonSwipableProductCard.js +0 -226
- package/src/Components/NonSwipableSupplierCard.js +0 -348
- package/src/Components/ProductCard.js +0 -1336
- package/src/Components/QualityProductCard.js +0 -1059
- package/src/Components/RateProductCard.js +0 -1452
- package/src/Components/RawMaterial.js +0 -261
- package/src/Components/SDropDownEdited.js +0 -549
- package/src/Components/SDropDownNew.js +0 -529
- package/src/Components/SHelpDescription.js +0 -147
- package/src/Components/STextInputNew.js +0 -510
- package/src/Components/SearchProductCard.js +0 -470
- package/src/Components/StageByProduct.js +0 -199
- package/src/Components/SupplierCard.js +0 -243
- package/src/Components/SupplierInvoiceCard.js +0 -405
- package/src/Components/SwipableSupplierCard.js +0 -136
- package/src/Components/TagTemplate.js +0 -74
- package/src/Components/WrappedComponent.js +0 -25
- package/src/Custom/CBooking.js +0 -944
- package/src/Custom/CBookingPostpone.js +0 -1822
- package/src/Custom/CCalendar.js +0 -560
- package/src/Custom/CCard.js +0 -880
- package/src/Custom/CDetailCard.js +0 -205
- package/src/Custom/CHelpImage.js +0 -52
- package/src/Custom/CReport.js +0 -569
- package/src/Custom/CScrollView.js +0 -73
- package/src/Custom/CSignature.js +0 -112
- package/src/Custom/CSliderMenu.js +0 -339
- package/src/Custom/CSupplierCard.js +0 -99
- package/src/Custom/CTemplateCard.js +0 -438
- package/src/Custom/CTokenAllocation.js +0 -1402
- package/src/Custom/CTokenListOverlay.js +0 -122
- package/src/Custom/CWardStatus.js +0 -444
- package/src/Custom/Charts/CBarChart.js +0 -218
- package/src/Custom/Charts/CDashBoardList.js +0 -133
- package/src/Custom/Charts/CDashBoardTable.js +0 -172
- package/src/Custom/Charts/CLineChart.js +0 -193
- package/src/Custom/Charts/CPieChart.js +0 -186
- package/src/Custom/Loader.js +0 -182
- package/src/Custom/OUserView.js +0 -1121
- package/src/Custom/PreviewDosage.js +0 -115
- package/src/Custom/SearchLoader.js +0 -32
- package/src/Custom/TableComponent/CActivityTable.js +0 -707
- package/src/Custom/TableComponent/CMoreButtonTable.js +0 -197
- package/src/Custom/TableComponent/CTable.js +0 -185
- package/src/Custom/TableComponent/CTextBody.js +0 -40
- package/src/Custom/TableComponent/CTextHeader.js +0 -17
- package/src/Custom/TableComponent/PreviewPrescriptionNew.js +0 -1011
- package/src/Custom/TableComponent/SDropdownTable.js +0 -491
- package/src/Custom/TableComponent/TagTable.js +0 -1200
- package/src/CustomComponents/CAddColumn.js +0 -140
- package/src/CustomComponents/CAssessmentDelete.js +0 -307
- package/src/CustomComponents/CAwesomeButton.js +0 -83
- package/src/CustomComponents/CAwesomeMoreButton.js +0 -54
- package/src/CustomComponents/CBackHandler.js +0 -273
- package/src/CustomComponents/CCalendar.js +0 -243
- package/src/CustomComponents/CCommentOverlay.js +0 -202
- package/src/CustomComponents/CComments.js +0 -162
- package/src/CustomComponents/CContainerView.js +0 -24
- package/src/CustomComponents/CCustomTextInput.js +0 -336
- package/src/CustomComponents/CDetailView.js +0 -40
- package/src/CustomComponents/CDropDownList.js +0 -153
- package/src/CustomComponents/CDropdownSelect.js +0 -555
- package/src/CustomComponents/CFooterView.js +0 -42
- package/src/CustomComponents/CImagePickerSave.js +0 -316
- package/src/CustomComponents/CModalOverlay.js +0 -91
- package/src/CustomComponents/CNetworkStatus.js +0 -327
- package/src/CustomComponents/CNotesInstructions.js +0 -1000
- package/src/CustomComponents/COverlay.js +0 -81
- package/src/CustomComponents/CRemarks.js +0 -176
- package/src/CustomComponents/CRowAdd.js +0 -143
- package/src/CustomComponents/CSummaryDropDown.js +0 -327
- package/src/CustomComponents/CText.js +0 -9
- package/src/CustomComponents/CVectorIcon.js +0 -34
- package/src/CustomComponents/HtmlContentViewer.js +0 -65
- package/src/CustomComponents/PdfContentViewer.js +0 -90
- package/src/CustomComponents/SDropDownDosage.js +0 -1087
- package/src/CustomComponents/SwipableProductCard.js +0 -246
- package/src/CustomComponents/SwipableProductImageCard.js +0 -254
- package/src/CustomComponents/WorkOrderDetails.js +0 -1216
- package/src/CustomComponents/WorkOrderDetailsPage.js +0 -1213
- package/src/HOC/ConfirmOverlay.js +0 -192
- package/src/HOC/HHeading.js +0 -70
- package/src/HOC/HMoreButton.js +0 -88
- package/src/HOC/HNatureHeading.js +0 -402
- package/src/HOC/HOCIcons.js +0 -80
- package/src/HOC/HOverlayCentered.js +0 -140
- package/src/HOC/HShadowButton.js +0 -45
- package/src/HOC/HShadowCountButton.js +0 -82
- package/src/HOC/OptionOverlay.js +0 -48
- package/src/Json/Chart.json +0 -818
- package/src/Json/Consultation.json +0 -622
- package/src/Json/CreditBill.json +0 -490
- package/src/Json/Dropdown.json +0 -216
- package/src/Json/DropdownConsultation.json +0 -228
- package/src/Json/DynamicReports.json +0 -623
- package/src/Json/Footer.json +0 -79
- package/src/Media/AudioScreen.js +0 -342
- package/src/Media/BarcodeScan.js +0 -145
- package/src/Media/CAudioPlay.js +0 -228
- package/src/Media/CCaptureImageWithoutEdit.js +0 -330
- package/src/Media/CImageGallery.js +0 -289
- package/src/Media/CImageZoom.js +0 -82
- package/src/Media/CSingleImage.js +0 -391
- package/src/Media/CSketchCanvas.js +0 -76
- package/src/Media/CVideoPlay.js +0 -31
- package/src/Media/DocumentScreen.js +0 -362
- package/src/Media/DrawingScreen.js +0 -578
- package/src/Media/ImageScreen.js +0 -309
- package/src/Media/RecordAudio.js +0 -250
- package/src/Media/RecordVideo.js +0 -223
- package/src/Media/VideoScreen.js +0 -378
- package/src/Navigation/PageNavigation.js +0 -224
- package/src/Navigation/useFocusEffect.js +0 -2
- package/src/Navigation/useFocusEffect.native.js +0 -1
- package/src/Navigation/useFocusEffect.web.js +0 -1
- package/src/Navigation/useIsFocused.js +0 -1
- package/src/Navigation/useIsFocused.native.js +0 -1
- package/src/Navigation/useIsFocused.web.js +0 -1
- package/src/Navigation/useNavigation.js +0 -2
- package/src/Navigation/useNavigation.native.js +0 -1
- package/src/Navigation/useNavigation.web.js +0 -1
- package/src/Screens/CMedications.js +0 -528
- package/src/Screens/CWebViewGallery.js +0 -203
- package/src/Screens/ChartScan.js +0 -279
- package/src/Screens/ChartScreenNew.js +0 -1579
- package/src/Screens/Consultation.js +0 -1500
- package/src/Screens/Dashboard.js +0 -778
- package/src/Screens/FileExplorer.js +0 -288
- package/src/Screens/Footer.js +0 -340
- package/src/Screens/ForgotPassword.js +0 -288
- package/src/Screens/HeaderBlock.js +0 -353
- package/src/Screens/Login.js +0 -328
- package/src/Screens/Notification.js +0 -149
- package/src/Screens/OcrScreen.js +0 -20
- package/src/Screens/PdfPreview.js +0 -507
- package/src/Screens/RegistrationDetails.js +0 -467
- package/src/Screens/SearchScreen.js +0 -582
- package/src/Screens/Splash.js +0 -788
- package/src/Screens/SwipeLeftView.js +0 -1867
- package/src/StaticComponents/SAlphabet.js +0 -47
- package/src/StaticComponents/SCheckBox.js +0 -42
- package/src/StaticComponents/SDatePicker.js +0 -208
- package/src/StaticComponents/SDatePickerLabel.js +0 -253
- package/src/StaticComponents/SDatePickerNew.js +0 -258
- package/src/StaticComponents/SDateTimePickerNew.js +0 -381
- package/src/StaticComponents/SDropDownGenerate.js +0 -450
- package/src/StaticComponents/SDropDownHoc.js +0 -636
- package/src/StaticComponents/SDropDownIcon.js +0 -500
- package/src/StaticComponents/SMenuBox.js +0 -131
- package/src/StaticComponents/SOverlay.js +0 -177
- package/src/StaticComponents/SOverlayTextInput.js +0 -109
- package/src/StaticComponents/SSearch.js +0 -438
- package/src/StaticComponents/SSearchBar.js +0 -53
- package/src/StaticComponents/SSpeedDial.js +0 -303
- package/src/StaticComponents/STextInput.js +0 -289
- package/src/StaticComponents/STextInputProps.js +0 -36
- package/src/StaticComponents/STimePicker.js +0 -171
- package/src/StaticComponents/STimingDropDownNew.js +0 -1585
- package/src/StaticComponents/STimingSwitch.js +0 -34
- package/src/layout/CContainerView.js +0 -21
- package/src/layout/CDetailView.js +0 -81
- package/src/layout/HeaderBlock.js +0 -353
- package/src/layout/INVLoginLayout.js +0 -657
- package/src/layout/Loader.js +0 -176
package/src/Custom/CSignature.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Dimensions, Text, View, PermissionsAndroid, Platform } from 'react-native';
|
|
3
|
-
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
4
|
-
import ReactNativeBlobUtil from 'rn-fetch-blob';
|
|
5
|
-
// import RNSketchCanvas from '@terrylinla/react-native-sketch-canvas';
|
|
6
|
-
//import PhotoEditor from 'react-native-photo-editor';
|
|
7
|
-
import DocumentPicker from 'react-native-document-picker';
|
|
8
|
-
import { normalize } from '../CommonStyle/componentStyle';
|
|
9
|
-
import { isPermitted, notifyMessage } from '../CommonStyle/ComponentFunctions';
|
|
10
|
-
import { Global } from '../../../../../src/Common/Global';
|
|
11
|
-
|
|
12
|
-
export default function CSignature(props) {
|
|
13
|
-
|
|
14
|
-
function fnIcon(text, icon, color) {
|
|
15
|
-
return (
|
|
16
|
-
<View style={{ width: Dimensions.get('window').width * 0.22, backgroundColor: Global.AppTheme.primary_color, marginHorizontal: normalize(6), marginVertical: normalize(5), flexDirection: 'row', alignItems: 'center', borderWidth: 1, borderRadius: 10, paddingHorizontal: normalize(5), justifyContent: 'center' }}>
|
|
17
|
-
<View style={{ flexDirection: 'row', alignItems: 'center', justifyContent: 'center' }}>
|
|
18
|
-
<MaterialCommunityIcons
|
|
19
|
-
name={icon}
|
|
20
|
-
size={normalize(22)}
|
|
21
|
-
color={color}
|
|
22
|
-
/>
|
|
23
|
-
<Text
|
|
24
|
-
adjustsFontSizeToFit
|
|
25
|
-
style={{ marginHorizontal: normalize(5), color: '#ffffff', fontSize: normalize(10), fontWeight: 'bold', textAlign: 'center' }}
|
|
26
|
-
>
|
|
27
|
-
{text}
|
|
28
|
-
</Text>
|
|
29
|
-
</View>
|
|
30
|
-
</View>
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const getResolvedPath = async (uri, filen) => {
|
|
37
|
-
const fileBase64 = await ReactNativeBlobUtil.fs.readFile(uri, 'base64');
|
|
38
|
-
const relativePath = ReactNativeBlobUtil.fs.dirs.CacheDir;
|
|
39
|
-
const fileName = `${filen}`;
|
|
40
|
-
const path = `${relativePath}/${fileName}`;
|
|
41
|
-
await ReactNativeBlobUtil.fs.writeFile(path, fileBase64, 'base64');
|
|
42
|
-
return { relativePath, fileName, path };
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const fnUploadImage = async () => {
|
|
46
|
-
|
|
47
|
-
if (await isPermitted()) {
|
|
48
|
-
try {
|
|
49
|
-
const fileDetails = await DocumentPicker.pick({ type: [DocumentPicker.types.images] });
|
|
50
|
-
const { relativePath, fileName, path } = await getResolvedPath(fileDetails[0].uri, fileDetails[0].name);
|
|
51
|
-
let dataset = { fileid: 1, uri: 'file://' + path, filename: fileDetails[0].name + Date(), uritype: false };
|
|
52
|
-
fnEditor(dataset, path);
|
|
53
|
-
} catch (error) {
|
|
54
|
-
notifyMessage(DocumentPicker.isCancel(error) ? 'Canceled' : 'Unknown Error: ', 2);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const SaveDrawing = async (success, pathfile) => {
|
|
61
|
-
|
|
62
|
-
console.log('gygyyy');
|
|
63
|
-
|
|
64
|
-
if (await isPermitted()) {
|
|
65
|
-
try {
|
|
66
|
-
console.log('SaveDrawing inside');
|
|
67
|
-
var pathname = pathfile;
|
|
68
|
-
var NewPathName = pathname.slice(-12);
|
|
69
|
-
const { relativePath, fileName, path } = await getResolvedPath(pathfile, NewPathName);
|
|
70
|
-
let dataset = { fileid: 1, uri: 'file://' + path, filename: NewPathName + Date(), uritype: false };
|
|
71
|
-
fnEditor(dataset, path);
|
|
72
|
-
} catch (error) {
|
|
73
|
-
console.log('SaveDrawing outside');
|
|
74
|
-
notifyMessage(DocumentPicker.isCancel(error) ? 'Canceled' : 'Unknown Error: ' + JSON.stringify(error), 2);
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
function fnEditor(dataset, path) {
|
|
81
|
-
// Platform.OS != "ios" ?
|
|
82
|
-
// PhotoEditor.Edit({
|
|
83
|
-
// path: path, hiddenControls: ['sticker', 'save'],
|
|
84
|
-
// onDone: () => { props.onsave(dataset) }
|
|
85
|
-
// }) : props.onsave(dataset)
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<RNSketchCanvas
|
|
90
|
-
containerStyle={{ backgroundColor: '#ffffff71', flex: 1, borderWidth: 1, borderColor: '#a5a5a5', borderRadius: 10, marginHorizontal: normalize(5), marginVertical: normalize(5) }}
|
|
91
|
-
canvasStyle={{ backgroundColor: '#ffffff00', flex: 1 }}
|
|
92
|
-
defaultStrokeIndex={0}
|
|
93
|
-
defaultStrokeWidth={3}
|
|
94
|
-
closeComponent={fnIcon('Image', 'image', 'white')}
|
|
95
|
-
undoComponent={fnIcon('Undo', 'undo', 'white')}
|
|
96
|
-
clearComponent={fnIcon('Clear all', 'eraser', 'white')}
|
|
97
|
-
saveComponent={fnIcon('Save', 'content-save', 'white')}
|
|
98
|
-
onClosePressed={() => { fnUploadImage(); }}
|
|
99
|
-
savePreference={() => {
|
|
100
|
-
return {
|
|
101
|
-
folder: ReactNativeBlobUtil.fs.dirs.CacheDir,
|
|
102
|
-
filename: String(Math.ceil(Math.random() * 100000000)),
|
|
103
|
-
transparent: false,
|
|
104
|
-
imageType: 'png',
|
|
105
|
-
};
|
|
106
|
-
}}
|
|
107
|
-
onSketchSaved={(success, pathfile) => { SaveDrawing(success, pathfile); }}
|
|
108
|
-
onPathsChange={(pathsCount) => { }}
|
|
109
|
-
/>
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
}
|
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import React, { memo, useState, useContext } from 'react';
|
|
2
|
-
import { Text, View, Image, TouchableOpacity, ScrollView, StyleSheet, Linking, Dimensions, Platform } from 'react-native';
|
|
3
|
-
import styles, {
|
|
4
|
-
getOptionContainerStyle,
|
|
5
|
-
getOptionchildrenWrapperStyle,
|
|
6
|
-
getOptionHeaderContainer,
|
|
7
|
-
}
|
|
8
|
-
from '../CommonStyle/optionListStyles';
|
|
9
|
-
import { colors, fontWeight } from '../CommonStyle/commonStyle';
|
|
10
|
-
import ComponentStyles, { normalize } from '../CommonStyle/componentStyle';
|
|
11
|
-
import RNExitApp from 'react-native-exit-app';
|
|
12
|
-
//import { useNavigation } from '../Navigation/useNavigation';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import { Global } from '../../../../../src/Common/Global';
|
|
16
|
-
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
|
|
17
|
-
import { Icons } from '@jescon-technologies/react-native-ui-kit';;
|
|
18
|
-
import { APIURL, imageURL } from '../../../../../src/Common/apiConstants';
|
|
19
|
-
import CNetworkStatus from '../CustomComponents/CNetworkStatus';
|
|
20
|
-
import { isNU } from '../CommonStyle/ComponentFunctions';
|
|
21
|
-
import { useNavigation } from '../Navigation/useNavigation';
|
|
22
|
-
|
|
23
|
-
import CModalOverlay from '../CustomComponents/CModalOverlay';
|
|
24
|
-
import SDropDownNew from '../Components/SDropDownNew';
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function CSliderMenu(props) {
|
|
28
|
-
|
|
29
|
-
const isAndroid = Platform.OS === 'android';
|
|
30
|
-
|
|
31
|
-
const navigation = useNavigation();
|
|
32
|
-
const [refresh, setRefresh] = useState(0);
|
|
33
|
-
const { width, height } = Dimensions.get('window');
|
|
34
|
-
//const navigation = useNavigation();
|
|
35
|
-
var optionData = [
|
|
36
|
-
{ optionname: 'Home', key: 1, iconname: 'home' },
|
|
37
|
-
// { optionname: 'Signature', key: 6, iconname: "pen" },
|
|
38
|
-
{ optionname: 'Change Password', key: 2, iconname: 'key' },
|
|
39
|
-
// { optionname: 'Video Call', key: 3, iconname: "video" },
|
|
40
|
-
// { optionname: 'Create Notifcations', key: 9, iconname: "bell" },
|
|
41
|
-
// { optionname: 'Token Status', key: 12, iconname: "coins" },
|
|
42
|
-
// { optionname: 'Help', key: 4, iconname: "question-circle" },
|
|
43
|
-
// { optionname: 'Log', key: 10, iconname: "file" },
|
|
44
|
-
{ optionname: 'Exit', key: 11, iconname: 'power-off' },
|
|
45
|
-
// { optionname: 'Report', key: 8, iconname: "file" },
|
|
46
|
-
// { optionname: 'Medications', key: 5, iconname: "file-prescription" },
|
|
47
|
-
|
|
48
|
-
];
|
|
49
|
-
const OptionSelectNav = (data) => {
|
|
50
|
-
switch (data.key) {
|
|
51
|
-
case 1: navigation.navigate('Dashboard');
|
|
52
|
-
break;
|
|
53
|
-
case 2: navigation.navigate('ForgotPassword');
|
|
54
|
-
break;
|
|
55
|
-
case 4: navigation.navigate('HelpScreen');
|
|
56
|
-
break;
|
|
57
|
-
case 5:
|
|
58
|
-
Global.PatientDetails = null;
|
|
59
|
-
navigation.navigate('Medications');
|
|
60
|
-
// navigation.navigate('CalendarMedications')
|
|
61
|
-
break;
|
|
62
|
-
case 6:
|
|
63
|
-
Global.PatientDetails = null;
|
|
64
|
-
navigation.navigate('CSignatureScreen');
|
|
65
|
-
break;
|
|
66
|
-
case 7: Global.PatientDetails = null, navigation.navigate('MedicationsIP');
|
|
67
|
-
break;
|
|
68
|
-
case 8: Global.PatientDetails = null, navigation.navigate('Report');
|
|
69
|
-
break;
|
|
70
|
-
case 9: navigation.navigate('Admin', { type: 1 });
|
|
71
|
-
break;
|
|
72
|
-
case 10: navigation.navigate('Log');
|
|
73
|
-
break;
|
|
74
|
-
case 11: RNExitApp.exitApp();
|
|
75
|
-
break;
|
|
76
|
-
case 12: navigation.navigate('Admin', { type: 2 });
|
|
77
|
-
break;
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
props.visibility(false);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
function getContainerStyle() {
|
|
84
|
-
return (
|
|
85
|
-
{
|
|
86
|
-
getOptionContainerStyle,
|
|
87
|
-
...ComponentStyles.View_col_flexend,
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const getChildContainer = () => {
|
|
93
|
-
return (
|
|
94
|
-
{
|
|
95
|
-
backgroundColor: '#fff', width: width * 0.75, flex: 1,
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
};
|
|
99
|
-
const getOptionBlock = () => {
|
|
100
|
-
return (
|
|
101
|
-
{
|
|
102
|
-
margin: width * 0.03,
|
|
103
|
-
flex: 1,
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
};
|
|
107
|
-
const getOptionSelectionContainer = () => {
|
|
108
|
-
return (
|
|
109
|
-
{
|
|
110
|
-
flexDirection: 'row',
|
|
111
|
-
flex: 1,
|
|
112
|
-
marginTop: height * 0.01,
|
|
113
|
-
marginBottom: height * 0.01,
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
};
|
|
117
|
-
return (
|
|
118
|
-
<CModalOverlay
|
|
119
|
-
visible={props.isShow}
|
|
120
|
-
onClose={() => props.visibility(false)}
|
|
121
|
-
closeOnTouchOutside
|
|
122
|
-
animationType="fadeInRight"
|
|
123
|
-
// containerStyle={[getOptionContainerStyle(), ComponentStyles.View_col_flexend]}
|
|
124
|
-
containerStyle={{
|
|
125
|
-
position: 'absolute',
|
|
126
|
-
left: 0,
|
|
127
|
-
right: 0,
|
|
128
|
-
elevation: 999,
|
|
129
|
-
alignItems: 'flex-start',
|
|
130
|
-
margin: 0,
|
|
131
|
-
zIndex: 10000,
|
|
132
|
-
backgroundColor: 'rgba(0, 0, 0, 0.10)',
|
|
133
|
-
justifyContent: 'flex-start',
|
|
134
|
-
height: height,
|
|
135
|
-
flexDirection: 'column',
|
|
136
|
-
justifyContent: 'flex-end',
|
|
137
|
-
alignContent: 'flex-end',
|
|
138
|
-
alignItems: 'flex-end',
|
|
139
|
-
}}
|
|
140
|
-
animationDuration={900}
|
|
141
|
-
childrenWrapperStyle={{
|
|
142
|
-
backgroundColor: Global.AppTheme.primary_color,
|
|
143
|
-
width: width * 0.75,
|
|
144
|
-
height: height,
|
|
145
|
-
// margin: -20,
|
|
146
|
-
}
|
|
147
|
-
// getOptionchildrenWrapperStyle(width * 0.75, height)
|
|
148
|
-
}
|
|
149
|
-
>
|
|
150
|
-
<View style={{
|
|
151
|
-
backgroundColor: '#fff', width: width * 0.75, flex: 1,
|
|
152
|
-
borderWidth: 0,
|
|
153
|
-
}}>
|
|
154
|
-
<View style={{ backgroundColor: Global.AppTheme.primary_color }}>
|
|
155
|
-
<View style={{
|
|
156
|
-
// backgroundColor: colors.color_Header,
|
|
157
|
-
flexDirection: 'row',
|
|
158
|
-
// height: height * 0.10,
|
|
159
|
-
alignItems: 'flex-start',
|
|
160
|
-
borderWidth: 0,
|
|
161
|
-
}}>
|
|
162
|
-
<View style={{
|
|
163
|
-
justifyContent: 'center',
|
|
164
|
-
borderWidth: 0,
|
|
165
|
-
}}>
|
|
166
|
-
<Image style={{ borderWidth: 0.5, margin: normalize(4), borderColor: 'white', width: normalize(50), height: normalize(50), borderRadius: 1000, resizeMode: 'contain' }}
|
|
167
|
-
source={{
|
|
168
|
-
uri: Global.userData.photo && Global.userData.photo != 'hisfiles/user/profileimage/user-blue.png' ? imageURL + Global.userData.photo : 'https://i.ibb.co/NW42Gjj/user.png',
|
|
169
|
-
}}
|
|
170
|
-
/>
|
|
171
|
-
</View>
|
|
172
|
-
<View style={{
|
|
173
|
-
flex: 1,
|
|
174
|
-
justifyContent: 'center',
|
|
175
|
-
borderWidth: 0,
|
|
176
|
-
}}>
|
|
177
|
-
<Text style={styles.usernameStyle}>
|
|
178
|
-
{Global.userData.username}
|
|
179
|
-
</Text>
|
|
180
|
-
<Text style={styles.departmeNameStyle}>
|
|
181
|
-
{Global.userData.designation} - {Global.userData.department}
|
|
182
|
-
</Text>
|
|
183
|
-
<Text style={styles.departmeNameStyle}>
|
|
184
|
-
{Global.userData.qualification}
|
|
185
|
-
</Text>
|
|
186
|
-
</View>
|
|
187
|
-
<TouchableOpacity style={{ borderWidth: 0, marginRight: isAndroid ? normalize(15) : normalize(25) }}
|
|
188
|
-
onPress={() => { props.visibility(false), window.close(); }}
|
|
189
|
-
>
|
|
190
|
-
<Icons.FontAwesome name={'power-off'} color={'red'} size={normalize(17)} style={{ backgroundColor: '#fff', padding: normalize(7), margin: normalize(4), borderRadius: 60 }} />
|
|
191
|
-
</TouchableOpacity>
|
|
192
|
-
|
|
193
|
-
</View>
|
|
194
|
-
|
|
195
|
-
<View style={{ width: '100%' }}>
|
|
196
|
-
<View style={{ width: '50%' }}>
|
|
197
|
-
<SDropDownNew
|
|
198
|
-
// displaytext={'Payment Type'}
|
|
199
|
-
// custompositiontextviewstyle={{
|
|
200
|
-
// position: 'absolute',
|
|
201
|
-
// top: normalize(-5),
|
|
202
|
-
// left: normalize(7),
|
|
203
|
-
// flexDirection: 'row',
|
|
204
|
-
// alignItems: 'center',
|
|
205
|
-
// backgroundColor: 'white',
|
|
206
|
-
// }}
|
|
207
|
-
// custompositiontextstyle={{
|
|
208
|
-
// color: Global.AppTheme.primary_color,
|
|
209
|
-
// fontSize: normalize(8),
|
|
210
|
-
// lineHeight: normalize(8),
|
|
211
|
-
// textAlign: 'left',
|
|
212
|
-
// fontWeight: 'normal'
|
|
213
|
-
// }}
|
|
214
|
-
placeholder={'WARD'}
|
|
215
|
-
overlay={false}
|
|
216
|
-
setoverlay={(val) => {
|
|
217
|
-
|
|
218
|
-
}}
|
|
219
|
-
heading={'SELECT PAYMENT TYPE'}
|
|
220
|
-
fastselection={true}
|
|
221
|
-
multiselect={false}
|
|
222
|
-
buttonstyle={{
|
|
223
|
-
borderWidth: 0.5,
|
|
224
|
-
borderColor: 'lightgrey',
|
|
225
|
-
borderRadius: 5,
|
|
226
|
-
alignItems: 'center',
|
|
227
|
-
justifyContent: 'flex-start',
|
|
228
|
-
height: normalize(30),
|
|
229
|
-
flexDirection: 'row',
|
|
230
|
-
backgroundColor: 'white',
|
|
231
|
-
elevation: 3,
|
|
232
|
-
width: '100%',
|
|
233
|
-
margin: '1%',
|
|
234
|
-
// marginVertical: '4%'
|
|
235
|
-
}}
|
|
236
|
-
textview={true}
|
|
237
|
-
textstyle={{
|
|
238
|
-
width: '80%',
|
|
239
|
-
fontSize: normalize(12),
|
|
240
|
-
fontWeight: isNU(Global.userData) && isNU(Global.userData.wardname) ? 'bold' : 'normal',
|
|
241
|
-
color: isNU(Global.userData) && isNU(Global.userData.wardname) ? '#000000' : 'lightgrey',
|
|
242
|
-
alignItems: 'center',
|
|
243
|
-
textAlign: 'left',
|
|
244
|
-
justifyContent: 'center',
|
|
245
|
-
}}
|
|
246
|
-
icon={{ 'icongroup': 5, 'name': 'bed', 'size': normalize(15) }}
|
|
247
|
-
iconstyle={{
|
|
248
|
-
borderWidth: 0,
|
|
249
|
-
marginHorizontal: normalize(7),
|
|
250
|
-
color: Global.AppTheme.primary_color,
|
|
251
|
-
}}
|
|
252
|
-
data={isNU(Global.userData) && isNU(Global.userData.wardname) ? Global.userData.wardname : ''}
|
|
253
|
-
overlaystyle={{
|
|
254
|
-
borderRadius: 20,
|
|
255
|
-
height: Dimensions.get('window').height * 0.6,
|
|
256
|
-
borderWidth: 5,
|
|
257
|
-
borderColor: '#4497ea',
|
|
258
|
-
}}
|
|
259
|
-
dropdownapi={APIURL + 'insuranceadvanceget/emrcommonget/rnladropdown 53'}
|
|
260
|
-
// dropdownapi={APIURL + 'insuranceadvanceget/emrcommonget/rnladropdown 36'}
|
|
261
|
-
natureoption={false}
|
|
262
|
-
arraycallback={value => {
|
|
263
|
-
Global.userData.wardname = value.displayvalue;
|
|
264
|
-
Global.userData.wardcode = value.datavalue;
|
|
265
|
-
setRefresh(refresh + 1);
|
|
266
|
-
// updateTwo('paymenttype', value.datavalue, 'paymenttypename', value.displayvalue)
|
|
267
|
-
}}
|
|
268
|
-
/>
|
|
269
|
-
</View>
|
|
270
|
-
</View>
|
|
271
|
-
</View>
|
|
272
|
-
{/**Header Block ends Here */}
|
|
273
|
-
{/**Options Block Starts Here */}
|
|
274
|
-
{/* <View style={{ flex: 1, width: '100%' }}> */}
|
|
275
|
-
{/* <ScrollView style={{ borderWidth: 1,flex:1 }}> */}
|
|
276
|
-
<View style={{ borderWidth: 0, flex: 1 }}>
|
|
277
|
-
{optionData.map((block, i) => {
|
|
278
|
-
return (
|
|
279
|
-
<View key={i} style={{ borderWidth: 0 }}>
|
|
280
|
-
<TouchableOpacity
|
|
281
|
-
onPress={() => OptionSelectNav(block)}
|
|
282
|
-
// style={getOptionSelectionContainer()}
|
|
283
|
-
style={{ flexDirection: 'row', margin: normalize(5) }}
|
|
284
|
-
>
|
|
285
|
-
<View style={layoutstyles.option_icon_container}>
|
|
286
|
-
<FontAwesome5 name={block.iconname} color={Global.AppTheme.primary_color} size={25} />
|
|
287
|
-
</View>
|
|
288
|
-
<View
|
|
289
|
-
style={layoutstyles.option_text_container}
|
|
290
|
-
>
|
|
291
|
-
<Text
|
|
292
|
-
numberOfLines={2}
|
|
293
|
-
style={{ color: Global.AppTheme.primary_color, fontWeight: 'bold' }}>
|
|
294
|
-
{block.optionname}
|
|
295
|
-
</Text>
|
|
296
|
-
</View>
|
|
297
|
-
</TouchableOpacity>
|
|
298
|
-
</View>
|
|
299
|
-
);
|
|
300
|
-
})}
|
|
301
|
-
</View>
|
|
302
|
-
{/* </ScrollView> */}
|
|
303
|
-
|
|
304
|
-
{/* </View> */}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
<View style={{ borderWidth: 0, flex: 1, backgroundColor: '#fff', bottom: normalize(-15) }}>
|
|
308
|
-
<Image style={{ flex: 1, marginTop: normalize(0), resizeMode: 'contain' }}
|
|
309
|
-
// source={{ uri: 'https://keralaclassify.b-cdn.net/wp-content/uploads/2020/05/amala-1-kerala-classify-preset.jpg' }}
|
|
310
|
-
source={{ uri: 'https://us.123rf.com/450wm/elnurss/elnurss1809/elnurss180902306/108495744-medical-care-vector-icon.jpg?ver=6' }}
|
|
311
|
-
/>
|
|
312
|
-
</View>
|
|
313
|
-
</View>
|
|
314
|
-
</CModalOverlay>
|
|
315
|
-
);
|
|
316
|
-
}
|
|
317
|
-
const layoutstyles = StyleSheet.create({
|
|
318
|
-
option_text: {
|
|
319
|
-
fontSize: normalize(13),
|
|
320
|
-
fontWeight: fontWeight.fontWeight_900,
|
|
321
|
-
color: colors.color_componentText,
|
|
322
|
-
},
|
|
323
|
-
option_text_container: {
|
|
324
|
-
justifyContent: 'center',
|
|
325
|
-
flex: 6,
|
|
326
|
-
},
|
|
327
|
-
option_icon_container: {
|
|
328
|
-
width: 50,
|
|
329
|
-
paddingLeft: 5,
|
|
330
|
-
alignItems: 'baseline',
|
|
331
|
-
justifyContent: 'center',
|
|
332
|
-
},
|
|
333
|
-
option_icon_style: {
|
|
334
|
-
width: 35,
|
|
335
|
-
height: 35,
|
|
336
|
-
resizeMode: 'contain',
|
|
337
|
-
},
|
|
338
|
-
});
|
|
339
|
-
export default memo(CSliderMenu);
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View, Text, TouchableOpacity } from 'react-native';
|
|
3
|
-
import { normalize } from '../CommonStyle/componentStyle';
|
|
4
|
-
import { Icons } from '@jescon-technologies/react-native-ui-kit';;
|
|
5
|
-
|
|
6
|
-
const CSupplierCard = ({ data }) => {
|
|
7
|
-
return (
|
|
8
|
-
<View
|
|
9
|
-
style={{
|
|
10
|
-
backgroundColor: '#fff',
|
|
11
|
-
padding: 10,
|
|
12
|
-
borderRadius: 10,
|
|
13
|
-
shadowColor: '#000',
|
|
14
|
-
shadowOpacity: 0.1,
|
|
15
|
-
shadowRadius: 5,
|
|
16
|
-
elevation: 3,
|
|
17
|
-
marginVertical: 5,
|
|
18
|
-
marginHorizontal: 1,
|
|
19
|
-
borderLeftWidth: 3,
|
|
20
|
-
borderLeftColor: '#094485',
|
|
21
|
-
flexDirection: 'row',
|
|
22
|
-
justifyContent: 'space-between',
|
|
23
|
-
}}
|
|
24
|
-
>
|
|
25
|
-
<View style={{ width: '75%' }}>
|
|
26
|
-
{/* Invoice No */}
|
|
27
|
-
{data?.invoiceno && (
|
|
28
|
-
<View style={{ flexDirection: 'row', alignItems: 'center', marginBottom: normalize(5) }}>
|
|
29
|
-
<Icons.FontAwesome5 name="file-invoice" size={normalize(12)} color="#094485" />
|
|
30
|
-
<Text style={{ fontSize: 14, fontWeight: 'bold', color: '#000', marginLeft: normalize(5) }}>
|
|
31
|
-
{data.invoiceno}
|
|
32
|
-
</Text>
|
|
33
|
-
</View>
|
|
34
|
-
)}
|
|
35
|
-
|
|
36
|
-
{/* Email */}
|
|
37
|
-
{/* {data?.email && (
|
|
38
|
-
<View style={{ flexDirection: 'row', alignItems: 'center', marginBottom: normalize(5) }}>
|
|
39
|
-
<Icons.FontAwesome5 name="envelope" size={normalize(12)} color="#094485" />
|
|
40
|
-
<Text style={{ fontSize: 14, fontWeight: '500', color: '#333', marginLeft: normalize(5) }}>
|
|
41
|
-
{data.email}
|
|
42
|
-
</Text>
|
|
43
|
-
</View>
|
|
44
|
-
)} */}
|
|
45
|
-
|
|
46
|
-
{/* Company Address */}
|
|
47
|
-
{data?.companyaddress && (
|
|
48
|
-
<View style={{ flexDirection: 'row', alignItems: 'flex-start', marginBottom: normalize(5) }}>
|
|
49
|
-
<Icons.FontAwesome5 name="map-marker-alt" size={normalize(12)} color="#094485" />
|
|
50
|
-
<Text style={{ fontSize: 12, fontWeight: '500', color: '#333', marginLeft: normalize(5), maxWidth: '100%' }}>
|
|
51
|
-
{data.companyaddress}
|
|
52
|
-
</Text>
|
|
53
|
-
</View>
|
|
54
|
-
)}
|
|
55
|
-
|
|
56
|
-
{/* GST & Phone */}
|
|
57
|
-
{/* {data?.gstno && (
|
|
58
|
-
<View style={{ flexDirection: 'row', alignItems: 'center', marginBottom: normalize(5) }}>
|
|
59
|
-
<Icons.FontAwesome5 name="gavel" size={normalize(12)} color="#094485" />
|
|
60
|
-
<Text style={{ fontSize: 12, fontWeight: '500', color: '#333', marginLeft: normalize(5) }}>
|
|
61
|
-
{data.gstno}
|
|
62
|
-
</Text>
|
|
63
|
-
</View>
|
|
64
|
-
)} */}
|
|
65
|
-
{/* {data?.phoneno && (
|
|
66
|
-
<View style={{ flexDirection: 'row', alignItems: 'center', marginBottom: normalize(5) }}>
|
|
67
|
-
<Icons.FontAwesome5 name="phone" size={normalize(12)} color="#094485" />
|
|
68
|
-
<Text style={{ fontSize: 12, fontWeight: '500', color: '#333', marginLeft: normalize(5) }}>
|
|
69
|
-
{data.phoneno}
|
|
70
|
-
</Text>
|
|
71
|
-
</View>
|
|
72
|
-
)} */}
|
|
73
|
-
</View>
|
|
74
|
-
|
|
75
|
-
{/* Grade Circle */}
|
|
76
|
-
<View>
|
|
77
|
-
{data?.grade && (
|
|
78
|
-
<View
|
|
79
|
-
style={{
|
|
80
|
-
height: 50,
|
|
81
|
-
width: 50,
|
|
82
|
-
backgroundColor: 'lightgrey',
|
|
83
|
-
borderRadius: 30,
|
|
84
|
-
justifyContent: 'center',
|
|
85
|
-
alignItems: 'center',
|
|
86
|
-
}}
|
|
87
|
-
>
|
|
88
|
-
<Text style={{ fontSize: 20, fontWeight: 'bold', color: '#094485' }}>
|
|
89
|
-
{data.grade}
|
|
90
|
-
</Text>
|
|
91
|
-
{/* <Text style={{ fontSize: 12 }}>Grade</Text> */}
|
|
92
|
-
</View>
|
|
93
|
-
)}
|
|
94
|
-
</View>
|
|
95
|
-
</View>
|
|
96
|
-
);
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export default CSupplierCard;
|