@ledvance/ui-biz-bundle 1.1.101 → 1.1.103
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
|
@@ -204,7 +204,7 @@ const FlagPage = (props: { theme?: ThemeType }) => {
|
|
|
204
204
|
}else{
|
|
205
205
|
return flagMode?.flagMode && dps[params.workModeCode] === (params.isCeilingLight ? WORK_MODE.WHITE : params.isStripLight ? WORK_MODE.COLOUR : WORK_MODE.SCENE) && flagId === flagItem.id && dps[params.switchLedCode]
|
|
206
206
|
}
|
|
207
|
-
}, [params.isSupportSceneStatus, sceneStatusId, dps[params.workModeCode], dps[params.switchLedCode], flagId])
|
|
207
|
+
}, [params.isSupportSceneStatus, sceneStatusId, dps[params.workModeCode], dps[params.switchLedCode], flagId, flagMode?.flagMode])
|
|
208
208
|
|
|
209
209
|
return (
|
|
210
210
|
<Page
|
|
@@ -128,17 +128,9 @@ export const getRemoteMoodList = async (
|
|
|
128
128
|
data: result.data.map((item, index) => remoteMoodInfo2MoodUIState(item, index, option)),
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
const moodUIData = res.data.map((item, index) => remoteMoodInfo2MoodUIState(item, index, option)).filter(item => {
|
|
132
|
-
if (!option.isSupportTemperature) {
|
|
133
|
-
const isContainTemperature = item.mainLamp?.nodes?.some(node => !node.isColorNode && node.colorTemp > 0) || false
|
|
134
|
-
return !isContainTemperature;
|
|
135
|
-
} else {
|
|
136
|
-
return true
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
131
|
return {
|
|
140
132
|
success: true,
|
|
141
|
-
data:
|
|
133
|
+
data: res.data.map((item, index) => remoteMoodInfo2MoodUIState(item, index, option)),
|
|
142
134
|
};
|
|
143
135
|
} else {
|
|
144
136
|
const res = await NativeApi.getJson(devId, moodFeatureId);
|
|
@@ -66,7 +66,7 @@ export function getDefMoodList(option: DefMoodOption) {
|
|
|
66
66
|
if (option.isSupportTemperature && option.isSupportBrightness) {
|
|
67
67
|
return getRGBWDefSceneList();
|
|
68
68
|
}
|
|
69
|
-
if (option.
|
|
69
|
+
if (option.isSupportBrightness) {
|
|
70
70
|
return getRGBDefSceneList();
|
|
71
71
|
}
|
|
72
72
|
return getOnlyRGBDefSceneList();
|
|
@@ -192,7 +192,7 @@ export function stripObj2Dp(mood: MoodInfo, isStringLight: boolean = false) {
|
|
|
192
192
|
speed,
|
|
193
193
|
nodes,
|
|
194
194
|
} = mood.mainLamp;
|
|
195
|
-
const versionHex = nToHS(
|
|
195
|
+
const versionHex = nToHS(1);
|
|
196
196
|
const idHex = nToHS(mood.id);
|
|
197
197
|
const modeHex = nToHS(mode);
|
|
198
198
|
const intervalTimeHex = nToHS(speed);
|