@jescon-technologies/react-native-ui-kit 0.0.6 → 0.0.7
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/dist/Common/ErrorBoundary.d.ts +15 -0
- package/dist/Common/ErrorBoundary.d.ts.map +1 -0
- package/dist/Common/ErrorBoundary.js +64 -0
- package/dist/Common/ErrorBoundary.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/src/Common/ErrorBoundary.d.ts +15 -0
- package/dist/src/Common/ErrorBoundary.d.ts.map +1 -0
- package/dist/src/Common/ErrorBoundary.js +64 -0
- package/dist/src/Common/ErrorBoundary.js.map +1 -0
- package/package.json +17 -5
- package/.gitattributes +0 -2
- package/index.d.ts +0 -66
- package/index.js +0 -66
- package/src/Alerts/AAlert.js +0 -137
- package/src/Alerts/AAlertIOS.js +0 -97
- package/src/Alerts/ABlink.js +0 -40
- package/src/Common/ErrorBoundary.tsx +0 -73
- 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
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Text,
|
|
4
|
-
TextInput,
|
|
5
|
-
StyleSheet,
|
|
6
|
-
View,
|
|
7
|
-
Image,
|
|
8
|
-
TouchableOpacity,
|
|
9
|
-
ScrollView,
|
|
10
|
-
Dimensions,
|
|
11
|
-
FlatList,
|
|
12
|
-
TouchableWithoutFeedback,
|
|
13
|
-
Switch,
|
|
14
|
-
} from 'react-native';
|
|
15
|
-
import { colors } from '../CommonStyle/commonStyle';
|
|
16
|
-
import ComponentStyles, { normalize } from '../CommonStyle/componentStyle';
|
|
17
|
-
import { Icons } from '@jescon-technologies/react-native-ui-kit';;
|
|
18
|
-
import STimingSwitch from '../StaticComponents/STimingSwitch';
|
|
19
|
-
import { notifyMessage } from '../CommonStyle/ComponentFunctions';
|
|
20
|
-
import CAwesomeButton from './CAwesomeButton';
|
|
21
|
-
|
|
22
|
-
function CAddColumn(props) {
|
|
23
|
-
const [componentAccess, setComponentAccess] = useState(0);
|
|
24
|
-
const [parameterName, setParameterName] = useState('');
|
|
25
|
-
return (
|
|
26
|
-
<View style={{ flex: 1, width: '97%' }}>
|
|
27
|
-
<Text style={{ alignSelf: 'center', fontSize: normalize(10), fontWeight: 'bold', marginBottom: normalize(5), marginTop: normalize(-5) }}>{'Add Column'}</Text>
|
|
28
|
-
|
|
29
|
-
<View style={{ flex: 1, marginVertical: 0 }}>
|
|
30
|
-
<Text style={{ fontSize: normalize(11), paddingHorizontal: normalize(10) }}>Column name :</Text>
|
|
31
|
-
|
|
32
|
-
<View style={{ borderWidth: 1, height: normalize(35), borderRadius: 7, borderColor: 'lightgrey', backgroundColor: '#fff', elevation: 3 }}
|
|
33
|
-
>
|
|
34
|
-
<TextInput
|
|
35
|
-
numberOfLines={1}
|
|
36
|
-
keyboardType={'default'}
|
|
37
|
-
onChangeText={changevalue => setParameterName(changevalue)}
|
|
38
|
-
value={parameterName} />
|
|
39
|
-
|
|
40
|
-
</View>
|
|
41
|
-
|
|
42
|
-
<View style={{ borderWidth: 1, borderRadius: 7, borderColor: 'lightgrey', backgroundColor: '#fff', elevation: 3, paddingVertical: normalize(5), marginTop: normalize(5) }}>
|
|
43
|
-
<Text style={{ fontSize: normalize(11), paddingHorizontal: normalize(10) }}>Type of data:</Text>
|
|
44
|
-
<STimingSwitch
|
|
45
|
-
data={[{
|
|
46
|
-
'timingslot': 1,
|
|
47
|
-
'slotname': 'Date',
|
|
48
|
-
'selected': false,
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
'timingslot': 2,
|
|
52
|
-
'slotname': 'Value',
|
|
53
|
-
'selected': false,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
'timingslot': 3,
|
|
57
|
-
'slotname': 'Question',
|
|
58
|
-
'selected': false,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
'timingslot': 4,
|
|
62
|
-
'slotname': 'Remarks',
|
|
63
|
-
'selected': false,
|
|
64
|
-
}]}
|
|
65
|
-
callBack={val =>
|
|
66
|
-
val == undefined ? null :
|
|
67
|
-
setComponentAccess(val)} />
|
|
68
|
-
</View>
|
|
69
|
-
|
|
70
|
-
<View
|
|
71
|
-
style={{
|
|
72
|
-
position: 'absolute',
|
|
73
|
-
bottom: normalize(0),
|
|
74
|
-
width: '100%',
|
|
75
|
-
}}>
|
|
76
|
-
{/* <AwesomeButton
|
|
77
|
-
onPress={() => getAddColumn()}
|
|
78
|
-
borderRadius={10}
|
|
79
|
-
borderWidth={1}
|
|
80
|
-
height={normalize(40)}
|
|
81
|
-
width={normalize(55)}
|
|
82
|
-
backgroundColor={"#eaf2ff"}
|
|
83
|
-
paddingHorizontal={0}
|
|
84
|
-
raiseLevel={5}
|
|
85
|
-
paddingBottom={0}
|
|
86
|
-
borderColor={'white'}
|
|
87
|
-
paddingTop={0}>
|
|
88
|
-
|
|
89
|
-
<View style={{ alignItems: 'center', width: normalize(50) }} >
|
|
90
|
-
<Icons.FontAwesome5 name="save" color={"#094485"} size={normalize(20)} />
|
|
91
|
-
<Text numberOfLines={1} style={{ color: "#094485", fontSize: normalize(10) }}>Select</Text>
|
|
92
|
-
</View>
|
|
93
|
-
</AwesomeButton> */}
|
|
94
|
-
<CAwesomeButton
|
|
95
|
-
callback={() => {
|
|
96
|
-
getAddColumn();
|
|
97
|
-
}}
|
|
98
|
-
data={{
|
|
99
|
-
borderRadius: 10,
|
|
100
|
-
borderWidth: 0.5,
|
|
101
|
-
height: Dimensions.get('screen').height * 0.06,
|
|
102
|
-
width: Dimensions.get('screen').height * 0.06,
|
|
103
|
-
backgroundColor: '#f2f3ff',
|
|
104
|
-
paddingHorizontal: 0,
|
|
105
|
-
raiseLevel: 4,
|
|
106
|
-
paddingBottom: 0,
|
|
107
|
-
borderColor: 'white',
|
|
108
|
-
paddingTop: 0,
|
|
109
|
-
icongroup: 3,
|
|
110
|
-
name: 'file-document',
|
|
111
|
-
color: Global.AppTheme.primary_color,
|
|
112
|
-
size: normalize(25),
|
|
113
|
-
fontSize: normalize(6),
|
|
114
|
-
fontWeight: 'bold',
|
|
115
|
-
textAlign: 'center',
|
|
116
|
-
}}
|
|
117
|
-
/>
|
|
118
|
-
</View>
|
|
119
|
-
</View>
|
|
120
|
-
|
|
121
|
-
</View>
|
|
122
|
-
);
|
|
123
|
-
|
|
124
|
-
function getAddColumn(params) {
|
|
125
|
-
if (parameterName != '' && parameterName != undefined && componentAccess != 0) {
|
|
126
|
-
var call = {
|
|
127
|
-
'columnname': parameterName,
|
|
128
|
-
'columntype': componentAccess.timingslot,
|
|
129
|
-
};
|
|
130
|
-
props.callBack(call);
|
|
131
|
-
props.visibility(false);
|
|
132
|
-
} else {
|
|
133
|
-
notifyMessage('Please fill required coulmns', 3);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export default CAddColumn;
|
|
139
|
-
|
|
140
|
-
|
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
import React, { useContext, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Text, TextInput, StyleSheet,
|
|
4
|
-
View, Image, TouchableOpacity, ScrollView, Dimensions, FlatList,
|
|
5
|
-
} from 'react-native';
|
|
6
|
-
// import { useDimensions } from '@react-native-community/hooks'
|
|
7
|
-
import ComponentStyles, { normalize } from '../CommonStyle/componentStyle';
|
|
8
|
-
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
9
|
-
import SAlphabet from '../StaticComponents/SAlphabet';
|
|
10
|
-
import SSearchBar from '../StaticComponents/SSearchBar';
|
|
11
|
-
import CAwesomeButton from './CAwesomeButton';
|
|
12
|
-
import { Global } from '../../../../../src/Common/Global';
|
|
13
|
-
import { Icons } from '@jescon-technologies/react-native-ui-kit';;
|
|
14
|
-
import { isBNUL, ValueCheck } from '../CommonStyle/ComponentFunctions';
|
|
15
|
-
import EmrResponseComponentContext from '../Handlers/emrResponseComponentContext';
|
|
16
|
-
|
|
17
|
-
export default function CAssessmentDelete(props) {
|
|
18
|
-
|
|
19
|
-
const { responseJSON, setResponseJSON } = useContext(EmrResponseComponentContext);
|
|
20
|
-
const [searchData, setSearchData] = useState('');
|
|
21
|
-
const [displayData, setDisplayData] = useState(props.data);
|
|
22
|
-
const { width, height } = Dimensions.get('window');
|
|
23
|
-
const [parameterName, setParameterName] = useState('');
|
|
24
|
-
const [alphaindex, setAlphaIndex] = useState();
|
|
25
|
-
const [tempString, settempString] = useState([]);
|
|
26
|
-
const [selected, setSelected] = useState(0);
|
|
27
|
-
const [filterPurpose, setFilterPurpose] = useState([]);
|
|
28
|
-
const [alphaFilter, setAlphaFilter] = useState(false);
|
|
29
|
-
|
|
30
|
-
function getOverlayScreenChildContainer() {
|
|
31
|
-
return (
|
|
32
|
-
{
|
|
33
|
-
// height: Dimensions.get('window').height * 0.47,
|
|
34
|
-
backgroundColor: '#fff',
|
|
35
|
-
flex: 1,
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function getOverlayScreenContainer() {
|
|
41
|
-
return ({
|
|
42
|
-
flexDirection: 'row',
|
|
43
|
-
margin: 10,
|
|
44
|
-
height: height * 0.045,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function getOverlayScreenChildlistContainer() {
|
|
49
|
-
return {
|
|
50
|
-
// height: Dimensions.get('window').height * 0.37,
|
|
51
|
-
marginBottom: Dimensions.get('window').height * 0.01,
|
|
52
|
-
marginTop: Dimensions.get('window').height * 0.01,
|
|
53
|
-
flexDirection: 'row',
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function getAlphabetData(alpha, index) {
|
|
58
|
-
var filter = displayData.filter(value => (value.display != undefined ? value.display : '').charAt(0) == alpha);
|
|
59
|
-
setFilterPurpose(filter);
|
|
60
|
-
index == 0 ? setSearchData('') : setSearchData(alpha);
|
|
61
|
-
index == 0 ? setAlphaFilter(false) : setAlphaFilter(true);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function onSelect() {
|
|
65
|
-
//console.log("hhhhhhhhhh",JSON.stringify())
|
|
66
|
-
props.onselect(passDeleted(displayData));
|
|
67
|
-
// props.onselect(tempString);
|
|
68
|
-
//props.onselectdata(tempText);
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
function onSelectDelete() {
|
|
72
|
-
//console.log("hhhhhhhhhh",JSON.stringify())
|
|
73
|
-
props.onclose(false);
|
|
74
|
-
//props.onselectdata(tempText);
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function passDeleted(array) {
|
|
79
|
-
|
|
80
|
-
let prevcodearray = array.filter((i, k) => { return i.selected ? { ...i } : undefined; });
|
|
81
|
-
let prevcode = isBNUL(prevcodearray) ? prevcodearray : [];
|
|
82
|
-
return prevcode;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function checkSelected(array) {
|
|
88
|
-
|
|
89
|
-
let prevcodearray = array.filter((i, k) => { return i.selected ? { ...i } : undefined; });
|
|
90
|
-
let prevcode = isBNUL(prevcodearray) ? true : false;
|
|
91
|
-
return prevcode;
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function onSelectItem(datavalue, multiselect, i) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
if (multiselect == true) {
|
|
99
|
-
if (tempString.includes(datavalue)) {
|
|
100
|
-
|
|
101
|
-
datavalue.selected = !datavalue.selected;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
setDisplayData(prevstate => {
|
|
105
|
-
const updatedData = [...prevstate];
|
|
106
|
-
updatedData[i] = {
|
|
107
|
-
...prevstate[i],
|
|
108
|
-
selected: !prevstate[i].selected,
|
|
109
|
-
};
|
|
110
|
-
return updatedData;
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
// setSelected(selected + 1);
|
|
116
|
-
// var index = tempString.indexOf(datavalue);
|
|
117
|
-
// if (index > -1) {
|
|
118
|
-
// tempString.splice(index, 1);
|
|
119
|
-
// }
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
|
|
124
|
-
setDisplayData(prevstate => {
|
|
125
|
-
const updatedData = [...prevstate];
|
|
126
|
-
updatedData[i] = {
|
|
127
|
-
...prevstate[i],
|
|
128
|
-
selected: !prevstate[i].selected,
|
|
129
|
-
};
|
|
130
|
-
return updatedData;
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
// datavalue.selected = !datavalue.selected;
|
|
134
|
-
// setSelected(selected + 1);
|
|
135
|
-
// tempString.push(datavalue);
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
function GetSearchData(data) {
|
|
143
|
-
const newDropDownData = data.filter(function (item) {
|
|
144
|
-
const dataItem = item.displayvalue ? item.displayvalue.toUpperCase() : ''.toUpperCase();
|
|
145
|
-
const textData = searchData.toUpperCase();
|
|
146
|
-
return dataItem.indexOf(textData) > -1;
|
|
147
|
-
});
|
|
148
|
-
return (
|
|
149
|
-
<View style={layoutstyles.overlay_screen_listview_container}>
|
|
150
|
-
<View style={getOverlayScreenChildlistContainer()}>
|
|
151
|
-
<ScrollView keyboardShouldPersistTaps="handled">
|
|
152
|
-
<View>
|
|
153
|
-
{newDropDownData != null && newDropDownData.length > 0
|
|
154
|
-
? newDropDownData.map((item, i) => {
|
|
155
|
-
return (
|
|
156
|
-
<View key={i}>
|
|
157
|
-
<TouchableOpacity
|
|
158
|
-
style={
|
|
159
|
-
{
|
|
160
|
-
borderColor: '#DCDEDD',
|
|
161
|
-
borderWidth: 1,
|
|
162
|
-
borderBottomWidth: 1,
|
|
163
|
-
width: '100%',
|
|
164
|
-
borderRadius: 7,
|
|
165
|
-
backgroundColor: item.selected ? 'lightblue' : 'transparent',
|
|
166
|
-
justifyContent: 'space-between',
|
|
167
|
-
}
|
|
168
|
-
// getListviewItem(item.selected, false)
|
|
169
|
-
}
|
|
170
|
-
// style={{
|
|
171
|
-
// borderColor: '#DCDEDD',
|
|
172
|
-
// borderWidth: 1,
|
|
173
|
-
// borderBottomWidth: 1,
|
|
174
|
-
// width: '100%',
|
|
175
|
-
// borderRadius: 7,
|
|
176
|
-
// backgroundColor: "white",
|
|
177
|
-
// justifyContent: 'space-between',
|
|
178
|
-
// }}
|
|
179
|
-
|
|
180
|
-
onPress={() => onSelectItem(item, true, i)}
|
|
181
|
-
activeOpacity={0.5}>
|
|
182
|
-
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
183
|
-
|
|
184
|
-
<Icons.FontAwesome name="dot-circle-o" color={Global.AppTheme.primary_color} size={normalize(15)}
|
|
185
|
-
style={{ paddingRight: normalize(5), paddingLeft: normalize(4) }} />
|
|
186
|
-
<Text style={
|
|
187
|
-
[
|
|
188
|
-
//getListviewItemText(item.selected),
|
|
189
|
-
{
|
|
190
|
-
margin: 2,
|
|
191
|
-
paddingLeft: 5,
|
|
192
|
-
fontWeight: 'normal',
|
|
193
|
-
color: 'black',
|
|
194
|
-
alignContent: 'center',
|
|
195
|
-
margin: Dimensions.get('window').height * 0.004,
|
|
196
|
-
alignItems: 'center',
|
|
197
|
-
textAlign: 'left',
|
|
198
|
-
fontSize: normalize(14),
|
|
199
|
-
},
|
|
200
|
-
]}>
|
|
201
|
-
{item.displayvalue}
|
|
202
|
-
</Text>
|
|
203
|
-
</View>
|
|
204
|
-
</TouchableOpacity>
|
|
205
|
-
</View>
|
|
206
|
-
);
|
|
207
|
-
})
|
|
208
|
-
: null}
|
|
209
|
-
</View>
|
|
210
|
-
</ScrollView>
|
|
211
|
-
|
|
212
|
-
<View>
|
|
213
|
-
<SAlphabet
|
|
214
|
-
callBack={val =>
|
|
215
|
-
val == undefined ? null : getAlphabetData(val.alpha, val.index)
|
|
216
|
-
} />
|
|
217
|
-
</View>
|
|
218
|
-
|
|
219
|
-
</View>
|
|
220
|
-
</View>
|
|
221
|
-
);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
return (
|
|
225
|
-
<View style={{ flex: 1 }}>
|
|
226
|
-
<Text
|
|
227
|
-
style={{
|
|
228
|
-
fontSize: normalize(12),
|
|
229
|
-
fontWeight: 'bold',
|
|
230
|
-
textAlign: 'center',
|
|
231
|
-
alignSelf: 'center',
|
|
232
|
-
}}>
|
|
233
|
-
{ValueCheck(responseJSON) && ValueCheck(responseJSON.consultationEdit) && ValueCheck(responseJSON.consultationEdit.heading) ? responseJSON.consultationEdit.heading + ' PARAMETER' : 'PARAMETER'}
|
|
234
|
-
</Text>
|
|
235
|
-
|
|
236
|
-
<View style={getOverlayScreenContainer()}>
|
|
237
|
-
<SSearchBar
|
|
238
|
-
onChangeText={val => setSearchData(val)} />
|
|
239
|
-
</View>
|
|
240
|
-
|
|
241
|
-
{displayData && displayData != null && displayData != undefined ?
|
|
242
|
-
<View
|
|
243
|
-
style={getOverlayScreenChildContainer()}
|
|
244
|
-
>
|
|
245
|
-
{GetSearchData(displayData)}
|
|
246
|
-
</View>
|
|
247
|
-
: null}
|
|
248
|
-
|
|
249
|
-
<View style={{
|
|
250
|
-
position: 'absolute', bottom: normalize(-10), width: '100%',
|
|
251
|
-
}}>
|
|
252
|
-
{checkSelected(displayData) ?
|
|
253
|
-
<CAwesomeButton
|
|
254
|
-
data={{
|
|
255
|
-
'displaytext': 'Delete',
|
|
256
|
-
'size': 10,
|
|
257
|
-
'iconname': 'trash',
|
|
258
|
-
'selected': false,
|
|
259
|
-
'visibility': true,
|
|
260
|
-
'iconsize': 20,
|
|
261
|
-
'functionid': 'ATR01',
|
|
262
|
-
'shadowcolor': '#f1f3f6',
|
|
263
|
-
'iconcolor': Global.AppTheme.primary_color,
|
|
264
|
-
'fontcolor': Global.AppTheme.primary_color,
|
|
265
|
-
}}
|
|
266
|
-
callBack={val => val == undefined ? null : onSelect()}
|
|
267
|
-
/>
|
|
268
|
-
: null}
|
|
269
|
-
{/* <TouchableOpacity style={{ marginTop: 5, justifyContent: 'center', backgroundColor: '#d8d0d0', width: '100%', borderRadius: 10, alignItems: 'center', height: normalize(23) }}
|
|
270
|
-
onPress={() => onSelectDelete()}
|
|
271
|
-
>
|
|
272
|
-
<AntDesign name={"close"}
|
|
273
|
-
color={"red"} size={normalize(21)} />
|
|
274
|
-
</TouchableOpacity> */}
|
|
275
|
-
</View>
|
|
276
|
-
</View>
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
const layoutstyles = StyleSheet.create({
|
|
280
|
-
overlay_screen_listview_container: {
|
|
281
|
-
justifyContent: 'center',
|
|
282
|
-
marginBottom: 2,
|
|
283
|
-
},
|
|
284
|
-
overlay_searchTextbox_View: {
|
|
285
|
-
width: '96%',
|
|
286
|
-
},
|
|
287
|
-
textinput_view: {
|
|
288
|
-
flex: 1,
|
|
289
|
-
paddingLeft: '1%',
|
|
290
|
-
},
|
|
291
|
-
getListviewItem: {
|
|
292
|
-
borderColor: '#DCDEDD',
|
|
293
|
-
borderWidth: 1,
|
|
294
|
-
borderBottomWidth: 1,
|
|
295
|
-
width: '100%',
|
|
296
|
-
borderRadius: 7,
|
|
297
|
-
justifyContent: 'space-between',
|
|
298
|
-
},
|
|
299
|
-
getListviewItemText: {
|
|
300
|
-
alignContent: 'center',
|
|
301
|
-
margin: 3,
|
|
302
|
-
alignItems: 'center',
|
|
303
|
-
textAlign: 'left',
|
|
304
|
-
fontSize: 12,
|
|
305
|
-
color: 'black',
|
|
306
|
-
},
|
|
307
|
-
});
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
-
import { isNU, notifyMessage } from '../CommonStyle/ComponentFunctions';
|
|
4
|
-
import { normalize } from '../CommonStyle/componentStyle';
|
|
5
|
-
import HOCIcons from '../HOC/HOCIcons';
|
|
6
|
-
|
|
7
|
-
export default function CAwesomeButton({ data, callBack }) {
|
|
8
|
-
|
|
9
|
-
const handlePress = () => {
|
|
10
|
-
if (data?.functionid != undefined) {
|
|
11
|
-
getCallBack(data);
|
|
12
|
-
} else {
|
|
13
|
-
notifyMessage('Incorporate soon', 5);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<TouchableOpacity
|
|
19
|
-
disabled={false}
|
|
20
|
-
onPress={handlePress}
|
|
21
|
-
style={[
|
|
22
|
-
styles.button,
|
|
23
|
-
{
|
|
24
|
-
borderRadius: 10,
|
|
25
|
-
borderWidth: 1,
|
|
26
|
-
height: normalize(40),
|
|
27
|
-
width: normalize(data?.width != undefined ? data?.width : 55),
|
|
28
|
-
backgroundColor: data?.shadowcolor != undefined ? data?.shadowcolor : '#f7efef',
|
|
29
|
-
borderColor: 'lightblue',
|
|
30
|
-
},
|
|
31
|
-
]}
|
|
32
|
-
>
|
|
33
|
-
<View style={styles.contentContainer}>
|
|
34
|
-
<HOCIcons.Icons
|
|
35
|
-
icongroup={isNU(data?.icongroup) ? data?.icongroup : 5}
|
|
36
|
-
name={data?.iconname != undefined ? data?.iconname : 'file'}
|
|
37
|
-
color={data?.iconcolor != undefined ? data?.iconcolor : 'white'}
|
|
38
|
-
size={data?.iconsize != undefined ? normalize(data?.iconsize) : normalize(20)}
|
|
39
|
-
style={styles.icon}
|
|
40
|
-
/>
|
|
41
|
-
<Text
|
|
42
|
-
numberOfLines={1}
|
|
43
|
-
style={[
|
|
44
|
-
styles.text,
|
|
45
|
-
{
|
|
46
|
-
width: isNU(data?.textwidth) ? normalize(data?.textwidth) : normalize(50),
|
|
47
|
-
color: data?.fontcolor != undefined ? data?.fontcolor : '#fff',
|
|
48
|
-
textAlign: data?.textAlign != undefined ? data?.textAlign : 'center',
|
|
49
|
-
fontSize: data?.size != undefined ? normalize(data?.size) : normalize(10),
|
|
50
|
-
fontWeight: data?.fontWeight != undefined ? data?.fontWeight : 'normal',
|
|
51
|
-
},
|
|
52
|
-
]}
|
|
53
|
-
>
|
|
54
|
-
{data?.displaytext != undefined ? data?.displaytext : ''}
|
|
55
|
-
</Text>
|
|
56
|
-
</View>
|
|
57
|
-
</TouchableOpacity>
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
function getCallBack(item) {
|
|
61
|
-
callBack(item);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const styles = StyleSheet.create({
|
|
66
|
-
button: {
|
|
67
|
-
alignItems: 'center',
|
|
68
|
-
justifyContent: 'center',
|
|
69
|
-
paddingHorizontal: 0,
|
|
70
|
-
paddingBottom: 0,
|
|
71
|
-
paddingTop: 0,
|
|
72
|
-
},
|
|
73
|
-
contentContainer: {
|
|
74
|
-
alignItems: 'center',
|
|
75
|
-
justifyContent: 'center',
|
|
76
|
-
},
|
|
77
|
-
icon: {
|
|
78
|
-
// Add any additional icon styling here
|
|
79
|
-
},
|
|
80
|
-
text: {
|
|
81
|
-
// Base text styles if needed
|
|
82
|
-
},
|
|
83
|
-
});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Text,
|
|
4
|
-
View,
|
|
5
|
-
ScrollView,
|
|
6
|
-
Dimensions,
|
|
7
|
-
FlatList,
|
|
8
|
-
TouchableOpacity,
|
|
9
|
-
TextInput,
|
|
10
|
-
Alert,
|
|
11
|
-
} from 'react-native';
|
|
12
|
-
import AwesomeButton from 'react-native-really-awesome-button';
|
|
13
|
-
import { normalize } from '../Common/ComponentFunctions';
|
|
14
|
-
import HOCIcons from '../HOC/HOCIcons';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export default function CAwesomeMoreButtonLIS(props) {
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<AwesomeButton
|
|
21
|
-
onPress={() => { props.disablepress ? null : props.callback(props.data); }}
|
|
22
|
-
onLongPress={() => { props.enablelongpress ? props.callback(props.data) : null; }}
|
|
23
|
-
borderRadius={props.buttonstyle.borderRadius}
|
|
24
|
-
borderWidth={props.buttonstyle.borderWidth}
|
|
25
|
-
height={props.buttonstyle.height}
|
|
26
|
-
width={props.buttonstyle.width}
|
|
27
|
-
backgroundColor={props.buttonstyle.backgroundColor}
|
|
28
|
-
paddingHorizontal={props.buttonstyle.paddingHorizontal}
|
|
29
|
-
raiseLevel={2}
|
|
30
|
-
paddingBottom={props.buttonstyle.paddingBottom}
|
|
31
|
-
borderColor={props.buttonstyle.borderColor}
|
|
32
|
-
paddingTop={props.buttonstyle.paddingTop}
|
|
33
|
-
style={props.buttonstyle.style}
|
|
34
|
-
>
|
|
35
|
-
<View style={props.viewstyle}>
|
|
36
|
-
{props.icon ?
|
|
37
|
-
<HOCIcons.Icons
|
|
38
|
-
icongroup={props.icon.icongroup}
|
|
39
|
-
name={props.icon.name}
|
|
40
|
-
color={props.icon.color}
|
|
41
|
-
size={props.icon.size}
|
|
42
|
-
style={props.icon.style}
|
|
43
|
-
/>
|
|
44
|
-
: null}
|
|
45
|
-
{props.text ?
|
|
46
|
-
<Text adjustsFontSizeToFit style={props.text}>
|
|
47
|
-
{props.displaytext != null && props.displaytext != undefined ? props.displaytext : null}
|
|
48
|
-
</Text>
|
|
49
|
-
: null}
|
|
50
|
-
</View>
|
|
51
|
-
</AwesomeButton>
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
}
|