@hedia/recommendation-screen 2.1.75 → 2.2.0-alpha.0

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 (393) hide show
  1. package/dist/index.d.ts +5 -0
  2. package/dist/index.js +5 -0
  3. package/{lib/typescript → dist/src}/RecommendationScreen.d.ts +68 -82
  4. package/dist/src/RecommendationScreen.js +522 -0
  5. package/dist/src/assets/assets/activity/Cyclist.png +0 -0
  6. package/dist/src/assets/assets/activity/Other.png +0 -0
  7. package/dist/src/assets/assets/activity/Runner.png +0 -0
  8. package/dist/src/assets/assets/activity/Swimmer.png +0 -0
  9. package/dist/src/assets/assets/activity/Walk.png +0 -0
  10. package/dist/src/assets/assets/fonts/Poppins-Bold.ttf +0 -0
  11. package/dist/src/assets/assets/fonts/Poppins-SemiBold.ttf +0 -0
  12. package/dist/src/assets/assets/icons/Edit.tsx +22 -0
  13. package/dist/src/assets/assets/icons/X.tsx +14 -0
  14. package/dist/src/assets/assets/mood/happy.png +0 -0
  15. package/dist/src/assets/assets/mood/happy_active.png +0 -0
  16. package/dist/src/assets/assets/mood/neutral.png +0 -0
  17. package/dist/src/assets/assets/mood/neutral_active.png +0 -0
  18. package/dist/src/assets/assets/mood/sad.png +0 -0
  19. package/dist/src/assets/assets/mood/sad_active.png +0 -0
  20. package/dist/src/assets/assets/mood/semi_happy.png +0 -0
  21. package/dist/src/assets/assets/mood/semi_happy_active.png +0 -0
  22. package/dist/src/assets/assets/mood/semi_sad.png +0 -0
  23. package/dist/src/assets/assets/mood/semi_sad_active.png +0 -0
  24. package/dist/src/assets/icons/Edit.d.ts +4 -0
  25. package/dist/src/assets/icons/Edit.js +7 -0
  26. package/dist/src/assets/icons/X.d.ts +4 -0
  27. package/dist/src/assets/icons/X.js +6 -0
  28. package/dist/src/components/ForecastInfoBar.d.ts +109 -0
  29. package/dist/src/components/ForecastInfoBar.js +138 -0
  30. package/dist/src/components/Header.d.ts +8 -0
  31. package/dist/src/components/Header.js +54 -0
  32. package/dist/src/components/Icon.d.ts +20 -0
  33. package/dist/src/components/Icon.js +43 -0
  34. package/{lib/typescript → dist/src}/components/InfoBars.d.ts +28 -14
  35. package/dist/src/components/InfoBars.js +128 -0
  36. package/{lib/typescript → dist/src}/components/InvisibleNumberInput.d.ts +3 -9
  37. package/dist/src/components/InvisibleNumberInput.js +121 -0
  38. package/dist/src/components/LimitationMessage.d.ts +14 -0
  39. package/dist/src/components/LimitationMessage.js +30 -0
  40. package/{lib/typescript → dist/src}/components/LineSeparator.d.ts +1 -6
  41. package/dist/src/components/LineSeparator.js +18 -0
  42. package/{lib/typescript → dist/src}/components/RecentInsulin.d.ts +1 -3
  43. package/dist/src/components/RecentInsulin.js +73 -0
  44. package/{lib/typescript → dist/src}/components/RecommendationModal.d.ts +63 -63
  45. package/dist/src/components/RecommendationModal.js +226 -0
  46. package/{lib/typescript → dist/src}/components/RecommendedCarbs.d.ts +0 -3
  47. package/dist/src/components/RecommendedCarbs.js +251 -0
  48. package/{lib/typescript → dist/src}/components/RecommendedInsulin.d.ts +1 -2
  49. package/dist/src/components/RecommendedInsulin.js +180 -0
  50. package/{lib/typescript → dist/src}/components/Remeasure.d.ts +15 -6
  51. package/dist/src/components/Remeasure.js +130 -0
  52. package/{lib/typescript/components/TransferToLogbook.d.ts → dist/src/components/SaveButton.d.ts} +2 -3
  53. package/dist/src/components/SaveButton.js +71 -0
  54. package/dist/src/components/TwoOptionModal.d.ts +136 -0
  55. package/dist/src/components/TwoOptionModal.js +141 -0
  56. package/{lib/typescript → dist/src}/components/activity/Activity.d.ts +2 -3
  57. package/dist/src/components/activity/Activity.js +84 -0
  58. package/{lib/typescript → dist/src}/components/activity/ActivityIcon.d.ts +7 -8
  59. package/dist/src/components/activity/ActivityIcon.js +58 -0
  60. package/{lib/typescript → dist/src}/components/activity/ActivityIntensity.d.ts +1 -2
  61. package/dist/src/components/activity/ActivityIntensity.js +58 -0
  62. package/{lib/typescript → dist/src}/components/mood/Emotion.d.ts +1 -2
  63. package/dist/src/components/mood/Emotion.js +64 -0
  64. package/{lib/typescript → dist/src}/components/mood/MoodIcon.d.ts +5 -5
  65. package/dist/src/components/mood/MoodIcon.js +63 -0
  66. package/dist/src/components/text/TextBold.d.ts +8 -0
  67. package/dist/src/components/text/TextBold.js +12 -0
  68. package/dist/src/components/text/TextRegular.d.ts +8 -0
  69. package/dist/src/components/text/TextRegular.js +12 -0
  70. package/dist/src/locale/da/messages.js +1 -0
  71. package/dist/src/locale/da/messages.po +349 -0
  72. package/dist/src/locale/de/messages.js +1 -0
  73. package/dist/src/locale/de/messages.po +349 -0
  74. package/dist/src/locale/en/messages.js +1 -0
  75. package/dist/src/locale/en/messages.po +349 -0
  76. package/dist/src/locale/es/messages.js +1 -0
  77. package/dist/src/locale/es/messages.po +349 -0
  78. package/dist/src/locale/fr/messages.js +1 -0
  79. package/dist/src/locale/fr/messages.po +349 -0
  80. package/dist/src/locale/i18nUtils.d.ts +18 -0
  81. package/dist/src/locale/i18nUtils.js +39 -0
  82. package/dist/src/locale/it/messages.js +1 -0
  83. package/dist/src/locale/it/messages.po +349 -0
  84. package/{lib/typescript → dist/src}/types/enum.d.ts +15 -22
  85. package/dist/src/types/enum.js +145 -0
  86. package/{lib/typescript → dist/src}/types/types.d.ts +0 -1
  87. package/dist/src/types/types.js +1 -0
  88. package/{lib/typescript → dist/src}/utils/AttentionMessages.d.ts +0 -1
  89. package/dist/src/utils/AttentionMessages.js +118 -0
  90. package/{lib/typescript → dist/src}/utils/Constants.d.ts +3 -18
  91. package/{lib/module → dist/src}/utils/Constants.js +21 -79
  92. package/{lib/typescript → dist/src}/utils/RecommendationError.d.ts +0 -1
  93. package/dist/src/utils/RecommendationError.js +63 -0
  94. package/{lib/typescript → dist/src}/utils/RecommendationUtils.d.ts +0 -1
  95. package/{lib/module → dist/src}/utils/RecommendationUtils.js +88 -90
  96. package/{lib/typescript → dist/src}/utils/Translations.d.ts +0 -1
  97. package/{lib/module → dist/src}/utils/Translations.js +5 -7
  98. package/{lib/typescript → dist/src}/utils/Utils.d.ts +1 -2
  99. package/dist/src/utils/Utils.js +141 -0
  100. package/{lib/typescript → dist/src}/utils/Validations.d.ts +1 -2
  101. package/{lib/module → dist/src}/utils/Validations.js +128 -156
  102. package/package.json +96 -109
  103. package/lib/commonjs/RecommendationScreen.js +0 -778
  104. package/lib/commonjs/RecommendationScreen.js.map +0 -1
  105. package/lib/commonjs/assets/IconsSVG/Close.js +0 -20
  106. package/lib/commonjs/assets/IconsSVG/Close.js.map +0 -1
  107. package/lib/commonjs/assets/IconsSVG/CloseOutlined.js +0 -28
  108. package/lib/commonjs/assets/IconsSVG/CloseOutlined.js.map +0 -1
  109. package/lib/commonjs/assets/IconsSVG/Edit.js +0 -23
  110. package/lib/commonjs/assets/IconsSVG/Edit.js.map +0 -1
  111. package/lib/commonjs/assets/IconsSVG/activity/Cycling.js +0 -43
  112. package/lib/commonjs/assets/IconsSVG/activity/Cycling.js.map +0 -1
  113. package/lib/commonjs/assets/IconsSVG/activity/Running.js +0 -33
  114. package/lib/commonjs/assets/IconsSVG/activity/Running.js.map +0 -1
  115. package/lib/commonjs/assets/IconsSVG/activity/Stretching.js +0 -33
  116. package/lib/commonjs/assets/IconsSVG/activity/Stretching.js.map +0 -1
  117. package/lib/commonjs/assets/IconsSVG/activity/Swimming.js +0 -48
  118. package/lib/commonjs/assets/IconsSVG/activity/Swimming.js.map +0 -1
  119. package/lib/commonjs/assets/IconsSVG/activity/Walking.js +0 -38
  120. package/lib/commonjs/assets/IconsSVG/activity/Walking.js.map +0 -1
  121. package/lib/commonjs/assets/IconsSVG/mood/Happy.js +0 -34
  122. package/lib/commonjs/assets/IconsSVG/mood/Happy.js.map +0 -1
  123. package/lib/commonjs/assets/IconsSVG/mood/Neutral.js +0 -34
  124. package/lib/commonjs/assets/IconsSVG/mood/Neutral.js.map +0 -1
  125. package/lib/commonjs/assets/IconsSVG/mood/Sad.js +0 -34
  126. package/lib/commonjs/assets/IconsSVG/mood/Sad.js.map +0 -1
  127. package/lib/commonjs/assets/IconsSVG/mood/SemiHappy.js +0 -34
  128. package/lib/commonjs/assets/IconsSVG/mood/SemiHappy.js.map +0 -1
  129. package/lib/commonjs/assets/IconsSVG/mood/SemiSad.js +0 -34
  130. package/lib/commonjs/assets/IconsSVG/mood/SemiSad.js.map +0 -1
  131. package/lib/commonjs/components/ExitModal.js +0 -124
  132. package/lib/commonjs/components/ExitModal.js.map +0 -1
  133. package/lib/commonjs/components/InfoBars.js +0 -123
  134. package/lib/commonjs/components/InfoBars.js.map +0 -1
  135. package/lib/commonjs/components/InvisibleNumberInput.js +0 -150
  136. package/lib/commonjs/components/InvisibleNumberInput.js.map +0 -1
  137. package/lib/commonjs/components/LineSeparator.js +0 -27
  138. package/lib/commonjs/components/LineSeparator.js.map +0 -1
  139. package/lib/commonjs/components/RecentInsulin.js +0 -105
  140. package/lib/commonjs/components/RecentInsulin.js.map +0 -1
  141. package/lib/commonjs/components/RecommendationModal.js +0 -302
  142. package/lib/commonjs/components/RecommendationModal.js.map +0 -1
  143. package/lib/commonjs/components/RecommendedCarbs.js +0 -289
  144. package/lib/commonjs/components/RecommendedCarbs.js.map +0 -1
  145. package/lib/commonjs/components/RecommendedInsulin.js +0 -209
  146. package/lib/commonjs/components/RecommendedInsulin.js.map +0 -1
  147. package/lib/commonjs/components/Remeasure.js +0 -131
  148. package/lib/commonjs/components/Remeasure.js.map +0 -1
  149. package/lib/commonjs/components/Text.js +0 -25
  150. package/lib/commonjs/components/Text.js.map +0 -1
  151. package/lib/commonjs/components/TimeoutModal.js +0 -113
  152. package/lib/commonjs/components/TimeoutModal.js.map +0 -1
  153. package/lib/commonjs/components/TransferToLogbook.js +0 -83
  154. package/lib/commonjs/components/TransferToLogbook.js.map +0 -1
  155. package/lib/commonjs/components/activity/Activity.js +0 -112
  156. package/lib/commonjs/components/activity/Activity.js.map +0 -1
  157. package/lib/commonjs/components/activity/ActivityIcon.js +0 -86
  158. package/lib/commonjs/components/activity/ActivityIcon.js.map +0 -1
  159. package/lib/commonjs/components/activity/ActivityIntensity.js +0 -65
  160. package/lib/commonjs/components/activity/ActivityIntensity.js.map +0 -1
  161. package/lib/commonjs/components/mood/Emotion.js +0 -86
  162. package/lib/commonjs/components/mood/Emotion.js.map +0 -1
  163. package/lib/commonjs/components/mood/MoodIcon.js +0 -107
  164. package/lib/commonjs/components/mood/MoodIcon.js.map +0 -1
  165. package/lib/commonjs/components/styles/fonts.js +0 -160
  166. package/lib/commonjs/components/styles/fonts.js.map +0 -1
  167. package/lib/commonjs/index.js +0 -21
  168. package/lib/commonjs/index.js.map +0 -1
  169. package/lib/commonjs/locales/da/translations.json +0 -82
  170. package/lib/commonjs/locales/de/translations.json +0 -81
  171. package/lib/commonjs/locales/en/translations.json +0 -84
  172. package/lib/commonjs/locales/es/translations.json +0 -81
  173. package/lib/commonjs/locales/fr/translations.json +0 -81
  174. package/lib/commonjs/locales/it/translations.json +0 -81
  175. package/lib/commonjs/locales/translate.js +0 -63
  176. package/lib/commonjs/locales/translate.js.map +0 -1
  177. package/lib/commonjs/types/enum.js +0 -179
  178. package/lib/commonjs/types/enum.js.map +0 -1
  179. package/lib/commonjs/types/types.js +0 -6
  180. package/lib/commonjs/types/types.js.map +0 -1
  181. package/lib/commonjs/utils/AttentionMessages.js +0 -141
  182. package/lib/commonjs/utils/AttentionMessages.js.map +0 -1
  183. package/lib/commonjs/utils/Constants.js +0 -138
  184. package/lib/commonjs/utils/Constants.js.map +0 -1
  185. package/lib/commonjs/utils/RecommendationError.js +0 -116
  186. package/lib/commonjs/utils/RecommendationError.js.map +0 -1
  187. package/lib/commonjs/utils/RecommendationUtils.js +0 -212
  188. package/lib/commonjs/utils/RecommendationUtils.js.map +0 -1
  189. package/lib/commonjs/utils/Translations.js +0 -22
  190. package/lib/commonjs/utils/Translations.js.map +0 -1
  191. package/lib/commonjs/utils/Utils.js +0 -162
  192. package/lib/commonjs/utils/Utils.js.map +0 -1
  193. package/lib/commonjs/utils/Validations.js +0 -468
  194. package/lib/commonjs/utils/Validations.js.map +0 -1
  195. package/lib/module/RecommendationScreen.js +0 -768
  196. package/lib/module/RecommendationScreen.js.map +0 -1
  197. package/lib/module/assets/IconsSVG/Close.js +0 -11
  198. package/lib/module/assets/IconsSVG/Close.js.map +0 -1
  199. package/lib/module/assets/IconsSVG/CloseOutlined.js +0 -19
  200. package/lib/module/assets/IconsSVG/CloseOutlined.js.map +0 -1
  201. package/lib/module/assets/IconsSVG/Edit.js +0 -14
  202. package/lib/module/assets/IconsSVG/Edit.js.map +0 -1
  203. package/lib/module/assets/IconsSVG/activity/Cycling.js +0 -34
  204. package/lib/module/assets/IconsSVG/activity/Cycling.js.map +0 -1
  205. package/lib/module/assets/IconsSVG/activity/Running.js +0 -24
  206. package/lib/module/assets/IconsSVG/activity/Running.js.map +0 -1
  207. package/lib/module/assets/IconsSVG/activity/Stretching.js +0 -24
  208. package/lib/module/assets/IconsSVG/activity/Stretching.js.map +0 -1
  209. package/lib/module/assets/IconsSVG/activity/Swimming.js +0 -39
  210. package/lib/module/assets/IconsSVG/activity/Swimming.js.map +0 -1
  211. package/lib/module/assets/IconsSVG/activity/Walking.js +0 -29
  212. package/lib/module/assets/IconsSVG/activity/Walking.js.map +0 -1
  213. package/lib/module/assets/IconsSVG/mood/Happy.js +0 -25
  214. package/lib/module/assets/IconsSVG/mood/Happy.js.map +0 -1
  215. package/lib/module/assets/IconsSVG/mood/Neutral.js +0 -25
  216. package/lib/module/assets/IconsSVG/mood/Neutral.js.map +0 -1
  217. package/lib/module/assets/IconsSVG/mood/Sad.js +0 -25
  218. package/lib/module/assets/IconsSVG/mood/Sad.js.map +0 -1
  219. package/lib/module/assets/IconsSVG/mood/SemiHappy.js +0 -25
  220. package/lib/module/assets/IconsSVG/mood/SemiHappy.js.map +0 -1
  221. package/lib/module/assets/IconsSVG/mood/SemiSad.js +0 -25
  222. package/lib/module/assets/IconsSVG/mood/SemiSad.js.map +0 -1
  223. package/lib/module/components/ExitModal.js +0 -114
  224. package/lib/module/components/ExitModal.js.map +0 -1
  225. package/lib/module/components/InfoBars.js +0 -114
  226. package/lib/module/components/InfoBars.js.map +0 -1
  227. package/lib/module/components/InvisibleNumberInput.js +0 -142
  228. package/lib/module/components/InvisibleNumberInput.js.map +0 -1
  229. package/lib/module/components/LineSeparator.js +0 -19
  230. package/lib/module/components/LineSeparator.js.map +0 -1
  231. package/lib/module/components/RecentInsulin.js +0 -97
  232. package/lib/module/components/RecentInsulin.js.map +0 -1
  233. package/lib/module/components/RecommendationModal.js +0 -291
  234. package/lib/module/components/RecommendationModal.js.map +0 -1
  235. package/lib/module/components/RecommendedCarbs.js +0 -281
  236. package/lib/module/components/RecommendedCarbs.js.map +0 -1
  237. package/lib/module/components/RecommendedInsulin.js +0 -201
  238. package/lib/module/components/RecommendedInsulin.js.map +0 -1
  239. package/lib/module/components/Remeasure.js +0 -123
  240. package/lib/module/components/Remeasure.js.map +0 -1
  241. package/lib/module/components/Text.js +0 -16
  242. package/lib/module/components/Text.js.map +0 -1
  243. package/lib/module/components/TimeoutModal.js +0 -103
  244. package/lib/module/components/TimeoutModal.js.map +0 -1
  245. package/lib/module/components/TransferToLogbook.js +0 -75
  246. package/lib/module/components/TransferToLogbook.js.map +0 -1
  247. package/lib/module/components/activity/Activity.js +0 -104
  248. package/lib/module/components/activity/Activity.js.map +0 -1
  249. package/lib/module/components/activity/ActivityIcon.js +0 -78
  250. package/lib/module/components/activity/ActivityIcon.js.map +0 -1
  251. package/lib/module/components/activity/ActivityIntensity.js +0 -57
  252. package/lib/module/components/activity/ActivityIntensity.js.map +0 -1
  253. package/lib/module/components/mood/Emotion.js +0 -78
  254. package/lib/module/components/mood/Emotion.js.map +0 -1
  255. package/lib/module/components/mood/MoodIcon.js +0 -97
  256. package/lib/module/components/mood/MoodIcon.js.map +0 -1
  257. package/lib/module/components/styles/fonts.js +0 -152
  258. package/lib/module/components/styles/fonts.js.map +0 -1
  259. package/lib/module/index.js +0 -5
  260. package/lib/module/index.js.map +0 -1
  261. package/lib/module/locales/da/translations.json +0 -82
  262. package/lib/module/locales/de/translations.json +0 -81
  263. package/lib/module/locales/en/translations.json +0 -84
  264. package/lib/module/locales/es/translations.json +0 -81
  265. package/lib/module/locales/fr/translations.json +0 -81
  266. package/lib/module/locales/it/translations.json +0 -81
  267. package/lib/module/locales/translate.js +0 -55
  268. package/lib/module/locales/translate.js.map +0 -1
  269. package/lib/module/types/enum.js +0 -170
  270. package/lib/module/types/enum.js.map +0 -1
  271. package/lib/module/types/types.js +0 -2
  272. package/lib/module/types/types.js.map +0 -1
  273. package/lib/module/utils/AttentionMessages.js +0 -131
  274. package/lib/module/utils/AttentionMessages.js.map +0 -1
  275. package/lib/module/utils/Constants.js.map +0 -1
  276. package/lib/module/utils/RecommendationError.js +0 -87
  277. package/lib/module/utils/RecommendationError.js.map +0 -1
  278. package/lib/module/utils/RecommendationUtils.js.map +0 -1
  279. package/lib/module/utils/Translations.js.map +0 -1
  280. package/lib/module/utils/Utils.js +0 -155
  281. package/lib/module/utils/Utils.js.map +0 -1
  282. package/lib/module/utils/Validations.js.map +0 -1
  283. package/lib/typescript/RecommendationScreen.d.ts.map +0 -1
  284. package/lib/typescript/assets/IconsSVG/Close.d.ts +0 -5
  285. package/lib/typescript/assets/IconsSVG/Close.d.ts.map +0 -1
  286. package/lib/typescript/assets/IconsSVG/CloseOutlined.d.ts +0 -5
  287. package/lib/typescript/assets/IconsSVG/CloseOutlined.d.ts.map +0 -1
  288. package/lib/typescript/assets/IconsSVG/Edit.d.ts +0 -5
  289. package/lib/typescript/assets/IconsSVG/Edit.d.ts.map +0 -1
  290. package/lib/typescript/assets/IconsSVG/activity/Cycling.d.ts +0 -5
  291. package/lib/typescript/assets/IconsSVG/activity/Cycling.d.ts.map +0 -1
  292. package/lib/typescript/assets/IconsSVG/activity/Running.d.ts +0 -5
  293. package/lib/typescript/assets/IconsSVG/activity/Running.d.ts.map +0 -1
  294. package/lib/typescript/assets/IconsSVG/activity/Stretching.d.ts +0 -5
  295. package/lib/typescript/assets/IconsSVG/activity/Stretching.d.ts.map +0 -1
  296. package/lib/typescript/assets/IconsSVG/activity/Swimming.d.ts +0 -5
  297. package/lib/typescript/assets/IconsSVG/activity/Swimming.d.ts.map +0 -1
  298. package/lib/typescript/assets/IconsSVG/activity/Walking.d.ts +0 -5
  299. package/lib/typescript/assets/IconsSVG/activity/Walking.d.ts.map +0 -1
  300. package/lib/typescript/assets/IconsSVG/mood/Happy.d.ts +0 -5
  301. package/lib/typescript/assets/IconsSVG/mood/Happy.d.ts.map +0 -1
  302. package/lib/typescript/assets/IconsSVG/mood/Neutral.d.ts +0 -5
  303. package/lib/typescript/assets/IconsSVG/mood/Neutral.d.ts.map +0 -1
  304. package/lib/typescript/assets/IconsSVG/mood/Sad.d.ts +0 -5
  305. package/lib/typescript/assets/IconsSVG/mood/Sad.d.ts.map +0 -1
  306. package/lib/typescript/assets/IconsSVG/mood/SemiHappy.d.ts +0 -5
  307. package/lib/typescript/assets/IconsSVG/mood/SemiHappy.d.ts.map +0 -1
  308. package/lib/typescript/assets/IconsSVG/mood/SemiSad.d.ts +0 -5
  309. package/lib/typescript/assets/IconsSVG/mood/SemiSad.d.ts.map +0 -1
  310. package/lib/typescript/components/ExitModal.d.ts +0 -26
  311. package/lib/typescript/components/ExitModal.d.ts.map +0 -1
  312. package/lib/typescript/components/InfoBars.d.ts.map +0 -1
  313. package/lib/typescript/components/InvisibleNumberInput.d.ts.map +0 -1
  314. package/lib/typescript/components/LineSeparator.d.ts.map +0 -1
  315. package/lib/typescript/components/RecentInsulin.d.ts.map +0 -1
  316. package/lib/typescript/components/RecommendationModal.d.ts.map +0 -1
  317. package/lib/typescript/components/RecommendedCarbs.d.ts.map +0 -1
  318. package/lib/typescript/components/RecommendedInsulin.d.ts.map +0 -1
  319. package/lib/typescript/components/Remeasure.d.ts.map +0 -1
  320. package/lib/typescript/components/Text.d.ts +0 -14
  321. package/lib/typescript/components/Text.d.ts.map +0 -1
  322. package/lib/typescript/components/TimeoutModal.d.ts +0 -25
  323. package/lib/typescript/components/TimeoutModal.d.ts.map +0 -1
  324. package/lib/typescript/components/TransferToLogbook.d.ts.map +0 -1
  325. package/lib/typescript/components/activity/Activity.d.ts.map +0 -1
  326. package/lib/typescript/components/activity/ActivityIcon.d.ts.map +0 -1
  327. package/lib/typescript/components/activity/ActivityIntensity.d.ts.map +0 -1
  328. package/lib/typescript/components/mood/Emotion.d.ts.map +0 -1
  329. package/lib/typescript/components/mood/MoodIcon.d.ts.map +0 -1
  330. package/lib/typescript/components/styles/fonts.d.ts +0 -151
  331. package/lib/typescript/components/styles/fonts.d.ts.map +0 -1
  332. package/lib/typescript/index.d.ts +0 -5
  333. package/lib/typescript/index.d.ts.map +0 -1
  334. package/lib/typescript/locales/translate.d.ts +0 -20
  335. package/lib/typescript/locales/translate.d.ts.map +0 -1
  336. package/lib/typescript/types/enum.d.ts.map +0 -1
  337. package/lib/typescript/types/types.d.ts.map +0 -1
  338. package/lib/typescript/utils/AttentionMessages.d.ts.map +0 -1
  339. package/lib/typescript/utils/Constants.d.ts.map +0 -1
  340. package/lib/typescript/utils/RecommendationError.d.ts.map +0 -1
  341. package/lib/typescript/utils/RecommendationUtils.d.ts.map +0 -1
  342. package/lib/typescript/utils/Translations.d.ts.map +0 -1
  343. package/lib/typescript/utils/Utils.d.ts.map +0 -1
  344. package/lib/typescript/utils/Validations.d.ts.map +0 -1
  345. package/src/RecommendationScreen.tsx +0 -854
  346. package/src/assets/IconsSVG/Close.tsx +0 -13
  347. package/src/assets/IconsSVG/CloseOutlined.tsx +0 -23
  348. package/src/assets/IconsSVG/Edit.tsx +0 -16
  349. package/src/assets/IconsSVG/activity/Cycling.tsx +0 -41
  350. package/src/assets/IconsSVG/activity/Running.tsx +0 -29
  351. package/src/assets/IconsSVG/activity/Stretching.tsx +0 -29
  352. package/src/assets/IconsSVG/activity/Swimming.tsx +0 -47
  353. package/src/assets/IconsSVG/activity/Walking.tsx +0 -35
  354. package/src/assets/IconsSVG/mood/Happy.tsx +0 -30
  355. package/src/assets/IconsSVG/mood/Neutral.tsx +0 -30
  356. package/src/assets/IconsSVG/mood/Sad.tsx +0 -30
  357. package/src/assets/IconsSVG/mood/SemiHappy.tsx +0 -30
  358. package/src/assets/IconsSVG/mood/SemiSad.tsx +0 -30
  359. package/src/components/ExitModal.tsx +0 -134
  360. package/src/components/InfoBars.tsx +0 -122
  361. package/src/components/InvisibleNumberInput.tsx +0 -170
  362. package/src/components/LineSeparator.tsx +0 -29
  363. package/src/components/RecentInsulin.tsx +0 -109
  364. package/src/components/RecommendationModal.tsx +0 -319
  365. package/src/components/RecommendedCarbs.tsx +0 -303
  366. package/src/components/RecommendedInsulin.tsx +0 -220
  367. package/src/components/Remeasure.tsx +0 -135
  368. package/src/components/Text.tsx +0 -27
  369. package/src/components/TimeoutModal.tsx +0 -121
  370. package/src/components/TransferToLogbook.tsx +0 -92
  371. package/src/components/activity/Activity.tsx +0 -107
  372. package/src/components/activity/ActivityIcon.tsx +0 -77
  373. package/src/components/activity/ActivityIntensity.tsx +0 -67
  374. package/src/components/mood/Emotion.tsx +0 -97
  375. package/src/components/mood/MoodIcon.tsx +0 -91
  376. package/src/components/styles/fonts.ts +0 -151
  377. package/src/index.ts +0 -5
  378. package/src/locales/da/translations.json +0 -82
  379. package/src/locales/de/translations.json +0 -81
  380. package/src/locales/en/translations.json +0 -84
  381. package/src/locales/es/translations.json +0 -81
  382. package/src/locales/fr/translations.json +0 -81
  383. package/src/locales/it/translations.json +0 -81
  384. package/src/locales/translate.ts +0 -62
  385. package/src/types/enum.ts +0 -164
  386. package/src/types/types.ts +0 -19
  387. package/src/utils/AttentionMessages.ts +0 -167
  388. package/src/utils/Constants.ts +0 -77
  389. package/src/utils/RecommendationError.ts +0 -182
  390. package/src/utils/RecommendationUtils.ts +0 -232
  391. package/src/utils/Translations.ts +0 -17
  392. package/src/utils/Utils.ts +0 -156
  393. package/src/utils/Validations.ts +0 -490
@@ -0,0 +1,349 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "POT-Creation-Date: 2020-07-02 10:25+0200\n"
4
+ "Mime-Version: 1.0\n"
5
+ "Content-Type: text/plain; charset=utf-8\n"
6
+ "Content-Transfer-Encoding: 8bit\n"
7
+ "X-Generator: @lingui/cli\n"
8
+ "Language: en\n"
9
+ "Project-Id-Version: \n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "PO-Revision-Date: \n"
12
+ "Last-Translator: \n"
13
+ "Language-Team: \n"
14
+ "Plural-Forms: \n"
15
+
16
+ #: src/RecommendationScreen.tsx:448
17
+ msgid "Active Insulin"
18
+ msgstr "Insulina attiva"
19
+
20
+ #: src/components/activity/Activity.tsx:32
21
+ msgid "Activity"
22
+ msgstr "Attività fisica"
23
+
24
+ #: src/components/RecommendedCarbs.tsx:101
25
+ msgid "Additional"
26
+ msgstr "Ulteriori"
27
+
28
+ #: src/components/LimitationMessage.tsx:19
29
+ #: src/components/RecommendationModal.tsx:96
30
+ #: src/components/RecommendedCarbs.tsx:63
31
+ #: src/components/RecommendedInsulin.tsx:74
32
+ msgid "Attention"
33
+ msgstr "Attenzione"
34
+
35
+ #: src/components/activity/Activity.tsx:47
36
+ msgid "Based on the selected activity your insulin recommendation is reduced by:"
37
+ msgstr "In base all'attività selezionata, la prescrizione per l'insulina è ridotta di:"
38
+
39
+ #: src/RecommendationScreen.tsx:449
40
+ msgid "Blood Glucose Level"
41
+ msgstr "Indice glicemico"
42
+
43
+ #: src/RecommendationScreen.tsx:450
44
+ msgid "Blood Ketone Level"
45
+ msgstr "Livello di chetoni nel sangue"
46
+
47
+ #: src/components/RecommendedCarbs.tsx:165
48
+ msgid "Carbohydrates"
49
+ msgstr "Carboidrati"
50
+
51
+ #: src/RecommendationScreen.tsx:470
52
+ msgid "Close calculation"
53
+ msgstr "Chiudi calcolo"
54
+
55
+ #: src/utils/AttentionMessages.tsx:86
56
+ msgid "Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity."
57
+ msgstr "Ricorda di non iniziare l'attività fisica prima che il livello di glucosio nel sangue non sia rientrato negli intervalli raccomandati prima dell'attività fisica."
58
+
59
+ #: src/components/RecommendedCarbs.tsx:168
60
+ msgid "Entered"
61
+ msgstr "Inserito"
62
+
63
+ #: src/utils/RecommendationError.tsx:50
64
+ msgid "Error. Hedia Calculator could not find your recent boluses"
65
+ msgstr ""
66
+
67
+ #: src/utils/RecommendationError.tsx:46
68
+ msgid "Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units"
69
+ msgstr "Errore. Hedia Calculator non supporta una dose di insulina superiore a {SAFETY_INSULIN_LIMIT} unità"
70
+
71
+ #: src/utils/RecommendationError.tsx:48
72
+ msgid "Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours"
73
+ msgstr "Errore. Hedia Calculator non supporta le raccomandazioni di insulina con boli più vecchi di 4 ore"
74
+
75
+ #: src/utils/RecommendationError.tsx:40
76
+ msgid "Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours."
77
+ msgstr ""
78
+
79
+ #: src/utils/RecommendationError.tsx:26
80
+ msgid "Error. Hedia Calculator does not support your activity intensity value"
81
+ msgstr "Errore. Hedia Calculator non supporta il valore dell'intensità dell'attività"
82
+
83
+ #: src/utils/RecommendationError.tsx:28
84
+ msgid "Error. Hedia Calculator does not support your activity type value"
85
+ msgstr "Errore. Hedia Calculator non supporta il valore del tipo di attività"
86
+
87
+ #: src/utils/RecommendationError.tsx:38
88
+ msgid "Error. Hedia Calculator does not support your current blood glucose level."
89
+ msgstr "Errore. Hedia Calculator non supporta la tua glicemia attuale."
90
+
91
+ #: src/utils/RecommendationError.tsx:60
92
+ msgid "Error. Hedia Calculator does not support your current blood glucose unit."
93
+ msgstr "Errore. Hedia Calculator non supporta l'attuale unità misura di glucosio nel sangue."
94
+
95
+ #: src/utils/RecommendationError.tsx:42
96
+ msgid "Error. Hedia Calculator does not support your current blood ketone level."
97
+ msgstr "Errore. Hedia Calculator non supporta l'attuale livello di chetoni nel sangue."
98
+
99
+ #: src/utils/RecommendationError.tsx:58
100
+ msgid "Error. Hedia Calculator does not support your current blood ketone unit."
101
+ msgstr "Errore. Hedia Calculator non supporta l'attuale unità di misura di chetoni del sangue."
102
+
103
+ #: src/utils/RecommendationError.tsx:56
104
+ msgid "Error. Hedia Calculator does not support your current language."
105
+ msgstr "Errore. Hedia Calculator non supporta la lingua corrente."
106
+
107
+ #: src/utils/RecommendationError.tsx:54
108
+ msgid "Error. Hedia Calculator does not support your injection method."
109
+ msgstr "Errore. Hedia Calculator non supporta il metodo di iniezione."
110
+
111
+ #: src/utils/RecommendationError.tsx:22
112
+ msgid "Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes."
113
+ msgstr "Errore. Hedia Calculator supporta solo attività della durata massima di 60 minuti."
114
+
115
+ #: src/utils/RecommendationError.tsx:20
116
+ msgid "Error. Please verify that your activity settings are set up correctly."
117
+ msgstr "Errore. Verificare che le impostazioni delle attività siano impostate correttamente."
118
+
119
+ #: src/utils/RecommendationError.tsx:30
120
+ msgid "Error. Please verify that your activity target blood glucose value is correct."
121
+ msgstr "Errore. Verificare che il indice glicemico desiderato durante l’attività sia corretto."
122
+
123
+ #: src/utils/RecommendationError.tsx:34
124
+ msgid "Error. Please verify that your insulin sensitivity value is correct."
125
+ msgstr "Errore. Verificare che il valore della sensibilità all'insulina sia corretto."
126
+
127
+ #: src/utils/RecommendationError.tsx:36
128
+ msgid "Error. Please verify that your insulin to carb ratio value is correct."
129
+ msgstr "Errore. Verificare che il valore del rapporto insulina/carboidrati sia corretto."
130
+
131
+ #: src/utils/RecommendationError.tsx:44
132
+ msgid "Error. Please verify that your target blood glucose value is correct."
133
+ msgstr "Errore. Verificare che il valore obiettivo della glicemia sia corretto."
134
+
135
+ #: src/utils/RecommendationError.tsx:52
136
+ msgid "Error. Please verify your notifications settings."
137
+ msgstr "Errore. Verificare le impostazioni di notifica."
138
+
139
+ #: src/utils/RecommendationError.tsx:62
140
+ msgid "Error. Your blood ketone settings are invalid."
141
+ msgstr ""
142
+
143
+ #: src/components/RecommendedCarbs.tsx:164
144
+ msgid "Food"
145
+ msgstr "Cibo"
146
+
147
+ #: src/utils/Translations.ts:13
148
+ msgid "Hard"
149
+ msgstr "Intensa"
150
+
151
+ #: src/components/RecentInsulin.tsx:24
152
+ msgid "Have you taken insulin within the last 4 hours?"
153
+ msgstr "Hai assunto insulina nelle ultime 4 ore?"
154
+
155
+ #: src/utils/RecommendationError.tsx:24
156
+ msgid "Hedia Calculator does not support activities that finished more than 4 hours ago."
157
+ msgstr "Hedia Calculator non supporta attività che siano terminate più di 4 ore fa."
158
+
159
+ #: src/utils/RecommendationError.tsx:32
160
+ msgid "Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present."
161
+ msgstr "Hedia Calculator non supporta le prescrizioni di insulina con più di 300 grammi di carboidrati presenti."
162
+
163
+ #: src/utils/AttentionMessages.tsx:105
164
+ msgid "Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation."
165
+ msgstr "Hedia non supporta più di {SAFETY_INSULIN_LIMIT} unità di insulina per ogni calcolo."
166
+
167
+ #: src/utils/AttentionMessages.tsx:103
168
+ msgid "Hedia doesn't support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {0}% to {1} units for this calculation."
169
+ msgstr "Hedia non supporta più di {SAFETY_INSULIN_LIMIT} unità di insulina per ogni calcolo, ma, a seguito dell'attività fisica che hai inserito, è stata ulteriormente ridotta del {0}% a {1} unità per questo calcolo."
170
+
171
+ #: src/components/mood/Emotion.tsx:45
172
+ msgid "How are you feeling?"
173
+ msgstr "Come ti senti?"
174
+
175
+ #: src/components/Header.tsx:26
176
+ msgid "INSULIN{0}RECOMMENDATION"
177
+ msgstr "PRESCRIZIONE DI{0}INSULINA"
178
+
179
+ #: src/utils/AttentionMessages.tsx:84
180
+ msgid "If it is possible, postpone your planned exercise."
181
+ msgstr "Se possibile, posticipa l'allenamento pianificato."
182
+
183
+ #: src/components/RecommendationModal.tsx:76
184
+ msgid "Instead of taking insulin"
185
+ msgstr "Invece di assumere insulina"
186
+
187
+ #: src/utils/Translations.ts:11
188
+ msgid "Light"
189
+ msgstr "Leggera"
190
+
191
+ #: src/utils/Translations.ts:12
192
+ msgid "Moderate"
193
+ msgstr "Moderata"
194
+
195
+ #: src/utils/AttentionMessages.tsx:107
196
+ msgid "More than 15 minutes has passed since this calculation was started."
197
+ msgstr "Sono passati più di 15 minuti dall'inizio di questo calcolo."
198
+
199
+ #: src/components/RecommendationModal.tsx:51
200
+ msgid "NO"
201
+ msgstr "NO"
202
+
203
+ #: src/components/RecentInsulin.tsx:33
204
+ msgid "No"
205
+ msgstr "No"
206
+
207
+ #: src/RecommendationScreen.tsx:474
208
+ msgid "No, return to dashboard"
209
+ msgstr "No, torna al pannello di controllo"
210
+
211
+ #: src/components/Remeasure.tsx:69
212
+ msgid "OFF"
213
+ msgstr "SPENTO"
214
+
215
+ #: src/components/LimitationMessage.tsx:25
216
+ #: src/components/RecommendationModal.tsx:48
217
+ #: src/components/RecommendationModal.tsx:103
218
+ #: src/components/RecommendedCarbs.tsx:65
219
+ #: src/components/RecommendedInsulin.tsx:76
220
+ msgid "OK"
221
+ msgstr "OK"
222
+
223
+ #: src/utils/AttentionMessages.tsx:112
224
+ msgid "Please go through the calculation steps with new measurements to ensure a safe recommendation."
225
+ msgstr "Completa tutte le fasi del calcolo con nuove misurazioni per assicurare una prescrizione sicura."
226
+
227
+ #: src/utils/AttentionMessages.tsx:117
228
+ msgid "Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?"
229
+ msgstr "La prescrizione del {day} alle {time} non è stata trasferita nel tuo diario.{0} Hai usato la prescrizione?"
230
+
231
+ #: src/components/RecommendedCarbs.tsx:96
232
+ msgid "Recommended"
233
+ msgstr "Prescritta"
234
+
235
+ #: src/components/RecentInsulin.tsx:20
236
+ #: src/components/RecommendedInsulin.tsx:96
237
+ msgid "Recommended amount of insulin"
238
+ msgstr "Quantità prescritta di insulina"
239
+
240
+ #: src/components/Remeasure.tsx:65
241
+ msgid "Remind me to remeasure in"
242
+ msgstr "Ricordami di misurare nuovamente tra"
243
+
244
+ #: src/RecommendationScreen.tsx:474
245
+ msgid "Return to dashboard"
246
+ msgstr "Torna al pannello di controllo"
247
+
248
+ #: src/RecommendationScreen.tsx:470
249
+ msgid "Save data before closing?"
250
+ msgstr "Salvare i dati prima della chiusura?"
251
+
252
+ #: src/RecommendationScreen.tsx:470
253
+ msgid "Save to logbook"
254
+ msgstr "Salva nel diario"
255
+
256
+ #: src/RecommendationScreen.tsx:474
257
+ msgid "Start new calculation"
258
+ msgstr "Inizia il nuovo calcolo"
259
+
260
+ #: src/components/RecommendedCarbs.tsx:123
261
+ msgid "Total"
262
+ msgstr "Totale"
263
+
264
+ #: src/components/TransferToLogbook.tsx:44
265
+ msgid "Transfer to logbook"
266
+ msgstr "Trasferisci al diario"
267
+
268
+ #: src/components/TransferToLogbook.tsx:47
269
+ msgid "Transferred to logbook"
270
+ msgstr "Trasferito al diario"
271
+
272
+ #: src/components/RecommendedInsulin.tsx:104
273
+ msgid "Units"
274
+ msgstr "Unità"
275
+
276
+ #: src/components/activity/ActivityIcon.tsx:40
277
+ msgid "Untitled Activity"
278
+ msgstr "Attività senza titolo"
279
+
280
+ #: src/components/RecommendationModal.tsx:66
281
+ msgid "We recommend eating an additional:"
282
+ msgstr "Consigliamo di ingerire una quantità supplementare:"
283
+
284
+ #: src/components/RecommendationModal.tsx:81
285
+ msgid "Would you like to add this to your current calculation?"
286
+ msgstr "Vuoi aggiungere questo al tuo calcolo corrente?"
287
+
288
+ #: src/components/RecentInsulin.tsx:30
289
+ msgid "Yes"
290
+ msgstr "Sì"
291
+
292
+ #: src/RecommendationScreen.tsx:474
293
+ msgid "Yes, save to logbook"
294
+ msgstr "Sì, salva nel diario"
295
+
296
+ #: src/utils/AttentionMessages.tsx:88
297
+ msgid "You have a high blood glucose level."
298
+ msgstr "Hai un alto indice glicemico."
299
+
300
+ #: src/utils/AttentionMessages.tsx:90
301
+ msgid "You should take rapid-acting insulin and measure ketones."
302
+ msgstr "Devi assumere insulina ad azione rapida e misurare i chetoni."
303
+
304
+ #: src/utils/AttentionMessages.tsx:82
305
+ msgid "You will be reminded to measure your blood glucose level in 15 min."
306
+ msgstr "Ti verrà ricordato di misurare il indice glicemico tra 15 min."
307
+
308
+ #: src/utils/AttentionMessages.tsx:80
309
+ msgid "Your blood glucose level is very low."
310
+ msgstr "Il indice glicemico è molto basso."
311
+
312
+ #: src/utils/AttentionMessages.tsx:78
313
+ msgid "Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention."
314
+ msgstr "Il indice glicemico è molto basso. Assumi glucagon o ingerisci carboidrati, se possibile. Rivolgiti a un medico."
315
+
316
+ #: src/utils/AttentionMessages.tsx:95
317
+ msgid "Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {2}% to {3}."
318
+ msgstr "La tua prescrizione sarebbe stata superiore a {0} unità di insulina, ma è stata limitata per motivi di sicurezza.{1} Hedia non prescrive mai più di {SAFETY_INSULIN_LIMIT} unità di insulina per calcolo, ma a seguito dell'attività fisica che hai inserito, questa è stata ulteriormente ridotta del {2}% a {3}."
319
+
320
+ #: src/utils/AttentionMessages.tsx:92
321
+ msgid "Your recommendation would have been higher than {SAFETY_INSULIN_LIMIT} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation."
322
+ msgstr "La tua prescrizione sarebbe stata superiore a {SAFETY_INSULIN_LIMIT} unità di insulina, ma è stata limitata per motivi di sicurezza. Hedia non prescrive mai più di {SAFETY_INSULIN_LIMIT} unità di insulina per calcolo."
323
+
324
+ #: src/RecommendationScreen.tsx:470
325
+ msgid "Your saved data will be used for future calculations."
326
+ msgstr "I dati salvati saranno utilizzati per calcoli futuri."
327
+
328
+ #: src/components/RecommendedCarbs.tsx:115
329
+ #: src/components/RecommendedCarbs.tsx:125
330
+ #: src/components/RecommendedCarbs.tsx:170
331
+ msgid "grams"
332
+ msgstr "grammi"
333
+
334
+ #: src/components/RecommendationModal.tsx:72
335
+ msgid "grams of carbohydrates"
336
+ msgstr "grammi di carboidrati"
337
+
338
+ #: src/components/Remeasure.tsx:72
339
+ msgid "hours"
340
+ msgstr "ore"
341
+
342
+ #: src/components/activity/Activity.tsx:39
343
+ msgid "min"
344
+ msgstr "min"
345
+
346
+ #: src/RecommendationScreen.tsx:448
347
+ #: src/components/InfoBars.tsx:41
348
+ msgid "units"
349
+ msgstr "unità"
@@ -9,6 +9,13 @@ export declare namespace Testing {
9
9
  ActivityDuration = "activity-duration-minutes",
10
10
  ActivityReduction = "activity-reduction-percentage"
11
11
  }
12
+ enum HeaderTestIds {
13
+ ExitCalculation = "exit-calculation-button",
14
+ HeaderText = "header-text"
15
+ }
16
+ enum LimitationMessageTestIds {
17
+ OkButton = "limitation-message-ok-button"
18
+ }
12
19
  enum RecentInsulinTestIds {
13
20
  No = "recent-insulin-no",
14
21
  Yes = "recent-insulin-yes"
@@ -31,7 +38,6 @@ export declare namespace Testing {
31
38
  DeclineCarbs = "recommendation-modal-decline-carbs",
32
39
  AcceptCarbs = "recommendation-modal-accept-carbs",
33
40
  OkButton = "recommendation-modal-ok-button",
34
- LimitationOkButton = "limitation-message-ok-button",
35
41
  SuggestedCarbs = "recommendation-modal-suggested-carbs"
36
42
  }
37
43
  enum RemeasureTestIds {
@@ -41,12 +47,7 @@ export declare namespace Testing {
41
47
  enum TransferToLogbookTestIds {
42
48
  TransferButton = "transfer-to-logbook-button"
43
49
  }
44
- enum ExitModalTestIds {
45
- ExitButton = "exit-two-option-modal",
46
- FirstOption = "first-option-button",
47
- SecondOption = "second-option-button"
48
- }
49
- enum TimeOutModalTestIds {
50
+ enum TwoOptionModalTestIds {
50
51
  ExitButton = "exit-two-option-modal",
51
52
  FirstOption = "first-option-button",
52
53
  SecondOption = "second-option-button"
@@ -56,23 +57,26 @@ export declare namespace Testing {
56
57
  enum Value {
57
58
  BloodKetone = "blood-ketone-value",
58
59
  BloodGlucose = "blood-glucose-value",
59
- ActiveInsulin = "active-insulin-value"
60
+ ActiveInsulin = "active-insulin-value",
61
+ ForecastedGlucose = "forecasted-glucose-value"
60
62
  }
61
63
  enum Label {
62
64
  BloodKetone = "blood-ketone-label",
63
65
  BloodGlucose = "blood-glucose-label",
64
- ActiveInsulin = "active-insulin-label"
66
+ ActiveInsulin = "active-insulin-label",
67
+ ForecastedGlucose = "forecasted-glucose-label"
65
68
  }
66
69
  enum Unit {
67
70
  BloodKetone = "blood-ketone-unit",
68
71
  BloodGlucose = "blood-glucose-unit",
69
- ActiveInsulin = "active-insulin-unit"
72
+ ActiveInsulin = "active-insulin-unit",
73
+ ForecastedGlucose = "forecasted-glucose-unit"
70
74
  }
71
75
  }
72
76
  }
73
77
  /** Namespace containing all the TestIdEnum keys */
74
78
  namespace Types {
75
- type TestIdEnum = Id.ActivityTestIds | Id.RecentInsulinTestIds | Id.RecommendedCarbsTestIds | Id.RecommendedInsulinTestIds | Id.RecommendationModalTestIds | Id.RemeasureTestIds | Id.TransferToLogbookTestIds | Id.ExitModalTestIds | Id.TimeOutModalTestIds | Id.InfoBarTestIds.Unit | Id.InfoBarTestIds.Value | Id.InfoBarTestIds.Label;
79
+ type TestIdEnum = Id.ActivityTestIds | Id.HeaderTestIds | Id.LimitationMessageTestIds | Id.RecentInsulinTestIds | Id.RecommendedCarbsTestIds | Id.RecommendedInsulinTestIds | Id.RecommendationModalTestIds | Id.RemeasureTestIds | Id.TransferToLogbookTestIds | Id.TwoOptionModalTestIds | Id.InfoBarTestIds.Unit | Id.InfoBarTestIds.Value | Id.InfoBarTestIds.Label;
76
80
  }
77
81
  }
78
82
  /**
@@ -123,14 +127,3 @@ export declare enum RecommendationReminders {
123
127
  Reminder60Minutes = 1,
124
128
  HediaReminderDefault = 1.5
125
129
  }
126
- export declare enum ExitModalActions {
127
- CloseCalculation = "CloseCalculation",
128
- Transfer = "Transfer",
129
- Hide = "Hide"
130
- }
131
- export declare enum TimeoutModalActions {
132
- CloseCalculation = "CloseCalculation",
133
- RestartCalculation = "RestartCalculation",
134
- Transfer = "Transfer"
135
- }
136
- //# sourceMappingURL=enum.d.ts.map
@@ -0,0 +1,145 @@
1
+ /** Namespace containing data required by component testing */
2
+ export var Testing;
3
+ (function (Testing) {
4
+ /** Namespace containing data about the testing ids for certain components in order to test their expected behaviour */
5
+ let Id;
6
+ (function (Id) {
7
+ let RecommendationScreenTestIds;
8
+ (function (RecommendationScreenTestIds) {
9
+ RecommendationScreenTestIds["RecommendationScrollView"] = "recommendation-screen-scroll-view";
10
+ })(RecommendationScreenTestIds = Id.RecommendationScreenTestIds || (Id.RecommendationScreenTestIds = {}));
11
+ let ActivityTestIds;
12
+ (function (ActivityTestIds) {
13
+ ActivityTestIds["ActivityDuration"] = "activity-duration-minutes";
14
+ ActivityTestIds["ActivityReduction"] = "activity-reduction-percentage";
15
+ })(ActivityTestIds = Id.ActivityTestIds || (Id.ActivityTestIds = {}));
16
+ let HeaderTestIds;
17
+ (function (HeaderTestIds) {
18
+ HeaderTestIds["ExitCalculation"] = "exit-calculation-button";
19
+ HeaderTestIds["HeaderText"] = "header-text";
20
+ })(HeaderTestIds = Id.HeaderTestIds || (Id.HeaderTestIds = {}));
21
+ let LimitationMessageTestIds;
22
+ (function (LimitationMessageTestIds) {
23
+ LimitationMessageTestIds["OkButton"] = "limitation-message-ok-button";
24
+ })(LimitationMessageTestIds = Id.LimitationMessageTestIds || (Id.LimitationMessageTestIds = {}));
25
+ let RecentInsulinTestIds;
26
+ (function (RecentInsulinTestIds) {
27
+ RecentInsulinTestIds["No"] = "recent-insulin-no";
28
+ RecentInsulinTestIds["Yes"] = "recent-insulin-yes";
29
+ })(RecentInsulinTestIds = Id.RecentInsulinTestIds || (Id.RecentInsulinTestIds = {}));
30
+ let RecommendedCarbsTestIds;
31
+ (function (RecommendedCarbsTestIds) {
32
+ RecommendedCarbsTestIds["RecommendedCarbs"] = "recommended-carbs";
33
+ RecommendedCarbsTestIds["EditRecommendedCarbs"] = "edit-recommended-carbs";
34
+ RecommendedCarbsTestIds["InvisibleCarbInput"] = "invisible-recommended-carbs-input";
35
+ RecommendedCarbsTestIds["EnteredCarbs"] = "entered-carbs";
36
+ RecommendedCarbsTestIds["RemoveRecommendation"] = "remove-carb-recommendation";
37
+ RecommendedCarbsTestIds["TotalCarbs"] = "total-carbs";
38
+ })(RecommendedCarbsTestIds = Id.RecommendedCarbsTestIds || (Id.RecommendedCarbsTestIds = {}));
39
+ let RecommendedInsulinTestIds;
40
+ (function (RecommendedInsulinTestIds) {
41
+ RecommendedInsulinTestIds["EditRecommendedInsulinIcon"] = "edit-recommended-insulin-icon";
42
+ RecommendedInsulinTestIds["EditRecommendedInsulin"] = "edit-recommended-insulin";
43
+ RecommendedInsulinTestIds["InvisibleInsulinInput"] = "invisible-recommended-insulin-input";
44
+ RecommendedInsulinTestIds["ShownInsulinText"] = "shown-insulin-text";
45
+ })(RecommendedInsulinTestIds = Id.RecommendedInsulinTestIds || (Id.RecommendedInsulinTestIds = {}));
46
+ let RecommendationModalTestIds;
47
+ (function (RecommendationModalTestIds) {
48
+ RecommendationModalTestIds["DeclineCarbs"] = "recommendation-modal-decline-carbs";
49
+ RecommendationModalTestIds["AcceptCarbs"] = "recommendation-modal-accept-carbs";
50
+ RecommendationModalTestIds["OkButton"] = "recommendation-modal-ok-button";
51
+ RecommendationModalTestIds["SuggestedCarbs"] = "recommendation-modal-suggested-carbs";
52
+ })(RecommendationModalTestIds = Id.RecommendationModalTestIds || (Id.RecommendationModalTestIds = {}));
53
+ let RemeasureTestIds;
54
+ (function (RemeasureTestIds) {
55
+ RemeasureTestIds["RemeasureSlider"] = "remeasure-slider";
56
+ RemeasureTestIds["RemeasureHours"] = "remeasure-hours";
57
+ })(RemeasureTestIds = Id.RemeasureTestIds || (Id.RemeasureTestIds = {}));
58
+ let TransferToLogbookTestIds;
59
+ (function (TransferToLogbookTestIds) {
60
+ TransferToLogbookTestIds["TransferButton"] = "transfer-to-logbook-button";
61
+ })(TransferToLogbookTestIds = Id.TransferToLogbookTestIds || (Id.TransferToLogbookTestIds = {}));
62
+ let TwoOptionModalTestIds;
63
+ (function (TwoOptionModalTestIds) {
64
+ TwoOptionModalTestIds["ExitButton"] = "exit-two-option-modal";
65
+ TwoOptionModalTestIds["FirstOption"] = "first-option-button";
66
+ TwoOptionModalTestIds["SecondOption"] = "second-option-button";
67
+ })(TwoOptionModalTestIds = Id.TwoOptionModalTestIds || (Id.TwoOptionModalTestIds = {}));
68
+ /** Namespace containing ids for the InfoBars component value, lavel and unit fields */
69
+ let InfoBarTestIds;
70
+ (function (InfoBarTestIds) {
71
+ let Value;
72
+ (function (Value) {
73
+ Value["BloodKetone"] = "blood-ketone-value";
74
+ Value["BloodGlucose"] = "blood-glucose-value";
75
+ Value["ActiveInsulin"] = "active-insulin-value";
76
+ Value["ForecastedGlucose"] = "forecasted-glucose-value";
77
+ })(Value = InfoBarTestIds.Value || (InfoBarTestIds.Value = {}));
78
+ let Label;
79
+ (function (Label) {
80
+ Label["BloodKetone"] = "blood-ketone-label";
81
+ Label["BloodGlucose"] = "blood-glucose-label";
82
+ Label["ActiveInsulin"] = "active-insulin-label";
83
+ Label["ForecastedGlucose"] = "forecasted-glucose-label";
84
+ })(Label = InfoBarTestIds.Label || (InfoBarTestIds.Label = {}));
85
+ let Unit;
86
+ (function (Unit) {
87
+ Unit["BloodKetone"] = "blood-ketone-unit";
88
+ Unit["BloodGlucose"] = "blood-glucose-unit";
89
+ Unit["ActiveInsulin"] = "active-insulin-unit";
90
+ Unit["ForecastedGlucose"] = "forecasted-glucose-unit";
91
+ })(Unit = InfoBarTestIds.Unit || (InfoBarTestIds.Unit = {}));
92
+ })(InfoBarTestIds = Id.InfoBarTestIds || (Id.InfoBarTestIds = {}));
93
+ })(Id = Testing.Id || (Testing.Id = {}));
94
+ })(Testing || (Testing = {}));
95
+ /**
96
+ * Indicator of which error has happened.
97
+ * See the corresponding RecommendationError {@link RecommendationError} for details.
98
+ */
99
+ export var RecommendationErrorEnum;
100
+ (function (RecommendationErrorEnum) {
101
+ RecommendationErrorEnum[RecommendationErrorEnum["ActivityDuration"] = 0] = "ActivityDuration";
102
+ RecommendationErrorEnum[RecommendationErrorEnum["ActivityTargetBGL"] = 1] = "ActivityTargetBGL";
103
+ RecommendationErrorEnum[RecommendationErrorEnum["ActivitySettings"] = 2] = "ActivitySettings";
104
+ RecommendationErrorEnum[RecommendationErrorEnum["ActivityDate"] = 3] = "ActivityDate";
105
+ RecommendationErrorEnum[RecommendationErrorEnum["ActivityIntensity"] = 4] = "ActivityIntensity";
106
+ RecommendationErrorEnum[RecommendationErrorEnum["ActivityType"] = 5] = "ActivityType";
107
+ RecommendationErrorEnum[RecommendationErrorEnum["BolusInsulinDose"] = 6] = "BolusInsulinDose";
108
+ RecommendationErrorEnum[RecommendationErrorEnum["BolusInsulinSecondsPassed"] = 7] = "BolusInsulinSecondsPassed";
109
+ RecommendationErrorEnum[RecommendationErrorEnum["RecentBolus"] = 8] = "RecentBolus";
110
+ RecommendationErrorEnum[RecommendationErrorEnum["CarbohydrateLimit"] = 9] = "CarbohydrateLimit";
111
+ RecommendationErrorEnum[RecommendationErrorEnum["InsulinSensitivity"] = 10] = "InsulinSensitivity";
112
+ RecommendationErrorEnum[RecommendationErrorEnum["InsulinToCarbsRatio"] = 11] = "InsulinToCarbsRatio";
113
+ RecommendationErrorEnum[RecommendationErrorEnum["LatestLogbook6HoursBGL"] = 12] = "LatestLogbook6HoursBGL";
114
+ RecommendationErrorEnum[RecommendationErrorEnum["CurrentBGL"] = 13] = "CurrentBGL";
115
+ RecommendationErrorEnum[RecommendationErrorEnum["CurrentBKL"] = 14] = "CurrentBKL";
116
+ RecommendationErrorEnum[RecommendationErrorEnum["TargetBGL"] = 15] = "TargetBGL";
117
+ RecommendationErrorEnum[RecommendationErrorEnum["UserReminder"] = 16] = "UserReminder";
118
+ RecommendationErrorEnum[RecommendationErrorEnum["Language"] = 17] = "Language";
119
+ RecommendationErrorEnum[RecommendationErrorEnum["InjectionMethod"] = 18] = "InjectionMethod";
120
+ RecommendationErrorEnum[RecommendationErrorEnum["BloodKetoneUnit"] = 19] = "BloodKetoneUnit";
121
+ RecommendationErrorEnum[RecommendationErrorEnum["BloodGlucoseUnit"] = 20] = "BloodGlucoseUnit";
122
+ RecommendationErrorEnum[RecommendationErrorEnum["BloodKetoneProps"] = 21] = "BloodKetoneProps";
123
+ })(RecommendationErrorEnum || (RecommendationErrorEnum = {}));
124
+ /** Indicates the category of the user’s blood glucose level. */
125
+ export var BgLevel;
126
+ (function (BgLevel) {
127
+ BgLevel[BgLevel["SevereHypoglycemia"] = 0] = "SevereHypoglycemia";
128
+ BgLevel[BgLevel["Hypoglycemia"] = 1] = "Hypoglycemia";
129
+ BgLevel[BgLevel["MildHypoglycemia"] = 2] = "MildHypoglycemia";
130
+ BgLevel[BgLevel["Normoglycemia"] = 3] = "Normoglycemia";
131
+ BgLevel[BgLevel["NormoglycemiaUnder5MMOL"] = 4] = "NormoglycemiaUnder5MMOL";
132
+ BgLevel[BgLevel["MildHyperglycemia"] = 5] = "MildHyperglycemia";
133
+ BgLevel[BgLevel["Hyperglycemia"] = 6] = "Hyperglycemia";
134
+ BgLevel[BgLevel["SevereHyperglycemia"] = 7] = "SevereHyperglycemia";
135
+ BgLevel[BgLevel["UnsupportedBGLevel"] = 8] = "UnsupportedBGLevel";
136
+ BgLevel[BgLevel["BGLevelNotProvided"] = 9] = "BGLevelNotProvided";
137
+ })(BgLevel || (BgLevel = {}));
138
+ /** The possible initial recommendation times with values in hours. */
139
+ export var RecommendationReminders;
140
+ (function (RecommendationReminders) {
141
+ RecommendationReminders[RecommendationReminders["ReminderOff"] = 0] = "ReminderOff";
142
+ RecommendationReminders[RecommendationReminders["Reminder15Minutes"] = 0.25] = "Reminder15Minutes";
143
+ RecommendationReminders[RecommendationReminders["Reminder60Minutes"] = 1] = "Reminder60Minutes";
144
+ RecommendationReminders[RecommendationReminders["HediaReminderDefault"] = 1.5] = "HediaReminderDefault";
145
+ })(RecommendationReminders || (RecommendationReminders = {}));
@@ -15,4 +15,3 @@ export interface IActivityDisplayProps {
15
15
  /** Type of the physical activity */
16
16
  activityType: Activity.Enums.ActivityEnum | null;
17
17
  }
18
- //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -94,4 +94,3 @@ export declare class Messages {
94
94
  /** Inform the user that their recommendation calculation is too old. */
95
95
  static TimeoutRecommendationVisible: (date: Date) => string;
96
96
  }
97
- //# sourceMappingURL=AttentionMessages.d.ts.map