@ledvance/ui-biz-bundle 1.1.145 → 1.1.146
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/newModules/energyConsumption/component/PowerLineChart.tsx +4 -1
- package/src/newModules/sleepWakeUp/SleepWakeUpPage.tsx +1 -1
- package/src/newModules/swithInching/SwithInching.tsx +2 -1
- package/src/newModules/timeSchedule/TimeScheduleActions.ts +5 -2
- package/src/newModules/timeSchedule/TimeScheduleDetailPage.tsx +2 -2
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ import { getEndTime, getStartTime, sleepNode2Dp, useSleepMode, useWakeUp, wakeUp
|
|
|
18
18
|
import { SleepUIItem, WakeUpUIItem } from "./Interface";
|
|
19
19
|
import Card from "@ledvance/base/src/components/Card";
|
|
20
20
|
import { useParams } from "@ledvance/base/src/hooks/Hooks";
|
|
21
|
-
import { ApplyForItem } from "
|
|
21
|
+
import { ApplyForItem } from "@ledvance/base/src/utils/interface";
|
|
22
22
|
import InfoText from "@ledvance/base/src/components/InfoText";
|
|
23
23
|
import ThemeType from '@ledvance/base/src/config/themeType'
|
|
24
24
|
import { useConflictTask } from "hooks/DeviceDpStateHooks";
|
|
@@ -171,7 +171,7 @@ const SwitchInching = (props: { theme?: ThemeType }) => {
|
|
|
171
171
|
const newSwitchInchingItem = {
|
|
172
172
|
...state.switchInchingItem,
|
|
173
173
|
enable: v,
|
|
174
|
-
time
|
|
174
|
+
time: time < 2 ? 2 : time
|
|
175
175
|
}
|
|
176
176
|
if (v) {
|
|
177
177
|
const switchingTask = {
|
|
@@ -228,6 +228,7 @@ const SwitchInching = (props: { theme?: ThemeType }) => {
|
|
|
228
228
|
]}
|
|
229
229
|
setHour={m => updateTime(m, undefined)}
|
|
230
230
|
setMinute={s => updateTime(undefined, s)}
|
|
231
|
+
minMinute={timeRef.current.minute === '00' ? 2 : 0}
|
|
231
232
|
maxHour={61}
|
|
232
233
|
/>
|
|
233
234
|
</View>
|
|
@@ -3,6 +3,7 @@ import { Timer, TimerActions } from './Interface';
|
|
|
3
3
|
import { parseJSON } from '@tuya/tuya-panel-lamp-sdk/lib/utils';
|
|
4
4
|
import { ColorList } from '@ledvance/base/src/components/StripAdjustView';
|
|
5
5
|
import {AdjustType} from "@ledvance/base/src/utils/interface";
|
|
6
|
+
import { TimeScheduleDetailPageParams } from './TimeScheduleDetailPage'
|
|
6
7
|
|
|
7
8
|
export const defDeviceData = {
|
|
8
9
|
h: 0,
|
|
@@ -38,8 +39,10 @@ export const defMoodStripDeviceData = {
|
|
|
38
39
|
adjustType: AdjustType.COLOUR
|
|
39
40
|
};
|
|
40
41
|
|
|
41
|
-
export const defShutterDeviceData = {
|
|
42
|
-
|
|
42
|
+
export const defShutterDeviceData = (props: TimeScheduleDetailPageParams) => {
|
|
43
|
+
return {
|
|
44
|
+
percentControl: (props.suggestValue !== undefined && !props.suggestValue) ? 0 : 100
|
|
45
|
+
}
|
|
43
46
|
};
|
|
44
47
|
|
|
45
48
|
export const defOsramFanLightDeviceData = {
|
|
@@ -240,7 +240,7 @@ const TimeScheduleDetailPage = (props: { theme?: ThemeType }) => {
|
|
|
240
240
|
|
|
241
241
|
const renderSkillGroup = (skills: ApplyForItem[], i18nString: string) => {
|
|
242
242
|
if (!skills.length) return null;
|
|
243
|
-
|
|
243
|
+
|
|
244
244
|
return (
|
|
245
245
|
<>
|
|
246
246
|
<Text style={{ fontSize: cx(14), color: props.theme?.global.fontColor }}>
|
|
@@ -711,7 +711,7 @@ const getDefaultManual = (props: TimeScheduleDetailPageParams): ComponentConfig
|
|
|
711
711
|
[DeviceType.MixLight]: defMixDeviceData,
|
|
712
712
|
[DeviceType.FanLight]: defFanLightDeviceData,
|
|
713
713
|
[DeviceType.MoodStrip]: defMoodStripDeviceData,
|
|
714
|
-
[DeviceType.Shutter]: defShutterDeviceData,
|
|
714
|
+
[DeviceType.Shutter]: defShutterDeviceData(props),
|
|
715
715
|
[DeviceType.OsramFanLight]: defOsramFanLightDeviceData,
|
|
716
716
|
[DeviceType.PowerStrip]: defDeviceData,
|
|
717
717
|
[DeviceType.LightSource]: defDeviceData,
|