@eohjsc/react-native-smart-city 0.7.22 → 0.7.24

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 (61) hide show
  1. package/package.json +1 -1
  2. package/src/commons/ActionGroup/TerminalBoxTemplate.js +3 -0
  3. package/src/commons/ActionTemplate/OnOffButtonAction.js +38 -4
  4. package/src/commons/ActionTemplate/OnOffSimpleAction.js +55 -15
  5. package/src/commons/ActionTemplate/OnOffSmartLockAction.js +46 -8
  6. package/src/commons/ActionTemplate/SwitchButtonAction.js +35 -4
  7. package/src/commons/ActionTemplate/ThreeButtonAction.js +13 -3
  8. package/src/commons/ActionTemplate/__test__/OnOffButtonAction.test.js +46 -7
  9. package/src/commons/ActionTemplate/__test__/OnOffSimpleAction.test.js +66 -6
  10. package/src/commons/ActionTemplate/__test__/OnOffSmartLockAction.test.js +53 -13
  11. package/src/commons/ActionTemplate/__test__/SwitchButtonAction.test.js +46 -7
  12. package/src/commons/ActionTemplate/__test__/index.test.js +6 -2
  13. package/src/commons/ActionTemplate/index.js +65 -10
  14. package/src/commons/MediaPlayerDetail/MediaPlayerFull.js +26 -32
  15. package/src/commons/OneTapTemplate/StatesGridActionTemplate.js +8 -6
  16. package/src/commons/SubUnit/OneTap/__test__/SubUnitAutomate.test.js +6 -0
  17. package/src/commons/SubUnit/OneTap/index.js +5 -0
  18. package/src/commons/UnitSummary/ConfigHistoryChart/index.js +16 -12
  19. package/src/commons/Widgets/IFrameWithConfig/IFrameWithConfig.js +3 -1
  20. package/src/commons/Widgets/IFrameWithConfig/__tests__/IFrameWithConfig.test.js +1 -1
  21. package/src/configs/API.js +6 -0
  22. package/src/configs/AccessibilityLabel.js +2 -0
  23. package/src/screens/ActivityLog/__test__/index.test.js +10 -0
  24. package/src/screens/ActivityLog/hooks/index.js +1 -1
  25. package/src/screens/Automate/AddNewAction/ChooseAction.js +15 -51
  26. package/src/screens/Automate/AddNewAction/SelectControlDevices.js +13 -3
  27. package/src/screens/Automate/AddNewAction/SetupConfigCondition.js +74 -54
  28. package/src/screens/Automate/AddNewAction/__test__/ChooseAction.test.js +114 -4
  29. package/src/screens/Automate/AddNewAction/__test__/SetupConfigCondition.test.js +37 -8
  30. package/src/screens/Automate/AddNewAutoSmart/AddTypeSmart.js +5 -0
  31. package/src/screens/Automate/AddNewAutoSmart/__test__/AddNewAutoSmart.test.js +18 -2
  32. package/src/screens/Automate/Components/InputName.js +7 -6
  33. package/src/screens/Automate/Constants.js +12 -0
  34. package/src/screens/Automate/EditActionsList/UpdateActionScript.js +24 -55
  35. package/src/screens/Automate/EditActionsList/__tests__/UpdateActionScript.test.js +298 -41
  36. package/src/screens/Automate/EditActionsList/__tests__/index.test.js +2 -2
  37. package/src/screens/Automate/EditActionsList/index.js +26 -14
  38. package/src/screens/Automate/MultiUnits.js +9 -1
  39. package/src/screens/Automate/OneTap/__test__/AddNewOneTap.test.js +3 -3
  40. package/src/screens/Automate/ScriptDetail/Components/AddActionScript.js +4 -10
  41. package/src/screens/Automate/ScriptDetail/Components/DeleteScript.js +2 -4
  42. package/src/screens/Automate/ScriptDetail/__test__/index.test.js +78 -0
  43. package/src/screens/Automate/ScriptDetail/index.js +16 -10
  44. package/src/screens/Automate/ScriptDetail/utils.js +39 -15
  45. package/src/screens/Automate/SetSchedule/AddEditConditionSchedule.js +27 -160
  46. package/src/screens/Automate/SetSchedule/EditSchedule.js +269 -0
  47. package/src/screens/Automate/SetSchedule/__test__/AddEditConditionSchedule.test.js +327 -22
  48. package/src/screens/Automate/SetSchedule/__test__/index.test.js +35 -22
  49. package/src/screens/Automate/SetSchedule/components/RepeatOptionsPopup.js +2 -8
  50. package/src/screens/Automate/SetSchedule/index.js +15 -129
  51. package/src/screens/Automate/SetSchedule/styles/indexStyles.js +9 -0
  52. package/src/screens/Automate/__test__/MultiUnits.test.js +6 -1
  53. package/src/screens/Automate/hooks/useAction.js +222 -0
  54. package/src/screens/Device/__test__/detail.test.js +48 -1
  55. package/src/screens/Device/detail.js +46 -3
  56. package/src/screens/PlayBackCamera/__test__/index.test.js +48 -13
  57. package/src/screens/PlayBackCamera/index.js +1 -1
  58. package/src/utils/Apis/axios.js +6 -0
  59. package/src/utils/I18n/translations/en.js +8 -0
  60. package/src/utils/I18n/translations/vi.js +12 -4
  61. package/src/screens/Automate/constants.js +0 -0
@@ -1083,6 +1083,13 @@ export default {
1083
1083
  once: 'Once',
1084
1084
  every_day: 'Everyday',
1085
1085
  every_week: 'Every Week',
1086
+ time_range: 'Time Range',
1087
+ time_range_repeat: 'Time range repeat',
1088
+ repeat_every: 'Repeat every {interval} minutes',
1089
+ from_to: 'From {from} to {to} {weekdays}',
1090
+ on_weekday: 'on',
1091
+ interval: 'Interval',
1092
+ interval_repeat: 'Interval (minutes)',
1086
1093
  button: 'Button',
1087
1094
  create_smart: 'Create Smart',
1088
1095
  update_smart: 'Update Smart',
@@ -1135,6 +1142,7 @@ export default {
1135
1142
  mode: 'Mode',
1136
1143
  text_on: 'On',
1137
1144
  text_off: 'Off',
1145
+ toggle: 'Toggle',
1138
1146
  set_temperature: 'Set temperature',
1139
1147
  not_permission:
1140
1148
  'There are some control commands you have not been authorized',
@@ -491,7 +491,7 @@ export default {
491
491
  to: 'đến',
492
492
  condition: 'Điều kiện',
493
493
  no_condition: 'Không điều kiện',
494
- available_condition: 'Số điều khiện còn lại [{number}]',
494
+ available_condition: 'Số điều kiện còn lại [{number}]',
495
495
  available_action: 'Số hành động còn lại [{number}]',
496
496
  shared_unit: 'Khu vực được chia sẻ',
497
497
  owner_unit: 'Chủ khu vực',
@@ -1049,10 +1049,10 @@ export default {
1049
1049
  update_condition_success: 'Cập nhật điều kiện thành công',
1050
1050
  edit_condition_success: 'Chỉnh sửa điều kiện thành công',
1051
1051
  delete_condition: 'Xoá điều kiện',
1052
- are_met: 'Tất cả điều khiện đều thỏa',
1052
+ are_met: 'Tất cả điều kiện đều thỏa',
1053
1053
  is_met: 'Một trong các điều kiện được thỏa',
1054
- add_condition: 'Thêm điều khiện',
1055
- add_condition_success: 'Thêm điều khiện thành công',
1054
+ add_condition: 'Thêm điều kiện',
1055
+ add_condition_success: 'Thêm điều kiện thành công',
1056
1056
  device_display: 'Thiết bị hiển thị',
1057
1057
  time_frame: 'Khung thời gian',
1058
1058
  ex_time_frame: 'Ví dụ: 8:00 a.m. mỗi ngày.',
@@ -1093,6 +1093,13 @@ export default {
1093
1093
  once: 'Một lần',
1094
1094
  every_day: 'Hằng ngày',
1095
1095
  every_week: 'Hằng tuần',
1096
+ time_range: 'Khoảng thời gian',
1097
+ time_range_repeat: 'Tần suất lặp lại',
1098
+ repeat_every: 'Lặp lại mỗi {interval} phút',
1099
+ from_to: 'Từ {from} đến {to} {weekdays}',
1100
+ on_weekday: 'vào',
1101
+ interval: 'Chu kỳ',
1102
+ interval_repeat: 'Chu kỳ (phút)',
1096
1103
  create_smart: 'Tạo thông minh',
1097
1104
  update_smart: 'Cập nhật thông minh',
1098
1105
  automate: 'Tự động',
@@ -1143,6 +1150,7 @@ export default {
1143
1150
  mode: 'Chế độ',
1144
1151
  text_on: 'Bật',
1145
1152
  text_off: 'Tắt',
1153
+ toggle: 'Đảo trạng thái',
1146
1154
  set_temperature: 'Thiết lập nhiệt độ',
1147
1155
  not_permission: 'Có một số lệnh điều khiển bạn chưa được cấp quyền',
1148
1156
  you_do_not_have_permission_to_access:
File without changes