@ledvance/ui-biz-bundle 1.1.141 → 1.1.143
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/hooks/DeviceDpStateHooks.ts +1 -1
- package/src/modules/flags/FlagPage.tsx +4 -1
- package/src/modules/mood/MixMood/RecommendMixMoodItem.tsx +1 -1
- package/src/modules/mood/RecommendMoodItem.tsx +1 -1
- package/src/modules/timeSchedule/TimeScheduleEditpage.tsx +1 -1
- package/src/modules/timer/TimerPage.tsx +1 -1
- package/src/newModules/biorhythm/BiorhythmActions.ts +403 -451
- package/src/newModules/biorhythm/BiorhythmBean.ts +230 -230
- package/src/newModules/biorhythm/BiorhythmEditPage.tsx +18 -20
- package/src/newModules/biorhythm/BiorhythmPage.tsx +653 -698
- package/src/newModules/biorhythm/IconSelect.tsx +88 -88
- package/src/newModules/biorhythm/Router.ts +33 -33
- package/src/newModules/biorhythm/iconListData.ts +30 -30
- package/src/newModules/biorhythm/pIdList.ts +35 -35
- package/src/newModules/energyConsumption/EnergyConsumptionActions.ts +66 -28
- package/src/newModules/energyConsumption/EnergyConsumptionCard.tsx +172 -0
- package/src/newModules/energyConsumption/EnergyConsumptionChart.tsx +204 -118
- package/src/newModules/energyConsumption/EnergyConsumptionDetail.tsx +3 -0
- package/src/newModules/energyConsumption/EnergyConsumptionPage.tsx +16 -0
- package/src/newModules/energyConsumption/co2Data.ts +5 -0
- package/src/newModules/energyConsumption/component/NewBarChart.tsx +172 -168
- package/src/newModules/energyConsumption/component/PowerLineChart.tsx +108 -0
- package/src/newModules/energyConsumption/res/energy-chart.png +0 -0
- package/src/newModules/energyConsumption/res/index.ts +3 -0
- package/src/newModules/fixedTime/FixedTimeDetailPage.tsx +1 -1
- package/src/newModules/mood/RecommendMoodItem.tsx +1 -1
- package/src/newModules/sleepWakeUp/SleepWakeUpDetailPage.tsx +1 -1
- package/src/newModules/swithInching/SwithInching.tsx +1 -1
- package/src/newModules/timeSchedule/TimeScheduleActions.ts +12 -12
- package/tsconfig.json +73 -46
package/package.json
CHANGED
|
@@ -112,7 +112,7 @@ export const useConflictTask = (conflictDps: ConflictDps, isPlug?: boolean): [(v
|
|
|
112
112
|
const biorhythmTask = {
|
|
113
113
|
startTime: 0,
|
|
114
114
|
endTime: 1440,
|
|
115
|
-
weeks: biorhythm.
|
|
115
|
+
weeks: biorhythm.weeks,
|
|
116
116
|
channel: 1
|
|
117
117
|
}
|
|
118
118
|
if (isConflictTask(conflictItem, biorhythmTask)){
|
|
@@ -90,7 +90,10 @@ const FlagPage = (props: { theme?: ThemeType }) => {
|
|
|
90
90
|
|
|
91
91
|
useEffect(() => {
|
|
92
92
|
if (!devInfo.devId) return
|
|
93
|
-
|
|
93
|
+
state.loading = true
|
|
94
|
+
getRemoteFlagInfo()
|
|
95
|
+
.then(() => state.loading = false)
|
|
96
|
+
.catch(() => state.loading = false)
|
|
94
97
|
}, [devInfo.devId])
|
|
95
98
|
|
|
96
99
|
useUpdateEffect(() => {
|
|
@@ -5,7 +5,7 @@ import TextField from '@ledvance/base/src/components/TextField'
|
|
|
5
5
|
import I18n from '@ledvance/base/src/i18n'
|
|
6
6
|
import { useNavigation, useRoute } from '@react-navigation/native'
|
|
7
7
|
import LdvTopName from '@ledvance/base/src/components/ldvTopName'
|
|
8
|
-
import LdvPickerView from '@ledvance/base/src/components/
|
|
8
|
+
import LdvPickerView from '@ledvance/base/src/components/LdvPickerView'
|
|
9
9
|
import LdvWeekView from '@ledvance/base/src/components/weekSelect'
|
|
10
10
|
import { SwitchButton, Utils } from 'tuya-panel-kit'
|
|
11
11
|
import Spacer from '@ledvance/base/src/components/Spacer'
|
|
@@ -8,7 +8,7 @@ import Card from '@ledvance/base/src/components/Card'
|
|
|
8
8
|
import Spacer from '@ledvance/base/src/components/Spacer'
|
|
9
9
|
import I18n from '@ledvance/base/src/i18n'
|
|
10
10
|
import Page from "@ledvance/base/src/components/Page";
|
|
11
|
-
import LdvPickerView from '@ledvance/base/src/components/
|
|
11
|
+
import LdvPickerView from '@ledvance/base/src/components/LdvPickerView'
|
|
12
12
|
import { Utils, Progress } from 'tuya-panel-kit'
|
|
13
13
|
import { useDeviceInfo } from "@ledvance/base/src/models/modules/NativePropsSlice";
|
|
14
14
|
import {timeFormatToRealTime, useProgress} from "./TimerPageAction";
|