mg-library 1.0.428 → 1.0.430

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.
Files changed (2) hide show
  1. package/blocks.js +8 -19
  2. package/package.json +10 -10
package/blocks.js CHANGED
@@ -30,9 +30,14 @@ export function MGWelcome(props) {
30
30
  </View>
31
31
  )
32
32
 
33
+ let subTitle = mgFunctionsLib.i18nString('notices', props.language);
34
+
35
+ if(props.subTitle != undefined)
36
+ subTitle = props.subTitle;
37
+
33
38
  let listHeaderComponent = (
34
39
  <View>
35
- <MGSessionHeader module={mgFunctionsLib.i18nString('notices', props.language)} person={props.person} theme={props.theme} />
40
+ <MGSessionHeader module={subTitle} person={props.person} theme={props.theme} />
36
41
  {companyInfoComponent}
37
42
  <MGDivider />
38
43
  {props.beforeNotices != undefined &&
@@ -44,24 +49,6 @@ export function MGWelcome(props) {
44
49
  </View>
45
50
  );
46
51
 
47
- /* function cardHeader(item) {
48
- return (
49
- <>
50
- <View style={{ flexDirection: 'row', marginVertical: 10, marginHorizontal: 10 }}>
51
- <View style={{ flexGrow: 0.10 }}>
52
- {item.isImportant &&
53
- <MaterialCommunityIcons name='alert-circle-outline' color={props.theme['color-primary-500']} size={30} style={{ flex: 1 }} />
54
- }
55
- </View>
56
- <View style={{ flexGrow: 0.90 }}>
57
- <Text category='h6'>{item.description}</Text>
58
- <Text style={{ marginBottom: 10 }} category='c1'>{mgFunctionsLib.getDateForExposition(item.noticeDate, props.language)}, {item.noticeTime._asTime()}</Text>
59
- </View>
60
- </View>
61
- </>
62
- );
63
- }; */
64
-
65
52
  function cardHeader(item) {
66
53
  return (
67
54
  <>
@@ -194,6 +181,8 @@ export function MGLogin(props) {
194
181
  placeholder={mgFunctionsLib.i18nString('password', props.language)}
195
182
  onChangeText={onChange}
196
183
  secureTextEntry={true}
184
+ maxLength={12}
185
+ keyboardType='numeric'
197
186
  value={value}
198
187
  />
199
188
  )}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "mg-library",
3
- "version": "1.0.428",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "author": "",
10
- "license": "ISC"
11
- }
2
+ "name": "mg-library",
3
+ "version": "1.0.430",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }