@hedia/recommendation-screen 2.1.34 → 2.1.35-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/Header.js +2 -2
- package/dist/src/components/InvisibleNumberInput.js +1 -1
- package/dist/src/components/LimitationMessage.js +1 -1
- package/dist/src/components/RecommendationModal.js +3 -3
- package/dist/src/components/RecommendedCarbs.js +2 -2
- package/dist/src/components/RecommendedInsulin.js +2 -2
- package/dist/src/components/Remeasure.js +4 -2
- package/dist/src/components/TransferToLogbook.js +1 -1
- package/dist/src/components/TwoOptionModal.js +3 -3
- package/dist/src/components/activity/Activity.js +3 -1
- package/dist/src/components/activity/ActivityIcon.d.ts +2 -2
- package/dist/src/components/activity/ActivityIcon.js +4 -4
- package/dist/src/components/activity/ActivityIntensity.js +3 -1
- package/dist/src/components/mood/MoodIcon.js +2 -2
- package/dist/src/types/enum.d.ts +15 -11
- package/dist/src/types/enum.js +13 -9
- package/package.json +3 -3
|
@@ -15,14 +15,14 @@ export default class Header extends React.Component {
|
|
|
15
15
|
<View style={headerStyles.margin}>
|
|
16
16
|
<View style={headerStyles.exitButtonContainer}>
|
|
17
17
|
<View style={headerStyles.exitButton}>
|
|
18
|
-
<TouchableOpacity testID={Testing.Id.HeaderTestIds.ExitCalculation}
|
|
18
|
+
<TouchableOpacity testID={Testing.Id.HeaderTestIds.ExitCalculation} style={headerStyles.exitButton} onPress={this.props.exitCallback}>
|
|
19
19
|
<Icon iconIdentifier={`Ionicons/ios-close-circle-outline`} style={headerStyles.iconStyle}/>
|
|
20
20
|
</TouchableOpacity>
|
|
21
21
|
<View style={headerStyles.headerFiller}/>
|
|
22
22
|
</View>
|
|
23
23
|
</View>
|
|
24
24
|
<View style={headerStyles.headerTextContainer}>
|
|
25
|
-
<Text style={headerStyles.headerText} testID=
|
|
25
|
+
<Text style={headerStyles.headerText} testID={Testing.Id.HeaderTestIds.HeaderText}>
|
|
26
26
|
{i18n._(t `INSULIN${`\n`}RECOMMENDATION`)}
|
|
27
27
|
</Text>
|
|
28
28
|
</View>
|
|
@@ -100,7 +100,7 @@ export default class InvisibleNumberInput extends React.Component {
|
|
|
100
100
|
*/
|
|
101
101
|
render() {
|
|
102
102
|
const { testID } = this.props;
|
|
103
|
-
return (<TextInput testID={testID}
|
|
103
|
+
return (<TextInput testID={testID} value={`${this.state.value}`} ref={(textInput) => {
|
|
104
104
|
if (textInput !== null) {
|
|
105
105
|
this.textInput = textInput;
|
|
106
106
|
}
|
|
@@ -21,7 +21,7 @@ export default class LimitationMessage extends React.Component {
|
|
|
21
21
|
<Text style={stylesModal.textMessage}>{limitationMessage}</Text>
|
|
22
22
|
</View>
|
|
23
23
|
<View style={stylesModal.containerAcceptButton}>
|
|
24
|
-
<TouchableOpacity testID={Testing.Id.LimitationMessageTestIds.OkButton}
|
|
24
|
+
<TouchableOpacity testID={Testing.Id.LimitationMessageTestIds.OkButton} style={stylesModal.okButton} onPress={this.props.onPressNextButton}>
|
|
25
25
|
<Text style={stylesModal.buttonText}>{i18n._(t `OK`)}</Text>
|
|
26
26
|
</TouchableOpacity>
|
|
27
27
|
</View>
|
|
@@ -44,10 +44,10 @@ export default class RecommendationModal extends React.Component {
|
|
|
44
44
|
*/
|
|
45
45
|
this.recommendationButtons = () => {
|
|
46
46
|
return (<View style={stylesModal.recommendationButtonsContainer}>
|
|
47
|
-
<TouchableOpacity testID={RecommendationModalTestIds.AcceptCarbs}
|
|
47
|
+
<TouchableOpacity testID={RecommendationModalTestIds.AcceptCarbs} style={stylesModal.affirmativeCarbsButton} onPress={this.props.onAcceptCarbohydrates}>
|
|
48
48
|
<Text style={stylesModal.affirmativeCarbsText}>{i18n._(t `OK`)}</Text>
|
|
49
49
|
</TouchableOpacity>
|
|
50
|
-
<TouchableOpacity testID={RecommendationModalTestIds.DeclineCarbs}
|
|
50
|
+
<TouchableOpacity testID={RecommendationModalTestIds.DeclineCarbs} style={stylesModal.negativeCarbsButton} onPress={this.props.onDeclineCarbohydrates}>
|
|
51
51
|
<Text style={stylesModal.negativeCarbsText}>{i18n._(t `NO`)}</Text>
|
|
52
52
|
</TouchableOpacity>
|
|
53
53
|
</View>);
|
|
@@ -99,7 +99,7 @@ export default class RecommendationModal extends React.Component {
|
|
|
99
99
|
{willRecommendCarbs ? this.recommendCarbohydrates(suggestedCarbohydrates) : null}
|
|
100
100
|
</View>
|
|
101
101
|
{willRecommendCarbs ? null : (<View style={stylesModal.containerAcceptButton}>
|
|
102
|
-
<TouchableOpacity testID={RecommendationModalTestIds.OkButton}
|
|
102
|
+
<TouchableOpacity testID={RecommendationModalTestIds.OkButton} style={stylesModal.okButton} onPress={this.props.onClickOkButton}>
|
|
103
103
|
<Text style={stylesModal.buttonText}>{i18n._(t `OK`)}</Text>
|
|
104
104
|
</TouchableOpacity>
|
|
105
105
|
</View>)}
|
|
@@ -88,7 +88,7 @@ export default class RecommendedCarbs extends React.Component {
|
|
|
88
88
|
<LineSeparator color={BORDER_COLOUR_GREY}/>
|
|
89
89
|
<View style={calculationStyles.borderContainer}>
|
|
90
90
|
<View style={calculationStyles.recommendedContainer}>
|
|
91
|
-
<TouchableOpacity testID={RecommendedCarbsTestIds.RemoveRecommendation}
|
|
91
|
+
<TouchableOpacity testID={RecommendedCarbsTestIds.RemoveRecommendation} style={calculationStyles.removeRecommended} onPress={this.props.removeRecommendedCarbs}>
|
|
92
92
|
<Icon iconIdentifier={`Ionicons/ios-close-circle-outline`} style={calculationStyles.removeRecommendedIcon}/>
|
|
93
93
|
</TouchableOpacity>
|
|
94
94
|
<Text style={calculationStyles.recommendedLabel}>{i18n._(t `Recommended`)}</Text>
|
|
@@ -99,7 +99,7 @@ export default class RecommendedCarbs extends React.Component {
|
|
|
99
99
|
<Text style={calculationStyles.recommendedLabel}>{i18n._(t `Additional`)}</Text>
|
|
100
100
|
</View>
|
|
101
101
|
<View style={calculationStyles.valueUnitContainer}>
|
|
102
|
-
<TouchableOpacity testID={RecommendedCarbsTestIds.EditRecommendedCarbs}
|
|
102
|
+
<TouchableOpacity testID={RecommendedCarbsTestIds.EditRecommendedCarbs} onPress={this.showTextInput} style={[calculationStyles.valueUnitContainer]}>
|
|
103
103
|
<View style={calculationStyles.valueContainer}>
|
|
104
104
|
<Text testID={RecommendedCarbsTestIds.RecommendedCarbs} style={[calculationStyles.value, { color: BORDER_COLOUR_TEAL }]}>
|
|
105
105
|
{shownCarbs}
|
|
@@ -86,7 +86,7 @@ export default class RecommendedInsulin extends React.Component {
|
|
|
86
86
|
const paddingBottom = Platform.OS === `ios` ? `3%` : `1%`;
|
|
87
87
|
const shownInsulin = this.state.partialInput ?? this.props.insulinRecommendation ?? `0`;
|
|
88
88
|
return (<React.Fragment>
|
|
89
|
-
<TouchableOpacity
|
|
89
|
+
<TouchableOpacity testID={RecommendedInsulinTestIds.EditRecommendedInsulin} onPress={this.handleOnPress}>
|
|
90
90
|
<LinearGradient style={recommendedInsulinStyles.container} colors={[`#a200ff`, `#578aff`]} start={{ x: 0, y: 0 }} end={{ x: 1, y: 0 }}>
|
|
91
91
|
<View style={recommendedInsulinStyles.recommendedTextContainer}>
|
|
92
92
|
<Text style={recommendedInsulinStyles.recommendedText}>
|
|
@@ -100,7 +100,7 @@ export default class RecommendedInsulin extends React.Component {
|
|
|
100
100
|
</Text>
|
|
101
101
|
<Text style={recommendedInsulinStyles.units}>{i18n._(t `Units`)}</Text>
|
|
102
102
|
</View>
|
|
103
|
-
<Icon style={recommendedInsulinStyles.editIcon} iconIdentifier={`Feather/edit`}/>
|
|
103
|
+
<Icon style={recommendedInsulinStyles.editIcon} iconIdentifier={`Feather/edit`} testID={RecommendedInsulinTestIds.EditRecommendedInsulinIcon}/>
|
|
104
104
|
</View>
|
|
105
105
|
</LinearGradient>
|
|
106
106
|
</TouchableOpacity>
|
|
@@ -65,7 +65,9 @@ export default class Remeasure extends React.Component {
|
|
|
65
65
|
</View>
|
|
66
66
|
<View style={remeasureStyles.valueUnitContainer}>
|
|
67
67
|
<View style={valueContainer}>
|
|
68
|
-
<Text style={remeasureStyles.value}
|
|
68
|
+
<Text style={remeasureStyles.value} testID={Testing.Id.RemeasureTestIds.RemeasureHours}>
|
|
69
|
+
{measure ? limited : i18n._(t `OFF`)}
|
|
70
|
+
</Text>
|
|
69
71
|
</View>
|
|
70
72
|
{measure ? (<View style={remeasureStyles.unitContainer}>
|
|
71
73
|
<Text style={remeasureStyles.units}>{i18n._(t `hours`)}</Text>
|
|
@@ -76,7 +78,7 @@ export default class Remeasure extends React.Component {
|
|
|
76
78
|
if (slider !== null) {
|
|
77
79
|
this.slider = slider;
|
|
78
80
|
}
|
|
79
|
-
}} testID={Testing.Id.RemeasureTestIds.RemeasureSlider}
|
|
81
|
+
}} testID={Testing.Id.RemeasureTestIds.RemeasureSlider} maximumTrackTintColor={BORDER_COLOUR_GREY} minimumTrackTintColor={BORDER_COLOUR_TEAL} thumbTintColor={BORDER_COLOUR_TEAL} maximumValue={6} minimumValue={0} step={0.5} style={[remeasureStyles.sliderStyle, { marginHorizontal }]} onValueChange={this.handleSliderChange}/>
|
|
80
82
|
</View>);
|
|
81
83
|
}
|
|
82
84
|
}
|
|
@@ -39,7 +39,7 @@ export default class TransferToLogbook extends React.Component {
|
|
|
39
39
|
if (!this.props.visible) {
|
|
40
40
|
return <View style={addToLogbookStyles.marginContainer}/>;
|
|
41
41
|
}
|
|
42
|
-
return (<TouchableOpacity testID={Testing.Id.TransferToLogbookTestIds.TransferButton} onPress={this.handlePress} disabled={this.state.pressed} style={addToLogbookStyles.container}
|
|
42
|
+
return (<TouchableOpacity testID={Testing.Id.TransferToLogbookTestIds.TransferButton} onPress={this.handlePress} disabled={this.state.pressed} style={addToLogbookStyles.container}>
|
|
43
43
|
{!this.state.pressed ? (<View style={addToLogbookStyles.textContainer}>
|
|
44
44
|
<Text style={addToLogbookStyles.transferText}>{i18n._(t `Transfer to logbook`)}</Text>
|
|
45
45
|
</View>) : (<View style={addToLogbookStyles.textContainerActive}>
|
|
@@ -14,7 +14,7 @@ export default class TwoOptionModal extends React.Component {
|
|
|
14
14
|
<StatusBar backgroundColor={`rgba(0, 0, 0, 1)`}/>
|
|
15
15
|
<View style={modalStyle.modalContainer}>
|
|
16
16
|
{isCancelable ? (<TouchableOpacity onPress={this.props.onClose} testID={TwoOptionModalTestIds.ExitButton} style={modalStyle.iconWrapper}>
|
|
17
|
-
<Icon
|
|
17
|
+
<Icon iconIdentifier={`Ionicons/ios-close-circle-outline`} style={modalStyle.icon}/>
|
|
18
18
|
</TouchableOpacity>) : null}
|
|
19
19
|
|
|
20
20
|
<View style={isCancelable ? modalStyle.textContainer : modalStyle.textContainerNotCancelable}>
|
|
@@ -24,12 +24,12 @@ export default class TwoOptionModal extends React.Component {
|
|
|
24
24
|
<Text style={modalStyle.message}>{this.props.message}</Text>
|
|
25
25
|
</View>
|
|
26
26
|
<View style={rowAsButtonLayout ? modalStyle.buttonContainerRow : modalStyle.buttonContainerColumn}>
|
|
27
|
-
<TouchableOpacity testID={TwoOptionModalTestIds.FirstOption}
|
|
27
|
+
<TouchableOpacity testID={TwoOptionModalTestIds.FirstOption} onPress={this.props.firstOption} style={rowAsButtonLayout ? modalStyle.buttonRow : modalStyle.firstButtonColumn}>
|
|
28
28
|
<Text style={rowAsButtonLayout ? modalStyle.textButtonRow : modalStyle.textFirstButtonColumn}>
|
|
29
29
|
{this.props.textFirstOption}
|
|
30
30
|
</Text>
|
|
31
31
|
</TouchableOpacity>
|
|
32
|
-
<TouchableOpacity testID={TwoOptionModalTestIds.SecondOption}
|
|
32
|
+
<TouchableOpacity testID={TwoOptionModalTestIds.SecondOption} onPress={this.props.secondOption} style={rowAsButtonLayout ? modalStyle.buttonRow : modalStyle.secondButtonColumn}>
|
|
33
33
|
<Text style={rowAsButtonLayout ? modalStyle.textButtonRow : modalStyle.textSecondButtonColumn}>
|
|
34
34
|
{this.props.textSecondOption}
|
|
35
35
|
</Text>
|
|
@@ -33,7 +33,9 @@ export default class Activity extends React.Component {
|
|
|
33
33
|
</View>
|
|
34
34
|
<View style={infoStyles.valueUnitContainer}>
|
|
35
35
|
<View style={infoStyles.valueContainer}>
|
|
36
|
-
<Text style={infoStyles.value}
|
|
36
|
+
<Text style={infoStyles.value} testID={Testing.Id.ActivityTestIds.ActivityDuration}>
|
|
37
|
+
{activity.activityDuration}
|
|
38
|
+
</Text>
|
|
37
39
|
</View>
|
|
38
40
|
<View style={infoStyles.unitContainer}>
|
|
39
41
|
<Text style={infoStyles.units}>{i18n._(t `min`)}</Text>
|
|
@@ -13,9 +13,9 @@ export default class ActivityIcon extends React.Component<IActivityDisplayProps>
|
|
|
13
13
|
/**
|
|
14
14
|
* Steps:
|
|
15
15
|
* 1. Unpack activityType and activityTitle from props.
|
|
16
|
-
* 2. Create
|
|
16
|
+
* 2. Create a testID string by appending ‘_activity’ to the enum label corresponding to the activityType prop.
|
|
17
17
|
* @returns A JSX element including the following:
|
|
18
|
-
* 1. An image component with the generated
|
|
18
|
+
* 1. An image component with the generated testID displaying the icon from getActivityIcon().
|
|
19
19
|
* 2. The activityTitle if it is truthy or the string “Untitled Activity” otherwise
|
|
20
20
|
*/
|
|
21
21
|
render(): JSX.Element | null;
|
|
@@ -26,16 +26,16 @@ export default class ActivityIcon extends React.Component {
|
|
|
26
26
|
/**
|
|
27
27
|
* Steps:
|
|
28
28
|
* 1. Unpack activityType and activityTitle from props.
|
|
29
|
-
* 2. Create
|
|
29
|
+
* 2. Create a testID string by appending ‘_activity’ to the enum label corresponding to the activityType prop.
|
|
30
30
|
* @returns A JSX element including the following:
|
|
31
|
-
* 1. An image component with the generated
|
|
31
|
+
* 1. An image component with the generated testID displaying the icon from getActivityIcon().
|
|
32
32
|
* 2. The activityTitle if it is truthy or the string “Untitled Activity” otherwise
|
|
33
33
|
*/
|
|
34
34
|
render() {
|
|
35
35
|
const { activityType, activityTitle } = this.props;
|
|
36
|
-
const
|
|
36
|
+
const testID = `${Activity.Enums.ActivityEnum[activityType ?? Other]}_activity`;
|
|
37
37
|
return (<View style={activityIconStyles.container}>
|
|
38
|
-
<Image style={activityIconStyles.activityIcon} source={this.getActivityIcon()}
|
|
38
|
+
<Image style={activityIconStyles.activityIcon} source={this.getActivityIcon()} testID={testID}/>
|
|
39
39
|
<Text style={activityIconStyles.activityTitle}>{activityTitle || i18n._(t `Untitled Activity`)}</Text>
|
|
40
40
|
</View>);
|
|
41
41
|
}
|
|
@@ -19,7 +19,9 @@ export default class ActivityIntensity extends React.Component {
|
|
|
19
19
|
return (<View style={[infoStyles.margin, activityIntensityStyles.row]}>
|
|
20
20
|
<View style={activityIntensityStyles.intensityContainer}>
|
|
21
21
|
<View style={[activityIntensityStyles.intensityTextContainer, style]}>
|
|
22
|
-
<Text style={activityIntensityStyles.bold}
|
|
22
|
+
<Text style={activityIntensityStyles.bold} testID={intensity}>
|
|
23
|
+
{ActivityIntensityTranslations[intensity]()}
|
|
24
|
+
</Text>
|
|
23
25
|
</View>
|
|
24
26
|
</View>
|
|
25
27
|
<View style={activityIntensityStyles.intensityContainerOffset}/>
|
|
@@ -49,8 +49,8 @@ export default class MoodIcon extends React.Component {
|
|
|
49
49
|
/** JSX element to display the mood icon retrieved using the getMoodIcon() method. */
|
|
50
50
|
render() {
|
|
51
51
|
const { mood, active } = this.props;
|
|
52
|
-
const
|
|
53
|
-
return (<TouchableOpacity style={moodIconStyles.container} onPress={this.handleOnPress}
|
|
52
|
+
const testID = `${MoodEnum[mood]}-${active}`;
|
|
53
|
+
return (<TouchableOpacity style={moodIconStyles.container} onPress={this.handleOnPress} testID={testID}>
|
|
54
54
|
<Image style={moodIconStyles.icon} source={this.getMoodIcon()}/>
|
|
55
55
|
</TouchableOpacity>);
|
|
56
56
|
}
|
package/dist/src/types/enum.d.ts
CHANGED
|
@@ -6,10 +6,12 @@ export declare namespace Testing {
|
|
|
6
6
|
RecommendationScrollView = "recommendation-screen-scroll-view"
|
|
7
7
|
}
|
|
8
8
|
enum ActivityTestIds {
|
|
9
|
+
ActivityDuration = "activity-duration-minutes",
|
|
9
10
|
ActivityReduction = "activity-reduction-percentage"
|
|
10
11
|
}
|
|
11
12
|
enum HeaderTestIds {
|
|
12
|
-
ExitCalculation = "exit-calculation-button"
|
|
13
|
+
ExitCalculation = "exit-calculation-button",
|
|
14
|
+
HeaderText = "header-text"
|
|
13
15
|
}
|
|
14
16
|
enum LimitationMessageTestIds {
|
|
15
17
|
OkButton = "limitation-message-ok-button"
|
|
@@ -27,6 +29,7 @@ export declare namespace Testing {
|
|
|
27
29
|
TotalCarbs = "total-carbs"
|
|
28
30
|
}
|
|
29
31
|
enum RecommendedInsulinTestIds {
|
|
32
|
+
EditRecommendedInsulinIcon = "edit-recommended-insulin-icon",
|
|
30
33
|
EditRecommendedInsulin = "edit-recommended-insulin",
|
|
31
34
|
InvisibleInsulinInput = "invisible-recommended-insulin-input",
|
|
32
35
|
ShownInsulinText = "shown-insulin-text"
|
|
@@ -38,7 +41,8 @@ export declare namespace Testing {
|
|
|
38
41
|
SuggestedCarbs = "recommendation-modal-suggested-carbs"
|
|
39
42
|
}
|
|
40
43
|
enum RemeasureTestIds {
|
|
41
|
-
RemeasureSlider = "remeasure-slider"
|
|
44
|
+
RemeasureSlider = "remeasure-slider",
|
|
45
|
+
RemeasureHours = "remeasure-hours"
|
|
42
46
|
}
|
|
43
47
|
enum TransferToLogbookTestIds {
|
|
44
48
|
TransferButton = "transfer-to-logbook-button"
|
|
@@ -51,19 +55,19 @@ export declare namespace Testing {
|
|
|
51
55
|
/** Namespace containing ids for the InfoBars component value, lavel and unit fields */
|
|
52
56
|
namespace InfoBarTestIds {
|
|
53
57
|
enum Value {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
ActiveInsulin = "
|
|
58
|
+
BloodKetone = "blood-ketone-value",
|
|
59
|
+
BloodGlucose = "blood-glucose-value",
|
|
60
|
+
ActiveInsulin = "active-insulin-value"
|
|
57
61
|
}
|
|
58
62
|
enum Label {
|
|
59
|
-
BloodKetone = "
|
|
60
|
-
BloodGlucose = "
|
|
61
|
-
ActiveInsulin = "
|
|
63
|
+
BloodKetone = "blood-ketone-label",
|
|
64
|
+
BloodGlucose = "blood-glucose-label",
|
|
65
|
+
ActiveInsulin = "active-insulin-label"
|
|
62
66
|
}
|
|
63
67
|
enum Unit {
|
|
64
|
-
BloodKetone = "
|
|
65
|
-
BloodGlucose = "
|
|
66
|
-
ActiveInsulin = "
|
|
68
|
+
BloodKetone = "blood-ketone-unit",
|
|
69
|
+
BloodGlucose = "blood-glucose-unit",
|
|
70
|
+
ActiveInsulin = "active-insulin-unit"
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
73
|
}
|
package/dist/src/types/enum.js
CHANGED
|
@@ -10,11 +10,13 @@ export var Testing;
|
|
|
10
10
|
})(RecommendationScreenTestIds = Id.RecommendationScreenTestIds || (Id.RecommendationScreenTestIds = {}));
|
|
11
11
|
let ActivityTestIds;
|
|
12
12
|
(function (ActivityTestIds) {
|
|
13
|
+
ActivityTestIds["ActivityDuration"] = "activity-duration-minutes";
|
|
13
14
|
ActivityTestIds["ActivityReduction"] = "activity-reduction-percentage";
|
|
14
15
|
})(ActivityTestIds = Id.ActivityTestIds || (Id.ActivityTestIds = {}));
|
|
15
16
|
let HeaderTestIds;
|
|
16
17
|
(function (HeaderTestIds) {
|
|
17
18
|
HeaderTestIds["ExitCalculation"] = "exit-calculation-button";
|
|
19
|
+
HeaderTestIds["HeaderText"] = "header-text";
|
|
18
20
|
})(HeaderTestIds = Id.HeaderTestIds || (Id.HeaderTestIds = {}));
|
|
19
21
|
let LimitationMessageTestIds;
|
|
20
22
|
(function (LimitationMessageTestIds) {
|
|
@@ -36,6 +38,7 @@ export var Testing;
|
|
|
36
38
|
})(RecommendedCarbsTestIds = Id.RecommendedCarbsTestIds || (Id.RecommendedCarbsTestIds = {}));
|
|
37
39
|
let RecommendedInsulinTestIds;
|
|
38
40
|
(function (RecommendedInsulinTestIds) {
|
|
41
|
+
RecommendedInsulinTestIds["EditRecommendedInsulinIcon"] = "edit-recommended-insulin-icon";
|
|
39
42
|
RecommendedInsulinTestIds["EditRecommendedInsulin"] = "edit-recommended-insulin";
|
|
40
43
|
RecommendedInsulinTestIds["InvisibleInsulinInput"] = "invisible-recommended-insulin-input";
|
|
41
44
|
RecommendedInsulinTestIds["ShownInsulinText"] = "shown-insulin-text";
|
|
@@ -50,6 +53,7 @@ export var Testing;
|
|
|
50
53
|
let RemeasureTestIds;
|
|
51
54
|
(function (RemeasureTestIds) {
|
|
52
55
|
RemeasureTestIds["RemeasureSlider"] = "remeasure-slider";
|
|
56
|
+
RemeasureTestIds["RemeasureHours"] = "remeasure-hours";
|
|
53
57
|
})(RemeasureTestIds = Id.RemeasureTestIds || (Id.RemeasureTestIds = {}));
|
|
54
58
|
let TransferToLogbookTestIds;
|
|
55
59
|
(function (TransferToLogbookTestIds) {
|
|
@@ -66,21 +70,21 @@ export var Testing;
|
|
|
66
70
|
(function (InfoBarTestIds) {
|
|
67
71
|
let Value;
|
|
68
72
|
(function (Value) {
|
|
69
|
-
Value["
|
|
70
|
-
Value["
|
|
71
|
-
Value["ActiveInsulin"] = "
|
|
73
|
+
Value["BloodKetone"] = "blood-ketone-value";
|
|
74
|
+
Value["BloodGlucose"] = "blood-glucose-value";
|
|
75
|
+
Value["ActiveInsulin"] = "active-insulin-value";
|
|
72
76
|
})(Value = InfoBarTestIds.Value || (InfoBarTestIds.Value = {}));
|
|
73
77
|
let Label;
|
|
74
78
|
(function (Label) {
|
|
75
|
-
Label["BloodKetone"] = "
|
|
76
|
-
Label["BloodGlucose"] = "
|
|
77
|
-
Label["ActiveInsulin"] = "
|
|
79
|
+
Label["BloodKetone"] = "blood-ketone-label";
|
|
80
|
+
Label["BloodGlucose"] = "blood-glucose-label";
|
|
81
|
+
Label["ActiveInsulin"] = "active-insulin-label";
|
|
78
82
|
})(Label = InfoBarTestIds.Label || (InfoBarTestIds.Label = {}));
|
|
79
83
|
let Unit;
|
|
80
84
|
(function (Unit) {
|
|
81
|
-
Unit["BloodKetone"] = "
|
|
82
|
-
Unit["BloodGlucose"] = "
|
|
83
|
-
Unit["ActiveInsulin"] = "
|
|
85
|
+
Unit["BloodKetone"] = "blood-ketone-unit";
|
|
86
|
+
Unit["BloodGlucose"] = "blood-glucose-unit";
|
|
87
|
+
Unit["ActiveInsulin"] = "active-insulin-unit";
|
|
84
88
|
})(Unit = InfoBarTestIds.Unit || (InfoBarTestIds.Unit = {}));
|
|
85
89
|
})(InfoBarTestIds = Id.InfoBarTestIds || (Id.InfoBarTestIds = {}));
|
|
86
90
|
})(Id = Testing.Id || (Testing.Id = {}));
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hedia/recommendation-screen",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.35-alpha.0",
|
|
4
4
|
"description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
"dist/"
|
|
8
|
+
],
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "jest --coverage",
|
|
11
11
|
"tsc": "tsc --noEmit",
|