@hedia/recommendation-screen 2.1.73 → 2.1.74-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/lib/commonjs/RecommendationScreen.js +768 -0
- package/lib/commonjs/RecommendationScreen.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/Close.js +20 -0
- package/lib/commonjs/assets/IconsSVG/Close.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/CloseOutlined.js +28 -0
- package/lib/commonjs/assets/IconsSVG/CloseOutlined.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/Edit.js +23 -0
- package/lib/commonjs/assets/IconsSVG/Edit.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/activity/Cycling.js +43 -0
- package/lib/commonjs/assets/IconsSVG/activity/Cycling.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/activity/Running.js +33 -0
- package/lib/commonjs/assets/IconsSVG/activity/Running.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/activity/Stretching.js +33 -0
- package/lib/commonjs/assets/IconsSVG/activity/Stretching.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/activity/Swimming.js +48 -0
- package/lib/commonjs/assets/IconsSVG/activity/Swimming.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/activity/Walking.js +38 -0
- package/lib/commonjs/assets/IconsSVG/activity/Walking.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/mood/Happy.js +34 -0
- package/lib/commonjs/assets/IconsSVG/mood/Happy.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/mood/Neutral.js +34 -0
- package/lib/commonjs/assets/IconsSVG/mood/Neutral.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/mood/Sad.js +34 -0
- package/lib/commonjs/assets/IconsSVG/mood/Sad.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/mood/SemiHappy.js +34 -0
- package/lib/commonjs/assets/IconsSVG/mood/SemiHappy.js.map +1 -0
- package/lib/commonjs/assets/IconsSVG/mood/SemiSad.js +34 -0
- package/lib/commonjs/assets/IconsSVG/mood/SemiSad.js.map +1 -0
- package/lib/commonjs/components/ExitModal.js +124 -0
- package/lib/commonjs/components/ExitModal.js.map +1 -0
- package/lib/commonjs/components/InfoBars.js +123 -0
- package/lib/commonjs/components/InfoBars.js.map +1 -0
- package/lib/commonjs/components/InvisibleNumberInput.js +150 -0
- package/lib/commonjs/components/InvisibleNumberInput.js.map +1 -0
- package/lib/commonjs/components/LineSeparator.js +27 -0
- package/lib/commonjs/components/LineSeparator.js.map +1 -0
- package/lib/commonjs/components/RecentInsulin.js +105 -0
- package/lib/commonjs/components/RecentInsulin.js.map +1 -0
- package/lib/commonjs/components/RecommendationModal.js +302 -0
- package/lib/commonjs/components/RecommendationModal.js.map +1 -0
- package/lib/commonjs/components/RecommendedCarbs.js +289 -0
- package/lib/commonjs/components/RecommendedCarbs.js.map +1 -0
- package/lib/commonjs/components/RecommendedInsulin.js +208 -0
- package/lib/commonjs/components/RecommendedInsulin.js.map +1 -0
- package/lib/commonjs/components/Remeasure.js +131 -0
- package/lib/commonjs/components/Remeasure.js.map +1 -0
- package/lib/commonjs/components/Text.js +25 -0
- package/lib/commonjs/components/Text.js.map +1 -0
- package/lib/commonjs/components/TimeoutModal.js +113 -0
- package/lib/commonjs/components/TimeoutModal.js.map +1 -0
- package/lib/commonjs/components/TransferToLogbook.js +83 -0
- package/lib/commonjs/components/TransferToLogbook.js.map +1 -0
- package/lib/commonjs/components/activity/Activity.js +112 -0
- package/lib/commonjs/components/activity/Activity.js.map +1 -0
- package/lib/commonjs/components/activity/ActivityIcon.js +86 -0
- package/lib/commonjs/components/activity/ActivityIcon.js.map +1 -0
- package/lib/commonjs/components/activity/ActivityIntensity.js +65 -0
- package/lib/commonjs/components/activity/ActivityIntensity.js.map +1 -0
- package/lib/commonjs/components/mood/Emotion.js +86 -0
- package/lib/commonjs/components/mood/Emotion.js.map +1 -0
- package/lib/commonjs/components/mood/MoodIcon.js +107 -0
- package/lib/commonjs/components/mood/MoodIcon.js.map +1 -0
- package/lib/commonjs/components/styles/fonts.js +154 -0
- package/lib/commonjs/components/styles/fonts.js.map +1 -0
- package/lib/commonjs/index.js +21 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/locales/da/translations.json +82 -0
- package/lib/commonjs/locales/de/translations.json +81 -0
- package/lib/commonjs/locales/en/translations.json +84 -0
- package/lib/commonjs/locales/es/translations.json +81 -0
- package/lib/commonjs/locales/fr/translations.json +81 -0
- package/lib/commonjs/locales/it/translations.json +81 -0
- package/lib/commonjs/locales/translate.js +63 -0
- package/lib/commonjs/locales/translate.js.map +1 -0
- package/lib/commonjs/types/enum.js +179 -0
- package/lib/commonjs/types/enum.js.map +1 -0
- package/lib/commonjs/types/types.js +6 -0
- package/lib/commonjs/types/types.js.map +1 -0
- package/lib/commonjs/utils/AttentionMessages.js +141 -0
- package/lib/commonjs/utils/AttentionMessages.js.map +1 -0
- package/lib/commonjs/utils/Constants.js +138 -0
- package/lib/commonjs/utils/Constants.js.map +1 -0
- package/lib/commonjs/utils/RecommendationError.js +116 -0
- package/lib/commonjs/utils/RecommendationError.js.map +1 -0
- package/lib/commonjs/utils/RecommendationUtils.js +212 -0
- package/lib/commonjs/utils/RecommendationUtils.js.map +1 -0
- package/lib/commonjs/utils/Translations.js +22 -0
- package/lib/commonjs/utils/Translations.js.map +1 -0
- package/lib/commonjs/utils/Utils.js +162 -0
- package/lib/commonjs/utils/Utils.js.map +1 -0
- package/lib/commonjs/utils/Validations.js +468 -0
- package/lib/commonjs/utils/Validations.js.map +1 -0
- package/lib/module/RecommendationScreen.js +758 -0
- package/lib/module/RecommendationScreen.js.map +1 -0
- package/lib/module/assets/IconsSVG/Close.js +11 -0
- package/lib/module/assets/IconsSVG/Close.js.map +1 -0
- package/lib/module/assets/IconsSVG/CloseOutlined.js +19 -0
- package/lib/module/assets/IconsSVG/CloseOutlined.js.map +1 -0
- package/lib/module/assets/IconsSVG/Edit.js +14 -0
- package/lib/module/assets/IconsSVG/Edit.js.map +1 -0
- package/lib/module/assets/IconsSVG/activity/Cycling.js +34 -0
- package/lib/module/assets/IconsSVG/activity/Cycling.js.map +1 -0
- package/lib/module/assets/IconsSVG/activity/Running.js +24 -0
- package/lib/module/assets/IconsSVG/activity/Running.js.map +1 -0
- package/lib/module/assets/IconsSVG/activity/Stretching.js +24 -0
- package/lib/module/assets/IconsSVG/activity/Stretching.js.map +1 -0
- package/lib/module/assets/IconsSVG/activity/Swimming.js +39 -0
- package/lib/module/assets/IconsSVG/activity/Swimming.js.map +1 -0
- package/lib/module/assets/IconsSVG/activity/Walking.js +29 -0
- package/lib/module/assets/IconsSVG/activity/Walking.js.map +1 -0
- package/lib/module/assets/IconsSVG/mood/Happy.js +25 -0
- package/lib/module/assets/IconsSVG/mood/Happy.js.map +1 -0
- package/lib/module/assets/IconsSVG/mood/Neutral.js +25 -0
- package/lib/module/assets/IconsSVG/mood/Neutral.js.map +1 -0
- package/lib/module/assets/IconsSVG/mood/Sad.js +25 -0
- package/lib/module/assets/IconsSVG/mood/Sad.js.map +1 -0
- package/lib/module/assets/IconsSVG/mood/SemiHappy.js +25 -0
- package/lib/module/assets/IconsSVG/mood/SemiHappy.js.map +1 -0
- package/lib/module/assets/IconsSVG/mood/SemiSad.js +25 -0
- package/lib/module/assets/IconsSVG/mood/SemiSad.js.map +1 -0
- package/lib/module/components/ExitModal.js +114 -0
- package/lib/module/components/ExitModal.js.map +1 -0
- package/lib/module/components/InfoBars.js +114 -0
- package/lib/module/components/InfoBars.js.map +1 -0
- package/lib/module/components/InvisibleNumberInput.js +142 -0
- package/lib/module/components/InvisibleNumberInput.js.map +1 -0
- package/lib/module/components/LineSeparator.js +19 -0
- package/lib/module/components/LineSeparator.js.map +1 -0
- package/lib/module/components/RecentInsulin.js +97 -0
- package/lib/module/components/RecentInsulin.js.map +1 -0
- package/lib/module/components/RecommendationModal.js +291 -0
- package/lib/module/components/RecommendationModal.js.map +1 -0
- package/lib/module/components/RecommendedCarbs.js +281 -0
- package/lib/module/components/RecommendedCarbs.js.map +1 -0
- package/lib/module/components/RecommendedInsulin.js +200 -0
- package/lib/module/components/RecommendedInsulin.js.map +1 -0
- package/lib/module/components/Remeasure.js +123 -0
- package/lib/module/components/Remeasure.js.map +1 -0
- package/lib/module/components/Text.js +16 -0
- package/lib/module/components/Text.js.map +1 -0
- package/lib/module/components/TimeoutModal.js +103 -0
- package/lib/module/components/TimeoutModal.js.map +1 -0
- package/lib/module/components/TransferToLogbook.js +75 -0
- package/lib/module/components/TransferToLogbook.js.map +1 -0
- package/lib/module/components/activity/Activity.js +104 -0
- package/lib/module/components/activity/Activity.js.map +1 -0
- package/lib/module/components/activity/ActivityIcon.js +78 -0
- package/lib/module/components/activity/ActivityIcon.js.map +1 -0
- package/lib/module/components/activity/ActivityIntensity.js +57 -0
- package/lib/module/components/activity/ActivityIntensity.js.map +1 -0
- package/lib/module/components/mood/Emotion.js +78 -0
- package/lib/module/components/mood/Emotion.js.map +1 -0
- package/lib/module/components/mood/MoodIcon.js +97 -0
- package/lib/module/components/mood/MoodIcon.js.map +1 -0
- package/lib/module/components/styles/fonts.js +145 -0
- package/lib/module/components/styles/fonts.js.map +1 -0
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/locales/da/translations.json +82 -0
- package/lib/module/locales/de/translations.json +81 -0
- package/lib/module/locales/en/translations.json +84 -0
- package/lib/module/locales/es/translations.json +81 -0
- package/lib/module/locales/fr/translations.json +81 -0
- package/lib/module/locales/it/translations.json +81 -0
- package/lib/module/locales/translate.js +55 -0
- package/lib/module/locales/translate.js.map +1 -0
- package/lib/module/types/enum.js +170 -0
- package/lib/module/types/enum.js.map +1 -0
- package/lib/module/types/types.js.map +1 -0
- package/lib/module/utils/AttentionMessages.js +131 -0
- package/lib/module/utils/AttentionMessages.js.map +1 -0
- package/{dist/src → lib/module}/utils/Constants.js +78 -35
- package/lib/module/utils/Constants.js.map +1 -0
- package/{dist/src → lib/module}/utils/RecommendationError.js +28 -6
- package/lib/module/utils/RecommendationError.js.map +1 -0
- package/{dist/src → lib/module}/utils/RecommendationUtils.js +89 -90
- package/lib/module/utils/RecommendationUtils.js.map +1 -0
- package/{dist/src → lib/module}/utils/Translations.js +5 -3
- package/lib/module/utils/Translations.js.map +1 -0
- package/lib/module/utils/Utils.js +155 -0
- package/lib/module/utils/Utils.js.map +1 -0
- package/{dist/src → lib/module}/utils/Validations.js +155 -128
- package/lib/module/utils/Validations.js.map +1 -0
- package/{dist/src → lib/typescript}/RecommendationScreen.d.ts +2 -1
- package/lib/typescript/RecommendationScreen.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/Close.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/Close.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/CloseOutlined.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/CloseOutlined.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/Edit.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/Edit.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/activity/Cycling.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/activity/Cycling.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/activity/Running.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/activity/Running.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/activity/Stretching.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/activity/Stretching.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/activity/Swimming.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/activity/Swimming.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/activity/Walking.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/activity/Walking.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/mood/Happy.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/mood/Happy.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/mood/Neutral.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/mood/Neutral.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/mood/Sad.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/mood/Sad.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/mood/SemiHappy.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/mood/SemiHappy.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/assets/IconsSVG/mood/SemiSad.d.ts +1 -0
- package/lib/typescript/assets/IconsSVG/mood/SemiSad.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/ExitModal.d.ts +1 -0
- package/lib/typescript/components/ExitModal.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/InfoBars.d.ts +1 -0
- package/lib/typescript/components/InfoBars.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/InvisibleNumberInput.d.ts +1 -0
- package/lib/typescript/components/InvisibleNumberInput.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/LineSeparator.d.ts +1 -0
- package/lib/typescript/components/LineSeparator.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/RecentInsulin.d.ts +1 -0
- package/lib/typescript/components/RecentInsulin.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/RecommendationModal.d.ts +1 -0
- package/lib/typescript/components/RecommendationModal.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/RecommendedCarbs.d.ts +1 -0
- package/lib/typescript/components/RecommendedCarbs.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/RecommendedInsulin.d.ts +1 -0
- package/lib/typescript/components/RecommendedInsulin.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/Remeasure.d.ts +1 -0
- package/lib/typescript/components/Remeasure.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/Text.d.ts +1 -0
- package/lib/typescript/components/Text.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/TimeoutModal.d.ts +1 -0
- package/lib/typescript/components/TimeoutModal.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/TransferToLogbook.d.ts +1 -0
- package/lib/typescript/components/TransferToLogbook.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/activity/Activity.d.ts +1 -0
- package/lib/typescript/components/activity/Activity.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/activity/ActivityIcon.d.ts +1 -0
- package/lib/typescript/components/activity/ActivityIcon.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/activity/ActivityIntensity.d.ts +1 -0
- package/lib/typescript/components/activity/ActivityIntensity.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/mood/Emotion.d.ts +1 -0
- package/lib/typescript/components/mood/Emotion.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/mood/MoodIcon.d.ts +1 -0
- package/lib/typescript/components/mood/MoodIcon.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/components/styles/fonts.d.ts +1 -0
- package/lib/typescript/components/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +5 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/locales/translate.d.ts +1 -0
- package/lib/typescript/locales/translate.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/types/enum.d.ts +1 -0
- package/lib/typescript/types/enum.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/types/types.d.ts +1 -0
- package/lib/typescript/types/types.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/utils/AttentionMessages.d.ts +1 -0
- package/lib/typescript/utils/AttentionMessages.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/utils/Constants.d.ts +1 -0
- package/lib/typescript/utils/Constants.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/utils/RecommendationError.d.ts +1 -0
- package/lib/typescript/utils/RecommendationError.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/utils/RecommendationUtils.d.ts +1 -0
- package/lib/typescript/utils/RecommendationUtils.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/utils/Translations.d.ts +1 -0
- package/lib/typescript/utils/Translations.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/utils/Utils.d.ts +1 -0
- package/lib/typescript/utils/Utils.d.ts.map +1 -0
- package/{dist/src → lib/typescript}/utils/Validations.d.ts +1 -0
- package/lib/typescript/utils/Validations.d.ts.map +1 -0
- package/package.json +27 -7
- package/src/RecommendationScreen.tsx +854 -0
- package/src/assets/IconsSVG/Close.tsx +13 -0
- package/src/assets/IconsSVG/CloseOutlined.tsx +23 -0
- package/src/assets/IconsSVG/Edit.tsx +16 -0
- package/src/assets/IconsSVG/activity/Cycling.tsx +41 -0
- package/src/assets/IconsSVG/activity/Running.tsx +29 -0
- package/src/assets/IconsSVG/activity/Stretching.tsx +29 -0
- package/src/assets/IconsSVG/activity/Swimming.tsx +47 -0
- package/src/assets/IconsSVG/activity/Walking.tsx +35 -0
- package/src/assets/IconsSVG/mood/Happy.tsx +30 -0
- package/src/assets/IconsSVG/mood/Neutral.tsx +30 -0
- package/src/assets/IconsSVG/mood/Sad.tsx +30 -0
- package/src/assets/IconsSVG/mood/SemiHappy.tsx +30 -0
- package/src/assets/IconsSVG/mood/SemiSad.tsx +30 -0
- package/src/components/ExitModal.tsx +134 -0
- package/src/components/InfoBars.tsx +122 -0
- package/src/components/InvisibleNumberInput.tsx +170 -0
- package/src/components/LineSeparator.tsx +29 -0
- package/src/components/RecentInsulin.tsx +109 -0
- package/src/components/RecommendationModal.tsx +319 -0
- package/src/components/RecommendedCarbs.tsx +303 -0
- package/src/components/RecommendedInsulin.tsx +219 -0
- package/src/components/Remeasure.tsx +135 -0
- package/src/components/Text.tsx +27 -0
- package/src/components/TimeoutModal.tsx +121 -0
- package/src/components/TransferToLogbook.tsx +92 -0
- package/src/components/activity/Activity.tsx +107 -0
- package/src/components/activity/ActivityIcon.tsx +77 -0
- package/src/components/activity/ActivityIntensity.tsx +67 -0
- package/src/components/mood/Emotion.tsx +97 -0
- package/src/components/mood/MoodIcon.tsx +91 -0
- package/src/components/styles/fonts.ts +145 -0
- package/src/index.ts +5 -0
- package/src/locales/da/translations.json +82 -0
- package/src/locales/de/translations.json +81 -0
- package/src/locales/en/translations.json +84 -0
- package/src/locales/es/translations.json +81 -0
- package/src/locales/fr/translations.json +81 -0
- package/src/locales/it/translations.json +81 -0
- package/src/locales/translate.ts +62 -0
- package/src/types/enum.ts +164 -0
- package/src/types/types.ts +19 -0
- package/src/utils/AttentionMessages.ts +167 -0
- package/src/utils/Constants.ts +77 -0
- package/src/utils/RecommendationError.ts +182 -0
- package/src/utils/RecommendationUtils.ts +232 -0
- package/src/utils/Translations.ts +17 -0
- package/src/utils/Utils.ts +156 -0
- package/src/utils/Validations.ts +490 -0
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -6
- package/dist/index.js.map +0 -1
- package/dist/src/RecommendationScreen.js +0 -537
- package/dist/src/RecommendationScreen.js.map +0 -1
- package/dist/src/assets/IconsSVG/Close.js +0 -7
- package/dist/src/assets/IconsSVG/Close.js.map +0 -1
- package/dist/src/assets/IconsSVG/CloseOutlined.js +0 -9
- package/dist/src/assets/IconsSVG/CloseOutlined.js.map +0 -1
- package/dist/src/assets/IconsSVG/Edit.js +0 -8
- package/dist/src/assets/IconsSVG/Edit.js.map +0 -1
- package/dist/src/assets/IconsSVG/activity/Cycling.js +0 -12
- package/dist/src/assets/IconsSVG/activity/Cycling.js.map +0 -1
- package/dist/src/assets/IconsSVG/activity/Running.js +0 -10
- package/dist/src/assets/IconsSVG/activity/Running.js.map +0 -1
- package/dist/src/assets/IconsSVG/activity/Stretching.js +0 -10
- package/dist/src/assets/IconsSVG/activity/Stretching.js.map +0 -1
- package/dist/src/assets/IconsSVG/activity/Swimming.js +0 -13
- package/dist/src/assets/IconsSVG/activity/Swimming.js.map +0 -1
- package/dist/src/assets/IconsSVG/activity/Walking.js +0 -11
- package/dist/src/assets/IconsSVG/activity/Walking.js.map +0 -1
- package/dist/src/assets/IconsSVG/mood/Happy.js +0 -11
- package/dist/src/assets/IconsSVG/mood/Happy.js.map +0 -1
- package/dist/src/assets/IconsSVG/mood/Neutral.js +0 -11
- package/dist/src/assets/IconsSVG/mood/Neutral.js.map +0 -1
- package/dist/src/assets/IconsSVG/mood/Sad.js +0 -11
- package/dist/src/assets/IconsSVG/mood/Sad.js.map +0 -1
- package/dist/src/assets/IconsSVG/mood/SemiHappy.js +0 -11
- package/dist/src/assets/IconsSVG/mood/SemiHappy.js.map +0 -1
- package/dist/src/assets/IconsSVG/mood/SemiSad.js +0 -11
- package/dist/src/assets/IconsSVG/mood/SemiSad.js.map +0 -1
- package/dist/src/components/ExitModal.js +0 -91
- package/dist/src/components/ExitModal.js.map +0 -1
- package/dist/src/components/InfoBars.js +0 -98
- package/dist/src/components/InfoBars.js.map +0 -1
- package/dist/src/components/InvisibleNumberInput.js +0 -123
- package/dist/src/components/InvisibleNumberInput.js.map +0 -1
- package/dist/src/components/LineSeparator.js +0 -17
- package/dist/src/components/LineSeparator.js.map +0 -1
- package/dist/src/components/RecentInsulin.js +0 -90
- package/dist/src/components/RecentInsulin.js.map +0 -1
- package/dist/src/components/RecommendationModal.js +0 -241
- package/dist/src/components/RecommendationModal.js.map +0 -1
- package/dist/src/components/RecommendedCarbs.js +0 -234
- package/dist/src/components/RecommendedCarbs.js.map +0 -1
- package/dist/src/components/RecommendedInsulin.js +0 -166
- package/dist/src/components/RecommendedInsulin.js.map +0 -1
- package/dist/src/components/Remeasure.js +0 -103
- package/dist/src/components/Remeasure.js.map +0 -1
- package/dist/src/components/Text.js +0 -14
- package/dist/src/components/Text.js.map +0 -1
- package/dist/src/components/TimeoutModal.js +0 -84
- package/dist/src/components/TimeoutModal.js.map +0 -1
- package/dist/src/components/TransferToLogbook.js +0 -68
- package/dist/src/components/TransferToLogbook.js.map +0 -1
- package/dist/src/components/activity/Activity.js +0 -93
- package/dist/src/components/activity/Activity.js.map +0 -1
- package/dist/src/components/activity/ActivityIcon.js +0 -66
- package/dist/src/components/activity/ActivityIcon.js.map +0 -1
- package/dist/src/components/activity/ActivityIntensity.js +0 -55
- package/dist/src/components/activity/ActivityIntensity.js.map +0 -1
- package/dist/src/components/mood/Emotion.js +0 -69
- package/dist/src/components/mood/Emotion.js.map +0 -1
- package/dist/src/components/mood/MoodIcon.js +0 -68
- package/dist/src/components/mood/MoodIcon.js.map +0 -1
- package/dist/src/components/styles/fonts.js +0 -145
- package/dist/src/components/styles/fonts.js.map +0 -1
- package/dist/src/locales/da/translations.json +0 -82
- package/dist/src/locales/de/translations.json +0 -81
- package/dist/src/locales/en/translations.json +0 -84
- package/dist/src/locales/es/translations.json +0 -81
- package/dist/src/locales/fr/translations.json +0 -81
- package/dist/src/locales/it/translations.json +0 -81
- package/dist/src/locales/translate.js +0 -53
- package/dist/src/locales/translate.js.map +0 -1
- package/dist/src/types/enum.js +0 -154
- package/dist/src/types/enum.js.map +0 -1
- package/dist/src/types/types.js.map +0 -1
- package/dist/src/utils/AttentionMessages.js +0 -123
- package/dist/src/utils/AttentionMessages.js.map +0 -1
- package/dist/src/utils/Constants.js.map +0 -1
- package/dist/src/utils/RecommendationError.js.map +0 -1
- package/dist/src/utils/RecommendationUtils.js.map +0 -1
- package/dist/src/utils/Translations.js.map +0 -1
- package/dist/src/utils/Utils.js +0 -142
- package/dist/src/utils/Utils.js.map +0 -1
- package/dist/src/utils/Validations.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/{dist/src → lib/module}/types/types.js +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
/** Namespace containing data required by component testing */
|
|
3
|
+
export let Testing;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Indicator of which error has happened.
|
|
7
|
+
* See the corresponding RecommendationError {@link RecommendationError} for details.
|
|
8
|
+
*/
|
|
9
|
+
(function (_Testing) {
|
|
10
|
+
let Id;
|
|
11
|
+
(function (_Id) {
|
|
12
|
+
let RecommendationScreenTestIds;
|
|
13
|
+
(function (RecommendationScreenTestIds) {
|
|
14
|
+
RecommendationScreenTestIds["RecommendationScrollView"] = "recommendation-screen-scroll-view";
|
|
15
|
+
})(RecommendationScreenTestIds || (RecommendationScreenTestIds = {}));
|
|
16
|
+
_Id.RecommendationScreenTestIds = RecommendationScreenTestIds;
|
|
17
|
+
let ActivityTestIds;
|
|
18
|
+
(function (ActivityTestIds) {
|
|
19
|
+
ActivityTestIds["ActivityDuration"] = "activity-duration-minutes";
|
|
20
|
+
ActivityTestIds["ActivityReduction"] = "activity-reduction-percentage";
|
|
21
|
+
})(ActivityTestIds || (ActivityTestIds = {}));
|
|
22
|
+
_Id.ActivityTestIds = ActivityTestIds;
|
|
23
|
+
let RecentInsulinTestIds;
|
|
24
|
+
(function (RecentInsulinTestIds) {
|
|
25
|
+
RecentInsulinTestIds["No"] = "recent-insulin-no";
|
|
26
|
+
RecentInsulinTestIds["Yes"] = "recent-insulin-yes";
|
|
27
|
+
})(RecentInsulinTestIds || (RecentInsulinTestIds = {}));
|
|
28
|
+
_Id.RecentInsulinTestIds = RecentInsulinTestIds;
|
|
29
|
+
let RecommendedCarbsTestIds;
|
|
30
|
+
(function (RecommendedCarbsTestIds) {
|
|
31
|
+
RecommendedCarbsTestIds["RecommendedCarbs"] = "recommended-carbs";
|
|
32
|
+
RecommendedCarbsTestIds["EditRecommendedCarbs"] = "edit-recommended-carbs";
|
|
33
|
+
RecommendedCarbsTestIds["InvisibleCarbInput"] = "invisible-recommended-carbs-input";
|
|
34
|
+
RecommendedCarbsTestIds["EnteredCarbs"] = "entered-carbs";
|
|
35
|
+
RecommendedCarbsTestIds["RemoveRecommendation"] = "remove-carb-recommendation";
|
|
36
|
+
RecommendedCarbsTestIds["TotalCarbs"] = "total-carbs";
|
|
37
|
+
})(RecommendedCarbsTestIds || (RecommendedCarbsTestIds = {}));
|
|
38
|
+
_Id.RecommendedCarbsTestIds = RecommendedCarbsTestIds;
|
|
39
|
+
let RecommendedInsulinTestIds;
|
|
40
|
+
(function (RecommendedInsulinTestIds) {
|
|
41
|
+
RecommendedInsulinTestIds["EditRecommendedInsulinIcon"] = "edit-recommended-insulin-icon";
|
|
42
|
+
RecommendedInsulinTestIds["EditRecommendedInsulin"] = "edit-recommended-insulin";
|
|
43
|
+
RecommendedInsulinTestIds["InvisibleInsulinInput"] = "invisible-recommended-insulin-input";
|
|
44
|
+
RecommendedInsulinTestIds["ShownInsulinText"] = "shown-insulin-text";
|
|
45
|
+
})(RecommendedInsulinTestIds || (RecommendedInsulinTestIds = {}));
|
|
46
|
+
_Id.RecommendedInsulinTestIds = RecommendedInsulinTestIds;
|
|
47
|
+
let RecommendationModalTestIds;
|
|
48
|
+
(function (RecommendationModalTestIds) {
|
|
49
|
+
RecommendationModalTestIds["DeclineCarbs"] = "recommendation-modal-decline-carbs";
|
|
50
|
+
RecommendationModalTestIds["AcceptCarbs"] = "recommendation-modal-accept-carbs";
|
|
51
|
+
RecommendationModalTestIds["OkButton"] = "recommendation-modal-ok-button";
|
|
52
|
+
RecommendationModalTestIds["LimitationOkButton"] = "limitation-message-ok-button";
|
|
53
|
+
RecommendationModalTestIds["SuggestedCarbs"] = "recommendation-modal-suggested-carbs";
|
|
54
|
+
})(RecommendationModalTestIds || (RecommendationModalTestIds = {}));
|
|
55
|
+
_Id.RecommendationModalTestIds = RecommendationModalTestIds;
|
|
56
|
+
let RemeasureTestIds;
|
|
57
|
+
(function (RemeasureTestIds) {
|
|
58
|
+
RemeasureTestIds["RemeasureSlider"] = "remeasure-slider";
|
|
59
|
+
RemeasureTestIds["RemeasureHours"] = "remeasure-hours";
|
|
60
|
+
})(RemeasureTestIds || (RemeasureTestIds = {}));
|
|
61
|
+
_Id.RemeasureTestIds = RemeasureTestIds;
|
|
62
|
+
let TransferToLogbookTestIds;
|
|
63
|
+
(function (TransferToLogbookTestIds) {
|
|
64
|
+
TransferToLogbookTestIds["TransferButton"] = "transfer-to-logbook-button";
|
|
65
|
+
})(TransferToLogbookTestIds || (TransferToLogbookTestIds = {}));
|
|
66
|
+
_Id.TransferToLogbookTestIds = TransferToLogbookTestIds;
|
|
67
|
+
let ExitModalTestIds;
|
|
68
|
+
(function (ExitModalTestIds) {
|
|
69
|
+
ExitModalTestIds["ExitButton"] = "exit-two-option-modal";
|
|
70
|
+
ExitModalTestIds["FirstOption"] = "first-option-button";
|
|
71
|
+
ExitModalTestIds["SecondOption"] = "second-option-button";
|
|
72
|
+
})(ExitModalTestIds || (ExitModalTestIds = {}));
|
|
73
|
+
_Id.ExitModalTestIds = ExitModalTestIds;
|
|
74
|
+
let TimeOutModalTestIds;
|
|
75
|
+
(function (TimeOutModalTestIds) {
|
|
76
|
+
TimeOutModalTestIds["ExitButton"] = "exit-two-option-modal";
|
|
77
|
+
TimeOutModalTestIds["FirstOption"] = "first-option-button";
|
|
78
|
+
TimeOutModalTestIds["SecondOption"] = "second-option-button";
|
|
79
|
+
})(TimeOutModalTestIds || (TimeOutModalTestIds = {}));
|
|
80
|
+
_Id.TimeOutModalTestIds = TimeOutModalTestIds;
|
|
81
|
+
let InfoBarTestIds;
|
|
82
|
+
(function (_InfoBarTestIds) {
|
|
83
|
+
let Value;
|
|
84
|
+
(function (Value) {
|
|
85
|
+
Value["BloodKetone"] = "blood-ketone-value";
|
|
86
|
+
Value["BloodGlucose"] = "blood-glucose-value";
|
|
87
|
+
Value["ActiveInsulin"] = "active-insulin-value";
|
|
88
|
+
})(Value || (Value = {}));
|
|
89
|
+
_InfoBarTestIds.Value = Value;
|
|
90
|
+
let Label;
|
|
91
|
+
(function (Label) {
|
|
92
|
+
Label["BloodKetone"] = "blood-ketone-label";
|
|
93
|
+
Label["BloodGlucose"] = "blood-glucose-label";
|
|
94
|
+
Label["ActiveInsulin"] = "active-insulin-label";
|
|
95
|
+
})(Label || (Label = {}));
|
|
96
|
+
_InfoBarTestIds.Label = Label;
|
|
97
|
+
let Unit;
|
|
98
|
+
(function (Unit) {
|
|
99
|
+
Unit["BloodKetone"] = "blood-ketone-unit";
|
|
100
|
+
Unit["BloodGlucose"] = "blood-glucose-unit";
|
|
101
|
+
Unit["ActiveInsulin"] = "active-insulin-unit";
|
|
102
|
+
})(Unit || (Unit = {}));
|
|
103
|
+
_InfoBarTestIds.Unit = Unit;
|
|
104
|
+
})(InfoBarTestIds || (InfoBarTestIds = _Id.InfoBarTestIds || (_Id.InfoBarTestIds = {})));
|
|
105
|
+
})(Id || (Id = _Testing.Id || (_Testing.Id = {})));
|
|
106
|
+
let Types;
|
|
107
|
+
(function (_Types) {})(Types || (Types = _Testing.Types || (_Testing.Types = {})));
|
|
108
|
+
})(Testing || (Testing = {}));
|
|
109
|
+
export let RecommendationErrorEnum;
|
|
110
|
+
|
|
111
|
+
/** Indicates the category of the user’s blood glucose level. */
|
|
112
|
+
(function (RecommendationErrorEnum) {
|
|
113
|
+
RecommendationErrorEnum[RecommendationErrorEnum["ActivityDuration"] = 0] = "ActivityDuration";
|
|
114
|
+
RecommendationErrorEnum[RecommendationErrorEnum["ActivityTargetBGL"] = 1] = "ActivityTargetBGL";
|
|
115
|
+
RecommendationErrorEnum[RecommendationErrorEnum["ActivitySettings"] = 2] = "ActivitySettings";
|
|
116
|
+
RecommendationErrorEnum[RecommendationErrorEnum["ActivityDate"] = 3] = "ActivityDate";
|
|
117
|
+
RecommendationErrorEnum[RecommendationErrorEnum["ActivityIntensity"] = 4] = "ActivityIntensity";
|
|
118
|
+
RecommendationErrorEnum[RecommendationErrorEnum["ActivityType"] = 5] = "ActivityType";
|
|
119
|
+
RecommendationErrorEnum[RecommendationErrorEnum["BolusInsulinDose"] = 6] = "BolusInsulinDose";
|
|
120
|
+
RecommendationErrorEnum[RecommendationErrorEnum["BolusInsulinSecondsPassed"] = 7] = "BolusInsulinSecondsPassed";
|
|
121
|
+
RecommendationErrorEnum[RecommendationErrorEnum["RecentBolus"] = 8] = "RecentBolus";
|
|
122
|
+
RecommendationErrorEnum[RecommendationErrorEnum["CarbohydrateLimit"] = 9] = "CarbohydrateLimit";
|
|
123
|
+
RecommendationErrorEnum[RecommendationErrorEnum["InsulinSensitivity"] = 10] = "InsulinSensitivity";
|
|
124
|
+
RecommendationErrorEnum[RecommendationErrorEnum["InsulinToCarbsRatio"] = 11] = "InsulinToCarbsRatio";
|
|
125
|
+
RecommendationErrorEnum[RecommendationErrorEnum["LatestLogbook6HoursBGL"] = 12] = "LatestLogbook6HoursBGL";
|
|
126
|
+
RecommendationErrorEnum[RecommendationErrorEnum["CurrentBGL"] = 13] = "CurrentBGL";
|
|
127
|
+
RecommendationErrorEnum[RecommendationErrorEnum["CurrentBKL"] = 14] = "CurrentBKL";
|
|
128
|
+
RecommendationErrorEnum[RecommendationErrorEnum["TargetBGL"] = 15] = "TargetBGL";
|
|
129
|
+
RecommendationErrorEnum[RecommendationErrorEnum["UserReminder"] = 16] = "UserReminder";
|
|
130
|
+
RecommendationErrorEnum[RecommendationErrorEnum["Language"] = 17] = "Language";
|
|
131
|
+
RecommendationErrorEnum[RecommendationErrorEnum["InjectionMethod"] = 18] = "InjectionMethod";
|
|
132
|
+
RecommendationErrorEnum[RecommendationErrorEnum["BloodKetoneUnit"] = 19] = "BloodKetoneUnit";
|
|
133
|
+
RecommendationErrorEnum[RecommendationErrorEnum["BloodGlucoseUnit"] = 20] = "BloodGlucoseUnit";
|
|
134
|
+
RecommendationErrorEnum[RecommendationErrorEnum["BloodKetoneProps"] = 21] = "BloodKetoneProps";
|
|
135
|
+
})(RecommendationErrorEnum || (RecommendationErrorEnum = {}));
|
|
136
|
+
export let BgLevel;
|
|
137
|
+
|
|
138
|
+
/** The possible initial recommendation times with values in hours. */
|
|
139
|
+
(function (BgLevel) {
|
|
140
|
+
BgLevel[BgLevel["SevereHypoglycemia"] = 0] = "SevereHypoglycemia";
|
|
141
|
+
BgLevel[BgLevel["Hypoglycemia"] = 1] = "Hypoglycemia";
|
|
142
|
+
BgLevel[BgLevel["MildHypoglycemia"] = 2] = "MildHypoglycemia";
|
|
143
|
+
BgLevel[BgLevel["Normoglycemia"] = 3] = "Normoglycemia";
|
|
144
|
+
BgLevel[BgLevel["NormoglycemiaUnder5MMOL"] = 4] = "NormoglycemiaUnder5MMOL";
|
|
145
|
+
BgLevel[BgLevel["MildHyperglycemia"] = 5] = "MildHyperglycemia";
|
|
146
|
+
BgLevel[BgLevel["Hyperglycemia"] = 6] = "Hyperglycemia";
|
|
147
|
+
BgLevel[BgLevel["SevereHyperglycemia"] = 7] = "SevereHyperglycemia";
|
|
148
|
+
BgLevel[BgLevel["UnsupportedBGLevel"] = 8] = "UnsupportedBGLevel";
|
|
149
|
+
BgLevel[BgLevel["BGLevelNotProvided"] = 9] = "BGLevelNotProvided";
|
|
150
|
+
})(BgLevel || (BgLevel = {}));
|
|
151
|
+
export let RecommendationReminders;
|
|
152
|
+
(function (RecommendationReminders) {
|
|
153
|
+
RecommendationReminders[RecommendationReminders["ReminderOff"] = 0] = "ReminderOff";
|
|
154
|
+
RecommendationReminders[RecommendationReminders["Reminder15Minutes"] = 0.25] = "Reminder15Minutes";
|
|
155
|
+
RecommendationReminders[RecommendationReminders["Reminder60Minutes"] = 1] = "Reminder60Minutes";
|
|
156
|
+
RecommendationReminders[RecommendationReminders["HediaReminderDefault"] = 1.5] = "HediaReminderDefault";
|
|
157
|
+
})(RecommendationReminders || (RecommendationReminders = {}));
|
|
158
|
+
export let ExitModalActions;
|
|
159
|
+
(function (ExitModalActions) {
|
|
160
|
+
ExitModalActions["CloseCalculation"] = "CloseCalculation";
|
|
161
|
+
ExitModalActions["Transfer"] = "Transfer";
|
|
162
|
+
ExitModalActions["Hide"] = "Hide";
|
|
163
|
+
})(ExitModalActions || (ExitModalActions = {}));
|
|
164
|
+
export let TimeoutModalActions;
|
|
165
|
+
(function (TimeoutModalActions) {
|
|
166
|
+
TimeoutModalActions["CloseCalculation"] = "CloseCalculation";
|
|
167
|
+
TimeoutModalActions["RestartCalculation"] = "RestartCalculation";
|
|
168
|
+
TimeoutModalActions["Transfer"] = "Transfer";
|
|
169
|
+
})(TimeoutModalActions || (TimeoutModalActions = {}));
|
|
170
|
+
//# sourceMappingURL=enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Testing","_Testing","Id","_Id","RecommendationScreenTestIds","ActivityTestIds","RecentInsulinTestIds","RecommendedCarbsTestIds","RecommendedInsulinTestIds","RecommendationModalTestIds","RemeasureTestIds","TransferToLogbookTestIds","ExitModalTestIds","TimeOutModalTestIds","InfoBarTestIds","_InfoBarTestIds","Value","Label","Unit","Types","_Types","RecommendationErrorEnum","BgLevel","RecommendationReminders","ExitModalActions","TimeoutModalActions"],"sourceRoot":"../../../src","sources":["types/enum.ts"],"mappings":"AAAA;AACA;AACA,WAAAA,OAAA;;AAoGA;AACA;AACA;AACA;AAHA,WAAAC,QAAA;EAAA,IAAAC,EAAA;EAAA,WAAAC,GAAA;IAAA,IAjGcC,2BAA2B;IAAA,WAA3BA,2BAA2B;MAA3BA,2BAA2B;IAAA,GAA3BA,2BAA2B,KAA3BA,2BAA2B;IAAAD,GAAA,CAAAC,2BAAA,GAAAA,2BAAA;IAAA,IAI3BC,eAAe;IAAA,WAAfA,eAAe;MAAfA,eAAe;MAAfA,eAAe;IAAA,GAAfA,eAAe,KAAfA,eAAe;IAAAF,GAAA,CAAAE,eAAA,GAAAA,eAAA;IAAA,IAKfC,oBAAoB;IAAA,WAApBA,oBAAoB;MAApBA,oBAAoB;MAApBA,oBAAoB;IAAA,GAApBA,oBAAoB,KAApBA,oBAAoB;IAAAH,GAAA,CAAAG,oBAAA,GAAAA,oBAAA;IAAA,IAKpBC,uBAAuB;IAAA,WAAvBA,uBAAuB;MAAvBA,uBAAuB;MAAvBA,uBAAuB;MAAvBA,uBAAuB;MAAvBA,uBAAuB;MAAvBA,uBAAuB;MAAvBA,uBAAuB;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"../../../src","sources":["types/types.ts"],"mappings":""}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
import { BolusCalculator } from "@hedia/types";
|
|
3
|
+
import { t } from "../locales/translate";
|
|
4
|
+
|
|
5
|
+
/** Provides methods for getting variants of attention messages */
|
|
6
|
+
export const AttentionMessage = {
|
|
7
|
+
/**
|
|
8
|
+
* @return Concatenation of:
|
|
9
|
+
* {@link Messages.VeryLowBGL} +
|
|
10
|
+
* {@link Messages.Reminder15Minutes}
|
|
11
|
+
*/
|
|
12
|
+
SevereHypoglycemia: () => `${Messages.VeryLowBGL()}${`\n`}${Messages.Reminder15Minutes()}`,
|
|
13
|
+
/**
|
|
14
|
+
* @return Concatenation of:
|
|
15
|
+
* {@link Messages.LowBGL} +
|
|
16
|
+
* {@link Messages.Reminder15Minutes}
|
|
17
|
+
*/
|
|
18
|
+
Hypoglycemia: () => `${Messages.LowBGL()}${`\n`}${Messages.Reminder15Minutes()}`,
|
|
19
|
+
/** @return The value of: {@link Messages.Reminder15Minutes} */
|
|
20
|
+
MildHypoglycemia: () => Messages.Reminder15Minutes(),
|
|
21
|
+
/** @return The value of: {@link Messages.PostponePhysicalActivityUnder5MMOL} */
|
|
22
|
+
NormoglycemiaActivityUnder5MMOL: () => Messages.PostponePhysicalActivityUnder5MMOL(),
|
|
23
|
+
/**
|
|
24
|
+
* @return Concatenation of:
|
|
25
|
+
* {@link Messages.HighBGL} +
|
|
26
|
+
* {@link Messages.InsulinKetones} +
|
|
27
|
+
* {@link Messages.Reminder15Minutes} +
|
|
28
|
+
* {@link Messages.PostponePhysicalActivity}
|
|
29
|
+
*/
|
|
30
|
+
HyperglycemiaActivity: () => `${Messages.HighBGL()}${`\n`}${Messages.InsulinKetones()}${`\n`}${Messages.Reminder15Minutes()}${`\n`}${Messages.PostponePhysicalActivity()}`,
|
|
31
|
+
/**
|
|
32
|
+
* @return Concatenation of:
|
|
33
|
+
* {@link Messages.HighBGL} +
|
|
34
|
+
* {@link Messages.InsulinKetones}
|
|
35
|
+
*/
|
|
36
|
+
SevereHyperglycemia: () => `${Messages.HighBGL()}${`\n`}${Messages.InsulinKetones()}${`\n`}`,
|
|
37
|
+
/**
|
|
38
|
+
* @return Concatenation of:
|
|
39
|
+
* {@link Messages.HighBGL} +
|
|
40
|
+
* {@link Messages.InsulinKetones} +
|
|
41
|
+
* {@link Messages.Reminder15Minutes} +
|
|
42
|
+
* {@link Messages.PostponePhysicalActivity}
|
|
43
|
+
*/
|
|
44
|
+
SevereHyperglycemiaActivity: () => `${Messages.HighBGL()}${`\n`}${Messages.InsulinKetones()}${`\n`}${Messages.Reminder15Minutes()}${`\n`}${Messages.PostponePhysicalActivity()}`,
|
|
45
|
+
/** no message provided for this level */
|
|
46
|
+
BGLevelNotProvided: null,
|
|
47
|
+
/** no message provided for this level*/
|
|
48
|
+
Hyperglycemia: null,
|
|
49
|
+
/** no message provided for this level */
|
|
50
|
+
MildHyperglycemia: null,
|
|
51
|
+
/** no message provided for this level */
|
|
52
|
+
Normoglycemia: null,
|
|
53
|
+
/** no message provided for this level */
|
|
54
|
+
NormoglycemiaUnder5MMOL: null,
|
|
55
|
+
/** no message provided for this level */
|
|
56
|
+
UnsupportedBGLevel: null
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @param message The message to append the {@link Messages.PostponePhysicalActivityUnder5MMOL} to
|
|
61
|
+
* @returns The initial messaged concatenated with the {@link Messages.PostponePhysicalActivityUnder5MMOL}
|
|
62
|
+
*/
|
|
63
|
+
export function addPostponeActivityMessageUnder5MMOL(message) {
|
|
64
|
+
return `${message}${`\n`}${Messages.PostponePhysicalActivityUnder5MMOL()}`;
|
|
65
|
+
}
|
|
66
|
+
const SAFETY_INSULIN_LIMIT = BolusCalculator.Constants.SAFETY_INSULIN_LIMIT;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Calculate the limited insulin value based on the physical activity reduction value
|
|
70
|
+
* @param reduction The reduction percentage an activity reduce the total insulin intake
|
|
71
|
+
* @returns The limited insulin value.
|
|
72
|
+
*/
|
|
73
|
+
export function getLimitedValue(reduction) {
|
|
74
|
+
return SAFETY_INSULIN_LIMIT - SAFETY_INSULIN_LIMIT * reduction;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Provides methods for getting strings for composing attention messages and other important communications to the user. */
|
|
78
|
+
export class Messages {
|
|
79
|
+
/** Inform the user that their BGL is very low and what they should do about it. */
|
|
80
|
+
static VeryLowBGL = () => t(`Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.`);
|
|
81
|
+
/** Inform the user that their BGL is very low. */
|
|
82
|
+
static LowBGL = () => t(`Your blood glucose level is very low.`);
|
|
83
|
+
/** Inform the user that they will be reminded to remeasure their BGL soon. */
|
|
84
|
+
static Reminder15Minutes = () => t(`You will be reminded to measure your blood glucose level in 15 min.`);
|
|
85
|
+
/** Encourages the user to postpone exercise. Specifically when their BGL is high. */
|
|
86
|
+
static PostponePhysicalActivity = () => t(`If it is possible, postpone your planned exercise.`);
|
|
87
|
+
/** Encourages the user to postpone exercise. Specifically when their BGL is low. */
|
|
88
|
+
static PostponePhysicalActivityUnder5MMOL = () => t(`Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.`);
|
|
89
|
+
/** Inform about high BGL. */
|
|
90
|
+
static HighBGL = () => t(`You have a high blood glucose level.`);
|
|
91
|
+
/** Encourage user to measure ketones. */
|
|
92
|
+
static InsulinKetones = () => t(`You should take rapid-acting insulin and measure ketones.`);
|
|
93
|
+
/** Inform the user that their insulin recommendation was limited for safety. */
|
|
94
|
+
static RecommendationWasLimited = () => t(`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.`, {
|
|
95
|
+
SAFETY_INSULIN_LIMIT
|
|
96
|
+
});
|
|
97
|
+
/** Inform the user that their insulin recommendation was limited for safety in combination with an activity. */
|
|
98
|
+
static RecommendationWasLimitedActivity = activityReduction => t(`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}.`, {
|
|
99
|
+
0: getLimitedValue(activityReduction),
|
|
100
|
+
1: `\n\n`,
|
|
101
|
+
SAFETY_INSULIN_LIMIT,
|
|
102
|
+
2: (activityReduction * 100).toFixed(0),
|
|
103
|
+
3: getLimitedValue(activityReduction)
|
|
104
|
+
});
|
|
105
|
+
/** Inform the user that the insulin amount they entered is above HDA’s safety limit. */
|
|
106
|
+
static InsulinInputWasLimited = activityReduction => activityReduction ? t(`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.`, {
|
|
107
|
+
SAFETY_INSULIN_LIMIT,
|
|
108
|
+
0: (activityReduction * 100).toFixed(0),
|
|
109
|
+
1: getLimitedValue(activityReduction)
|
|
110
|
+
}) : t(`Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.`, {
|
|
111
|
+
SAFETY_INSULIN_LIMIT
|
|
112
|
+
});
|
|
113
|
+
/** Title for the modal that informs the user that their calculation is too old. */
|
|
114
|
+
static TimeoutPrompTitle = () => t(`More than 15 minutes has passed since this calculation was started.`);
|
|
115
|
+
/**
|
|
116
|
+
* Inform the user that their recommendation calculation is too old.
|
|
117
|
+
* Variant to show when they didn’t see the actual insulin recommendation because they didn’t tell whether they injected insulin recently.
|
|
118
|
+
*/
|
|
119
|
+
static TimeoutRecommendationNotVisible = () => t(`Please go through the calculation steps with new measurements to ensure a safe recommendation.`);
|
|
120
|
+
/** Inform the user that their recommendation calculation is too old. */
|
|
121
|
+
static TimeoutRecommendationVisible = date => {
|
|
122
|
+
const day = moment(date).format(`LL`);
|
|
123
|
+
const time = moment(date).format(`HH:mm`);
|
|
124
|
+
return t(`Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?`, {
|
|
125
|
+
day,
|
|
126
|
+
time,
|
|
127
|
+
0: `\n`
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=AttentionMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["moment","BolusCalculator","t","AttentionMessage","SevereHypoglycemia","Messages","VeryLowBGL","Reminder15Minutes","Hypoglycemia","LowBGL","MildHypoglycemia","NormoglycemiaActivityUnder5MMOL","PostponePhysicalActivityUnder5MMOL","HyperglycemiaActivity","HighBGL","InsulinKetones","PostponePhysicalActivity","SevereHyperglycemia","SevereHyperglycemiaActivity","BGLevelNotProvided","Hyperglycemia","MildHyperglycemia","Normoglycemia","NormoglycemiaUnder5MMOL","UnsupportedBGLevel","addPostponeActivityMessageUnder5MMOL","message","SAFETY_INSULIN_LIMIT","Constants","getLimitedValue","reduction","RecommendationWasLimited","RecommendationWasLimitedActivity","activityReduction","toFixed","InsulinInputWasLimited","TimeoutPrompTitle","TimeoutRecommendationNotVisible","TimeoutRecommendationVisible","date","day","format","time"],"sourceRoot":"../../../src","sources":["utils/AttentionMessages.ts"],"mappings":"AAAA,OAAOA,MAAM,MAAM,QAAQ;AAE3B,SAASC,eAAe,QAAQ,cAAc;AAE9C,SAASC,CAAC,QAAQ,sBAAsB;;AAExC;AACA,OAAO,MAAMC,gBAAgB,GAAG;EAC/B;AACD;AACA;AACA;AACA;EACCC,kBAAkB,EAAEA,CAAA,KAAe,GAAEC,QAAQ,CAACC,UAAU,EAAG,GAAG,IAAI,GAAED,QAAQ,CAACE,iBAAiB,EAAG,EAAC;EAElG;AACD;AACA;AACA;AACA;EACCC,YAAY,EAAEA,CAAA,KAAe,GAAEH,QAAQ,CAACI,MAAM,EAAG,GAAG,IAAI,GAAEJ,QAAQ,CAACE,iBAAiB,EAAG,EAAC;EAExF;EACAG,gBAAgB,EAAEA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iBAAiB;EACrC,CAAC,CACA,GACD/B,CAAC,CAAE,2FAA0F,EAAE;IAC/FyB;EACA,CAAC,CAAC;EACN;EACA,OAAcS,iBAAiB,GAAGA,CAAA,KACjClC,CAAC,CAAE,qEAAoE,CAAC;EACzE;AACD;AACA;AACA;EACC,OAAcmC,+BAA+B,GAAGA,CAAA,KAC/CnC,CAAC,CAAE,gGAA+F,CAAC;EACpG;EACA,OAAcoC,4BAA4B,GAAIC,IAAU,IAAa;IACpE,MAAMC,GAAG,GAAGxC,MAAM,CAACuC,IAAI,CAAC,CAACE,MAAM,CAAE,IAAG,CAAC;IACrC,MAAMC,IAAI,GAAG1C,MAAM,CAACuC,IAAI,CAAC,CAACE,MAAM,CAAE,OAAM,CAAC;IACzC,OAAOvC,CAAC,CACN,2GAA0G,EAC3G;MAAEsC,GAAG;MAAEE,IAAI;MAAE,CAAC,EAAG;IAAI,CAAC,CACtB;EACF,CAAC;AACF"}
|
|
@@ -1,68 +1,111 @@
|
|
|
1
1
|
import { BolusCalculator } from "@hedia/types";
|
|
2
2
|
/** Reusable color definitions. */
|
|
3
3
|
export const colors = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
blue: `#578aff`,
|
|
5
|
+
darkBlue: `#0F1231`,
|
|
6
|
+
darkBlueX: `#1B1F48`,
|
|
7
|
+
semiDarkBlue: `#1B1F48`,
|
|
8
|
+
dustyBlue: `#C5D0E7`,
|
|
9
|
+
dustyDarkBlue: `#353A71`,
|
|
10
|
+
fadeBlue: `#8388C8`,
|
|
11
|
+
lightBlue: `#C8CCFA`,
|
|
12
|
+
mistBlue: `#4A5B86`,
|
|
13
|
+
purple: `#a200ff`,
|
|
14
|
+
deepPurple: `#571BD8`,
|
|
15
|
+
teal: `#01FFFC`,
|
|
16
|
+
gradientMain: [`#8B38F5`, `#D593E5`],
|
|
17
|
+
gradientPurple: [`#a200ff`, `#578aff`],
|
|
18
|
+
white: `#FFFFFF`,
|
|
19
|
+
black: `#000000`,
|
|
20
|
+
transparentWhite: `#FFFFFF00`,
|
|
21
|
+
transparentBlack: `#000000E6`,
|
|
22
|
+
transparentDarkBlue: `#0F123120`,
|
|
23
|
+
transparentLightBlue: `#578AFF1A`,
|
|
24
|
+
activityGreen: `#A5D871`,
|
|
25
|
+
activityOrange: `#F9BD5A`,
|
|
26
|
+
activityRed: `#EC5466`
|
|
27
27
|
};
|
|
28
|
+
|
|
28
29
|
/** The threshold above which hyperglycemia is considered to be severe in mmol/L */
|
|
29
30
|
export const SEVERE_HYPERGLYCEMIA_START_MMOL = 15;
|
|
31
|
+
|
|
30
32
|
/** The number of seconds in four hours. */
|
|
31
33
|
export const FOUR_HOURS_SECONDS = 14400;
|
|
32
34
|
/** The number of minutes in one hour. */
|
|
33
35
|
export const ONE_HOUR_MINUTES = 60;
|
|
34
36
|
/** Extra time before an activity starts or stops. */
|
|
35
37
|
export const ACTIVITY_BUFFER_MINUTES = 10;
|
|
38
|
+
|
|
36
39
|
/** The lower and upper limits for the amount of carbohydrates in grams. */
|
|
37
|
-
export const CARBOHYDRATES_LIMTS = {
|
|
40
|
+
export const CARBOHYDRATES_LIMTS = {
|
|
41
|
+
min: 0,
|
|
42
|
+
max: 300
|
|
43
|
+
};
|
|
38
44
|
/** The lower and upper limits for the insulin dose in units. The upper limit is represented by the SAFETY_INSULIN_LIMIT constant while the lower limit is 0. */
|
|
39
|
-
export const INSULIN_DOSE_LIMITS = {
|
|
45
|
+
export const INSULIN_DOSE_LIMITS = {
|
|
46
|
+
min: 0,
|
|
47
|
+
max: BolusCalculator.Constants.SAFETY_INSULIN_LIMIT
|
|
48
|
+
};
|
|
40
49
|
/** The lower and upper limits for the age of boluses that gets taken into account for calculating insulin on board. */
|
|
41
|
-
export const BOLUS_SECONDS_PASSED_LIMITS = {
|
|
50
|
+
export const BOLUS_SECONDS_PASSED_LIMITS = {
|
|
51
|
+
min: 0,
|
|
52
|
+
max: FOUR_HOURS_SECONDS
|
|
53
|
+
};
|
|
54
|
+
|
|
42
55
|
/** The lower and upper limits for the duration of an activity in minutes. */
|
|
43
|
-
export const ACTIVITY_DURATION_MINUTES_LIMITS = {
|
|
56
|
+
export const ACTIVITY_DURATION_MINUTES_LIMITS = {
|
|
57
|
+
min: 1,
|
|
58
|
+
max: ONE_HOUR_MINUTES
|
|
59
|
+
};
|
|
44
60
|
/** The lower and upper limits of insulin sensitivity settings. */
|
|
45
|
-
export const INSULIN_SENSITIVITY_MMOL_LIMITS = {
|
|
61
|
+
export const INSULIN_SENSITIVITY_MMOL_LIMITS = {
|
|
62
|
+
min: 0.3,
|
|
63
|
+
max: 10
|
|
64
|
+
};
|
|
46
65
|
/** The lower and upper limits of insulin-to-carbs ratio settings. */
|
|
47
|
-
export const INSULIN_TO_CARBS_RATIO_LIMITS = {
|
|
66
|
+
export const INSULIN_TO_CARBS_RATIO_LIMITS = {
|
|
67
|
+
min: 1,
|
|
68
|
+
max: 50
|
|
69
|
+
};
|
|
70
|
+
|
|
48
71
|
/** The lower and upper limits of the entered blood glucose level value in mmol/L. */
|
|
49
|
-
export const CURRENT_BGL_MMOL_LIMITS = {
|
|
72
|
+
export const CURRENT_BGL_MMOL_LIMITS = {
|
|
73
|
+
min: 1.1,
|
|
74
|
+
max: 33.3
|
|
75
|
+
};
|
|
50
76
|
/** The conversion factor to multiply a blood glucose value with to go from mmol/L to mg/dL. */
|
|
51
77
|
export const MMOLL_PER_MGDL_BGL = 0.0555;
|
|
52
78
|
/** The conversion factor to multiply a blood glucose value with to go from mg/dL to mmol/L. */
|
|
53
79
|
export const MGDL_PER_MMOLL_BGL = 1 / MMOLL_PER_MGDL_BGL;
|
|
80
|
+
|
|
54
81
|
/** The lower and upper limits of the entered blood ketones value in mmol/L. */
|
|
55
|
-
export const CURRENT_BKL_MMOL_LIMITS = {
|
|
82
|
+
export const CURRENT_BKL_MMOL_LIMITS = {
|
|
83
|
+
min: 0,
|
|
84
|
+
max: 8
|
|
85
|
+
};
|
|
56
86
|
/** The conversion factor to multiply a blood ketones value with to go from mmol/L to mg/dL. */
|
|
57
87
|
export const MMOLL_PER_MGDL_BKL = 0.096;
|
|
58
88
|
/** The conversion factor to multiply a blood ketones value with to go from mg/dL to mmol/L. */
|
|
59
89
|
export const MGDL_PER_MMOLL_BKL = 1 / MMOLL_PER_MGDL_BKL;
|
|
90
|
+
|
|
60
91
|
/** The lower and upper limits for a valid BGL target in mmol/L. */
|
|
61
|
-
export const TARGET_BGL_MMOL_LIMITS = {
|
|
92
|
+
export const TARGET_BGL_MMOL_LIMITS = {
|
|
93
|
+
min: 5,
|
|
94
|
+
max: 13.9
|
|
95
|
+
};
|
|
62
96
|
/** The lower and upper limits for a valid activity BGL target in mmol/L. */
|
|
63
|
-
export const ACTIVITY_TARGET_BGL_MMOL_LIMITS = {
|
|
97
|
+
export const ACTIVITY_TARGET_BGL_MMOL_LIMITS = {
|
|
98
|
+
min: 5,
|
|
99
|
+
max: 13.9
|
|
100
|
+
};
|
|
64
101
|
/** The lower and upper limits for how long the reminder notification timer may be. */
|
|
65
|
-
export const REMINDER_HOURS_LIMITS = {
|
|
102
|
+
export const REMINDER_HOURS_LIMITS = {
|
|
103
|
+
min: 0,
|
|
104
|
+
max: 6
|
|
105
|
+
};
|
|
66
106
|
/** The lower and upper limits for activity reduction. */
|
|
67
|
-
export const ACTIVITY_SETTINGS_INTERVAL_LIMITS = {
|
|
107
|
+
export const ACTIVITY_SETTINGS_INTERVAL_LIMITS = {
|
|
108
|
+
min: 0,
|
|
109
|
+
max: 1
|
|
110
|
+
};
|
|
68
111
|
//# sourceMappingURL=Constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BolusCalculator","colors","blue","darkBlue","darkBlueX","semiDarkBlue","dustyBlue","dustyDarkBlue","fadeBlue","lightBlue","mistBlue","purple","deepPurple","teal","gradientMain","gradientPurple","white","black","transparentWhite","transparentBlack","transparentDarkBlue","transparentLightBlue","activityGreen","activityOrange","activityRed","SEVERE_HYPERGLYCEMIA_START_MMOL","FOUR_HOURS_SECONDS","ONE_HOUR_MINUTES","ACTIVITY_BUFFER_MINUTES","CARBOHYDRATES_LIMTS","min","max","INSULIN_DOSE_LIMITS","Constants","SAFETY_INSULIN_LIMIT","BOLUS_SECONDS_PASSED_LIMITS","ACTIVITY_DURATION_MINUTES_LIMITS","INSULIN_SENSITIVITY_MMOL_LIMITS","INSULIN_TO_CARBS_RATIO_LIMITS","CURRENT_BGL_MMOL_LIMITS","MMOLL_PER_MGDL_BGL","MGDL_PER_MMOLL_BGL","CURRENT_BKL_MMOL_LIMITS","MMOLL_PER_MGDL_BKL","MGDL_PER_MMOLL_BKL","TARGET_BGL_MMOL_LIMITS","ACTIVITY_TARGET_BGL_MMOL_LIMITS","REMINDER_HOURS_LIMITS","ACTIVITY_SETTINGS_INTERVAL_LIMITS"],"sourceRoot":"../../../src","sources":["utils/Constants.ts"],"mappings":"AAAA,SAASA,eAAe,QAAQ,cAAc;AAI9C;AACA,OAAO,MAAMC,MAAM,GAAG;EACrBC,IAAI,EAAG,SAAQ;EACfC,QAAQ,EAAG,SAAQ;EACnBC,SAAS,EAAG,SAAQ;EACpBC,YAAY,EAAG,SAAQ;EACvBC,SAAS,EAAG,SAAQ;EACpBC,aAAa,EAAG,SAAQ;EACxBC,QAAQ,EAAG,SAAQ;EACnBC,SAAS,EAAG,SAAQ;EACpBC,QAAQ,EAAG,SAAQ;EACnBC,MAAM,EAAG,SAAQ;EACjBC,UAAU,EAAG,SAAQ;EACrBC,IAAI,EAAG,SAAQ;EACfC,YAAY,EAAE,CAAE,SAAQ,EAAG,SAAQ,CAAC;E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M;AACxC;AACA,OAAO,MAAMC,kBAA0B,GAAG,CAAC,GAAGD,kBAAkB;;AAEhE;AACA,OAAO,MAAME,uBAAkC,GAAG;EAAEZ,GAAG,EAAE,CAAC;EAAEC,GAAG,EAAE;AAAE,CAAC;AACpE;AACA,OAAO,MAAMY,kBAAkB,GAAG,KAAK;AACvC;AACA,OAAO,MAAMC,kBAA0B,GAAG,CAAC,GAAGD,kBAAkB;;AAEhE;AACA,OAAO,MAAME,sBAAiC,GAAG;EAAEf,GAAG,EAAE,CAAC;EAAEC,GAAG,EAAE;AAAK,CAAC;AACtE;AACA,OAAO,MAAMe,+BAA0C,GAAG;EAAEhB,GAAG,EAAE,CAAC;EAAEC,GAAG,EAAE;AAAK,CAAC;AAC/E;AACA,OAAO,MAAMgB,qBAAgC,GAAG;EAAEjB,GAAG,EAAE,CAAC;EAAEC,GAAG,EAAE;AAAE,CAAC;AAClE;AACA,OAAO,MAAMiB,iCAA4C,GAAG;EAAElB,GAAG,EAAE,CAAC;EAAEC,GAAG,EAAE;AAAE,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { BolusCalculator } from "@hedia/types";
|
|
|
2
2
|
import { t } from "../locales/translate";
|
|
3
3
|
import { RecommendationErrorEnum } from "../types/enum";
|
|
4
4
|
const SAFETY_INSULIN_LIMIT = BolusCalculator.Constants.SAFETY_INSULIN_LIMIT;
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Defines a set of human readable error messages.
|
|
7
8
|
* Each of them is defined as a function that returns the required translatable error message.
|
|
@@ -10,56 +11,77 @@ const SAFETY_INSULIN_LIMIT = BolusCalculator.Constants.SAFETY_INSULIN_LIMIT;
|
|
|
10
11
|
* from getting a recommendation until the problem is solved.
|
|
11
12
|
*/
|
|
12
13
|
export class RecommendationError extends Error {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
14
|
+
constructor(message, type) {
|
|
15
|
+
super(message);
|
|
16
|
+
this.type = type;
|
|
17
|
+
}
|
|
18
18
|
}
|
|
19
|
+
|
|
19
20
|
/** The given activity settings are corrupt. */
|
|
20
21
|
export const ActivitySettingsError = () => new RecommendationError(t(`Error. Please verify that your activity settings are set up correctly.`), RecommendationErrorEnum.ActivitySettings);
|
|
22
|
+
|
|
21
23
|
/** The duration of the given activity is invalid. */
|
|
22
24
|
export const ActivityDurationError = () => new RecommendationError(t(`Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.`), RecommendationErrorEnum.ActivityDuration);
|
|
25
|
+
|
|
23
26
|
/** The start date of the given activity is invalid. */
|
|
24
27
|
export const ActivityDateError = () => new RecommendationError(t(`Hedia Calculator does not support activities that finished more than 4 hours ago.`), RecommendationErrorEnum.ActivityDate);
|
|
28
|
+
|
|
25
29
|
/** The intensity of the given activity is invalid. */
|
|
26
30
|
export const ActivityIntensityError = () => new RecommendationError(t(`Error. Hedia Calculator does not support your activity intensity value`), RecommendationErrorEnum.ActivityIntensity);
|
|
31
|
+
|
|
27
32
|
/** Type of the given activity is invalid. */
|
|
28
33
|
export const ActivityTypeError = () => new RecommendationError(t(`Error. Hedia Calculator does not support your activity type value`), RecommendationErrorEnum.ActivityType);
|
|
34
|
+
|
|
29
35
|
/** The user’s activity target BGL setting is invalid. */
|
|
30
36
|
export const ActivityTargetBGLError = () => new RecommendationError(t(`Error. Please verify that your activity target blood glucose value is correct.`), RecommendationErrorEnum.ActivityTargetBGL);
|
|
37
|
+
|
|
31
38
|
/** More than 300 g carbohydrates entered. */
|
|
32
39
|
export const CarbohydrateLimitError = () => new RecommendationError(t(`Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.`), RecommendationErrorEnum.CarbohydrateLimit);
|
|
40
|
+
|
|
33
41
|
/** The user’s insulin sensitivity setting is outside of the valid range. */
|
|
34
42
|
export const InsulinSensitivityError = () => new RecommendationError(t(`Error. Please verify that your insulin sensitivity value is correct.`), RecommendationErrorEnum.InsulinSensitivity);
|
|
43
|
+
|
|
35
44
|
/** The user’s insulin-to-carbs ratio setting is outside of the valid range. */
|
|
36
45
|
export const InsulinToCarbsRatioError = () => new RecommendationError(t(`Error. Please verify that your insulin to carb ratio value is correct.`), RecommendationErrorEnum.InsulinToCarbsRatio);
|
|
46
|
+
|
|
37
47
|
/** The entered current blood glucose level is outside of the valid range. */
|
|
38
48
|
export const CurrentBGLError = () => new RecommendationError(t(`Error. Hedia Calculator does not support your current blood glucose level.`), RecommendationErrorEnum.CurrentBGL);
|
|
49
|
+
|
|
39
50
|
/** The blood glucose level of the latest logbook entry from the last 6 hours is outside of the valid range. */
|
|
40
51
|
export const LatestLogbook6HoursBGLError = () => new RecommendationError(t(`Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.`), RecommendationErrorEnum.LatestLogbook6HoursBGL);
|
|
52
|
+
|
|
41
53
|
/** The entered current blood ketones concentration is outside of the valid range. */
|
|
42
54
|
export const CurrentBKLError = () => new RecommendationError(t(`Error. Hedia Calculator does not support your current blood ketone level.`), RecommendationErrorEnum.CurrentBKL);
|
|
55
|
+
|
|
43
56
|
/** The user’s target BGL setting is outside of the valid range. */
|
|
44
57
|
export const TargetBGLError = () => new RecommendationError(t(`Error. Please verify that your target blood glucose value is correct.`), RecommendationErrorEnum.TargetBGL);
|
|
58
|
+
|
|
45
59
|
/** At least one of the recent (within the previous 4 hours) logbook entries has an insulin amount that exceeds the safety insulin threshold. */
|
|
46
60
|
export const BolusInsulinDoseError = () => new RecommendationError(t(`Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units`, {
|
|
47
|
-
|
|
61
|
+
SAFETY_INSULIN_LIMIT
|
|
48
62
|
}), RecommendationErrorEnum.BolusInsulinDose);
|
|
63
|
+
|
|
49
64
|
/** At least one entry from the list of recent logbook entries is older than 4 hours. */
|
|
50
65
|
export const BolusInsulinSecondsPassedError = () => new RecommendationError(t(`Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours`), RecommendationErrorEnum.BolusInsulinSecondsPassed);
|
|
66
|
+
|
|
51
67
|
/** The user’s recent boluses entries are not in the allowed format. */
|
|
52
68
|
export const RecentBolusError = () => new RecommendationError(t(`Error. Hedia Calculator could not find your recent boluses`), RecommendationErrorEnum.RecentBolus);
|
|
69
|
+
|
|
53
70
|
/** The user’s setting for initial reminder time is outside of the valid range. */
|
|
54
71
|
export const UserReminderError = () => new RecommendationError(t(`Error. Please verify your notifications settings.`), RecommendationErrorEnum.UserReminder);
|
|
72
|
+
|
|
55
73
|
/** The user’s insulin injection method setting is invalid. */
|
|
56
74
|
export const InjectionMethodError = () => new RecommendationError(t(`Error. Hedia Calculator does not support your injection method.`), RecommendationErrorEnum.InjectionMethod);
|
|
75
|
+
|
|
57
76
|
/**The user’s language setting is not supported by the bolus calculator or it is in the wrong format */
|
|
58
77
|
export const LanguageError = () => new RecommendationError(t(`Error. Hedia Calculator does not support your current language.`), RecommendationErrorEnum.Language);
|
|
78
|
+
|
|
59
79
|
/** The user’s blood ketones unit setting is invalid. */
|
|
60
80
|
export const BloodKetoneUnitError = () => new RecommendationError(t(`Error. Hedia Calculator does not support your current blood ketone unit.`), RecommendationErrorEnum.BloodKetoneUnit);
|
|
81
|
+
|
|
61
82
|
/** The user’s blood glucose level measuring unit setting is invalid. */
|
|
62
83
|
export const BloodGlucoseUnitError = () => new RecommendationError(t(`Error. Hedia Calculator does not support your current blood glucose unit.`), RecommendationErrorEnum.BloodGlucoseUnit);
|
|
84
|
+
|
|
63
85
|
/** The user has provided a blood ketone level but the blood ketone measuring unit is not defined. */
|
|
64
86
|
export const BloodKetonePropsError = () => new RecommendationError(t(`Error. Your blood ketone settings are invalid.`), RecommendationErrorEnum.BloodKetoneProps);
|
|
65
87
|
//# sourceMappingURL=RecommendationError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BolusCalculator","t","RecommendationErrorEnum","SAFETY_INSULIN_LIMIT","Constants","RecommendationError","Error","constructor","message","type","ActivitySettingsError","ActivitySettings","ActivityDurationError","ActivityDuration","ActivityDateError","ActivityDate","ActivityIntensityError","ActivityIntensity","ActivityTypeError","ActivityType","ActivityTargetBGLError","ActivityTargetBGL","CarbohydrateLimitError","CarbohydrateLimit","InsulinSensitivityError","InsulinSensitivity","InsulinToCarbsRatioError","InsulinToCarbsRatio","CurrentBGLError","CurrentBGL","LatestLogbook6HoursBGLError","LatestLogbook6HoursBGL","CurrentBKLError","CurrentBKL","TargetBGLError","TargetBGL","BolusInsulinDoseError","BolusInsulinDose","BolusInsulinSecondsPassedError","BolusInsulinSecondsPassed","RecentBolusError","RecentBolus","UserReminderError","UserReminder","InjectionMethodError","InjectionMethod","LanguageError","Language","BloodKetoneUnitError","BloodKetoneUnit","BloodGlucoseUnitError","BloodGlucoseUnit","BloodKetonePropsError","BloodKetoneProps"],"sourceRoot":"../../../src","sources":["utils/RecommendationError.ts"],"mappings":"AAAA,SAASA,eAAe,QAAQ,cAAc;AAE9C,SAASC,CAAC,QAAQ,sBAAsB;AACxC,SAASC,uBAAuB,QAAQ,eAAe;AAEvD,MAAMC,oBAAoB,GAAGH,eAAe,CAACI,SAAS,CAACD,oBAAoB;;AAE3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,mBAAmB,SAASC,KAAK,CAAC;EAG9CC,WAAWA,CAACC,OAAe,EAAEC,IAA6B,EAAE;IAC3D,KAAK,CAACD,OAAO,CAAC;IACd,IAAI,CAACC,IAAI,GAAGA,IAAI;EACjB;AACD;;AAEA;AACA,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KACpC,IAAIL,mBAAmB,CACtBJ,CAAC,CAAE,wEAAuE,CAAC,EAC3EC,uBAAuB,CAACS,gBAAgB,CACxC;;AAEF;AACA,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KACpC,IAAIP,mBAAmB,CACtBJ,CAAC,CAAE,yFAAwF,CAAC,EAC5FC,uBAAuB,CAACW,gBAAgB,CACxC;;AAEF;AACA,OAAO,MAAMC,iBAAiB,GA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