@ledvance/ui-biz-bundle 1.1.122 → 1.1.124
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 +41 -60
- package/src/modules/flags/FlagEditPage.tsx +3 -3
- package/src/modules/flags/FlagPage.tsx +1 -1
- package/src/modules/history/HistoryPage.tsx +13 -3
- package/src/modules/mood/DynamicMoodEditorPage.tsx +5 -5
- package/src/modules/mood/FantasyMoodEditPage.tsx +3 -3
- package/src/modules/mood/MixMood/MixMoodEditPage.tsx +6 -6
- package/src/modules/mood/MixMood/MixMoodItem.tsx +2 -2
- package/src/modules/music/MusicDataBean.ts +4 -4
- package/src/modules/music/MusicPage.tsx +2 -2
- package/src/modules/timeSchedule/DeviceState.tsx +2 -2
- package/src/modules/timeSchedule/TimeScheduleEditpage.tsx +11 -11
- package/src/modules/timeSchedule/TimeSchedulePage.tsx +1 -1
- package/src/modules/timer/TimerPage.tsx +6 -4
- package/src/newModules/biorhythm/BiorhythmActions.ts +11 -11
- package/src/newModules/biorhythm/BiorhythmBean.ts +6 -6
- package/src/newModules/biorhythm/BiorhythmEditPage.tsx +3 -4
- package/src/newModules/biorhythm/BiorhythmPage.tsx +8 -9
- package/src/newModules/biorhythm/IconSelect.tsx +1 -1
- package/src/newModules/biorhythm/circular/ItemIcon.tsx +1 -1
- package/src/newModules/biorhythm/circular/Progress.tsx +2 -2
- package/src/newModules/biorhythm/circular/TimeCircular.tsx +4 -4
- package/src/newModules/biorhythm/iconListData.ts +26 -26
- package/src/newModules/childLock/ChildLockPage.tsx +1 -1
- package/src/newModules/diyScene/DiySceneEditorPage.tsx +4 -4
- package/src/newModules/diyScene/DiyScenePage.tsx +1 -1
- package/src/newModules/energyConsumption/EnergyConsumptionChart.tsx +2 -2
- package/src/newModules/energyConsumption/EnergyConsumptionDetail.tsx +3 -3
- package/src/newModules/energyConsumption/EnergyConsumptionPage.tsx +4 -4
- package/src/newModules/energyConsumption/component/DateSwitch.tsx +4 -4
- package/src/newModules/energyConsumption/component/EnergyModal.tsx +2 -2
- package/src/newModules/energyConsumption/component/Overview.tsx +4 -4
- package/src/newModules/fixedTime/FixedTimeDetailPage.tsx +3 -3
- package/src/newModules/fixedTime/FixedTimePage.tsx +2 -1
- package/src/newModules/mood/DynamicMoodEditorPage.tsx +3 -3
- package/src/newModules/mood/MixDynamicMoodEditor.tsx +6 -6
- package/src/newModules/mood/MoodItem.tsx +1 -1
- package/src/newModules/mood/MoodPage.tsx +1 -1
- package/src/newModules/randomTime/RandomTimeDetailPage.tsx +2 -2
- package/src/newModules/randomTime/RandomTimePage.tsx +2 -1
- package/src/newModules/sleepWakeUp/SleepWakeUpPage.tsx +15 -15
- package/src/newModules/timeSchedule/TimeScheduleDetailPage.tsx +2 -2
- package/src/modules/biorhythm/BiorhythmActions.d.ts +0 -8
- package/src/modules/biorhythm/BiorhythmActions.ts +0 -324
- package/src/modules/biorhythm/BiorhythmBean.d.ts +0 -58
- package/src/modules/biorhythm/BiorhythmBean.ts +0 -230
- package/src/modules/biorhythm/BiorhythmEditPage.d.ts +0 -14
- package/src/modules/biorhythm/BiorhythmEditPage.tsx +0 -324
- package/src/modules/biorhythm/BiorhythmPage.d.ts +0 -10
- package/src/modules/biorhythm/BiorhythmPage.tsx +0 -796
- package/src/modules/biorhythm/IconSelect.d.ts +0 -2
- package/src/modules/biorhythm/IconSelect.tsx +0 -82
- package/src/modules/biorhythm/Router.ts +0 -34
- package/src/modules/biorhythm/circular/ItemIcon.d.ts +0 -22
- package/src/modules/biorhythm/circular/ItemIcon.tsx +0 -173
- package/src/modules/biorhythm/circular/Progress.d.ts +0 -24
- package/src/modules/biorhythm/circular/Progress.tsx +0 -412
- package/src/modules/biorhythm/circular/TimeCircular.d.ts +0 -11
- package/src/modules/biorhythm/circular/TimeCircular.tsx +0 -70
- package/src/modules/biorhythm/circular/biorhythm_plantimer.png +0 -0
- package/src/modules/biorhythm/circular/rhythm_icon.png +0 -0
- package/src/modules/biorhythm/iconListData.d.ts +0 -7
- package/src/modules/biorhythm/iconListData.ts +0 -30
- package/src/modules/biorhythm/pIdList.d.ts +0 -2
- package/src/modules/biorhythm/pIdList.ts +0 -36
- package/src/modules/biorhythm/res/BiologicalRes.d.ts +0 -43
- package/src/modules/biorhythm/res/BiologicalRes.ts +0 -42
- package/src/modules/biorhythm/res/Biological_Rhythm.png +0 -0
- package/src/modules/biorhythm/res/Biological_Rhythm_12.png +0 -0
- package/src/modules/biorhythm/res/Biological_Rhythm_new.png +0 -0
- package/src/modules/biorhythm/res/Biological_Rhythm_new_12.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@3x.png +0 -0
- package/src/modules/fixedTime/FixedTimeActions.ts +0 -173
- package/src/modules/fixedTime/FixedTimeDetailPage.tsx +0 -373
- package/src/modules/fixedTime/FixedTimePage.tsx +0 -214
- package/src/modules/fixedTime/Router.ts +0 -26
- package/src/modules/music/res/app_music_ball@2x.png +0 -0
- package/src/modules/music/res/app_music_ball@3x.png +0 -0
- package/src/modules/music/res/app_music_game@2x.png +0 -0
- package/src/modules/music/res/app_music_game@3x.png +0 -0
- package/src/modules/music/res/app_music_music@2x.png +0 -0
- package/src/modules/music/res/app_music_music@3x.png +0 -0
- package/src/modules/music/res/app_music_romantic@2x.png +0 -0
- package/src/modules/music/res/app_music_romantic@3x.png +0 -0
- package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck.png +0 -0
- package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck@2x.png +0 -0
- package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck@3x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic-dark.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic-dark@2x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic-dark@3x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic@2x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic@3x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusicDisabled.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusicDisabled@2x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusicDisabled@3x.png +0 -0
- package/src/modules/music/res/index.d.ts +0 -10
- package/src/modules/music/res/index.ts +0 -10
- package/src/modules/powerOnBehavior/PowerOnBehaviorActions.ts +0 -12
- package/src/modules/powerOnBehavior/PowerOnBehaviorPage.tsx +0 -173
- package/src/modules/powerOnBehavior/Router.ts +0 -16
- package/src/modules/randomTime/RandomTimeActions.ts +0 -160
- package/src/modules/randomTime/RandomTimeDetailPage.tsx +0 -338
- package/src/modules/randomTime/RandomTimePage.tsx +0 -215
- package/src/modules/randomTime/Router.ts +0 -25
- package/src/modules/randomTime/Summary.tsx +0 -123
- package/src/modules/sleepWakeup/DeviceState.d.ts +0 -9
- package/src/modules/sleepWakeup/DeviceState.tsx +0 -100
- package/src/modules/sleepWakeup/LdvScheduleItem.d.ts +0 -15
- package/src/modules/sleepWakeup/LdvScheduleItem.tsx +0 -176
- package/src/modules/sleepWakeup/Router.ts +0 -25
- package/src/modules/sleepWakeup/SleepWakeUpActions.d.ts +0 -2
- package/src/modules/sleepWakeup/SleepWakeUpActions.ts +0 -180
- package/src/modules/sleepWakeup/SleepWakeUpDetailPage.d.ts +0 -2
- package/src/modules/sleepWakeup/SleepWakeUpDetailPage.tsx +0 -617
- package/src/modules/sleepWakeup/SleepWakeUpPage.d.ts +0 -13
- package/src/modules/sleepWakeup/SleepWakeUpPage.tsx +0 -425
- package/src/modules/sleepWakeup/utils.d.ts +0 -44
- package/src/modules/sleepWakeup/utils.ts +0 -254
- package/src/newModules/biorhythm/circular/biorhythm_plantimer.png +0 -0
- package/src/newModules/biorhythm/circular/rhythm_icon.png +0 -0
- package/src/newModules/biorhythm/res/BiologicalRes.d.ts +0 -43
- package/src/newModules/biorhythm/res/BiologicalRes.ts +0 -42
- package/src/newModules/biorhythm/res/Biological_Rhythm.png +0 -0
- package/src/newModules/biorhythm/res/Biological_Rhythm_12.png +0 -0
- package/src/newModules/biorhythm/res/Biological_Rhythm_new.png +0 -0
- package/src/newModules/biorhythm/res/Biological_Rhythm_new_12.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@3x.png +0 -0
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import { Utils } from "tuya-panel-kit";
|
|
2
|
-
import { getArray, getWeek } from '@ledvance/base/src/utils/common';
|
|
3
|
-
import { cloneDeep } from "lodash";
|
|
4
|
-
const { hexStringToNumber } = Utils.StringUtils;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//// 入睡计划
|
|
8
|
-
export function decodeSleepString(allSleep: string) {
|
|
9
|
-
if (!allSleep || allSleep === '') {
|
|
10
|
-
return [];
|
|
11
|
-
}
|
|
12
|
-
const version = allSleep.substring(0, 2)
|
|
13
|
-
const count = parseInt(allSleep.substring(2, 4))
|
|
14
|
-
if (count === 0 || version !== '00') {
|
|
15
|
-
return []
|
|
16
|
-
}
|
|
17
|
-
const contentString = allSleep.substring(4)
|
|
18
|
-
const list = getArray(contentString, 11 * 2)
|
|
19
|
-
const sleepList = list.map((item, index) => {
|
|
20
|
-
return {
|
|
21
|
-
...decodeSingleSleepString(item),
|
|
22
|
-
index: index,
|
|
23
|
-
name: `sleepPlan ${index + 1}`
|
|
24
|
-
}
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
return sleepList
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// 通过云端获取数据并渲染 sleep
|
|
31
|
-
export function highInTheCloudsSleepString(featureList) {
|
|
32
|
-
if (!!!featureList) {
|
|
33
|
-
return [];
|
|
34
|
-
}
|
|
35
|
-
const sleepList = featureList.map((item, index) => {
|
|
36
|
-
const data = decodeSingleSleepString(item?.startTime)
|
|
37
|
-
return {
|
|
38
|
-
...data,
|
|
39
|
-
loops: data?.loops?.reverse(),
|
|
40
|
-
index: index,
|
|
41
|
-
name: item?.name || `sleepPlan ${index}`
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
return sleepList
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function decodeSingleSleepString(sleep: string) {
|
|
48
|
-
const numbers = hexStringToNumber(sleep)
|
|
49
|
-
const enable = numbers[0]
|
|
50
|
-
const week = getWeek(sleep.substring(2, 4))
|
|
51
|
-
const fade = numbers[2] * 5
|
|
52
|
-
const time = numbers.slice(3, 5)
|
|
53
|
-
const hue = numbers[5] * 100 + numbers[6]
|
|
54
|
-
const sat = numbers[7]
|
|
55
|
-
const value = numbers[8]
|
|
56
|
-
const brightness = numbers[9]
|
|
57
|
-
const temperature = numbers[10]
|
|
58
|
-
const name = numbers[11]
|
|
59
|
-
|
|
60
|
-
const result = {
|
|
61
|
-
isSleep: true,
|
|
62
|
-
enable,
|
|
63
|
-
loops: week,
|
|
64
|
-
fade,
|
|
65
|
-
time,
|
|
66
|
-
hue,
|
|
67
|
-
sat,
|
|
68
|
-
value,
|
|
69
|
-
brightness,
|
|
70
|
-
temperature,
|
|
71
|
-
name
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return result
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function encodeSleep(sleepList: any) {
|
|
79
|
-
const targetList = sleepList
|
|
80
|
-
let allHex = ''
|
|
81
|
-
allHex = allHex + '00' + targetList.length.toString().padStart(2, '0')
|
|
82
|
-
targetList.forEach(item => {
|
|
83
|
-
allHex = allHex + encodeSingleSleepPlan(item)
|
|
84
|
-
})
|
|
85
|
-
return allHex
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
export function encodeSingleSleepPlan(item) {
|
|
90
|
-
const enableHex = getEnableHex(item.enable)
|
|
91
|
-
const loopHex = getLoopHex(item.loops)
|
|
92
|
-
const fadeHex = getFadeHex(item.fade)
|
|
93
|
-
const timeHex = getTimeHex(item.time)
|
|
94
|
-
|
|
95
|
-
const colorHex = getHueHex(item.hue)
|
|
96
|
-
const satHex = getSatHex(item.sat)
|
|
97
|
-
const valueHex = getValueHex(item.value)
|
|
98
|
-
|
|
99
|
-
const brightnessHex = getBrightnessHex(item.brightness)
|
|
100
|
-
const temperatureHex = getTemperatureHex(item.temperature)
|
|
101
|
-
let hex = enableHex + loopHex + fadeHex + timeHex + colorHex + satHex + valueHex + brightnessHex + temperatureHex
|
|
102
|
-
|
|
103
|
-
return hex
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export function getEnableHex(enable) {
|
|
107
|
-
const enableNumber = enable ? 1 : 0
|
|
108
|
-
return enableNumber.toString().padStart(2, '0')
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function getLoopHex(loop) {
|
|
112
|
-
const cloneLoop = cloneDeep(loop)
|
|
113
|
-
return parseInt(cloneLoop.reverse().join('').padStart(8, '0'), 2).toString(16).padStart(2, '0')
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function getFadeHex(fade) {
|
|
117
|
-
return (fade / 5).toString(16).padStart(2, '0')
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export function getTimeHex(time) {
|
|
121
|
-
return time[0].toString(16).padStart(2, '0') + time[1].toString(16).padStart(2, '0')
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export function getBrightnessHex(b: number) {
|
|
125
|
-
return b.toString(16).padStart(2, '0')
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export function getTemperatureHex(t: number) {
|
|
129
|
-
return t.toString(16).padStart(2, '0')
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export function getHueHex(h: number) {
|
|
133
|
-
return Math.trunc(h / 100).toString(16).padStart(2, '0') + (h % 100).toString(16).padStart(2, '0')
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export function getSatHex(s: number) {
|
|
137
|
-
return s.toString(16).padStart(2, '0')
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export function getValueHex(v: number) {
|
|
141
|
-
return v.toString(16).padStart(2, '0')
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
//// 唤醒计划
|
|
145
|
-
export function decodeWakeUpString(allString: string) {
|
|
146
|
-
if (!allString || allString === '') {
|
|
147
|
-
return [];
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
const version = allString.substring(0, 2)
|
|
151
|
-
const count = parseInt(allString.substring(2, 4))
|
|
152
|
-
if (count === 0 || version !== '00') {
|
|
153
|
-
return []
|
|
154
|
-
}
|
|
155
|
-
const contentString = allString.substring(4)
|
|
156
|
-
const list = getArray(contentString, 12 * 2)
|
|
157
|
-
|
|
158
|
-
const weekList = list.map((item, index) => {
|
|
159
|
-
return {
|
|
160
|
-
...decodeSingleWakeUpString(item),
|
|
161
|
-
index: index,
|
|
162
|
-
name: `wakeUpPlan ${index + 1}`
|
|
163
|
-
}
|
|
164
|
-
})
|
|
165
|
-
|
|
166
|
-
return weekList
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// 通过云端获取数据并渲染 wakeUp
|
|
170
|
-
export function highInTheCloudsWakeString(featureList) {
|
|
171
|
-
if (!!!featureList) {
|
|
172
|
-
return [];
|
|
173
|
-
}
|
|
174
|
-
const wakeUpList = featureList.map((item, index) => {
|
|
175
|
-
const data = decodeSingleWakeUpString(item?.startTime)
|
|
176
|
-
return {
|
|
177
|
-
...data,
|
|
178
|
-
loops: data?.loops?.reverse(),
|
|
179
|
-
index: index,
|
|
180
|
-
name: item?.name || `wakeUpPlan ${index}`
|
|
181
|
-
}
|
|
182
|
-
})
|
|
183
|
-
return wakeUpList
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export function decodeSingleWakeUpString(string: string) {
|
|
187
|
-
const numbers = hexStringToNumber(string)
|
|
188
|
-
const enable = numbers[0]
|
|
189
|
-
const week = getWeek(string.substring(2, 4))
|
|
190
|
-
const fade: number = numbers[2] * 5
|
|
191
|
-
const time = numbers.slice(3, 5)
|
|
192
|
-
const hue = numbers[5] * 100 + numbers[6]
|
|
193
|
-
const sat = numbers[7]
|
|
194
|
-
const value = numbers[8]
|
|
195
|
-
const brightness = numbers[9]
|
|
196
|
-
const temperature = numbers[10]
|
|
197
|
-
const duration = numbers[11] * 5
|
|
198
|
-
|
|
199
|
-
const result = {
|
|
200
|
-
isSleep: false,
|
|
201
|
-
enable,
|
|
202
|
-
loops: week,
|
|
203
|
-
fade,
|
|
204
|
-
time,
|
|
205
|
-
hue,
|
|
206
|
-
sat,
|
|
207
|
-
value,
|
|
208
|
-
brightness,
|
|
209
|
-
temperature,
|
|
210
|
-
duration,
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
return result
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export function encodeWakeUp(wakeUpList: any) {
|
|
218
|
-
const targetList = wakeUpList
|
|
219
|
-
|
|
220
|
-
let allHex = ''
|
|
221
|
-
allHex = allHex + '00' + targetList.length.toString().padStart(2, '0')
|
|
222
|
-
|
|
223
|
-
targetList.forEach(item => {
|
|
224
|
-
allHex = allHex + encodeSingleWakeUpPlan(item)
|
|
225
|
-
})
|
|
226
|
-
// return allHex;
|
|
227
|
-
return allHex
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
export function encodeSingleWakeUpPlan(item) {
|
|
232
|
-
|
|
233
|
-
const enableHex = getEnableHex(item.enable)
|
|
234
|
-
const loopHex = getLoopHex(item.loops)
|
|
235
|
-
const fadeHex = getFadeHex(item.fade)
|
|
236
|
-
const timeHex = getTimeHex(item.time)
|
|
237
|
-
|
|
238
|
-
const hueHex = getHueHex(item.hue)
|
|
239
|
-
const satHex = getSatHex(item.sat)
|
|
240
|
-
const valueHex = getValueHex(item.value)
|
|
241
|
-
|
|
242
|
-
const brightnessHex = getBrightnessHex(item.brightness)
|
|
243
|
-
const temperatureHex = getTemperatureHex(item.temperature)
|
|
244
|
-
const durationHex = getDurationHex(item.duration)
|
|
245
|
-
|
|
246
|
-
let hex = enableHex + loopHex + fadeHex + timeHex + hueHex + satHex + valueHex + brightnessHex + temperatureHex + durationHex
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return hex
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
export function getDurationHex(d) {
|
|
253
|
-
return (d / 5).toString(16).padStart(2, '0')
|
|
254
|
-
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
ic_warning_amber_sun: any;
|
|
3
|
-
ic_warning_amber_sun_12: any;
|
|
4
|
-
ic_warning_amber_new: any;
|
|
5
|
-
ic_warning_amber_new_12: any;
|
|
6
|
-
biorhythom_add: any;
|
|
7
|
-
biorhythom_select_rightIcon: any;
|
|
8
|
-
biorhythom_Icon1: any;
|
|
9
|
-
biorhythom_Icon2: any;
|
|
10
|
-
biorhythom_Icon3: any;
|
|
11
|
-
biorhythom_Icon4: any;
|
|
12
|
-
biorhythom_Icon5: any;
|
|
13
|
-
biorhythom_Icon6: any;
|
|
14
|
-
biorhythom_Icon7: any;
|
|
15
|
-
biorhythom_Icon8: any;
|
|
16
|
-
biorhythom_Icon9: any;
|
|
17
|
-
biorhythom_Icon10: any;
|
|
18
|
-
biorhythom_Icon11: any;
|
|
19
|
-
biorhythom_Icon12: any;
|
|
20
|
-
biorhythom_Icon13: any;
|
|
21
|
-
biorhythom_Icon14: any;
|
|
22
|
-
biorhythom_Icon15: any;
|
|
23
|
-
biorhythom_Icon16: any;
|
|
24
|
-
biorhythom_Icon17: any;
|
|
25
|
-
biorhythom_Icon18: any;
|
|
26
|
-
biorhythom_Icon19: any;
|
|
27
|
-
biorhythom_Icon20: any;
|
|
28
|
-
biorhythom_Icon21: any;
|
|
29
|
-
biorhythom_Icon22: any;
|
|
30
|
-
biorhythom_Icon23: any;
|
|
31
|
-
biorhythom_Icon24: any;
|
|
32
|
-
rhythm_icon1: string;
|
|
33
|
-
rhythm_icon1_1: any;
|
|
34
|
-
rhythm_icon2: string;
|
|
35
|
-
rhythm_icon2_1: any;
|
|
36
|
-
rhythm_icon3: string;
|
|
37
|
-
rhythm_icon3_1: any;
|
|
38
|
-
rhythm_icon4: string;
|
|
39
|
-
rhythm_icon4_1: any;
|
|
40
|
-
rhythm_icon12_1: any;
|
|
41
|
-
rhythm_icon12: string;
|
|
42
|
-
};
|
|
43
|
-
export default _default;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
ic_warning_amber_sun: require('./Biological_Rhythm.png'),
|
|
3
|
-
ic_warning_amber_sun_12: require('./Biological_Rhythm_12.png'),
|
|
4
|
-
ic_warning_amber_new: require('./Biological_Rhythm_new.png'),
|
|
5
|
-
ic_warning_amber_new_12: require('./Biological_Rhythm_new_12.png'),
|
|
6
|
-
biorhythom_add: require('./iconsMaterialOutlinedArrowsNavAdd.png'),
|
|
7
|
-
biorhythom_select_rightIcon: require('./iconsMaterialOutlinedArrowsNavArrowForwardIos.png'),
|
|
8
|
-
biorhythom_Icon1: require('./iconsMaterialOutlinedWheatherWbTwilight.png'),
|
|
9
|
-
biorhythom_Icon2: require('./iconsMaterialOutlinedWheatherWbSunny.png'),
|
|
10
|
-
biorhythom_Icon3: require('./iconsMaterialOutlinedWheatherBedtime.png'),
|
|
11
|
-
biorhythom_Icon4: require('./iconsMaterialOutlinedWheatherPartlyCloudyDay.png'),
|
|
12
|
-
biorhythom_Icon5: require('./iconsMaterialOutlinedTimeAccessAlarm.png'),
|
|
13
|
-
biorhythom_Icon6: require('./iconsMaterialOutlinedOtherNotificationsNone.png'),
|
|
14
|
-
biorhythom_Icon7: require('./iconsMaterialOutlinedBuildingsHome.png'),
|
|
15
|
-
biorhythom_Icon8: require('./iconsMaterialOutlinedOtherBed.png'),
|
|
16
|
-
biorhythom_Icon9: require('./iconsMaterialOutlinedOtherChair.png'),
|
|
17
|
-
biorhythom_Icon10: require('./iconsMaterialOutlinedOtherDirectionsCar.png'),
|
|
18
|
-
biorhythom_Icon11: require('./iconsMaterialOutlinedOtherBusinessCenter.png'),
|
|
19
|
-
biorhythom_Icon12: require('./iconsMaterialOutlinedAccountGroups.png'),
|
|
20
|
-
biorhythom_Icon13: require('./iconsMaterialOutlinedOtherMenuBook.png'),
|
|
21
|
-
biorhythom_Icon14: require('./iconsMaterialOutlinedOtherHeadphones.png'),
|
|
22
|
-
biorhythom_Icon15: require('./iconsMaterialOutlinedOtherMusicNote.png'),
|
|
23
|
-
biorhythom_Icon16: require('./iconsMaterialOutlinedOtherFitnessCenter.png'),
|
|
24
|
-
biorhythom_Icon17: require('./iconsMaterialOutlinedOtherSportsEsports.png'),
|
|
25
|
-
biorhythom_Icon18: require('./iconsMaterialOutlinedOtherTv.png'),
|
|
26
|
-
biorhythom_Icon19: require('./iconsMaterialOutlinedOtherRestaurant.png'),
|
|
27
|
-
biorhythom_Icon20: require('./iconsMaterialOutlinedOtherCoffee.png'),
|
|
28
|
-
biorhythom_Icon21: require('./iconsMaterialOutlinedWheatherStarOutline.png'),
|
|
29
|
-
biorhythom_Icon22: require('./iconsMaterialOutlinedEditorFavoriteBorder.png'),
|
|
30
|
-
biorhythom_Icon23: require('./iconsMaterialOutlinedOtherSentimentSatisfied.png'),
|
|
31
|
-
biorhythom_Icon24: require('./iconsMaterialOutlinedOtherPottedPlant.png'),
|
|
32
|
-
rhythm_icon1: 'rhythm_icon1',
|
|
33
|
-
rhythm_icon1_1: require('./iconsMaterialOutlinedWheatherWbTwilight.png'),
|
|
34
|
-
rhythm_icon2: 'rhythm_icon2',
|
|
35
|
-
rhythm_icon2_1: require('./iconsMaterialOutlinedWheatherWbSunny.png'),
|
|
36
|
-
rhythm_icon3: 'rhythm_icon3',
|
|
37
|
-
rhythm_icon3_1: require('./iconsMaterialOutlinedOtherChair.png'),
|
|
38
|
-
rhythm_icon4: 'rhythm_icon4',
|
|
39
|
-
rhythm_icon4_1: require('./iconsMaterialOutlinedWheatherBedtime.png'),
|
|
40
|
-
rhythm_icon12_1: require('./iconsMaterialOutlinedTimeAccessAlarm.png'),
|
|
41
|
-
rhythm_icon12: 'rhythm_icon12',
|
|
42
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|