@ledvance/ui-biz-bundle 1.1.131 → 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
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.131",
7
+ "version": "1.1.133",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -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
@@ -6,7 +6,7 @@ import { convertTo12HourFormat, loopText } from '@ledvance/base/src/utils/common
6
6
  import { ApplyForItem, Timer } from "../Interface";
7
7
  import { useSystemTimeFormate } from "@ledvance/base/src/models/modules/NativePropsSlice";
8
8
  import ThemeType from '@ledvance/base/src/config/themeType'
9
-
9
+ import Spacer from "@ledvance/base/src/components/Spacer";
10
10
  const { convertX: cx } = Utils.RatioUtils;
11
11
  const { withTheme } = Utils.ThemeUtils
12
12
 
@@ -117,7 +117,7 @@ const ScheduleCard = (props: ScheduleCardProps) => {
117
117
  />
118
118
  </View>
119
119
  </View>
120
- {showTag && <View style={styles.typeContainer}>
120
+ {showTag ? <View style={styles.typeContainer}>
121
121
  {showTags.map(tag => (
122
122
  <View style={styles.tag} key={tag.dp}>
123
123
  <Text style={styles.tagTitle}>
@@ -125,10 +125,10 @@ const ScheduleCard = (props: ScheduleCardProps) => {
125
125
  </Text>
126
126
  </View>
127
127
  ))}
128
- </View>}
128
+ </View> : <Spacer height={cx(16)} />}
129
129
  </Card>
130
130
  )
131
131
 
132
132
  }
133
133
 
134
- export default withTheme(ScheduleCard)
134
+ export default withTheme(ScheduleCard) as React.ComponentType<ScheduleCardProps>