@hedia/recommendation-screen 2.1.75 → 2.2.0-alpha.1
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.
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/{lib/typescript → dist/src}/RecommendationScreen.d.ts +68 -82
- package/dist/src/RecommendationScreen.js +522 -0
- package/dist/src/assets/assets/activity/Cyclist.png +0 -0
- package/dist/src/assets/assets/activity/Other.png +0 -0
- package/dist/src/assets/assets/activity/Runner.png +0 -0
- package/dist/src/assets/assets/activity/Swimmer.png +0 -0
- package/dist/src/assets/assets/activity/Walk.png +0 -0
- package/dist/src/assets/assets/fonts/Poppins-Bold.ttf +0 -0
- package/dist/src/assets/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/dist/src/assets/assets/icons/Edit.tsx +22 -0
- package/dist/src/assets/assets/icons/X.tsx +14 -0
- package/dist/src/assets/assets/mood/happy.png +0 -0
- package/dist/src/assets/assets/mood/happy_active.png +0 -0
- package/dist/src/assets/assets/mood/neutral.png +0 -0
- package/dist/src/assets/assets/mood/neutral_active.png +0 -0
- package/dist/src/assets/assets/mood/sad.png +0 -0
- package/dist/src/assets/assets/mood/sad_active.png +0 -0
- package/dist/src/assets/assets/mood/semi_happy.png +0 -0
- package/dist/src/assets/assets/mood/semi_happy_active.png +0 -0
- package/dist/src/assets/assets/mood/semi_sad.png +0 -0
- package/dist/src/assets/assets/mood/semi_sad_active.png +0 -0
- package/dist/src/assets/icons/Edit.d.ts +4 -0
- package/dist/src/assets/icons/Edit.js +7 -0
- package/dist/src/assets/icons/X.d.ts +4 -0
- package/dist/src/assets/icons/X.js +6 -0
- package/dist/src/components/ForecastInfoBar.d.ts +109 -0
- package/dist/src/components/ForecastInfoBar.js +138 -0
- package/dist/src/components/Header.d.ts +8 -0
- package/dist/src/components/Header.js +54 -0
- package/dist/src/components/Icon.d.ts +20 -0
- package/dist/src/components/Icon.js +43 -0
- package/{lib/typescript → dist/src}/components/InfoBars.d.ts +28 -14
- package/dist/src/components/InfoBars.js +128 -0
- package/{lib/typescript → dist/src}/components/InvisibleNumberInput.d.ts +3 -9
- package/dist/src/components/InvisibleNumberInput.js +121 -0
- package/dist/src/components/LimitationMessage.d.ts +14 -0
- package/dist/src/components/LimitationMessage.js +30 -0
- package/{lib/typescript → dist/src}/components/LineSeparator.d.ts +1 -6
- package/dist/src/components/LineSeparator.js +18 -0
- package/{lib/typescript → dist/src}/components/RecentInsulin.d.ts +1 -3
- package/dist/src/components/RecentInsulin.js +73 -0
- package/{lib/typescript → dist/src}/components/RecommendationModal.d.ts +63 -63
- package/dist/src/components/RecommendationModal.js +226 -0
- package/{lib/typescript → dist/src}/components/RecommendedCarbs.d.ts +0 -3
- package/dist/src/components/RecommendedCarbs.js +251 -0
- package/{lib/typescript → dist/src}/components/RecommendedInsulin.d.ts +1 -2
- package/dist/src/components/RecommendedInsulin.js +180 -0
- package/{lib/typescript → dist/src}/components/Remeasure.d.ts +15 -6
- package/dist/src/components/Remeasure.js +130 -0
- package/{lib/typescript/components/TransferToLogbook.d.ts → dist/src/components/SaveButton.d.ts} +2 -3
- package/dist/src/components/SaveButton.js +71 -0
- package/dist/src/components/TwoOptionModal.d.ts +136 -0
- package/dist/src/components/TwoOptionModal.js +141 -0
- package/{lib/typescript → dist/src}/components/activity/Activity.d.ts +2 -3
- package/dist/src/components/activity/Activity.js +84 -0
- package/{lib/typescript → dist/src}/components/activity/ActivityIcon.d.ts +7 -8
- package/dist/src/components/activity/ActivityIcon.js +58 -0
- package/{lib/typescript → dist/src}/components/activity/ActivityIntensity.d.ts +1 -2
- package/dist/src/components/activity/ActivityIntensity.js +58 -0
- package/{lib/typescript → dist/src}/components/mood/Emotion.d.ts +1 -2
- package/dist/src/components/mood/Emotion.js +64 -0
- package/{lib/typescript → dist/src}/components/mood/MoodIcon.d.ts +5 -5
- package/dist/src/components/mood/MoodIcon.js +63 -0
- package/dist/src/components/text/TextBold.d.ts +8 -0
- package/dist/src/components/text/TextBold.js +12 -0
- package/dist/src/components/text/TextRegular.d.ts +8 -0
- package/dist/src/components/text/TextRegular.js +12 -0
- package/dist/src/locale/da/messages.js +1 -0
- package/dist/src/locale/da/messages.po +353 -0
- package/dist/src/locale/de/messages.js +1 -0
- package/dist/src/locale/de/messages.po +353 -0
- package/dist/src/locale/en/messages.js +1 -0
- package/dist/src/locale/en/messages.po +353 -0
- package/dist/src/locale/es/messages.js +1 -0
- package/dist/src/locale/es/messages.po +353 -0
- package/dist/src/locale/fr/messages.js +1 -0
- package/dist/src/locale/fr/messages.po +353 -0
- package/dist/src/locale/i18nUtils.d.ts +18 -0
- package/dist/src/locale/i18nUtils.js +39 -0
- package/dist/src/locale/it/messages.js +1 -0
- package/dist/src/locale/it/messages.po +353 -0
- package/{lib/typescript → dist/src}/types/enum.d.ts +15 -22
- package/dist/src/types/enum.js +145 -0
- package/{lib/typescript → dist/src}/types/types.d.ts +0 -1
- package/dist/src/types/types.js +1 -0
- package/{lib/typescript → dist/src}/utils/AttentionMessages.d.ts +0 -1
- package/dist/src/utils/AttentionMessages.js +118 -0
- package/{lib/typescript → dist/src}/utils/Constants.d.ts +3 -18
- package/{lib/module → dist/src}/utils/Constants.js +21 -79
- package/{lib/typescript → dist/src}/utils/RecommendationError.d.ts +0 -1
- package/dist/src/utils/RecommendationError.js +63 -0
- package/{lib/typescript → dist/src}/utils/RecommendationUtils.d.ts +0 -1
- package/{lib/module → dist/src}/utils/RecommendationUtils.js +88 -90
- package/{lib/typescript → dist/src}/utils/Translations.d.ts +0 -1
- package/{lib/module → dist/src}/utils/Translations.js +5 -7
- package/{lib/typescript → dist/src}/utils/Utils.d.ts +1 -2
- package/dist/src/utils/Utils.js +141 -0
- package/{lib/typescript → dist/src}/utils/Validations.d.ts +1 -2
- package/{lib/module → dist/src}/utils/Validations.js +128 -156
- package/package.json +96 -109
- package/lib/commonjs/RecommendationScreen.js +0 -778
- package/lib/commonjs/RecommendationScreen.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/Close.js +0 -20
- package/lib/commonjs/assets/IconsSVG/Close.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/CloseOutlined.js +0 -28
- package/lib/commonjs/assets/IconsSVG/CloseOutlined.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/Edit.js +0 -23
- package/lib/commonjs/assets/IconsSVG/Edit.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/activity/Cycling.js +0 -43
- package/lib/commonjs/assets/IconsSVG/activity/Cycling.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/activity/Running.js +0 -33
- package/lib/commonjs/assets/IconsSVG/activity/Running.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/activity/Stretching.js +0 -33
- package/lib/commonjs/assets/IconsSVG/activity/Stretching.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/activity/Swimming.js +0 -48
- package/lib/commonjs/assets/IconsSVG/activity/Swimming.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/activity/Walking.js +0 -38
- package/lib/commonjs/assets/IconsSVG/activity/Walking.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/mood/Happy.js +0 -34
- package/lib/commonjs/assets/IconsSVG/mood/Happy.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/mood/Neutral.js +0 -34
- package/lib/commonjs/assets/IconsSVG/mood/Neutral.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/mood/Sad.js +0 -34
- package/lib/commonjs/assets/IconsSVG/mood/Sad.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/mood/SemiHappy.js +0 -34
- package/lib/commonjs/assets/IconsSVG/mood/SemiHappy.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/mood/SemiSad.js +0 -34
- package/lib/commonjs/assets/IconsSVG/mood/SemiSad.js.map +0 -1
- package/lib/commonjs/components/ExitModal.js +0 -124
- package/lib/commonjs/components/ExitModal.js.map +0 -1
- package/lib/commonjs/components/InfoBars.js +0 -123
- package/lib/commonjs/components/InfoBars.js.map +0 -1
- package/lib/commonjs/components/InvisibleNumberInput.js +0 -150
- package/lib/commonjs/components/InvisibleNumberInput.js.map +0 -1
- package/lib/commonjs/components/LineSeparator.js +0 -27
- package/lib/commonjs/components/LineSeparator.js.map +0 -1
- package/lib/commonjs/components/RecentInsulin.js +0 -105
- package/lib/commonjs/components/RecentInsulin.js.map +0 -1
- package/lib/commonjs/components/RecommendationModal.js +0 -302
- package/lib/commonjs/components/RecommendationModal.js.map +0 -1
- package/lib/commonjs/components/RecommendedCarbs.js +0 -289
- package/lib/commonjs/components/RecommendedCarbs.js.map +0 -1
- package/lib/commonjs/components/RecommendedInsulin.js +0 -209
- package/lib/commonjs/components/RecommendedInsulin.js.map +0 -1
- package/lib/commonjs/components/Remeasure.js +0 -131
- package/lib/commonjs/components/Remeasure.js.map +0 -1
- package/lib/commonjs/components/Text.js +0 -25
- package/lib/commonjs/components/Text.js.map +0 -1
- package/lib/commonjs/components/TimeoutModal.js +0 -113
- package/lib/commonjs/components/TimeoutModal.js.map +0 -1
- package/lib/commonjs/components/TransferToLogbook.js +0 -83
- package/lib/commonjs/components/TransferToLogbook.js.map +0 -1
- package/lib/commonjs/components/activity/Activity.js +0 -112
- package/lib/commonjs/components/activity/Activity.js.map +0 -1
- package/lib/commonjs/components/activity/ActivityIcon.js +0 -86
- package/lib/commonjs/components/activity/ActivityIcon.js.map +0 -1
- package/lib/commonjs/components/activity/ActivityIntensity.js +0 -65
- package/lib/commonjs/components/activity/ActivityIntensity.js.map +0 -1
- package/lib/commonjs/components/mood/Emotion.js +0 -86
- package/lib/commonjs/components/mood/Emotion.js.map +0 -1
- package/lib/commonjs/components/mood/MoodIcon.js +0 -107
- package/lib/commonjs/components/mood/MoodIcon.js.map +0 -1
- package/lib/commonjs/components/styles/fonts.js +0 -160
- package/lib/commonjs/components/styles/fonts.js.map +0 -1
- package/lib/commonjs/index.js +0 -21
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/locales/da/translations.json +0 -82
- package/lib/commonjs/locales/de/translations.json +0 -81
- package/lib/commonjs/locales/en/translations.json +0 -84
- package/lib/commonjs/locales/es/translations.json +0 -81
- package/lib/commonjs/locales/fr/translations.json +0 -81
- package/lib/commonjs/locales/it/translations.json +0 -81
- package/lib/commonjs/locales/translate.js +0 -63
- package/lib/commonjs/locales/translate.js.map +0 -1
- package/lib/commonjs/types/enum.js +0 -179
- package/lib/commonjs/types/enum.js.map +0 -1
- package/lib/commonjs/types/types.js +0 -6
- package/lib/commonjs/types/types.js.map +0 -1
- package/lib/commonjs/utils/AttentionMessages.js +0 -141
- package/lib/commonjs/utils/AttentionMessages.js.map +0 -1
- package/lib/commonjs/utils/Constants.js +0 -138
- package/lib/commonjs/utils/Constants.js.map +0 -1
- package/lib/commonjs/utils/RecommendationError.js +0 -116
- package/lib/commonjs/utils/RecommendationError.js.map +0 -1
- package/lib/commonjs/utils/RecommendationUtils.js +0 -212
- package/lib/commonjs/utils/RecommendationUtils.js.map +0 -1
- package/lib/commonjs/utils/Translations.js +0 -22
- package/lib/commonjs/utils/Translations.js.map +0 -1
- package/lib/commonjs/utils/Utils.js +0 -162
- package/lib/commonjs/utils/Utils.js.map +0 -1
- package/lib/commonjs/utils/Validations.js +0 -468
- package/lib/commonjs/utils/Validations.js.map +0 -1
- package/lib/module/RecommendationScreen.js +0 -768
- package/lib/module/RecommendationScreen.js.map +0 -1
- package/lib/module/assets/IconsSVG/Close.js +0 -11
- package/lib/module/assets/IconsSVG/Close.js.map +0 -1
- package/lib/module/assets/IconsSVG/CloseOutlined.js +0 -19
- package/lib/module/assets/IconsSVG/CloseOutlined.js.map +0 -1
- package/lib/module/assets/IconsSVG/Edit.js +0 -14
- package/lib/module/assets/IconsSVG/Edit.js.map +0 -1
- package/lib/module/assets/IconsSVG/activity/Cycling.js +0 -34
- package/lib/module/assets/IconsSVG/activity/Cycling.js.map +0 -1
- package/lib/module/assets/IconsSVG/activity/Running.js +0 -24
- package/lib/module/assets/IconsSVG/activity/Running.js.map +0 -1
- package/lib/module/assets/IconsSVG/activity/Stretching.js +0 -24
- package/lib/module/assets/IconsSVG/activity/Stretching.js.map +0 -1
- package/lib/module/assets/IconsSVG/activity/Swimming.js +0 -39
- package/lib/module/assets/IconsSVG/activity/Swimming.js.map +0 -1
- package/lib/module/assets/IconsSVG/activity/Walking.js +0 -29
- package/lib/module/assets/IconsSVG/activity/Walking.js.map +0 -1
- package/lib/module/assets/IconsSVG/mood/Happy.js +0 -25
- package/lib/module/assets/IconsSVG/mood/Happy.js.map +0 -1
- package/lib/module/assets/IconsSVG/mood/Neutral.js +0 -25
- package/lib/module/assets/IconsSVG/mood/Neutral.js.map +0 -1
- package/lib/module/assets/IconsSVG/mood/Sad.js +0 -25
- package/lib/module/assets/IconsSVG/mood/Sad.js.map +0 -1
- package/lib/module/assets/IconsSVG/mood/SemiHappy.js +0 -25
- package/lib/module/assets/IconsSVG/mood/SemiHappy.js.map +0 -1
- package/lib/module/assets/IconsSVG/mood/SemiSad.js +0 -25
- package/lib/module/assets/IconsSVG/mood/SemiSad.js.map +0 -1
- package/lib/module/components/ExitModal.js +0 -114
- package/lib/module/components/ExitModal.js.map +0 -1
- package/lib/module/components/InfoBars.js +0 -114
- package/lib/module/components/InfoBars.js.map +0 -1
- package/lib/module/components/InvisibleNumberInput.js +0 -142
- package/lib/module/components/InvisibleNumberInput.js.map +0 -1
- package/lib/module/components/LineSeparator.js +0 -19
- package/lib/module/components/LineSeparator.js.map +0 -1
- package/lib/module/components/RecentInsulin.js +0 -97
- package/lib/module/components/RecentInsulin.js.map +0 -1
- package/lib/module/components/RecommendationModal.js +0 -291
- package/lib/module/components/RecommendationModal.js.map +0 -1
- package/lib/module/components/RecommendedCarbs.js +0 -281
- package/lib/module/components/RecommendedCarbs.js.map +0 -1
- package/lib/module/components/RecommendedInsulin.js +0 -201
- package/lib/module/components/RecommendedInsulin.js.map +0 -1
- package/lib/module/components/Remeasure.js +0 -123
- package/lib/module/components/Remeasure.js.map +0 -1
- package/lib/module/components/Text.js +0 -16
- package/lib/module/components/Text.js.map +0 -1
- package/lib/module/components/TimeoutModal.js +0 -103
- package/lib/module/components/TimeoutModal.js.map +0 -1
- package/lib/module/components/TransferToLogbook.js +0 -75
- package/lib/module/components/TransferToLogbook.js.map +0 -1
- package/lib/module/components/activity/Activity.js +0 -104
- package/lib/module/components/activity/Activity.js.map +0 -1
- package/lib/module/components/activity/ActivityIcon.js +0 -78
- package/lib/module/components/activity/ActivityIcon.js.map +0 -1
- package/lib/module/components/activity/ActivityIntensity.js +0 -57
- package/lib/module/components/activity/ActivityIntensity.js.map +0 -1
- package/lib/module/components/mood/Emotion.js +0 -78
- package/lib/module/components/mood/Emotion.js.map +0 -1
- package/lib/module/components/mood/MoodIcon.js +0 -97
- package/lib/module/components/mood/MoodIcon.js.map +0 -1
- package/lib/module/components/styles/fonts.js +0 -152
- package/lib/module/components/styles/fonts.js.map +0 -1
- package/lib/module/index.js +0 -5
- package/lib/module/index.js.map +0 -1
- package/lib/module/locales/da/translations.json +0 -82
- package/lib/module/locales/de/translations.json +0 -81
- package/lib/module/locales/en/translations.json +0 -84
- package/lib/module/locales/es/translations.json +0 -81
- package/lib/module/locales/fr/translations.json +0 -81
- package/lib/module/locales/it/translations.json +0 -81
- package/lib/module/locales/translate.js +0 -55
- package/lib/module/locales/translate.js.map +0 -1
- package/lib/module/types/enum.js +0 -170
- package/lib/module/types/enum.js.map +0 -1
- package/lib/module/types/types.js +0 -2
- package/lib/module/types/types.js.map +0 -1
- package/lib/module/utils/AttentionMessages.js +0 -131
- package/lib/module/utils/AttentionMessages.js.map +0 -1
- package/lib/module/utils/Constants.js.map +0 -1
- package/lib/module/utils/RecommendationError.js +0 -87
- package/lib/module/utils/RecommendationError.js.map +0 -1
- package/lib/module/utils/RecommendationUtils.js.map +0 -1
- package/lib/module/utils/Translations.js.map +0 -1
- package/lib/module/utils/Utils.js +0 -155
- package/lib/module/utils/Utils.js.map +0 -1
- package/lib/module/utils/Validations.js.map +0 -1
- package/lib/typescript/RecommendationScreen.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/Close.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/Close.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/CloseOutlined.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/CloseOutlined.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/Edit.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/Edit.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/activity/Cycling.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/activity/Cycling.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/activity/Running.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/activity/Running.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/activity/Stretching.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/activity/Stretching.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/activity/Swimming.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/activity/Swimming.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/activity/Walking.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/activity/Walking.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/mood/Happy.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/mood/Happy.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/mood/Neutral.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/mood/Neutral.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/mood/Sad.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/mood/Sad.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/mood/SemiHappy.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/mood/SemiHappy.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/mood/SemiSad.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/mood/SemiSad.d.ts.map +0 -1
- package/lib/typescript/components/ExitModal.d.ts +0 -26
- package/lib/typescript/components/ExitModal.d.ts.map +0 -1
- package/lib/typescript/components/InfoBars.d.ts.map +0 -1
- package/lib/typescript/components/InvisibleNumberInput.d.ts.map +0 -1
- package/lib/typescript/components/LineSeparator.d.ts.map +0 -1
- package/lib/typescript/components/RecentInsulin.d.ts.map +0 -1
- package/lib/typescript/components/RecommendationModal.d.ts.map +0 -1
- package/lib/typescript/components/RecommendedCarbs.d.ts.map +0 -1
- package/lib/typescript/components/RecommendedInsulin.d.ts.map +0 -1
- package/lib/typescript/components/Remeasure.d.ts.map +0 -1
- package/lib/typescript/components/Text.d.ts +0 -14
- package/lib/typescript/components/Text.d.ts.map +0 -1
- package/lib/typescript/components/TimeoutModal.d.ts +0 -25
- package/lib/typescript/components/TimeoutModal.d.ts.map +0 -1
- package/lib/typescript/components/TransferToLogbook.d.ts.map +0 -1
- package/lib/typescript/components/activity/Activity.d.ts.map +0 -1
- package/lib/typescript/components/activity/ActivityIcon.d.ts.map +0 -1
- package/lib/typescript/components/activity/ActivityIntensity.d.ts.map +0 -1
- package/lib/typescript/components/mood/Emotion.d.ts.map +0 -1
- package/lib/typescript/components/mood/MoodIcon.d.ts.map +0 -1
- package/lib/typescript/components/styles/fonts.d.ts +0 -151
- package/lib/typescript/components/styles/fonts.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -5
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/locales/translate.d.ts +0 -20
- package/lib/typescript/locales/translate.d.ts.map +0 -1
- package/lib/typescript/types/enum.d.ts.map +0 -1
- package/lib/typescript/types/types.d.ts.map +0 -1
- package/lib/typescript/utils/AttentionMessages.d.ts.map +0 -1
- package/lib/typescript/utils/Constants.d.ts.map +0 -1
- package/lib/typescript/utils/RecommendationError.d.ts.map +0 -1
- package/lib/typescript/utils/RecommendationUtils.d.ts.map +0 -1
- package/lib/typescript/utils/Translations.d.ts.map +0 -1
- package/lib/typescript/utils/Utils.d.ts.map +0 -1
- package/lib/typescript/utils/Validations.d.ts.map +0 -1
- package/src/RecommendationScreen.tsx +0 -854
- package/src/assets/IconsSVG/Close.tsx +0 -13
- package/src/assets/IconsSVG/CloseOutlined.tsx +0 -23
- package/src/assets/IconsSVG/Edit.tsx +0 -16
- package/src/assets/IconsSVG/activity/Cycling.tsx +0 -41
- package/src/assets/IconsSVG/activity/Running.tsx +0 -29
- package/src/assets/IconsSVG/activity/Stretching.tsx +0 -29
- package/src/assets/IconsSVG/activity/Swimming.tsx +0 -47
- package/src/assets/IconsSVG/activity/Walking.tsx +0 -35
- package/src/assets/IconsSVG/mood/Happy.tsx +0 -30
- package/src/assets/IconsSVG/mood/Neutral.tsx +0 -30
- package/src/assets/IconsSVG/mood/Sad.tsx +0 -30
- package/src/assets/IconsSVG/mood/SemiHappy.tsx +0 -30
- package/src/assets/IconsSVG/mood/SemiSad.tsx +0 -30
- package/src/components/ExitModal.tsx +0 -134
- package/src/components/InfoBars.tsx +0 -122
- package/src/components/InvisibleNumberInput.tsx +0 -170
- package/src/components/LineSeparator.tsx +0 -29
- package/src/components/RecentInsulin.tsx +0 -109
- package/src/components/RecommendationModal.tsx +0 -319
- package/src/components/RecommendedCarbs.tsx +0 -303
- package/src/components/RecommendedInsulin.tsx +0 -220
- package/src/components/Remeasure.tsx +0 -135
- package/src/components/Text.tsx +0 -27
- package/src/components/TimeoutModal.tsx +0 -121
- package/src/components/TransferToLogbook.tsx +0 -92
- package/src/components/activity/Activity.tsx +0 -107
- package/src/components/activity/ActivityIcon.tsx +0 -77
- package/src/components/activity/ActivityIntensity.tsx +0 -67
- package/src/components/mood/Emotion.tsx +0 -97
- package/src/components/mood/MoodIcon.tsx +0 -91
- package/src/components/styles/fonts.ts +0 -151
- package/src/index.ts +0 -5
- package/src/locales/da/translations.json +0 -82
- package/src/locales/de/translations.json +0 -81
- package/src/locales/en/translations.json +0 -84
- package/src/locales/es/translations.json +0 -81
- package/src/locales/fr/translations.json +0 -81
- package/src/locales/it/translations.json +0 -81
- package/src/locales/translate.ts +0 -62
- package/src/types/enum.ts +0 -164
- package/src/types/types.ts +0 -19
- package/src/utils/AttentionMessages.ts +0 -167
- package/src/utils/Constants.ts +0 -77
- package/src/utils/RecommendationError.ts +0 -182
- package/src/utils/RecommendationUtils.ts +0 -232
- package/src/utils/Translations.ts +0 -17
- package/src/utils/Utils.ts +0 -156
- package/src/utils/Validations.ts +0 -490
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Activity } from "@hedia/types";
|
|
2
|
+
import { t } from "@lingui/macro";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Dimensions, Image, StyleSheet, View } from "react-native";
|
|
5
|
+
import { i18n } from "../../locale/i18nUtils";
|
|
6
|
+
import TextRegular from "../text/TextRegular";
|
|
7
|
+
const { Other } = Activity.Enums.ActivityEnum;
|
|
8
|
+
/** Mapping from ActivityEnums to corresponding image resource. */
|
|
9
|
+
export const ACTIVITY_ICONS = {
|
|
10
|
+
Run: require(`../../assets/activity/Runner.png`),
|
|
11
|
+
Walk: require(`../../assets/activity/Walk.png`),
|
|
12
|
+
Cycling: require(`../../assets/activity/Cyclist.png`),
|
|
13
|
+
Swim: require(`../../assets/activity/Swimmer.png`),
|
|
14
|
+
Other: require(`../../assets/activity/Other.png`),
|
|
15
|
+
};
|
|
16
|
+
/** Component used to displat the user's physical activity type icon */
|
|
17
|
+
export default class ActivityIcon extends React.Component {
|
|
18
|
+
/**
|
|
19
|
+
* @returns The value from the ACTIVITY_ICONS constant that corresponds to the value of the activityType prop.
|
|
20
|
+
*/
|
|
21
|
+
getActivityIcon = () => {
|
|
22
|
+
return ACTIVITY_ICONS[this.props.activityType ?? Other];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Steps:
|
|
26
|
+
* 1. Unpack activityType and activityTitle from props.
|
|
27
|
+
* 2. Create a testID string by appending ‘_activity’ to the enum label corresponding to the activityType prop.
|
|
28
|
+
* @returns A JSX element including the following:
|
|
29
|
+
* 1. An image component with the generated testID displaying the icon from getActivityIcon().
|
|
30
|
+
* 2. The activityTitle if it is truthy or the string “Untitled Activity” otherwise
|
|
31
|
+
*/
|
|
32
|
+
render() {
|
|
33
|
+
const { activityType, activityTitle } = this.props;
|
|
34
|
+
const testID = `${Activity.Enums.ActivityEnum[activityType ?? Other]}-icon`.toLowerCase();
|
|
35
|
+
return (<View style={activityIconStyles.container}>
|
|
36
|
+
<Image style={activityIconStyles.activityIcon} source={this.getActivityIcon()} testID={testID}/>
|
|
37
|
+
<TextRegular style={activityIconStyles.activityTitle}>
|
|
38
|
+
{activityTitle || i18n._(t `Untitled Activity`)}
|
|
39
|
+
</TextRegular>
|
|
40
|
+
</View>);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const activityIconStyles = StyleSheet.create({
|
|
44
|
+
container: {
|
|
45
|
+
flex: 1,
|
|
46
|
+
flexDirection: `row`,
|
|
47
|
+
alignItems: `center`,
|
|
48
|
+
marginTop: `1%`,
|
|
49
|
+
},
|
|
50
|
+
activityIcon: {
|
|
51
|
+
resizeMode: `contain`,
|
|
52
|
+
height: Dimensions.get(`screen`).width / 16,
|
|
53
|
+
},
|
|
54
|
+
activityTitle: {
|
|
55
|
+
color: `white`,
|
|
56
|
+
fontSize: Dimensions.get(`screen`).width / 25,
|
|
57
|
+
},
|
|
58
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { BolusCalculator } from "@hedia/types";
|
|
2
|
+
import React from "react";
|
|
3
3
|
export interface IProps {
|
|
4
4
|
/** - Indicates the intensity of the activity. */
|
|
5
5
|
activityIntensity: BolusCalculator.Types.IActivityParams["activityIntensity"];
|
|
@@ -14,4 +14,3 @@ export default class ActivityIntensity extends React.Component<IProps> {
|
|
|
14
14
|
*/
|
|
15
15
|
render: () => JSX.Element;
|
|
16
16
|
}
|
|
17
|
-
//# sourceMappingURL=ActivityIntensity.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Activity } from "@hedia/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Dimensions, StyleSheet, View } from "react-native";
|
|
4
|
+
import { ActivityIntensityTranslations } from "../../utils/Translations";
|
|
5
|
+
import { infoStyles } from "../InfoBars";
|
|
6
|
+
import TextBold from "../text/TextBold";
|
|
7
|
+
/** Component used to display the users's physical activity intensity on its corresponding background color */
|
|
8
|
+
export default class ActivityIntensity extends React.Component {
|
|
9
|
+
/**
|
|
10
|
+
* Steps:
|
|
11
|
+
* 1. Set intensity to the activityIntensity prop.
|
|
12
|
+
* 2. Set the style variable to the style that correspond to the intensity.
|
|
13
|
+
* @returns JSX element that displays the intensity of the user’s activity along with the associated color coding
|
|
14
|
+
*/
|
|
15
|
+
render = () => {
|
|
16
|
+
const intensity = this.props.activityIntensity;
|
|
17
|
+
const style = activityIntensityStyles[intensity];
|
|
18
|
+
return (<View style={[infoStyles.margin, activityIntensityStyles.row]}>
|
|
19
|
+
<View style={activityIntensityStyles.intensityContainer}>
|
|
20
|
+
<View style={[activityIntensityStyles.intensityTextContainer, style]}>
|
|
21
|
+
<TextBold style={activityIntensityStyles.text} testID={`intensity-${intensity}`}>
|
|
22
|
+
{ActivityIntensityTranslations[intensity]()}
|
|
23
|
+
</TextBold>
|
|
24
|
+
</View>
|
|
25
|
+
</View>
|
|
26
|
+
<View style={activityIntensityStyles.intensityContainerOffset}/>
|
|
27
|
+
</View>);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const activityIntensityStyles = StyleSheet.create({
|
|
31
|
+
row: {
|
|
32
|
+
flexDirection: `row`,
|
|
33
|
+
},
|
|
34
|
+
intensityTextContainer: {
|
|
35
|
+
alignItems: `center`,
|
|
36
|
+
justifyContent: `center`,
|
|
37
|
+
padding: `5%`,
|
|
38
|
+
borderRadius: 5,
|
|
39
|
+
},
|
|
40
|
+
[Activity.Enums.ActivityIntensity.light]: {
|
|
41
|
+
backgroundColor: `#A5D871`,
|
|
42
|
+
},
|
|
43
|
+
[Activity.Enums.ActivityIntensity.moderate]: {
|
|
44
|
+
backgroundColor: `#F9BD5A`,
|
|
45
|
+
},
|
|
46
|
+
[Activity.Enums.ActivityIntensity.hard]: {
|
|
47
|
+
backgroundColor: `#EC5466`,
|
|
48
|
+
},
|
|
49
|
+
intensityContainer: {
|
|
50
|
+
flex: 5,
|
|
51
|
+
},
|
|
52
|
+
intensityContainerOffset: {
|
|
53
|
+
flex: 16,
|
|
54
|
+
},
|
|
55
|
+
text: {
|
|
56
|
+
fontSize: Dimensions.get(`screen`).width / 30,
|
|
57
|
+
},
|
|
58
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { Logbook } from "@hedia/types";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare const MoodEnum: typeof Logbook.Enums.MoodEnum;
|
|
4
4
|
export interface IProps {
|
|
5
5
|
/** Indicates which mood if any that is currently selected. */
|
|
@@ -36,4 +36,3 @@ export default class Emotion extends React.Component<IProps> {
|
|
|
36
36
|
render(): JSX.Element;
|
|
37
37
|
}
|
|
38
38
|
export {};
|
|
39
|
-
//# sourceMappingURL=Emotion.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Logbook } from "@hedia/types";
|
|
2
|
+
import { t } from "@lingui/macro";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Dimensions, StyleSheet, View } from "react-native";
|
|
5
|
+
import { i18n } from "../../locale/i18nUtils";
|
|
6
|
+
import TextBold from "../text/TextBold";
|
|
7
|
+
import MoodIcon from "./MoodIcon";
|
|
8
|
+
const MoodEnum = Logbook.Enums.MoodEnum;
|
|
9
|
+
/** The Emotion component displays a horizontally arranged set of icons representing various moods and allows the user to select one. */
|
|
10
|
+
export default class Emotion extends React.Component {
|
|
11
|
+
/**
|
|
12
|
+
* Handle what should happen when the user picks taps on one of the mood icons.
|
|
13
|
+
*
|
|
14
|
+
* Steps:
|
|
15
|
+
* 1. Call the moodSelected prop callback function with selected as argument if toggle is true and null as argument otherwise.
|
|
16
|
+
* @param selected Integer number that represents the icon that was tapped.
|
|
17
|
+
* @param toggle Boolean indicating whether the icon should be deselected.
|
|
18
|
+
*/
|
|
19
|
+
handleIconPress = (selected, toggle) => {
|
|
20
|
+
this.props.moodSelected(toggle ? selected : null);
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Compose a sequence of MoodIcons
|
|
24
|
+
*
|
|
25
|
+
* Steps:
|
|
26
|
+
* 1. Make a sequence of MoodEnum values from the properties of the MoodEnum object and save the sequence as a variable named values.
|
|
27
|
+
* 2. Map each of the elements of the values sequence to a MoodIcon.
|
|
28
|
+
* @returns JSX Element consisting of an array of MoodIcon components.
|
|
29
|
+
*/
|
|
30
|
+
mappedMoods = () => {
|
|
31
|
+
const values = Object.values(MoodEnum).filter((val) => isNaN(Number(val)));
|
|
32
|
+
return values.map((key) => {
|
|
33
|
+
const moodValue = MoodEnum[key];
|
|
34
|
+
return (<MoodIcon onPress={(toggle) => this.handleIconPress(moodValue, toggle)} active={moodValue === this.props.currentMood} mood={moodValue} key={moodValue}/>);
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @returns JSX element to display the mood icons from mappedMoods() in a horizontal arrangement.
|
|
39
|
+
*/
|
|
40
|
+
render() {
|
|
41
|
+
return (<View style={emotionStyles.container}>
|
|
42
|
+
<View style={emotionStyles.feelingContainer}>
|
|
43
|
+
<TextBold style={emotionStyles.feelingText}>{i18n._(t `How are you feeling?`)}</TextBold>
|
|
44
|
+
</View>
|
|
45
|
+
<View style={emotionStyles.moodIconContainer}>{this.mappedMoods()}</View>
|
|
46
|
+
</View>);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const { width } = Dimensions.get(`screen`);
|
|
50
|
+
const emotionStyles = StyleSheet.create({
|
|
51
|
+
container: {
|
|
52
|
+
flex: 1,
|
|
53
|
+
marginTop: width / 20,
|
|
54
|
+
},
|
|
55
|
+
feelingContainer: {
|
|
56
|
+
marginVertical: `3%`,
|
|
57
|
+
},
|
|
58
|
+
feelingText: {
|
|
59
|
+
textAlign: `center`,
|
|
60
|
+
color: `white`,
|
|
61
|
+
fontSize: width / 26,
|
|
62
|
+
},
|
|
63
|
+
moodIconContainer: { flex: 1, flexDirection: `row`, justifyContent: `center` },
|
|
64
|
+
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { Logbook } from "@hedia/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ImageURISource } from "react-native";
|
|
3
4
|
export interface IProps {
|
|
4
5
|
/** Which mood the mood component should represent. */
|
|
5
6
|
mood: Logbook.Enums.MoodEnum;
|
|
@@ -13,9 +14,9 @@ export interface IProps {
|
|
|
13
14
|
onPress(toggle: boolean): void;
|
|
14
15
|
}
|
|
15
16
|
/** Mapping from {@link Logbook.Enums.MoodEnum} to corresponding image resources */
|
|
16
|
-
export declare const MOODS_INACTIVE: Record<number,
|
|
17
|
+
export declare const MOODS_INACTIVE: Record<number, ImageURISource>;
|
|
17
18
|
/** Mapping from {@link Logbook.Enums.MoodEnum} to corresponding image resources */
|
|
18
|
-
export declare const MOODS_ACTIVE: Record<number,
|
|
19
|
+
export declare const MOODS_ACTIVE: Record<number, ImageURISource>;
|
|
19
20
|
/** Component to display a mood icon base on its props. */
|
|
20
21
|
export default class MoodIcon extends React.Component<IProps> {
|
|
21
22
|
/**
|
|
@@ -26,7 +27,7 @@ export default class MoodIcon extends React.Component<IProps> {
|
|
|
26
27
|
* 2. (Only reached if the active prop is false) Return the value from the MOODS_INACTIVE constant that corresponds to the value of the mood prop.
|
|
27
28
|
* @returns Image resource that should be displayed for the mood icon.
|
|
28
29
|
*/
|
|
29
|
-
getMoodIcon: () =>
|
|
30
|
+
getMoodIcon: () => ImageURISource;
|
|
30
31
|
/**
|
|
31
32
|
* Handle what happens when the mood icon is pressed.
|
|
32
33
|
*
|
|
@@ -37,4 +38,3 @@ export default class MoodIcon extends React.Component<IProps> {
|
|
|
37
38
|
/** JSX element to display the mood icon retrieved using the getMoodIcon() method. */
|
|
38
39
|
render(): JSX.Element;
|
|
39
40
|
}
|
|
40
|
-
//# sourceMappingURL=MoodIcon.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Logbook } from "@hedia/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Dimensions, Image, StyleSheet, TouchableOpacity } from "react-native";
|
|
4
|
+
const MoodEnum = Logbook.Enums.MoodEnum;
|
|
5
|
+
/** Mapping from {@link Logbook.Enums.MoodEnum} to corresponding image resources */
|
|
6
|
+
export const MOODS_INACTIVE = {
|
|
7
|
+
1: require(`../../assets/mood/sad.png`),
|
|
8
|
+
2: require(`../../assets/mood/semi_sad.png`),
|
|
9
|
+
3: require(`../../assets/mood/neutral.png`),
|
|
10
|
+
4: require(`../../assets/mood/semi_happy.png`),
|
|
11
|
+
5: require(`../../assets/mood/happy.png`),
|
|
12
|
+
};
|
|
13
|
+
/** Mapping from {@link Logbook.Enums.MoodEnum} to corresponding image resources */
|
|
14
|
+
export const MOODS_ACTIVE = {
|
|
15
|
+
1: require(`../../assets/mood/sad_active.png`),
|
|
16
|
+
2: require(`../../assets/mood/semi_sad_active.png`),
|
|
17
|
+
3: require(`../../assets/mood/neutral_active.png`),
|
|
18
|
+
4: require(`../../assets/mood/semi_happy_active.png`),
|
|
19
|
+
5: require(`../../assets/mood/happy_active.png`),
|
|
20
|
+
};
|
|
21
|
+
/** Component to display a mood icon base on its props. */
|
|
22
|
+
export default class MoodIcon extends React.Component {
|
|
23
|
+
/**
|
|
24
|
+
* Get the icon image resource that should be displayed for the mood icon.
|
|
25
|
+
*
|
|
26
|
+
* Steps:
|
|
27
|
+
* 1. If the active prop is true, return the value from the MOODS_ACTIVE constant that corresponds to the value of the mood prop.
|
|
28
|
+
* 2. (Only reached if the active prop is false) Return the value from the MOODS_INACTIVE constant that corresponds to the value of the mood prop.
|
|
29
|
+
* @returns Image resource that should be displayed for the mood icon.
|
|
30
|
+
*/
|
|
31
|
+
getMoodIcon = () => {
|
|
32
|
+
if (this.props.active) {
|
|
33
|
+
return MOODS_ACTIVE[this.props.mood];
|
|
34
|
+
}
|
|
35
|
+
return MOODS_INACTIVE[this.props.mood];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Handle what happens when the mood icon is pressed.
|
|
39
|
+
*
|
|
40
|
+
* Steps:
|
|
41
|
+
* 1. Call the onPress prop callback function with the toggle argument set to the inverse value of the active prop.
|
|
42
|
+
*/
|
|
43
|
+
handleOnPress = () => {
|
|
44
|
+
this.props.onPress(!this.props.active);
|
|
45
|
+
};
|
|
46
|
+
/** JSX element to display the mood icon retrieved using the getMoodIcon() method. */
|
|
47
|
+
render() {
|
|
48
|
+
const { mood, active } = this.props;
|
|
49
|
+
const testID = `${MoodEnum[mood]}-${active}`;
|
|
50
|
+
return (<TouchableOpacity style={moodIconStyles.container} onPress={this.handleOnPress} testID={testID}>
|
|
51
|
+
<Image style={moodIconStyles.icon} source={this.getMoodIcon()}/>
|
|
52
|
+
</TouchableOpacity>);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const moodIconStyles = StyleSheet.create({
|
|
56
|
+
container: {
|
|
57
|
+
marginHorizontal: `1.5%`,
|
|
58
|
+
},
|
|
59
|
+
icon: {
|
|
60
|
+
width: Dimensions.get(`screen`).width / 11,
|
|
61
|
+
height: Dimensions.get(`screen`).width / 11,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextProps, TextStyle } from "react-native";
|
|
3
|
+
interface IProps extends Omit<TextProps, `style`> {
|
|
4
|
+
style: TextStyle;
|
|
5
|
+
}
|
|
6
|
+
/** Component used to set the font family to Roboto-Bold */
|
|
7
|
+
declare const TextBold: (props: IProps) => JSX.Element;
|
|
8
|
+
export default TextBold;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StyleSheet, Text } from "react-native";
|
|
3
|
+
/** Component used to set the font family to Roboto-Bold */
|
|
4
|
+
const TextBold = (props) => (<Text {...props} style={[styles.defaultText, props.style]}>
|
|
5
|
+
{props.children}
|
|
6
|
+
</Text>);
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
defaultText: {
|
|
9
|
+
fontFamily: `Roboto-Bold`,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
export default TextBold;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextProps, TextStyle } from "react-native";
|
|
3
|
+
interface IProps extends Omit<TextProps, `style`> {
|
|
4
|
+
style: TextStyle;
|
|
5
|
+
}
|
|
6
|
+
/** Component used to set the font family to Roboto-Regular */
|
|
7
|
+
declare const TextRegular: (props: IProps) => JSX.Element;
|
|
8
|
+
export default TextRegular;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StyleSheet, Text } from "react-native";
|
|
3
|
+
/** Component used to set the font family to Roboto-Regular */
|
|
4
|
+
const TextRegular = (props) => (<Text {...props} style={[styles.defaultText, props.style]}>
|
|
5
|
+
{props.children}
|
|
6
|
+
</Text>);
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
defaultText: {
|
|
9
|
+
fontFamily: `Roboto-Regular`,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
export default TextRegular;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),i=s[0],t0=Number(s[0])==n;if(ord)return"other";return n==1||!t0&&(i==0||i==1)?"one":"other"}},messages:{"Active Insulin":"Aktiv insulin","Activity":"Aktivitet","Additional":"Supplerende","Attention":"OBS","Based on the selected activity your insulin recommendation is reduced by:":"Baseret p\xE5 din valgte aktivitet er din insulin anbefaling reduceret med:","Blood Glucose Level":"Blodsukker","Blood Ketone Level":"Blodketonniveau","Carbohydrates":"Kulhydrater","Close calculation":"Luk beregning","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Dit blodsukker ligger udenfor de anbefalede gr\xE6nser for blodsukker f\xF8r en aktivitet. Du b\xF8r overveje at udskyde fysisk aktivitet.","Edit":"Edit","Entered":"Indtastet","Error. Hedia Calculator could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Ups! Hedia kan ikke anbefale mere end ",a("SAFETY_INSULIN_LIMIT")," enheder hurtigtvirkende insulin i \xE9n dosis"]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Ups! Indtast kun de hurtigtvirkende insulindoser der er under 4 timer gamle, s\xE5 tager Hedia h\xF8jde for aktiv insulin","Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.":"Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.","Error. Hedia Calculator does not support your activity intensity value":"Ups! Hedia har lavet en fejl. V\xE6lg venligst intensitet for aktivitet igen","Error. Hedia Calculator does not support your activity type value":"Ups! Der er sket en fejl ved den valgte aktivitetstype. G\xE5 venligst til \u201Caktivitet\u201D og indtast type igen","Error. Hedia Calculator does not support your current blood glucose level.":"Ups! Hedia har lavet en fejl. Indtast venligst en blodsukkerv\xE6rdi indenfor Hedia\u2019s definerede gr\xE6nser for blodsukker","Error. Hedia Calculator does not support your current blood glucose unit.":"Ups! G\xE5 venligst til indstillinger blodsukker og opdater blodsukker enhed til mmol/L eller mg/dL","Error. Hedia Calculator does not support your current blood ketone level.":"Fejl. Hedia beregneren underst\xF8tter ikke dit nuv\xE6rende blodketonniveau.","Error. Hedia Calculator does not support your current blood ketone unit.":"Fejl. Hedia beregneren underst\xF8tter ikke din nuv\xE6rende blodketon enhed.","Error. Hedia Calculator does not support your current language.":"Ups! G\xE5 venligst til indstillinger for sprog og v\xE6lg dansk eller engelsk","Error. Hedia Calculator does not support your injection method.":"Ups! G\xE5 venligst til indstillinger for insulinberegner og v\xE6lg behandlingstype","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Ups! Hedia har lavet en fejl. Indtast venligst en aktivitet p\xE5 max 60 minutters varighed","Error. Please verify that your activity settings are set up correctly.":"Ups! G\xE5 venligst til indstillinger for aktivitet og bekr\xE6ft at de er korrekte","Error. Please verify that your activity target blood glucose value is correct.":"Ups! G\xE5 venligst til indstillinger for aktivitet og bekr\xE6ft at dit \xF8nskede blodsukker er korrekt","Error. Please verify that your insulin sensitivity value is correct.":"Ups! G\xE5 venligst til insulinindstillinger under indstillinger for insulinberegner og bekr\xE6ft at din insulin sensitivitet er korrekt","Error. Please verify that your insulin to carb ratio value is correct.":"Ups! G\xE5 venligst til insulinindstillinger under indstillinger for insulinberegner og bekr\xE6ft at din kulhydrat-insulinratio er korrekt","Error. Please verify that your target blood glucose value is correct.":"Ups! G\xE5 venligst til indstillinger for blodsukker og bekr\xE6ft at dit \xF8nskede blodsukker er indstillet efter dine personlige m\xE5l","Error. Please verify your notifications settings.":"Ups! G\xE5 venligst til indstillinger for notifikationer og bekr\xE6ft at notifikationer er indstillet korrekt","Error. Your blood ketone settings are invalid.":"Error. Your blood ketone settings are invalid.","Food":"Mad","Forecasted Glucose":"Forecasted Glucose","Forecasted time:":"Forecasted time:","Hard":"H\xE5rd","Have you taken rapid-acting insulin within the last 4 hours?":"Have you taken rapid-acting insulin within the last 4 hours?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"Ups! Det lader til at du bruger en gammel version af Hedia. Det er ikke l\xE6ngere muligt at indtaste tidligere aktiviter i Hedia.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"Ups! Hedia har lavet en fejl. Indtast venligst en v\xE6rdi mellem 0 og 300 gram","Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Hedia underst\xF8tter maksimalt ",a("SAFETY_INSULIN_LIMIT")," enheder af insulin per beregning"]},"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.":function(a){return["Hedia underst\xF8tter maksimalt ",a("SAFETY_INSULIN_LIMIT")," enheder af insulin per beregning men p\xE5 grund af den fysiske aktivitet du har indtastet, er gr\xE6nsen reduceret med yderligere ",a("0"),"% til ",a("1")," enheder for denne beregning."]},"How are you feeling?":"Hvordan har du det?","If it is possible, postpone your planned exercise.":"Hvis det er muligt, uds\xE6t din planlagte tr\xE6ning.","Instead of taking insulin":"I stedet for at tage insulin","Insulin recommendation":"Insulin anbefaling","Light":"Let","Moderate":"Moderat","More than 15 minutes has passed since this calculation was started.":"Der er g\xE5et mere end 15 minutter siden udregningen blev startet.","NO":"NEJ","No":"Nej","No, return to dashboard":"Nej, tilbage til dashboard","OFF":"OFF","OK":"OK","Please go through the calculation steps with new measurements to ensure a safe recommendation.":"G\xE5 venligst gennem udregningstrinnene igen med nye m\xE5linger for at sikre en sikker anbefaling.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["Hedia's anbefaling fra ",a("day")," kl. ",a("time")," blev ikke overf\xF8rt til din logbog.",a("0"),"Brugte du anbefalingen?"]},"Recommended":"Anbefalet","Recommended amount of insulin":"Anbefalet enhed(er) af insulin","Remind me to remeasure in":"P\xE5mind mig at genm\xE5le om","Return to dashboard":"Tilbage til dashboard","Save data before closing?":"Vil du gemme din indtastning?","Save to logbook":"Gem i logbog","Start new calculation":"Start ny beregning","Total":"Sum","Units":"Enheder","Untitled Activity":"Unavngivet aktivitet","We recommend eating an additional:":"Vi anbefaler at spise yderligere:","Would you like to add this to your current calculation?":"Vil du gerne tilf\xF8je dette til din nuv\xE6rende beregning?","Yes":"Ja","Yes, save to logbook":"Ja, gem i logbogen","You have a high blood glucose level.":"Du har h\xF8jt blodsukker.","You should take rapid-acting insulin and measure ketones.":"Du burde tage hurtigtvirkende insulin og m\xE5le ketoner.","You will be reminded to measure your blood glucose level in 15 min.":"Du vil f\xE5 en p\xE5mindelse om at m\xE5le dit blodsukker om 15 minutter.","Your blood glucose level is very low.":"Dit blodsukker er meget lavt.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Dit blodsukker er meget lavt. Tag glukagon eller spis kulhydrater, hvis det er muligt. S\xF8g l\xE6gehj\xE6lp.","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}.":function(a){return["Din anbefaling ville have v\xE6ret h\xF8jere end ",a("0")," enheder af insulin men den er blevet begr\xE6nset af sikkerhedshensyn.",a("1")," Hedia anbefaler aldrig mere end ",a("SAFETY_INSULIN_LIMIT")," enheder af insulin per beregning men p\xE5 grund af den fysiske aktivitet du har indtastet er gr\xE6nsen reduceret med yderligere ",a("2"),"% til ",a("3"),"."]},"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.":function(a){return["Din anbefaling ville have v\xE6ret h\xF8jere end ",a("SAFETY_INSULIN_LIMIT")," enheder af insulin men den er blevet begr\xE6nset af sikkerhedshensyn. Hedia anbefaler aldrig mere end ",a("SAFETY_INSULIN_LIMIT")," enheder af insulin per beregning."]},"Your saved data will be used for future calculations.":"Dine gemte indtastninger vil blive brugt til fremtidige beregninger.","grams":"gram","grams of carbohydrates":"gram kulhydrater","hours":"timer","min":"min","units":"enheder"}};
|