@ledvance/ui-biz-bundle 1.1.132 → 1.1.133
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
CHANGED
|
@@ -112,7 +112,8 @@ export const useConflictTask = (conflictDps: ConflictDps, isPlug?: boolean): [(v
|
|
|
112
112
|
const biorhythmTask = {
|
|
113
113
|
startTime: 0,
|
|
114
114
|
endTime: 1440,
|
|
115
|
-
weeks: biorhythm.repeatPeriod.map(item => item.enabled ? 1 : 0)
|
|
115
|
+
weeks: biorhythm.repeatPeriod.map(item => item.enabled ? 1 : 0),
|
|
116
|
+
channel: 1
|
|
116
117
|
}
|
|
117
118
|
if (isConflictTask(conflictItem, biorhythmTask)){
|
|
118
119
|
newState[conflictDps.biorhythmDpCode] = {
|
|
@@ -272,7 +272,8 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
|
|
|
272
272
|
startTime: 0,
|
|
273
273
|
endTime: 1440,
|
|
274
274
|
weeks: biorhythm.repeatPeriod.map(item => item.enabled ? 1 : 0),
|
|
275
|
-
enable: biorhythm.enable
|
|
275
|
+
enable: biorhythm.enable,
|
|
276
|
+
channel: 1
|
|
276
277
|
}
|
|
277
278
|
if (enable && checkConflict(biorhythmTask)) {
|
|
278
279
|
return showCommonDialog({
|
|
@@ -224,7 +224,7 @@ const DiySceneEditorPage = (props: { theme?: ThemeType }) => {
|
|
|
224
224
|
maxLength={33}
|
|
225
225
|
showError={state.sceneInfo.name.length > 32 || nameRepeat}
|
|
226
226
|
tipColor={nameRepeat ? props.theme?.global.error : undefined}
|
|
227
|
-
tipIcon={nameRepeat ? res.ic_text_field_input_error : undefined}
|
|
227
|
+
tipIcon={nameRepeat ? { uri: res.ic_text_field_input_error } : undefined}
|
|
228
228
|
errorText={I18n.getLang(
|
|
229
229
|
nameRepeat ? 'string_light_pp_field_sm_add_error1' : 'add_new_dynamic_mood_alert_text'
|
|
230
230
|
)}
|
|
@@ -233,19 +233,16 @@ const DiySceneEditorPage = (props: { theme?: ThemeType }) => {
|
|
|
233
233
|
state.sceneInfo.type === 'DIY' && <Card style={styles.nodeCard}>
|
|
234
234
|
<View style={styles.nodeOperation}>
|
|
235
235
|
{state.sceneInfo.nodes.length < 8 && <TouchableOpacity onPress={() => {
|
|
236
|
-
console.log('onPress add node')
|
|
237
236
|
const color = {h: state.h, s: state.s * 10, v: 1000}
|
|
238
237
|
state.sceneInfo.nodes.push({top: color, bottom: color});
|
|
239
238
|
}}>
|
|
240
|
-
<Image source={{uri: res.ic_plus}} style={{tintColor: props.theme?.icon.primary}} />
|
|
239
|
+
<Image source={{uri: res.ic_plus}} style={{width: cx(25), height: cx(25), tintColor: props.theme?.icon.primary}} />
|
|
241
240
|
</TouchableOpacity>}
|
|
242
241
|
{ state.sceneInfo.nodes.length > 2 && <TouchableOpacity onPress={() => {
|
|
243
|
-
console.log('onPress delete node')
|
|
244
242
|
state.sceneInfo.nodes.splice(state.currentNode, 1)
|
|
245
243
|
state.currentNode = state.currentNode === state.sceneInfo.nodes.length ? 0 : state.currentNode
|
|
246
|
-
console.log('nextNode', state.currentNode)
|
|
247
244
|
}}>
|
|
248
|
-
<Image source={{uri: res.ic_mood_del}} style={{marginLeft: cx(5),tintColor: props.theme?.icon.primary}} />
|
|
245
|
+
<Image source={{uri: res.ic_mood_del}} style={{width: cx(25), height: cx(25), marginLeft: cx(5),tintColor: props.theme?.icon.primary}} />
|
|
249
246
|
</TouchableOpacity>}
|
|
250
247
|
</View>
|
|
251
248
|
<View style={styles.nodeList}>
|
|
@@ -321,6 +318,7 @@ const DiySceneEditorPage = (props: { theme?: ThemeType }) => {
|
|
|
321
318
|
state.sceneInfo.speed = v
|
|
322
319
|
}}
|
|
323
320
|
subTitleStr={`${(state.sceneInfo.speed || 1)}/100`}/>
|
|
321
|
+
<Spacer />
|
|
324
322
|
</Card>
|
|
325
323
|
}
|
|
326
324
|
|
|
@@ -123,7 +123,8 @@ const SleepWakeUpPage = (props: { theme?: ThemeType }) => {
|
|
|
123
123
|
const currentSleepWakeUp = {
|
|
124
124
|
...sleepWakeUp,
|
|
125
125
|
startTime: getStartTime(sleepWakeUp),
|
|
126
|
-
endTime: getEndTime(sleepWakeUp)
|
|
126
|
+
endTime: getEndTime(sleepWakeUp),
|
|
127
|
+
channel: 1
|
|
127
128
|
}
|
|
128
129
|
const newSleepList = cloneSleepPlan.map((item, idx) => {
|
|
129
130
|
const itself = isSleep ? (mode === 'add' ? (idx === cloneSleepPlan.length - 1) : sleepWakeUp.id === item.id) : isSleep
|