mg-library 1.0.432 → 1.0.434
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/blocks.js +35 -16
- package/package.json +1 -1
package/blocks.js
CHANGED
@@ -32,7 +32,7 @@ export function MGWelcome(props) {
|
|
32
32
|
|
33
33
|
let subTitle = mgFunctionsLib.i18nString('notices', props.language);
|
34
34
|
|
35
|
-
if(props.subTitle != undefined)
|
35
|
+
if (props.subTitle != undefined)
|
36
36
|
subTitle = props.subTitle;
|
37
37
|
|
38
38
|
let listHeaderComponent = (
|
@@ -172,20 +172,39 @@ export function MGLogin(props) {
|
|
172
172
|
/>
|
173
173
|
)}
|
174
174
|
name="userName" />
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
175
|
+
{props.useNumericKeyboardOnPassword &&
|
176
|
+
<Controller
|
177
|
+
control={control}
|
178
|
+
rules={{ maxLength: 50 }}
|
179
|
+
render={({ field: { onChange, value } }) => (
|
180
|
+
<Input
|
181
|
+
size='large'
|
182
|
+
placeholder={mgFunctionsLib.i18nString('password', props.language)}
|
183
|
+
onChangeText={onChange}
|
184
|
+
secureTextEntry={true}
|
185
|
+
maxLength={12}
|
186
|
+
keyboardType='numeric'
|
187
|
+
value={value}
|
188
|
+
/>
|
189
|
+
)}
|
190
|
+
name="password" />
|
191
|
+
}
|
192
|
+
{!props.useNumericKeyboardOnPassword &&
|
193
|
+
<Controller
|
194
|
+
control={control}
|
195
|
+
rules={{ maxLength: 50 }}
|
196
|
+
render={({ field: { onChange, value } }) => (
|
197
|
+
<Input
|
198
|
+
size='large'
|
199
|
+
placeholder={mgFunctionsLib.i18nString('password', props.language)}
|
200
|
+
onChangeText={onChange}
|
201
|
+
secureTextEntry={true}
|
202
|
+
maxLength={12}
|
203
|
+
value={value}
|
204
|
+
/>
|
205
|
+
)}
|
206
|
+
name="password" />
|
207
|
+
}
|
189
208
|
</Card>
|
190
209
|
</View>
|
191
210
|
</View>
|
@@ -530,7 +549,7 @@ export function MGFlatListHeader(props) {
|
|
530
549
|
<Text category='h6' style={{ marginLeft: 10 }}>{props.title}</Text>
|
531
550
|
{props.subTitle != undefined &&
|
532
551
|
props.subTitle
|
533
|
-
}
|
552
|
+
}
|
534
553
|
</View>
|
535
554
|
{props.afterTitle != undefined &&
|
536
555
|
props.afterTitle
|