@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.
Files changed (283) hide show
  1. package/package.json +1 -1
  2. package/src/hooks/DeviceDpStateHooks.ts +41 -60
  3. package/src/modules/flags/FlagEditPage.tsx +3 -3
  4. package/src/modules/flags/FlagPage.tsx +1 -1
  5. package/src/modules/history/HistoryPage.tsx +13 -3
  6. package/src/modules/mood/DynamicMoodEditorPage.tsx +5 -5
  7. package/src/modules/mood/FantasyMoodEditPage.tsx +3 -3
  8. package/src/modules/mood/MixMood/MixMoodEditPage.tsx +6 -6
  9. package/src/modules/mood/MixMood/MixMoodItem.tsx +2 -2
  10. package/src/modules/music/MusicDataBean.ts +4 -4
  11. package/src/modules/music/MusicPage.tsx +2 -2
  12. package/src/modules/timeSchedule/DeviceState.tsx +2 -2
  13. package/src/modules/timeSchedule/TimeScheduleEditpage.tsx +11 -11
  14. package/src/modules/timeSchedule/TimeSchedulePage.tsx +1 -1
  15. package/src/modules/timer/TimerPage.tsx +6 -4
  16. package/src/newModules/biorhythm/BiorhythmActions.ts +11 -11
  17. package/src/newModules/biorhythm/BiorhythmBean.ts +6 -6
  18. package/src/newModules/biorhythm/BiorhythmEditPage.tsx +3 -4
  19. package/src/newModules/biorhythm/BiorhythmPage.tsx +8 -9
  20. package/src/newModules/biorhythm/IconSelect.tsx +1 -1
  21. package/src/newModules/biorhythm/circular/ItemIcon.tsx +1 -1
  22. package/src/newModules/biorhythm/circular/Progress.tsx +2 -2
  23. package/src/newModules/biorhythm/circular/TimeCircular.tsx +4 -4
  24. package/src/newModules/biorhythm/iconListData.ts +26 -26
  25. package/src/newModules/childLock/ChildLockPage.tsx +1 -1
  26. package/src/newModules/diyScene/DiySceneEditorPage.tsx +4 -4
  27. package/src/newModules/diyScene/DiyScenePage.tsx +1 -1
  28. package/src/newModules/energyConsumption/EnergyConsumptionChart.tsx +2 -2
  29. package/src/newModules/energyConsumption/EnergyConsumptionDetail.tsx +3 -3
  30. package/src/newModules/energyConsumption/EnergyConsumptionPage.tsx +4 -4
  31. package/src/newModules/energyConsumption/component/DateSwitch.tsx +4 -4
  32. package/src/newModules/energyConsumption/component/EnergyModal.tsx +2 -2
  33. package/src/newModules/energyConsumption/component/Overview.tsx +4 -4
  34. package/src/newModules/fixedTime/FixedTimeDetailPage.tsx +3 -3
  35. package/src/newModules/fixedTime/FixedTimePage.tsx +2 -1
  36. package/src/newModules/mood/DynamicMoodEditorPage.tsx +3 -3
  37. package/src/newModules/mood/MixDynamicMoodEditor.tsx +6 -6
  38. package/src/newModules/mood/MoodItem.tsx +1 -1
  39. package/src/newModules/mood/MoodPage.tsx +1 -1
  40. package/src/newModules/randomTime/RandomTimeDetailPage.tsx +2 -2
  41. package/src/newModules/randomTime/RandomTimePage.tsx +2 -1
  42. package/src/newModules/sleepWakeUp/SleepWakeUpPage.tsx +15 -15
  43. package/src/newModules/timeSchedule/TimeScheduleDetailPage.tsx +2 -2
  44. package/src/modules/biorhythm/BiorhythmActions.d.ts +0 -8
  45. package/src/modules/biorhythm/BiorhythmActions.ts +0 -324
  46. package/src/modules/biorhythm/BiorhythmBean.d.ts +0 -58
  47. package/src/modules/biorhythm/BiorhythmBean.ts +0 -230
  48. package/src/modules/biorhythm/BiorhythmEditPage.d.ts +0 -14
  49. package/src/modules/biorhythm/BiorhythmEditPage.tsx +0 -324
  50. package/src/modules/biorhythm/BiorhythmPage.d.ts +0 -10
  51. package/src/modules/biorhythm/BiorhythmPage.tsx +0 -796
  52. package/src/modules/biorhythm/IconSelect.d.ts +0 -2
  53. package/src/modules/biorhythm/IconSelect.tsx +0 -82
  54. package/src/modules/biorhythm/Router.ts +0 -34
  55. package/src/modules/biorhythm/circular/ItemIcon.d.ts +0 -22
  56. package/src/modules/biorhythm/circular/ItemIcon.tsx +0 -173
  57. package/src/modules/biorhythm/circular/Progress.d.ts +0 -24
  58. package/src/modules/biorhythm/circular/Progress.tsx +0 -412
  59. package/src/modules/biorhythm/circular/TimeCircular.d.ts +0 -11
  60. package/src/modules/biorhythm/circular/TimeCircular.tsx +0 -70
  61. package/src/modules/biorhythm/circular/biorhythm_plantimer.png +0 -0
  62. package/src/modules/biorhythm/circular/rhythm_icon.png +0 -0
  63. package/src/modules/biorhythm/iconListData.d.ts +0 -7
  64. package/src/modules/biorhythm/iconListData.ts +0 -30
  65. package/src/modules/biorhythm/pIdList.d.ts +0 -2
  66. package/src/modules/biorhythm/pIdList.ts +0 -36
  67. package/src/modules/biorhythm/res/BiologicalRes.d.ts +0 -43
  68. package/src/modules/biorhythm/res/BiologicalRes.ts +0 -42
  69. package/src/modules/biorhythm/res/Biological_Rhythm.png +0 -0
  70. package/src/modules/biorhythm/res/Biological_Rhythm_12.png +0 -0
  71. package/src/modules/biorhythm/res/Biological_Rhythm_new.png +0 -0
  72. package/src/modules/biorhythm/res/Biological_Rhythm_new_12.png +0 -0
  73. package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups.png +0 -0
  74. package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups@2x.png +0 -0
  75. package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups@3x.png +0 -0
  76. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd.png +0 -0
  77. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@2x.png +0 -0
  78. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@3x.png +0 -0
  79. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
  80. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
  81. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
  82. package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome.png +0 -0
  83. package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@2x.png +0 -0
  84. package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@3x.png +0 -0
  85. package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder.png +0 -0
  86. package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@2x.png +0 -0
  87. package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@3x.png +0 -0
  88. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed.png +0 -0
  89. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed@2x.png +0 -0
  90. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed@3x.png +0 -0
  91. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter.png +0 -0
  92. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@2x.png +0 -0
  93. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@3x.png +0 -0
  94. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair.png +0 -0
  95. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair@2x.png +0 -0
  96. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair@3x.png +0 -0
  97. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee.png +0 -0
  98. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@2x.png +0 -0
  99. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@3x.png +0 -0
  100. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar.png +0 -0
  101. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@2x.png +0 -0
  102. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@3x.png +0 -0
  103. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter.png +0 -0
  104. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@2x.png +0 -0
  105. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@3x.png +0 -0
  106. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones.png +0 -0
  107. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@2x.png +0 -0
  108. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@3x.png +0 -0
  109. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook.png +0 -0
  110. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@2x.png +0 -0
  111. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@3x.png +0 -0
  112. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote.png +0 -0
  113. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@2x.png +0 -0
  114. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@3x.png +0 -0
  115. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone.png +0 -0
  116. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@2x.png +0 -0
  117. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@3x.png +0 -0
  118. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant.png +0 -0
  119. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@2x.png +0 -0
  120. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@3x.png +0 -0
  121. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant.png +0 -0
  122. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@2x.png +0 -0
  123. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@3x.png +0 -0
  124. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied.png +0 -0
  125. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@2x.png +0 -0
  126. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@3x.png +0 -0
  127. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports.png +0 -0
  128. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@2x.png +0 -0
  129. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@3x.png +0 -0
  130. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv.png +0 -0
  131. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv@2x.png +0 -0
  132. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv@3x.png +0 -0
  133. package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm.png +0 -0
  134. package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@2x.png +0 -0
  135. package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@3x.png +0 -0
  136. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime.png +0 -0
  137. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@2x.png +0 -0
  138. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@3x.png +0 -0
  139. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay.png +0 -0
  140. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@2x.png +0 -0
  141. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@3x.png +0 -0
  142. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline.png +0 -0
  143. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@2x.png +0 -0
  144. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@3x.png +0 -0
  145. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny.png +0 -0
  146. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@2x.png +0 -0
  147. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@3x.png +0 -0
  148. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight.png +0 -0
  149. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@2x.png +0 -0
  150. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@3x.png +0 -0
  151. package/src/modules/fixedTime/FixedTimeActions.ts +0 -173
  152. package/src/modules/fixedTime/FixedTimeDetailPage.tsx +0 -373
  153. package/src/modules/fixedTime/FixedTimePage.tsx +0 -214
  154. package/src/modules/fixedTime/Router.ts +0 -26
  155. package/src/modules/music/res/app_music_ball@2x.png +0 -0
  156. package/src/modules/music/res/app_music_ball@3x.png +0 -0
  157. package/src/modules/music/res/app_music_game@2x.png +0 -0
  158. package/src/modules/music/res/app_music_game@3x.png +0 -0
  159. package/src/modules/music/res/app_music_music@2x.png +0 -0
  160. package/src/modules/music/res/app_music_music@3x.png +0 -0
  161. package/src/modules/music/res/app_music_romantic@2x.png +0 -0
  162. package/src/modules/music/res/app_music_romantic@3x.png +0 -0
  163. package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck.png +0 -0
  164. package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck@2x.png +0 -0
  165. package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck@3x.png +0 -0
  166. package/src/modules/music/res/illustrationsFeaturesMusic-dark.png +0 -0
  167. package/src/modules/music/res/illustrationsFeaturesMusic-dark@2x.png +0 -0
  168. package/src/modules/music/res/illustrationsFeaturesMusic-dark@3x.png +0 -0
  169. package/src/modules/music/res/illustrationsFeaturesMusic.png +0 -0
  170. package/src/modules/music/res/illustrationsFeaturesMusic@2x.png +0 -0
  171. package/src/modules/music/res/illustrationsFeaturesMusic@3x.png +0 -0
  172. package/src/modules/music/res/illustrationsFeaturesMusicDisabled.png +0 -0
  173. package/src/modules/music/res/illustrationsFeaturesMusicDisabled@2x.png +0 -0
  174. package/src/modules/music/res/illustrationsFeaturesMusicDisabled@3x.png +0 -0
  175. package/src/modules/music/res/index.d.ts +0 -10
  176. package/src/modules/music/res/index.ts +0 -10
  177. package/src/modules/powerOnBehavior/PowerOnBehaviorActions.ts +0 -12
  178. package/src/modules/powerOnBehavior/PowerOnBehaviorPage.tsx +0 -173
  179. package/src/modules/powerOnBehavior/Router.ts +0 -16
  180. package/src/modules/randomTime/RandomTimeActions.ts +0 -160
  181. package/src/modules/randomTime/RandomTimeDetailPage.tsx +0 -338
  182. package/src/modules/randomTime/RandomTimePage.tsx +0 -215
  183. package/src/modules/randomTime/Router.ts +0 -25
  184. package/src/modules/randomTime/Summary.tsx +0 -123
  185. package/src/modules/sleepWakeup/DeviceState.d.ts +0 -9
  186. package/src/modules/sleepWakeup/DeviceState.tsx +0 -100
  187. package/src/modules/sleepWakeup/LdvScheduleItem.d.ts +0 -15
  188. package/src/modules/sleepWakeup/LdvScheduleItem.tsx +0 -176
  189. package/src/modules/sleepWakeup/Router.ts +0 -25
  190. package/src/modules/sleepWakeup/SleepWakeUpActions.d.ts +0 -2
  191. package/src/modules/sleepWakeup/SleepWakeUpActions.ts +0 -180
  192. package/src/modules/sleepWakeup/SleepWakeUpDetailPage.d.ts +0 -2
  193. package/src/modules/sleepWakeup/SleepWakeUpDetailPage.tsx +0 -617
  194. package/src/modules/sleepWakeup/SleepWakeUpPage.d.ts +0 -13
  195. package/src/modules/sleepWakeup/SleepWakeUpPage.tsx +0 -425
  196. package/src/modules/sleepWakeup/utils.d.ts +0 -44
  197. package/src/modules/sleepWakeup/utils.ts +0 -254
  198. package/src/newModules/biorhythm/circular/biorhythm_plantimer.png +0 -0
  199. package/src/newModules/biorhythm/circular/rhythm_icon.png +0 -0
  200. package/src/newModules/biorhythm/res/BiologicalRes.d.ts +0 -43
  201. package/src/newModules/biorhythm/res/BiologicalRes.ts +0 -42
  202. package/src/newModules/biorhythm/res/Biological_Rhythm.png +0 -0
  203. package/src/newModules/biorhythm/res/Biological_Rhythm_12.png +0 -0
  204. package/src/newModules/biorhythm/res/Biological_Rhythm_new.png +0 -0
  205. package/src/newModules/biorhythm/res/Biological_Rhythm_new_12.png +0 -0
  206. package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups.png +0 -0
  207. package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@2x.png +0 -0
  208. package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@3x.png +0 -0
  209. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd.png +0 -0
  210. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@2x.png +0 -0
  211. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@3x.png +0 -0
  212. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
  213. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
  214. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
  215. package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome.png +0 -0
  216. package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@2x.png +0 -0
  217. package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@3x.png +0 -0
  218. package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder.png +0 -0
  219. package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@2x.png +0 -0
  220. package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@3x.png +0 -0
  221. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed.png +0 -0
  222. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@2x.png +0 -0
  223. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@3x.png +0 -0
  224. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter.png +0 -0
  225. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@2x.png +0 -0
  226. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@3x.png +0 -0
  227. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair.png +0 -0
  228. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@2x.png +0 -0
  229. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@3x.png +0 -0
  230. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee.png +0 -0
  231. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@2x.png +0 -0
  232. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@3x.png +0 -0
  233. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar.png +0 -0
  234. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@2x.png +0 -0
  235. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@3x.png +0 -0
  236. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter.png +0 -0
  237. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@2x.png +0 -0
  238. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@3x.png +0 -0
  239. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones.png +0 -0
  240. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@2x.png +0 -0
  241. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@3x.png +0 -0
  242. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook.png +0 -0
  243. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@2x.png +0 -0
  244. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@3x.png +0 -0
  245. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote.png +0 -0
  246. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@2x.png +0 -0
  247. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@3x.png +0 -0
  248. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone.png +0 -0
  249. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@2x.png +0 -0
  250. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@3x.png +0 -0
  251. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant.png +0 -0
  252. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@2x.png +0 -0
  253. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@3x.png +0 -0
  254. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant.png +0 -0
  255. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@2x.png +0 -0
  256. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@3x.png +0 -0
  257. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied.png +0 -0
  258. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@2x.png +0 -0
  259. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@3x.png +0 -0
  260. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports.png +0 -0
  261. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@2x.png +0 -0
  262. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@3x.png +0 -0
  263. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv.png +0 -0
  264. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@2x.png +0 -0
  265. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@3x.png +0 -0
  266. package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm.png +0 -0
  267. package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@2x.png +0 -0
  268. package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@3x.png +0 -0
  269. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime.png +0 -0
  270. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@2x.png +0 -0
  271. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@3x.png +0 -0
  272. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay.png +0 -0
  273. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@2x.png +0 -0
  274. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@3x.png +0 -0
  275. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline.png +0 -0
  276. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@2x.png +0 -0
  277. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@3x.png +0 -0
  278. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny.png +0 -0
  279. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@2x.png +0 -0
  280. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@3x.png +0 -0
  281. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight.png +0 -0
  282. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@2x.png +0 -0
  283. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@3x.png +0 -0
@@ -117,12 +117,12 @@ const SleepWakeUpPage = (props: { theme?: ThemeType }) => {
117
117
  }
118
118
  if ((mode === 'edit' && sleepWakeUp.enable) || mode === 'add') {
119
119
  let sleepConflict = false
120
- let wakeUpConflict = false
120
+ let wakeUpConflict = false
121
121
  const cloneSleepPlan = isSleep ? cloneSleepWakeUp : cloneDeep(sleepList)
122
122
  const cloneWakeUpPlan = isSleep ? cloneDeep(wakeUpList) : cloneSleepWakeUp
123
123
  const currentSleepWakeUp = {
124
- ...sleepWakeUp,
125
- startTime: getStartTime(sleepWakeUp),
124
+ ...sleepWakeUp,
125
+ startTime: getStartTime(sleepWakeUp),
126
126
  endTime: getEndTime(sleepWakeUp)
127
127
  }
128
128
  const newSleepList = cloneSleepPlan.map((item, idx) => {
@@ -132,11 +132,11 @@ const SleepWakeUpPage = (props: { theme?: ThemeType }) => {
132
132
  startTime: getStartTime(item),
133
133
  endTime: getEndTime(item)
134
134
  }, currentSleepWakeUp)){
135
- sleepConflict = true
136
- item.enable = false
137
- return item
135
+ sleepConflict = true
136
+ item.enable = false
137
+ return item
138
138
  }
139
- return item
139
+ return item
140
140
  })
141
141
  const newWakeUpList = cloneWakeUpPlan.map((item, idx) => {
142
142
  const itself = !isSleep ? (mode === 'add' ? (idx === cloneWakeUpPlan.length - 1) : sleepWakeUp.id === item.id) : !isSleep
@@ -145,11 +145,11 @@ const SleepWakeUpPage = (props: { theme?: ThemeType }) => {
145
145
  startTime: getStartTime(item),
146
146
  endTime: getEndTime(item)
147
147
  }, currentSleepWakeUp)){
148
- wakeUpConflict = true
149
- item.enable = false
150
- return item
148
+ wakeUpConflict = true
149
+ item.enable = false
150
+ return item
151
151
  }
152
- return item
152
+ return item
153
153
  })
154
154
  const isConflict = checkConflict(currentSleepWakeUp) || sleepConflict || wakeUpConflict
155
155
  if (isConflict) {
@@ -161,7 +161,7 @@ const SleepWakeUpPage = (props: { theme?: ThemeType }) => {
161
161
  onConfirm: async (_, { close }) => {
162
162
  close()
163
163
  resolveConflict()
164
- const res = isSleep ? await setSleepList(newSleepList) : await setWakeUpList(newWakeUpList)
164
+ const res = isSleep ? await setSleepList(newSleepList) : await setWakeUpList(newWakeUpList)
165
165
  if (isSleep) {
166
166
  if (wakeUpConflict){
167
167
  setWakeUpList(newWakeUpList).then()
@@ -179,7 +179,7 @@ const SleepWakeUpPage = (props: { theme?: ThemeType }) => {
179
179
  },
180
180
  onCancel: () => {
181
181
  resolve({
182
- success: false
182
+ success: false
183
183
  })
184
184
  Dialog.close()
185
185
  }
@@ -437,7 +437,7 @@ const SleepWakeUpPage = (props: { theme?: ThemeType }) => {
437
437
  <Spacer height={cx(70)} />
438
438
  <Image
439
439
  style={styles.emptyImage}
440
- source={res.scheduleEmpty}
440
+ source={{uri: res.schedule_empty}}
441
441
  resizeMode="contain" />
442
442
  <Spacer height={cx(20)} />
443
443
  <View style={styles.emptyText}>
@@ -492,7 +492,7 @@ const SleepWakeUpPage = (props: { theme?: ThemeType }) => {
492
492
  isMax: isWakeUpMax
493
493
  },
494
494
  ]}
495
- onItemPress={(isSleep) => onAddScheduleDialogItemClick(isSleep, 'add', getNewSleepWakeUp(isSleep, params, isSleep ? sleepList.length + 1 : wakeUpList.length + 1))}
495
+ onItemPress={(isSleep) => onAddScheduleDialogItemClick(isSleep, 'add', getNewSleepWakeUp(isSleep, params))}
496
496
  />
497
497
  </>
498
498
  )
@@ -411,7 +411,7 @@ const TimeScheduleDetailPage = (props: { theme?: ThemeType }) => {
411
411
  >
412
412
  <Image
413
413
  style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }}
414
- source={res.ic_arrows_nav_clear}
414
+ source={{ uri: res.ic_arrows_nav_clear}}
415
415
  />
416
416
  </TouchableOpacity>
417
417
  )}
@@ -432,7 +432,7 @@ const TimeScheduleDetailPage = (props: { theme?: ThemeType }) => {
432
432
  <Text style={{ color: props.theme?.global.fontColor, fontSize: cx(12) }}>{item.key}</Text>
433
433
  <Image
434
434
  style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }}
435
- source={res.device_panel_timer_add}
435
+ source={{ uri: res.device_panel_timer_add}}
436
436
  />
437
437
  </TouchableOpacity>
438
438
  );
@@ -1,8 +0,0 @@
1
- import { BiorhythmBean } from './BiorhythmBean';
2
- import { Result } from '@ledvance/base/src/models/modules/Result';
3
- type UseBiorhythmType = (dpKey: string) => [BiorhythmBean, SetBiorhythmType];
4
- type SetBiorhythmType = (deviceId: string, biorhythmObj: BiorhythmBean) => Promise<Result<any>>;
5
- export declare const useBiorhythm: UseBiorhythmType;
6
- export declare const userOperation: (deviceId: string, value: boolean) => Promise<any>;
7
- export declare function dp2Obj(dp: string): BiorhythmBean;
8
- export {};
@@ -1,324 +0,0 @@
1
- import {
2
- BiorhythmBean,
3
- BiorhythmGradientType,
4
- BiorhythmGradientTypeMap,
5
- BiorhythmGradientTypeMap2,
6
- colorTemperatureValue,
7
- colorTempPercent,
8
- getDefRepeatPeriod,
9
- Period,
10
- Plan,
11
- RemoteBiorhythmBean,
12
- } from './BiorhythmBean'
13
- import {useDispatch} from 'react-redux'
14
- import {Dispatch, useEffect, useState} from 'react'
15
- import {NativeResult, Result} from '@ledvance/base/src/models/modules/Result'
16
- import {asyncSetDps, useDeviceId, useDp} from '@ledvance/base/src/models/modules/NativePropsSlice'
17
- import {getFeature, NativeApi, putFeature} from '@ledvance/base/src/api/native'
18
- import {setBiorhythmDp} from '../../hooks/DeviceDpStateHooks'
19
- import {hex2Int, spliceByStep} from '@ledvance/base/src/utils/common'
20
- import I18n from '@ledvance/base/src/i18n'
21
- import BiologicalRes from './res/BiologicalRes'
22
- import dayjs from 'dayjs'
23
-
24
- type UseBiorhythmType = (dpKey: string) => [BiorhythmBean, SetBiorhythmType];
25
- type SetBiorhythmType = (deviceId: string, biorhythmObj: BiorhythmBean) => Promise<Result<any>>;
26
- let rhythmTimer: undefined | number = undefined
27
- export const useBiorhythm: UseBiorhythmType = (dpKey: string) => {
28
- const [dp] = useDp<string, any>(dpKey)
29
- const deviceId = useDeviceId()
30
- const [biorhythmState, setBiorhythmState] = useState(dp2Obj(dp))
31
- useEffect(() => {
32
- rhythmTimer = setTimeout(() =>{
33
- getRemoteBiorhythm(deviceId, biorhythmState).then(res => {
34
- if (res.success && res.data) {
35
- setBiorhythmState(dto2Vo(res.data))
36
- }
37
- })
38
- }, 400)
39
- return () =>{
40
- if(rhythmTimer) clearTimeout(rhythmTimer)
41
- }
42
- }, [dp])
43
- return [biorhythmState, setBiorhythm(useDispatch(), dpKey)]
44
- }
45
-
46
- const biorhythmFeatureId = 'Biorhythm'
47
-
48
- async function getRemoteBiorhythm(deviceId: string, defBiorhythmState: BiorhythmBean): Promise<Result<RemoteBiorhythmBean>> {
49
- const res: NativeResult<RemoteBiorhythmBean> = await getFeature(deviceId, biorhythmFeatureId)
50
- if (!(!!res.data)) {
51
- const defData = vo2Dto(defBiorhythmState)
52
- const pushRes = await putFeature(deviceId, biorhythmFeatureId, defData)
53
- if (pushRes.result) {
54
- return getRemoteBiorhythm(deviceId, defBiorhythmState)
55
- }
56
- return {
57
- success: false,
58
- msg: pushRes.msg,
59
- }
60
- }
61
- return {
62
- success: true,
63
- data: res.data,
64
- }
65
- }
66
-
67
- const setBiorhythm = (dispatch: Dispatch<any>, dpKey: string) => (deviceId: string, biorhythmObj: BiorhythmBean) =>
68
- asyncSetDps(dispatch, async () => {
69
- const dpValue = obj2Dp(biorhythmObj)
70
- const putFeatureRes = await putFeature(deviceId, biorhythmFeatureId, vo2Dto(biorhythmObj))
71
- if (putFeatureRes.result) {
72
- const controlResult: any = await setBiorhythmDp(deviceId, dpKey, dpValue)
73
- return {
74
- result: {success: controlResult.result},
75
- dps: {[dpKey]: dpValue},
76
- }
77
- }
78
- return {
79
- result: {success: false},
80
- }
81
- })
82
-
83
- export const userOperation = async (deviceId: string, value: boolean) => {
84
- const currentTime = dayjs().format('YYYY-MM-DD')
85
- const json = JSON.stringify({status: value, suspendTime: value && currentTime || ''})
86
- return await NativeApi.putJson(deviceId, 'suspendTime', json)
87
- }
88
-
89
- export function dp2Obj(dp: string): BiorhythmBean {
90
- if (!dp || dp === '0000000000') {
91
- return dp2Obj('0000007f0501060000000000000001061e00000000141901090000000000646401140000000000503201171e000000000000')
92
- }
93
- let dpCopy = dp
94
- // 版本
95
- hex2Int(dpCopy.slice(0, 2))
96
- dpCopy = dpCopy.slice(2)
97
- // 开关
98
- const enable = hex2Int(dpCopy.slice(0, 2)) === 1
99
- dpCopy = dpCopy.slice(2)
100
- // 模式:00 全程渐变,0F 直接渐变
101
- const gradient =
102
- dpCopy.slice(0, 2).toLowerCase() === '00'
103
- ? BiorhythmGradientType.EntireGradient
104
- : BiorhythmGradientType.DirectGradient
105
- dpCopy = dpCopy.slice(2)
106
- // 重复周期
107
- const repeatPeriod: Period[] = hex2Int(dpCopy.slice(0, 2))
108
- .toString(2)
109
- .padStart(7, '0')
110
- .split('')
111
- .reverse()
112
- .map((p, index) => {
113
- return {
114
- index: index === 0 ? 7 : index,
115
- title: getRepeatPeriodTitleByIndex(index),
116
- enabled: p === '1',
117
- }
118
- })
119
- dpCopy = dpCopy.slice(2)
120
- // 节点个数 (每个节点长度18),最多8个节点
121
- hex2Int(dpCopy.slice(0, 2))
122
- dpCopy = dpCopy.slice(2)
123
- // 节点列表
124
- const planList: Plan[] = dpCopy === '00' ? [] : spliceByStep(dpCopy, 18).map((planHex, index) => {
125
- let hex = planHex
126
- // 节点开关
127
- const enable = hex2Int(hex.slice(0, 2)) === 1
128
- hex = hex.slice(2)
129
- // 小时
130
- const hour = hex2Int(hex.slice(0, 2)).toString().padStart(2, '0')
131
- hex = hex.slice(2)
132
- // 分钟
133
- const minute = hex2Int(hex.slice(0, 2)).toString().padStart(2, '0')
134
- hex = hex.slice(2)
135
- const startTime = `${hour}:${minute}`
136
- // 色调 (色相)
137
- hex2Int(hex.slice(0, 4))
138
- hex = hex.slice(4)
139
- // 饱和度
140
- hex2Int(hex.slice(0, 2))
141
- hex = hex.slice(2)
142
- // 明度
143
- hex2Int(hex.slice(0, 2))
144
- hex = hex.slice(2)
145
- // 亮度
146
- const brightness = hex2Int(hex.slice(0, 2))
147
- hex = hex.slice(2)
148
- // 色温
149
- const colorTemperature = hex2Int(hex.slice(0, 2))
150
- return {
151
- id: index,
152
- enable: enable,
153
- icon: getNodeIconByIndex(index),
154
- startTime: startTime,
155
- name: getNodeNameByIndex(index),
156
- colorTemperature: colorTemperature,
157
- brightness: brightness,
158
- action: [
159
- {
160
- uri: 'model/attribute/set/LightCtrl/ColorTemperature',
161
- startValue: `${colorTemperatureValue(colorTemperature)}`,
162
- },
163
- {
164
- uri: 'model/attribute/set/LightCtrl/Brightness',
165
- startValue: `${brightness}`,
166
- },
167
- ],
168
- }
169
- })
170
- return {
171
- enable: enable,
172
- gradient: gradient,
173
- repeatPeriod: repeatPeriod,
174
- planList: planList,
175
- }
176
- }
177
-
178
- function getNodeNameByIndex(index: number): string {
179
- switch (index) {
180
- case 0:
181
- return I18n.getLang('bio_ryhthm_default_field_text')
182
- case 1:
183
- return I18n.getLang('bio_ryhthm_default_field_text2')
184
- case 2:
185
- return I18n.getLang('bio_ryhthm_default_field_text3')
186
- case 3:
187
- return I18n.getLang('bio_ryhthm_default_field_text4')
188
- case 4:
189
- return I18n.getLang('bio_ryhthm_default_field_text5')
190
- default:
191
- return `Node ${index + 1}`
192
- }
193
- }
194
-
195
- function getNodeIconByIndex(index: number): string {
196
- switch (index) {
197
- case 0:
198
- return BiologicalRes.rhythm_icon1
199
- case 1:
200
- return BiologicalRes.rhythm_icon2
201
- case 2:
202
- return BiologicalRes.rhythm_icon3
203
- case 3:
204
- return BiologicalRes.rhythm_icon4
205
- case 4:
206
- return BiologicalRes.rhythm_icon12
207
- case 5:
208
- return BiologicalRes.rhythm_icon1
209
- case 6:
210
- return BiologicalRes.rhythm_icon2
211
- case 7:
212
- return BiologicalRes.rhythm_icon3
213
- default:
214
- return BiologicalRes.rhythm_icon1
215
- }
216
- }
217
-
218
- function getRepeatPeriodTitleByIndex(index: number): string {
219
- let title = ''
220
- switch (index) {
221
- case 0:
222
- title = I18n.getLang('bio_ryhthm_default_weekday7_text')
223
- break
224
- case 1:
225
- title = I18n.getLang('bio_ryhthm_default_weekday1_text')
226
- break
227
- case 2:
228
- title = I18n.getLang('bio_ryhthm_default_weekday2_text')
229
- break
230
- case 3:
231
- title = I18n.getLang('bio_ryhthm_default_weekday3_text')
232
- break
233
- case 4:
234
- title = I18n.getLang('bio_ryhthm_default_weekday4_text')
235
- break
236
- case 5:
237
- title = I18n.getLang('bio_ryhthm_default_weekday5_text')
238
- break
239
- case 6:
240
- title = I18n.getLang('bio_ryhthm_default_weekday6_text')
241
- break
242
- }
243
- return title
244
- }
245
-
246
- function obj2Dp(obj: BiorhythmBean): string {
247
- const versionHex = '00'
248
- const enableHex = obj.enable ? '01' : '00'
249
- const gradientHex = obj.gradient === BiorhythmGradientType.EntireGradient ? '00' : '0F'
250
- const repeatPeriodHex = parseInt(
251
- obj.repeatPeriod
252
- .map(p => (p.enabled ? '1' : '0'))
253
- .reverse()
254
- .join(''),
255
- 2,
256
- )
257
- .toString(16)
258
- .padStart(2, '0')
259
- const planCountHex = obj.planList.length.toString(16).padStart(2, '0')
260
- const planListHex = obj.planList
261
- .map(plan => {
262
- const enableHex = plan.enable ? '01' : '00'
263
- const startTime = plan.startTime.split(':')
264
- const hourHex = parseInt(startTime[0]).toString(16).padStart(2, '0')
265
- const minuteHex = parseInt(startTime[1]).toString(16).padStart(2, '0')
266
- const hsvHex = '00000000'
267
- const brightnessHex = plan.brightness.toString(16).padStart(2, '0')
268
- const colorTemperatureHex = plan.colorTemperature.toString(16).padStart(2, '0')
269
- return enableHex + hourHex + minuteHex + hsvHex + brightnessHex + colorTemperatureHex
270
- })
271
- .join('')
272
- return versionHex + enableHex + gradientHex + repeatPeriodHex + planCountHex + planListHex
273
- }
274
-
275
- /**
276
- * BiorhythmBean 转 RemoteBiorhythmBean
277
- */
278
- function vo2Dto(biorhythmBean: BiorhythmBean): RemoteBiorhythmBean {
279
- return {
280
- enable: biorhythmBean.enable,
281
- repeatPeriod: biorhythmBean.repeatPeriod.filter(r => r.enabled).map(r => r.index),
282
- gradientWay: BiorhythmGradientTypeMap[biorhythmBean.gradient],
283
- rhythmPlan: biorhythmBean.planList.map(plan => {
284
- return {
285
- name: plan.name,
286
- rhythmIcon: plan.icon,
287
- enable: plan.enable,
288
- startTime: plan.startTime,
289
- sustain: plan.id, // 持续时间涂鸦这边没有,直接用来存ID
290
- action: plan.action,
291
- iconId: plan.iconId,
292
- }
293
- }),
294
- }
295
- }
296
-
297
- /**
298
- * RemoteBiorhythmBean 转 BiorhythmBean
299
- */
300
- function dto2Vo(remoteBiorhythmBean: RemoteBiorhythmBean): BiorhythmBean {
301
- return {
302
- enable: remoteBiorhythmBean.enable,
303
- repeatPeriod: getDefRepeatPeriod().map(repeatItem => {
304
- return {
305
- ...repeatItem,
306
- enabled: remoteBiorhythmBean.repeatPeriod.includes(repeatItem.index),
307
- }
308
- }),
309
- gradient: BiorhythmGradientTypeMap2[remoteBiorhythmBean.gradientWay],
310
- planList: remoteBiorhythmBean.rhythmPlan.map(plan => {
311
- return {
312
- id: plan.sustain,
313
- enable: plan.enable,
314
- icon: plan.rhythmIcon,
315
- startTime: plan.startTime,
316
- name: plan.name,
317
- colorTemperature: colorTempPercent(parseInt(plan.action[0].startValue)),
318
- brightness: parseInt(plan.action[1].startValue),
319
- action: plan.action,
320
- iconId: plan.iconId,
321
- }
322
- }),
323
- }
324
- }
@@ -1,58 +0,0 @@
1
- export declare enum BiorhythmGradientType {
2
- EntireGradient = 0,
3
- DirectGradient = 1
4
- }
5
- export declare const BiorhythmGradientTypeMap: {
6
- 0: string;
7
- 1: string;
8
- };
9
- export declare const BiorhythmGradientTypeMap2: {
10
- entireGradient: BiorhythmGradientType;
11
- directGradient: BiorhythmGradientType;
12
- };
13
- export interface BiorhythmBean {
14
- enable: boolean;
15
- repeatPeriod: Period[];
16
- gradient: BiorhythmGradientType;
17
- planList: Plan[];
18
- }
19
- export interface Plan {
20
- id: number;
21
- enable: boolean;
22
- icon: string;
23
- startTime: string;
24
- name: string;
25
- colorTemperature: number;
26
- brightness: number;
27
- action: Action[];
28
- iconId?: any;
29
- }
30
- export interface Action {
31
- uri: string;
32
- startValue: string;
33
- }
34
- export interface Period {
35
- index: number;
36
- title: string;
37
- enabled: boolean;
38
- }
39
- export declare function colorTemperatureValue(percentageValue: any): number;
40
- export declare function colorTempPercent(colorTemp: number): number;
41
- export declare function getDefBiorhythmUIState(): BiorhythmBean;
42
- export declare function getDefRepeatPeriod(): Period[];
43
- export interface RemoteBiorhythmBean {
44
- enable: boolean;
45
- repeatPeriod: number[];
46
- gradientWay: string;
47
- rhythmPlan: RemoteBiorhythmPlan[];
48
- }
49
- interface RemoteBiorhythmPlan {
50
- iconId: any;
51
- name: string;
52
- rhythmIcon: string;
53
- enable: boolean;
54
- startTime: string;
55
- sustain: number;
56
- action: Action[];
57
- }
58
- export {};