@fto-consult/expo-ui 6.15.3 → 6.15.5
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/babel.config.js
CHANGED
|
@@ -117,7 +117,7 @@ const generateTableOrStructDataStr = (tableDataPath)=>{
|
|
|
117
117
|
if(!indexContent || (!indexContent.includes("table") && !indexContent.includes("tableName"))){
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
getTableJSContent+=`\t\
|
|
120
|
+
getTableJSContent+=`\t\tif(tableName === "${tableName}"){return require("./${table}").default;}\n`;
|
|
121
121
|
});
|
|
122
122
|
//on génère le fichier getTable des tables data de l'application
|
|
123
123
|
if(getTableJSContent){
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ import {defaultStr,isPromise,defaultObj} from "$cutils";
|
|
|
11
11
|
import {open as openPreloader,close as closePreloader} from "$preloader";
|
|
12
12
|
import {styles as _styles} from "$theme";
|
|
13
13
|
import Tooltip from "$ecomponents/Tooltip";
|
|
14
|
-
import {navigateToTableData} from "$enavigation/utils";
|
|
14
|
+
import {navigateToTableData,navigateToStructData} from "$enavigation/utils";
|
|
15
15
|
import Auth from "$cauth";
|
|
16
16
|
import fetch from "$capi/fetch";
|
|
17
17
|
import useContext from "$econtext/hooks";
|
|
@@ -46,8 +46,9 @@ const TableLinKComponent = React.forwardRef((props,ref)=>{
|
|
|
46
46
|
const r2 = typeof fetchForeignData === 'function'? fetchForeignData({...args,...defaultObj(a)}) : undefined;
|
|
47
47
|
if(isPromise(r2)){
|
|
48
48
|
return r2.then((data)=>{
|
|
49
|
+
const nav = isStructData ? navigateToStructData : navigateToTableData;
|
|
49
50
|
if(isObj(data) && (isNonNullString(foreignKeyColumn) ? data[foreignKeyColumn] !== undefined:true)){
|
|
50
|
-
|
|
51
|
+
nav({tableName:foreignKeyTable,isStructData,data});
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
}
|