@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,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNativeSvg = require("react-native-svg");
|
|
9
|
+
var _Constants = require("../../../utils/Constants");
|
|
10
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
const SemiHappy = (isActive, props) => /*#__PURE__*/React.createElement(_reactNativeSvg.Svg, _extends({
|
|
14
|
+
viewBox: "0 0 41 40",
|
|
15
|
+
fill: "none"
|
|
16
|
+
}, props), /*#__PURE__*/React.createElement(_reactNativeSvg.Path, {
|
|
17
|
+
d: "M20.5002 38.8889C30.9323 38.8889 39.3891 30.432 39.3891 20C39.3891 9.56793 30.9323 1.11108 20.5002 1.11108C10.0682 1.11108 1.61133 9.56793 1.61133 20C1.61133 30.432 10.0682 38.8889 20.5002 38.8889Z",
|
|
18
|
+
fill: isActive ? _Constants.colors.teal : undefined,
|
|
19
|
+
stroke: isActive ? _Constants.colors.teal : _Constants.colors.fadeBlue
|
|
20
|
+
}), /*#__PURE__*/React.createElement(_reactNativeSvg.Path, {
|
|
21
|
+
d: "M28.2773 26.6667C28.2773 26.6667 19.8514 28.8889 12.7218 26.6667",
|
|
22
|
+
stroke: isActive ? _Constants.colors.darkBlue : _Constants.colors.fadeBlue
|
|
23
|
+
}), /*#__PURE__*/React.createElement(_reactNativeSvg.Path, {
|
|
24
|
+
d: "M14.3893 16.6667C15.3098 16.6667 16.056 15.9205 16.056 15C16.056 14.0796 15.3098 13.3334 14.3893 13.3334C13.4688 13.3334 12.7227 14.0796 12.7227 15C12.7227 15.9205 13.4688 16.6667 14.3893 16.6667Z",
|
|
25
|
+
fill: isActive ? _Constants.colors.darkBlue : _Constants.colors.fadeBlue,
|
|
26
|
+
stroke: isActive ? _Constants.colors.darkBlue : _Constants.colors.fadeBlue
|
|
27
|
+
}), /*#__PURE__*/React.createElement(_reactNativeSvg.Path, {
|
|
28
|
+
d: "M26.611 16.6667C27.5315 16.6667 28.2777 15.9205 28.2777 15C28.2777 14.0796 27.5315 13.3334 26.611 13.3334C25.6905 13.3334 24.9443 14.0796 24.9443 15C24.9443 15.9205 25.6905 16.6667 26.611 16.6667Z",
|
|
29
|
+
fill: isActive ? _Constants.colors.darkBlue : _Constants.colors.fadeBlue,
|
|
30
|
+
stroke: isActive ? _Constants.colors.darkBlue : _Constants.colors.fadeBlue
|
|
31
|
+
}));
|
|
32
|
+
var _default = SemiHappy;
|
|
33
|
+
exports.default = _default;
|
|
34
|
+
//# sourceMappingURL=SemiHappy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNativeSvg","_Constants","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","SemiHappy","isActive","props","createElement","Svg","viewBox","fill","Path","d","colors","teal","undefined","stroke","fadeBlue","darkBlue","_default","exports"],"sourceRoot":"../../../../../src","sources":["assets/IconsSVG/mood/SemiHappy.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AAAkD,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,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A,CAAAwC,IAAI;EACJC,CAAC,EAAC,sMAAsM;EACxMF,IAAI,EAAEL,QAAQ,GAAGQ,iBAAM,CAACK,QAAQ,GAAGL,iBAAM,CAACI,QAAS;EACnDD,MAAM,EAAEX,QAAQ,GAAGQ,iBAAM,CAACK,QAAQ,GAAGL,iBAAM,CAACI;AAAS,EACpD,eACFjD,KAAA,CAAAuC,aAAA,CAACpC,eAAA,CAAAwC,IAAI;EACJC,CAAC,EAAC,sMAAsM;EACxMF,IAAI,EAAEL,QAAQ,GAAGQ,iBAAM,CAACK,QAAQ,GAAGL,iBAAM,CAACI,QAAS;EACnDD,MAAM,EAAEX,QAAQ,GAAGQ,iBAAM,CAACK,QAAQ,GAAGL,iBAAM,CAACI;AAAS,EACpD,CAEH;AAAC,IAAAE,QAAA,GAEaf,SAAS;AAAAgB,OAAA,CAAAxC,OAAA,GAAAuC,QAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNativeSvg = require("react-native-svg");
|
|
9
|
+
var _Constants = require("../../../utils/Constants");
|
|
10
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
const SemiSad = (isActive, props) => /*#__PURE__*/React.createElement(_reactNativeSvg.Svg, _extends({
|
|
14
|
+
viewBox: "0 0 41 40",
|
|
15
|
+
fill: "none"
|
|
16
|
+
}, props), /*#__PURE__*/React.createElement(_reactNativeSvg.Path, {
|
|
17
|
+
d: "M20.5002 38.8889C30.9323 38.8889 39.3891 30.432 39.3891 20C39.3891 9.56793 30.9323 1.11108 20.5002 1.11108C10.0682 1.11108 1.61133 9.56793 1.61133 20C1.61133 30.432 10.0682 38.8889 20.5002 38.8889Z",
|
|
18
|
+
fill: isActive ? _Constants.colors.teal : undefined,
|
|
19
|
+
stroke: isActive ? _Constants.colors.teal : _Constants.colors.fadeBlue
|
|
20
|
+
}), /*#__PURE__*/React.createElement(_reactNativeSvg.Path, {
|
|
21
|
+
d: "M13.833 27.7778C13.833 27.7778 21.0552 25.5556 27.1663 27.7778",
|
|
22
|
+
stroke: isActive ? _Constants.colors.darkBlue : _Constants.colors.fadeBlue
|
|
23
|
+
}), /*#__PURE__*/React.createElement(_reactNativeSvg.Path, {
|
|
24
|
+
d: "M14.3893 16.6667C15.3098 16.6667 16.056 15.9205 16.056 15C16.056 14.0796 15.3098 13.3334 14.3893 13.3334C13.4688 13.3334 12.7227 14.0796 12.7227 15C12.7227 15.9205 13.4688 16.6667 14.3893 16.6667Z",
|
|
25
|
+
fill: isActive ? _Constants.colors.darkBlue : _Constants.colors.fadeBlue,
|
|
26
|
+
stroke: isActive ? _Constants.colors.darkBlue : _Constants.colors.fadeBlue
|
|
27
|
+
}), /*#__PURE__*/React.createElement(_reactNativeSvg.Path, {
|
|
28
|
+
d: "M26.611 16.6667C27.5315 16.6667 28.2777 15.9205 28.2777 15C28.2777 14.0796 27.5315 13.3334 26.611 13.3334C25.6905 13.3334 24.9443 14.0796 24.9443 15C24.9443 15.9205 25.6905 16.6667 26.611 16.6667Z",
|
|
29
|
+
fill: isActive ? _Constants.colors.darkBlue : _Constants.colors.fadeBlue,
|
|
30
|
+
stroke: isActive ? _Constants.colors.darkBlue : _Constants.colors.fadeBlue
|
|
31
|
+
}));
|
|
32
|
+
var _default = SemiSad;
|
|
33
|
+
exports.default = _default;
|
|
34
|
+
//# sourceMappingURL=SemiSad.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNativeSvg","_Constants","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","SemiSad","isActive","props","createElement","Svg","viewBox","fill","Path","d","colors","teal","undefined","stroke","fadeBlue","darkBlue","_default","exports"],"sourceRoot":"../../../../../src","sources":["assets/IconsSVG/mood/SemiSad.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AAAkD,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAA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,GAEaf,OAAO;AAAAgB,OAAA,CAAAxC,OAAA,GAAAuC,QAAA"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeModal = _interopRequireDefault(require("react-native-modal"));
|
|
10
|
+
var _Close = _interopRequireDefault(require("../assets/IconsSVG/Close"));
|
|
11
|
+
var _enum = require("../types/enum");
|
|
12
|
+
var _Constants = require("../utils/Constants");
|
|
13
|
+
var _fonts = require("./styles/fonts");
|
|
14
|
+
var _Text = _interopRequireDefault(require("./Text"));
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
+
const {
|
|
19
|
+
ExitModalTestIds
|
|
20
|
+
} = _enum.Testing.Id;
|
|
21
|
+
/** Display a modal with two buttons for the user to choose between. */
|
|
22
|
+
class ExitModal extends React.Component {
|
|
23
|
+
/** Compose a JSX element for displaying the modal. */
|
|
24
|
+
render() {
|
|
25
|
+
return /*#__PURE__*/React.createElement(_reactNativeModal.default, {
|
|
26
|
+
style: style.container,
|
|
27
|
+
isVisible: this.props.isVisible,
|
|
28
|
+
animationIn: `fadeIn`,
|
|
29
|
+
animationOut: `fadeOut`,
|
|
30
|
+
onModalHide: this.props.onModalHide
|
|
31
|
+
}, /*#__PURE__*/React.createElement(_reactNative.StatusBar, {
|
|
32
|
+
backgroundColor: _Constants.colors.black
|
|
33
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
34
|
+
style: style.modalContainer
|
|
35
|
+
}, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
36
|
+
onPress: this.props.onClose,
|
|
37
|
+
testID: ExitModalTestIds.ExitButton,
|
|
38
|
+
style: style.iconWrapper
|
|
39
|
+
}, (0, _Close.default)({
|
|
40
|
+
color: _Constants.colors.white,
|
|
41
|
+
style: style.icon
|
|
42
|
+
})), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
43
|
+
style: style.textContainer
|
|
44
|
+
}, /*#__PURE__*/React.createElement(_Text.default, {
|
|
45
|
+
style: style.titleRowLayout
|
|
46
|
+
}, this.props.title), /*#__PURE__*/React.createElement(_Text.default, {
|
|
47
|
+
style: style.message
|
|
48
|
+
}, this.props.message)), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
49
|
+
style: style.buttonContainer
|
|
50
|
+
}, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
51
|
+
testID: ExitModalTestIds.FirstOption,
|
|
52
|
+
onPress: this.props.firstOption,
|
|
53
|
+
style: [style.button, {
|
|
54
|
+
marginBottom: 16
|
|
55
|
+
}]
|
|
56
|
+
}, /*#__PURE__*/React.createElement(_Text.default, {
|
|
57
|
+
style: style.textButton
|
|
58
|
+
}, this.props.textFirstOption)), /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
59
|
+
testID: ExitModalTestIds.SecondOption,
|
|
60
|
+
onPress: this.props.secondOption,
|
|
61
|
+
style: style.button
|
|
62
|
+
}, /*#__PURE__*/React.createElement(_Text.default, {
|
|
63
|
+
style: style.textButton
|
|
64
|
+
}, this.props.textSecondOption)))));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
exports.default = ExitModal;
|
|
70
|
+
const style = _reactNative.StyleSheet.create({
|
|
71
|
+
container: {
|
|
72
|
+
margin: 0,
|
|
73
|
+
justifyContent: `center`,
|
|
74
|
+
backgroundColor: _Constants.colors.transparentBlack
|
|
75
|
+
},
|
|
76
|
+
modalContainer: {
|
|
77
|
+
margin: 16,
|
|
78
|
+
padding: 24,
|
|
79
|
+
borderRadius: 24,
|
|
80
|
+
backgroundColor: _Constants.colors.darkBlue
|
|
81
|
+
},
|
|
82
|
+
iconWrapper: {
|
|
83
|
+
position: `absolute`,
|
|
84
|
+
zIndex: 1,
|
|
85
|
+
left: 24,
|
|
86
|
+
top: 28
|
|
87
|
+
},
|
|
88
|
+
icon: {
|
|
89
|
+
height: 20,
|
|
90
|
+
width: 20
|
|
91
|
+
},
|
|
92
|
+
textContainer: {
|
|
93
|
+
marginBottom: 24
|
|
94
|
+
},
|
|
95
|
+
titleRowLayout: {
|
|
96
|
+
..._fonts.FONTS.Poppins.bold_XL,
|
|
97
|
+
color: _Constants.colors.white,
|
|
98
|
+
textAlign: `center`,
|
|
99
|
+
paddingHorizontal: 46,
|
|
100
|
+
marginBottom: 24
|
|
101
|
+
},
|
|
102
|
+
message: {
|
|
103
|
+
..._fonts.FONTS.Poppins.regular_Base,
|
|
104
|
+
color: _Constants.colors.dustyBlue,
|
|
105
|
+
textAlign: `center`
|
|
106
|
+
},
|
|
107
|
+
buttonContainer: {
|
|
108
|
+
flexDirection: `column`,
|
|
109
|
+
justifyContent: `space-around`
|
|
110
|
+
},
|
|
111
|
+
button: {
|
|
112
|
+
borderRadius: 50,
|
|
113
|
+
borderWidth: 1,
|
|
114
|
+
borderColor: _Constants.colors.teal
|
|
115
|
+
},
|
|
116
|
+
textButton: {
|
|
117
|
+
..._fonts.FONTS.Poppins.bold_LG,
|
|
118
|
+
textAlign: `center`,
|
|
119
|
+
color: _Constants.colors.teal,
|
|
120
|
+
paddingHorizontal: 16,
|
|
121
|
+
paddingVertical: 12
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
//# sourceMappingURL=ExitModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeModal","_interopRequireDefault","_Close","_enum","_Constants","_fonts","_Text","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ExitModalTestIds","Testing","Id","ExitModal","Component","render","createElement","style","container","isVisible","props","animationIn","animationOut","onModalHide","StatusBar","backgroundColor","colors","black","View","modalContainer","TouchableOpacity","onPress","onClose","testID","ExitButton","iconWrapper","Close","color","white","icon","textContainer","titleRowLayout","title","message","buttonContainer","FirstOption","firstOption","button","marginBottom","textButton","textFirstOption","SecondOption","secondOption","textSecondOption","exports","StyleSheet","create","margin","justifyContent","transparentBlack","padding","borderRadius","darkBlue","position","zIndex","left","top","height","width","FONTS","Poppins","bold_XL","textAlign","paddingHorizontal","regular_Base","dustyBlue","flexDirection","borderWidth","borderColor","teal","bold_LG","paddingVertical"],"sourceRoot":"../../../src","sources":["components/ExitModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH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0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.infoStyles = exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _types = require("@hedia/types");
|
|
10
|
+
var _translate = require("../locales/translate");
|
|
11
|
+
var _Constants = require("../utils/Constants");
|
|
12
|
+
var _Utils = require("../utils/Utils");
|
|
13
|
+
var _fonts = require("./styles/fonts");
|
|
14
|
+
var _Text = _interopRequireDefault(require("./Text"));
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
/** A standard panel to display some data that the user entered. */
|
|
17
|
+
class InfoBars extends _react.default.Component {
|
|
18
|
+
/**
|
|
19
|
+
* Determine the value to be displayed in the infobar.
|
|
20
|
+
*
|
|
21
|
+
* Steps:
|
|
22
|
+
* 1. Unpack showNullAsDash, unit, and value from props.
|
|
23
|
+
* 2. Set noDecimal to be true if unit is BloodGlucoseUnit.MG_DL or if unit is BloodKetonesUnit.MG_DL.
|
|
24
|
+
* 3. Set nullPlaceholder to be ‘-' if noDecimal is true and to '-.-’ otherwise.
|
|
25
|
+
* 4. Return value if it is not null or undefined. Otherwise, if showNullAsDash is true then return nullPlaceholder, otherwise return the string '0'.
|
|
26
|
+
* @returns The string to display as the value in the infobar.
|
|
27
|
+
*/
|
|
28
|
+
displayValue = () => {
|
|
29
|
+
const {
|
|
30
|
+
showNullAsDash,
|
|
31
|
+
unit,
|
|
32
|
+
value
|
|
33
|
+
} = this.props;
|
|
34
|
+
const noDecimal = unit === _types.BloodGlucoseUnit.MG_DL || unit === _types.BloodKetonesUnit.MG_DL;
|
|
35
|
+
const nullPlaceholder = noDecimal || !unit ? `-` : `-.-`;
|
|
36
|
+
return value ?? (showNullAsDash ? nullPlaceholder : `0`);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Determine the unit string to be displayed in the infobar.
|
|
41
|
+
*
|
|
42
|
+
* Steps:
|
|
43
|
+
* 1. Unpack unit from props.
|
|
44
|
+
* 2. Return unit if unit is “units” or the result of calling formatUnit() with unit as argument otherwise.
|
|
45
|
+
* @returns The string to display as the unit in the infobar
|
|
46
|
+
*/
|
|
47
|
+
displayUnit = () => {
|
|
48
|
+
const {
|
|
49
|
+
unit
|
|
50
|
+
} = this.props;
|
|
51
|
+
if (!unit) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return unit === (0, _translate.t)(`units`) ? unit : _Utils.Utils.formatUnit(unit);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @returns JSX element to display a card with the entered value.
|
|
59
|
+
*/
|
|
60
|
+
render() {
|
|
61
|
+
const {
|
|
62
|
+
testID
|
|
63
|
+
} = this.props;
|
|
64
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
65
|
+
style: infoStyles.container
|
|
66
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
67
|
+
style: infoStyles.labelContainer
|
|
68
|
+
}, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
69
|
+
style: infoStyles.label
|
|
70
|
+
}, this.props.label)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
71
|
+
style: infoStyles.valueUnitContainer
|
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
73
|
+
style: infoStyles.value,
|
|
74
|
+
testID: testID?.valueID
|
|
75
|
+
}, this.displayValue()), /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
76
|
+
style: {
|
|
77
|
+
...infoStyles.units,
|
|
78
|
+
paddingLeft: this.props.unit === null ? 0 : 4
|
|
79
|
+
},
|
|
80
|
+
testID: testID?.unitID
|
|
81
|
+
}, this.displayUnit())));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
exports.default = InfoBars;
|
|
87
|
+
const infoStyles = _reactNative.StyleSheet.create({
|
|
88
|
+
container: {
|
|
89
|
+
flex: 1,
|
|
90
|
+
flexDirection: `row`,
|
|
91
|
+
marginBottom: 8,
|
|
92
|
+
padding: 16,
|
|
93
|
+
borderWidth: 1,
|
|
94
|
+
borderColor: _Constants.colors.dustyDarkBlue,
|
|
95
|
+
borderRadius: 5,
|
|
96
|
+
alignItems: `center`
|
|
97
|
+
},
|
|
98
|
+
labelContainer: {
|
|
99
|
+
flex: 7,
|
|
100
|
+
justifyContent: `flex-start`
|
|
101
|
+
},
|
|
102
|
+
label: {
|
|
103
|
+
..._fonts.FONTS.Poppins.regular_Base,
|
|
104
|
+
color: _Constants.colors.white
|
|
105
|
+
},
|
|
106
|
+
valueUnitContainer: {
|
|
107
|
+
flex: 6.5,
|
|
108
|
+
justifyContent: `flex-end`,
|
|
109
|
+
alignItems: `baseline`,
|
|
110
|
+
flexDirection: `row`
|
|
111
|
+
},
|
|
112
|
+
value: {
|
|
113
|
+
..._fonts.FONTS.Poppins.medium_2XL,
|
|
114
|
+
color: _Constants.colors.white
|
|
115
|
+
},
|
|
116
|
+
units: {
|
|
117
|
+
..._fonts.FONTS.Poppins.regular_XS,
|
|
118
|
+
color: _Constants.colors.white,
|
|
119
|
+
paddingLeft: 4
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
exports.infoStyles = infoStyles;
|
|
123
|
+
//# sourceMappingURL=InfoBars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_types","_translate","_Constants","_Utils","_fonts","_Text","obj","__esModule","default","InfoBars","React","Component","displayValue","showNullAsDash","unit","value","props","noDecimal","BloodGlucoseUnit","MG_DL","BloodKetonesUnit","nullPlaceholder","displayUnit","t","Utils","formatUnit","render","testID","createElement","View","style","infoStyles","container","labelContainer","label","valueUnitContainer","valueID","units","paddingLeft","unitID","exports","StyleSheet","create","flex","flexDirection","marginBottom","padding","borderWidth","borderColor","colors","dustyDarkBlue","borderRadius","alignItems","justifyContent","FONTS","Poppins","regular_Base","color","white","medium_2XL","regular_XS"],"sourceRoot":"../../../src","sources":["components/InfoBars.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAR,sBAAA,CAAAC,OAAA;AAA0B,SAAAD,uBAAAS,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAe1B;AACe,MAAMG,QAAQ,SAASC,cAAK,CAACC,SAAS,CAAS;EAC7D;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACQC,YAAY,GAAGA,CAAA,KAAc;IACnC,MAAM;MAAEC,cAAc;MAAEC,IAAI;MAAEC;IAAM,CAAC,GAAG,IAAI,CAACC,KAAK;IAClD,MAAMC,SAAS,GAAGH,IAAI,KAAKI,uBAAgB,CAACC,KAAK,IAAIL,IAAI,KAAKM,uBAAgB,CAACD,KAAK;IACpF,MAAME,eAAe,GAAGJ,SAAS,IAAI,CAACH,IAAI,GAAI,GAAE,GAAI,KAAI;IACxD,OAAOC,KAAK,KAAKF,cAAc,GAAGQ,eAAe,GAAI,GAAE,CAAC;EACzD,CAAC;;EAED;AACD;AACA;AACA;AACA;AACA;AACA;AACA;EACQC,WAAW,GAAGA,CAAA,KAAqB;IACzC,MAAM;MAAER;IAAK,CAAC,GAAG,IAAI,CAACE,KAAK;IAC3B,IAAI,CAACF,IAAI,EAAE;M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;;AAEA;AAAAkB,OAAA,CAAAhC,OAAA,GAAAC,QAAA;AACO,MAAMsB,UAAU,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC3CV,SAAS,EAAE;IACVW,IAAI,EAAE,CAAC;IACPC,aAAa,EAAG,KAAI;IACpBC,YAAY,EAAE,CAAC;IACfC,OAAO,EAAE,EAAE;IACXC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAEC,iBAAM,CAACC,aAAa;IACjCC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAG;EACd,CAAC;EACDnB,cAAc,EAAE;IACfU,IAAI,EAAE,CAAC;IACPU,cAAc,EAAG;EAClB,CAAC;EACDnB,KAAK,EAAE;IACN,GAAGoB,YAAK,CAACC,OAAO,CAACC,YAAY;IAC7BC,KAAK,EAAER,iBAAM,CAACS;EACf,CAAC;EACDvB,kBAAkB,EAAE;IACnBQ,IAAI,EAAE,GAAG;IACTU,cAAc,EAAG,UAAS;IAC1BD,UAAU,EAAG,UAAS;IACtBR,aAAa,EAAG;EACjB,CAAC;EACD7B,KAAK,EAAE;IACN,GAAGuC,YAAK,CAACC,OAAO,CAACI,UAAU;IAC3BF,KAAK,EAAER,iBAAM,CAACS;EACf,CAAC;EACDrB,KAAK,EAAE;IACN,GAAGiB,YAAK,CAACC,OAAO,CAACK,UAAU;IAC3BH,KAAK,EAAER,iBAAM,CAACS,KAAK;IACnBpB,WAAW,EAAE;EACd;AACD,CAAC,CAAC;AAACE,OAAA,CAAAT,UAAA,GAAAA,UAAA"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* InvisibleNumberInput is used to enable numerical input by the user without displaying a traditional input field on the screen.
|
|
12
|
+
* Since the input field is made invisible and thus can’t be tapped directly by the user we need to be able to call
|
|
13
|
+
* its focus() method from the parent component in order to activate the input field and show the keyboard.
|
|
14
|
+
* We do this by defining a function that calls the input field’s focus() method inside the InvisibleNumberInput component when it has been mounted.
|
|
15
|
+
* This function is then passed to the parent by giving it as the argument for a callback function named visible.
|
|
16
|
+
*/
|
|
17
|
+
class InvisibleNumberInput extends _react.default.Component {
|
|
18
|
+
keyboardDidHideSubscription = null;
|
|
19
|
+
inputRef = null;
|
|
20
|
+
constructor(props) {
|
|
21
|
+
super(props);
|
|
22
|
+
this.inputRef = /*#__PURE__*/_react.default.createRef();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Initialise the state value variable with `0` */
|
|
26
|
+
state = {
|
|
27
|
+
value: `0`
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Called immediately after a component is mounted. Setting state here will trigger re-rendering.
|
|
32
|
+
* Perform various initialisation steps:
|
|
33
|
+
* 1. Set the value state of the component to the startValue prop (or to '0' if it is undefined)
|
|
34
|
+
* 2. Call the visible callback function using an anonymous function as argument. The anonymous function shall do the following:
|
|
35
|
+
* - Set the value state of the InvisibleNumberInput component to the startValue prop (or to '0' if it is undefined)
|
|
36
|
+
* - Return the value from calling the focus() method on the input field.
|
|
37
|
+
*/
|
|
38
|
+
componentDidMount() {
|
|
39
|
+
this.keyboardDidHideSubscription = _reactNative.Keyboard.addListener(`keyboardDidHide`, this.callOnTextInputsBlur);
|
|
40
|
+
this.setState({
|
|
41
|
+
value: this.props.startValue ?? `0`
|
|
42
|
+
});
|
|
43
|
+
this.props.visible(() => {
|
|
44
|
+
this.setState({
|
|
45
|
+
value: this.props.startValue ?? `0`
|
|
46
|
+
});
|
|
47
|
+
return this.inputRef?.current?.focus();
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Call the blur method on the TextInput component.
|
|
53
|
+
*/
|
|
54
|
+
callOnTextInputsBlur = () => {
|
|
55
|
+
this.inputRef?.current?.blur();
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Sanitise a user-entered value by removing invalid characters
|
|
60
|
+
*
|
|
61
|
+
* Steps:
|
|
62
|
+
* 1. Use regular expressions to make the following manipulations to the text argument in the defined order and save the result to a local string variable named replaced.
|
|
63
|
+
* - Replace any commas with periods
|
|
64
|
+
* - Remove any characters that comes after two groups of zero or more digits separated by a period.
|
|
65
|
+
* 2. Define a function named round that rounds a given string that contains a number to have the amount of decimals given by the decimalPlaces prop. Return the result as a string.
|
|
66
|
+
* 3. If the value of the replaced variable from step 1 is not a NaN (not a number) when converted to a Number type then use the round function defined in step 2 on replaced and return the result
|
|
67
|
+
* 4. (If the NaN-check from step 2 didn’t fail) return the string '0'.
|
|
68
|
+
* @param text The string input to clean up
|
|
69
|
+
* @returns A string with the cleaned text.
|
|
70
|
+
*/
|
|
71
|
+
cleanInput = text => {
|
|
72
|
+
const replaced = text.replace(/,/g, `.`).replace(/(\d*\.\d*).*/, `$1`);
|
|
73
|
+
const round = value => {
|
|
74
|
+
const temp = Number(value) * Math.pow(10, this.props.decimalPlaces);
|
|
75
|
+
const rounded = Math.round(temp) / Math.pow(10, this.props.decimalPlaces);
|
|
76
|
+
return rounded.toFixed(this.props.decimalPlaces);
|
|
77
|
+
};
|
|
78
|
+
if (!isNaN(Number(replaced))) {
|
|
79
|
+
return round(replaced);
|
|
80
|
+
}
|
|
81
|
+
return `0`;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Handle what happens when the text in the input field is being changed.
|
|
86
|
+
* That includes cleaning the text a little and then saving the value and potentially calling a callback function.
|
|
87
|
+
*
|
|
88
|
+
* Steps:
|
|
89
|
+
* 1. If the cleanPartialInput prop is true, use the cleanInput() method to to clean the content of the text argument and save it to a variable named cleaned.
|
|
90
|
+
* Otherwise just replace any commas in the text argument with periods and save the result to the same variable.
|
|
91
|
+
* 2. Remove repeated periods from the text in the cleaned variable and save the the result in a new variable named replacedSeparator.
|
|
92
|
+
* 3. Set the value state of the component to replacedSeparator.
|
|
93
|
+
* 4. If the partialInput callback function prop is defined, call it with replacedSeparator as argument.
|
|
94
|
+
* @param text The updated text in the input field
|
|
95
|
+
*/
|
|
96
|
+
handleOnChangeText = text => {
|
|
97
|
+
const cleaned = this.props.cleanPartialInput ? this.cleanInput(text) : text.replace(/,/g, `.`);
|
|
98
|
+
let replacedSeparator = cleaned.replace(/\.+/g, `.`).replace(/(\d*\.\d*).*/, `$1`);
|
|
99
|
+
if (!this.props.negativeAllowed) {
|
|
100
|
+
replacedSeparator = replacedSeparator.replace(/[^0-9.]/g, ``);
|
|
101
|
+
}
|
|
102
|
+
this.setState({
|
|
103
|
+
value: `${replacedSeparator}`
|
|
104
|
+
});
|
|
105
|
+
this.props.partialInput?.(`${replacedSeparator}`);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Handle what should happen when the user finish editing the input field.
|
|
110
|
+
*
|
|
111
|
+
* Steps:
|
|
112
|
+
* 1. Use the cleanInput() method on the value state and store the result in a variable named cleaned.
|
|
113
|
+
* 2. If the onEnd prop is not null, then convert the value of cleaned to a number and use it as an argument to call the onEnd prop function.
|
|
114
|
+
*/
|
|
115
|
+
onEndEdit = () => {
|
|
116
|
+
const cleaned = this.cleanInput(this.state.value);
|
|
117
|
+
this.props.onEnd?.(Number(cleaned));
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @returns JSX element to display a TextInput field with the component’s value state as its value
|
|
122
|
+
* and the handleOnChangeText() and onEndEdit() methods as the textInput’s onChangeText and onEndEditing respectively.
|
|
123
|
+
*/
|
|
124
|
+
render() {
|
|
125
|
+
const {
|
|
126
|
+
testID
|
|
127
|
+
} = this.props;
|
|
128
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
|
|
129
|
+
testID: testID,
|
|
130
|
+
value: this.state.value,
|
|
131
|
+
ref: this.inputRef,
|
|
132
|
+
style: inputStyles.input,
|
|
133
|
+
keyboardType: `numeric`,
|
|
134
|
+
returnKeyType: `done`,
|
|
135
|
+
onChangeText: this.handleOnChangeText,
|
|
136
|
+
onEndEditing: this.onEndEdit,
|
|
137
|
+
maxLength: this.props.maxLength,
|
|
138
|
+
selectTextOnFocus: true
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
exports.default = InvisibleNumberInput;
|
|
143
|
+
const inputStyles = _reactNative.StyleSheet.create({
|
|
144
|
+
input: {
|
|
145
|
+
width: 1,
|
|
146
|
+
height: 1,
|
|
147
|
+
opacity: 0
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
//# sourceMappingURL=InvisibleNumberInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","obj","__esModule","default","InvisibleNumberInput","React","Component","keyboardDidHideSubscription","inputRef","constructor","props","createRef","state","value","componentDidMount","Keyboard","addListener","callOnTextInputsBlur","setState","startValue","visible","current","focus","blur","cleanInput","text","replaced","replace","round","temp","Number","Math","pow","decimalPlaces","rounded","toFixed","isNaN","handleOnChangeText","cleaned","cleanPartialInput","replacedSeparator","negativeAllowed","partialInput","onEndEdit","onEnd","render","testID","createElement","TextInput","ref","style","inputStyles","input","keyboardType","returnKeyType","onChangeText","onEndEditing","maxLength","selectTextOnFocus","exports","StyleSheet","create","width","height","opacity"],"sourceRoot":"../../../src","sources":["components/InvisibleNumberInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAoF,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,E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S,GAAGA,CAAA,KAAY;IAC9B,MAAML,OAAO,GAAG,IAAI,CAACd,UAAU,CAAC,IAAI,CAACZ,KAAK,CAACC,KAAK,CAAC;IACjD,IAAI,CAACH,KAAK,CAACkC,KAAK,GAAGd,MAAM,CAACQ,OAAO,CAAC,CAAC;EACpC,CAAC;;EAED;AACD;AACA;AACA;EACQO,MAAMA,CAAA,EAAgB;IAC5B,MAAM;MAAEC;IAAO,CAAC,GAAG,IAAI,CAACpC,KAAK;IAC7B,oBACCb,MAAA,CAAAM,OAAA,CAAA4C,aAAA,CAAC/C,YAAA,CAAAgD,SAAS;MACTF,MAAM,EAAEA,MAAO;MACfjC,KAAK,EAAE,IAAI,CAACD,KAAK,CAACC,KAAM;MACxBoC,GAAG,EAAE,IAAI,CAACzC,QAAS;MACnB0C,KAAK,EAAEC,WAAW,CAACC,KAAM;MACzBC,YAAY,EAAG,SAAS;MACxBC,aAAa,EAAG,MAAM;MACtBC,YAAY,EAAE,IAAI,CAAClB,kBAAmB;MACtCmB,YAAY,EAAE,IAAI,CAACb,SAAU;MAC7Bc,SAAS,EAAE,IAAI,CAAC/C,KAAK,CAAC+C,SAAU;MAChCC,iBAAiB;IAAA,EAChB;EAEJ;AACD;AAACC,OAAA,CAAAxD,OAAA,GAAAC,oBAAA;AAED,MAAM+C,WAAW,GAAGS,uBAAU,CAACC,MAAM,CAAC;EACrCT,KAAK,EAAE;IACNU,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,OAAO,EAAE;EACV;AACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/** Display a horizontal line for visually separating elements in the user interface. */
|
|
11
|
+
class LineSeparator extends _react.default.Component {
|
|
12
|
+
/** @return JSX element for displaying a thin horizontal line in the given color. */
|
|
13
|
+
render() {
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
15
|
+
style: [lineSeparatorStyles.lineStyle, {
|
|
16
|
+
...this.props
|
|
17
|
+
}]
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = LineSeparator;
|
|
22
|
+
const lineSeparatorStyles = _reactNative.StyleSheet.create({
|
|
23
|
+
lineStyle: {
|
|
24
|
+
borderBottomWidth: 1
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=LineSeparator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","obj","__esModule","default","LineSeparator","React","Component","render","createElement","Fragment","View","style","lineSeparatorStyles","lineStyle","props","exports","StyleSheet","create","borderBottomWidth"],"sourceRoot":"../../../src","sources":["components/LineSeparator.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAgD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAWhD;AACe,MAAMG,aAAa,SAASC,cAAK,CAACC,SAAS,CAAS;EAClE;EACOC,MAAMA,CAAA,EAAgB;IAC5B,oBACCV,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACX,MAAA,CAAAM,OAAK,CAACM,QAAQ,qBACdZ,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,YAAA,CAAAU,IAAI;MAACC,KAAK,EAAE,CAACC,mBAAmB,CAACC,SAAS,EAAE;QAAE,GAAG,IAAI,CAACC;MAAM,CAAC;IAAE,EAAG,CACnD;EAEnB;AACD;AAACC,OAAA,CAAAZ,OAAA,GAAAC,aAAA;AAED,MAAMQ,mBAAmB,GAAGI,uBAAU,CAACC,MAAM,CAAC;EAC7CJ,SAAS,EAAE;IACVK,iBAAiB,EAAE;EACpB;AACD,CAAC,CAAC"}
|