@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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.145",
7
+ "version": "1.1.146",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -42,7 +42,10 @@ const PowerLineChart = (props: PowerLineChartProps) => {
42
42
  interval: 'auto',
43
43
  rotate: 45,
44
44
  align: 'right',
45
- verticalAlign: 'top'
45
+ verticalAlign: 'top',
46
+ formatter: {
47
+ day: '{HH}:{mm}'
48
+ }
46
49
  }
47
50
  },
48
51
  yAxis: [{
@@ -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 "../timeSchedule/Interface";
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
- percentControl: 100
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,