@eohjsc/react-native-smart-city 0.7.3-rc12 → 0.7.3-rc14
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/package.json +1 -1
- package/src/commons/ActionGroup/NumberUpDownActionTemplate.js +3 -3
- package/src/commons/ActionGroup/OnOffSmartLock/AutoLock/ButtonWrapper.js +3 -3
- package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/index.js +3 -3
- package/src/commons/ActionGroup/OnOffSmartLock/SetupGeneratePasscode/ButtonWrapper.js +2 -2
- package/src/commons/ActionGroup/OnOffTemplate/OnOffSimpleTemplate.js +2 -2
- package/src/commons/ActionGroup/OptionsDropdownActionTemplate.js +2 -2
- package/src/commons/ActionGroup/SmartTiviActionTemplate/SmartTiviActionTemplate.js +2 -2
- package/src/commons/ActionGroup/SmartTiviActionTemplate/component/CircleButton.js +5 -5
- package/src/commons/ActionGroup/SmartTiviActionTemplate/component/ControlPlay.js +5 -5
- package/src/commons/ActionGroup/TerminalBoxTemplate.js +2 -2
- package/src/commons/ActionGroup/TextBoxTemplate.js +2 -2
- package/src/commons/ActionGroup/TimerActionTemplate.js +6 -3
- package/src/commons/ActionGroup/TwoButtonTemplate/index.js +2 -2
- package/src/commons/BackDefault/index.js +2 -2
- package/src/commons/ButtonPopup/index.js +2 -2
- package/src/commons/DateTimeRangeChange/DateTimeButton.js +2 -2
- package/src/commons/Device/ConnectedViewHeader.js +2 -2
- package/src/commons/Device/Emergency/EmergencyDetail.js +3 -3
- package/src/commons/Device/FlatListItems.js +3 -3
- package/src/commons/Device/Hanet/ItemHanetDevice.js +3 -3
- package/src/commons/Device/ItemAddNew/index.js +2 -2
- package/src/commons/Device/ItemDevice.js +2 -2
- package/src/commons/Device/SonosSpeaker/index.js +3 -3
- package/src/commons/Device/WaterPurifierStatus/AlertStatusMachine.js +2 -2
- package/src/commons/Device/WaterQualitySensor/QualityIndicatorsItem.js +6 -2
- package/src/commons/DisplayChecking/index.js +2 -2
- package/src/commons/EmergencyButton/AlertSendConfirm.js +2 -2
- package/src/commons/FieldTemplate/ChooseUserField/index.js +2 -2
- package/src/commons/Header/HeaderCustom.js +2 -2
- package/src/commons/HeaderAni/index.js +2 -2
- package/src/commons/NavBar/index.js +2 -2
- package/src/commons/OneTapTemplate/NumberUpDownActionTemplate.js +3 -3
- package/src/commons/SearchLocation/index.js +3 -3
- package/src/commons/SelectActionCard/index.js +2 -2
- package/src/commons/SelectSubUnit/index.js +6 -2
- package/src/commons/Sharing/BtnRemoveMember.js +2 -2
- package/src/commons/Sharing/StationDevicePermissions.js +2 -2
- package/src/commons/SubUnit/DeviceTemplate/ConfigAndEvaluation/ConfigAndEvaluation.js +2 -2
- package/src/commons/SubUnit/DeviceTemplate/ConfigValue/ConfigValue.js +2 -2
- package/src/commons/SubUnit/DeviceTemplate/EvaluationOverConfig/EvaluationOverConfig.js +2 -2
- package/src/commons/SubUnit/OneTap/ItemOneTap.js +2 -2
- package/src/commons/Unit/HeaderUnit/index.js +3 -3
- package/src/commons/Unit/SharedUnit.js +7 -7
- package/src/navigations/EmergencyContactsStack.js +2 -2
- package/src/navigations/UnitStack.js +2 -2
- package/src/screens/ActivityLog/index.js +2 -2
- package/src/screens/AddLocationMaps/index.js +3 -3
- package/src/screens/AddNewGateway/RenameNewDevices.js +2 -2
- package/src/screens/Automate/AddNewAction/NewActionWrapper.js +2 -2
- package/src/screens/Automate/AddNewAction/SetupConfigCondition.js +7 -2
- package/src/screens/Automate/ScriptDetail/Components/AddActionScript.js +2 -2
- package/src/screens/Automate/ScriptDetail/index.js +3 -3
- package/src/screens/Automate/Styles/indexStyles.js +1 -1
- package/src/screens/Automate/index.js +36 -33
- package/src/screens/Device/EditDevice/index.js +2 -2
- package/src/screens/Device/__test__/detail.test.js +3 -3
- package/src/screens/Device/detail.js +7 -7
- package/src/screens/Drawer/index.js +3 -3
- package/src/screens/EmergencyContacts/EmergencyContactsList.js +8 -4
- package/src/screens/EmergencyContacts/EmergencyContactsSelectContacts.js +3 -3
- package/src/screens/EmergencySetting/components/DropDownItem.js +2 -2
- package/src/screens/GuestInfo/components/RowGuestInfo.js +2 -2
- package/src/screens/GuestInfo/index.js +2 -2
- package/src/screens/HanetCamera/ManageAccess.js +3 -3
- package/src/screens/HanetCamera/MemberInfo.js +2 -2
- package/src/screens/HanetCamera/components/RequestFaceIDPopup.js +2 -2
- package/src/screens/ManageAccess/index.js +3 -3
- package/src/screens/Notification/index.js +3 -3
- package/src/screens/ScanChipQR/components/QRScan/index.js +3 -3
- package/src/screens/SelectUnit/index.js +2 -2
- package/src/screens/SharedUnit/TabHeader.js +2 -2
- package/src/screens/Sharing/Components/EndDevice.js +3 -3
- package/src/screens/Sharing/UnitMemberList.js +2 -2
- package/src/screens/SmartAccount/SuccessfullyConnected/index.js +2 -2
- package/src/screens/SmartIr/__test__/GroupButtonByType.test.js +3 -2
- package/src/screens/SmartIr/components/GroupButtonByType/GroupButtonByType.js +2 -2
- package/src/screens/SmartIr/components/SelectBrand.js +2 -2
- package/src/screens/SubUnit/EditSubUnit.js +2 -2
- package/src/screens/SubUnit/ManageSubUnit.js +3 -3
- package/src/screens/Unit/SelectAddToFavorites.js +2 -2
- package/src/screens/Unit/SelectAddress.js +3 -3
- package/src/screens/Unit/components/AutomateScript/index.js +2 -2
- package/src/screens/Unit/components/ButtonWrapper/index.js +3 -3
- package/src/screens/Unit/components/Header/index.js +2 -2
- package/src/screens/Unit/components/SharedUnit/index.js +5 -5
- package/src/screens/UnitSummary/components/AirQuality/index.js +6 -11
- package/src/screens/UnitSummary/components/WaterQuality/Item/index.js +2 -2
- package/src/screens/UnitSummary/index.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, ActivityIndicator } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { Colors } from '../../configs';
|
|
5
5
|
|
|
6
6
|
import Text from '../Text';
|
|
@@ -116,7 +116,7 @@ const NumberUpDownActionTemplate = ({
|
|
|
116
116
|
onPress={doActionDown}
|
|
117
117
|
accessibilityLabel={AccessibilityLabel.NUMBER_ACTION_DOWN}
|
|
118
118
|
>
|
|
119
|
-
<
|
|
119
|
+
<IconOutline name="down" size={32} color={Colors.Primary} />
|
|
120
120
|
</TouchableOpacity>
|
|
121
121
|
|
|
122
122
|
<Text accessibilityLabel={'text_format'} type="H2">
|
|
@@ -132,7 +132,7 @@ const NumberUpDownActionTemplate = ({
|
|
|
132
132
|
onPress={doActionUp}
|
|
133
133
|
accessibilityLabel={AccessibilityLabel.NUMBER_ACTION_UP}
|
|
134
134
|
>
|
|
135
|
-
<
|
|
135
|
+
<IconOutline name="up" size={32} color={Colors.Primary} />
|
|
136
136
|
</TouchableOpacity>
|
|
137
137
|
</View>
|
|
138
138
|
</View>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
3
3
|
import { Switch, View } from 'react-native';
|
|
4
4
|
import styles from './ButtonWrapperStyles';
|
|
5
5
|
import Text from '../../../Text';
|
|
@@ -28,7 +28,7 @@ const ButtonWrapper = memo(
|
|
|
28
28
|
</View>
|
|
29
29
|
) : (
|
|
30
30
|
<View style={styles.wrapHeadline}>
|
|
31
|
-
<
|
|
31
|
+
<IconOutline name={'lock'} size={20} color={Colors.Gray9} />
|
|
32
32
|
<Text style={styles.textAutoLock}>
|
|
33
33
|
{isButtonEnable ? t('auto_lock_enabled') : t('auto_lock_when')}
|
|
34
34
|
</Text>
|
|
@@ -49,7 +49,7 @@ const ButtonWrapper = memo(
|
|
|
49
49
|
<Text type="Body" style={styles.textValue}>
|
|
50
50
|
{t('instant')}
|
|
51
51
|
</Text>
|
|
52
|
-
<
|
|
52
|
+
<IconOutline name="right" size={20} color={Colors.Gray7} />
|
|
53
53
|
</View>
|
|
54
54
|
)}
|
|
55
55
|
{isButtonReLockTiming && (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo, useCallback, useMemo } from 'react';
|
|
2
2
|
import { TextInput, View, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { useNavigation } from '@react-navigation/native';
|
|
5
5
|
|
|
6
6
|
import Text from '../../../Text';
|
|
@@ -39,7 +39,7 @@ const PasscodeList = memo(() => {
|
|
|
39
39
|
<View style={styles.wrap}>
|
|
40
40
|
<View style={styles.searchBox}>
|
|
41
41
|
<View>
|
|
42
|
-
<
|
|
42
|
+
<IconOutline name="search" size={24} style={styles.search} />
|
|
43
43
|
</View>
|
|
44
44
|
<TextInput
|
|
45
45
|
placeholder={t('search')}
|
|
@@ -58,7 +58,7 @@ const PasscodeList = memo(() => {
|
|
|
58
58
|
<Text style={styles.textCode}>{item.code}</Text>
|
|
59
59
|
<Text style={styles.textName}>{item.name}</Text>
|
|
60
60
|
</View>
|
|
61
|
-
<
|
|
61
|
+
<IconOutline name="right" size={20} color={Colors.Gray8} />
|
|
62
62
|
</TouchableOpacity>
|
|
63
63
|
))}
|
|
64
64
|
</View>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
3
3
|
import { Text, TouchableOpacity, View } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { RadioCircle } from '../../..';
|
|
@@ -50,7 +50,7 @@ const ButtonWrapper = memo(
|
|
|
50
50
|
{isButtonChooseUser && (
|
|
51
51
|
<TouchableOpacity style={styles.buttonValue}>
|
|
52
52
|
<Text style={styles.value}>{value}</Text>
|
|
53
|
-
<
|
|
53
|
+
<IconOutline name="right" size={20} color={Colors.Gray8} />
|
|
54
54
|
</TouchableOpacity>
|
|
55
55
|
)}
|
|
56
56
|
{isButtonSetTime && (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Switch } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
|
|
5
5
|
import Text from '../../Text';
|
|
6
6
|
import styles from './OnOffSimpleTemplateStyle';
|
|
@@ -15,7 +15,7 @@ const OnOffSimpleTemplate = ({
|
|
|
15
15
|
return (
|
|
16
16
|
<View style={styles.wrap}>
|
|
17
17
|
<View style={styles.iconAndText}>
|
|
18
|
-
<
|
|
18
|
+
<IconOutline name="poweroff" size={20} style={styles.marginRight} />
|
|
19
19
|
<Text type="H4">{actionGroup.title}</Text>
|
|
20
20
|
</View>
|
|
21
21
|
{isOn !== null && (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, ScrollView } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { Colors } from '../../configs';
|
|
5
5
|
|
|
6
6
|
import Text from '../../commons/Text';
|
|
@@ -139,7 +139,7 @@ const OptionsDropdownActionTemplate = ({
|
|
|
139
139
|
>
|
|
140
140
|
{displaySelected}
|
|
141
141
|
</Text>
|
|
142
|
-
<
|
|
142
|
+
<IconOutline name="right" size={20} />
|
|
143
143
|
</TouchableOpacity>
|
|
144
144
|
<AlertAction
|
|
145
145
|
visible={stateAlert.visible}
|
|
@@ -5,7 +5,7 @@ import styles from './SmartTiviActionTemplateStyles';
|
|
|
5
5
|
import Text from '../../Text';
|
|
6
6
|
import { Colors } from '../../../configs';
|
|
7
7
|
import { SMART_TIVI_BUTTON } from '../../../configs/Constants';
|
|
8
|
-
import
|
|
8
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
9
9
|
import CircleButton from './component/CircleButton';
|
|
10
10
|
import RectangleButton from './component/RectangleButton';
|
|
11
11
|
import ControlPlay from './component/ControlPlay';
|
|
@@ -97,7 +97,7 @@ const SmartTiviActionTemplate = memo(
|
|
|
97
97
|
<CircleButton
|
|
98
98
|
type="small"
|
|
99
99
|
icon={
|
|
100
|
-
<
|
|
100
|
+
<IconOutline
|
|
101
101
|
name="poweroff"
|
|
102
102
|
size={20}
|
|
103
103
|
color={Colors.Gray6}
|
|
@@ -3,7 +3,7 @@ import { TouchableOpacity, View, Image } from 'react-native';
|
|
|
3
3
|
import styles from './CircleButtonStyles';
|
|
4
4
|
import Text from '../../../Text';
|
|
5
5
|
import { Colors, Images } from '../../../../configs';
|
|
6
|
-
import
|
|
6
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
7
7
|
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
8
8
|
|
|
9
9
|
const CircleButton = memo(
|
|
@@ -46,7 +46,7 @@ const CircleButton = memo(
|
|
|
46
46
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.UP_BUTTON
|
|
47
47
|
}
|
|
48
48
|
>
|
|
49
|
-
<
|
|
49
|
+
<IconOutline size={14} name={'caret-up'} />
|
|
50
50
|
</TouchableOpacity>
|
|
51
51
|
</View>
|
|
52
52
|
<View style={styles.bodyMultipleButton}>
|
|
@@ -57,7 +57,7 @@ const CircleButton = memo(
|
|
|
57
57
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.LEFT_BUTTON
|
|
58
58
|
}
|
|
59
59
|
>
|
|
60
|
-
<
|
|
60
|
+
<IconOutline size={14} name={'caret-left'} />
|
|
61
61
|
</TouchableOpacity>
|
|
62
62
|
<TouchableOpacity
|
|
63
63
|
style={[styles.okButton]}
|
|
@@ -77,7 +77,7 @@ const CircleButton = memo(
|
|
|
77
77
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.RIGHT_BUTTON
|
|
78
78
|
}
|
|
79
79
|
>
|
|
80
|
-
<
|
|
80
|
+
<IconOutline size={14} name={'caret-right'} />
|
|
81
81
|
</TouchableOpacity>
|
|
82
82
|
</View>
|
|
83
83
|
<View style={styles.footerMultipleButton}>
|
|
@@ -88,7 +88,7 @@ const CircleButton = memo(
|
|
|
88
88
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.DOWN_BUTTON
|
|
89
89
|
}
|
|
90
90
|
>
|
|
91
|
-
<
|
|
91
|
+
<IconOutline size={14} name={'caret-down'} />
|
|
92
92
|
</TouchableOpacity>
|
|
93
93
|
</View>
|
|
94
94
|
</View>
|
|
@@ -6,7 +6,7 @@ import styles from './ControlPlayStyles';
|
|
|
6
6
|
import { Pause } from './Icon';
|
|
7
7
|
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
8
8
|
|
|
9
|
-
import
|
|
9
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
10
10
|
|
|
11
11
|
const ControlPlay = memo(
|
|
12
12
|
({ onPressPrev, onPressStop, onPressNext, wrapStyle }) => {
|
|
@@ -19,9 +19,9 @@ const ControlPlay = memo(
|
|
|
19
19
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.PREV_BUTTON
|
|
20
20
|
}
|
|
21
21
|
>
|
|
22
|
-
<
|
|
22
|
+
<IconOutline
|
|
23
23
|
size={32}
|
|
24
|
-
name={'
|
|
24
|
+
name={'backward'}
|
|
25
25
|
color={Colors.Gray9}
|
|
26
26
|
style={[styles.button]}
|
|
27
27
|
/>
|
|
@@ -42,9 +42,9 @@ const ControlPlay = memo(
|
|
|
42
42
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.NEXT_BUTTON
|
|
43
43
|
}
|
|
44
44
|
>
|
|
45
|
-
<
|
|
45
|
+
<IconOutline
|
|
46
46
|
size={32}
|
|
47
|
-
name={'
|
|
47
|
+
name={'forward'}
|
|
48
48
|
color={Colors.Gray9}
|
|
49
49
|
style={[styles.button]}
|
|
50
50
|
/>
|
|
@@ -6,7 +6,7 @@ import React, {
|
|
|
6
6
|
useState,
|
|
7
7
|
} from 'react';
|
|
8
8
|
import { View, TouchableOpacity } from 'react-native';
|
|
9
|
-
import
|
|
9
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
10
10
|
import Text from '../../commons/Text';
|
|
11
11
|
import { useConfigGlobalState } from '../../iot/states';
|
|
12
12
|
import styles from './TerminalBoxTemplateStyle';
|
|
@@ -174,7 +174,7 @@ const TerminalBoxTemplate = ({ item, doAction, isWidgetOrder }) => {
|
|
|
174
174
|
accessibilityLabel={AccessibilityLabel.TERMINAL_BOX_BUTTON_SEND}
|
|
175
175
|
disabled={!value}
|
|
176
176
|
>
|
|
177
|
-
<
|
|
177
|
+
<IconOutline name="send" size={25} />
|
|
178
178
|
</TouchableOpacity>
|
|
179
179
|
</View>
|
|
180
180
|
</View>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
2
2
|
import { View, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import Text from '../../commons/Text';
|
|
5
5
|
import { AlertAction } from '../../commons';
|
|
6
6
|
import { useDropdownAction } from './hooks/useDropdownAction';
|
|
@@ -48,7 +48,7 @@ const TextBoxTemplate = ({ item, doAction, isWidgetOrder }) => {
|
|
|
48
48
|
onPress={onShowAlert}
|
|
49
49
|
accessibilityLabel={AccessibilityLabel.TEXT_BOX_BUTTON_EDIT}
|
|
50
50
|
>
|
|
51
|
-
<
|
|
51
|
+
<IconOutline name="edit" size={25} />
|
|
52
52
|
</TouchableOpacity>
|
|
53
53
|
</View>
|
|
54
54
|
<AlertAction
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
2
2
|
import { Switch, TouchableOpacity, View } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import DateTimePickerModal from 'react-native-modal-datetime-picker';
|
|
5
5
|
import moment from 'moment';
|
|
6
6
|
import { watchMultiConfigs } from '../../iot/Monitor';
|
|
@@ -183,7 +183,10 @@ const TimerActionTemplate = ({ item = {}, doAction, sensor = {} }) => {
|
|
|
183
183
|
<Text>{title}</Text>
|
|
184
184
|
{configuration.config_hour && configuration.config_minute && (
|
|
185
185
|
<View style={styles.wrapTimer}>
|
|
186
|
-
<
|
|
186
|
+
<IconOutline
|
|
187
|
+
style={styles.iconClockCircle}
|
|
188
|
+
name={'clock-circle'}
|
|
189
|
+
/>
|
|
187
190
|
<Text type="Label" color={Colors.Gray7}>
|
|
188
191
|
{textTimer ? textTimer : t('set_time')}
|
|
189
192
|
</Text>
|
|
@@ -193,7 +196,7 @@ const TimerActionTemplate = ({ item = {}, doAction, sensor = {} }) => {
|
|
|
193
196
|
{configuration.config_hour && !configuration.config_minute && (
|
|
194
197
|
<View style={styles.timerButton}>
|
|
195
198
|
<Text style={styles.textTimerEndLine}>{textTimer}</Text>
|
|
196
|
-
<
|
|
199
|
+
<IconOutline name="right" size={20} />
|
|
197
200
|
</View>
|
|
198
201
|
)}
|
|
199
202
|
</TouchableOpacity>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
2
2
|
import React, { memo, useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import { TouchableOpacity, View } from 'react-native';
|
|
4
4
|
|
|
@@ -122,7 +122,7 @@ const TwoButtonTemplate = memo(({ item = {}, doAction, sensor = {} }) => {
|
|
|
122
122
|
key={index}
|
|
123
123
|
>
|
|
124
124
|
<View style={styles.smallCircle}>
|
|
125
|
-
<
|
|
125
|
+
<IconOutline
|
|
126
126
|
name={button?.isCheckOnOff ? button?.icon_on : button?.icon_off}
|
|
127
127
|
size={44}
|
|
128
128
|
color={button?.isCheckOnOff ? Colors.Green7 : Colors.Gray6}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { AccessibilityLabel } from '../../configs/Constants';
|
|
5
5
|
|
|
6
6
|
const BackDefault = memo(({ goBack, color, fixedHeight }) => {
|
|
@@ -10,7 +10,7 @@ const BackDefault = memo(({ goBack, color, fixedHeight }) => {
|
|
|
10
10
|
onPress={goBack}
|
|
11
11
|
style={[styles.wrap, fixedHeight && styles.noPaddingVertical]}
|
|
12
12
|
>
|
|
13
|
-
<
|
|
13
|
+
<IconOutline name="left" size={27} color={color} />
|
|
14
14
|
</TouchableOpacity>
|
|
15
15
|
);
|
|
16
16
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
|
|
5
5
|
import { Colors, Device } from '../../configs';
|
|
6
6
|
import { AccessibilityLabel } from '../../configs/Constants';
|
|
@@ -42,7 +42,7 @@ const ButtonPopup = ({
|
|
|
42
42
|
<View style={styles.popoverStyle}>
|
|
43
43
|
<View style={styles.modalWrapper}>
|
|
44
44
|
{!hideClose && (
|
|
45
|
-
<
|
|
45
|
+
<IconOutline
|
|
46
46
|
name={'close'}
|
|
47
47
|
color={Colors.Gray8}
|
|
48
48
|
style={styles.close}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { Colors } from '../../configs';
|
|
5
5
|
|
|
6
6
|
const DateTimeButton = memo(({ onPress, style, children }) => {
|
|
7
7
|
return (
|
|
8
8
|
<TouchableOpacity style={[styles.dateSelect, style]} onPress={onPress}>
|
|
9
9
|
{children}
|
|
10
|
-
<
|
|
10
|
+
<IconOutline style={styles.iconDateTime} name={'calendar'} />
|
|
11
11
|
</TouchableOpacity>
|
|
12
12
|
);
|
|
13
13
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
5
5
|
import { Colors } from '../../configs';
|
|
6
6
|
import Text from '../../commons/Text';
|
|
@@ -30,7 +30,7 @@ const ConnectedViewHeader = memo(
|
|
|
30
30
|
return (
|
|
31
31
|
<View style={styles.statusContainer}>
|
|
32
32
|
<View style={styles.connectStatus}>
|
|
33
|
-
<
|
|
33
|
+
<IconOutline name={'wifi'} color={Colors.Green6} size={16} />
|
|
34
34
|
<DisplayTextConnected type={type} />
|
|
35
35
|
</View>
|
|
36
36
|
{isDisplayTime && (
|
|
@@ -6,7 +6,7 @@ import MediaPlayer from '../../MediaPlayer';
|
|
|
6
6
|
import { standardizeCameraScreenSize } from '../../../utils/Utils';
|
|
7
7
|
import { Colors, Device } from '../../../configs';
|
|
8
8
|
import { RowUser } from '../../RowUser';
|
|
9
|
-
import
|
|
9
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
10
10
|
import { useEmeragencyContacts } from '../../../screens/EmergencyContacts/hook';
|
|
11
11
|
import { useIsFocused } from '@react-navigation/native';
|
|
12
12
|
|
|
@@ -49,12 +49,12 @@ const EmergencyDetail = memo(({ item }) => {
|
|
|
49
49
|
key={contact.id.toString()}
|
|
50
50
|
index={index}
|
|
51
51
|
leftIcon={
|
|
52
|
-
<
|
|
52
|
+
<IconOutline name={'user'} size={20} color={Colors.White} />
|
|
53
53
|
}
|
|
54
54
|
text={contact.name}
|
|
55
55
|
rightComponent={
|
|
56
56
|
<View style={styles.rightComponent}>
|
|
57
|
-
<
|
|
57
|
+
<IconOutline
|
|
58
58
|
name={'phone'}
|
|
59
59
|
size={20}
|
|
60
60
|
color={Colors.Gray9}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo, useCallback, useState } from 'react';
|
|
2
2
|
import { StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { Colors, Constants } from '../../configs';
|
|
5
5
|
import { AccessibilityLabel } from '../../configs/Constants';
|
|
6
6
|
import { useBoolean } from '../../hooks/Common';
|
|
@@ -75,7 +75,7 @@ const FlatListItems = memo(({ data, style, title, offsetTitle }) => {
|
|
|
75
75
|
style={styles.iconInfo}
|
|
76
76
|
accessibilityLabel={AccessibilityLabel.TOUCH_INFO_FLAT_LIST_ITEM}
|
|
77
77
|
>
|
|
78
|
-
<
|
|
78
|
+
<IconOutline name={'info-circle'} size={16} color={Colors.Gray8} />
|
|
79
79
|
</TouchableOpacity>
|
|
80
80
|
)}
|
|
81
81
|
</View>
|
|
@@ -98,7 +98,7 @@ const FlatListItems = memo(({ data, style, title, offsetTitle }) => {
|
|
|
98
98
|
onPress={() => setViewFull(true)}
|
|
99
99
|
>
|
|
100
100
|
<Text style={styles.textSeeMore}>{t('see_more')}</Text>
|
|
101
|
-
<
|
|
101
|
+
<IconOutline name={'caret-down'} color={Colors.Gray8} size={16} />
|
|
102
102
|
</TouchableOpacity>
|
|
103
103
|
)}
|
|
104
104
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
TouchableWithoutFeedback,
|
|
6
6
|
View,
|
|
7
7
|
} from 'react-native';
|
|
8
|
-
import
|
|
8
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
9
9
|
import { useNavigation } from '@react-navigation/native';
|
|
10
10
|
|
|
11
11
|
import Text from '../../Text';
|
|
@@ -35,7 +35,7 @@ const ItemHanetDevice = memo(
|
|
|
35
35
|
return iconKit ? (
|
|
36
36
|
<FImage source={{ uri: iconKit }} style={styles.iconSensor} />
|
|
37
37
|
) : (
|
|
38
|
-
<
|
|
38
|
+
<IconOutline name={svgMain} size={32} color={Colors.Red6} />
|
|
39
39
|
);
|
|
40
40
|
};
|
|
41
41
|
|
|
@@ -58,7 +58,7 @@ const ItemHanetDevice = memo(
|
|
|
58
58
|
{title}
|
|
59
59
|
</Text>
|
|
60
60
|
<View style={styles.row}>
|
|
61
|
-
<
|
|
61
|
+
<IconOutline name="right" size={12} />
|
|
62
62
|
</View>
|
|
63
63
|
</TouchableOpacity>
|
|
64
64
|
</View>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { TouchableWithoutFeedback, View } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import Text from '../../Text';
|
|
5
5
|
|
|
6
6
|
import { Colors } from '../../../configs';
|
|
@@ -16,7 +16,7 @@ const ItemAddNew = memo(({ title, onAddNew, wrapStyle }) => {
|
|
|
16
16
|
<View style={[styles.container, wrapStyle]}>
|
|
17
17
|
<View style={styles.boxIcon}>
|
|
18
18
|
<View style={styles.buttonPlus}>
|
|
19
|
-
<
|
|
19
|
+
<IconOutline name="plus" size={22} color={Colors.Gray8} />
|
|
20
20
|
</View>
|
|
21
21
|
</View>
|
|
22
22
|
<View>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useCallback, useMemo } from 'react';
|
|
2
2
|
import { Platform, StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
3
3
|
import Routes from '../../utils/Route';
|
|
4
|
-
import
|
|
4
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
5
5
|
import { useNavigation } from '@react-navigation/native';
|
|
6
6
|
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
7
7
|
import ItemQuickAction from '../../commons/Action/ItemQuickAction';
|
|
@@ -116,7 +116,7 @@ const ItemDevice = memo(
|
|
|
116
116
|
>
|
|
117
117
|
{description || textConnected}
|
|
118
118
|
</Text>
|
|
119
|
-
<
|
|
119
|
+
<IconOutline name="right" size={12} />
|
|
120
120
|
</View>
|
|
121
121
|
</TouchableOpacity>
|
|
122
122
|
</ItemDeviceWrapper>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useState } from 'react';
|
|
2
2
|
import { View, TouchableOpacity } from 'react-native';
|
|
3
3
|
import { useTranslations } from '../../../hooks/Common/useTranslations';
|
|
4
|
-
import
|
|
4
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
5
5
|
import { Slider } from '@miblanchard/react-native-slider';
|
|
6
6
|
|
|
7
7
|
import Text from '../../Text';
|
|
@@ -44,7 +44,7 @@ const SonosSpeaker = memo(() => {
|
|
|
44
44
|
</TouchableOpacity>
|
|
45
45
|
<View style={styles.threeButton}>
|
|
46
46
|
<TouchableOpacity style={styles.buttonLeft}>
|
|
47
|
-
<
|
|
47
|
+
<IconOutline name={'backward'} size={35} color={Colors.Black} />
|
|
48
48
|
</TouchableOpacity>
|
|
49
49
|
<TouchableOpacity
|
|
50
50
|
style={styles.buttonCenter}
|
|
@@ -53,7 +53,7 @@ const SonosSpeaker = memo(() => {
|
|
|
53
53
|
{active ? <SvgButtonPauseActive /> : <SvgButtonPauseNotActive />}
|
|
54
54
|
</TouchableOpacity>
|
|
55
55
|
<TouchableOpacity style={styles.buttonRight}>
|
|
56
|
-
<
|
|
56
|
+
<IconOutline name={'forward'} size={35} color={Colors.Black} />
|
|
57
57
|
</TouchableOpacity>
|
|
58
58
|
</View>
|
|
59
59
|
</View>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { View, StyleSheet } from 'react-native';
|
|
3
3
|
import Text from '../../../commons/Text';
|
|
4
|
-
import
|
|
4
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
5
5
|
|
|
6
6
|
const AlertStatusMachine = memo(({ message, style, icon }) => {
|
|
7
7
|
return (
|
|
8
8
|
<View style={[styles.container, style]}>
|
|
9
|
-
<
|
|
9
|
+
<IconOutline
|
|
10
10
|
name={icon}
|
|
11
11
|
size={20}
|
|
12
12
|
color={style.borderColor}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { View, Dimensions, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { useNavigation } from '@react-navigation/native';
|
|
5
5
|
|
|
6
6
|
import { Colors } from '../../../configs';
|
|
@@ -35,7 +35,11 @@ const QualityIndicatorItem = memo(
|
|
|
35
35
|
onPress={() => navigation.navigate(descriptionScreen)}
|
|
36
36
|
style={styles.iconInfo}
|
|
37
37
|
>
|
|
38
|
-
<
|
|
38
|
+
<IconOutline
|
|
39
|
+
name={'info-circle'}
|
|
40
|
+
size={18}
|
|
41
|
+
color={Colors.Gray8}
|
|
42
|
+
/>
|
|
39
43
|
</TouchableOpacity>
|
|
40
44
|
)}
|
|
41
45
|
</View>
|
|
@@ -3,7 +3,7 @@ import { View, TouchableOpacity } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { Colors } from '../../configs';
|
|
5
5
|
import Text from '../../commons/Text';
|
|
6
|
-
import
|
|
6
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
7
7
|
import styles from './styles';
|
|
8
8
|
import { ModalCustom } from '../Modal';
|
|
9
9
|
import Loading from '../../screens/Automate/Components/Loading';
|
|
@@ -18,7 +18,7 @@ const LoadingMessage = memo(({ visible, onClose, message }) => {
|
|
|
18
18
|
onPress={onClose}
|
|
19
19
|
>
|
|
20
20
|
<Loading
|
|
21
|
-
icon={<
|
|
21
|
+
icon={<IconOutline name={'sync'} color={Colors.Green6} size={16} />}
|
|
22
22
|
/>
|
|
23
23
|
<Text type={'Body'} style={styles.text}>
|
|
24
24
|
{message}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
import { ButtonPopup } from '../index';
|
|
4
4
|
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
5
|
-
import
|
|
5
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
6
6
|
import Text from '../Text';
|
|
7
7
|
import { Colors } from '../../configs';
|
|
8
8
|
|
|
@@ -29,7 +29,7 @@ const AlertSendConfirm = ({
|
|
|
29
29
|
bodyStyle={styles.buttonPopupBody}
|
|
30
30
|
>
|
|
31
31
|
<View style={styles.firstInfo}>
|
|
32
|
-
<
|
|
32
|
+
<IconOutline name="clock-circle" size={42} style={styles.clock} />
|
|
33
33
|
<Text semibold type="H4" style={styles.textAlertWillBe}>
|
|
34
34
|
{t('alert_will_be_sent_in')}
|
|
35
35
|
</Text>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo, useEffect, useState } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
3
3
|
import { TouchableOpacity, View } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import styles from './ChooseFieldStyles';
|
|
@@ -47,7 +47,7 @@ const ChooseUserField = ({ unit, dataItem, index, setDataForm, dataForm }) => {
|
|
|
47
47
|
onPress={setShowFilterPopup}
|
|
48
48
|
>
|
|
49
49
|
<Text style={styles.value}>{choose.name}</Text>
|
|
50
|
-
<
|
|
50
|
+
<IconOutline name="right" size={20} color={Colors.Gray8} />
|
|
51
51
|
</TouchableOpacity>
|
|
52
52
|
<ChoosePopup
|
|
53
53
|
isVisible={showFilterPopup}
|