@fto-consult/expo-ui 7.13.0 → 7.13.2

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": "7.13.0",
3
+ "version": "7.13.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -71,7 +71,7 @@
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.0.0",
74
+ "@fto-consult/common": "^4.0.1",
75
75
  "@fto-consult/electron-gen": "^2.2.0",
76
76
  "@pchmn/expo-material3-theme": "^1.3.1",
77
77
  "@react-native-async-storage/async-storage": "1.18.2",
@@ -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": "^4.12.6",
116
+ "react-native-paper": "^5.11.5",
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",
@@ -2415,12 +2415,11 @@ export default class CommonDatagridComponent extends AppComponent {
2415
2415
  //const spackLine = chartOptions.chart.sparkline;
2416
2416
  chartOptions.xaxis = defaultObj(chartOptions.xaxis);
2417
2417
  chartOptions.xaxis.labels = defaultObj(chartOptions.xaxis.labels);
2418
- chartOptions.xaxis.labels.show = ("showXaxis" in config) ? !!config.showXaxis : this.isDashboard();
2418
+ chartOptions.xaxis.labels.show = ("showXaxis" in config) ? !!config.showXaxis : !this.isDashboard();
2419
2419
 
2420
- console.log("rendering char ",chartOptions,config);
2421
2420
 
2422
2421
  chartOptions.yaxis.labels = defaultObj(chartOptions.yaxis.labels);
2423
- chartOptions.yaxis.labels.show = ("showYaxis" in config) ? !!config.showYaxis : this.isDashboard();
2422
+ chartOptions.yaxis.labels.show = ("showYaxis" in config) ? !!config.showYaxis : !this.isDashboard();
2424
2423
 
2425
2424
  chartOptions.legend = defaultObj(chartOptions.legend);
2426
2425
  chartOptions.legend.show = ("showLegend" in config) ? !!config.showLegend : !this.isDashboard();
@@ -142,6 +142,7 @@ const PermLine = ({text,cellProps,isUserMasterAdmin,withGrid,defaultActions,reso
142
142
  }
143
143
 
144
144
  });
145
+ if(!content.length) return null;
145
146
  return <Cell testID={testID+"_Cell"} tabletSize={6} desktopSize={4} phoneSize={12} {...cellProps}>
146
147
  <Expandable
147
148
  expandedIcon ={'chevron-right'}
@@ -60,15 +60,15 @@ const PermLines = React.forwardRef(({user,gridProps,defaultActions:cDefaultActio
60
60
  const resource = getTableDataPermResourcePrefix(tableName);
61
61
  const perms = {};
62
62
  Object.map(table.perms,(perm,i)=>{
63
+ const iLower = i.toLowerCase();
64
+ if(iLower == 'defaultactions' || iLower =='defaultaction'){
65
+ perms.defaultActions = perm;
66
+ }
63
67
  if(perm ===false) {
64
68
  perms[i] = false;
65
69
  return;
66
70
  }
67
71
  if(!isObj(perm)) return;
68
- const iLower = i.toLowerCase();
69
- if(iLower == 'defaultactions' || iLower =='defaultaction'){
70
- perms.defaultActions = perm;
71
- }
72
72
  if(perm.defaultActions){
73
73
  perm.actions = {
74
74
  ...Object.clone(defaultActions),