@fto-consult/expo-ui 8.15.2 → 8.16.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.
package/bin/create-app/App.js
CHANGED
@@ -4,11 +4,11 @@ import { registerRootComponent } from 'expo';
|
|
4
4
|
import ExpoUIProvider from "$expo-ui";
|
5
5
|
import screens from "$screens";
|
6
6
|
import drawerItems from "$navigation/drawerItems";
|
7
|
-
import Logo from "$
|
7
|
+
import Logo from "$ecomponents/Logo";
|
8
8
|
import drawerSections from "$navigation/drawerSections";
|
9
9
|
import TableDataListScreen from "$screens/TableData/TableDataListScreen";
|
10
10
|
import TableDataScreen from "$screens/TableData/TableDataScreen";
|
11
|
-
import Notifications from "$
|
11
|
+
import Notifications from "$ecomponents/Notifications";
|
12
12
|
import auth from "$src/auth";
|
13
13
|
|
14
14
|
export default function AppMainEntry(){
|
package/package.json
CHANGED
@@ -2124,7 +2124,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
2124
2124
|
* @param {object} chartType le type de chart, l'un des types du tableau displayTypes en haut du présent fichier
|
2125
2125
|
* @param {object} yAxisColumn la colonne de l'axe vertical y
|
2126
2126
|
* @param {object} xAxisColumn la colonne de l'axe des x de la courbe, pris dans les configurations du chart, config
|
2127
|
-
* @param {object} la fonction d'aggrégation, l'une des fonctions issues des fonctions d'aggrégations aggregatorsFuncions, @see : dans $
|
2127
|
+
* @param {object} la fonction d'aggrégation, l'une des fonctions issues des fonctions d'aggrégations aggregatorsFuncions, @see : dans $ecomponents/Datagrid/Footer
|
2128
2128
|
* en affichage des tableaux de type sectionList, seul les colonnes de totalisation sont utilisées pour l'affichage du graphe
|
2129
2129
|
* Le nombre de graphes (series) à afficher est valable pour tous les graphes sauf les graphes de type pie/donut.
|
2130
2130
|
* il est récupéré dans la variable chartConfig des configuration du chart, où par défaut le nombre de colonnes de totalisation des tableau (inférieur au nombre maximum de courbes surpportées par appexchart)
|
@@ -54,12 +54,16 @@ const PermLines = React.forwardRef(({user,gridProps,defaultActions:cDefaultActio
|
|
54
54
|
const content = React.useMemo(()=>{
|
55
55
|
const content = [];
|
56
56
|
Object.map(tables,(table,tableName)=>{
|
57
|
-
if(!isObj(table)
|
57
|
+
if(!isObj(table)) return null;
|
58
|
+
const tablePerms = typeof table.perms =="function"? table.perms({user,isMasterAdmin:isUserMasterAdmin,table,tables}) : table.perms;
|
59
|
+
if(!isObj(tablePerms)){
|
60
|
+
return null;
|
61
|
+
}
|
58
62
|
tableName = defaultStr(table.tableName,table.table,tableName).toLowerCase().trim();
|
59
63
|
const text = defaultStr(table.text,table.label)
|
60
64
|
const resource = getTableDataPermResourcePrefix(tableName);
|
61
65
|
const perms = {};
|
62
|
-
Object.map(
|
66
|
+
Object.map(tablePerms,(perm,i)=>{
|
63
67
|
const iLower = i.toLowerCase();
|
64
68
|
if(iLower == 'defaultactions' || iLower =='defaultaction'){
|
65
69
|
perms.defaultActions = perm;
|