@fto-consult/expo-ui 7.16.8 → 7.17.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.
@@ -2,7 +2,8 @@
2
2
  /*** here you can export list of main drawerItems,
3
3
  [key1] : {
4
4
  label{string|ReactNode} : drawerLabel1,
5
- routeName {string}, drawer routeName
5
+ routeName {string}, drawer routeName,
6
+ drawerSection {string}, drawer section
6
7
  routeParams {object}, list of custom params to pass to the navignation route,
7
8
  icon {string|ReactNode}, icon,
8
9
  left {function|string|ReactNode}, drawerItemLeft
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.16.8",
3
+ "version": "7.17.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -71,8 +71,8 @@
71
71
  "@expo/html-elements": "^0.5.1",
72
72
  "@expo/vector-icons": "^13.0.0",
73
73
  "@faker-js/faker": "^8.0.2",
74
- "@fto-consult/common": "^4.1.3",
75
- "@fto-consult/electron-gen": "^2.2.0",
74
+ "@fto-consult/common": "^4.1.4",
75
+ "@fto-consult/electron-gen": "^2.2.1",
76
76
  "@pchmn/expo-material3-theme": "^1.3.1",
77
77
  "@react-native-async-storage/async-storage": "1.18.2",
78
78
  "@react-native-community/datetimepicker": "7.2.0",
@@ -101,7 +101,7 @@
101
101
  "htmlparser2-without-node-native": "^3.9.2",
102
102
  "is-plain-obj": "^4.1.0",
103
103
  "js-base64": "^3.7.5",
104
- "pdfmake": "^0.2.8",
104
+ "pdfmake": "^0.2.9",
105
105
  "process": "^0.11.10",
106
106
  "prop-types": "^15.8.1",
107
107
  "react": "^18.2.0",
@@ -113,7 +113,7 @@
113
113
  "react-native-get-random-values": "~1.9.0",
114
114
  "react-native-iphone-x-helper": "^1.3.1",
115
115
  "react-native-mime-types": "^2.4.0",
116
- "react-native-paper": "^5.11.5",
116
+ "react-native-paper": "^5.11.6",
117
117
  "react-native-paper-dates": "^0.21.7",
118
118
  "react-native-reanimated": "~3.3.0",
119
119
  "react-native-safe-area-context": "4.6.3",
@@ -3,7 +3,7 @@
3
3
  // license that can be found in the LICENSE file.
4
4
 
5
5
  import { isRouteActive} from "$cnavigation";
6
- import {defaultObj,sortBy,defaultStr,isObj} from "$cutils";
6
+ import {defaultObj,sortBy,defaultStr,isObj,isNonNullString,extendObj} from "$cutils";
7
7
  import appConfig from "$capp/config";
8
8
  import useContext from "$econtext/hooks";
9
9
  import {useMemo,useEffect,useRef} from "react";
@@ -16,6 +16,8 @@ import useExpoUI from "$econtext/hooks";
16
16
  import Auth,{useIsSignedIn,tableDataPerms} from "$cauth";
17
17
  import {getTableDataListRouteName} from "$enavigation/utils";
18
18
  import {isValidElement,usePrevious} from "$react";
19
+
20
+ /***** les props supplémentaires à passer aux drawers items d'une table de données sont dans le champ drawerItemProps */
19
21
  const useGetItems = (options)=>{
20
22
  const {navigation:{drawerItems,drawerSections,drawerItemsMutator},tablesData} = useContext();
21
23
  options = defaultObj(options);
@@ -84,8 +86,11 @@ const useGetItems = (options)=>{
84
86
  tProps[v] = table[v];
85
87
  }
86
88
  })
89
+ if(isObj(table.drawerItemProps)){
90
+ extendObj(tProps,table.drawerItemProps);
91
+ };
87
92
  const toP = {
88
- routeName : defaultStr(table.routeName,getTableDataListRouteName(tableName)),
93
+ routeName : table.routeName === false ? undefined : defaultStr(table.routeName,getTableDataListRouteName(tableName)),
89
94
  ...tProps,
90
95
  routeParams : {tableName,...Object.assign({},tProps.routeParams)}
91
96
  };
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  "@fto-consult/expo-ui": {
3
3
  "name": "@fto-consult/expo-ui",
4
- "version": "7.15.0",
4
+ "version": "7.16.9",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/borispipo/expo-ui.git"
@@ -49,12 +49,12 @@ module.exports = {
49
49
  "license": "MIT"
50
50
  },
51
51
  "@fto-consult/common": {
52
- "version": "4.0.5",
52
+ "version": "4.1.4",
53
53
  "url": "https://github.com/borispipo/common#readme",
54
54
  "license": "ISC"
55
55
  },
56
56
  "@fto-consult/electron-gen": {
57
- "version": "2.2.0",
57
+ "version": "2.2.1",
58
58
  "license": "ISC"
59
59
  },
60
60
  "@pchmn/expo-material3-theme": {
@@ -206,7 +206,7 @@ module.exports = {
206
206
  "license": "BSD-3-Clause"
207
207
  },
208
208
  "pdfmake": {
209
- "version": "0.2.8",
209
+ "version": "0.2.9",
210
210
  "url": "http://pdfmake.org",
211
211
  "license": "MIT"
212
212
  },
@@ -263,7 +263,7 @@ module.exports = {
263
263
  "license": "MIT"
264
264
  },
265
265
  "react-native-paper": {
266
- "version": "5.11.5",
266
+ "version": "5.11.6",
267
267
  "url": "https://callstack.github.io/react-native-paper",
268
268
  "license": "MIT"
269
269
  },