@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
@@ -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;