@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.
Files changed (281) hide show
  1. package/package.json +1 -1
  2. package/src/modules/flags/FlagEditPage.tsx +3 -3
  3. package/src/modules/flags/FlagPage.tsx +1 -1
  4. package/src/modules/history/HistoryPage.tsx +19 -3
  5. package/src/modules/mood/DynamicMoodEditorPage.tsx +5 -5
  6. package/src/modules/mood/FantasyMoodEditPage.tsx +3 -3
  7. package/src/modules/mood/MixMood/MixMoodEditPage.tsx +6 -6
  8. package/src/modules/mood/MixMood/MixMoodItem.tsx +2 -2
  9. package/src/modules/music/MusicDataBean.ts +4 -4
  10. package/src/modules/music/MusicPage.tsx +2 -2
  11. package/src/modules/timeSchedule/DeviceState.tsx +2 -2
  12. package/src/modules/timeSchedule/TimeScheduleEditpage.tsx +11 -11
  13. package/src/modules/timeSchedule/TimeSchedulePage.tsx +1 -1
  14. package/src/modules/timer/TimerPage.tsx +3 -3
  15. package/src/newModules/biorhythm/BiorhythmActions.ts +11 -11
  16. package/src/newModules/biorhythm/BiorhythmBean.ts +6 -6
  17. package/src/newModules/biorhythm/BiorhythmEditPage.tsx +3 -4
  18. package/src/newModules/biorhythm/BiorhythmPage.tsx +8 -9
  19. package/src/newModules/biorhythm/IconSelect.tsx +1 -1
  20. package/src/newModules/biorhythm/circular/ItemIcon.tsx +1 -1
  21. package/src/newModules/biorhythm/circular/Progress.tsx +2 -2
  22. package/src/newModules/biorhythm/circular/TimeCircular.tsx +4 -4
  23. package/src/newModules/biorhythm/iconListData.ts +26 -26
  24. package/src/newModules/childLock/ChildLockPage.tsx +1 -1
  25. package/src/newModules/diyScene/DiySceneEditorPage.tsx +4 -4
  26. package/src/newModules/diyScene/DiyScenePage.tsx +1 -1
  27. package/src/newModules/energyConsumption/EnergyConsumptionActions.ts +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/mood/DynamicMoodEditorPage.tsx +3 -3
  36. package/src/newModules/mood/MixDynamicMoodEditor.tsx +6 -6
  37. package/src/newModules/mood/MoodItem.tsx +1 -1
  38. package/src/newModules/mood/MoodPage.tsx +1 -1
  39. package/src/newModules/randomTime/RandomTimeDetailPage.tsx +2 -2
  40. package/src/newModules/sleepWakeUp/SleepWakeUpPage.tsx +15 -15
  41. package/src/newModules/timeSchedule/TimeScheduleDetailPage.tsx +2 -2
  42. package/src/modules/biorhythm/BiorhythmActions.d.ts +0 -8
  43. package/src/modules/biorhythm/BiorhythmActions.ts +0 -324
  44. package/src/modules/biorhythm/BiorhythmBean.d.ts +0 -58
  45. package/src/modules/biorhythm/BiorhythmBean.ts +0 -230
  46. package/src/modules/biorhythm/BiorhythmEditPage.d.ts +0 -14
  47. package/src/modules/biorhythm/BiorhythmEditPage.tsx +0 -324
  48. package/src/modules/biorhythm/BiorhythmPage.d.ts +0 -10
  49. package/src/modules/biorhythm/BiorhythmPage.tsx +0 -796
  50. package/src/modules/biorhythm/IconSelect.d.ts +0 -2
  51. package/src/modules/biorhythm/IconSelect.tsx +0 -82
  52. package/src/modules/biorhythm/Router.ts +0 -34
  53. package/src/modules/biorhythm/circular/ItemIcon.d.ts +0 -22
  54. package/src/modules/biorhythm/circular/ItemIcon.tsx +0 -173
  55. package/src/modules/biorhythm/circular/Progress.d.ts +0 -24
  56. package/src/modules/biorhythm/circular/Progress.tsx +0 -412
  57. package/src/modules/biorhythm/circular/TimeCircular.d.ts +0 -11
  58. package/src/modules/biorhythm/circular/TimeCircular.tsx +0 -70
  59. package/src/modules/biorhythm/circular/biorhythm_plantimer.png +0 -0
  60. package/src/modules/biorhythm/circular/rhythm_icon.png +0 -0
  61. package/src/modules/biorhythm/iconListData.d.ts +0 -7
  62. package/src/modules/biorhythm/iconListData.ts +0 -30
  63. package/src/modules/biorhythm/pIdList.d.ts +0 -2
  64. package/src/modules/biorhythm/pIdList.ts +0 -36
  65. package/src/modules/biorhythm/res/BiologicalRes.d.ts +0 -43
  66. package/src/modules/biorhythm/res/BiologicalRes.ts +0 -42
  67. package/src/modules/biorhythm/res/Biological_Rhythm.png +0 -0
  68. package/src/modules/biorhythm/res/Biological_Rhythm_12.png +0 -0
  69. package/src/modules/biorhythm/res/Biological_Rhythm_new.png +0 -0
  70. package/src/modules/biorhythm/res/Biological_Rhythm_new_12.png +0 -0
  71. package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups.png +0 -0
  72. package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups@2x.png +0 -0
  73. package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups@3x.png +0 -0
  74. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd.png +0 -0
  75. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@2x.png +0 -0
  76. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@3x.png +0 -0
  77. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
  78. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
  79. package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
  80. package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome.png +0 -0
  81. package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@2x.png +0 -0
  82. package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@3x.png +0 -0
  83. package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder.png +0 -0
  84. package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@2x.png +0 -0
  85. package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@3x.png +0 -0
  86. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed.png +0 -0
  87. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed@2x.png +0 -0
  88. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed@3x.png +0 -0
  89. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter.png +0 -0
  90. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@2x.png +0 -0
  91. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@3x.png +0 -0
  92. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair.png +0 -0
  93. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair@2x.png +0 -0
  94. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair@3x.png +0 -0
  95. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee.png +0 -0
  96. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@2x.png +0 -0
  97. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@3x.png +0 -0
  98. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar.png +0 -0
  99. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@2x.png +0 -0
  100. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@3x.png +0 -0
  101. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter.png +0 -0
  102. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@2x.png +0 -0
  103. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@3x.png +0 -0
  104. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones.png +0 -0
  105. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@2x.png +0 -0
  106. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@3x.png +0 -0
  107. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook.png +0 -0
  108. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@2x.png +0 -0
  109. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@3x.png +0 -0
  110. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote.png +0 -0
  111. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@2x.png +0 -0
  112. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@3x.png +0 -0
  113. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone.png +0 -0
  114. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@2x.png +0 -0
  115. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@3x.png +0 -0
  116. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant.png +0 -0
  117. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@2x.png +0 -0
  118. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@3x.png +0 -0
  119. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant.png +0 -0
  120. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@2x.png +0 -0
  121. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@3x.png +0 -0
  122. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied.png +0 -0
  123. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@2x.png +0 -0
  124. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@3x.png +0 -0
  125. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports.png +0 -0
  126. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@2x.png +0 -0
  127. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@3x.png +0 -0
  128. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv.png +0 -0
  129. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv@2x.png +0 -0
  130. package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv@3x.png +0 -0
  131. package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm.png +0 -0
  132. package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@2x.png +0 -0
  133. package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@3x.png +0 -0
  134. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime.png +0 -0
  135. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@2x.png +0 -0
  136. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@3x.png +0 -0
  137. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay.png +0 -0
  138. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@2x.png +0 -0
  139. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@3x.png +0 -0
  140. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline.png +0 -0
  141. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@2x.png +0 -0
  142. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@3x.png +0 -0
  143. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny.png +0 -0
  144. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@2x.png +0 -0
  145. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@3x.png +0 -0
  146. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight.png +0 -0
  147. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@2x.png +0 -0
  148. package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@3x.png +0 -0
  149. package/src/modules/fixedTime/FixedTimeActions.ts +0 -173
  150. package/src/modules/fixedTime/FixedTimeDetailPage.tsx +0 -373
  151. package/src/modules/fixedTime/FixedTimePage.tsx +0 -214
  152. package/src/modules/fixedTime/Router.ts +0 -26
  153. package/src/modules/music/res/app_music_ball@2x.png +0 -0
  154. package/src/modules/music/res/app_music_ball@3x.png +0 -0
  155. package/src/modules/music/res/app_music_game@2x.png +0 -0
  156. package/src/modules/music/res/app_music_game@3x.png +0 -0
  157. package/src/modules/music/res/app_music_music@2x.png +0 -0
  158. package/src/modules/music/res/app_music_music@3x.png +0 -0
  159. package/src/modules/music/res/app_music_romantic@2x.png +0 -0
  160. package/src/modules/music/res/app_music_romantic@3x.png +0 -0
  161. package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck.png +0 -0
  162. package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck@2x.png +0 -0
  163. package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck@3x.png +0 -0
  164. package/src/modules/music/res/illustrationsFeaturesMusic-dark.png +0 -0
  165. package/src/modules/music/res/illustrationsFeaturesMusic-dark@2x.png +0 -0
  166. package/src/modules/music/res/illustrationsFeaturesMusic-dark@3x.png +0 -0
  167. package/src/modules/music/res/illustrationsFeaturesMusic.png +0 -0
  168. package/src/modules/music/res/illustrationsFeaturesMusic@2x.png +0 -0
  169. package/src/modules/music/res/illustrationsFeaturesMusic@3x.png +0 -0
  170. package/src/modules/music/res/illustrationsFeaturesMusicDisabled.png +0 -0
  171. package/src/modules/music/res/illustrationsFeaturesMusicDisabled@2x.png +0 -0
  172. package/src/modules/music/res/illustrationsFeaturesMusicDisabled@3x.png +0 -0
  173. package/src/modules/music/res/index.d.ts +0 -10
  174. package/src/modules/music/res/index.ts +0 -10
  175. package/src/modules/powerOnBehavior/PowerOnBehaviorActions.ts +0 -12
  176. package/src/modules/powerOnBehavior/PowerOnBehaviorPage.tsx +0 -173
  177. package/src/modules/powerOnBehavior/Router.ts +0 -16
  178. package/src/modules/randomTime/RandomTimeActions.ts +0 -160
  179. package/src/modules/randomTime/RandomTimeDetailPage.tsx +0 -338
  180. package/src/modules/randomTime/RandomTimePage.tsx +0 -215
  181. package/src/modules/randomTime/Router.ts +0 -25
  182. package/src/modules/randomTime/Summary.tsx +0 -123
  183. package/src/modules/sleepWakeup/DeviceState.d.ts +0 -9
  184. package/src/modules/sleepWakeup/DeviceState.tsx +0 -100
  185. package/src/modules/sleepWakeup/LdvScheduleItem.d.ts +0 -15
  186. package/src/modules/sleepWakeup/LdvScheduleItem.tsx +0 -176
  187. package/src/modules/sleepWakeup/Router.ts +0 -25
  188. package/src/modules/sleepWakeup/SleepWakeUpActions.d.ts +0 -2
  189. package/src/modules/sleepWakeup/SleepWakeUpActions.ts +0 -180
  190. package/src/modules/sleepWakeup/SleepWakeUpDetailPage.d.ts +0 -2
  191. package/src/modules/sleepWakeup/SleepWakeUpDetailPage.tsx +0 -617
  192. package/src/modules/sleepWakeup/SleepWakeUpPage.d.ts +0 -13
  193. package/src/modules/sleepWakeup/SleepWakeUpPage.tsx +0 -425
  194. package/src/modules/sleepWakeup/utils.d.ts +0 -44
  195. package/src/modules/sleepWakeup/utils.ts +0 -254
  196. package/src/newModules/biorhythm/circular/biorhythm_plantimer.png +0 -0
  197. package/src/newModules/biorhythm/circular/rhythm_icon.png +0 -0
  198. package/src/newModules/biorhythm/res/BiologicalRes.d.ts +0 -43
  199. package/src/newModules/biorhythm/res/BiologicalRes.ts +0 -42
  200. package/src/newModules/biorhythm/res/Biological_Rhythm.png +0 -0
  201. package/src/newModules/biorhythm/res/Biological_Rhythm_12.png +0 -0
  202. package/src/newModules/biorhythm/res/Biological_Rhythm_new.png +0 -0
  203. package/src/newModules/biorhythm/res/Biological_Rhythm_new_12.png +0 -0
  204. package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups.png +0 -0
  205. package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@2x.png +0 -0
  206. package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@3x.png +0 -0
  207. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd.png +0 -0
  208. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@2x.png +0 -0
  209. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@3x.png +0 -0
  210. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
  211. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
  212. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
  213. package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome.png +0 -0
  214. package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@2x.png +0 -0
  215. package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@3x.png +0 -0
  216. package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder.png +0 -0
  217. package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@2x.png +0 -0
  218. package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@3x.png +0 -0
  219. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed.png +0 -0
  220. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@2x.png +0 -0
  221. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@3x.png +0 -0
  222. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter.png +0 -0
  223. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@2x.png +0 -0
  224. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@3x.png +0 -0
  225. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair.png +0 -0
  226. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@2x.png +0 -0
  227. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@3x.png +0 -0
  228. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee.png +0 -0
  229. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@2x.png +0 -0
  230. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@3x.png +0 -0
  231. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar.png +0 -0
  232. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@2x.png +0 -0
  233. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@3x.png +0 -0
  234. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter.png +0 -0
  235. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@2x.png +0 -0
  236. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@3x.png +0 -0
  237. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones.png +0 -0
  238. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@2x.png +0 -0
  239. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@3x.png +0 -0
  240. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook.png +0 -0
  241. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@2x.png +0 -0
  242. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@3x.png +0 -0
  243. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote.png +0 -0
  244. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@2x.png +0 -0
  245. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@3x.png +0 -0
  246. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone.png +0 -0
  247. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@2x.png +0 -0
  248. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@3x.png +0 -0
  249. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant.png +0 -0
  250. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@2x.png +0 -0
  251. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@3x.png +0 -0
  252. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant.png +0 -0
  253. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@2x.png +0 -0
  254. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@3x.png +0 -0
  255. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied.png +0 -0
  256. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@2x.png +0 -0
  257. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@3x.png +0 -0
  258. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports.png +0 -0
  259. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@2x.png +0 -0
  260. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@3x.png +0 -0
  261. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv.png +0 -0
  262. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@2x.png +0 -0
  263. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@3x.png +0 -0
  264. package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm.png +0 -0
  265. package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@2x.png +0 -0
  266. package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@3x.png +0 -0
  267. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime.png +0 -0
  268. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@2x.png +0 -0
  269. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@3x.png +0 -0
  270. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay.png +0 -0
  271. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@2x.png +0 -0
  272. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@3x.png +0 -0
  273. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline.png +0 -0
  274. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@2x.png +0 -0
  275. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@3x.png +0 -0
  276. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny.png +0 -0
  277. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@2x.png +0 -0
  278. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@3x.png +0 -0
  279. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight.png +0 -0
  280. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@2x.png +0 -0
  281. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@3x.png +0 -0
@@ -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 {};
@@ -1,230 +0,0 @@
1
- import I18n from '@ledvance/base/src/i18n'
2
- import BiologicalRes from './res/BiologicalRes'
3
-
4
- export enum BiorhythmGradientType {
5
- // 全程渐变
6
- EntireGradient,
7
- // 直接渐变
8
- DirectGradient,
9
- }
10
-
11
- export const BiorhythmGradientTypeMap = {
12
- [BiorhythmGradientType.EntireGradient]: 'entireGradient',
13
- [BiorhythmGradientType.DirectGradient]: 'directGradient',
14
- }
15
-
16
- export const BiorhythmGradientTypeMap2 = {
17
- entireGradient: BiorhythmGradientType.EntireGradient,
18
- directGradient: BiorhythmGradientType.DirectGradient,
19
- }
20
-
21
- export interface BiorhythmBean {
22
- enable: boolean;
23
- repeatPeriod: Period[];
24
- gradient: BiorhythmGradientType;
25
- planList: Plan[];
26
- }
27
-
28
- export interface Plan {
29
- id: number;
30
- enable: boolean;
31
- icon: string;
32
- startTime: string;
33
- name: string;
34
- colorTemperature: number;
35
- brightness: number;
36
- action: Action[];
37
- iconId?: any;
38
- }
39
-
40
- export interface Action {
41
- uri: string;
42
- startValue: string;
43
- }
44
-
45
- export interface Period {
46
- index: number;
47
- title: string;
48
- enabled: boolean;
49
- }
50
-
51
- export function colorTemperatureValue(percentageValue) {
52
- // 38 = (6500 - 2700) / 100
53
- return 2700 + 38 * percentageValue
54
- }
55
-
56
- export function colorTempPercent(colorTemp: number): number {
57
- return Math.round((colorTemp - 2700) / 38)
58
- }
59
-
60
- export function getDefBiorhythmUIState(): BiorhythmBean {
61
- const icon1 = BiologicalRes.biorhythom_Icon1
62
- const icon12 = BiologicalRes.biorhythom_Icon3
63
- const icon2 = BiologicalRes.biorhythom_Icon5
64
- const icon3 = BiologicalRes.biorhythom_Icon2
65
- const icon4 = BiologicalRes.biorhythom_Icon9
66
- return {
67
- enable: false, // 生物节律默认为关
68
- repeatPeriod: getDefRepeatPeriod(),
69
- gradient: BiorhythmGradientType.EntireGradient,
70
- planList: [
71
- {
72
- id: 0,
73
- icon: icon1,
74
- startTime: '06:00',
75
- name: I18n.getLang('bio_ryhthm_default_field_text'),
76
- colorTemperature: 0,
77
- brightness: 0,
78
- action: [
79
- {
80
- uri: 'model/attribute/set/LightCtrl/ColorTemperature',
81
- startValue: `${colorTemperatureValue(0)}`,
82
- },
83
- {
84
- uri: 'model/attribute/set/LightCtrl/Brightness',
85
- startValue: '0',
86
- },
87
- ],
88
- enable: true,
89
- iconId: 1,
90
- },
91
- {
92
- id: 1,
93
- icon: icon12,
94
- startTime: '06:30',
95
- name: I18n.getLang('bio_ryhthm_default_field_text2'),
96
- colorTemperature: 25,
97
- brightness: 20,
98
- action: [
99
- {
100
- uri: 'model/attribute/set/LightCtrl/ColorTemperature',
101
- startValue: `${colorTemperatureValue(25)}`,
102
- },
103
- {
104
- uri: 'model/attribute/set/LightCtrl/Brightness',
105
- startValue: '20',
106
- },
107
- ],
108
- enable: true,
109
- iconId: 5,
110
- },
111
- {
112
- id: 2,
113
- icon: icon2,
114
- startTime: '09:00',
115
- name: I18n.getLang('bio_ryhthm_default_field_text3'),
116
- colorTemperature: 100,
117
- brightness: 100,
118
- action: [
119
- {
120
- uri: 'model/attribute/set/LightCtrl/ColorTemperature',
121
- startValue: `${colorTemperatureValue(100)}`,
122
- },
123
- {
124
- uri: 'model/attribute/set/LightCtrl/Brightness',
125
- startValue: '100',
126
- },
127
- ],
128
- enable: true,
129
- iconId: 2,
130
- },
131
- {
132
- id: 3,
133
- icon: icon3,
134
- startTime: '20:00',
135
- name: I18n.getLang('bio_ryhthm_default_field_text4'),
136
- colorTemperature: 50,
137
- brightness: 80,
138
- action: [
139
- {
140
- uri: 'model/attribute/set/LightCtrl/ColorTemperature',
141
- startValue: `${colorTemperatureValue(50)}`,
142
- },
143
- {
144
- uri: 'model/attribute/set/LightCtrl/Brightness',
145
- startValue: '80',
146
- },
147
- ],
148
- enable: true,
149
- iconId: 9,
150
- },
151
- {
152
- id: 4,
153
- icon: icon4,
154
- startTime: '23:30',
155
- name: I18n.getLang('bio_ryhthm_default_field_text5'),
156
- colorTemperature: 0,
157
- brightness: 0,
158
- action: [
159
- {
160
- uri: 'model/attribute/set/LightCtrl/ColorTemperature',
161
- startValue: `${colorTemperatureValue(0)}`,
162
- },
163
- {
164
- uri: 'model/attribute/set/LightCtrl/Brightness',
165
- startValue: '0',
166
- },
167
- ],
168
- enable: true,
169
- iconId: 3,
170
- },
171
- ],
172
- }
173
- }
174
-
175
- export function getDefRepeatPeriod(): Period[] {
176
- return [
177
- {
178
- index: 7,
179
- title: I18n.getLang('bio_ryhthm_default_weekday7_text'),
180
- enabled: true,
181
- },
182
- {
183
- index: 1,
184
- title: I18n.getLang('bio_ryhthm_default_weekday1_text'),
185
- enabled: true,
186
- },
187
- {
188
- index: 2,
189
- title: I18n.getLang('bio_ryhthm_default_weekday2_text'),
190
- enabled: true,
191
- },
192
- {
193
- index: 3,
194
- title: I18n.getLang('bio_ryhthm_default_weekday3_text'),
195
- enabled: true,
196
- },
197
- {
198
- index: 4,
199
- title: I18n.getLang('bio_ryhthm_default_weekday4_text'),
200
- enabled: true,
201
- },
202
- {
203
- index: 5,
204
- title: I18n.getLang('bio_ryhthm_default_weekday5_text'),
205
- enabled: true,
206
- },
207
- {
208
- index: 6,
209
- title: I18n.getLang('bio_ryhthm_default_weekday6_text'),
210
- enabled: true,
211
- },
212
- ]
213
- }
214
-
215
- export interface RemoteBiorhythmBean {
216
- enable: boolean;
217
- repeatPeriod: number[];
218
- gradientWay: string;
219
- rhythmPlan: RemoteBiorhythmPlan[];
220
- }
221
-
222
- interface RemoteBiorhythmPlan {
223
- iconId: any;
224
- name: string;
225
- rhythmIcon: string;
226
- enable: boolean;
227
- startTime: string;
228
- sustain: number; // 持续时间涂鸦这边没有,直接用来存ID
229
- action: Action[];
230
- }
@@ -1,14 +0,0 @@
1
- import { Plan } from './BiorhythmBean';
2
- export interface BiorhythmEditPageParams {
3
- planData: Plan;
4
- isAdd: boolean;
5
- onPlanEdited: (isAdd: boolean, plan: Plan) => void;
6
- onPlanDelete: (id: number) => void;
7
- minimumEnable: (plan: Plan) => boolean;
8
- iconIdList?: any;
9
- isMixRGBWLamp: boolean;
10
- isSupportTemperature: boolean;
11
- isSupportBrightness: boolean;
12
- }
13
- declare const BiorhythmEditPage: () => any;
14
- export default BiorhythmEditPage;