@fto-consult/expo-ui 8.25.18 → 8.27.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.
@@ -249,7 +249,7 @@ export const formatValue = (value,format,abreviateValues,formatter)=>{
249
249
  }
250
250
 
251
251
  export const getRowsPerPagesLimits = ()=>{
252
- return [5,10,15,20,25,30,40,50,60,80,100,500,1000,1500,2000,2500,3000,3500,4000,4500,5000,...(isDesktopMedia() ? [6000,7000,8000,9000,10000]:[])];
252
+ return [0,5,10,15,20,25,30,40,50,60,80,100,500,1000,1500,2000,2500,3000,3500,4000,4500,5000,...(isDesktopMedia() ? [6000,7000,8000,9000,10000,15000,20000,25000,30000,35000,40000,45000,50000]:[])];
253
253
  }
254
254
 
255
255
 
@@ -168,7 +168,7 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
168
168
  opts.fetchOptions.selector = extendObj(true,{},opts.fetchOptions.selector,fetchOptionsRef.current?.selector);
169
169
  }
170
170
  opts.fetchOptions.sort = sortRef.current;
171
- if(canHandleLimit){
171
+ if(canHandleLimit && limitRef.current > 0){
172
172
  opts.fetchOptions.limit = limitRef.current;
173
173
  opts.fetchOptions.page = pageRef.current -1;
174
174
  } else {
@@ -275,6 +275,7 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
275
275
  text : item.formatNumber(),
276
276
  icon : limitRef.current == item ? 'check' : null,
277
277
  primary : limitRef.current === item ? true : false,
278
+ tooltip : item === 0 ? "Sélectionnez cette valeur si vous souhaitez vous en passer de la limite du nombre d'items à afficher" : item.formatNumber(),
278
279
  onPress : ()=>{
279
280
  if(item == limitRef.current) return;
280
281
  limitRef.current = item;
@@ -3,12 +3,15 @@ import View from "$ecomponents/View";
3
3
  import React from "$react";
4
4
  import theme,{remToPixel,Colors,flattenStyle} from '$theme';
5
5
  import {StyleSheet} from "react-native";
6
- import {defaultStr,defaultObj,defaultNumber} from "$cutils";
6
+ import {defaultStr,defaultObj,defaultNumber,isPlainObject} from "$cutils";
7
7
  import useContext from "$econtext/hooks";
8
8
  export const height = 150;
9
9
  export const width = undefined;//300;
10
10
  export default function Logo (props) {
11
11
  const {components:{logo:LogoComponent}} = useContext();
12
+ if(React.isComponent(LogoComponent)) return <LogoComponent
13
+ {...props}
14
+ />
12
15
  let {icon,color,style,testID,containerProps,smallStyle,largeStyle,mediumStyle,height:customHeight,withImage,withText} = props;
13
16
  testID = defaultStr(testID,"RN_LogoComponent");
14
17
  containerProps = defaultObj(containerProps);
@@ -17,9 +20,9 @@ export default function Logo (props) {
17
20
  const styles = getStyle({style,color,height:hasHeight?customHeight:undefined,smallStyle,largeStyle,mediumStyle});
18
21
  let logoImage = null,img,txt=null,hasTwice = false;
19
22
  if(LogoComponent){
20
- hasTwice = React.isComponent(LogoComponent.Image) && React.isComponent(LogoComponent.Text);
23
+ hasTwice = React.isComponent(LogoComponent?.Image) && React.isComponent(LogoComponent?.Text);
21
24
  if(!hasTwice){
22
- logoImage = React.isValidElement(LogoComponent)? LogoComponent : React.isComponent(LogoComponent)? <LogoComponent {...props} style={[styles.logoContent,props.style]} testID={testID+"_Content"} styles={styles}/> : null;
25
+ logoImage = React.isValidElement(LogoComponent)? LogoComponent : null;
23
26
  } else {
24
27
  img = icon !== false ? <View testID={testID+"_ContentContainer"} style={styles.logoImage}>
25
28
  <LogoComponent.Image styles={styles}/>
@@ -1,77 +1,50 @@
1
1
  module.exports = {
2
2
  "@fto-consult/expo-ui": {
3
- "version": "8.25.17",
4
- "url": "https://github.com/borispipo/expo-ui#readme",
5
- "license": "ISC"
3
+ "name": "@fto-consult/expo-ui",
4
+ "version": "8.27.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/borispipo/expo-ui.git"
8
+ },
9
+ "homepage": "https://github.com/borispipo/expo-ui#readme"
6
10
  },
7
11
  "@babel/plugin-proposal-export-namespace-from": {
8
12
  "version": "7.18.9",
9
13
  "url": "https://babel.dev/docs/en/next/babel-plugin-proposal-export-namespace-from",
10
14
  "license": "MIT"
11
15
  },
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",
16
+ "@emotion/react": {
17
+ "version": "11.11.3",
18
+ "url": "https://github.com/emotion-js/emotion/tree/main/packages/react",
20
19
  "license": "MIT"
21
20
  },
22
21
  "@expo/metro-config": {
23
- "version": "0.17.4",
22
+ "version": "0.17.3",
24
23
  "url": "https://github.com/expo/expo.git",
25
24
  "license": "MIT"
26
25
  },
27
- "@expo/vector-icons": {
28
- "version": "14.0.0",
29
- "url": "https://expo.github.io/vector-icons",
30
- "license": "MIT"
31
- },
32
26
  "@expo/webpack-config": {
33
27
  "version": "19.0.1",
34
28
  "url": "https://github.com/expo/expo-webpack-integrations/tree/main/packages/webpack-config#readme",
35
29
  "license": "MIT"
36
30
  },
37
- "@pchmn/expo-material3-theme": {
38
- "version": "1.3.2",
39
- "url": "https://github.com/pchmn/expo-material3-theme#readme",
40
- "license": "MIT"
41
- },
42
- "@react-native-async-storage/async-storage": {
43
- "version": "1.21.0",
44
- "url": "https://github.com/react-native-async-storage/async-storage#readme",
45
- "license": "MIT"
46
- },
47
- "@react-native-community/netinfo": {
48
- "version": "11.1.0",
49
- "url": "https://github.com/react-native-netinfo/react-native-netinfo#readme",
50
- "license": "MIT"
51
- },
52
- "@react-native/assets-registry": {
53
- "version": "0.72.0",
54
- "url": "git@github.com:facebook/react-native.git",
55
- "license": "MIT"
56
- },
57
- "@react-navigation/native": {
58
- "version": "6.1.9",
59
- "url": "https://reactnavigation.org",
31
+ "@faker-js/faker": {
32
+ "version": "8.3.1",
33
+ "url": "https://github.com/faker-js/faker.git",
60
34
  "license": "MIT"
61
35
  },
62
- "@react-navigation/native-stack": {
63
- "version": "6.9.17",
64
- "url": "https://github.com/software-mansion/react-native-screens#readme",
65
- "license": "MIT"
36
+ "@fto-consult/common": {
37
+ "version": "4.27.1",
38
+ "url": "https://github.com/borispipo/common#readme",
39
+ "license": "ISC"
66
40
  },
67
- "@react-navigation/stack": {
68
- "version": "6.3.20",
69
- "url": "https://reactnavigation.org/docs/stack-navigator/",
41
+ "@fto-consult/node-utils": {
42
+ "version": "1.5.1",
70
43
  "license": "MIT"
71
44
  },
72
- "@shopify/flash-list": {
73
- "version": "1.6.3",
74
- "url": "https://shopify.github.io/flash-list/",
45
+ "apexcharts": {
46
+ "version": "3.46.0",
47
+ "url": "https://apexcharts.com",
75
48
  "license": "MIT"
76
49
  },
77
50
  "babel-plugin-inline-dotenv": {
@@ -84,113 +57,117 @@ module.exports = {
84
57
  "url": "https://github.com/tleunen/babel-plugin-module-resolver.git",
85
58
  "license": "MIT"
86
59
  },
87
- "expo": {
88
- "version": "50.0.6",
89
- "url": "https://github.com/expo/expo/tree/main/packages/expo",
90
- "license": "MIT"
91
- },
92
- "expo-camera": {
93
- "version": "14.0.4",
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",
60
+ "crypto-browserify": {
61
+ "version": "3.12.0",
62
+ "url": "https://github.com/crypto-browserify/crypto-browserify",
100
63
  "license": "MIT"
101
64
  },
102
- "expo-font": {
103
- "version": "11.10.2",
104
- "url": "https://docs.expo.dev/versions/latest/sdk/font/",
65
+ "file-saver": {
66
+ "version": "2.0.5",
67
+ "url": "https://github.com/eligrey/FileSaver.js#readme",
105
68
  "license": "MIT"
106
69
  },
107
- "expo-image-picker": {
108
- "version": "14.7.1",
109
- "url": "https://docs.expo.dev/versions/latest/sdk/imagepicker/",
110
- "license": "MIT"
70
+ "google-libphonenumber": {
71
+ "version": "3.2.34",
72
+ "url": "https://ruimarinho.github.io/google-libphonenumber/",
73
+ "license": "(MIT AND Apache-2.0)"
111
74
  },
112
- "expo-linking": {
113
- "version": "6.2.2",
114
- "url": "https://docs.expo.dev/versions/latest/sdk/linking",
75
+ "html2canvas": {
76
+ "version": "1.4.1",
77
+ "url": "https://html2canvas.hertzen.com",
115
78
  "license": "MIT"
116
79
  },
117
- "expo-sharing": {
118
- "version": "11.10.0",
119
- "url": "https://docs.expo.dev/versions/latest/sdk/sharing/",
80
+ "htmlparser2-without-node-native": {
81
+ "version": "3.9.2",
82
+ "url": "git://github.com/fb55/htmlparser2.git",
120
83
  "license": "MIT"
121
84
  },
122
- "expo-sqlite": {
123
- "version": "13.2.2",
124
- "url": "https://docs.expo.dev/versions/latest/sdk/sqlite/",
85
+ "is-plain-obj": {
86
+ "version": "4.1.0",
125
87
  "license": "MIT"
126
88
  },
127
- "expo-status-bar": {
128
- "version": "1.11.1",
129
- "url": "https://docs.expo.dev/versions/latest/sdk/status-bar/",
89
+ "jsbarcode": {
90
+ "version": "3.11.6",
91
+ "url": "https://github.com/lindell/JsBarcode#readme",
130
92
  "license": "MIT"
131
93
  },
132
- "expo-system-ui": {
133
- "version": "2.9.3",
134
- "url": "https://docs.expo.dev/versions/latest/sdk/system-ui",
94
+ "prop-types": {
95
+ "version": "15.8.1",
96
+ "url": "https://facebook.github.io/react/",
135
97
  "license": "MIT"
136
98
  },
137
- "expo-web-browser": {
138
- "version": "12.8.2",
139
- "url": "https://docs.expo.dev/versions/latest/sdk/webbrowser/",
99
+ "react-content-loader": {
100
+ "version": "6.2.1",
101
+ "url": "https://github.com/danilowoz/react-content-loader",
140
102
  "license": "MIT"
141
103
  },
142
- "react": {
104
+ "react-dom": {
143
105
  "version": "18.2.0",
144
106
  "url": "https://reactjs.org/",
145
107
  "license": "MIT"
146
108
  },
147
- "react-native": {
148
- "version": "0.73.4",
149
- "url": "https://reactnative.dev/",
109
+ "react-native-big-list": {
110
+ "version": "1.6.1",
111
+ "url": "https://marcocesarato.github.io/react-native-big-list-docs/",
112
+ "license": "GPL-3.0-or-later"
113
+ },
114
+ "react-native-iphone-x-helper": {
115
+ "version": "1.3.1",
116
+ "url": "https://github.com/ptelad/react-native-iphone-x-helper#readme",
150
117
  "license": "MIT"
151
118
  },
152
- "react-native-gesture-handler": {
153
- "version": "2.14.1",
154
- "url": "https://github.com/software-mansion/react-native-gesture-handler#readme",
119
+ "react-native-mime-types": {
120
+ "version": "2.4.0",
155
121
  "license": "MIT"
156
122
  },
157
- "react-native-get-random-values": {
158
- "version": "1.8.0",
123
+ "react-native-paper": {
124
+ "version": "5.12.3",
125
+ "url": "https://callstack.github.io/react-native-paper",
159
126
  "license": "MIT"
160
127
  },
161
- "react-native-reanimated": {
162
- "version": "3.6.2",
163
- "url": "https://github.com/software-mansion/react-native-reanimated#readme",
128
+ "react-native-paper-dates": {
129
+ "version": "0.21.9",
130
+ "url": "https://github.com/web-ridge/react-native-paper-dates#readme",
164
131
  "license": "MIT"
165
132
  },
166
- "react-native-safe-area-context": {
167
- "version": "4.8.2",
168
- "url": "https://github.com/th3rdwave/react-native-safe-area-context#readme",
133
+ "react-native-web": {
134
+ "version": "0.19.10",
135
+ "url": "git://github.com/necolas/react-native-web.git",
169
136
  "license": "MIT"
170
137
  },
171
- "react-native-screens": {
172
- "version": "3.29.0",
173
- "url": "https://github.com/software-mansion/react-native-screens#readme",
138
+ "react-virtuoso": {
139
+ "version": "4.7.0",
140
+ "url": "https://virtuoso.dev/",
174
141
  "license": "MIT"
175
142
  },
176
- "react-native-svg": {
177
- "version": "14.1.0",
178
- "url": "https://github.com/react-native-community/react-native-svg",
143
+ "readable-stream": {
144
+ "version": "4.5.2",
145
+ "url": "https://github.com/nodejs/readable-stream",
179
146
  "license": "MIT"
180
147
  },
181
- "react-native-view-shot": {
182
- "version": "3.8.0",
183
- "url": "https://github.com/gre/react-native-view-shot",
148
+ "sanitize-filename": {
149
+ "version": "1.6.3",
150
+ "url": "git@github.com:parshap/node-sanitize-filename.git",
151
+ "license": "WTFPL OR ISC"
152
+ },
153
+ "sharp-cli": {
154
+ "version": "2.1.1",
155
+ "url": "https://github.com/vseventer/sharp-cli",
184
156
  "license": "MIT"
185
157
  },
186
- "react-native-webview": {
187
- "version": "13.6.4",
188
- "url": "https://github.com/react-native-webview/react-native-webview#readme",
158
+ "stream-browserify": {
159
+ "version": "3.0.0",
160
+ "url": "https://github.com/browserify/stream-browserify",
189
161
  "license": "MIT"
190
162
  },
191
- "socket.io-client": {
192
- "version": "4.7.4",
193
- "url": "https://github.com/socketio/socket.io-client.git",
163
+ "tippy.js": {
164
+ "version": "6.3.7",
165
+ "url": "https://atomiks.github.io/tippyjs/",
194
166
  "license": "MIT"
167
+ },
168
+ "xlsx": {
169
+ "version": "0.18.5",
170
+ "url": "https://sheetjs.com/",
171
+ "license": "Apache-2.0"
195
172
  }
196
173
  };