@abihealth/goapp-react-native 1.44.0 → 1.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,20 +95,20 @@
95
95
  "survey.acne.8.title": "您同意如下内容吗?",
96
96
  "survey.acne.9.description": "您确认已准确和真实地回答了以上所有问题。您知悉提供不准确或不完整的信息可能对您的健康有害。您同意阅读随您药物提供的患者信息手册。如果有任何副作用让您感到不适或不消失,您将联系医生或药剂师。",
97
97
  "survey.acne.9.title": "您同意如下内容吗?",
98
- "survey.alcohol.1.description": "我花了太多时间喝酒。",
99
- "survey.alcohol.1.title": "在过去30天里",
100
- "survey.alcohol.2.description": "我一坐下来就会喝很多酒。",
101
- "survey.alcohol.2.title": "在过去30天里",
102
- "survey.alcohol.3.description": "我喝太多酒了。",
103
- "survey.alcohol.3.title": "在过去30天里",
104
- "survey.alcohol.4.description": "我比计划喝得更多",
105
- "survey.alcohol.4.title": "在过去30天里",
106
- "survey.alcohol.5.description": "我没有办法控制我的饮酒",
107
- "survey.alcohol.5.title": "在过去30天里",
108
- "survey.alcohol.6.description": "在喝了一两杯酒后,我酒很难停止饮酒。",
109
- "survey.alcohol.6.title": "在过去30天里",
110
- "survey.alcohol.7.description": "难以让饮酒的念头离开我的脑海。",
111
- "survey.alcohol.7.title": "在过去30天里",
98
+ "survey.alcohol.1.description": "在过去30天里",
99
+ "survey.alcohol.1.title": "我花了太多时间喝酒。",
100
+ "survey.alcohol.2.description": "在过去30天里",
101
+ "survey.alcohol.2.title": "我一坐下来就会喝很多酒。",
102
+ "survey.alcohol.3.description": "在过去30天里",
103
+ "survey.alcohol.3.title": "我喝太多酒了。",
104
+ "survey.alcohol.4.description": "在过去30天里",
105
+ "survey.alcohol.4.title": "我比计划喝得更多",
106
+ "survey.alcohol.5.description": "在过去30天里",
107
+ "survey.alcohol.5.title": "我没有办法控制我的饮酒",
108
+ "survey.alcohol.6.description": "在过去30天里",
109
+ "survey.alcohol.6.title": "在喝了一两杯酒后,我酒很难停止饮酒。",
110
+ "survey.alcohol.7.description": "在过去30天里",
111
+ "survey.alcohol.7.title": "难以让饮酒的念头离开我的脑海。",
112
112
  "survey.allergies.1.title": "您是否被医生诊断出患有食物过敏、过敏性鼻炎、过敏性结膜炎、荨麻疹或哮喘?",
113
113
  "survey.allergies.2.description": "请提供过去治疗的详细情况以及您目前病情的状态。",
114
114
  "survey.allergies.2.title": "您的过敏诊断是什么?",
@@ -123,20 +123,20 @@
123
123
  "survey.allergies.7.title": "请阅读以下说明:",
124
124
  "survey.allergies.8.description": "您确认已准确和真实地回答了以上所有问题。\n您知悉提供不准确或不完整的信息可能对您的健康有害。\n您同意阅读随您药物提供的患者信息手册。\n如果有任何副作用让您感到不适或不消失,您将联系医生或药剂师。",
125
125
  "survey.allergies.8.title": "请仔细阅读:",
126
- "survey.anxiety.1.description": "我感到害怕",
127
- "survey.anxiety.1.title": "在过去7天里",
128
- "survey.anxiety.2.description": "我感到焦虑",
129
- "survey.anxiety.2.title": "在过去7天里",
130
- "survey.anxiety.3.description": "我感到担心",
131
- "survey.anxiety.3.title": "在过去7天里",
132
- "survey.anxiety.4.description": "我发现除了焦虑很难注意到其他任何事情上",
133
- "survey.anxiety.4.title": "在过去7天里",
134
- "survey.anxiety.5.description": "我感到紧张",
135
- "survey.anxiety.5.title": "在过去7天里",
136
- "survey.anxiety.6.description": "我感到不安",
137
- "survey.anxiety.6.title": "在过去7天里",
138
- "survey.anxiety.7.description": "我感到紧绷",
139
- "survey.anxiety.7.title": "在过去7天里",
126
+ "survey.anxiety.1.description": "在过去7天里",
127
+ "survey.anxiety.1.title": "我感到害怕",
128
+ "survey.anxiety.2.description": "在过去7天里",
129
+ "survey.anxiety.2.title": "我感到焦虑",
130
+ "survey.anxiety.3.description": "在过去7天里",
131
+ "survey.anxiety.3.title": "我感到担心",
132
+ "survey.anxiety.4.description": "在过去7天里",
133
+ "survey.anxiety.4.title": "我发现除了焦虑很难注意到其他任何事情上",
134
+ "survey.anxiety.5.description": "在过去7天里",
135
+ "survey.anxiety.5.title": "我感到紧张",
136
+ "survey.anxiety.6.description": "在过去7天里",
137
+ "survey.anxiety.6.title": "我感到不安",
138
+ "survey.anxiety.7.description": "在过去7天里",
139
+ "survey.anxiety.7.title": "我感到紧绷",
140
140
  "survey.asthma(refill).1.title": "您是否被医生诊断出患有哮喘?",
141
141
  "survey.asthma(refill).10.title": "您是否正在哺乳、怀孕或可能怀孕?",
142
142
  "survey.asthma(refill).11.description": "甲状腺过度活跃。\n心脏问题(如不规则或快速心跳)或心绞痛。\n高血压。\n任何需要立即住院治疗的严重医疗情况",
@@ -226,22 +226,22 @@
226
226
  "survey.cystitis.7.title": "请列出您目前正在服用的所有药物。",
227
227
  "survey.cystitis.8.description": "您确认已准确和真实地回答了以上所有问题。\n您知悉提供不准确或不完整的信息可能对您的健康有害。\n您同意阅读随您药物提供的患者信息手册。\n如果有任何副作用让您感到不适或不消失,您将联系医生或药剂师。",
228
228
  "survey.cystitis.8.title": "您同意以下内容吗?",
229
- "survey.depression.1.description": "我感到无价值",
230
- "survey.depression.1.title": "在过去7天里",
231
- "survey.depression.2.description": "我感到没有任何盼头",
232
- "survey.depression.2.title": "在过去7天里",
233
- "survey.depression.3.description": "我感到无助",
234
- "survey.depression.3.title": "在过去7天里",
235
- "survey.depression.4.description": "我感到悲伤",
236
- "survey.depression.4.title": "在过去7天里",
237
- "survey.depression.5.description": "我感到失败",
238
- "survey.depression.5.title": "在过去7天里",
239
- "survey.depression.6.description": "我感到沮丧",
240
- "survey.depression.6.title": "在过去7天里",
241
- "survey.depression.7.description": "我感到不开心",
242
- "survey.depression.7.title": "在过去7天里",
243
- "survey.depression.8.description": "我感到无望",
244
- "survey.depression.8.title": "在过去7天里",
229
+ "survey.depression.1.description": "在过去7天里",
230
+ "survey.depression.1.title": "我感到无价值",
231
+ "survey.depression.2.description": "在过去7天里",
232
+ "survey.depression.2.title": "我感到没有任何盼头",
233
+ "survey.depression.3.description": "在过去7天里",
234
+ "survey.depression.3.title": "我感到无助",
235
+ "survey.depression.4.description": "在过去7天里",
236
+ "survey.depression.4.title": "我感到悲伤",
237
+ "survey.depression.5.description": "在过去7天里",
238
+ "survey.depression.5.title": "我感到失败",
239
+ "survey.depression.6.description": "在过去7天里",
240
+ "survey.depression.6.title": "我感到沮丧",
241
+ "survey.depression.7.description": "在过去7天里",
242
+ "survey.depression.7.title": "我感到不开心",
243
+ "survey.depression.8.description": "在过去7天里",
244
+ "survey.depression.8.title": "我感到无望",
245
245
  "survey.emergency_contraception.1.title": "在过去72小时内,您是否发生过无保护的性行为?",
246
246
  "survey.emergency_contraception.10.description": "紧急避孕药只在无保护性行为发生后的72小时内使用才有效。\n紧急避孕药无法100%有效地预防怀孕。",
247
247
  "survey.emergency_contraception.10.title": "请阅读以下警告:",
@@ -104,20 +104,20 @@
104
104
  "survey.acne.8.title": "您是否同意以下各項?",
105
105
  "survey.acne.9.description": "您確認您已準確及真實地回答以上所有問題。\n\n您知道提供不正確或不完整的資料可能會危害您的健康。\n\n您同意閱讀隨藥物附上的患者資訊手冊。\n\n如果任何副作用令您困擾或不會消退,您會聯絡醫師或藥劑師。",
106
106
  "survey.acne.9.title": "您是否同意以下各項?",
107
- "survey.alcohol.1.description": "我太常喝酒。",
108
- "survey.alcohol.1.title": "在過去三十(30)天...",
109
- "survey.alcohol.2.description": "我一次喝了太多酒。",
110
- "survey.alcohol.2.title": "在過去三十(30)天...",
111
- "survey.alcohol.3.description": "我喝太多酒。",
112
- "survey.alcohol.3.title": "在過去三十(30)天...",
113
- "survey.alcohol.4.description": "我比計劃中喝得更多。",
114
- "survey.alcohol.4.title": "在過去三十(30)天...",
115
- "survey.alcohol.5.description": "我難以控制自己喝酒的狀況。",
116
- "survey.alcohol.5.title": "在過去三十(30)天...",
117
- "survey.alcohol.6.description": "在喝了一兩杯酒後,我無法停止自己繼續喝下去。",
118
- "survey.alcohol.6.title": "在過去三十(30)天...",
119
- "survey.alcohol.7.description": "我難以擺脫想喝酒的念頭。",
120
- "survey.alcohol.7.title": "在過去三十(30)天...",
107
+ "survey.alcohol.1.description": "在過去三十(30)天...",
108
+ "survey.alcohol.1.title": "我太常喝酒。",
109
+ "survey.alcohol.2.description": "在過去三十(30)天...",
110
+ "survey.alcohol.2.title": "我一次喝了太多酒。",
111
+ "survey.alcohol.3.description": "在過去三十(30)天...",
112
+ "survey.alcohol.3.title": "我喝太多酒。",
113
+ "survey.alcohol.4.description": "在過去三十(30)天...",
114
+ "survey.alcohol.4.title": "我比計劃中喝得更多。",
115
+ "survey.alcohol.5.description": "在過去三十(30)天...",
116
+ "survey.alcohol.5.title": "我難以控制自己喝酒的狀況。",
117
+ "survey.alcohol.6.description": "在過去三十(30)天...",
118
+ "survey.alcohol.6.title": "在喝了一兩杯酒後,我無法停止自己繼續喝下去。",
119
+ "survey.alcohol.7.description": "在過去三十(30)天...",
120
+ "survey.alcohol.7.title": "我難以擺脫想喝酒的念頭。",
121
121
  "survey.allergic_conjunctivitis.1.description": "我出現花粉症季節期間常有的眼睛發紅、搔癢、流淚和/或發炎。",
122
122
  "survey.allergic_conjunctivitis.1.title": "您是否曾出現以下任何狀況?",
123
123
  "survey.allergic_conjunctivitis.2.title": "您是否曾對任何眼藥水出現反應?",
@@ -160,20 +160,20 @@
160
160
  "survey.allergies.7.title": "請閱讀以下說明:",
161
161
  "survey.allergies.8.description": "您確認您已準確及真實地回答以上所有問題。\n\n您知道提供不正確或不完整的資料可能會危害您的健康。\n\n您同意閱讀隨藥物附上的患者資訊手冊。\n\n如果任何副作用令您困擾或不會消退,您會聯絡醫師或藥劑師。",
162
162
  "survey.allergies.8.title": "請仔細閱讀:",
163
- "survey.anxiety.1.description": "我感到心情很糟糕。",
164
- "survey.anxiety.1.title": "在過去七(7)天...",
165
- "survey.anxiety.2.description": "我感到焦慮。",
166
- "survey.anxiety.2.title": "在過去七(7)天...",
167
- "survey.anxiety.3.description": "我感到擔心。",
168
- "survey.anxiety.3.title": "在過去七(7)天...",
169
- "survey.anxiety.4.description": "我覺得除了焦慮以外,難以集中注意力在任何其他事物。",
170
- "survey.anxiety.4.title": "在過去七(7)天...",
171
- "survey.anxiety.5.description": "我感到緊張。",
172
- "survey.anxiety.5.title": "在過去七(7)天...",
173
- "survey.anxiety.6.description": "我到焦躁不安。",
174
- "survey.anxiety.6.title": "在過去七(7)天...",
175
- "survey.anxiety.7.description": "我感到整個人緊繃。",
176
- "survey.anxiety.7.title": "在過去七(7)天...",
163
+ "survey.anxiety.1.description": "在過去七(7)天...",
164
+ "survey.anxiety.1.title": "我感到心情很糟糕。",
165
+ "survey.anxiety.2.description": "在過去七(7)天...",
166
+ "survey.anxiety.2.title": "我感到焦慮。",
167
+ "survey.anxiety.3.description": "在過去七(7)天...",
168
+ "survey.anxiety.3.title": "我感到擔心。",
169
+ "survey.anxiety.4.description": "在過去七(7)天...",
170
+ "survey.anxiety.4.title": "我覺得除了焦慮以外,難以集中注意力在任何其他事物。",
171
+ "survey.anxiety.5.description": "在過去七(7)天...",
172
+ "survey.anxiety.5.title": "我感到緊張。",
173
+ "survey.anxiety.6.description": "在過去七(7)天...",
174
+ "survey.anxiety.6.title": "我到焦躁不安。",
175
+ "survey.anxiety.7.description": "在過去七(7)天...",
176
+ "survey.anxiety.7.title": "我感到整個人緊繃。",
177
177
  "survey.asthma(refill).1.title": "您是否曾被醫師診斷有氣喘?",
178
178
  "survey.asthma(refill).10.title": "您是否正在餵母乳、懷孕或認為自己可能懷孕了?",
179
179
  "survey.asthma(refill).11.description": "• 甲狀腺過度亢進。\n• 心臟問題(例如心率不整或心跳過快)或心絞痛。\n• 高血壓。\n• 任何可能需要立即住院的嚴重病症。",
@@ -298,22 +298,22 @@
298
298
  "survey.cystitis.7.title": "請列出您目前正在服用的所有藥物。",
299
299
  "survey.cystitis.8.description": "您確認您已準確及真實地回答以上所有問題。\n\n您知道提供不正確或不完整的資料可能會危害您的健康。\n\n您同意閱讀隨藥物附上的患者資訊手冊。\n\n如果任何副作用令您困擾或不會消退,您會聯絡醫師或藥劑師。",
300
300
  "survey.cystitis.8.title": "您是否同意以下各項?",
301
- "survey.depression.1.description": "我覺得自己毫無價值。",
302
- "survey.depression.1.title": "在過去七(7)天...",
303
- "survey.depression.2.description": "我感到沒有什麼好期待的。",
304
- "survey.depression.2.title": "在過去七(7)天...",
305
- "survey.depression.3.description": "我感到無助。",
306
- "survey.depression.3.title": "在過去七(7)天...",
307
- "survey.depression.4.description": "我感到難過。",
308
- "survey.depression.4.title": "在過去七(7)天...",
309
- "survey.depression.5.description": "我覺得自己很失敗。",
310
- "survey.depression.5.title": "在過去七(7)天...",
311
- "survey.depression.6.description": "我感到抑鬱。",
312
- "survey.depression.6.title": "在過去七(7)天...",
313
- "survey.depression.7.description": "我感到不開心。",
314
- "survey.depression.7.title": "在過去七(7)天...",
315
- "survey.depression.8.description": "我感到絕望。",
316
- "survey.depression.8.title": "在過去七(7)天...",
301
+ "survey.depression.1.description": "在過去七(7)天...",
302
+ "survey.depression.1.title": "我覺得自己毫無價值。",
303
+ "survey.depression.2.description": "在過去七(7)天...",
304
+ "survey.depression.2.title": "我感到沒有什麼好期待的。",
305
+ "survey.depression.3.description": "在過去七(7)天...",
306
+ "survey.depression.3.title": "我感到無助。",
307
+ "survey.depression.4.description": "在過去七(7)天...",
308
+ "survey.depression.4.title": "我感到難過。",
309
+ "survey.depression.5.description": "在過去七(7)天...",
310
+ "survey.depression.5.title": "我覺得自己很失敗。",
311
+ "survey.depression.6.description": "在過去七(7)天...",
312
+ "survey.depression.6.title": "我感到抑鬱。",
313
+ "survey.depression.7.description": "在過去七(7)天...",
314
+ "survey.depression.7.title": "我感到不開心。",
315
+ "survey.depression.8.description": "在過去七(7)天...",
316
+ "survey.depression.8.title": "我感到絕望。",
317
317
  "survey.dry_eyes.1.description": "• 眼睛感覺刺痛發癢。\n• 眼睛有刺痛或灼熱感。\n• 雙眼發紅。\n• 對光線敏感。\n• 視力模糊。",
318
318
  "survey.dry_eyes.1.title": "您是否有以下任何症狀?",
319
319
  "survey.dry_eyes.2.title": "您是否正在餵母乳、懷孕或認為自己可能懷孕了?",
@@ -160,7 +160,7 @@ var CategorySelect = function (_a) {
160
160
  padding: theme.spacing.md,
161
161
  maxHeight: '90%',
162
162
  minHeight: 300
163
- }} onPress={function (e) { return e.stopPropagation && e.stopPropagation(); }}>
163
+ }} onPress={function (e) { var _a; return (_a = e.stopPropagation) === null || _a === void 0 ? void 0 : _a.call(e); }}>
164
164
  <react_native_1.FlatList data={options} keyExtractor={function (item) { return item.key; }} renderItem={function (_a) {
165
165
  var group = _a.item;
166
166
  return (<react_native_1.View style={{ marginBottom: theme.spacing.xs }}>
@@ -222,11 +222,12 @@ var DeliveryAddressScreen = function (_a) {
222
222
  }
223
223
  });
224
224
  }); };
225
- return (<ScreenWrapper_1.ScreenWrapper header={<Header_1.Header title={t('general.consultation.videoConsultation.title')} leftIcon={<VideoConsultationIcon_1.VideoConsultationIcon />}/>} containerStyle={styles.container}>
225
+ return (<ScreenWrapper_1.ScreenWrapper header={<Header_1.Header title={t('general.consultation.videoConsultation.title')} leftIcon={<VideoConsultationIcon_1.VideoConsultationIcon />}/>} containerStyle={styles.container} scrollEnabled={false}>
226
226
  {error && (<react_native_1.View style={styles.error}>
227
227
  <WarningIcon_1.default />
228
228
  <Text_1.Text style={styles.warningText}>{t('error.address')}</Text_1.Text>
229
229
  </react_native_1.View>)}
230
+
230
231
  <react_native_1.View>
231
232
  <Text_1.Text variant="h2" center>
232
233
  {t('delivery.address.title')}
@@ -234,16 +235,21 @@ var DeliveryAddressScreen = function (_a) {
234
235
  <Text_1.Text center>{t('delivery.address.description')}</Text_1.Text>
235
236
  </react_native_1.View>
236
237
 
237
- <FormWrapper_1.FormWrapper schema={deliveryAddress_1.HKDeliveryAddressSchema} onSubmit={{
238
- onSuccess: onSubmit
238
+ <react_native_1.ScrollView style={styles.formScrollWrapper}>
239
+ <FormWrapper_1.FormWrapper schema={deliveryAddress_1.HKDeliveryAddressSchema} onSubmit={{
240
+ onSuccess: onSubmit,
241
+ onError: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
242
+ return [2 /*return*/, setError(true)];
243
+ }); }); }
239
244
  }} initialValues={initialDeliveryAddress} submitButton={<Button_1.Button submit loading={loading}>
240
- {t('button.confirm')}
241
- </Button_1.Button>} loadingForm={loading}>
242
- <Input_1.default id="house" label={t('delivery.address.number_and_floor')} placeholder={t('delivery.address.number_and_floor.placeholder')}/>
243
- <Input_1.default id="street" label={t('delivery.address.street')} placeholder={t('delivery.address.street.placeholder')}/>
244
- <Input_1.default id="building" label={t('delivery.address.building_name_number')} placeholder={t('delivery.address.building_name_number.placeholder')}/>
245
- <CategorySelect id="district" label={t('delivery.address.district')} placeholder={t('delivery.address.district.placeholder')} options={deliveryAddress_1.DISTRICT_AREAS}/>
246
- </FormWrapper_1.FormWrapper>
245
+ {t('button.confirm')}
246
+ </Button_1.Button>} loadingForm={loading}>
247
+ <Input_1.default id="house" label={t('delivery.address.number_and_floor')} placeholder={t('delivery.address.number_and_floor.placeholder')}/>
248
+ <Input_1.default id="street" label={t('delivery.address.street')} placeholder={t('delivery.address.street.placeholder')}/>
249
+ <Input_1.default id="building" label={t('delivery.address.building_name_number')} placeholder={t('delivery.address.building_name_number.placeholder')}/>
250
+ <CategorySelect id="district" label={t('delivery.address.district')} placeholder={t('delivery.address.district.placeholder')} options={deliveryAddress_1.DISTRICT_AREAS}/>
251
+ </FormWrapper_1.FormWrapper>
252
+ </react_native_1.ScrollView>
247
253
  </ScreenWrapper_1.ScreenWrapper>);
248
254
  };
249
255
  exports.DeliveryAddressScreen = DeliveryAddressScreen;
@@ -265,6 +271,9 @@ var getStyles = function (_a) {
265
271
  warningText: {
266
272
  color: palette.white,
267
273
  marginLeft: spacing.sm
274
+ },
275
+ formScrollWrapper: {
276
+ width: '100%'
268
277
  }
269
278
  });
270
279
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abihealth/goapp-react-native",
3
- "version": "1.44.0",
3
+ "version": "1.45.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"