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