@ledvance/ui-biz-bundle 1.1.2 → 1.1.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.
- package/package.json +1 -1
- package/src/modules/biorhythm/BiorhythmEditPage.tsx +1 -0
- package/src/modules/fixedTime/FixedTimeDetailPage.tsx +1 -0
- package/src/modules/mood/DynamicMoodEditorPage.tsx +2 -2
- package/src/modules/mood/FantasyMoodEditPage.tsx +2 -2
- package/src/modules/mood/MoodPage.tsx +1 -9
- package/src/modules/mood/StaticMoodEditorPage.tsx +2 -2
- package/src/modules/randomTime/RandomTimeDetailPage.tsx +1 -0
- package/src/modules/sleepWakeup/DeviceState.tsx +1 -1
- package/src/modules/sleepWakeup/SleepWakeUpDetailPage.tsx +1 -0
- package/src/modules/timeSchedule/TimeScheduleEditpage.tsx +1 -0
package/package.json
CHANGED
|
@@ -181,6 +181,7 @@ const BiorhythmEditPage = () => {
|
|
|
181
181
|
<TextField
|
|
182
182
|
value={state.name}
|
|
183
183
|
showError={state.name?.length > 32}
|
|
184
|
+
maxLength={33}
|
|
184
185
|
errorText={I18n.getLang('add_new_dynamic_mood_alert_text')}
|
|
185
186
|
placeholder={I18n.getLang('add_new_trigger_time_inputfield_value_text')}
|
|
186
187
|
onChangeText={text => {
|
|
@@ -138,6 +138,7 @@ const FixedTimeDetailPage = () => {
|
|
|
138
138
|
style={styles.cardContainer}
|
|
139
139
|
value={state.fixedTime.name}
|
|
140
140
|
showError={state.fixedTime.name?.length > 32}
|
|
141
|
+
maxLength={33}
|
|
141
142
|
errorText={I18n.getLang('add_new_dynamic_mood_alert_text')}
|
|
142
143
|
placeholder={I18n.getLang('add_new_trigger_time_inputfield_value_text')}
|
|
143
144
|
onChangeText={(t: string) => {
|
|
@@ -47,7 +47,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
47
47
|
currentNode: params.currentMood.nodes[params.currentMood.nodes.length - 1],
|
|
48
48
|
paintBucketSelected: false,
|
|
49
49
|
})
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
useEffect(() => {
|
|
52
52
|
state.headline = Strings.getLang(params.mode ? 'add_new_dynamic_mood_headline_text' : 'edit_static_mood_headline_text')
|
|
53
53
|
}, [params.mode])
|
|
@@ -419,7 +419,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
419
419
|
state.mood.fanSpeed = fanSpeed
|
|
420
420
|
}}
|
|
421
421
|
style={styles.fanAdjustCard}/>}
|
|
422
|
-
{params.mode === 'edit' &&
|
|
422
|
+
{params.mode === 'edit' &&
|
|
423
423
|
<View style={{marginTop: cx(20), marginHorizontal: cx(24)}}>
|
|
424
424
|
<TextButton
|
|
425
425
|
style={styles.deleteBtn}
|
|
@@ -59,7 +59,6 @@ const FantasyMoodEditPage = () => {
|
|
|
59
59
|
paintBucketSelected: false,
|
|
60
60
|
sceneMode: params.moduleParams.isStringLight ? stringLightSceneMode : stripLightSceneMode
|
|
61
61
|
})
|
|
62
|
-
const canDelete = useMemo(() => (role === 0 || role === 2), [role])
|
|
63
62
|
|
|
64
63
|
useEffect(() => {
|
|
65
64
|
state.headline = I18n.getLang(params.mode === 'add' ? 'add_new_dynamic_mood_headline_text' : 'edit_static_mood_headline_text')
|
|
@@ -189,6 +188,7 @@ const FantasyMoodEditPage = () => {
|
|
|
189
188
|
state.mood.name = text
|
|
190
189
|
}}
|
|
191
190
|
showError={state.mood.name.length > 32 || nameRepeat}
|
|
191
|
+
maxLength={33}
|
|
192
192
|
tipColor={nameRepeat ? '#f00' : undefined}
|
|
193
193
|
tipIcon={nameRepeat ? res.ic_text_field_input_error : undefined}
|
|
194
194
|
errorText={I18n.getLang(nameRepeat ? 'string_light_pp_field_sm_add_error1' : 'add_new_dynamic_mood_alert_text')} />
|
|
@@ -425,7 +425,7 @@ const FantasyMoodEditPage = () => {
|
|
|
425
425
|
}} />
|
|
426
426
|
</Card>
|
|
427
427
|
<Spacer />
|
|
428
|
-
{params.mode === 'edit' &&
|
|
428
|
+
{params.mode === 'edit' &&
|
|
429
429
|
<View style={{ marginTop: cx(20), marginHorizontal: cx(24) }}>
|
|
430
430
|
<TextButton
|
|
431
431
|
style={styles.deleteBtn}
|
|
@@ -232,15 +232,7 @@ const MoodPage = () => {
|
|
|
232
232
|
}}
|
|
233
233
|
ListHeaderComponent={() => (<Spacer height={cx(10)}/>)}
|
|
234
234
|
ItemSeparatorComponent={() => (<Spacer/>)}
|
|
235
|
-
ListFooterComponent={() => (
|
|
236
|
-
<View style={styles.infoLine}>
|
|
237
|
-
<Spacer/>
|
|
238
|
-
<InfoText
|
|
239
|
-
icon={res.ic_info}
|
|
240
|
-
text={Strings.getLang('mood_overview_information_text')}/>
|
|
241
|
-
<Spacer height={cx(40)}/>
|
|
242
|
-
</View>
|
|
243
|
-
)}
|
|
235
|
+
ListFooterComponent={() => (<Spacer/>)}
|
|
244
236
|
keyExtractor={item => `${item.id}`}/>
|
|
245
237
|
</Page>
|
|
246
238
|
<CustomListDialog
|
|
@@ -54,7 +54,7 @@ const StaticMoodEditorPage = () => {
|
|
|
54
54
|
mood: params.currentMood,
|
|
55
55
|
currentNode: params.currentMood.nodes[0],
|
|
56
56
|
})
|
|
57
|
-
|
|
57
|
+
|
|
58
58
|
useEffect(() => {
|
|
59
59
|
state.headline = Strings.getLang(params.mode === 'add' ? 'add_new_static_mood_headline_text' : 'edit_static_mood_headline_text')
|
|
60
60
|
}, [params.mode])
|
|
@@ -242,7 +242,7 @@ const StaticMoodEditorPage = () => {
|
|
|
242
242
|
state.mood.fanSpeed = fanSpeed
|
|
243
243
|
}}
|
|
244
244
|
style={styles.fanAdjustCard}/>}
|
|
245
|
-
{params.mode === 'edit' &&
|
|
245
|
+
{params.mode === 'edit' &&
|
|
246
246
|
<View style={{marginTop: cx(20), marginHorizontal: cx(24)}}>
|
|
247
247
|
<TextButton
|
|
248
248
|
style={styles.deleteBtn}
|
|
@@ -119,6 +119,7 @@ const RandomTimeDetailPage = () => {
|
|
|
119
119
|
style={styles.cardContainer}
|
|
120
120
|
value={state.randomTime.name}
|
|
121
121
|
showError={state.randomTime.name?.length > 32}
|
|
122
|
+
maxLength={33}
|
|
122
123
|
errorText={I18n.getLang('add_new_dynamic_mood_alert_text')}
|
|
123
124
|
placeholder={I18n.getLang('add_new_trigger_time_inputfield_value_text')}
|
|
124
125
|
onChangeText={(t: string) => {
|
|
@@ -83,7 +83,7 @@ const DeviceState = (props: DeviceStateProps) => {
|
|
|
83
83
|
isColorMode={props.singleActions.isColor}
|
|
84
84
|
setIsColorMode={setWorkModeStateAction}
|
|
85
85
|
reserveSV={true}
|
|
86
|
-
minBrightness={
|
|
86
|
+
minBrightness={1}
|
|
87
87
|
h={props.singleActions.h}
|
|
88
88
|
s={props.singleActions.s}
|
|
89
89
|
v={props.singleActions.v}
|
|
@@ -301,6 +301,7 @@ const SleepWakeUpDetailPage = () => {
|
|
|
301
301
|
style={styles.cardContainer}
|
|
302
302
|
value={state.name}
|
|
303
303
|
showError={state.name?.length > 32}
|
|
304
|
+
maxLength={33}
|
|
304
305
|
errorText={I18n.getLang('add_new_dynamic_mood_alert_text')}
|
|
305
306
|
placeholder={I18n.getLang('add_new_trigger_time_inputfield_value_text')}
|
|
306
307
|
onChangeText={(t: string) => {
|