@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
@@ -5,7 +5,7 @@ import CText from '../CustomComponents/CText';
5
5
  import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
6
6
  import { normalize } from '../CommonStyle/componentStyle';
7
7
  import moment from 'moment';
8
- import { Global } from '../Common/Global';
8
+ import { Global } from '../../../../../src/Common/Global';
9
9
  import { isNU, ValueCheck } from '../CommonStyle/ComponentFunctions';
10
10
  import HOCIcons from '../HOC/HOCIcons';
11
11
 
@@ -5,7 +5,7 @@ import CText from '../CustomComponents/CText';
5
5
  import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
6
6
  import { normalize } from '../CommonStyle/componentStyle';
7
7
  import moment from 'moment';
8
- import { Global } from '../Common/Global';
8
+ import { Global } from '../../../../../src/Common/Global';
9
9
  import { isNU, ValueCheck } from '../CommonStyle/ComponentFunctions';
10
10
  import HOCIcons from '../HOC/HOCIcons';
11
11
 
@@ -6,7 +6,7 @@ import moment from 'moment';
6
6
  import { normalize } from '../CommonStyle/componentStyle';
7
7
  import { isNU, ValueCheck } from '../CommonStyle/ComponentFunctions';
8
8
  import { MaterialCommunityIcons } from '../Common/Icons';
9
- import { Global } from '../Common/Global';
9
+ import { Global } from '../../../../../src/Common/Global';
10
10
 
11
11
  const SDateTimePickerNew = props => {
12
12
  // State management
@@ -378,4 +378,4 @@ const SDateTimePickerNew = props => {
378
378
  );
379
379
  };
380
380
 
381
- export default SDateTimePickerNew;
381
+ export default SDateTimePickerNew;
@@ -6,13 +6,13 @@ import popupStyles, {
6
6
  getListviewItem,
7
7
  getListviewItemText,
8
8
  } from '../CommonStyle/PopupStyle';
9
- import { APIURL } from '../Common/apiConstants';
9
+ import { APIURL } from '../../../../../src/Common/apiConstants';
10
10
  import { Dimensions } from 'react-native';
11
11
  import SearchLoader from '../Custom/SearchLoader';
12
12
  import AntDesign from 'react-native-vector-icons/AntDesign';
13
13
  import SAlphabet from './SAlphabet';
14
14
  import Icons from '../Common/Icons';
15
- import { Global } from '../Common/Global';
15
+ import { Global } from '../../../../../src/Common/Global';
16
16
  import { ValueCheck, isNU, notifyMessage } from '../CommonStyle/ComponentFunctions';
17
17
  import HOCIcons from '../HOC/HOCIcons';
18
18
  import CModalOverlay from '../CustomComponents/CModalOverlay';
@@ -447,4 +447,4 @@ const layoutstyles = StyleSheet.create({
447
447
  },
448
448
  });
449
449
 
450
- export default SDropDownGenerate;
450
+ export default SDropDownGenerate;
@@ -8,10 +8,10 @@ import Icons from '../Common/Icons';
8
8
  import { FlashList } from '@shopify/flash-list';
9
9
  import CFooterView from '../CustomComponents/CFooterView';
10
10
  import HOCIcons from '../HOC/HOCIcons';
11
- import CAwesomeButton from '../CustomComponents/CAwesomeButtonLab';
12
- import themes from '../Common/CommonTheme';
13
- import HView from '../HOC/HView';
14
- import { Global } from '../Common/Global';
11
+ import CAwesomeButton from '../CustomComponents/CAwesomeButton';
12
+ import themes from '../../../../../src/Common/CommonTheme'
13
+ import HView from '../../../../../src/HOC/HView';
14
+ import { Global } from '../../../../../src/Common/Global';
15
15
  var searchResult = [];
16
16
 
17
17
  const SDropDownHoc = props => {
@@ -17,7 +17,7 @@ import popupStyles, {
17
17
  getListviewItem,
18
18
  getListviewItemText,
19
19
  } from '../CommonStyle/PopupStyle';
20
- import { APIURL } from '../Common/apiConstants';
20
+ import { APIURL } from '../../../../../src/Common/apiConstants';
21
21
  import { Dimensions } from 'react-native';
22
22
  import SearchLoader from '../Custom/SearchLoader';
23
23
  import AntDesign from 'react-native-vector-icons/AntDesign';
@@ -7,10 +7,10 @@ import {
7
7
  MenuOption,
8
8
  MenuTrigger,
9
9
  } from 'react-native-popup-menu';
10
- import { APIURL } from '../Common/apiConstants';
10
+ import { APIURL } from '../../../../../src/Common/apiConstants';
11
11
  import Icons from '../Common/Icons';
12
12
  import NetworkServiceCall from '../Common/NetworkServiceCall';
13
- import { Global } from '../Common/Global';
13
+ import { Global } from '../../../../../src/Common/Global';
14
14
  import { getLoading, isBNU, isBNUL, isNU, ValueCheck } from '../CommonStyle/ComponentFunctions';
15
15
 
16
16
  const SMenuBox = (props) => {
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect, useRef } from 'react';
2
2
  import { View, Text, TextInput, TouchableOpacity, FlatList, Image, Dimensions, StyleSheet, Keyboard } from 'react-native';
3
- import { APIURL } from '../Common/apiConstants';
4
- import { Global } from '../Common/Global';
3
+ import { APIURL } from '../../../../../src/Common/apiConstants';
4
+ import { Global } from '../../../../../src/Common/Global';
5
5
  import Icons from '../Common/Icons';
6
6
  import NetworkServiceCall from '../Common/NetworkServiceCall';
7
7
  import { ArrayCheck, ValueCheck, getLoading, isNU, isNUQZ, notifyMessage } from '../CommonStyle/ComponentFunctions';
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import { View, TextInput, Dimensions, TouchableOpacity, Text } from 'react-native';
3
3
  import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
4
- import { Global } from '../Common/Global';
4
+ import { Global } from '../../../../../src/Common/Global';
5
5
  import { normalize } from '../CommonStyle/componentStyle';
6
6
  import CText from '../CustomComponents/CText';
7
7
 
@@ -5,7 +5,7 @@ import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityI
5
5
  import { normalize } from '../CommonStyle/componentStyle';
6
6
  import moment from 'moment';
7
7
  import { ValueCheck, isBNUL, isNU, notifyMessage } from '../CommonStyle/ComponentFunctions';
8
- import { Global } from '../Common/Global';
8
+ import { Global } from '../../../../../src/Common/Global';
9
9
  import HOCIcons from '../HOC/HOCIcons';
10
10
 
11
11
  export default function STimePicker(props) {
@@ -10,7 +10,7 @@ import Entypo from 'react-native-vector-icons/Entypo';
10
10
  import FontAwesome from 'react-native-vector-icons/FontAwesome';
11
11
  import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
12
12
  import NetworkServiceCall from '../Common/NetworkServiceCall';
13
- import { APIURL } from '../Common/apiConstants';
13
+ import { APIURL } from '../../../../../src/Common/apiConstants';
14
14
  import { isNU, notifyMessage } from '../CommonStyle/ComponentFunctions';
15
15
  import SDropDownDosage from '../CustomComponents/SDropDownDosage';
16
16
  import SearchLoader from '../Custom/SearchLoader';
@@ -18,18 +18,16 @@ import { getPopupHeadingOptionText } from '../CommonStyle/PopupStyle';
18
18
  import { colors } from '../CommonStyle/commonStyle';
19
19
  import PreviewDosage from '../Custom/PreviewDosage';
20
20
  import AntDesign from 'react-native-vector-icons/AntDesign';
21
- import { Global } from '../Common/Global';
21
+ import { Global } from '../../../../../src/Common/Global';
22
22
  import STimingSwitch from './STimingSwitch';
23
23
  import moment from 'moment';
24
24
  import AwesomeButton from 'react-native-really-awesome-button';
25
25
  import CAwesomeButton from '../CustomComponents/CAwesomeButton';
26
- import EmrResponseComponentContext from '../Handlers/emrResponseComponentContext';
27
26
 
28
27
 
29
28
  var searchResult = [];
30
29
  export default function STimingDropDownNew(props) {
31
30
  // console.log("------JJ-------TT----------HH-----------JJ--------UU------",JSON.stringify(props.completeData))
32
- const { responseJSON, setResponseJSON } = useContext(EmrResponseComponentContext);
33
31
  const [timingsArray, setTimingsArray] = useState();
34
32
  const [description, setDescription] = useState('');
35
33
  const [tempString, settempString] = useState([]);
@@ -61,7 +59,6 @@ export default function STimingDropDownNew(props) {
61
59
  });
62
60
  }
63
61
 
64
- const hosumrclassificationnature = responseJSON.consultation[responseJSON.natureindex].hosumrclassificationnature;
65
62
 
66
63
  function getTimings(params) {
67
64
  setDropdownShow(true);
@@ -1264,7 +1261,6 @@ export default function STimingDropDownNew(props) {
1264
1261
  var output = {};
1265
1262
  output.groups = {};
1266
1263
  output.groups.procedurename = 'homrtimingdetaildelete';
1267
- output.groups.consultationdata = responseJSON.consultationdata;
1268
1264
  output.groups.hosumrclassificationnature = hosumrclassificationnature;
1269
1265
  output.groups.deleteArray = [timingsArray[objWithIdIndex]];
1270
1266
 
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import { View, Text, Switch } from 'react-native';
3
- import { Global } from '../Common/Global';
3
+ import { Global } from '../../../../../src/Common/Global';
4
4
  import { ValueCheck } from '../CommonStyle/ComponentFunctions';
5
5
  import { normalize } from '../CommonStyle/componentStyle';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet, View} from 'react-native';
3
- import { Global } from '../Common/Global';
3
+ import { Global } from '../../../../../src/Common/Global';
4
4
 
5
5
  const CContainerView = props => {
6
6
 
@@ -1,13 +1,13 @@
1
1
  import React, { useContext, useState } from 'react';
2
2
  import { StyleSheet, View, ImageBackground, Text, Dimensions } from 'react-native';
3
- import { Global } from '../Common/Global';
3
+ import { Global } from '../../../../../src/Common/Global';
4
4
  import { useNavigation } from '../Navigation/useNavigation';
5
5
  import CCard from '../Custom/CCard';
6
6
  import { normalize } from '../CommonStyle/componentStyle';
7
7
  import { isNU } from '../CommonStyle/ComponentFunctions';
8
8
  import CTemplateCard from '../Custom/CTemplateCard';
9
- import AppContext from '../Handlers/AppContext';
10
- import { APIURL } from '../Common/apiConstants';
9
+ import AppContext from '../../../../../src/Handlers/AppContext';
10
+ import { APIURL } from '../../../../../src/Common/apiConstants';
11
11
 
12
12
  const CDetailView = (props) => {
13
13
 
@@ -13,22 +13,22 @@ import {
13
13
  } from 'react-native';
14
14
  import Ionicons from 'react-native-vector-icons/Ionicons';
15
15
  import Feather from 'react-native-vector-icons/Feather';
16
- import { Global } from '../Common/Global';
16
+ import { Global } from '../../../../../src/Common/Global';
17
17
  import CSliderMenu from '../Custom/CSliderMenu';
18
18
  import { normalize } from '../CommonStyle/componentStyle';
19
- import NotificationContext from '../Handlers/NoticationsContext';
19
+ import NotificationContext from '../../../../../src/Handlers/NoticationsContext';
20
20
  import moment from 'moment';
21
21
  import { ValueCheck, isNUQZ } from '../CommonStyle/ComponentFunctions';
22
22
  import ABlink from '../Alerts/ABlink';
23
23
  import COverlay from '../CustomComponents/COverlay';
24
24
  import OUserView from '../Custom/OUserView';
25
25
  import CBackHandler from '../CustomComponents/CBackHandler';
26
- import InsureResponseComponentContext from '../Handlers/insureResponseComponentContext';
26
+ // import InsureResponseComponentContext from '../../../../../src/Handlers/insureResponseComponentContext';
27
27
  import CNetworkStatus from '../CustomComponents/CNetworkStatus';
28
28
  import { useNavigation } from '../Navigation/useNavigation';
29
29
 
30
30
  const HeaderBlock = (props) => {
31
- const { responseJSON, setResponseJSON } = useContext(InsureResponseComponentContext);
31
+ // const { responseJSON, setResponseJSON } = useContext(InsureResponseComponentContext);
32
32
  const [isShowSlidermenu, setIsShowSlidermenu] = useState(false);
33
33
  const [backHandler, setBackHandler] = useState(false);
34
34
  const [backHandlerLogOut, setBackHandlerLogOut] = useState(false);
@@ -189,7 +189,7 @@ const HeaderBlock = (props) => {
189
189
  </TouchableOpacity>
190
190
  <ScrollView>
191
191
  <Text selectable={true} style={styles.jsonText}>
192
- {JSON.stringify(responseJSON, null, 2)}
192
+ {/* {JSON.stringify(responseJSON, null, 2)} */}
193
193
  </Text>
194
194
  </ScrollView>
195
195
  </View>
@@ -13,18 +13,17 @@ import {
13
13
  Animated,
14
14
  TextInput,
15
15
  } from 'react-native';
16
- import { APIURL, BASE_URL, imageURL } from '../Common/apiConstants';
17
- import { Global } from '../Common/Global';
16
+ import { APIURL, BASE_URL, imageURL } from '../../../../../src/Common/apiConstants';
17
+ import { Global } from '../../../../../src/Common/Global';
18
18
  import Icons from '../Common/Icons';
19
19
  import { normalize } from '../CommonStyle/componentStyle';
20
- import NotificationContext from '../Handlers/NoticationsContext';
20
+ import NotificationContext from '../../../../../src/Handlers/NoticationsContext';
21
21
  import moment from 'moment';
22
22
  import axios from 'axios';
23
23
  import { getLoading, isNU } from '../CommonStyle/ComponentFunctions';
24
24
  import NetworkServiceCall from '../Common/NetworkServiceCall';
25
25
  import ABlink from '../Alerts/ABlink';
26
26
  import { BackHandler } from 'react-native';
27
- // import BiometricModal from 'react-native-biometric-verifier';
28
27
  import { useNavigation } from '../Navigation/useNavigation';
29
28
 
30
29
  export default function INVLoginLayout(props) {
@@ -10,8 +10,8 @@ import {
10
10
  Image
11
11
  } from "react-native";
12
12
 
13
- import { normalize } from "react-native-elements";
14
- import { APIURL } from "../Common/apiConstants";
13
+ import { normalize } from "../CommonStyle/componentStyle";
14
+ import { APIURL } from "../../../../../src/Common/apiConstants";
15
15
 
16
16
  export default function Loader({
17
17
  visible = true,
@@ -1,56 +0,0 @@
1
- import React, { useContext, useState } from 'react';
2
- import { View, Text, Dimensions, TouchableOpacity ,ScrollView} from 'react-native';
3
- import ABlink from '../Alerts/ABlink';
4
- import { Global } from '../Common/Global';
5
- import Icons from '../Common/Icons';
6
- import { ArrayCheck, ValueCheck } from '../CommonStyle/ComponentFunctions';
7
- import { normalize } from '../CommonStyle/componentStyle';
8
- import EmrResponseComponentContext from '../Handlers/emrResponseComponentContext';
9
-
10
- export default function HAbsolute(props) {
11
- const { responseJSON, setResponseJSON } = useContext(EmrResponseComponentContext);
12
- const [isShow, setIsShow] = useState(true);
13
- // console.log("Response consultation edittttttttttt", JSON.stringify(responseJSON))
14
- return (
15
- <View style={{ position: 'absolute', backgroundColor: 'transparent', top: Dimensions.get('screen').height * 0.1, zIndex: 1 }}>
16
-
17
- {ValueCheck(responseJSON) && ValueCheck(responseJSON.consultationEdit) && ArrayCheck(responseJSON.consultationEdit.moreButton) ?
18
- <TouchableOpacity
19
- onPress={() => setIsShow(!isShow)}
20
- style={{ flexDirection: 'row', backgroundColor: '#fff', alignItems: 'center', justifyContent: 'space-evenly' }}>
21
- {isShow ? <Text adjustsFontSizeToFit numberOfLines={1} style={{ fontSize: normalize(9), fontWeight: 'bold' }}>{'CLOSE'}</Text> : null}
22
- <ABlink>
23
- <Icons.FontAwesome name={isShow ? 'close' : 'hand-o-right'} color={Global.AppTheme.primary_color} size={normalize(15)} />
24
- </ABlink>
25
- </TouchableOpacity> : null}
26
-
27
- {isShow && ValueCheck(responseJSON) && ValueCheck(responseJSON.consultationEdit) ?
28
- <View style={{ maxHeight: Dimensions.get('screen').height * 0.57, backgroundColor: '#fff', flexDirection: 'row-reverse' }}>
29
-
30
- <View
31
- style={{ flexDirection: 'column', alignItems: 'center', paddingHorizontal: normalize(3), justifyContent: 'center'}}>
32
- <Icons.FontAwesome5 name={responseJSON.consultationEdit.iconname} color={Global.AppTheme.primary_color} size={normalize(15)} style={{ paddingRight: normalize(0) }} />
33
- <Text style={{ width: normalize(10), fontSize: normalize(12), fontWeight: 'bold'}}>{responseJSON.consultationEdit.heading}</Text>
34
- </View>
35
-
36
- <ScrollView showsVerticalScrollIndicator={false}>
37
- {ArrayCheck(responseJSON.consultationEdit.moreButton) ? responseJSON.consultationEdit.moreButton.map((iconsFoot, i) => {
38
- return (
39
- <TouchableOpacity key={i}
40
- onPress={() => props.callBack != undefined ? props.callBack(iconsFoot) : null}
41
- style={{
42
- backgroundColor: iconsFoot.color, alignItems: 'center', width: normalize(45), marginLeft: normalize(0),
43
- padding: normalize(3), paddingVertical: normalize(7), borderRadius: normalize(4), borderWidth: 1, borderColor: 'grey',
44
- }}>
45
- <View style={{ alignItems: 'center', justifyContent: 'center' }}>
46
- <Icons.FontAwesome5 name={iconsFoot.iconname} size={normalize(20)} color={Global.AppTheme.primary_color} style={{}} />
47
- <Text adjustsFontSizeToFit numberOfLines={1} style={{ fontSize: normalize(10), fontWeight: 'bold' }}>{iconsFoot.name}</Text>
48
- </View>
49
- </TouchableOpacity>
50
- );
51
- }) : null}
52
- </ScrollView>
53
- </View> : null}
54
- </View>
55
- );
56
- }
@@ -1,105 +0,0 @@
1
- import { View, Text, Dimensions } from 'react-native';
2
- import React, { useState, useContext } from 'react';
3
- import { normalize } from '../CommonStyle/componentStyle';
4
- import STextInput from '../StaticComponents/STextInput';
5
- import { Global } from '../Common/Global';
6
- import { ValueCheck } from '../CommonStyle/ComponentFunctions';
7
- import EmrResponseComponentContext from '../Handlers/emrResponseComponentContext';
8
- import SDropDownNew from '../StaticComponents/SDropDownNew';
9
- import Loader from '../Custom/Loader';
10
- import Dropdown from '../Json/Dropdown.json';
11
-
12
- export default function HDiscontinue(props) {
13
- const { responseJSON, setResponseJSON } = useContext(EmrResponseComponentContext);
14
- const [data, setData] = useState(props.data);
15
- const [isLoading, setIsLoading] = useState(false);
16
- const [refresh, setRefresh] = useState(0);
17
- // console.log("M JJJJ LLLLLL MMMMM NNNNNNNNNNNNNNN", JSON.stringify(data))
18
-
19
- return (
20
- <View style={{ flex: 1, paddingHorizontal: normalize(2), marginTop: normalize(2) }}>
21
- <View style={{ alignItems: 'center' }}>
22
- <Text style={{ fontSize: normalize(10), fontWeight: 'bold', color: Global.AppTheme.primary_color }}>
23
- {ValueCheck(responseJSON) && ValueCheck(responseJSON.consultationEdit) && ValueCheck(responseJSON.consultationEdit.heading) ? responseJSON.consultationEdit.heading + ' STATUS' : 'STATUS'}</Text>
24
- </View>
25
-
26
- <View style={{ paddingHorizontal: normalize(8), marginTop: normalize(-5) }}>
27
- <Text style={{ fontSize: normalize(12), paddingHorizontal: 5 }}>Status</Text>
28
- <SDropDownNew
29
- dropdowndata={getDropDownCode(ValueCheck(data.statuscode)
30
- ? data.statuscode
31
- : 'B')}
32
- onChangeData={val =>
33
- val == undefined ? null : getStatusCode(val)}
34
- editable={false}
35
- dropdownarray={Dropdown.DDStatusNature}
36
- widthArr={Dimensions.get('screen').width * 0.8}
37
- iconName={'info'}
38
- refreshCount={val =>
39
- val == undefined ? null : console.log('Refresh')
40
- }
41
- />
42
- </View>
43
-
44
- {ValueCheck(props.type) && props.type == 1 && data.statuscode == 'S' ?
45
- <View style={{ paddingHorizontal: normalize(8), marginTop: normalize(5) }}>
46
- <Text style={{ fontSize: normalize(12), paddingHorizontal: 5 }}>Substitution</Text>
47
- <SDropDownNew
48
- dropdownapi={"emr/emrcommonget/rndddaconsultationaddparameter 20,''"}
49
- dropdowndata={''}
50
- onChangeData={val =>
51
- val == undefined ? null : (data.hosumrcode = val.datavalue,
52
- data.assignedstatusname = val.displayvalue,
53
- data.content = val.content)}
54
- editable={true}
55
- widthArr={Dimensions.get('screen').width * 0.8}
56
- iconName={'file'}
57
- refreshCount={val =>
58
- val == undefined ? null : console.log('Refresh')
59
- }
60
- />
61
- </View> : null}
62
-
63
- <View style={{ paddingHorizontal: normalize(5), marginTop: normalize(-3) }}>
64
- <STextInput
65
- data={{
66
- value: data.statusreason != undefined
67
- && data.statusreason != null ? data.statusreason : '',
68
- itemwidth: Dimensions.get('screen').width * 0.726,
69
- displaytext: 'Reason',
70
- validation: 2,
71
- }}
72
- callBack={val => (val == undefined ? null : (data.statusreason = val))} />
73
- </View>
74
-
75
- {isLoading ?
76
- <Loader displaytext={true} />
77
- : null}
78
- </View>
79
- );
80
-
81
- function getStatusCode(val) {
82
- if (val.datavalue == 'S') {
83
- data.hosumrcode = 0;
84
- data.content = '';
85
- data.statusremarks = data.assignedstatusname + ' SUBSTITUTED.';
86
- data.assignedstatusname = '';
87
- }
88
- data.statuscode = val.datavalue;
89
- data.status = val.displayvalue;
90
- setRefresh(refresh + 1);
91
- }
92
-
93
- function getDropDownCode(details) {
94
- let dropdownvaluenew;
95
- Dropdown.DDStatusNature != null
96
- ? Dropdown.DDStatusNature.map(val => {
97
- if (val.datavalue == details) {
98
- dropdownvaluenew = val.displayvalue;
99
- }
100
- })
101
- : null;
102
- return dropdownvaluenew;
103
- }
104
-
105
- }
@@ -1,99 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { View, TouchableOpacity, Dimensions } from 'react-native';
3
- import { normalize } from '../CommonStyle/componentStyle';
4
- import AntDesign from 'react-native-vector-icons/AntDesign';
5
- import CNotesInstructions from '../CustomComponents/CNotesInstructions';
6
- import CComments from '../CustomComponents/CComments';
7
- // import AddParameter from '../InvTemplate/AddParameter';
8
- // import AddTemplate from '../Templates/AddTemplate';
9
- // import DeleteParameter from '../InvTemplate/DeleteParameter';
10
- import CCalendar from '../CustomComponents/CCalendar';
11
- import CRemarks from '../CustomComponents/CRemarks';
12
- import CDropdownSelect from '../CustomComponents/CDropdownSelect';
13
- import CAssessmentDelete from '../CustomComponents/CAssessmentDelete';
14
- // import AddScreenOverlay from '../Templates/AddScreenOverlay';
15
- import CAddColumn from '../CustomComponents/CAddColumn';
16
- import FontAwesome5Icon from 'react-native-vector-icons/FontAwesome5';
17
- import CRowAdd from '../CustomComponents/CRowAdd';
18
- import CSummaryDropDown from '../CustomComponents/CSummaryDropDown';
19
- import SwipeLeftView from '../Screens/SwipeLeftView';
20
- import { Global } from '../Common/Global';
21
- import RawMaterial from '../Components/RawMaterial';
22
- import EquipmentPage from '../Components/EquipmentPage';
23
- import ByProductPage from '../Components/ByProductPage';
24
- import StageByProduct from '../Components/StageByProduct';
25
- import CDynamicReportScreen from '../CustomComponents/CDynamicReportScreen';
26
- import COperatorsOverlay from '../CustomComponents/COperatorsOverlay';
27
- import DiscriptiveViewOverlay from '../CustomComponents/DiscriptiveViewOverlay';
28
- import CDateOperatorsOverlay from '../CustomComponents/CDateOperatorsOverlay';
29
- import CTextOperatorsOverlay from '../CustomComponents/CTextOperatorsOverlay';
30
- import CModalOverlay from '../CustomComponents/CModalOverlay';
31
-
32
- function HOverlay(props) {
33
- const [overlay, setOverlay] = useState(true);
34
- const components = {
35
- // SetUpVitalSign: SetUpVitalSign,
36
- CNotesOrInstructions: CNotesInstructions,
37
- CComments: CComments,
38
- // AddParameterScreen: AddParameter,
39
- // ConsultationPreview: ConsultationPreview,
40
- // AddTemplate: AddTemplate,
41
- // DeleteParameter: DeleteParameter,
42
- CCalendar: CCalendar,
43
- CRemarks: CRemarks,
44
- CDropdownSelect: CDropdownSelect,
45
- CAssessmentDelete: CAssessmentDelete,
46
- // AddScreenOverlay: AddScreenOverlay,
47
- CAddColumn: CAddColumn,
48
- CRowAdd: CRowAdd,
49
- CSummaryDropDown: CSummaryDropDown,
50
- // SetUpComponents: SetUpComponents,
51
- RawMaterial: RawMaterial,
52
- EquipmentPage: EquipmentPage,
53
- ByProductPage: ByProductPage,
54
- StageByProduct: StageByProduct,
55
- CDynamicReportScreen: CDynamicReportScreen,
56
- COperatorsOverlay: COperatorsOverlay,
57
- DiscriptiveViewOverlay: DiscriptiveViewOverlay,
58
- CDateOperatorsOverlay: CDateOperatorsOverlay,
59
- CTextOperatorsOverlay: CTextOperatorsOverlay,
60
- // SwipeLeftView: SwipeLeftView
61
- };
62
- const ViewHOCComponent = components[props.component];
63
- return (
64
- <CModalOverlay
65
- visible={overlay}
66
- onClose={() => (props.visibility(false))}
67
- closeOnTouchOutside
68
- animationType="fadeInUp"
69
- // easing
70
- containerStyle={{ backgroundColor: 'rgba(0, 0, 0, 0.20)' }}
71
- // animationDuration={500}
72
- childrenWrapperStyle={getPopupContainerStyle()}>
73
- <View style={{ position: 'absolute', right: 14, top: 10, zIndex: 1 }}>
74
- <TouchableOpacity
75
- onPress={() => setOverlay(false, props.visibility(false))}
76
- >
77
- <FontAwesome5Icon name={'angle-double-down'} size={normalize(20)} color={Global.AppTheme.primary_color} />
78
- </TouchableOpacity>
79
- </View>
80
- <ViewHOCComponent
81
- {...props}
82
- />
83
- </CModalOverlay>
84
- );
85
-
86
- function getPopupContainerStyle() {
87
- return {
88
- position: 'absolute',
89
- bottom: 0,
90
- top: Dimensions.get('screen').height * 0.12,
91
- width: Dimensions.get('window').width,
92
- borderRadius: 20,
93
- borderWidth: 2,
94
- borderColor: '#e0e0e0',
95
- paddingHorizontal: normalize(5),
96
- };
97
- }
98
- }
99
- export default HOverlay;