@ledvance/ui-biz-bundle 1.1.123 → 1.1.125
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/modules/flags/FlagEditPage.tsx +3 -3
- package/src/modules/flags/FlagPage.tsx +1 -1
- package/src/modules/history/HistoryPage.tsx +19 -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 +3 -3
- 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/EnergyConsumptionActions.ts +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/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/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,425 +0,0 @@
|
|
|
1
|
-
import React, { useCallback, useEffect, useMemo } from "react";
|
|
2
|
-
import { StyleSheet, View, Text, Image, FlatList } from 'react-native'
|
|
3
|
-
import { useRoute } from '@react-navigation/core'
|
|
4
|
-
import Page from '@ledvance/base/src/components/Page'
|
|
5
|
-
import Tag from '@ledvance/base/src/components/Tag'
|
|
6
|
-
import Spacer from '@ledvance/base/src/components/Spacer'
|
|
7
|
-
import { useNavigation } from '@react-navigation/native'
|
|
8
|
-
import I18n from '@ledvance/base/src/i18n'
|
|
9
|
-
import res from '@ledvance/base/src/res'
|
|
10
|
-
import { useDeviceInfo } from "@ledvance/base/src/models/modules/NativePropsSlice";
|
|
11
|
-
import { useReactive, useUpdateEffect } from "ahooks";
|
|
12
|
-
import CustomListDialog from "@ledvance/base/src/components/CustomListDialog";
|
|
13
|
-
import { Utils } from "tuya-panel-kit";
|
|
14
|
-
import LdvScheduleItem from "./LdvScheduleItem";
|
|
15
|
-
import { showDialog } from "@ledvance/base/src/utils/common";
|
|
16
|
-
import TextButton from "@ledvance/base/src/components/TextButton";
|
|
17
|
-
import { JudgeTimeScheduleProps } from "../timeSchedule/TimeScheduleBean";
|
|
18
|
-
import { useSleepPlan, useWakeUpPlan } from "./SleepWakeUpActions";
|
|
19
|
-
import { ui_biz_routerKey } from "../../navigation/Routers";
|
|
20
|
-
import { findConflicts } from '@ledvance/base/src/utils/loopsCompare'
|
|
21
|
-
import { useBiorhythm } from '../biorhythm/BiorhythmActions'
|
|
22
|
-
import { cloneDeep } from "lodash";
|
|
23
|
-
|
|
24
|
-
const cx = Utils.RatioUtils.convertX
|
|
25
|
-
|
|
26
|
-
type dpItem = {
|
|
27
|
-
label: string
|
|
28
|
-
value: string
|
|
29
|
-
dpId: string
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface SleepWakeUpPageRouteParams extends JudgeTimeScheduleProps {
|
|
33
|
-
dps: dpItem[]
|
|
34
|
-
dpCodes: Record<string, string>
|
|
35
|
-
getDpValue?: (v: any) => any
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const MAX_SCHEDULE = 4
|
|
39
|
-
const SleepWakeUpPage = () => {
|
|
40
|
-
const deviceInfo = useDeviceInfo()
|
|
41
|
-
const navigation = useNavigation()
|
|
42
|
-
const props = useRoute().params as SleepWakeUpPageRouteParams
|
|
43
|
-
const [sleepPlan, setSleepPlan] = useSleepPlan(props.dpCodes)
|
|
44
|
-
const [wakeUpPlan, setWakeUpPlan] = useWakeUpPlan(props.dpCodes)
|
|
45
|
-
const [biorhythmState, setBiorhythm] = useBiorhythm(props.dpCodes.rhythm_mode)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const state = useReactive({
|
|
49
|
-
showAddSchedulePopover: false,
|
|
50
|
-
sleepTagChecked: false,
|
|
51
|
-
wakeUpTagChecked: false,
|
|
52
|
-
sleepScheduleList: [] as any[],
|
|
53
|
-
wakeUpScheduleList: [] as any[],
|
|
54
|
-
filteredScheduleList: [] as any[],
|
|
55
|
-
flag: Symbol()
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
const isMaxNum = useMemo(() => {
|
|
59
|
-
return state.sleepScheduleList.length >= MAX_SCHEDULE && state.wakeUpScheduleList.length >= MAX_SCHEDULE
|
|
60
|
-
}, [state.sleepScheduleList, state.wakeUpScheduleList])
|
|
61
|
-
|
|
62
|
-
const onAddScheduleDialogItemClick = useCallback((isSleep: boolean, mode: 'add' | 'edit', scheduleItem?: any) => {
|
|
63
|
-
if (mode === 'add' && isSleep && state.sleepScheduleList.length === MAX_SCHEDULE) return
|
|
64
|
-
if (mode === 'add' && !isSleep && state.wakeUpScheduleList.length === MAX_SCHEDULE) return
|
|
65
|
-
navigateToEdit({
|
|
66
|
-
...props,
|
|
67
|
-
mode,
|
|
68
|
-
dps: props.dps,
|
|
69
|
-
isSleep,
|
|
70
|
-
scheduleItem: scheduleItem && cloneDeep(scheduleItem),
|
|
71
|
-
setSleepPlan,
|
|
72
|
-
setWakeUpPlan,
|
|
73
|
-
sleepPlan: cloneDeep(state.sleepScheduleList),
|
|
74
|
-
wakeUpPlan: cloneDeep(state.wakeUpScheduleList),
|
|
75
|
-
conflictFn,
|
|
76
|
-
deleteDialog
|
|
77
|
-
})
|
|
78
|
-
state.showAddSchedulePopover = false
|
|
79
|
-
}, [state.filteredScheduleList])
|
|
80
|
-
|
|
81
|
-
useUpdateEffect(() => {
|
|
82
|
-
state.sleepScheduleList = sleepPlan
|
|
83
|
-
}, [sleepPlan])
|
|
84
|
-
|
|
85
|
-
useUpdateEffect(() => {
|
|
86
|
-
state.wakeUpScheduleList = wakeUpPlan
|
|
87
|
-
}, [wakeUpPlan])
|
|
88
|
-
|
|
89
|
-
useEffect(() => {
|
|
90
|
-
if (state.sleepTagChecked === state.wakeUpTagChecked) {
|
|
91
|
-
state.filteredScheduleList = [...state.sleepScheduleList, ...state.wakeUpScheduleList]
|
|
92
|
-
} else if (state.sleepTagChecked) {
|
|
93
|
-
state.filteredScheduleList = state.sleepScheduleList
|
|
94
|
-
} else {
|
|
95
|
-
state.filteredScheduleList = state.wakeUpScheduleList
|
|
96
|
-
}
|
|
97
|
-
}, [state.sleepTagChecked, state.wakeUpTagChecked, state.sleepScheduleList, state.wakeUpScheduleList])
|
|
98
|
-
|
|
99
|
-
const getTipText = useCallback(() => {
|
|
100
|
-
if (state.sleepScheduleList.length >= MAX_SCHEDULE && state.wakeUpScheduleList.length >= MAX_SCHEDULE) return "both"
|
|
101
|
-
if (state.sleepScheduleList.length >= MAX_SCHEDULE) return "sleep"
|
|
102
|
-
if (state.wakeUpScheduleList.length >= MAX_SCHEDULE) return "wakeup"
|
|
103
|
-
}, [state.sleepScheduleList, state.wakeUpScheduleList])
|
|
104
|
-
|
|
105
|
-
const hasScheduleList = useCallback(() => {
|
|
106
|
-
return !!(state.sleepScheduleList.length && state.wakeUpScheduleList.length)
|
|
107
|
-
}, [state.sleepScheduleList, state.wakeUpScheduleList])
|
|
108
|
-
|
|
109
|
-
const navigateToEdit = (params) => {
|
|
110
|
-
navigation.navigate(ui_biz_routerKey.ui_biz_sleep_wakeUp_edit, params)
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const isSleepMax = useMemo(() => {
|
|
114
|
-
return state.sleepScheduleList.length >= MAX_SCHEDULE
|
|
115
|
-
}, [state.sleepScheduleList])
|
|
116
|
-
|
|
117
|
-
const isWakeUpMax = useMemo(() => {
|
|
118
|
-
return state.wakeUpScheduleList.length >= MAX_SCHEDULE
|
|
119
|
-
}, [state.wakeUpScheduleList])
|
|
120
|
-
|
|
121
|
-
const onDelete = async (item) => {
|
|
122
|
-
if (item.isSleep) {
|
|
123
|
-
/// 删除
|
|
124
|
-
const newList = cloneDeep(state.sleepScheduleList)
|
|
125
|
-
const idx = state.sleepScheduleList.findIndex(sleep => sleep.index === item.index)
|
|
126
|
-
newList.splice(idx, 1)
|
|
127
|
-
await setSleepPlan(newList)
|
|
128
|
-
} else {
|
|
129
|
-
const newList = cloneDeep(state.wakeUpScheduleList)
|
|
130
|
-
const idx = state.wakeUpScheduleList.findIndex(wakeup => wakeup.index === item.index)
|
|
131
|
-
newList.splice(idx, 1)
|
|
132
|
-
console.log(newList, '< --- newLIst')
|
|
133
|
-
await setWakeUpPlan(newList)
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const deleteDialog = (item) => {
|
|
138
|
-
return new Promise(resolve => {
|
|
139
|
-
showDialog({
|
|
140
|
-
method: 'confirm',
|
|
141
|
-
title: I18n.getLang('cancel_dialog_delete_item_timeschedule_titel'),
|
|
142
|
-
subTitle: I18n.getLang('cancel_dialog_delete_item_timeschedule_description'),
|
|
143
|
-
onConfirm: async (_, { close }) => {
|
|
144
|
-
await onDelete(item)
|
|
145
|
-
close()
|
|
146
|
-
resolve(true)
|
|
147
|
-
}
|
|
148
|
-
})
|
|
149
|
-
})
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
const renderItem = useCallback(({ item }) => {
|
|
153
|
-
return (
|
|
154
|
-
<LdvScheduleItem
|
|
155
|
-
item={item}
|
|
156
|
-
onEnableChange={itemOnValueChange}
|
|
157
|
-
onPress={(item) => onAddScheduleDialogItemClick(item.isSleep, 'edit', item)}
|
|
158
|
-
onLongPress={(item) => {
|
|
159
|
-
deleteDialog(item).then()
|
|
160
|
-
}}
|
|
161
|
-
/>
|
|
162
|
-
)
|
|
163
|
-
}, [])
|
|
164
|
-
|
|
165
|
-
const updateList = (list, conflictList) => {
|
|
166
|
-
conflictList.forEach((conflict) => {
|
|
167
|
-
const item = list.find((i) => i.index === conflict.index)
|
|
168
|
-
if (item) {
|
|
169
|
-
item.enable = 0
|
|
170
|
-
}
|
|
171
|
-
})
|
|
172
|
-
return list
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
const editTimePlanStatus = (sleepConflict, wakeupConflict, newList, fixItem) => {
|
|
176
|
-
const { isSleep } = fixItem
|
|
177
|
-
if (sleepConflict.length) {
|
|
178
|
-
const listSleep = isSleep ? [...newList] : [...state.sleepScheduleList]
|
|
179
|
-
const updateSleepList = updateList(listSleep, sleepConflict)
|
|
180
|
-
if (!isSleep) {
|
|
181
|
-
setSleepPlan(updateSleepList)
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
if (wakeupConflict.length) {
|
|
186
|
-
const listWakeUp = isSleep ? [...state.wakeUpScheduleList] : [...newList]
|
|
187
|
-
const updateWakeUpList = updateList(listWakeUp, wakeupConflict)
|
|
188
|
-
if (isSleep) {
|
|
189
|
-
setWakeUpPlan(updateWakeUpList)
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
if (fixItem.isSleep) {
|
|
193
|
-
setSleepPlan([...newList])
|
|
194
|
-
} else {
|
|
195
|
-
setWakeUpPlan([...newList])
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
const conflictFn = (item, editList, goback: boolean = false) => {
|
|
200
|
-
const sleepTimeList = item.isSleep ? state.sleepScheduleList.filter(sleep => sleep.index !== item.index) : cloneDeep(state.sleepScheduleList)
|
|
201
|
-
const wakeupTimeList = item.isSleep ? cloneDeep(state.wakeUpScheduleList) : state.wakeUpScheduleList.filter(wakeup => wakeup.index !== item.index)
|
|
202
|
-
// 相关冲突校验
|
|
203
|
-
const sleepConflict = findConflicts(sleepTimeList, item)
|
|
204
|
-
const wakeupConflict = findConflicts(wakeupTimeList, item)
|
|
205
|
-
const conflict = [...sleepConflict, ...wakeupConflict]
|
|
206
|
-
// return
|
|
207
|
-
// 存在冲突 || 生物节律为启用状态
|
|
208
|
-
if (conflict.length || biorhythmState.enable) {
|
|
209
|
-
return showDialog({
|
|
210
|
-
method: 'confirm',
|
|
211
|
-
title: I18n.getLang(item.isSleep ? 'conflict_dialog_save_item_sleepschedule_titel' : 'conflict_dialog_save_item_wakeupschedule_titel'),
|
|
212
|
-
subTitle: I18n.getLang(item.isSleep ? 'conflict_dialog_save_item_sleepschedule_description' : 'conflict_dialog_save_item_wakeupschedule_description'),
|
|
213
|
-
onConfirm: (_, { close }) => {
|
|
214
|
-
editTimePlanStatus(sleepConflict, wakeupConflict, editList, item)
|
|
215
|
-
if (biorhythmState.enable) setBiorhythm(deviceInfo.devId, {
|
|
216
|
-
...biorhythmState,
|
|
217
|
-
enable: false,
|
|
218
|
-
})
|
|
219
|
-
close()
|
|
220
|
-
if (goback) navigation.goBack()
|
|
221
|
-
}
|
|
222
|
-
})
|
|
223
|
-
}
|
|
224
|
-
if (item.isSleep) {
|
|
225
|
-
setSleepPlan(editList)
|
|
226
|
-
} else {
|
|
227
|
-
setWakeUpPlan(editList)
|
|
228
|
-
}
|
|
229
|
-
if (goback) navigation.goBack()
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
const itemOnValueChange = async (item) => {
|
|
233
|
-
|
|
234
|
-
const editList = (item.isSleep ? state.sleepScheduleList : state.wakeUpScheduleList).map(schedule => {
|
|
235
|
-
if (schedule.index === item.index) {
|
|
236
|
-
return { ...schedule, enable: item.enable === 1 ? 0 : 1 }
|
|
237
|
-
}
|
|
238
|
-
return schedule
|
|
239
|
-
})
|
|
240
|
-
// 冲突检查
|
|
241
|
-
if (!item.enable) {
|
|
242
|
-
return conflictFn(item, editList)
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
if (item.isSleep) {
|
|
246
|
-
setSleepPlan(editList)
|
|
247
|
-
} else {
|
|
248
|
-
setWakeUpPlan(editList)
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return (
|
|
252
|
-
<>
|
|
253
|
-
<Page
|
|
254
|
-
backText={deviceInfo.name}
|
|
255
|
-
onBackClick={navigation.goBack}
|
|
256
|
-
headlineText={I18n.getLang('add_sleepschedule_one_source_system_back_text')}
|
|
257
|
-
headlineIcon={isMaxNum ? undefined : res.device_panel_schedule_add}
|
|
258
|
-
onHeadlineIconClick={() => {
|
|
259
|
-
state.showAddSchedulePopover = !state.showAddSchedulePopover
|
|
260
|
-
}}
|
|
261
|
-
>
|
|
262
|
-
<View style={{ marginHorizontal: cx(24) }}>
|
|
263
|
-
<Text style={{ color: '#000', fontSize: 14 }}>
|
|
264
|
-
{I18n.getLang('timeschedule_overview_description_text')}
|
|
265
|
-
</Text>
|
|
266
|
-
</View>
|
|
267
|
-
<Spacer />
|
|
268
|
-
{!!getTipText() && <View style={{ marginHorizontal: cx(24), marginVertical: cx(10), flexDirection: 'row', alignItems: 'center' }}>
|
|
269
|
-
<Image style={{ width: cx(16), height: cx(16), tintColor: '#ff9500' }} source={res.ic_warning_amber} />
|
|
270
|
-
{getTipText() === "sleep" && <Text>{I18n.getLang('sleepwakeschedule_warning_max_number_sleep_text')}</Text>}
|
|
271
|
-
{getTipText() === "wakeup" && <Text>{I18n.getLang('sleepwakeschedule_warning_max_number_wakeup_text')}</Text>}
|
|
272
|
-
{getTipText() === "both" && <Text>{I18n.getLang('sleepwakeschedule_warning_max_number_both_text')}</Text>}
|
|
273
|
-
<Spacer />
|
|
274
|
-
</View>}
|
|
275
|
-
{hasScheduleList() && <View style={styles.tagLine}>
|
|
276
|
-
<Tag
|
|
277
|
-
checked={state.sleepTagChecked}
|
|
278
|
-
text={I18n.getLang('sleepwakeschedule_field_3_Times_chips2_text')}
|
|
279
|
-
onCheckedChange={checked => {
|
|
280
|
-
state.sleepTagChecked = checked
|
|
281
|
-
}} />
|
|
282
|
-
<Spacer width={cx(8)} height={0} />
|
|
283
|
-
<Tag
|
|
284
|
-
checked={state.wakeUpTagChecked}
|
|
285
|
-
text={I18n.getLang('sleepwakeschedule_field_3_Times_chips_text')}
|
|
286
|
-
onCheckedChange={checked => {
|
|
287
|
-
state.wakeUpTagChecked = checked
|
|
288
|
-
}} />
|
|
289
|
-
</View>}
|
|
290
|
-
{state.filteredScheduleList.length ?
|
|
291
|
-
<FlatList
|
|
292
|
-
data={state.filteredScheduleList}
|
|
293
|
-
renderItem={renderItem}
|
|
294
|
-
ListHeaderComponent={() => (<Spacer height={cx(10)} />)}
|
|
295
|
-
ItemSeparatorComponent={() => (<Spacer />)}
|
|
296
|
-
ListFooterComponent={() => (<Spacer />)}
|
|
297
|
-
keyExtractor={item => `${item.isSleep ? 'sleep' : 'wakeUp'}_${item.index}`}
|
|
298
|
-
/> :
|
|
299
|
-
<View style={styles.emptyListCon}>
|
|
300
|
-
<Spacer height={cx(70)} />
|
|
301
|
-
<Image
|
|
302
|
-
style={styles.emptyImage}
|
|
303
|
-
source={res.scheduleEmpty}
|
|
304
|
-
resizeMode="contain" />
|
|
305
|
-
<Spacer height={cx(20)} />
|
|
306
|
-
<View style={styles.emptyText}>
|
|
307
|
-
<Image
|
|
308
|
-
source={{ uri: res.device_panel_schedule_alert }}
|
|
309
|
-
style={{ width: cx(16), height: cx(16) }}
|
|
310
|
-
/>
|
|
311
|
-
<Text style={styles.emptyNoTime}>
|
|
312
|
-
{
|
|
313
|
-
!hasScheduleList() ?
|
|
314
|
-
I18n.getLang('sleepwakeschedule_empty_information_text') :
|
|
315
|
-
I18n.getLang('sleepwakeschedule_empty_filtering_information_text')
|
|
316
|
-
}
|
|
317
|
-
</Text>
|
|
318
|
-
</View>
|
|
319
|
-
{!hasScheduleList() &&
|
|
320
|
-
<View style={styles.emptyBtnView}>
|
|
321
|
-
<Spacer />
|
|
322
|
-
<TextButton
|
|
323
|
-
style={styles.emptyBtn}
|
|
324
|
-
textStyle={isSleepMax ? styles.disableItemText : { color: '#fff' }}
|
|
325
|
-
text={I18n.getLang('sleepwakeschedule_add_button_text1')}
|
|
326
|
-
onPress={() => onAddScheduleDialogItemClick(true, 'add')}
|
|
327
|
-
/>
|
|
328
|
-
<Spacer />
|
|
329
|
-
<TextButton
|
|
330
|
-
style={styles.emptyBtn}
|
|
331
|
-
textStyle={isWakeUpMax ? styles.disableItemText : { color: '#fff' }}
|
|
332
|
-
text={I18n.getLang('sleepwakeschedule_add_button_text2')}
|
|
333
|
-
onPress={() => onAddScheduleDialogItemClick(false, 'add')}
|
|
334
|
-
/>
|
|
335
|
-
</View>}
|
|
336
|
-
</View>
|
|
337
|
-
}
|
|
338
|
-
</Page>
|
|
339
|
-
<CustomListDialog
|
|
340
|
-
show={state.showAddSchedulePopover}
|
|
341
|
-
style={styles.addMoodPopover}
|
|
342
|
-
itemStyle={styles.popoverItem}
|
|
343
|
-
onDismiss={() => {
|
|
344
|
-
state.showAddSchedulePopover = false
|
|
345
|
-
}}
|
|
346
|
-
data={[
|
|
347
|
-
{
|
|
348
|
-
text: I18n.getLang('sleepwakeschedule_add_button_text1'),
|
|
349
|
-
value: true,
|
|
350
|
-
isMax: isSleepMax
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
text: I18n.getLang('sleepwakeschedule_add_button_text2'),
|
|
354
|
-
value: false,
|
|
355
|
-
isMax: isWakeUpMax
|
|
356
|
-
},
|
|
357
|
-
]}
|
|
358
|
-
onItemPress={(isSleep) => onAddScheduleDialogItemClick(isSleep, 'add')}
|
|
359
|
-
/>
|
|
360
|
-
</>
|
|
361
|
-
)
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
const styles = StyleSheet.create({
|
|
365
|
-
tagLine: {
|
|
366
|
-
flexDirection: 'row',
|
|
367
|
-
marginHorizontal: cx(24),
|
|
368
|
-
},
|
|
369
|
-
infoLine: {
|
|
370
|
-
marginHorizontal: cx(24),
|
|
371
|
-
},
|
|
372
|
-
addMoodPopover: {
|
|
373
|
-
width: cx(210),
|
|
374
|
-
height: cx(90.5),
|
|
375
|
-
marginStart: cx(115),
|
|
376
|
-
marginTop: cx(100),
|
|
377
|
-
backgroundColor: '#fff',
|
|
378
|
-
},
|
|
379
|
-
popoverItem: {
|
|
380
|
-
width: cx(210),
|
|
381
|
-
height: cx(45),
|
|
382
|
-
alignItems: 'flex-start',
|
|
383
|
-
},
|
|
384
|
-
emptyListCon: {
|
|
385
|
-
flex: 1,
|
|
386
|
-
alignItems: 'center',
|
|
387
|
-
// marginTop: cx(30),
|
|
388
|
-
},
|
|
389
|
-
emptyImage: {
|
|
390
|
-
width: cx(225),
|
|
391
|
-
height: cx(198),
|
|
392
|
-
},
|
|
393
|
-
emptyText: {
|
|
394
|
-
flexDirection: 'row',
|
|
395
|
-
alignItems: 'center'
|
|
396
|
-
},
|
|
397
|
-
emptyNoTime: {
|
|
398
|
-
fontSize: cx(14),
|
|
399
|
-
lineHeight: cx(20),
|
|
400
|
-
textAlign: 'center',
|
|
401
|
-
fontFamily: 'helvetica_neue_lt_std_roman',
|
|
402
|
-
color: '#000'
|
|
403
|
-
},
|
|
404
|
-
emptyBtnView: {
|
|
405
|
-
alignItems: 'center'
|
|
406
|
-
},
|
|
407
|
-
emptyBtn: {
|
|
408
|
-
backgroundColor: '#f60',
|
|
409
|
-
borderRadius: cx(5),
|
|
410
|
-
paddingHorizontal: cx(15),
|
|
411
|
-
paddingVertical: cx(10)
|
|
412
|
-
},
|
|
413
|
-
addTimer: {
|
|
414
|
-
justifyContent: 'center',
|
|
415
|
-
alignItems: 'center',
|
|
416
|
-
// width,
|
|
417
|
-
marginVertical: cx(20),
|
|
418
|
-
},
|
|
419
|
-
disableItemText: {
|
|
420
|
-
color: '#CBCBCB',
|
|
421
|
-
fontSize: cx(16),
|
|
422
|
-
},
|
|
423
|
-
})
|
|
424
|
-
|
|
425
|
-
export default SleepWakeUpPage
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare function decodeSleepString(allSleep: string): any;
|
|
2
|
-
export declare function highInTheCloudsSleepString(featureList: any): any;
|
|
3
|
-
export declare function decodeSingleSleepString(sleep: string): {
|
|
4
|
-
isSleep: boolean;
|
|
5
|
-
enable: any;
|
|
6
|
-
loops: any;
|
|
7
|
-
fade: number;
|
|
8
|
-
time: any;
|
|
9
|
-
hue: any;
|
|
10
|
-
sat: any;
|
|
11
|
-
value: any;
|
|
12
|
-
brightness: any;
|
|
13
|
-
temperature: any;
|
|
14
|
-
name: any;
|
|
15
|
-
};
|
|
16
|
-
export declare function encodeSleep(sleepList: any): string;
|
|
17
|
-
export declare function encodeSingleSleepPlan(item: any): string;
|
|
18
|
-
export declare function getEnableHex(enable: any): string;
|
|
19
|
-
export declare function getLoopHex(loop: any): string;
|
|
20
|
-
export declare function getFadeHex(fade: any): string;
|
|
21
|
-
export declare function getTimeHex(time: any): any;
|
|
22
|
-
export declare function getBrightnessHex(b: number): string;
|
|
23
|
-
export declare function getTemperatureHex(t: number): string;
|
|
24
|
-
export declare function getHueHex(h: number): string;
|
|
25
|
-
export declare function getSatHex(s: number): string;
|
|
26
|
-
export declare function getValueHex(v: number): string;
|
|
27
|
-
export declare function decodeWakeUpString(allString: string): any;
|
|
28
|
-
export declare function highInTheCloudsWakeString(featureList: any): any;
|
|
29
|
-
export declare function decodeSingleWakeUpString(string: string): {
|
|
30
|
-
isSleep: boolean;
|
|
31
|
-
enable: any;
|
|
32
|
-
loops: any;
|
|
33
|
-
fade: number;
|
|
34
|
-
time: any;
|
|
35
|
-
hue: any;
|
|
36
|
-
sat: any;
|
|
37
|
-
value: any;
|
|
38
|
-
brightness: any;
|
|
39
|
-
temperature: any;
|
|
40
|
-
duration: number;
|
|
41
|
-
};
|
|
42
|
-
export declare function encodeWakeUp(wakeUpList: any): string;
|
|
43
|
-
export declare function encodeSingleWakeUpPlan(item: any): string;
|
|
44
|
-
export declare function getDurationHex(d: any): string;
|