@ledvance/ui-biz-bundle 1.1.79 → 1.1.81

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.79",
7
+ "version": "1.1.81",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -78,7 +78,7 @@ const StaticMoodEditorPage = () => {
78
78
  ...state.mood,
79
79
  mainLamp: {
80
80
  ...state.mood.mainLamp,
81
- nodes: [cloneDeep(state.mainNode)],
81
+ nodes: state.mainNode ? [cloneDeep(state.mainNode)] : [],
82
82
  },
83
83
  secondaryLamp: {
84
84
  ...state.mood.secondaryLamp,
@@ -88,7 +88,7 @@ const StaticMoodEditorPage = () => {
88
88
  if (isMix && moduleParams.isMixLight) {
89
89
  newMood.secondaryLamp = {
90
90
  ...newMood.secondaryLamp,
91
- nodes: [cloneDeep(state.secondaryNode)],
91
+ nodes: state.secondaryNode ? [cloneDeep(state.secondaryNode)] : [],
92
92
  };
93
93
  newMood.mainLamp.type = 2
94
94
  if (moduleParams.isSupportBrightness && !moduleParams.isSupportTemperature) {
@@ -505,7 +505,8 @@ const SleepWakeUpDetailPage = () => {
505
505
  time={`${convertMinutesTo12HourFormat(
506
506
  state.sleepWakeUp.startTime,
507
507
  is24HourClock
508
- )} - ${convertMinutesTo12HourFormat(state.sleepWakeUp.endTime, is24HourClock)}`}
508
+ )} - ${convertMinutesTo12HourFormat(state.sleepWakeUp.endTime + (state.sleepWakeUp.isSleep ? 0 : state.sleepWakeUp.last * 5),
509
+ is24HourClock)}`}
509
510
  actions={(
510
511
  <View>
511
512
  <Text style={{ fontSize: cx(12), color: '#000000' }}>
@@ -317,7 +317,7 @@ const SleepWakeUpCard = (props: {
317
317
  <Spacer height={cx(16)} />
318
318
  <View style={styles.switchLine}>
319
319
  <Text style={styles.time}>
320
- {`${convertMinutesTo12HourFormat(sleepWakeUp.startTime, is24HourClock)} - ${convertMinutesTo12HourFormat(sleepWakeUp.endTime, is24HourClock)}`}</Text>
320
+ {`${convertMinutesTo12HourFormat(sleepWakeUp.startTime, is24HourClock)} - ${convertMinutesTo12HourFormat(sleepWakeUp.endTime + (sleepWakeUp.isSleep ? 0 : sleepWakeUp.last * 5), is24HourClock)}`}</Text>
321
321
  <SwitchButton
322
322
  value={sleepWakeUp.enable}
323
323
  thumbStyle={{ elevation: 0 }}
@@ -453,4 +453,4 @@ const styles = StyleSheet.create({
453
453
  },
454
454
  })
455
455
 
456
- export default SleepWakeUpPage
456
+ export default SleepWakeUpPage
@@ -103,6 +103,7 @@ export type ComponentConfig =
103
103
  | { type: DeviceType.LightSource; deviceData: DeviceData }
104
104
  | { type: DeviceType.MixLight; deviceData: MixLightData }
105
105
  | { type: DeviceType.StripLight; deviceData: StripLightData }
106
+ | { type: DeviceType.CeilingLight; deviceData: StripLightData }
106
107
  | { type: DeviceType.FanLight; deviceData: FanLightData }
107
108
  | { type: DeviceType.PowerStrip; deviceData: DeviceData}
108
109
 
@@ -458,6 +458,7 @@ const TimeScheduleDetailPage = (props: { theme?: any }) => {
458
458
  isSupportTemperature={params.isSupportTemperature}
459
459
  isStripLight={params.isStripLight}
460
460
  isCeilingLight={params.isCeilingLight}
461
+ isUVCFan={params.isUVCFan}
461
462
  manualData={state.manualData}
462
463
  onManualChange={manual => {
463
464
  state.manualData = {
@@ -639,10 +640,9 @@ const getDefaultManual = (props: TimeScheduleDetailPageParams): ComponentConfig
639
640
  : deviceType === DeviceType.FanLight
640
641
  ? defFanLightDeviceData
641
642
  : defDeviceData;
642
-
643
+
643
644
  return {
644
- // @ts-ignore
645
- type: deviceType,
645
+ type: deviceType as any,
646
646
  deviceData: {
647
647
  ...deviceData,
648
648
  isColorMode: props.isSupportColor,
@@ -1,5 +1,5 @@
1
1
  import React, { memo, useMemo } from 'react';
2
- import { CeilingLightData, DeviceType, directOptions, ManualSettingProps, modeOptions, StripLightData } from '../Interface';
2
+ import { DeviceType, directOptions, FanLightData, ManualSettingProps, modeOptions, StripLightData } from '../Interface';
3
3
  import { View } from 'react-native';
4
4
  import Card from '@ledvance/base/src/components/Card';
5
5
  import LampAdjustView from '@ledvance/base/src/components/LampAdjustView';
@@ -142,9 +142,9 @@ function ManualSettings(props: ManualSettingProps) {
142
142
  isSupportDirection={props.isUVCFan}
143
143
  isSupportDisinfect={props.isUVCFan}
144
144
  isSupportMode={props.isUVCFan}
145
- directValue={''}
146
- disinfect={true}
147
- modeValue={''}
145
+ directValue={(state.deviceData as FanLightData).direction}
146
+ disinfect={(state.deviceData as FanLightData).disinfect}
147
+ modeValue={(state.deviceData as FanLightData).mode}
148
148
  directOptions={directOptions}
149
149
  modeOptions={modeOptions}
150
150
  directChange={(direction: any) => {
@@ -316,7 +316,7 @@ function ManualSettings(props: ManualSettingProps) {
316
316
  }, [state.deviceData, state.applyForList, props.theme.type]);
317
317
 
318
318
  const ceilingLightCard = useMemo(() => {
319
- const deviceData = state.deviceData as CeilingLightData
319
+ const deviceData = state.deviceData as StripLightData
320
320
  return (
321
321
  <View>
322
322
  {state.applyForList.map((item, idx) => (