@hedia/recommendation-screen 2.1.75-alpha.0 → 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.
- 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 +349 -0
- package/dist/src/locale/de/messages.js +1 -0
- package/dist/src/locale/de/messages.po +349 -0
- package/dist/src/locale/en/messages.js +1 -0
- package/dist/src/locale/en/messages.po +349 -0
- package/dist/src/locale/es/messages.js +1 -0
- package/dist/src/locale/es/messages.po +349 -0
- package/dist/src/locale/fr/messages.js +1 -0
- package/dist/src/locale/fr/messages.po +349 -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 +349 -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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","t","Testing","colors","infoStyles","FONTS","Text","ActivityIcon","ActivityIntensity","Activity","Component","render","activity","activityType","activityReduction","activityTitle","props","reductionPercentage","toFixed","createElement","style","styles","container","activityTextContainer","labelContainer","label","valueUnitContainer","value","testID","Id","ActivityTestIds","ActivityDuration","activityDuration","units","activityIntensity","infoText","reductionContainer","ActivityReduction","percentage","create","flex","marginTop","padding","borderWidth","borderColor","dustyDarkBlue","borderRadius","flexDirection","marginBottom","alignItems","Poppins","regular_Base","color","lightBlue","medium_2XL","white","regular_XS","marginLeft"],"sourceRoot":"../../../../src","sources":["components/activity/Activity.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAI/C,SAASC,CAAC,QAAQ,yBAAyB;AAC3C,SAASC,OAAO,QAAQ,kBAAkB;AAE1C,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,KAAK,QAAQ,iBAAiB;AACvC,OAAOC,IAAI,MAAM,SAAS;AAC1B,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,iBAAiB,MAAM,qBAAqB;AASnD;AACA;AACA;AACA,eAAe,MAAMC,QAAQ,SAASX,KAAK,CAACY,SAAS,CAAS;EAC7D;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACQC,MAAMA,CAAA,EAAgB;IAC5B,MAAM;MAA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K;IACnBE,UAAU,EAAE;EACb,CAAC;EACDhC,KAAK,EAAE;IACN,GAAGpB,KAAK,CAAC6C,OAAO,CAACC,YAAY;IAC7BC,KAAK,EAAEjD,MAAM,CAACoD;EACf;AACD,CAAC,CAAC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleSheet, View } from "react-native";
|
|
3
|
-
import { Activity } from "@hedia/types";
|
|
4
|
-
import Cycling from "../../assets/IconsSVG/activity/Cycling";
|
|
5
|
-
import Running from "../../assets/IconsSVG/activity/Running";
|
|
6
|
-
import Stretching from "../../assets/IconsSVG/activity/Stretching";
|
|
7
|
-
import Swimming from "../../assets/IconsSVG/activity/Swimming";
|
|
8
|
-
import Walking from "../../assets/IconsSVG/activity/Walking";
|
|
9
|
-
import { t } from "../../locales/translate";
|
|
10
|
-
import { colors } from "../../utils/Constants";
|
|
11
|
-
import { FONTS } from "../styles/fonts";
|
|
12
|
-
import Text from "../Text";
|
|
13
|
-
const {
|
|
14
|
-
Other
|
|
15
|
-
} = Activity.Enums.ActivityEnum;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
Component used to displat the user's physical activity type icon
|
|
19
|
-
Mapping from ActivityEnums to corresponding image resource.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
export default class ActivityIcon extends React.Component {
|
|
23
|
-
/**
|
|
24
|
-
* @returns The value from the ACTIVITY_ICONS constant that corresponds to the value of the activityType prop.
|
|
25
|
-
*/
|
|
26
|
-
getActivityIcon = props => {
|
|
27
|
-
const ACTIVITY_ICONS = {
|
|
28
|
-
Run: Running(props),
|
|
29
|
-
Walk: Walking(props),
|
|
30
|
-
Cycling: Cycling(props),
|
|
31
|
-
Swim: Swimming(props),
|
|
32
|
-
Other: Stretching(props)
|
|
33
|
-
};
|
|
34
|
-
return ACTIVITY_ICONS[this.props.activityType ?? Other];
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Steps:
|
|
39
|
-
* 1. Unpack activityType and activityTitle from props.
|
|
40
|
-
* 2. Create a testID string by appending ‘_activity’ to the enum label corresponding to the activityType prop.
|
|
41
|
-
* @returns A JSX element including the following:
|
|
42
|
-
* 1. An svg component with the generated testID displaying the icon from getActivityIcon().
|
|
43
|
-
* 2. The activityTitle if it is truthy or the string “Untitled Activity” otherwise
|
|
44
|
-
*/
|
|
45
|
-
render() {
|
|
46
|
-
const {
|
|
47
|
-
activityType,
|
|
48
|
-
activityTitle
|
|
49
|
-
} = this.props;
|
|
50
|
-
const testID = `${Activity.Enums.ActivityEnum[activityType ?? Other]}-icon`.toLowerCase();
|
|
51
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
52
|
-
style: styles.container
|
|
53
|
-
}, this.getActivityIcon({
|
|
54
|
-
testID,
|
|
55
|
-
style: styles.icon
|
|
56
|
-
}), /*#__PURE__*/React.createElement(Text, {
|
|
57
|
-
style: styles.activityTitle
|
|
58
|
-
}, activityTitle || t(`Untitled Activity`)));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
const styles = StyleSheet.create({
|
|
62
|
-
container: {
|
|
63
|
-
flex: 1,
|
|
64
|
-
flexDirection: `row`,
|
|
65
|
-
alignItems: `center`,
|
|
66
|
-
marginBottom: 6
|
|
67
|
-
},
|
|
68
|
-
activityTitle: {
|
|
69
|
-
...FONTS.Poppins.regular_SM,
|
|
70
|
-
color: colors.white,
|
|
71
|
-
marginLeft: 4
|
|
72
|
-
},
|
|
73
|
-
icon: {
|
|
74
|
-
width: 20,
|
|
75
|
-
height: 20
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
//# sourceMappingURL=ActivityIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","Activity","Cycling","Running","Stretching","Swimming","Walking","t","colors","FONTS","Text","Other","Enums","ActivityEnum","ActivityIcon","Component","getActivityIcon","props","ACTIVITY_ICONS","Run","Walk","Swim","activityType","render","activityTitle","testID","toLowerCase","createElement","style","styles","container","icon","create","flex","flexDirection","alignItems","marginBottom","Poppins","regular_SM","color","white","marginLeft","width","height"],"sourceRoot":"../../../../src","sources":["components/activity/ActivityIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAG/C,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAOC,OAAO,MAAM,wCAAwC;AAC5D,OAAOC,OAAO,MAAM,wCAAwC;AAC5D,OAAOC,UAAU,MAAM,2CAA2C;AAClE,OAAOC,QAAQ,MAAM,yCAAyC;AAC9D,OAAOC,OAAO,MAAM,wCAAwC;AAC5D,SAASC,CAAC,QAAQ,yBAAyB;AAE3C,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,KAAK,QAAQ,iBAAiB;AACvC,OAAOC,IAAI,MAAM,SAAS;AAE1B,MAAM;EAAEC;AAAM,CAAC,GAAGV,QAAQ,CAACW,KAAK,CAACC,YAAY;;AAE7C;AACA;AACA;AACA;;AAEA,eAAe,MAAMC,YAAY,SAAShB,KAAK,CAACiB,SAAS,CAAwB;EAChF;AACD;AACA;EACQC,eAAe,GAAIC,KAAgB,IAAkB;IAC3D,MAAMC,cAAgE,GAAG;MACxEC,GAAG,EAAEhB,OAAO,CAACc,KAAK,CAAC;MACnBG,IAAI,EAAEd,OAAO,CAACW,KAAK,CAAC;MACpBf,OAAO,EAAEA,OAAO,CAACe,KAAK,CAAC;MACvBI,IAAI,EAAEhB,QAAQ,CAACY,KAAK,CAAC;MACrBN,KAAK,EAAEP,UAAU,CAACa,KAAK;IACxB,CAAC;IACD,OAAOC,cAAc,CAAC,IAAI,CAACD,KAAK,CAACK,YAAY,IAAIX,KAAK,CAAC;EACxD,CAAC;;EAED;AACD;AACA;AACA;AACA;AACA;AACA;AACA;EACQY,MAAMA,CAAA,EAAuB;IACnC,MAAM;MAAED,YAAY;MAAEE;IAAc,CAAC,GAAG,IAAI,CAACP,KAAK;IAClD,MAAMQ,MAAM,GAAI,GAAExB,QAAQ,CAACW,KAAK,CAACC,YAAY,CAACS,YAAY,IAAIX,KAAK,CAAE,OAAM,CAACe,WAAW,CAAC,CAAC;IAEzF,oBACC5B,KAAA,CAAA6B,aAAA,CAAC3B,IAAI;MAAC4B,KAAK,EAAEC,MAAM,CAACC;IAAU,GAC5B,IAAI,CAACd,eAAe,CAAC;MAAES,MAAM;MAAEG,KAAK,EAAEC,MAAM,CAACE;IAAK,CAAC,CAAC,eACrDjC,KAAA,CAAA6B,aAAA,CAACjB,IAAI;MAACkB,KAAK,EAAEC,MAAM,CAACL;IAAc,GAAEA,aAAa,IAAIjB,CAAC,CAAE,mBAAkB,CAAQ,CAC7E,CAAC;EAET;AACD;AAEA,MAAMsB,MAAM,GAAG9B,UAAU,CAACiC,MAAM,CAAC;EAChCF,SAAS,EAAE;IACVG,IAAI,EAAE,CAAC;IACPC,aAAa,EAAG,KAAI;IACpBC,UAAU,EAAG,QAAO;IACpBC,YAAY,EAAE;EACf,CAAC;EACDZ,aAAa,EAAE;IACd,GAAGf,KAAK,CAAC4B,OAAO,CAACC,UAAU;IAC3BC,KAAK,EAAE/B,MAAM,CAACgC,KAAK;IACnBC,UAAU,EAAE;EACb,CAAC;EACDV,IAAI,EAAE;IACLW,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACT;AACD,CAAC,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleSheet, View } from "react-native";
|
|
3
|
-
import { Activity } from "@hedia/types";
|
|
4
|
-
import "../../types/types";
|
|
5
|
-
import { colors } from "../../utils/Constants";
|
|
6
|
-
import { ActivityIntensityTranslations } from "../../utils/Translations";
|
|
7
|
-
import { FONTS } from "../styles/fonts";
|
|
8
|
-
import Text from "../Text";
|
|
9
|
-
/** Component used to display the users's physical activity intensity on its corresponding background color */
|
|
10
|
-
export default class ActivityIntensity extends React.Component {
|
|
11
|
-
/**
|
|
12
|
-
* Steps:
|
|
13
|
-
* 1. Set intensity to the activityIntensity prop.
|
|
14
|
-
* 2. Set the style variable to the style that correspond to the intensity.
|
|
15
|
-
* @returns JSX element that displays the intensity of the user’s activity along with the associated color coding
|
|
16
|
-
*/
|
|
17
|
-
render = () => {
|
|
18
|
-
const intensity = this.props.activityIntensity;
|
|
19
|
-
const style = activityIntensityStyles[intensity];
|
|
20
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
21
|
-
style: activityIntensityStyles.row
|
|
22
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
23
|
-
style: [activityIntensityStyles.intensityTextContainer, style]
|
|
24
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
25
|
-
style: activityIntensityStyles.text,
|
|
26
|
-
testID: `intensity-${intensity}`
|
|
27
|
-
}, ActivityIntensityTranslations[intensity]())));
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
const activityIntensityStyles = StyleSheet.create({
|
|
31
|
-
row: {
|
|
32
|
-
flexDirection: `row`,
|
|
33
|
-
marginBottom: 6,
|
|
34
|
-
minHeight: 24
|
|
35
|
-
},
|
|
36
|
-
intensityTextContainer: {
|
|
37
|
-
alignItems: `center`,
|
|
38
|
-
justifyContent: `center`,
|
|
39
|
-
borderRadius: 5,
|
|
40
|
-
paddingVertical: 4,
|
|
41
|
-
paddingHorizontal: 17.5
|
|
42
|
-
},
|
|
43
|
-
[Activity.Enums.ActivityIntensity.light]: {
|
|
44
|
-
backgroundColor: colors.activityGreen
|
|
45
|
-
},
|
|
46
|
-
[Activity.Enums.ActivityIntensity.moderate]: {
|
|
47
|
-
backgroundColor: colors.activityOrange
|
|
48
|
-
},
|
|
49
|
-
[Activity.Enums.ActivityIntensity.hard]: {
|
|
50
|
-
backgroundColor: colors.activityRed
|
|
51
|
-
},
|
|
52
|
-
text: {
|
|
53
|
-
...FONTS.Poppins.medium_XS,
|
|
54
|
-
color: colors.black
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
//# sourceMappingURL=ActivityIntensity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","Activity","colors","ActivityIntensityTranslations","FONTS","Text","ActivityIntensity","Component","render","intensity","props","activityIntensity","style","activityIntensityStyles","createElement","row","intensityTextContainer","text","testID","create","flexDirection","marginBottom","minHeight","alignItems","justifyContent","borderRadius","paddingVertical","paddingHorizontal","Enums","light","backgroundColor","activityGreen","moderate","activityOrange","hard","activityRed","Poppins","medium_XS","color","black"],"sourceRoot":"../../../../src","sources":["components/activity/ActivityIntensity.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,QAAQ,QAAyB,cAAc;AAExD,OAAe,mBAAmB;AAClC,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,6BAA6B,QAAQ,0BAA0B;AACxE,SAASC,KAAK,QAAQ,iBAAiB;AACvC,OAAOC,IAAI,MAAM,SAAS;AAO1B;AACA,eAAe,MAAMC,iBAAiB,SAASR,KAAK,CAACS,SAAS,CAAS;EACtE;AACD;AACA;AACA;AACA;AACA;EACQC,MAAM,GAAGA,CAAA,KAAmB;IAClC,MAAMC,SAAS,GAAG,IAAI,CAACC,KAAK,CAACC,iBAAiB;IAC9C,MAAMC,KAAK,GAAGC,uBAAuB,CAACJ,SAAS,CAAC;IAEhD,oBACCX,KAAA,CAAAgB,aAAA,CAACd,IAAI;MAACY,KAAK,EAAEC,uBAAuB,CAACE;IAAI,gBACxCjB,KAAA,CAAAgB,aAAA,CAACd,IAAI;MAACY,KAAK,EAAE,CAACC,uBAAuB,CAACG,sBAAsB,EAAEJ,KAAK;IAAE,gBACpEd,KAAA,CAAAgB,aAAA,CAACT,IAAI;MAACO,KAAK,EAAEC,uBAAuB,CAACI,IAAK;MAACC,MAAM,EAAG,aAAYT,SAAU;IAAE,GAC1EN,6BAA6B,CAACM,SAAS,CAAC,CAAC,CACrC,CACD,CACD,CAAC;EAET,CAAC;AACF;AAEA,MAAMI,uBAAuB,GAAGd,UAAU,CAACoB,MAAM,CAAC;EACjDJ,GAAG,EAAE;IACJK,aAAa,EAAG,KAAI;IACpBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACZ,CAAC;EACDN,sBAAsB,EAAE;IACvBO,UAAU,EAAG,QAAO;IACpBC,cAAc,EAAG,QAAO;IACxBC,YAAY,EAAE,CAAC;IACfC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE;EACpB,CAAC;EACD,CAAC1B,QAAQ,CAAC2B,KAAK,CAACtB,iBAAiB,CAACuB,KAAK,GAAG;IACzCC,eAAe,EAAE5B,MAAM,CAAC6B;EACzB,CAAC;EACD,CAAC9B,QAAQ,CAAC2B,KAAK,CAACtB,iBAAiB,CAAC0B,QAAQ,GAAG;IAC5CF,eAAe,EAAE5B,MAAM,CAAC+B;EACzB,CAAC;EACD,CAAChC,QAAQ,CAAC2B,KAAK,CAACtB,iBAAiB,CAAC4B,IAAI,GAAG;IACxCJ,eAAe,EAAE5B,MAAM,CAACiC;EACzB,CAAC;EACDlB,IAAI,EAAE;IACL,GAAGb,KAAK,CAACgC,OAAO,CAACC,SAAS;IAC1BC,KAAK,EAAEpC,MAAM,CAACqC;EACf;AACD,CAAC,CAAC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleSheet, View } from "react-native";
|
|
3
|
-
import { Logbook } from "@hedia/types";
|
|
4
|
-
import { t } from "../../locales/translate";
|
|
5
|
-
import { colors } from "../../utils/Constants";
|
|
6
|
-
import { FONTS } from "../styles/fonts";
|
|
7
|
-
import Text from "../Text";
|
|
8
|
-
import MoodIcon from "./MoodIcon";
|
|
9
|
-
const MoodEnum = Logbook.Enums.MoodEnum;
|
|
10
|
-
/** The Emotion component displays a horizontally arranged set of icons representing various moods and allows the user to select one. */
|
|
11
|
-
export default class Emotion extends React.Component {
|
|
12
|
-
/**
|
|
13
|
-
* Handle what should happen when the user picks taps on one of the mood icons.
|
|
14
|
-
*
|
|
15
|
-
* Steps:
|
|
16
|
-
* 1. Call the moodSelected prop callback function with selected as argument if toggle is true and null as argument otherwise.
|
|
17
|
-
* @param selected Integer number that represents the icon that was tapped.
|
|
18
|
-
* @param toggle Boolean indicating whether the icon should be deselected.
|
|
19
|
-
*/
|
|
20
|
-
handleIconPress = (selected, toggle) => {
|
|
21
|
-
this.props.moodSelected(toggle ? selected : null);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Compose a sequence of MoodIcons
|
|
26
|
-
*
|
|
27
|
-
* Steps:
|
|
28
|
-
* 1. Make a sequence of MoodEnum values from the properties of the MoodEnum object and save the sequence as a variable named values.
|
|
29
|
-
* 2. Map each of the elements of the values sequence to a MoodIcon.
|
|
30
|
-
* @returns JSX Element consisting of an array of MoodIcon components.
|
|
31
|
-
*/
|
|
32
|
-
mappedMoods = () => {
|
|
33
|
-
const values = Object.values(MoodEnum).filter(val => isNaN(Number(val)));
|
|
34
|
-
return values.map(key => {
|
|
35
|
-
const moodValue = MoodEnum[key];
|
|
36
|
-
return /*#__PURE__*/React.createElement(MoodIcon, {
|
|
37
|
-
onPress: toggle => this.handleIconPress(moodValue, toggle),
|
|
38
|
-
active: moodValue === this.props.currentMood,
|
|
39
|
-
mood: moodValue,
|
|
40
|
-
key: moodValue
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @returns JSX element to display the mood icons from mappedMoods() in a horizontal arrangement.
|
|
47
|
-
*/
|
|
48
|
-
render() {
|
|
49
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
50
|
-
style: emotionStyles.container
|
|
51
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
52
|
-
style: emotionStyles.feelingText,
|
|
53
|
-
maxFontSizeMultiplier: 1
|
|
54
|
-
}, t(`How are you feeling?`)), /*#__PURE__*/React.createElement(View, {
|
|
55
|
-
style: emotionStyles.moodIconContainer
|
|
56
|
-
}, this.mappedMoods()));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
const emotionStyles = StyleSheet.create({
|
|
60
|
-
container: {
|
|
61
|
-
flex: 1,
|
|
62
|
-
paddingHorizontal: 40,
|
|
63
|
-
marginBottom: 32
|
|
64
|
-
},
|
|
65
|
-
feelingText: {
|
|
66
|
-
...FONTS.Poppins.regular_Base,
|
|
67
|
-
textAlign: `center`,
|
|
68
|
-
color: colors.white,
|
|
69
|
-
marginBottom: 8
|
|
70
|
-
},
|
|
71
|
-
moodIconContainer: {
|
|
72
|
-
flex: 1,
|
|
73
|
-
flexDirection: `row`,
|
|
74
|
-
justifyContent: `center`,
|
|
75
|
-
paddingHorizontal: 40
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
//# sourceMappingURL=Emotion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","Logbook","t","colors","FONTS","Text","MoodIcon","MoodEnum","Enums","Emotion","Component","handleIconPress","selected","toggle","props","moodSelected","mappedMoods","values","Object","filter","val","isNaN","Number","map","key","moodValue","createElement","onPress","active","currentMood","mood","render","style","emotionStyles","container","feelingText","maxFontSizeMultiplier","moodIconContainer","create","flex","paddingHorizontal","marginBottom","Poppins","regular_Base","textAlign","color","white","flexDirection","justifyContent"],"sourceRoot":"../../../../src","sources":["components/mood/Emotion.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,OAAO,QAAQ,cAAc;AAEtC,SAASC,CAAC,QAAQ,yBAAyB;AAC3C,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,KAAK,QAAQ,iBAAiB;AACvC,OAAOC,IAAI,MAAM,SAAS;AAC1B,OAAOC,QAAQ,MAAM,YAAY;A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AC1B,IAAI;MAACgC,KAAK,EAAEC,aAAa,CAACI;IAAkB,GAAE,IAAI,CAACrB,WAAW,CAAC,CAAQ,CACnE,CAAC;EAET;AACD;AAEA,MAAMiB,aAAa,GAAGlC,UAAU,CAACuC,MAAM,CAAC;EACvCJ,SAAS,EAAE;IACVK,IAAI,EAAE,CAAC;IACPC,iBAAiB,EAAE,EAAE;IACrBC,YAAY,EAAE;EACf,CAAC;EACDN,WAAW,EAAE;IACZ,GAAG/B,KAAK,CAACsC,OAAO,CAACC,YAAY;IAC7BC,SAAS,EAAG,QAAO;IACnBC,KAAK,EAAE1C,MAAM,CAAC2C,KAAK;IACnBL,YAAY,EAAE;EACf,CAAC;EACDJ,iBAAiB,EAAE;IAClBE,IAAI,EAAE,CAAC;IACPQ,aAAa,EAAG,KAAI;IACpBC,cAAc,EAAG,QAAO;IACxBR,iBAAiB,EAAE;EACpB;AACD,CAAC,CAAC"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleSheet, TouchableOpacity } from "react-native";
|
|
3
|
-
import { Logbook } from "@hedia/types";
|
|
4
|
-
import Happy from "../../assets/IconsSVG/mood/Happy";
|
|
5
|
-
import Neutral from "../../assets/IconsSVG/mood/Neutral";
|
|
6
|
-
import Sad from "../../assets/IconsSVG/mood/Sad";
|
|
7
|
-
import SemiHappy from "../../assets/IconsSVG/mood/SemiHappy";
|
|
8
|
-
import SemiSad from "../../assets/IconsSVG/mood/SemiSad";
|
|
9
|
-
const MoodEnum = Logbook.Enums.MoodEnum;
|
|
10
|
-
const styles = StyleSheet.create({
|
|
11
|
-
icon: {
|
|
12
|
-
flex: 1,
|
|
13
|
-
width: 40,
|
|
14
|
-
height: 40,
|
|
15
|
-
marginHorizontal: 6
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
/** Mapping from {@link Logbook.Enums.MoodEnum} to corresponding image resources */
|
|
20
|
-
export const MOODS_INACTIVE = {
|
|
21
|
-
1: Sad(false, {
|
|
22
|
-
style: styles.icon
|
|
23
|
-
}),
|
|
24
|
-
2: SemiSad(false, {
|
|
25
|
-
style: styles.icon
|
|
26
|
-
}),
|
|
27
|
-
3: Neutral(false, {
|
|
28
|
-
style: styles.icon
|
|
29
|
-
}),
|
|
30
|
-
4: SemiHappy(false, {
|
|
31
|
-
style: styles.icon
|
|
32
|
-
}),
|
|
33
|
-
5: Happy(false, {
|
|
34
|
-
style: styles.icon
|
|
35
|
-
})
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/** Mapping from {@link Logbook.Enums.MoodEnum} to corresponding image resources */
|
|
39
|
-
export const MOODS_ACTIVE = {
|
|
40
|
-
1: Sad(true, {
|
|
41
|
-
style: styles.icon
|
|
42
|
-
}),
|
|
43
|
-
2: SemiSad(true, {
|
|
44
|
-
style: styles.icon
|
|
45
|
-
}),
|
|
46
|
-
3: Neutral(true, {
|
|
47
|
-
style: styles.icon
|
|
48
|
-
}),
|
|
49
|
-
4: SemiHappy(true, {
|
|
50
|
-
style: styles.icon
|
|
51
|
-
}),
|
|
52
|
-
5: Happy(true, {
|
|
53
|
-
style: styles.icon
|
|
54
|
-
})
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/** Component to display a mood icon base on its props. */
|
|
58
|
-
export default class MoodIcon extends React.Component {
|
|
59
|
-
/**
|
|
60
|
-
* Get the icon image resource that should be displayed for the mood icon.
|
|
61
|
-
*
|
|
62
|
-
* Steps:
|
|
63
|
-
* 1. If the active prop is true, return the value from the MOODS_ACTIVE constant that corresponds to the value of the mood prop.
|
|
64
|
-
* 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.
|
|
65
|
-
* @returns Image resource that should be displayed for the mood icon.
|
|
66
|
-
*/
|
|
67
|
-
getMoodIcon = () => {
|
|
68
|
-
if (this.props.active) {
|
|
69
|
-
return MOODS_ACTIVE[this.props.mood];
|
|
70
|
-
}
|
|
71
|
-
return MOODS_INACTIVE[this.props.mood];
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Handle what happens when the mood icon is pressed.
|
|
76
|
-
*
|
|
77
|
-
* Steps:
|
|
78
|
-
* 1. Call the onPress prop callback function with the toggle argument set to the inverse value of the active prop.
|
|
79
|
-
*/
|
|
80
|
-
handleOnPress = () => {
|
|
81
|
-
this.props.onPress(!this.props.active);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
/** JSX element to display the mood icon retrieved using the getMoodIcon() method. */
|
|
85
|
-
render() {
|
|
86
|
-
const {
|
|
87
|
-
mood,
|
|
88
|
-
active
|
|
89
|
-
} = this.props;
|
|
90
|
-
const testID = `${MoodEnum[mood]}-${active}`;
|
|
91
|
-
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
92
|
-
onPress: this.handleOnPress,
|
|
93
|
-
testID: testID
|
|
94
|
-
}, this.getMoodIcon());
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
//# sourceMappingURL=MoodIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","TouchableOpacity","Logbook","Happy","Neutral","Sad","SemiHappy","SemiSad","MoodEnum","Enums","styles","create","icon","flex","width","height","marginHorizontal","MOODS_INACTIVE","style","MOODS_ACTIVE","MoodIcon","Component","getMoodIcon","props","active","mood","handleOnPress","onPress","render","testID","createElement"],"sourceRoot":"../../../../src","sources":["components/mood/MoodIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AAE3D,SAASC,OAAO,QAAQ,cAAc;AAEtC,OAAOC,KAAK,MAAM,kCAAkC;AACpD,OAAOC,OAAO,MAAM,oCAAoC;AACxD,OAAOC,GAAG,MAAM,gCAAgC;AAChD,OAAOC,SAAS,MAAM,sCAAsC;AAC5D,OAAOC,OAAO,MAAM,oCAAoC;AAExD,MAAMC,QAAQ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C,CAAC;;AAED;AACA,eAAe,MAAMQ,QAAQ,SAASrB,KAAK,CAACsB,SAAS,CAAS;EAC7D;AACD;AACA;AACA;AACA;AACA;AACA;AACA;EACQC,WAAW,GAAGA,CAAA,KAAmB;IACvC,IAAI,IAAI,CAACC,KAAK,CAACC,MAAM,EAAE;MACtB,OAAOL,YAAY,CAAC,IAAI,CAACI,KAAK,CAACE,IAAI,CAAC;IACrC;IACA,OAAOR,cAAc,CAAC,IAAI,CAACM,KAAK,CAACE,IAAI,CAAC;EACvC,CAAC;;EAED;AACD;AACA;AACA;AACA;AACA;EACQC,aAAa,GAAGA,CAAA,KAAY;IAClC,IAAI,CAACH,KAAK,CAACI,OAAO,CAAC,CAAC,IAAI,CAACJ,KAAK,CAACC,MAAM,CAAC;EACvC,CAAC;;EAED;EACOI,MAAMA,CAAA,EAAgB;IAC5B,MAAM;MAAEH,IAAI;MAAED;IAAO,CAAC,GAAG,IAAI,CAACD,KAAK;IACnC,MAAMM,MAAM,GAAI,GAAErB,QAAQ,CAACiB,IAAI,CAAE,IAAGD,MAAO,EAAC;IAE5C,oBACCzB,KAAA,CAAA+B,aAAA,CAAC7B,gBAAgB;MAAC0B,OAAO,EAAE,IAAI,CAACD,aAAc;MAACG,MAAM,EAAEA;IAAO,GAC5D,IAAI,CAACP,WAAW,CAAC,CACD,CAAC;EAErB;AACD"}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
export let FontFamily;
|
|
2
|
-
(function (FontFamily) {
|
|
3
|
-
FontFamily["PoppinsBold"] = "Poppins-Bold";
|
|
4
|
-
FontFamily["PoppinsSemiBold"] = "Poppins-SemiBold";
|
|
5
|
-
FontFamily["PoppinsMedium"] = "Poppins-Medium";
|
|
6
|
-
FontFamily["PoppinsRegular"] = "Poppins-Regular";
|
|
7
|
-
})(FontFamily || (FontFamily = {}));
|
|
8
|
-
export const FONTS = {
|
|
9
|
-
Poppins: {
|
|
10
|
-
bold_6XL: {
|
|
11
|
-
fontFamily: FontFamily.PoppinsBold,
|
|
12
|
-
fontSize: 60,
|
|
13
|
-
lineHeight: 78
|
|
14
|
-
},
|
|
15
|
-
semiBold_6XL: {
|
|
16
|
-
fontFamily: FontFamily.PoppinsSemiBold,
|
|
17
|
-
fontSize: 60,
|
|
18
|
-
lineHeight: 78
|
|
19
|
-
},
|
|
20
|
-
bold_5XL: {
|
|
21
|
-
fontFamily: FontFamily.PoppinsBold,
|
|
22
|
-
fontSize: 48,
|
|
23
|
-
lineHeight: 62
|
|
24
|
-
},
|
|
25
|
-
semiBold_5XL: {
|
|
26
|
-
fontFamily: FontFamily.PoppinsSemiBold,
|
|
27
|
-
fontSize: 48,
|
|
28
|
-
lineHeight: 62
|
|
29
|
-
},
|
|
30
|
-
bold_4XL: {
|
|
31
|
-
fontFamily: FontFamily.PoppinsBold,
|
|
32
|
-
fontSize: 36,
|
|
33
|
-
lineHeight: 47
|
|
34
|
-
},
|
|
35
|
-
semiBold_4XL: {
|
|
36
|
-
fontFamily: FontFamily.PoppinsSemiBold,
|
|
37
|
-
fontSize: 36,
|
|
38
|
-
lineHeight: 47
|
|
39
|
-
},
|
|
40
|
-
bold_3XL: {
|
|
41
|
-
fontFamily: FontFamily.PoppinsBold,
|
|
42
|
-
fontSize: 30,
|
|
43
|
-
lineHeight: 39
|
|
44
|
-
},
|
|
45
|
-
semiBold_3XL: {
|
|
46
|
-
fontFamily: FontFamily.PoppinsSemiBold,
|
|
47
|
-
fontSize: 30,
|
|
48
|
-
lineHeight: 39
|
|
49
|
-
},
|
|
50
|
-
bold_2XL: {
|
|
51
|
-
fontFamily: FontFamily.PoppinsBold,
|
|
52
|
-
fontSize: 24,
|
|
53
|
-
lineHeight: 31
|
|
54
|
-
},
|
|
55
|
-
semiBold_2XL: {
|
|
56
|
-
fontFamily: FontFamily.PoppinsSemiBold,
|
|
57
|
-
fontSize: 24,
|
|
58
|
-
lineHeight: 31
|
|
59
|
-
},
|
|
60
|
-
medium_2XL: {
|
|
61
|
-
fontFamily: FontFamily.PoppinsMedium,
|
|
62
|
-
fontSize: 24,
|
|
63
|
-
lineHeight: 31
|
|
64
|
-
},
|
|
65
|
-
bold_XL: {
|
|
66
|
-
fontFamily: FontFamily.PoppinsBold,
|
|
67
|
-
fontSize: 20,
|
|
68
|
-
lineHeight: 26
|
|
69
|
-
},
|
|
70
|
-
semiBold_XL: {
|
|
71
|
-
fontFamily: FontFamily.PoppinsSemiBold,
|
|
72
|
-
fontSize: 20,
|
|
73
|
-
lineHeight: 26
|
|
74
|
-
},
|
|
75
|
-
medium_XL: {
|
|
76
|
-
fontFamily: FontFamily.PoppinsMedium,
|
|
77
|
-
fontSize: 20,
|
|
78
|
-
lineHeight: 26
|
|
79
|
-
},
|
|
80
|
-
bold_LG: {
|
|
81
|
-
fontFamily: FontFamily.PoppinsBold,
|
|
82
|
-
fontSize: 18,
|
|
83
|
-
lineHeight: 23
|
|
84
|
-
},
|
|
85
|
-
semiBold_LG: {
|
|
86
|
-
fontFamily: FontFamily.PoppinsSemiBold,
|
|
87
|
-
fontSize: 18,
|
|
88
|
-
lineHeight: 23
|
|
89
|
-
},
|
|
90
|
-
medium_LG: {
|
|
91
|
-
fontFamily: FontFamily.PoppinsMedium,
|
|
92
|
-
fontSize: 18,
|
|
93
|
-
lineHeight: 23
|
|
94
|
-
},
|
|
95
|
-
bold_Base: {
|
|
96
|
-
fontFamily: FontFamily.PoppinsBold,
|
|
97
|
-
fontSize: 16,
|
|
98
|
-
lineHeight: 21
|
|
99
|
-
},
|
|
100
|
-
semiBold_Base: {
|
|
101
|
-
fontFamily: FontFamily.PoppinsSemiBold,
|
|
102
|
-
fontSize: 16,
|
|
103
|
-
lineHeight: 21
|
|
104
|
-
},
|
|
105
|
-
medium_Base: {
|
|
106
|
-
fontFamily: FontFamily.PoppinsMedium,
|
|
107
|
-
fontSize: 16,
|
|
108
|
-
lineHeight: 21
|
|
109
|
-
},
|
|
110
|
-
regular_Base: {
|
|
111
|
-
fontFamily: FontFamily.PoppinsRegular,
|
|
112
|
-
fontSize: 16,
|
|
113
|
-
lineHeight: 21
|
|
114
|
-
},
|
|
115
|
-
semiBold_SM: {
|
|
116
|
-
fontFamily: FontFamily.PoppinsSemiBold,
|
|
117
|
-
fontSize: 14,
|
|
118
|
-
lineHeight: 18
|
|
119
|
-
},
|
|
120
|
-
medium_SM: {
|
|
121
|
-
fontFamily: FontFamily.PoppinsMedium,
|
|
122
|
-
fontSize: 14,
|
|
123
|
-
lineHeight: 18
|
|
124
|
-
},
|
|
125
|
-
regular_SM: {
|
|
126
|
-
fontFamily: FontFamily.PoppinsRegular,
|
|
127
|
-
fontSize: 14,
|
|
128
|
-
lineHeight: 18
|
|
129
|
-
},
|
|
130
|
-
semiBold_XS: {
|
|
131
|
-
fontFamily: FontFamily.PoppinsSemiBold,
|
|
132
|
-
fontSize: 12,
|
|
133
|
-
lineHeight: 16
|
|
134
|
-
},
|
|
135
|
-
medium_XS: {
|
|
136
|
-
fontFamily: FontFamily.PoppinsMedium,
|
|
137
|
-
fontSize: 12,
|
|
138
|
-
lineHeight: 16
|
|
139
|
-
},
|
|
140
|
-
regular_XS: {
|
|
141
|
-
fontFamily: FontFamily.PoppinsRegular,
|
|
142
|
-
fontSize: 12,
|
|
143
|
-
lineHeight: 16
|
|
144
|
-
},
|
|
145
|
-
regular_XXS: {
|
|
146
|
-
fontFamily: FontFamily.PoppinsRegular,
|
|
147
|
-
fontSize: 10,
|
|
148
|
-
lineHeight: 10
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
//# sourceMappingURL=fonts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["FontFamily","FONTS","Poppins","bold_6XL","fontFamily","PoppinsBold","fontSize","lineHeight","semiBold_6XL","PoppinsSemiBold","bold_5XL","semiBold_5XL","bold_4XL","semiBold_4XL","bold_3XL","semiBold_3XL","bold_2XL","semiBold_2XL","medium_2XL","PoppinsMedium","bold_XL","semiBold_XL","medium_XL","bold_LG","semiBold_LG","medium_LG","bold_Base","semiBold_Base","medium_Base","regular_Base","PoppinsRegular","semiBold_SM","medium_SM","regular_SM","semiBold_XS","medium_XS","regular_XS","regular_XXS"],"sourceRoot":"../../../../src","sources":["components/styles/fonts.ts"],"mappings":"AAAA,WAAYA,UAAU;AAKrB,WALWA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;AAAA,GAAVA,UAAU,KAAVA,UAAU;AAOtB,OAAO,MAAMC,KAAK,GAAG;EACpBC,OAAO,EAAE;IACRC,QAAQ,EAAE;MACTC,UAAU,EAAEJ,UAAU,CAACK,WAAW;MAClCC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACDC,YAAY,EAAE;MACbJ,UAAU,EAAEJ,UAAU,CAACS,eAAe;MACtCH,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACDG,QAAQ,EAAE;MACTN,UAAU,EAAEJ,UAAU,CAACK,WAAW;MAClCC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACDI,YAAY,EAAE;MACbP,UAAU,EAAEJ,UAAU,CAACS,eAAe;MACtCH,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACDK,QAAQ,EAAE;MACTR,UAAU,EAAEJ,UAAU,CAACK,WAAW;MAClCC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACDM,YAAY,EAAE;MACbT,UAAU,EAAEJ,UAAU,CAACS,eAAe;MACtCH,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACDO,QAAQ,EAAE;MACTV,UAAU,EAAEJ,UAAU,CAACK,WAAW;MAClCC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACDQ,YAAY,EAAE;MACbX,UAAU,EAAEJ,UAAU,CAACS,eAAe;MACtCH,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb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ACZC,UAAU,EAAE;IACb,CAAC;IACDqB,WAAW,EAAE;MACZxB,UAAU,EAAEJ,UAAU,CAACmB,aAAa;MACpCb,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACDsB,YAAY,EAAE;MACbzB,UAAU,EAAEJ,UAAU,CAAC8B,cAAc;MACrCxB,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACDwB,WAAW,EAAE;MACZ3B,UAAU,EAAEJ,UAAU,CAACS,eAAe;MACtCH,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACDyB,SAAS,EAAE;MACV5B,UAAU,EAAEJ,UAAU,CAACmB,aAAa;MACpCb,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACD0B,UAAU,EAAE;MACX7B,UAAU,EAAEJ,UAAU,CAAC8B,cAAc;MACrCxB,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACD2B,WAAW,EAAE;MACZ9B,UAAU,EAAEJ,UAAU,CAACS,eAAe;MACtCH,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACD4B,SAAS,EAAE;MACV/B,UAAU,EAAEJ,UAAU,CAACmB,aAAa;MACpCb,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACD6B,UAAU,EAAE;MACXhC,UAAU,EAAEJ,UAAU,CAAC8B,cAAc;MACrCxB,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb,CAAC;IACD8B,WAAW,EAAE;MACZjC,UAAU,EAAEJ,UAAU,CAAC8B,cAAc;MACrCxB,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACb;EACD;AACD,CAAC"}
|
package/lib/module/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IRecommendationProps, RecommendationScreen } from "./RecommendationScreen";
|
|
2
|
-
import { IActivityDisplayProps } from "./types/types";
|
|
3
|
-
import { RecommendationError } from "./utils/RecommendationError";
|
|
4
|
-
export { RecommendationScreen, RecommendationError };
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["IRecommendationProps","RecommendationScreen","IActivityDisplayProps","RecommendationError"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,oBAAoB,EAAEC,oBAAoB,QAAQ,wBAAwB;AACnF,SAASC,qBAAqB,QAAQ,eAAe;AACrD,SAASC,mBAAmB,QAAQ,6BAA6B;AAEjE,SAASF,oBAAoB,EAAEE,mBAAmB"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Active Insulin": "Aktiv insulin",
|
|
3
|
-
"Activity": "Aktivitet",
|
|
4
|
-
"Additional": "Supplerende",
|
|
5
|
-
"Attention": "OBS",
|
|
6
|
-
"Based on the selected activity your insulin recommendation is reduced by:": "Baseret på din valgte aktivitet er din insulin anbefaling reduceret med:",
|
|
7
|
-
"Blood Glucose Level": "Blodsukker",
|
|
8
|
-
"Blood Ketone Level": "Blodketonniveau",
|
|
9
|
-
"Carbohydrates": "Kulhydrater",
|
|
10
|
-
"Close calculation": "Luk beregning",
|
|
11
|
-
"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ænser for blodsukker før en aktivitet. Du bør overveje at udskyde fysisk aktivitet.",
|
|
12
|
-
"Enter Manually": "Indtast manuelt",
|
|
13
|
-
"Entered": "Indtastet",
|
|
14
|
-
"Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units": "Ups! Hedia kan ikke anbefale mere end {SAFETY_INSULIN_LIMIT} enheder hurtigtvirkende insulin i én dosis",
|
|
15
|
-
"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å tager Hedia højde for aktiv insulin",
|
|
16
|
-
"Error. Hedia Calculator does not support your activity intensity value": "Ups! Hedia har lavet en fejl. Vælg venligst intensitet for aktivitet igen",
|
|
17
|
-
"Error. Hedia Calculator does not support your activity type value": "Ups! Der er sket en fejl ved den valgte aktivitetstype. Gå venligst til “aktivitet” og indtast type igen",
|
|
18
|
-
"Error. Hedia Calculator does not support your current blood glucose level.": "Ups! Hedia har lavet en fejl. Indtast venligst en blodsukkerværdi indenfor Hedia’s definerede grænser for blodsukker",
|
|
19
|
-
"Error. Hedia Calculator does not support your current blood glucose unit.": "Ups! Gå venligst til indstillinger blodsukker og opdater blodsukker enhed til mmol/L eller mg/dL",
|
|
20
|
-
"Error. Hedia Calculator does not support your current blood ketone level.": "Fejl. Hedia beregneren understøtter ikke dit nuværende blodketonniveau.",
|
|
21
|
-
"Error. Hedia Calculator does not support your current blood ketone unit.": "Fejl. Hedia beregneren understøtter ikke din nuværende blodketon enhed.",
|
|
22
|
-
"Error. Hedia Calculator does not support your current language.": "Ups! Gå venligst til indstillinger for sprog og vælg dansk eller engelsk",
|
|
23
|
-
"Error. Hedia Calculator does not support your injection method.": "Ups! Gå venligst til indstillinger for insulinberegner og vælg behandlingstype",
|
|
24
|
-
"Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.": "Ups! Hedia har lavet en fejl. Indtast venligst en aktivitet på max 60 minutters varighed",
|
|
25
|
-
"Error. Please verify that your activity settings are set up correctly.": "Ups! Gå venligst til indstillinger for aktivitet og bekræft at de er korrekte",
|
|
26
|
-
"Error. Please verify that your activity target blood glucose value is correct.": "Ups! Gå venligst til indstillinger for aktivitet og bekræft at dit ønskede blodsukker er korrekt",
|
|
27
|
-
"Error. Please verify that your insulin sensitivity value is correct.": "Ups! Gå venligst til insulinindstillinger under indstillinger for insulinberegner og bekræft at din insulin sensitivitet er korrekt",
|
|
28
|
-
"Error. Please verify that your insulin to carb ratio value is correct.": "Ups! Gå venligst til insulinindstillinger under indstillinger for insulinberegner og bekræft at din kulhydrat-insulinratio er korrekt",
|
|
29
|
-
"Error. Please verify that your target blood glucose value is correct.": "Ups! Gå venligst til indstillinger for blodsukker og bekræft at dit ønskede blodsukker er indstillet efter dine personlige mål",
|
|
30
|
-
"Error. Please verify your notifications settings.": "Ups! Gå venligst til indstillinger for notifikationer og bekræft at notifikationer er indstillet korrekt",
|
|
31
|
-
"Error. Your blood ketone settings are invalid.": "Fejl. Dine blodketonindstillinger er ugyldige.",
|
|
32
|
-
"Food": "Mad",
|
|
33
|
-
"grams": "gram",
|
|
34
|
-
"grams of carbohydrates": "gram kulhydrater",
|
|
35
|
-
"Hard": "Hård",
|
|
36
|
-
"Have you taken insulin within the last 4 hours?": "Har du taget insulin inden for de sidste 4 timer?",
|
|
37
|
-
"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ængere muligt at indtaste tidligere aktiviter i Hedia.",
|
|
38
|
-
"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ærdi mellem 0 og 300 gram",
|
|
39
|
-
"Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.": "Hedia understøtter maksimalt {SAFETY_INSULIN_LIMIT} enheder af insulin per beregning",
|
|
40
|
-
"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.": "Hedia understøtter maksimalt {SAFETY_INSULIN_LIMIT} enheder af insulin per beregning men på grund af den fysiske aktivitet du har indtastet, er grænsen reduceret med yderligere {0}% til {1} enheder for denne beregning.",
|
|
41
|
-
"hours": "timer",
|
|
42
|
-
"How are you feeling?": "Hvordan har du det?",
|
|
43
|
-
"If it is possible, postpone your planned exercise.": "Hvis det er muligt, udsæt din planlagte træning.",
|
|
44
|
-
"Instead of taking insulin": "I stedet for at tage insulin",
|
|
45
|
-
"Insulin recommendation": "Insulin anbefaling",
|
|
46
|
-
"Light": "Let",
|
|
47
|
-
"min": "min",
|
|
48
|
-
"Moderate": "Moderat",
|
|
49
|
-
"More than 15 minutes has passed since this calculation was started.": "Der er gået mere end 15 minutter siden udregningen blev startet.",
|
|
50
|
-
"NO": "NEJ",
|
|
51
|
-
"No": "Nej",
|
|
52
|
-
"No, return to dashboard": "Nej, tilbage til dashboard",
|
|
53
|
-
"OFF": "OFF",
|
|
54
|
-
"OK": "OK",
|
|
55
|
-
"Please go through the calculation steps with new measurements to ensure a safe recommendation.": "Gå venligst gennem udregningstrinnene igen med nye målinger for at sikre en sikker anbefaling.",
|
|
56
|
-
"Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?": "Hedia's anbefaling fra {day} kl. {time} blev ikke overført til din logbog.{0}Brugte du anbefalingen?",
|
|
57
|
-
"Recommended": "Anbefalet",
|
|
58
|
-
"Recommended amount of insulin": "Anbefalet enhed(er) af insulin",
|
|
59
|
-
"Remind me to remeasure in": "Påmind mig at genmåle om",
|
|
60
|
-
"Return to dashboard": "Tilbage til dashboard",
|
|
61
|
-
"Save data before closing?": "Vil du gemme din indtastning?",
|
|
62
|
-
"Save to logbook": "Gem i logbog",
|
|
63
|
-
"Start new calculation": "Start ny beregning",
|
|
64
|
-
"Total": "Sum",
|
|
65
|
-
"Transfer to logbook": "Overfør til logbog",
|
|
66
|
-
"Transferred to logbook": "Overført til logbog",
|
|
67
|
-
"Units": "Enheder",
|
|
68
|
-
"units": "enheder",
|
|
69
|
-
"Untitled Activity": "Unavngivet aktivitet",
|
|
70
|
-
"We recommend eating an additional:": "Vi anbefaler at spise yderligere:",
|
|
71
|
-
"Would you like to add this to your current calculation?": "Vil du gerne tilføje dette til din nuværende beregning?",
|
|
72
|
-
"Yes": "Ja",
|
|
73
|
-
"Yes, save to logbook": "Ja, gem i logbogen",
|
|
74
|
-
"You have a high blood glucose level.": "Du har højt blodsukker.",
|
|
75
|
-
"You should take rapid-acting insulin and measure ketones.": "Du burde tage hurtigtvirkende insulin og måle ketoner.",
|
|
76
|
-
"You will be reminded to measure your blood glucose level in 15 min.": "Du vil få en påmindelse om at måle dit blodsukker om 15 minutter.",
|
|
77
|
-
"Your blood glucose level is very low.": "Dit blodsukker er meget lavt.",
|
|
78
|
-
"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øg lægehjælp.",
|
|
79
|
-
"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}.": "Din anbefaling ville have været højere end {0} enheder af insulin men den er blevet begrænset af sikkerhedshensyn.{1} Hedia anbefaler aldrig mere end {SAFETY_INSULIN_LIMIT} enheder af insulin per beregning men på grund af den fysiske aktivitet du har indtastet er grænsen reduceret med yderligere {2}% til {3}.",
|
|
80
|
-
"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.": "Din anbefaling ville have været højere end {SAFETY_INSULIN_LIMIT} enheder af insulin men den er blevet begrænset af sikkerhedshensyn. Hedia anbefaler aldrig mere end {SAFETY_INSULIN_LIMIT} enheder af insulin per beregning.",
|
|
81
|
-
"Your saved data will be used for future calculations.": "Dine gemte indtastninger vil blive brugt til fremtidige beregninger."
|
|
82
|
-
}
|