@eohjsc/react-native-smart-city 0.7.3 → 0.7.4

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 (274) hide show
  1. package/assets/images/Automation-fill.svg +85 -0
  2. package/assets/images/Map/LocationPin.svg +10 -0
  3. package/assets/images/Scenario-filled.svg +22 -0
  4. package/assets/images/schedule-fill.svg +48 -0
  5. package/package.json +20 -17
  6. package/src/commons/Action/ItemQuickAction.js +1 -1
  7. package/src/commons/Action/__test__/ItemQuickAction.test.js +6 -6
  8. package/src/commons/ActionGroup/NumberUpDownActionTemplate.js +3 -3
  9. package/src/commons/ActionGroup/OnOffSmartLock/AutoLock/ButtonWrapper.js +3 -3
  10. package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/__test__/index.test.js +5 -5
  11. package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/index.js +3 -3
  12. package/src/commons/ActionGroup/OnOffSmartLock/SetupGeneratePasscode/ButtonWrapper.js +2 -2
  13. package/src/commons/ActionGroup/OnOffTemplate/OnOffSimpleTemplate.js +2 -2
  14. package/src/commons/ActionGroup/OptionsDropdownActionTemplate.js +2 -2
  15. package/src/commons/ActionGroup/SliderRangeTemplate.js +7 -7
  16. package/src/commons/ActionGroup/SmartTiviActionTemplate/SmartTiviActionTemplate.js +2 -2
  17. package/src/commons/ActionGroup/SmartTiviActionTemplate/component/CircleButton.js +5 -5
  18. package/src/commons/ActionGroup/SmartTiviActionTemplate/component/ControlPlay.js +5 -5
  19. package/src/commons/ActionGroup/TerminalBoxTemplate.js +2 -2
  20. package/src/commons/ActionGroup/TextBoxTemplate.js +2 -2
  21. package/src/commons/ActionGroup/ThreeButtonTemplate/__test__/ThreeButtonCircle.test.js +2 -2
  22. package/src/commons/ActionGroup/ThreeButtonTemplate/__test__/ThreeButtonDefault.test.js +2 -2
  23. package/src/commons/ActionGroup/TimerActionTemplate.js +6 -3
  24. package/src/commons/ActionGroup/TwoButtonTemplate/index.js +2 -2
  25. package/src/commons/ActionGroup/__test__/ColorPickerTemplate.test.js +9 -10
  26. package/src/commons/ActionGroup/__test__/OnOffSmartLock.test.js +5 -5
  27. package/src/commons/ActionGroup/__test__/OnOffTemplate.test.js +5 -5
  28. package/src/commons/ActionGroup/__test__/OptionsDropdownTemplate.test.js +8 -8
  29. package/src/commons/ActionGroup/__test__/StatesGridActionTemplate.test.js +3 -3
  30. package/src/commons/ActionGroup/__test__/TimerActionTemplate.test.js +6 -6
  31. package/src/commons/ActionGroup/__test__/TwoButtonTemplate.test.js +1 -1
  32. package/src/commons/ActionGroup/__test__/index.test.js +6 -6
  33. package/src/commons/ActionGroup/index.js +2 -2
  34. package/src/commons/ActionTemplate/__test__/index.test.js +4 -4
  35. package/src/commons/Automate/ItemAutomate.js +9 -41
  36. package/src/commons/Automate/ItemConditionScriptDetail.js +109 -0
  37. package/src/commons/Automate/ItemConditionScriptDetailStyles.js +46 -0
  38. package/src/commons/Automate/__test__/ItemAutomate.test.js +0 -21
  39. package/src/commons/BackDefault/index.js +2 -2
  40. package/src/commons/BottomButtonView/index.js +1 -0
  41. package/src/commons/ButtonPopup/index.js +3 -2
  42. package/src/commons/ChartAggregationOption/__test__/FourButtonFilterHistory.test.js +2 -2
  43. package/src/commons/Dashboard/MyPinnedSharedUnit/__test__/MyPinnedSharedUnit.test.js +8 -9
  44. package/src/commons/Dashboard/MyUnit/__test__/MyUnit.test.js +7 -7
  45. package/src/commons/DateTimeRangeChange/DateTimeButton.js +3 -3
  46. package/src/commons/DateTimeRangeChange/index.js +1 -1
  47. package/src/commons/Device/ConnectedViewHeader.js +2 -2
  48. package/src/commons/Device/Emergency/EmergencyDetail.js +3 -3
  49. package/src/commons/Device/Emergency/__test__/EmergencyButton.test.js +1 -1
  50. package/src/commons/Device/FlatListItems.js +20 -19
  51. package/src/commons/Device/Hanet/ItemHanetDevice.js +3 -3
  52. package/src/commons/Device/Hanet/ItemHanetDevice.test.js +3 -3
  53. package/src/commons/Device/HorizontalBarChart.js +54 -34
  54. package/src/commons/Device/ItemAddNew/index.js +2 -2
  55. package/src/commons/Device/ItemDevice.js +5 -21
  56. package/src/commons/Device/SonosSpeaker/index.js +3 -3
  57. package/src/commons/Device/WaterPurifierStatus/AlertStatusMachine.js +2 -2
  58. package/src/commons/Device/WaterQualitySensor/QualityIndicatorsItem.js +6 -2
  59. package/src/commons/DisplayChecking/index.js +2 -2
  60. package/src/commons/EmergencyButton/AlertSendConfirm.js +2 -2
  61. package/src/commons/FieldTemplate/ChooseUserField/index.js +2 -2
  62. package/src/commons/FieldTemplate/PasscodeField/__test__/index.test.js +3 -3
  63. package/src/commons/FieldTemplate/ScheduleField/__test__/index.test.js +6 -6
  64. package/src/commons/FlatListDnD/__test__/index.test.js +4 -4
  65. package/src/commons/FlatListDnD/index.js +12 -9
  66. package/src/commons/Grid/GridItem.js +10 -2
  67. package/src/commons/GroupCheckBox/__test__/GroupCheckBox.test.js +3 -3
  68. package/src/commons/Header/HeaderCustom.js +2 -2
  69. package/src/commons/Header/__test__/HeaderCT.test.js +3 -3
  70. package/src/commons/HeaderAni/index.js +2 -2
  71. package/src/commons/IconComponent/index.js +3 -3
  72. package/src/commons/ImagePicker/__test__/ImagePicker.test.js +5 -5
  73. package/src/commons/MediaPlayerDetail/__test__/MediaPlayerDetail.test.js +6 -4
  74. package/src/commons/MenuActionMore/MenuActionMoreStyles.js +2 -1
  75. package/src/commons/MenuActionMore/index.js +1 -1
  76. package/src/commons/NavBar/NavBarStyles.js +1 -1
  77. package/src/commons/NavBar/index.js +2 -2
  78. package/src/commons/OneTapTemplate/NumberUpDownActionTemplate.js +3 -3
  79. package/src/commons/OneTapTemplate/__test__/StatesGridActionTemplate.test.js +1 -1
  80. package/src/commons/Popover/__test__/index.test.js +3 -3
  81. package/src/commons/Processing/__test__/Connecting.test.js +4 -4
  82. package/src/commons/SearchLocation/index.js +3 -3
  83. package/src/commons/SelectActionCard/index.js +2 -2
  84. package/src/commons/SelectSubUnit/index.js +6 -2
  85. package/src/commons/SelectUnit/__test__/SelectUnit.test.js +5 -5
  86. package/src/commons/Sharing/BtnRemoveMember.js +2 -2
  87. package/src/commons/Sharing/StationDevicePermissions.js +2 -2
  88. package/src/commons/SubUnit/DeviceTemplate/ConfigAndEvaluation/ConfigAndEvaluation.js +2 -2
  89. package/src/commons/SubUnit/DeviceTemplate/ConfigValue/ConfigValue.js +2 -2
  90. package/src/commons/SubUnit/DeviceTemplate/EvaluationOverConfig/EvaluationOverConfig.js +2 -2
  91. package/src/commons/SubUnit/OneTap/ItemOneTap.js +6 -7
  92. package/src/commons/SubUnit/OneTap/__test__/SubUnitAutomate.test.js +0 -2
  93. package/src/commons/SubUnit/OneTap/index.js +9 -8
  94. package/src/commons/SubUnit/__test__/ShortDetail.test.js +8 -8
  95. package/src/commons/Unit/HeaderUnit/index.js +30 -22
  96. package/src/commons/Unit/SharedUnit.js +7 -7
  97. package/src/commons/Widgets/IFrame/__tests__/IFrame.test.js +9 -13
  98. package/src/commons/Widgets/IFrameWithConfig/IFrameWithConfig.js +34 -2
  99. package/src/commons/Widgets/IFrameWithConfig/__tests__/IFrameWithConfig.test.js +88 -8
  100. package/src/commons/WrapParallaxScrollView/index.js +9 -10
  101. package/src/configs/API.js +1 -1
  102. package/src/configs/AccessibilityLabel.js +1 -0
  103. package/src/configs/Constants.js +3 -3
  104. package/src/configs/Theme.js +1 -1
  105. package/src/hooks/Common/__test__/useAndroidTranslucentStatusBar.test.js +5 -5
  106. package/src/hooks/IoT/__test__/useHomeAssistantConnection.test.js +12 -12
  107. package/src/hooks/IoT/__test__/useRemoteControl.test.js +14 -7
  108. package/src/hooks/IoT/__test__/useWatchConfigs.test.js +3 -3
  109. package/src/hooks/IoT/useRemoteControl.js +24 -13
  110. package/src/hooks/useMqtt.js +2 -2
  111. package/src/iot/RemoteControl/Bluetooth.js +19 -22
  112. package/src/iot/RemoteControl/Internet.js +13 -5
  113. package/src/iot/RemoteControl/__test__/Internet.test.js +7 -7
  114. package/src/navigations/EmergencyContactsStack.js +4 -3
  115. package/src/navigations/SharedStack.js +2 -0
  116. package/src/navigations/UnitStack.js +56 -57
  117. package/src/screens/AQIGuide/index.js +0 -2
  118. package/src/screens/ActivityLog/index.js +2 -2
  119. package/src/screens/AddLocationMaps/__test__/index.test.js +12 -12
  120. package/src/screens/AddLocationMaps/index.js +16 -19
  121. package/src/screens/AddLocationMaps/indexStyle.js +1 -0
  122. package/src/screens/AddNewGateway/RenameNewDevices.js +2 -2
  123. package/src/screens/AddNewGateway/SelectDeviceType.js +1 -1
  124. package/src/screens/AddNewGateway/ShareWifiPassword.js +16 -15
  125. package/src/screens/AddNewGateway/__test__/AddNewGateway.test.js +7 -7
  126. package/src/screens/AddNewGateway/__test__/ConnectingWifiDevice.test.js +8 -8
  127. package/src/screens/AddNewGateway/__test__/ConnectingZigbeeDevice.test.js +7 -7
  128. package/src/screens/AddNewGateway/__test__/RenameNewDevices.test.js +8 -8
  129. package/src/screens/AddNewGateway/__test__/ScanGatewayQR.test.js +5 -5
  130. package/src/screens/AddNewGateway/__test__/SelectDeviceUnit.test.js +4 -4
  131. package/src/screens/AddNewGateway/__test__/SelectModbusGateway.test.js +6 -6
  132. package/src/screens/AddNewGateway/__test__/SelectZigbeeGateway.test.js +6 -6
  133. package/src/screens/AddNewGateway/__test__/ShareWifiPassword.test.js +0 -4
  134. package/src/screens/AddNewGateway/hooks/__Tests__/useWifiManage.test.js +2 -2
  135. package/src/screens/AllGateway/DetailConfigActionModbus/__test__/index.test.js +6 -6
  136. package/src/screens/AllGateway/DeviceInternalDetail/__test__/index.test.js +19 -17
  137. package/src/screens/AllGateway/DeviceModbusDetail/__test__/index.test.js +19 -17
  138. package/src/screens/AllGateway/DeviceZigbeeDetail/__test__/index.test.js +18 -16
  139. package/src/screens/AllGateway/GatewayDetail/__test__/index.test.js +43 -35
  140. package/src/screens/AllGateway/GatewayInfo/__test__/index.test.js +38 -22
  141. package/src/screens/AllGateway/__test__/index.test.js +6 -6
  142. package/src/screens/AllGateway/components/Detail/__test__/index.test.js +3 -5
  143. package/src/screens/AllGateway/components/GatewayItem/__test__/index.test.js +3 -3
  144. package/src/screens/AllGateway/components/TabPaneCT/__test__/index.test.js +6 -6
  145. package/src/screens/AllGateway/hooks/__test__/index.test.js +2 -2
  146. package/src/screens/AllGateway/test-utils.js +3 -4
  147. package/src/screens/Automate/AddNewAction/ChooseAction.js +17 -3
  148. package/src/screens/Automate/AddNewAction/ChooseConfig.js +7 -6
  149. package/src/screens/Automate/AddNewAction/NewActionWrapper.js +8 -8
  150. package/src/screens/Automate/AddNewAction/SelectControlDevices.js +30 -20
  151. package/src/screens/Automate/AddNewAction/SelectMonitorDevices.js +17 -10
  152. package/src/screens/Automate/AddNewAction/SetupConfigCondition.js +58 -44
  153. package/src/screens/Automate/AddNewAction/SetupScriptDelay.js +1 -1
  154. package/src/screens/Automate/AddNewAction/SetupScriptNotify.js +3 -3
  155. package/src/screens/Automate/AddNewAction/Styles/SetupSensorStyles.js +20 -4
  156. package/src/screens/Automate/AddNewAction/__test__/ChooseAction.test.js +12 -12
  157. package/src/screens/Automate/AddNewAction/__test__/SelectControlDevices.test.js +14 -8
  158. package/src/screens/Automate/AddNewAction/__test__/SelectMonitorDevices.test.js +13 -7
  159. package/src/screens/Automate/AddNewAction/__test__/SetupConfigCondition.test.js +54 -15
  160. package/src/screens/Automate/AddNewAction/__test__/SetupScriptDelay.test.js +9 -9
  161. package/src/screens/Automate/AddNewAction/__test__/SetupScriptNotify.test.js +39 -10
  162. package/src/screens/Automate/AddNewAutoSmart/AddTypeSmart.js +10 -10
  163. package/src/screens/Automate/AddNewAutoSmart/__test__/AddNewAutoSmart.test.js +13 -8
  164. package/src/screens/Automate/Components/InputName.js +10 -7
  165. package/src/screens/Automate/EditActionsList/__tests__/UpdateActionScript.test.js +8 -8
  166. package/src/screens/Automate/EditActionsList/__tests__/UpdateDelayScript.test.js +6 -6
  167. package/src/screens/Automate/EditActionsList/__tests__/UpdateNotifyScript.test.js +7 -7
  168. package/src/screens/Automate/EditActionsList/index.js +19 -17
  169. package/src/screens/Automate/MultiUnits.js +19 -22
  170. package/src/screens/Automate/OneTap/__test__/AddNewOneTap.test.js +18 -8
  171. package/src/screens/Automate/Scenario/__test__/AddNewOneTap.test.js +15 -7
  172. package/src/screens/Automate/ScriptDetail/Components/AddActionScript.js +14 -6
  173. package/src/screens/Automate/ScriptDetail/Components/RenameScript.js +4 -7
  174. package/src/screens/Automate/ScriptDetail/__test__/index.test.js +42 -17
  175. package/src/screens/Automate/ScriptDetail/__test__/useStarredScript.test.js +6 -6
  176. package/src/screens/Automate/ScriptDetail/index.js +51 -40
  177. package/src/screens/Automate/SetSchedule/__test__/SelectWeekday.test.js +4 -4
  178. package/src/screens/Automate/SetSchedule/__test__/index.test.js +29 -18
  179. package/src/screens/Automate/SetSchedule/components/RowItem.js +5 -5
  180. package/src/screens/Automate/SetSchedule/index.js +8 -7
  181. package/src/screens/Automate/Styles/indexStyles.js +1 -1
  182. package/src/screens/Automate/__test__/MultiUnits.test.js +1 -4
  183. package/src/screens/Automate/__test__/index.test.js +0 -1
  184. package/src/screens/Automate/index.js +36 -34
  185. package/src/screens/ChangePosition/__test__/index.test.js +6 -6
  186. package/src/screens/ChangePosition/index.js +2 -1
  187. package/src/screens/Device/EditDevice/__test__/EditDevice.test.js +13 -13
  188. package/src/screens/Device/EditDevice/index.js +4 -4
  189. package/src/screens/Device/__test__/BluetoothDevice.test.js +300 -0
  190. package/src/screens/Device/__test__/detail.test.js +14 -14
  191. package/src/screens/Device/__test__/mqttDetail.test.js +9 -9
  192. package/src/screens/Device/components/BluetoothDevice.js +135 -0
  193. package/src/screens/Device/components/SensorDisplayItem.js +9 -8
  194. package/src/screens/Device/detail.js +70 -62
  195. package/src/screens/Device/hooks/useEvaluateValue.js +1 -1
  196. package/src/screens/Drawer/Drawer.test.js +2 -2
  197. package/src/screens/Drawer/index.js +3 -3
  198. package/src/screens/EmergencyContacts/EmergencyContactsList.js +8 -4
  199. package/src/screens/EmergencyContacts/EmergencyContactsSelectContacts.js +3 -3
  200. package/src/screens/EmergencyContacts/__test__/EmergencyContactsSelectContacts.test.js +7 -7
  201. package/src/screens/EmergencySetting/components/DropDownItem.js +2 -2
  202. package/src/screens/EnterPassword/__test__/EnterPassword.test.js +8 -8
  203. package/src/screens/GuestInfo/components/RowGuestInfo.js +2 -2
  204. package/src/screens/GuestInfo/components/__test__/AccessScheduleSheet.test.js +3 -3
  205. package/src/screens/GuestInfo/index.js +2 -2
  206. package/src/screens/HanetCamera/ManageAccess.js +3 -3
  207. package/src/screens/HanetCamera/MemberInfo.js +2 -2
  208. package/src/screens/HanetCamera/__test__/Detail.test.js +9 -9
  209. package/src/screens/HanetCamera/__test__/MemberInfo.test.js +10 -10
  210. package/src/screens/HanetCamera/components/RequestFaceIDPopup.js +2 -2
  211. package/src/screens/ManageAccess/index.js +3 -3
  212. package/src/screens/MoveToAnotherSubUnit/__test__/index.test.js +9 -9
  213. package/src/screens/Notification/__test__/Notification.test.js +9 -9
  214. package/src/screens/Notification/components/NotificationItem.js +3 -4
  215. package/src/screens/Notification/index.js +3 -3
  216. package/src/screens/Notification/styles/NotificationItemStyles.js +0 -1
  217. package/src/screens/PlayBackCamera/__test__/index.test.js +1 -1
  218. package/src/screens/ScanChipQR/components/QRScan/__test__/QRScan.test.js +1 -1
  219. package/src/screens/ScanChipQR/components/QRScan/index.js +3 -3
  220. package/src/screens/SelectUnit/__test__/index.test.js +8 -8
  221. package/src/screens/SelectUnit/index.js +4 -4
  222. package/src/screens/SharedUnit/TabHeader.js +2 -2
  223. package/src/screens/Sharing/Components/EndDevice.js +3 -3
  224. package/src/screens/Sharing/UnitMemberList.js +2 -2
  225. package/src/screens/Sharing/__test__/UpdateShareDevice.test.js +7 -7
  226. package/src/screens/SideMenuDetail/__test__/index.test.js +8 -8
  227. package/src/screens/SmartAccount/Connecting/index.js +5 -5
  228. package/src/screens/SmartAccount/ListDevice/__test__/ListDevice.test.js +8 -8
  229. package/src/screens/SmartAccount/SuccessfullyConnected/__test__/SuccessfullyConnected.test.js +7 -7
  230. package/src/screens/SmartAccount/SuccessfullyConnected/index.js +2 -2
  231. package/src/screens/SmartAccount/__test__/Connecting.test.js +6 -6
  232. package/src/screens/SmartAccount/__test__/SmartAccount.test.js +10 -10
  233. package/src/screens/SmartIr/__test__/GroupButtonByType.test.js +3 -2
  234. package/src/screens/SmartIr/components/GroupButtonByType/GroupButtonByType.js +2 -2
  235. package/src/screens/SmartIr/components/SelectBrand.js +2 -2
  236. package/src/screens/SubUnit/AddSubUnit.js +28 -26
  237. package/src/screens/SubUnit/AddSubUnitStyles.js +10 -4
  238. package/src/screens/SubUnit/EditSubUnit.js +12 -11
  239. package/src/screens/SubUnit/ManageSubUnit.js +3 -3
  240. package/src/screens/SubUnit/__test__/AddSubUnit.test.js +13 -13
  241. package/src/screens/SubUnit/__test__/EditSubUnit.test.js +3 -3
  242. package/src/screens/Template/EditTemplate.js +6 -4
  243. package/src/screens/Template/__test__/EditTemplate.test.js +7 -7
  244. package/src/screens/Template/__test__/detail.test.js +4 -4
  245. package/src/screens/Template/__test__/index.test.js +1 -1
  246. package/src/screens/UVIndexGuide/index.js +2 -4
  247. package/src/screens/Unit/Detail.js +1 -5
  248. package/src/screens/Unit/MoreMenu.js +6 -5
  249. package/src/screens/Unit/SelectAddToFavorites.js +2 -2
  250. package/src/screens/Unit/SelectAddress.js +16 -12
  251. package/src/screens/Unit/Station/__test__/index.test.js +1 -1
  252. package/src/screens/Unit/__test__/MoreMenu.test.js +5 -1
  253. package/src/screens/Unit/__test__/SelectAddToFavorites.test.js +9 -9
  254. package/src/screens/Unit/__test__/SelectAddress.test.js +11 -17
  255. package/src/screens/Unit/__test__/Summaries.test.js +7 -7
  256. package/src/screens/Unit/components/AutomateScript/index.js +5 -5
  257. package/src/screens/Unit/components/ButtonWrapper/index.js +3 -3
  258. package/src/screens/Unit/components/Header/index.js +2 -2
  259. package/src/screens/Unit/components/SharedUnit/index.js +5 -5
  260. package/src/screens/Unit/components/__test__/AutomateScript.test.js +3 -3
  261. package/src/screens/Unit/components/__test__/SharedUnit.test.js +8 -8
  262. package/src/screens/Unit/hook/__test__/useUnitConnectRemoteDevices.test.js +2 -2
  263. package/src/screens/UnitSummary/components/AirQuality/index.js +6 -11
  264. package/src/screens/UnitSummary/components/WaterQuality/Item/index.js +5 -5
  265. package/src/screens/UnitSummary/index.js +6 -2
  266. package/src/utils/Apis/axios.js +5 -5
  267. package/src/utils/Functions/ShortEmail.js +1 -0
  268. package/src/utils/I18n/translations/en.js +6 -3
  269. package/src/utils/I18n/translations/vi.js +8 -4
  270. package/src/utils/__test__/Utils.test.js +16 -16
  271. package/src/utils/bluetooth.js +3 -0
  272. package/assets/images/OneTap.svg +0 -14
  273. package/assets/images/Schedule.svg +0 -39
  274. package/assets/images/ValueChange.svg +0 -49
@@ -238,6 +238,8 @@ export default {
238
238
  'Overall Water quality is based on below those conditions',
239
239
  water_quality_guide: 'Water Quality Guide',
240
240
  clo_guide: 'Chlorine Residual Guide',
241
+ aqi_guide: 'AQI Guide',
242
+ uv_index_guide: 'UV Index Guide',
241
243
  what_is_clo: 'What is Chlorine residual?',
242
244
  text_what_clo:
243
245
  'Residual chlorine is the low level amount of chlorine remaining in the water after a certain period of ' +
@@ -380,7 +382,6 @@ export default {
380
382
  text_select_permissions_desc: 'Select permissions will be grant',
381
383
  text_read_config: 'Read configs',
382
384
  text_actions: 'Actions',
383
- geolocation: 'Geolocation',
384
385
  background: 'Background',
385
386
  remove_unit: 'Remove unit',
386
387
  text_pins: 'pins',
@@ -487,7 +488,7 @@ export default {
487
488
  wind_quality_sensor: 'Wind Quality Sensor',
488
489
  current_water_quality: 'Current Quality Sensor',
489
490
  clo_residual: 'Clo Residual',
490
- text_explain_add_geolocation:
491
+ text_explain_add_location:
491
492
  'Tell us where this unit is. It will help automatically personalized your experience.',
492
493
  raining: 'Raining',
493
494
  not_raining: 'Not raining',
@@ -840,7 +841,7 @@ export default {
840
841
  select_unit_members: 'Select from Unit members',
841
842
  select_contacts: 'Select contacts',
842
843
  no_contact: 'No contacts',
843
- is: 'is',
844
+ is_equal: 'is equal',
844
845
  is_below: 'is below',
845
846
  is_above: 'is above',
846
847
  text_notification_content_air_quality_high:
@@ -1018,6 +1019,8 @@ export default {
1018
1019
  multi_units_automate: 'Multi-Units Smart',
1019
1020
  tap_to_run: 'Tap to run',
1020
1021
  how_to_start: 'How to start',
1022
+ edit_condition: 'Edit condition',
1023
+ device_display: 'Device display',
1021
1024
  'set_up {name}': 'Setup {name}',
1022
1025
  choose_action: 'Choose action',
1023
1026
  action: 'action',
@@ -94,8 +94,8 @@ export default {
94
94
  verify: 'Xác nhận',
95
95
  text_new_unit: 'Địa điểm',
96
96
  text_sub_units: 'Khu vực',
97
+ is_equal: 'bằng',
97
98
  is_below: 'dưới',
98
- is: 'bằng',
99
99
  is_above: 'trên',
100
100
  edit_actions_list: 'Chỉnh sửa danh sách hành động',
101
101
  des_edit_actions_list:
@@ -197,7 +197,8 @@ export default {
197
197
  text_name: 'Tên',
198
198
  left_menu_notifications: 'Thông báo',
199
199
  text_settings: 'Cài đặt',
200
- 'AQI Guide': 'Chỉ số AQI',
200
+ aqi_guide: 'Chỉ số AQI',
201
+ uv_index_guide: 'Chỉ số UV',
201
202
  'What is AQI?': 'Chỉ số AQI là gì?',
202
203
  text_what_aqi:
203
204
  'AQI là các chữ cái viết tắt của “Air Quality Index” – chỉ số chất lượng không khí. Chỉ số này được sử dụng để ' +
@@ -436,7 +437,6 @@ export default {
436
437
  text_select_permissions_desc: 'Chọn các hành động cho phép',
437
438
  text_read_config: 'Thông số đọc',
438
439
  text_actions: 'Điều khiển',
439
- geolocation: 'Vị trí',
440
440
  background: 'Hình nền',
441
441
  remove_unit: 'Xoá địa điểm',
442
442
  text_pins: 'Lượt ghim',
@@ -555,7 +555,7 @@ export default {
555
555
  wind_quality_sensor: 'Cảm biến chất lượng nước',
556
556
  current_water_quality: 'Chất lượng nước hiện tại',
557
557
  clo_residual: 'Clo dư',
558
- text_explain_add_geolocation:
558
+ text_explain_add_location:
559
559
  'Hãy cho chúng tôi biết địa điểm này nằm ở đâu. Việc này sẽ giúp cá nhân hoá các trải nghiệm của bạn trong ' +
560
560
  'việc quản lý.',
561
561
  raining: 'Đang mưa',
@@ -1033,6 +1033,8 @@ export default {
1033
1033
  continue: 'Tiếp tục',
1034
1034
  tap_to_run: 'Nhấn để chạy',
1035
1035
  how_to_start: 'Cách khởi động',
1036
+ edit_condition: 'Chỉnh sửa điều kiện',
1037
+ device_display: 'Thiết bị hiển thị',
1036
1038
  'set_up {name}': 'Thiết lập {name}',
1037
1039
  choose_action: 'Lựa chọn hành động',
1038
1040
  action: 'hành động',
@@ -1320,6 +1322,8 @@ export default {
1320
1322
  smart_supplier: 'Nhà Cung Cấp Thông Minh',
1321
1323
  text_email_or_phone_number: 'Email hoặc Số điện thoại',
1322
1324
  enter_password: 'Mật khẩu',
1325
+ you_need_to_enter_password:
1326
+ 'Bạn cần nhập mật khẩu để xác nhận yêu cầu của mình',
1323
1327
  connecting_smart_account: 'Đang kết nối tài khoản',
1324
1328
  warning_connecting_smart_account:
1325
1329
  'Đừng tắt thiết bị hoặc đóng ứng dụng này trong quá trình thiết lập. Quá trình thiết lập có thể mất vài ' +
@@ -1,26 +1,26 @@
1
1
  import { Linking } from 'react-native';
2
- import { act } from 'react-test-renderer';
3
2
  import Toast from 'react-native-toast-message';
3
+ import { act } from 'react-test-renderer';
4
4
 
5
5
  import api from '../Apis/axios';
6
6
  import {
7
- validateEmail,
7
+ deleteDefaultAuthToken,
8
8
  formatMoney,
9
+ formatNumberCompact,
10
+ getDateRangeOfWeek,
9
11
  insertToString,
10
- removeFromString,
11
12
  isObjectEmpty,
12
- setAxiosDefaultLanguage,
13
- deleteDefaultAuthToken,
13
+ notImplemented,
14
+ objectIds,
15
+ openMapDirection,
16
+ removeFromString,
17
+ roundNumber,
14
18
  setAxiosDefaultAuthToken,
19
+ setAxiosDefaultLanguage,
15
20
  shortEmailName,
16
- formatNumberCompact,
17
21
  standardizeCameraScreenSize,
18
- openMapDirection,
19
22
  ToastBottomHelper,
20
- objectIds,
21
- notImplemented,
22
- roundNumber,
23
- getDateRangeOfWeek,
23
+ validateEmail,
24
24
  } from '../Utils';
25
25
 
26
26
  describe('Test utils', () => {
@@ -90,7 +90,7 @@ describe('Test utils', () => {
90
90
  await act(async () => {
91
91
  await openMapDirection({ lat: 10, lng: 10 })();
92
92
  });
93
- expect(Linking.openURL).toBeCalledWith(
93
+ expect(Linking.openURL).toHaveBeenCalledWith(
94
94
  'https://www.google.com/maps/dir/?api=1&origin=&destination=10,10'
95
95
  );
96
96
  });
@@ -99,7 +99,7 @@ describe('Test utils', () => {
99
99
  await act(async () => {
100
100
  ToastBottomHelper.success('msg', 'line2');
101
101
  });
102
- expect(Toast.show).toBeCalledWith({
102
+ expect(Toast.show).toHaveBeenCalledWith({
103
103
  position: 'bottom',
104
104
  text1: 'msg',
105
105
  text2: 'line2',
@@ -110,7 +110,7 @@ describe('Test utils', () => {
110
110
  await act(async () => {
111
111
  ToastBottomHelper.error('msg', 'line2');
112
112
  });
113
- expect(Toast.show).toBeCalledWith({
113
+ expect(Toast.show).toHaveBeenCalledWith({
114
114
  position: 'bottom',
115
115
  text1: 'msg',
116
116
  text2: 'line2',
@@ -121,7 +121,7 @@ describe('Test utils', () => {
121
121
  await act(async () => {
122
122
  ToastBottomHelper.info('msg', 'line2');
123
123
  });
124
- expect(Toast.show).toBeCalledWith({
124
+ expect(Toast.show).toHaveBeenCalledWith({
125
125
  position: 'bottom',
126
126
  text1: 'msg',
127
127
  text2: 'line2',
@@ -170,7 +170,7 @@ describe('Test utils', () => {
170
170
  await act(async () => {
171
171
  notImplemented(mockTranslate);
172
172
  });
173
- expect(mockTranslate).toBeCalledWith('feature_under_development');
173
+ expect(mockTranslate).toHaveBeenCalledWith('feature_under_development');
174
174
  });
175
175
 
176
176
  it('Test roundNumber', async () => {
@@ -0,0 +1,3 @@
1
+ import { BleManager } from 'react-native-ble-plx';
2
+
3
+ export const bleManager = new BleManager();
@@ -1,14 +0,0 @@
1
- <svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M16.5 18.5928H8.5C7.39453 18.5928 6.5 17.699 6.5 16.5928C6.5 15.4865 7.39453 14.5928 8.5 14.5928H16.5C17.6055 14.5928 18.5 15.4865 18.5 16.5928C18.5 17.699 17.6055 18.5928 16.5 18.5928Z" fill="url(#paint0_linear)"/>
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M24.5 6.59277H28.5C30.707 6.59277 32.5 8.38654 32.5 10.5928V28.5928C32.5 30.799 30.707 32.5928 28.5 32.5928H10.5C8.29297 32.5928 6.5 30.799 6.5 28.5928V24.5928H4.5C2.29297 24.5928 0.5 22.799 0.5 20.5928V4.59277C0.5 2.38654 2.29297 0.592773 4.5 0.592773H20.5C22.707 0.592773 24.5 2.38654 24.5 4.59277V6.59277ZM4.5 4.59277V20.5928H20.5V4.59277H4.5ZM28.5 28.5928H10.5V24.5928H20.5C22.707 24.5928 24.5 22.799 24.5 20.5928V10.5928H28.5V28.5928Z" fill="url(#paint1_linear)"/>
4
- <defs>
5
- <linearGradient id="paint0_linear" x1="0.5" y1="0.592773" x2="32.4646" y2="32.5928" gradientUnits="userSpaceOnUse">
6
- <stop stop-color="#2B6B9F"/>
7
- <stop offset="1" stop-color="#D5FFCB"/>
8
- </linearGradient>
9
- <linearGradient id="paint1_linear" x1="0.5" y1="0.592773" x2="32.4646" y2="32.5928" gradientUnits="userSpaceOnUse">
10
- <stop stop-color="#2B6B9F"/>
11
- <stop offset="1" stop-color="#D5FFCB"/>
12
- </linearGradient>
13
- </defs>
14
- </svg>
@@ -1,39 +0,0 @@
1
- <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0)">
3
- <path d="M16.332 21.377L18.5464 25.1419L20.0979 23.5904L16.332 21.377Z" fill="url(#paint0_linear)"/>
4
- <path d="M19.5571 26.1531L23.3215 28.3659L21.1083 24.6016L19.5571 26.1531Z" fill="url(#paint1_linear)"/>
5
- <path d="M19.2856 7.71777V8.49292H20.7142V7.71777C20.2415 7.79895 19.7584 7.79895 19.2856 7.71777Z" fill="url(#paint2_linear)"/>
6
- <path d="M20 9.92188C11.7157 9.92188 5 16.6376 5 24.9219C5 33.2062 11.7157 39.9219 20 39.9219C28.2843 39.9219 35 33.2062 35 24.9219C34.9906 16.6415 28.2804 9.93134 20 9.92188ZM20 38.4934C12.5046 38.4934 6.42853 32.4173 6.42853 24.9219C6.42853 17.4265 12.5046 11.3504 20 11.3504C27.4951 11.3504 33.5715 17.4265 33.5715 24.9219C33.5633 32.4137 27.4918 38.4851 20 38.4934Z" fill="url(#paint3_linear)"/>
7
- <path d="M20.0001 6.35041C21.7753 6.35041 23.2142 4.9115 23.2142 3.13629C23.2142 1.36109 21.7753 -0.078125 20.0001 -0.078125C18.2249 -0.078125 16.7856 1.36109 16.7856 3.13629C16.7878 4.91059 18.2258 6.34858 20.0001 6.35041ZM20.0001 2.42188C20.3947 2.42188 20.7142 2.7417 20.7142 3.13629C20.7142 3.53058 20.3943 3.85041 20.0001 3.85041C19.6055 3.85041 19.2856 3.53058 19.2856 3.13629C19.2856 2.7417 19.6055 2.42188 20.0001 2.42188Z" fill="url(#paint4_linear)"/>
8
- <path d="M19.9999 12.7793C13.2936 12.7793 7.85693 18.216 7.85693 24.9223C7.85693 31.6285 13.2936 37.0652 19.9999 37.0652C26.7061 37.0652 32.1428 31.6285 32.1428 24.9223C32.1352 18.2191 26.7031 12.7869 19.9999 12.7793ZM19.2855 14.9222C19.2855 14.5277 19.6053 14.2078 19.9999 14.2078C20.3945 14.2078 20.714 14.5277 20.714 14.9222V16.3508C20.714 16.7454 20.3942 17.0652 19.9999 17.0652C19.6053 17.0652 19.2855 16.7454 19.2855 16.3508V14.9222ZM11.4284 25.6367H9.99988C9.60529 25.6367 9.28546 25.3168 9.28546 24.9223C9.28546 24.5277 9.60529 24.2078 9.99988 24.2078H11.4284C11.823 24.2078 12.1428 24.5277 12.1428 24.9223C12.1428 25.3168 11.823 25.6367 11.4284 25.6367ZM20.714 34.9223C20.714 35.3169 20.3942 35.6364 19.9999 35.6364C19.6053 35.6364 19.2855 35.3169 19.2855 34.9223V33.4937C19.2855 33.0991 19.6053 32.7793 19.9999 32.7793C20.3945 32.7793 20.714 33.0991 20.714 33.4937V34.9223ZM25.8376 30.8829C25.6075 31.1131 25.2511 31.1585 24.9706 30.9937L18.037 26.9172C18.0306 26.9135 18.0278 26.9065 18.0211 26.9022C17.9815 26.872 17.9454 26.8375 17.9134 26.7994C17.8691 26.7634 17.8295 26.7216 17.7956 26.6758C17.7919 26.67 17.7855 26.6679 17.7828 26.6624L13.7047 19.7288C13.5039 19.3891 13.6159 18.9512 13.9556 18.7501C14.1799 18.617 14.4588 18.617 14.6834 18.7501L21.6176 22.8266C21.624 22.8309 21.6271 22.8379 21.6335 22.8416C21.6726 22.8721 21.7086 22.9066 21.7412 22.9444C21.7852 22.9807 21.8245 23.0222 21.8584 23.068C21.8621 23.0735 21.8685 23.0765 21.8718 23.0823L25.9484 30.0156C26.1135 30.2964 26.0677 30.6528 25.8376 30.8829ZM29.9999 25.6367H28.5714C28.1768 25.6367 27.8569 25.3168 27.8569 24.9223C27.8569 24.5277 28.1768 24.2078 28.5714 24.2078H29.9999C30.3945 24.2078 30.7143 24.5277 30.7143 24.9223C30.714 25.3168 30.3942 25.6367 29.9999 25.6367Z" fill="url(#paint5_linear)"/>
9
- </g>
10
- <defs>
11
- <linearGradient id="paint0_linear" x1="16.332" y1="21.377" x2="20.0928" y2="25.1428" gradientUnits="userSpaceOnUse">
12
- <stop stop-color="#2B6B9F"/>
13
- <stop offset="1" stop-color="#D5FFCB"/>
14
- </linearGradient>
15
- <linearGradient id="paint1_linear" x1="19.5571" y1="24.6016" x2="23.3173" y2="28.3659" gradientUnits="userSpaceOnUse">
16
- <stop stop-color="#2B6B9F"/>
17
- <stop offset="1" stop-color="#D5FFCB"/>
18
- </linearGradient>
19
- <linearGradient id="paint2_linear" x1="19.2856" y1="7.71777" x2="19.9344" y2="8.91471" gradientUnits="userSpaceOnUse">
20
- <stop stop-color="#2B6B9F"/>
21
- <stop offset="1" stop-color="#D5FFCB"/>
22
- </linearGradient>
23
- <linearGradient id="paint3_linear" x1="5" y1="9.92187" x2="34.9668" y2="39.9219" gradientUnits="userSpaceOnUse">
24
- <stop stop-color="#2B6B9F"/>
25
- <stop offset="1" stop-color="#D5FFCB"/>
26
- </linearGradient>
27
- <linearGradient id="paint4_linear" x1="16.7856" y1="-0.078125" x2="23.2071" y2="6.3504" gradientUnits="userSpaceOnUse">
28
- <stop stop-color="#2B6B9F"/>
29
- <stop offset="1" stop-color="#D5FFCB"/>
30
- </linearGradient>
31
- <linearGradient id="paint5_linear" x1="7.85693" y1="12.7793" x2="32.116" y2="37.0652" gradientUnits="userSpaceOnUse">
32
- <stop stop-color="#2B6B9F"/>
33
- <stop offset="1" stop-color="#D5FFCB"/>
34
- </linearGradient>
35
- <clipPath id="clip0">
36
- <rect width="40" height="40" fill="white"/>
37
- </clipPath>
38
- </defs>
39
- </svg>
@@ -1,49 +0,0 @@
1
- <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0)">
3
- <path d="M39.9609 19.4151C39.9609 16.0576 37.5367 13.2553 34.3461 12.6674C34.4469 7.7329 29.6475 3.91545 24.7266 5.38009C23.2367 2.22626 20.0429 0 16.2573 0C11.214 0 7.08931 4.01089 6.90686 9.01047C2.92786 9.87659 0.0390625 13.4122 0.0390625 17.5438C0.0390625 22.3593 3.95639 26.2766 8.77196 26.2766H33.0993C36.8825 26.2766 39.9609 23.1983 39.9609 19.4151Z" fill="url(#paint0_linear)"/>
4
- <path d="M27.4194 28.2794C26.8033 27.9714 26.0538 28.221 25.7457 28.8374L23.2506 33.8276C22.833 34.6629 23.4486 35.6334 24.3655 35.6334C24.8231 35.6334 25.2637 35.3806 25.4823 34.9435L27.9774 29.9533C28.2855 29.337 28.0357 28.5876 27.4194 28.2794Z" fill="url(#paint1_linear)"/>
5
- <path d="M38.647 28.2794C38.0308 27.9714 37.2813 28.221 36.9732 28.8374L34.4781 33.8276C34.0605 34.6629 34.6762 35.6334 35.593 35.6334C36.0507 35.6334 36.4913 35.3806 36.7098 34.9435L39.2049 29.9533C39.513 29.337 39.2633 28.5876 38.647 28.2794Z" fill="url(#paint2_linear)"/>
6
- <path d="M16.1914 28.2794C15.5753 27.9714 14.8257 28.221 14.5177 28.8374L12.0226 33.8276C11.6049 34.6629 12.2206 35.6334 13.1375 35.6334C13.5951 35.6334 14.0357 35.3806 14.2543 34.9435L16.7494 29.9533C17.0575 29.337 16.8077 28.5876 16.1914 28.2794Z" fill="url(#paint3_linear)"/>
7
- <path d="M4.96339 28.2794C4.34726 27.9714 3.59771 28.221 3.28964 28.8374L0.794526 33.8276C0.376906 34.6629 0.992575 35.6334 1.90945 35.6334C2.36707 35.6334 2.80769 35.3806 3.02625 34.9435L5.52136 29.9533C5.82943 29.337 5.57969 28.5876 4.96339 28.2794Z" fill="url(#paint4_linear)"/>
8
- <path d="M19.9336 32.6456C19.3174 32.3376 18.5679 32.5873 18.2599 33.2036L15.7647 38.1938C15.3471 39.029 15.9628 39.9996 16.8797 39.9996C17.3373 39.9996 17.7779 39.7468 17.9965 39.3097L20.4916 34.3194C20.7996 33.7032 20.5499 32.9538 19.9336 32.6456Z" fill="url(#paint5_linear)"/>
9
- <path d="M31.1621 32.6456C30.5459 32.3376 29.7964 32.5873 29.4884 33.2036L26.9933 38.1938C26.5756 39.029 27.1913 39.9996 28.1082 39.9996C28.5658 39.9996 29.0064 39.7468 29.225 39.3097L31.7201 34.3194C32.0281 33.7032 31.7784 32.9538 31.1621 32.6456Z" fill="url(#paint6_linear)"/>
10
- <path d="M8.70607 32.6456C8.08985 32.3376 7.34038 32.5873 7.03232 33.2036L4.5372 38.1938C4.11958 39.029 4.73525 39.9996 5.65213 39.9996C6.10975 39.9996 6.55037 39.7468 6.76893 39.3097L9.26404 34.3194C9.57211 33.7032 9.32236 32.9538 8.70607 32.6456Z" fill="url(#paint7_linear)"/>
11
- </g>
12
- <defs>
13
- <linearGradient id="paint0_linear" x1="0.0390625" y1="0" x2="24.1366" y2="36.6517" gradientUnits="userSpaceOnUse">
14
- <stop stop-color="#2B6B9F"/>
15
- <stop offset="1" stop-color="#D5FFCB"/>
16
- </linearGradient>
17
- <linearGradient id="paint1_linear" x1="23.1172" y1="28.1475" x2="30.0234" y2="32.7581" gradientUnits="userSpaceOnUse">
18
- <stop stop-color="#2B6B9F"/>
19
- <stop offset="1" stop-color="#D5FFCB"/>
20
- </linearGradient>
21
- <linearGradient id="paint2_linear" x1="34.3447" y1="28.1475" x2="41.2509" y2="32.7581" gradientUnits="userSpaceOnUse">
22
- <stop stop-color="#2B6B9F"/>
23
- <stop offset="1" stop-color="#D5FFCB"/>
24
- </linearGradient>
25
- <linearGradient id="paint3_linear" x1="11.8892" y1="28.1475" x2="18.7954" y2="32.7582" gradientUnits="userSpaceOnUse">
26
- <stop stop-color="#2B6B9F"/>
27
- <stop offset="1" stop-color="#D5FFCB"/>
28
- </linearGradient>
29
- <linearGradient id="paint4_linear" x1="0.661133" y1="28.1475" x2="7.56733" y2="32.7581" gradientUnits="userSpaceOnUse">
30
- <stop stop-color="#2B6B9F"/>
31
- <stop offset="1" stop-color="#D5FFCB"/>
32
- </linearGradient>
33
- <linearGradient id="paint5_linear" x1="15.6313" y1="32.5137" x2="22.5375" y2="37.1244" gradientUnits="userSpaceOnUse">
34
- <stop stop-color="#2B6B9F"/>
35
- <stop offset="1" stop-color="#D5FFCB"/>
36
- </linearGradient>
37
- <linearGradient id="paint6_linear" x1="26.8599" y1="32.5137" x2="33.766" y2="37.1243" gradientUnits="userSpaceOnUse">
38
- <stop stop-color="#2B6B9F"/>
39
- <stop offset="1" stop-color="#D5FFCB"/>
40
- </linearGradient>
41
- <linearGradient id="paint7_linear" x1="4.40381" y1="32.5137" x2="11.31" y2="37.1244" gradientUnits="userSpaceOnUse">
42
- <stop stop-color="#2B6B9F"/>
43
- <stop offset="1" stop-color="#D5FFCB"/>
44
- </linearGradient>
45
- <clipPath id="clip0">
46
- <rect width="40" height="40" fill="white"/>
47
- </clipPath>
48
- </defs>
49
- </svg>