@jescon-technologies/react-native-ui-kit 0.0.4 → 0.0.5

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 (177) hide show
  1. package/index.d.ts +66 -0
  2. package/index.js +0 -4
  3. package/package.json +3 -2
  4. package/src/Alerts/AAlert.js +3 -3
  5. package/src/Alerts/AAlertIOS.js +3 -3
  6. package/src/{common → Common}/NetworkServiceCall.js +1 -1
  7. package/src/CommonStyle/CommonTheme.js +11 -0
  8. package/src/CommonStyle/ComponentFunctions.js +632 -0
  9. package/src/CommonStyle/PopupStyle.js +146 -0
  10. package/src/CommonStyle/commonStyle.js +93 -0
  11. package/src/CommonStyle/componentStyle.js +545 -0
  12. package/src/CommonStyle/optionListStyles.js +175 -0
  13. package/src/Components/ByProductPage.js +200 -0
  14. package/src/Components/CDropDownListNew.js +153 -0
  15. package/src/Components/CSupplierList.js +88 -0
  16. package/src/Components/CVerificationCard.js +2822 -0
  17. package/src/Components/CustomButton.js +67 -0
  18. package/src/Components/CustomCard.js +127 -0
  19. package/src/Components/CustomTextInput.js +47 -0
  20. package/src/Components/EquipmentPage.js +313 -0
  21. package/src/Components/FilterInput.Copy.js +723 -0
  22. package/src/Components/FilterInput.js +569 -0
  23. package/src/Components/HSubHeading.js +68 -0
  24. package/src/Components/HeaderCard.js +40 -0
  25. package/src/Components/MoreOptionsScreen.js +251 -0
  26. package/src/Components/NonSwipableProductCard.js +226 -0
  27. package/src/Components/NonSwipableSupplierCard.js +348 -0
  28. package/src/Components/ProductCard.js +1336 -0
  29. package/src/Components/QualityProductCard.js +1059 -0
  30. package/src/Components/RateProductCard.js +1452 -0
  31. package/src/Components/RawMaterial.js +261 -0
  32. package/src/Components/SDropDownEdited.js +549 -0
  33. package/src/Components/SDropDownNew.js +529 -0
  34. package/src/Components/SHelpDescription.js +147 -0
  35. package/src/Components/STextInputNew.js +510 -0
  36. package/src/Components/SearchProductCard.js +470 -0
  37. package/src/Components/StageByProduct.js +199 -0
  38. package/src/Components/SupplierCard.js +243 -0
  39. package/src/Components/SupplierInvoiceCard.js +405 -0
  40. package/src/Components/SwipableSupplierCard.js +136 -0
  41. package/src/Components/TagTemplate.js +74 -0
  42. package/src/Components/WrappedComponent.js +25 -0
  43. package/src/Custom/CBooking.js +944 -0
  44. package/src/Custom/CBookingPostpone.js +1822 -0
  45. package/src/Custom/CCalendar.js +560 -0
  46. package/src/Custom/CCard.js +880 -0
  47. package/src/Custom/CDetailCard.js +205 -0
  48. package/src/Custom/CHelpImage.js +52 -0
  49. package/src/Custom/CReport.js +569 -0
  50. package/src/Custom/CScrollView.js +73 -0
  51. package/src/Custom/CSignature.js +112 -0
  52. package/src/Custom/CSliderMenu.js +339 -0
  53. package/src/Custom/CSupplierCard.js +99 -0
  54. package/src/Custom/CTemplateCard.js +438 -0
  55. package/src/Custom/CTokenAllocation.js +1402 -0
  56. package/src/Custom/CTokenListOverlay.js +122 -0
  57. package/src/Custom/CWardStatus.js +444 -0
  58. package/src/Custom/Charts/CBarChart.js +218 -0
  59. package/src/Custom/Charts/CDashBoardList.js +133 -0
  60. package/src/Custom/Charts/CDashBoardTable.js +172 -0
  61. package/src/Custom/Charts/CLineChart.js +193 -0
  62. package/src/Custom/Charts/CPieChart.js +186 -0
  63. package/src/Custom/Loader.js +182 -0
  64. package/src/Custom/OUserView.js +1121 -0
  65. package/src/Custom/PreviewDosage.js +115 -0
  66. package/src/Custom/SearchLoader.js +32 -0
  67. package/src/Custom/TableComponent/CActivityTable.js +707 -0
  68. package/src/Custom/TableComponent/CMoreButtonTable.js +197 -0
  69. package/src/Custom/TableComponent/CTable.js +185 -0
  70. package/src/Custom/TableComponent/CTextBody.js +40 -0
  71. package/src/Custom/TableComponent/CTextHeader.js +17 -0
  72. package/src/Custom/TableComponent/PreviewPrescriptionNew.js +1011 -0
  73. package/src/Custom/TableComponent/SDropdownTable.js +491 -0
  74. package/src/Custom/TableComponent/TagTable.js +1200 -0
  75. package/src/CustomComponents/CAddColumn.js +140 -0
  76. package/src/CustomComponents/CAssessmentDelete.js +307 -0
  77. package/src/CustomComponents/CAwesomeButton.js +83 -0
  78. package/src/CustomComponents/CAwesomeMoreButton.js +54 -0
  79. package/src/CustomComponents/CBackHandler.js +273 -0
  80. package/src/CustomComponents/CCalendar.js +243 -0
  81. package/src/CustomComponents/CCommentOverlay.js +202 -0
  82. package/src/CustomComponents/CComments.js +162 -0
  83. package/src/CustomComponents/CContainerView.js +24 -0
  84. package/src/CustomComponents/CCustomTextInput.js +336 -0
  85. package/src/CustomComponents/CDetailView.js +40 -0
  86. package/src/CustomComponents/CDropDownList.js +153 -0
  87. package/src/CustomComponents/CDropdownSelect.js +555 -0
  88. package/src/CustomComponents/CFooterView.js +42 -0
  89. package/src/CustomComponents/CImagePickerSave.js +316 -0
  90. package/src/CustomComponents/CModalOverlay.js +91 -0
  91. package/src/CustomComponents/CNetworkStatus.js +327 -0
  92. package/src/CustomComponents/CNotesInstructions.js +1000 -0
  93. package/src/CustomComponents/COverlay.js +81 -0
  94. package/src/CustomComponents/CRemarks.js +176 -0
  95. package/src/CustomComponents/CRowAdd.js +143 -0
  96. package/src/CustomComponents/CSummaryDropDown.js +327 -0
  97. package/src/CustomComponents/CText.js +9 -0
  98. package/src/CustomComponents/CVectorIcon.js +34 -0
  99. package/src/CustomComponents/HtmlContentViewer.js +65 -0
  100. package/src/CustomComponents/PdfContentViewer.js +90 -0
  101. package/src/CustomComponents/SDropDownDosage.js +1087 -0
  102. package/src/CustomComponents/SwipableProductCard.js +246 -0
  103. package/src/CustomComponents/SwipableProductImageCard.js +254 -0
  104. package/src/CustomComponents/WorkOrderDetails.js +1216 -0
  105. package/src/CustomComponents/WorkOrderDetailsPage.js +1213 -0
  106. package/src/HOC/ConfirmOverlay.js +2 -2
  107. package/src/HOC/HMoreButton.js +1 -1
  108. package/src/HOC/HNatureHeading.js +1 -1
  109. package/src/HOC/HShadowButton.js +1 -1
  110. package/src/HOC/HShadowCountButton.js +1 -1
  111. package/src/Json/Chart.json +818 -0
  112. package/src/Json/Consultation.json +622 -0
  113. package/src/Json/CreditBill.json +490 -0
  114. package/src/Json/Dropdown.json +216 -0
  115. package/src/Json/DropdownConsultation.json +228 -0
  116. package/src/Json/DynamicReports.json +623 -0
  117. package/src/Json/Footer.json +79 -0
  118. package/src/Media/AudioScreen.js +2 -7
  119. package/src/Media/CCaptureImageWithoutEdit.js +1 -1
  120. package/src/Media/CImageGallery.js +2 -2
  121. package/src/Media/CSingleImage.js +2 -2
  122. package/src/Media/CVideoPlay.js +1 -1
  123. package/src/Media/DocumentScreen.js +2 -7
  124. package/src/Media/DrawingScreen.js +2 -6
  125. package/src/Media/ImageScreen.js +2 -6
  126. package/src/Media/VideoScreen.js +2 -7
  127. package/src/Navigation/PageNavigation.js +224 -0
  128. package/src/Navigation/useFocusEffect.js +2 -0
  129. package/src/Navigation/useFocusEffect.native.js +1 -0
  130. package/src/Navigation/useFocusEffect.web.js +1 -0
  131. package/src/Navigation/useIsFocused.js +1 -0
  132. package/src/Navigation/useIsFocused.native.js +1 -0
  133. package/src/Navigation/useIsFocused.web.js +1 -0
  134. package/src/Navigation/useNavigation.js +2 -0
  135. package/src/Navigation/useNavigation.native.js +1 -0
  136. package/src/Navigation/useNavigation.web.js +1 -0
  137. package/src/Screens/CMedications.js +528 -0
  138. package/src/Screens/CWebViewGallery.js +203 -0
  139. package/src/Screens/ChartScan.js +279 -0
  140. package/src/Screens/ChartScreenNew.js +1579 -0
  141. package/src/Screens/Consultation.js +1500 -0
  142. package/src/Screens/Dashboard.js +778 -0
  143. package/src/Screens/FileExplorer.js +288 -0
  144. package/src/Screens/Footer.js +340 -0
  145. package/src/Screens/ForgotPassword.js +288 -0
  146. package/src/Screens/HeaderBlock.js +353 -0
  147. package/src/Screens/Login.js +328 -0
  148. package/src/Screens/Notification.js +149 -0
  149. package/src/Screens/OcrScreen.js +20 -0
  150. package/src/Screens/PdfPreview.js +507 -0
  151. package/src/Screens/RegistrationDetails.js +467 -0
  152. package/src/Screens/SearchScreen.js +582 -0
  153. package/src/Screens/Splash.js +788 -0
  154. package/src/Screens/SwipeLeftView.js +1867 -0
  155. package/src/StaticComponents/SDatePickerLabel.js +1 -1
  156. package/src/StaticComponents/SDatePickerNew.js +1 -1
  157. package/src/StaticComponents/SDateTimePickerNew.js +2 -2
  158. package/src/StaticComponents/SDropDownGenerate.js +3 -3
  159. package/src/StaticComponents/SDropDownHoc.js +4 -4
  160. package/src/StaticComponents/SDropDownIcon.js +1 -1
  161. package/src/StaticComponents/SMenuBox.js +2 -2
  162. package/src/StaticComponents/SSearch.js +2 -2
  163. package/src/StaticComponents/STextInput.js +1 -1
  164. package/src/StaticComponents/STimePicker.js +1 -1
  165. package/src/StaticComponents/STimingDropDownNew.js +2 -6
  166. package/src/StaticComponents/STimingSwitch.js +1 -1
  167. package/src/layout/CContainerView.js +1 -1
  168. package/src/layout/CDetailView.js +3 -3
  169. package/src/layout/HeaderBlock.js +5 -5
  170. package/src/layout/INVLoginLayout.js +3 -4
  171. package/src/layout/Loader.js +2 -2
  172. package/src/HOC/HAbsolute.js +0 -56
  173. package/src/HOC/HDiscontinue.js +0 -105
  174. package/src/HOC/HOverlay.js +0 -99
  175. package/src/layout/FooterBlock.js +0 -821
  176. /package/src/{common → Common}/ErrorBoundary.tsx +0 -0
  177. /package/src/{common → Common}/Icons.js +0 -0
@@ -0,0 +1,112 @@
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
+ }
@@ -0,0 +1,339 @@
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);
@@ -0,0 +1,99 @@
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;