@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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/src/hooks/DeviceDpStateHooks.ts +1 -1
  3. package/src/modules/flags/FlagPage.tsx +4 -1
  4. package/src/modules/mood/MixMood/RecommendMixMoodItem.tsx +1 -1
  5. package/src/modules/mood/RecommendMoodItem.tsx +1 -1
  6. package/src/modules/timeSchedule/TimeScheduleEditpage.tsx +1 -1
  7. package/src/modules/timer/TimerPage.tsx +1 -1
  8. package/src/newModules/biorhythm/BiorhythmActions.ts +403 -451
  9. package/src/newModules/biorhythm/BiorhythmBean.ts +230 -230
  10. package/src/newModules/biorhythm/BiorhythmEditPage.tsx +18 -20
  11. package/src/newModules/biorhythm/BiorhythmPage.tsx +653 -698
  12. package/src/newModules/biorhythm/IconSelect.tsx +88 -88
  13. package/src/newModules/biorhythm/Router.ts +33 -33
  14. package/src/newModules/biorhythm/iconListData.ts +30 -30
  15. package/src/newModules/biorhythm/pIdList.ts +35 -35
  16. package/src/newModules/energyConsumption/EnergyConsumptionActions.ts +66 -28
  17. package/src/newModules/energyConsumption/EnergyConsumptionCard.tsx +172 -0
  18. package/src/newModules/energyConsumption/EnergyConsumptionChart.tsx +204 -118
  19. package/src/newModules/energyConsumption/EnergyConsumptionDetail.tsx +3 -0
  20. package/src/newModules/energyConsumption/EnergyConsumptionPage.tsx +16 -0
  21. package/src/newModules/energyConsumption/co2Data.ts +5 -0
  22. package/src/newModules/energyConsumption/component/NewBarChart.tsx +172 -168
  23. package/src/newModules/energyConsumption/component/PowerLineChart.tsx +108 -0
  24. package/src/newModules/energyConsumption/res/energy-chart.png +0 -0
  25. package/src/newModules/energyConsumption/res/index.ts +3 -0
  26. package/src/newModules/fixedTime/FixedTimeDetailPage.tsx +1 -1
  27. package/src/newModules/mood/RecommendMoodItem.tsx +1 -1
  28. package/src/newModules/sleepWakeUp/SleepWakeUpDetailPage.tsx +1 -1
  29. package/src/newModules/swithInching/SwithInching.tsx +1 -1
  30. package/src/newModules/timeSchedule/TimeScheduleActions.ts +12 -12
  31. package/tsconfig.json +73 -46
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.141",
7
+ "version": "1.1.143",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -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.repeatPeriod.map(item => item.enabled ? 1 : 0),
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
- getRemoteFlagInfo().then()
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(() => {
@@ -26,7 +26,7 @@ const RecommendMixMoodItem = (props: RecommendMixMoodItemProps) => {
26
26
  value={''}
27
27
  style={styles.content}
28
28
  titleStyle={styles.title}
29
- iconStyle={{
29
+ arrowStyle={{
30
30
  color: '#000',
31
31
  size: cx(16),
32
32
  }} />
@@ -30,7 +30,7 @@ export default function RecommendMoodItem(props: RecommendMoodItemProps) {
30
30
  value={''}
31
31
  style={styles.content}
32
32
  titleStyle={styles.title}
33
- iconStyle={{
33
+ arrowStyle={{
34
34
  color: '#000',
35
35
  size: cx(16),
36
36
  }} />
@@ -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/ldvPickerView'
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/ldvPickerView'
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";