@fto-consult/expo-ui 8.62.1 → 8.62.4
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "8.62.
|
3
|
+
"version": "8.62.4",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"react-native-paper-doc": "https://github.com/callstack/react-native-paper/tree/main/docs/docs/guides",
|
6
6
|
"scripts": {
|
@@ -93,7 +93,7 @@ class DropdownComponent extends AppComponent {
|
|
93
93
|
if(iLabel) return iLabel;
|
94
94
|
}
|
95
95
|
if(isNonNullString(item.label)) return item.label;
|
96
|
-
return defaultStr(item.text,item[index]);
|
96
|
+
return defaultStr(item.text,item[index],item.code);
|
97
97
|
}
|
98
98
|
return undefined;
|
99
99
|
},override : false, writable : false
|
@@ -211,7 +211,7 @@ class DropdownComponent extends AppComponent {
|
|
211
211
|
selectedValuesKeys = {};
|
212
212
|
if(select){
|
213
213
|
selectedValuesKeys[valueKey] = true;
|
214
|
-
}
|
214
|
+
}
|
215
215
|
}
|
216
216
|
this.willHandleFilter = false;
|
217
217
|
let nState = {};
|
@@ -294,7 +294,6 @@ class DropdownComponent extends AppComponent {
|
|
294
294
|
if(!this.canHandleMultiple){
|
295
295
|
sDText = text;
|
296
296
|
} else {
|
297
|
-
|
298
297
|
counter++;
|
299
298
|
if(counter <= maxCount){
|
300
299
|
sDText+= (sDText?", ":"")+text;
|
@@ -306,9 +305,9 @@ class DropdownComponent extends AppComponent {
|
|
306
305
|
if(Array.isArray(selectedValues)){
|
307
306
|
for(let i in selectedValues){
|
308
307
|
const text = selectedValues[i];
|
309
|
-
if(!isNonNullString(text)) continue;
|
308
|
+
if(!isNonNullString(text) && typeof text !=="number") continue;
|
310
309
|
if(!this.canHandleMultiple){
|
311
|
-
sDText = text;
|
310
|
+
sDText = String(text);
|
312
311
|
} else {
|
313
312
|
counter++;
|
314
313
|
if(counter <= maxCount){
|
@@ -316,8 +315,8 @@ class DropdownComponent extends AppComponent {
|
|
316
315
|
}
|
317
316
|
}
|
318
317
|
}
|
319
|
-
} else if(isNonNullString(selectedValues)) {
|
320
|
-
sDText = selectedValues
|
318
|
+
} else if(isNonNullString(selectedValues) || typeof selectedValues ==="number") {
|
319
|
+
sDText = String(selectedValues);
|
321
320
|
}
|
322
321
|
this.toggleHasNoValidSelectedValue(!!sDText);
|
323
322
|
} else {
|
@@ -658,11 +657,6 @@ class DropdownComponent extends AppComponent {
|
|
658
657
|
if(isFunc || !React.areEquals(items,this.props.items)){
|
659
658
|
const nState = this.prepareItems({items,defaultValue,selected});
|
660
659
|
return this.updateSelected(nState,!isFunc);
|
661
|
-
const val = this.prepareSelected({defaultValue});
|
662
|
-
if(!this.compare(val,this.state.selected)){
|
663
|
-
return this.selectValue(defaultValue,true);
|
664
|
-
}
|
665
|
-
return;
|
666
660
|
}
|
667
661
|
let value = this.prepareSelected({defaultValue});
|
668
662
|
let areEquals = !this.canHandleMultiple ? this.compare(value,this.state.selected) : false;
|
@@ -1021,6 +1021,7 @@ export default class Field extends AppComponent {
|
|
1021
1021
|
rest.error = this.state.error;
|
1022
1022
|
rest.onFocus = this.onFocusField.bind(this);
|
1023
1023
|
rest.testID = defaultStr(rest.testID,"RN_FormField_"+this.getName());
|
1024
|
+
rest.tooltip = tooltip;
|
1024
1025
|
if(this.canHandleWidthOrHeightProps()){
|
1025
1026
|
if(width){
|
1026
1027
|
rest.width = width;
|
@@ -1,21 +1,22 @@
|
|
1
1
|
module.exports = {
|
2
2
|
"@fto-consult/expo-ui": {
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"type": "git",
|
7
|
-
"url": "git+https://github.com/borispipo/expo-ui.git"
|
8
|
-
},
|
9
|
-
"homepage": "https://github.com/borispipo/expo-ui#readme"
|
3
|
+
"version": "8.62.3",
|
4
|
+
"url": "https://github.com/borispipo/expo-ui#readme",
|
5
|
+
"license": "ISC"
|
10
6
|
},
|
11
7
|
"@babel/plugin-proposal-export-namespace-from": {
|
12
8
|
"version": "7.18.9",
|
13
9
|
"url": "https://babel.dev/docs/en/next/babel-plugin-proposal-export-namespace-from",
|
14
10
|
"license": "MIT"
|
15
11
|
},
|
16
|
-
"@emotion/
|
17
|
-
"version": "11.11.
|
18
|
-
"url": "https://
|
12
|
+
"@emotion/native": {
|
13
|
+
"version": "11.11.0",
|
14
|
+
"url": "https://emotion.sh",
|
15
|
+
"license": "MIT"
|
16
|
+
},
|
17
|
+
"@expo/html-elements": {
|
18
|
+
"version": "0.5.1",
|
19
|
+
"url": "https://github.com/expo/expo/tree/main/packages/html-elements",
|
19
20
|
"license": "MIT"
|
20
21
|
},
|
21
22
|
"@expo/metro-config": {
|
@@ -23,28 +24,49 @@ module.exports = {
|
|
23
24
|
"url": "https://github.com/expo/expo.git",
|
24
25
|
"license": "MIT"
|
25
26
|
},
|
27
|
+
"@expo/vector-icons": {
|
28
|
+
"version": "14.0.0",
|
29
|
+
"url": "https://expo.github.io/vector-icons",
|
30
|
+
"license": "MIT"
|
31
|
+
},
|
26
32
|
"@expo/webpack-config": {
|
27
33
|
"version": "19.0.1",
|
28
34
|
"url": "https://github.com/expo/expo-webpack-integrations/tree/main/packages/webpack-config#readme",
|
29
35
|
"license": "MIT"
|
30
36
|
},
|
31
|
-
"@
|
32
|
-
"version": "
|
33
|
-
"url": "https://github.com/
|
37
|
+
"@pchmn/expo-material3-theme": {
|
38
|
+
"version": "1.3.2",
|
39
|
+
"url": "https://github.com/pchmn/expo-material3-theme#readme",
|
34
40
|
"license": "MIT"
|
35
41
|
},
|
36
|
-
"@
|
37
|
-
"version": "
|
38
|
-
"url": "https://github.com/
|
39
|
-
"license": "
|
42
|
+
"@react-native-community/netinfo": {
|
43
|
+
"version": "11.1.0",
|
44
|
+
"url": "https://github.com/react-native-netinfo/react-native-netinfo#readme",
|
45
|
+
"license": "MIT"
|
40
46
|
},
|
41
|
-
"@
|
42
|
-
"version": "
|
47
|
+
"@react-native/assets-registry": {
|
48
|
+
"version": "0.72.0",
|
49
|
+
"url": "git@github.com:facebook/react-native.git",
|
43
50
|
"license": "MIT"
|
44
51
|
},
|
45
|
-
"
|
46
|
-
"version": "
|
47
|
-
"url": "https://
|
52
|
+
"@react-navigation/native": {
|
53
|
+
"version": "6.1.17",
|
54
|
+
"url": "https://reactnavigation.org",
|
55
|
+
"license": "MIT"
|
56
|
+
},
|
57
|
+
"@react-navigation/native-stack": {
|
58
|
+
"version": "6.9.26",
|
59
|
+
"url": "https://github.com/software-mansion/react-native-screens#readme",
|
60
|
+
"license": "MIT"
|
61
|
+
},
|
62
|
+
"@react-navigation/stack": {
|
63
|
+
"version": "6.3.29",
|
64
|
+
"url": "https://reactnavigation.org/docs/stack-navigator/",
|
65
|
+
"license": "MIT"
|
66
|
+
},
|
67
|
+
"@shopify/flash-list": {
|
68
|
+
"version": "1.6.3",
|
69
|
+
"url": "https://shopify.github.io/flash-list/",
|
48
70
|
"license": "MIT"
|
49
71
|
},
|
50
72
|
"babel-plugin-inline-dotenv": {
|
@@ -62,48 +84,74 @@ module.exports = {
|
|
62
84
|
"url": "https://github.com/crypto-browserify/crypto-browserify",
|
63
85
|
"license": "MIT"
|
64
86
|
},
|
65
|
-
"
|
66
|
-
"version": "
|
67
|
-
"url": "https://github.com/
|
87
|
+
"expo": {
|
88
|
+
"version": "50.0.14",
|
89
|
+
"url": "https://github.com/expo/expo/tree/main/packages/expo",
|
90
|
+
"license": "MIT"
|
91
|
+
},
|
92
|
+
"expo-camera": {
|
93
|
+
"version": "14.1.1",
|
94
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/camera/",
|
95
|
+
"license": "MIT"
|
96
|
+
},
|
97
|
+
"expo-clipboard": {
|
98
|
+
"version": "5.0.1",
|
99
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/clipboard",
|
100
|
+
"license": "MIT"
|
101
|
+
},
|
102
|
+
"expo-document-picker": {
|
103
|
+
"version": "11.10.1",
|
104
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/document-picker/",
|
105
|
+
"license": "MIT"
|
106
|
+
},
|
107
|
+
"expo-font": {
|
108
|
+
"version": "11.10.3",
|
109
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/font/",
|
68
110
|
"license": "MIT"
|
69
111
|
},
|
70
|
-
"
|
71
|
-
"version": "
|
72
|
-
"url": "https://
|
73
|
-
"license": "
|
112
|
+
"expo-image-picker": {
|
113
|
+
"version": "14.7.1",
|
114
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/imagepicker/",
|
115
|
+
"license": "MIT"
|
74
116
|
},
|
75
|
-
"
|
76
|
-
"version": "
|
77
|
-
"url": "https://
|
117
|
+
"expo-intent-launcher": {
|
118
|
+
"version": "10.11.0",
|
119
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/intent-launcher/",
|
78
120
|
"license": "MIT"
|
79
121
|
},
|
80
|
-
"
|
81
|
-
"version": "
|
82
|
-
"url": "
|
122
|
+
"expo-linking": {
|
123
|
+
"version": "6.2.2",
|
124
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/linking",
|
83
125
|
"license": "MIT"
|
84
126
|
},
|
85
|
-
"
|
86
|
-
"version": "
|
127
|
+
"expo-sharing": {
|
128
|
+
"version": "11.10.0",
|
129
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/sharing/",
|
87
130
|
"license": "MIT"
|
88
131
|
},
|
89
|
-
"
|
90
|
-
"version": "
|
91
|
-
"url": "https://
|
132
|
+
"expo-sqlite": {
|
133
|
+
"version": "13.4.0",
|
134
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/sqlite/",
|
92
135
|
"license": "MIT"
|
93
136
|
},
|
94
|
-
"
|
95
|
-
"version": "
|
96
|
-
"url": "https://
|
137
|
+
"expo-status-bar": {
|
138
|
+
"version": "1.11.1",
|
139
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/status-bar/",
|
97
140
|
"license": "MIT"
|
98
141
|
},
|
99
|
-
"
|
100
|
-
"version": "
|
101
|
-
"url": "https://
|
142
|
+
"expo-system-ui": {
|
143
|
+
"version": "2.9.3",
|
144
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/system-ui",
|
102
145
|
"license": "MIT"
|
103
146
|
},
|
104
|
-
"
|
105
|
-
"version": "
|
106
|
-
"url": "https://
|
147
|
+
"expo-web-browser": {
|
148
|
+
"version": "12.8.2",
|
149
|
+
"url": "https://docs.expo.dev/versions/latest/sdk/webbrowser/",
|
150
|
+
"license": "MIT"
|
151
|
+
},
|
152
|
+
"react-native": {
|
153
|
+
"version": "0.73.6",
|
154
|
+
"url": "https://reactnative.dev/",
|
107
155
|
"license": "MIT"
|
108
156
|
},
|
109
157
|
"react-native-big-list": {
|
@@ -111,44 +159,45 @@ module.exports = {
|
|
111
159
|
"url": "https://marcocesarato.github.io/react-native-big-list-docs/",
|
112
160
|
"license": "GPL-3.0-or-later"
|
113
161
|
},
|
114
|
-
"react-native-
|
115
|
-
"version": "
|
116
|
-
"url": "https://github.com/
|
162
|
+
"react-native-blob-util": {
|
163
|
+
"version": "0.18.6",
|
164
|
+
"url": "https://github.com/RonRadtke/react-native-blob-util",
|
117
165
|
"license": "MIT"
|
118
166
|
},
|
119
|
-
"react-native-
|
120
|
-
"version": "2.
|
167
|
+
"react-native-gesture-handler": {
|
168
|
+
"version": "2.14.1",
|
169
|
+
"url": "https://github.com/software-mansion/react-native-gesture-handler#readme",
|
121
170
|
"license": "MIT"
|
122
171
|
},
|
123
|
-
"react-native-
|
124
|
-
"version": "
|
125
|
-
"url": "https://
|
172
|
+
"react-native-reanimated": {
|
173
|
+
"version": "3.6.2",
|
174
|
+
"url": "https://github.com/software-mansion/react-native-reanimated#readme",
|
126
175
|
"license": "MIT"
|
127
176
|
},
|
128
|
-
"react-native-
|
129
|
-
"version": "
|
130
|
-
"url": "https://github.com/
|
177
|
+
"react-native-safe-area-context": {
|
178
|
+
"version": "4.8.2",
|
179
|
+
"url": "https://github.com/th3rdwave/react-native-safe-area-context#readme",
|
131
180
|
"license": "MIT"
|
132
181
|
},
|
133
|
-
"react-native-
|
134
|
-
"version": "
|
135
|
-
"url": "
|
182
|
+
"react-native-screens": {
|
183
|
+
"version": "3.29.0",
|
184
|
+
"url": "https://github.com/software-mansion/react-native-screens#readme",
|
136
185
|
"license": "MIT"
|
137
186
|
},
|
138
|
-
"react-
|
139
|
-
"version": "
|
140
|
-
"url": "https://
|
187
|
+
"react-native-svg": {
|
188
|
+
"version": "14.1.0",
|
189
|
+
"url": "https://github.com/react-native-community/react-native-svg",
|
141
190
|
"license": "MIT"
|
142
191
|
},
|
143
|
-
"
|
144
|
-
"version": "
|
145
|
-
"url": "https://github.com/
|
192
|
+
"react-native-view-shot": {
|
193
|
+
"version": "3.8.0",
|
194
|
+
"url": "https://github.com/gre/react-native-view-shot",
|
146
195
|
"license": "MIT"
|
147
196
|
},
|
148
|
-
"
|
149
|
-
"version": "
|
150
|
-
"url": "
|
151
|
-
"license": "
|
197
|
+
"react-native-webview": {
|
198
|
+
"version": "13.6.4",
|
199
|
+
"url": "https://github.com/react-native-webview/react-native-webview#readme",
|
200
|
+
"license": "MIT"
|
152
201
|
},
|
153
202
|
"sharp-cli": {
|
154
203
|
"version": "2.1.1",
|
@@ -160,19 +209,9 @@ module.exports = {
|
|
160
209
|
"url": "https://github.com/browserify/stream-browserify",
|
161
210
|
"license": "MIT"
|
162
211
|
},
|
163
|
-
"tippy.js": {
|
164
|
-
"version": "6.3.7",
|
165
|
-
"url": "https://atomiks.github.io/tippyjs/",
|
166
|
-
"license": "MIT"
|
167
|
-
},
|
168
212
|
"vm": {
|
169
213
|
"version": "0.1.0",
|
170
214
|
"url": "https://github.com/DiegoRBaquero/node-vm#readme",
|
171
215
|
"license": "MIT"
|
172
|
-
},
|
173
|
-
"xlsx": {
|
174
|
-
"version": "0.18.5",
|
175
|
-
"url": "https://sheetjs.com/",
|
176
|
-
"license": "Apache-2.0"
|
177
216
|
}
|
178
217
|
};
|