@jescon-technologies/react-native-ui-kit 0.0.4 → 0.0.6
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 +66 -0
- package/index.js +3 -7
- package/package.json +3 -2
- package/src/Alerts/AAlert.js +4 -4
- package/src/Alerts/AAlertIOS.js +3 -3
- package/src/{common → Common}/NetworkServiceCall.js +1 -1
- package/src/CommonStyle/CommonTheme.js +11 -0
- package/src/CommonStyle/ComponentFunctions.js +632 -0
- package/src/CommonStyle/PopupStyle.js +146 -0
- package/src/CommonStyle/commonStyle.js +93 -0
- package/src/CommonStyle/componentStyle.js +545 -0
- package/src/CommonStyle/optionListStyles.js +175 -0
- package/src/Components/ByProductPage.js +200 -0
- package/src/Components/CDropDownListNew.js +153 -0
- package/src/Components/CSupplierList.js +88 -0
- package/src/Components/CVerificationCard.js +2822 -0
- package/src/Components/CustomButton.js +67 -0
- package/src/Components/CustomCard.js +127 -0
- package/src/Components/CustomTextInput.js +47 -0
- package/src/Components/EquipmentPage.js +313 -0
- package/src/Components/FilterInput.Copy.js +723 -0
- package/src/Components/FilterInput.js +569 -0
- package/src/Components/HSubHeading.js +68 -0
- package/src/Components/HeaderCard.js +40 -0
- package/src/Components/MoreOptionsScreen.js +251 -0
- package/src/Components/NonSwipableProductCard.js +226 -0
- package/src/Components/NonSwipableSupplierCard.js +348 -0
- package/src/Components/ProductCard.js +1336 -0
- package/src/Components/QualityProductCard.js +1059 -0
- package/src/Components/RateProductCard.js +1452 -0
- package/src/Components/RawMaterial.js +261 -0
- package/src/Components/SDropDownEdited.js +549 -0
- package/src/Components/SDropDownNew.js +529 -0
- package/src/Components/SHelpDescription.js +147 -0
- package/src/Components/STextInputNew.js +510 -0
- package/src/Components/SearchProductCard.js +470 -0
- package/src/Components/StageByProduct.js +199 -0
- package/src/Components/SupplierCard.js +243 -0
- package/src/Components/SupplierInvoiceCard.js +405 -0
- package/src/Components/SwipableSupplierCard.js +136 -0
- package/src/Components/TagTemplate.js +74 -0
- package/src/Components/WrappedComponent.js +25 -0
- package/src/Custom/CBooking.js +944 -0
- package/src/Custom/CBookingPostpone.js +1822 -0
- package/src/Custom/CCalendar.js +560 -0
- package/src/Custom/CCard.js +880 -0
- package/src/Custom/CDetailCard.js +205 -0
- package/src/Custom/CHelpImage.js +52 -0
- package/src/Custom/CReport.js +569 -0
- package/src/Custom/CScrollView.js +73 -0
- package/src/Custom/CSignature.js +112 -0
- package/src/Custom/CSliderMenu.js +339 -0
- package/src/Custom/CSupplierCard.js +99 -0
- package/src/Custom/CTemplateCard.js +438 -0
- package/src/Custom/CTokenAllocation.js +1402 -0
- package/src/Custom/CTokenListOverlay.js +122 -0
- package/src/Custom/CWardStatus.js +444 -0
- package/src/Custom/Charts/CBarChart.js +218 -0
- package/src/Custom/Charts/CDashBoardList.js +133 -0
- package/src/Custom/Charts/CDashBoardTable.js +172 -0
- package/src/Custom/Charts/CLineChart.js +193 -0
- package/src/Custom/Charts/CPieChart.js +186 -0
- package/src/Custom/Loader.js +182 -0
- package/src/Custom/OUserView.js +1121 -0
- package/src/Custom/PreviewDosage.js +115 -0
- package/src/Custom/SearchLoader.js +32 -0
- package/src/Custom/TableComponent/CActivityTable.js +707 -0
- package/src/Custom/TableComponent/CMoreButtonTable.js +197 -0
- package/src/Custom/TableComponent/CTable.js +185 -0
- package/src/Custom/TableComponent/CTextBody.js +40 -0
- package/src/Custom/TableComponent/CTextHeader.js +17 -0
- package/src/Custom/TableComponent/PreviewPrescriptionNew.js +1011 -0
- package/src/Custom/TableComponent/SDropdownTable.js +491 -0
- package/src/Custom/TableComponent/TagTable.js +1200 -0
- package/src/CustomComponents/CAddColumn.js +140 -0
- package/src/CustomComponents/CAssessmentDelete.js +307 -0
- package/src/CustomComponents/CAwesomeButton.js +83 -0
- package/src/CustomComponents/CAwesomeMoreButton.js +54 -0
- package/src/CustomComponents/CBackHandler.js +273 -0
- package/src/CustomComponents/CCalendar.js +243 -0
- package/src/CustomComponents/CCommentOverlay.js +202 -0
- package/src/CustomComponents/CComments.js +162 -0
- package/src/CustomComponents/CContainerView.js +24 -0
- package/src/CustomComponents/CCustomTextInput.js +336 -0
- package/src/CustomComponents/CDetailView.js +40 -0
- package/src/CustomComponents/CDropDownList.js +153 -0
- package/src/CustomComponents/CDropdownSelect.js +555 -0
- package/src/CustomComponents/CFooterView.js +42 -0
- package/src/CustomComponents/CImagePickerSave.js +316 -0
- package/src/CustomComponents/CModalOverlay.js +91 -0
- package/src/CustomComponents/CNetworkStatus.js +327 -0
- package/src/CustomComponents/CNotesInstructions.js +1000 -0
- package/src/CustomComponents/COverlay.js +81 -0
- package/src/CustomComponents/CRemarks.js +176 -0
- package/src/CustomComponents/CRowAdd.js +143 -0
- package/src/CustomComponents/CSummaryDropDown.js +327 -0
- package/src/CustomComponents/CText.js +9 -0
- package/src/CustomComponents/CVectorIcon.js +34 -0
- package/src/CustomComponents/HtmlContentViewer.js +65 -0
- package/src/CustomComponents/PdfContentViewer.js +90 -0
- package/src/CustomComponents/SDropDownDosage.js +1087 -0
- package/src/CustomComponents/SwipableProductCard.js +246 -0
- package/src/CustomComponents/SwipableProductImageCard.js +254 -0
- package/src/CustomComponents/WorkOrderDetails.js +1216 -0
- package/src/CustomComponents/WorkOrderDetailsPage.js +1213 -0
- package/src/HOC/ConfirmOverlay.js +2 -2
- package/src/HOC/HMoreButton.js +1 -1
- package/src/HOC/HNatureHeading.js +1 -1
- package/src/HOC/HShadowButton.js +1 -1
- package/src/HOC/HShadowCountButton.js +1 -1
- package/src/Json/Chart.json +818 -0
- package/src/Json/Consultation.json +622 -0
- package/src/Json/CreditBill.json +490 -0
- package/src/Json/Dropdown.json +216 -0
- package/src/Json/DropdownConsultation.json +228 -0
- package/src/Json/DynamicReports.json +623 -0
- package/src/Json/Footer.json +79 -0
- package/src/Media/AudioScreen.js +2 -7
- package/src/Media/CCaptureImageWithoutEdit.js +1 -1
- package/src/Media/CImageGallery.js +2 -2
- package/src/Media/CSingleImage.js +2 -2
- package/src/Media/CVideoPlay.js +1 -1
- package/src/Media/DocumentScreen.js +2 -7
- package/src/Media/DrawingScreen.js +2 -6
- package/src/Media/ImageScreen.js +2 -6
- package/src/Media/RecordAudio.js +1 -1
- package/src/Media/VideoScreen.js +2 -7
- package/src/Navigation/PageNavigation.js +224 -0
- package/src/Navigation/useFocusEffect.js +2 -0
- package/src/Navigation/useFocusEffect.native.js +1 -0
- package/src/Navigation/useFocusEffect.web.js +1 -0
- package/src/Navigation/useIsFocused.js +1 -0
- package/src/Navigation/useIsFocused.native.js +1 -0
- package/src/Navigation/useIsFocused.web.js +1 -0
- package/src/Navigation/useNavigation.js +2 -0
- package/src/Navigation/useNavigation.native.js +1 -0
- package/src/Navigation/useNavigation.web.js +1 -0
- package/src/Screens/CMedications.js +528 -0
- package/src/Screens/CWebViewGallery.js +203 -0
- package/src/Screens/ChartScan.js +279 -0
- package/src/Screens/ChartScreenNew.js +1579 -0
- package/src/Screens/Consultation.js +1500 -0
- package/src/Screens/Dashboard.js +778 -0
- package/src/Screens/FileExplorer.js +288 -0
- package/src/Screens/Footer.js +340 -0
- package/src/Screens/ForgotPassword.js +288 -0
- package/src/Screens/HeaderBlock.js +353 -0
- package/src/Screens/Login.js +328 -0
- package/src/Screens/Notification.js +149 -0
- package/src/Screens/OcrScreen.js +20 -0
- package/src/Screens/PdfPreview.js +507 -0
- package/src/Screens/RegistrationDetails.js +467 -0
- package/src/Screens/SearchScreen.js +582 -0
- package/src/Screens/Splash.js +788 -0
- package/src/Screens/SwipeLeftView.js +1867 -0
- package/src/StaticComponents/SDatePickerLabel.js +1 -1
- package/src/StaticComponents/SDatePickerNew.js +1 -1
- package/src/StaticComponents/SDateTimePickerNew.js +2 -2
- package/src/StaticComponents/SDropDownGenerate.js +3 -3
- package/src/StaticComponents/SDropDownHoc.js +4 -4
- package/src/StaticComponents/SDropDownIcon.js +1 -1
- package/src/StaticComponents/SMenuBox.js +2 -2
- package/src/StaticComponents/SSearch.js +2 -2
- package/src/StaticComponents/STextInput.js +1 -1
- package/src/StaticComponents/STimePicker.js +1 -1
- package/src/StaticComponents/STimingDropDownNew.js +2 -6
- package/src/StaticComponents/STimingSwitch.js +1 -1
- package/src/layout/CContainerView.js +1 -1
- package/src/layout/CDetailView.js +3 -3
- package/src/layout/HeaderBlock.js +5 -5
- package/src/layout/INVLoginLayout.js +3 -4
- package/src/layout/Loader.js +2 -2
- package/src/HOC/HAbsolute.js +0 -56
- package/src/HOC/HDiscontinue.js +0 -105
- package/src/HOC/HOverlay.js +0 -99
- package/src/layout/FooterBlock.js +0 -821
- /package/src/{common → Common}/ErrorBoundary.tsx +0 -0
- /package/src/{common → Common}/Icons.js +0 -0
|
@@ -0,0 +1,348 @@
|
|
|
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
|
+
import { Global } from '../../../../../src/Common/Global';
|
|
6
|
+
import { CButtonShadow, isNUQ } from '../CommonStyle/ComponentFunctions';
|
|
7
|
+
import { useNavigation } from '../Navigation/useNavigation';
|
|
8
|
+
|
|
9
|
+
import { SwipeRow } from 'react-native-swipe-list-view';
|
|
10
|
+
|
|
11
|
+
const NonSwipableSupplierCard = ({ supplierDetails,type }) => {
|
|
12
|
+
const navigation = useNavigation();
|
|
13
|
+
|
|
14
|
+
const renderLeftActions = () => (
|
|
15
|
+
<View style={{
|
|
16
|
+
// flex: 1,
|
|
17
|
+
// width: normalize(100),
|
|
18
|
+
// backgroundColor: '#4caf50',
|
|
19
|
+
justifyContent: 'flex-start',
|
|
20
|
+
alignItems: 'flex-start',
|
|
21
|
+
borderTopLeftRadius: 10,
|
|
22
|
+
borderBottomLeftRadius: 10,
|
|
23
|
+
flexDirection: 'row',
|
|
24
|
+
paddingHorizontal: normalize(10),
|
|
25
|
+
}}>
|
|
26
|
+
{/* Marketing division */}
|
|
27
|
+
<TouchableOpacity
|
|
28
|
+
style={{
|
|
29
|
+
// // flex: 1,
|
|
30
|
+
// width: normalize(100),
|
|
31
|
+
// // backgroundColor: '#4caf50',
|
|
32
|
+
// justifyContent: 'flex-start',
|
|
33
|
+
// alignItems: 'center',
|
|
34
|
+
// borderTopLeftRadius: 10,
|
|
35
|
+
// borderBottomLeftRadius: 10,
|
|
36
|
+
marginLeft: normalize(5),
|
|
37
|
+
}}
|
|
38
|
+
onPress={() => console.log('left')}
|
|
39
|
+
>
|
|
40
|
+
{/* {!leftAction && <View style={{
|
|
41
|
+
backgroundColor: '#f4f5ae',
|
|
42
|
+
justifyContent: 'center',
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
...CButtonShadow(),
|
|
45
|
+
borderRadius: normalize(5),
|
|
46
|
+
paddingHorizontal: normalize(3),
|
|
47
|
+
paddingVertical: normalize(5),
|
|
48
|
+
height: normalize(38),
|
|
49
|
+
width: normalize(38)
|
|
50
|
+
}}>
|
|
51
|
+
<HOCIcons.MaterialCommunityIcons
|
|
52
|
+
name={'office-building'}
|
|
53
|
+
size={normalize(20)}
|
|
54
|
+
color={Global.AppTheme.primary_color}
|
|
55
|
+
/>
|
|
56
|
+
<Text numberOfLines={1} style={{ fontSize: normalize(8), fontWeight: 'bold', color: Global.AppTheme.primary_color }}>Division</Text>
|
|
57
|
+
</View>
|
|
58
|
+
} */}
|
|
59
|
+
{/* {leftAction &&
|
|
60
|
+
<View style={{
|
|
61
|
+
backgroundColor: '#f4f5ae',
|
|
62
|
+
justifyContent: 'center',
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
...CButtonShadow(),
|
|
65
|
+
borderRadius: normalize(5),
|
|
66
|
+
paddingHorizontal: normalize(3),
|
|
67
|
+
paddingVertical: normalize(5),
|
|
68
|
+
height: normalize(38),
|
|
69
|
+
width: normalize(38)
|
|
70
|
+
}}>
|
|
71
|
+
<Text style={{ fontSize: normalize(9), fontWeight: 'bold', color: Global.AppTheme.primary_color }}>{data?.marketingdivisionname}</Text>
|
|
72
|
+
</View>
|
|
73
|
+
} */}
|
|
74
|
+
</TouchableOpacity>
|
|
75
|
+
{/* Tax name */}
|
|
76
|
+
<TouchableOpacity
|
|
77
|
+
style={{
|
|
78
|
+
// // flex: 1,
|
|
79
|
+
// width: normalize(100),
|
|
80
|
+
// // backgroundColor: '#4caf50',
|
|
81
|
+
// justifyContent: 'flex-start',
|
|
82
|
+
// alignItems: 'center',
|
|
83
|
+
// borderTopLeftRadius: 10,
|
|
84
|
+
// borderBottomLeftRadius: 10,
|
|
85
|
+
marginLeft: normalize(5),
|
|
86
|
+
}}
|
|
87
|
+
onPress={() => console.log('left')}
|
|
88
|
+
>
|
|
89
|
+
{/* {!secondAction && <View style={{
|
|
90
|
+
backgroundColor: '#f5bfae',
|
|
91
|
+
justifyContent: 'center',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
...CButtonShadow(),
|
|
94
|
+
borderRadius: normalize(5),
|
|
95
|
+
paddingHorizontal: normalize(3),
|
|
96
|
+
paddingVertical: normalize(5),
|
|
97
|
+
height: normalize(38),
|
|
98
|
+
width: normalize(38)
|
|
99
|
+
}}>
|
|
100
|
+
<HOCIcons.MaterialCommunityIcons
|
|
101
|
+
name={'brightness-percent'}
|
|
102
|
+
size={normalize(20)}
|
|
103
|
+
color={Global.AppTheme.primary_color}
|
|
104
|
+
/>
|
|
105
|
+
<Text numberOfLines={1} style={{ fontSize: normalize(8), fontWeight: 'bold', color: Global.AppTheme.primary_color }}>Tax Name</Text>
|
|
106
|
+
</View>
|
|
107
|
+
} */}
|
|
108
|
+
{/* {secondAction &&
|
|
109
|
+
<View style={{
|
|
110
|
+
backgroundColor: '#f5bfae',
|
|
111
|
+
justifyContent: 'center',
|
|
112
|
+
alignItems: 'center',
|
|
113
|
+
...CButtonShadow(),
|
|
114
|
+
borderRadius: normalize(5),
|
|
115
|
+
paddingHorizontal: normalize(3),
|
|
116
|
+
paddingVertical: normalize(5),
|
|
117
|
+
height: normalize(38),
|
|
118
|
+
width: normalize(38)
|
|
119
|
+
}}>
|
|
120
|
+
<Text style={{ fontSize: normalize(9), fontWeight: 'bold', color: Global.AppTheme.primary_color }}>{data?.taxname}</Text>
|
|
121
|
+
</View>
|
|
122
|
+
} */}
|
|
123
|
+
</TouchableOpacity>
|
|
124
|
+
</View>
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
const renderRightActions = () => (
|
|
128
|
+
<TouchableOpacity
|
|
129
|
+
style={{
|
|
130
|
+
// flex: 1,
|
|
131
|
+
width: normalize(100),
|
|
132
|
+
// backgroundColor: '#f44336',
|
|
133
|
+
justifyContent: 'center',
|
|
134
|
+
alignItems: 'center',
|
|
135
|
+
borderTopRightRadius: 10,
|
|
136
|
+
borderBottomRightRadius: 10,
|
|
137
|
+
}}
|
|
138
|
+
onPress={() => console.log('Right action')}
|
|
139
|
+
>
|
|
140
|
+
{/* <Text style={{ color: '#000', fontWeight: 'bold' }}>{data?.taxname}</Text> */}
|
|
141
|
+
</TouchableOpacity>
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
return (
|
|
145
|
+
<SwipeRow
|
|
146
|
+
disableLeftSwipe={false}
|
|
147
|
+
disableRightSwipe={false}
|
|
148
|
+
leftOpenValue={190}
|
|
149
|
+
rightOpenValue={-190}
|
|
150
|
+
swipeToClosePercent={10}
|
|
151
|
+
swipeToOpenPercent={10}
|
|
152
|
+
>
|
|
153
|
+
{/* Hidden Row (Swipe Actions) */}
|
|
154
|
+
<View style={{
|
|
155
|
+
borderWidth: 0,
|
|
156
|
+
flexDirection: 'row',
|
|
157
|
+
justifyContent: 'space-between',
|
|
158
|
+
minHeight: normalize(70),
|
|
159
|
+
}}>
|
|
160
|
+
<View style={{ flex: 1, alignItems: 'flex-start' }}>
|
|
161
|
+
{renderLeftActions()}
|
|
162
|
+
</View>
|
|
163
|
+
<View style={{ flex: 1, alignItems: 'flex-end' }}>
|
|
164
|
+
{renderRightActions()}
|
|
165
|
+
</View>
|
|
166
|
+
</View>
|
|
167
|
+
|
|
168
|
+
{/* Main Content */}
|
|
169
|
+
<View>
|
|
170
|
+
<View
|
|
171
|
+
style={{
|
|
172
|
+
padding: normalize(5),
|
|
173
|
+
marginVertical: 5,
|
|
174
|
+
marginHorizontal: type == 'S' ? normalize(10) : 0,
|
|
175
|
+
borderLeftWidth: normalize(10),
|
|
176
|
+
borderLeftColor: isNUQ(supplierDetails?.color) ? supplierDetails?.color : '#083787',
|
|
177
|
+
backgroundColor: '#ebf1fa',
|
|
178
|
+
// marginHorizontal: normalize(10),
|
|
179
|
+
marginBottom: normalize(10),
|
|
180
|
+
borderRadius: normalize(5),
|
|
181
|
+
shadowColor: Global.AppTheme.primary_color,
|
|
182
|
+
shadowOffset: { width: 4, height: 4 },
|
|
183
|
+
shadowOpacity: 0.6,
|
|
184
|
+
shadowRadius: 10,
|
|
185
|
+
elevation: 8,
|
|
186
|
+
flexDirection: 'row',
|
|
187
|
+
justifyContent: 'flex-start',
|
|
188
|
+
width: type == 'S' ? '95%' : '99%',
|
|
189
|
+
...CButtonShadow(),
|
|
190
|
+
}}>
|
|
191
|
+
<View style={{ width: '75%' }}>
|
|
192
|
+
{/* Supplier name */}
|
|
193
|
+
{isNUQ(supplierDetails?.suppliername) ? (
|
|
194
|
+
<Text
|
|
195
|
+
numberOfLines={1}
|
|
196
|
+
style={{
|
|
197
|
+
fontSize: normalize(10),
|
|
198
|
+
paddingLeft: normalize(5),
|
|
199
|
+
fontWeight: 'bold',
|
|
200
|
+
color: Global.AppTheme.primary_color,
|
|
201
|
+
}}>
|
|
202
|
+
{`${supplierDetails?.suppliername} ${supplierDetails?.classificationname && `(${supplierDetails?.classificationname})`}`}
|
|
203
|
+
</Text>
|
|
204
|
+
) : null}
|
|
205
|
+
{isNUQ(supplierDetails?.invoiceno) ? (
|
|
206
|
+
<View
|
|
207
|
+
style={{
|
|
208
|
+
flexDirection: 'row',
|
|
209
|
+
alignItems: 'center',
|
|
210
|
+
paddingLeft: normalize(5),
|
|
211
|
+
}}>
|
|
212
|
+
<Icons.FontAwesome5
|
|
213
|
+
name={'file-invoice'}
|
|
214
|
+
size={normalize(13)}
|
|
215
|
+
color={'#094485'}
|
|
216
|
+
/>
|
|
217
|
+
<Text
|
|
218
|
+
numberOfLines={1}
|
|
219
|
+
style={{
|
|
220
|
+
fontSize: normalize(12),
|
|
221
|
+
fontWeight: 'bold',
|
|
222
|
+
color: '#555',
|
|
223
|
+
marginLeft: normalize(5),
|
|
224
|
+
}}>
|
|
225
|
+
{supplierDetails?.invoiceno}
|
|
226
|
+
</Text>
|
|
227
|
+
</View>
|
|
228
|
+
) : null}
|
|
229
|
+
{isNUQ(supplierDetails?.email) ? (
|
|
230
|
+
<View
|
|
231
|
+
style={{
|
|
232
|
+
flexDirection: 'row',
|
|
233
|
+
alignItems: 'center',
|
|
234
|
+
paddingLeft: normalize(5),
|
|
235
|
+
}}>
|
|
236
|
+
<Icons.FontAwesome5
|
|
237
|
+
name={'envelope'}
|
|
238
|
+
size={normalize(11)}
|
|
239
|
+
color={'#094485'}
|
|
240
|
+
/>
|
|
241
|
+
<Text
|
|
242
|
+
numberOfLines={1}
|
|
243
|
+
style={{
|
|
244
|
+
fontSize: 10,
|
|
245
|
+
color: '#555',
|
|
246
|
+
marginLeft: normalize(5),
|
|
247
|
+
}}>
|
|
248
|
+
{supplierDetails?.email}
|
|
249
|
+
</Text>
|
|
250
|
+
</View>
|
|
251
|
+
) : null}
|
|
252
|
+
{isNUQ(supplierDetails?.gstno) ? (
|
|
253
|
+
<View
|
|
254
|
+
style={{
|
|
255
|
+
flexDirection: 'row',
|
|
256
|
+
alignItems: 'center',
|
|
257
|
+
paddingLeft: normalize(5),
|
|
258
|
+
}}>
|
|
259
|
+
<Icons.FontAwesome5
|
|
260
|
+
name={'file-alt'}
|
|
261
|
+
size={normalize(11)}
|
|
262
|
+
color={'#094485'}
|
|
263
|
+
/>
|
|
264
|
+
<Text
|
|
265
|
+
numberOfLines={1}
|
|
266
|
+
style={{
|
|
267
|
+
fontSize: 10,
|
|
268
|
+
color: '#555',
|
|
269
|
+
marginLeft: normalize(5),
|
|
270
|
+
}}>
|
|
271
|
+
{supplierDetails?.gstno}
|
|
272
|
+
</Text>
|
|
273
|
+
</View>
|
|
274
|
+
) : null}
|
|
275
|
+
{isNUQ(supplierDetails?.companyaddress) ? (
|
|
276
|
+
<View
|
|
277
|
+
style={{
|
|
278
|
+
flexDirection: 'row',
|
|
279
|
+
alignItems: 'center',
|
|
280
|
+
paddingLeft: normalize(5),
|
|
281
|
+
}}>
|
|
282
|
+
<Icons.FontAwesome5
|
|
283
|
+
name={'map-marker-alt'}
|
|
284
|
+
size={normalize(11)}
|
|
285
|
+
color={'#094485'}
|
|
286
|
+
/>
|
|
287
|
+
<Text
|
|
288
|
+
numberOfLines={1}
|
|
289
|
+
style={{
|
|
290
|
+
fontSize: 10,
|
|
291
|
+
color: '#555',
|
|
292
|
+
marginLeft: normalize(5),
|
|
293
|
+
}}>
|
|
294
|
+
{supplierDetails?.companyaddress}
|
|
295
|
+
</Text>
|
|
296
|
+
</View>
|
|
297
|
+
) : null}
|
|
298
|
+
</View>
|
|
299
|
+
<View>
|
|
300
|
+
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
301
|
+
{/* Supplier info */}
|
|
302
|
+
<View style={{ marginBottom: normalize(5), marginRight: normalize(10) }}>
|
|
303
|
+
{supplierDetails?.type != 'S' ? <TouchableOpacity onPress={() => {
|
|
304
|
+
navigation.navigate('CPurchaseDetails', {
|
|
305
|
+
supplierCode: supplierDetails?.code,
|
|
306
|
+
// productCode: invoiceData?.data[sectionIndex]?.productdetail[productIndex]?.insuproduct
|
|
307
|
+
});
|
|
308
|
+
}}>
|
|
309
|
+
<Icons.Entypo
|
|
310
|
+
name={'info-with-circle'}
|
|
311
|
+
size={normalize(19)}
|
|
312
|
+
color={'#094485'}
|
|
313
|
+
/>
|
|
314
|
+
</TouchableOpacity> : null}
|
|
315
|
+
</View>
|
|
316
|
+
{/* Grade */}
|
|
317
|
+
<View style={{ marginBottom: normalize(5), marginLeft: normalize(145),
|
|
318
|
+
}}>
|
|
319
|
+
{supplierDetails?.grade && (
|
|
320
|
+
<View
|
|
321
|
+
style={{
|
|
322
|
+
height: 40,
|
|
323
|
+
width: 40,
|
|
324
|
+
backgroundColor: isNUQ(supplierDetails?.color) ? supplierDetails?.color : '#083787',
|
|
325
|
+
borderRadius: 20,
|
|
326
|
+
justifyContent: 'center',
|
|
327
|
+
alignItems: 'center',
|
|
328
|
+
}}>
|
|
329
|
+
<Text
|
|
330
|
+
style={{
|
|
331
|
+
fontSize: 20,
|
|
332
|
+
fontWeight: 'bold',
|
|
333
|
+
color: '#fff',
|
|
334
|
+
}}>
|
|
335
|
+
{supplierDetails?.grade}
|
|
336
|
+
</Text>
|
|
337
|
+
</View>
|
|
338
|
+
)}
|
|
339
|
+
</View>
|
|
340
|
+
</View>
|
|
341
|
+
</View>
|
|
342
|
+
</View>
|
|
343
|
+
</View>
|
|
344
|
+
</SwipeRow>
|
|
345
|
+
);
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
export default NonSwipableSupplierCard;
|