@fto-consult/expo-ui 2.23.5 → 2.23.7
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
|
@@ -1725,11 +1725,17 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
1725
1725
|
/*** permet d'effectuer le rendu des colonnes groupable dans le menu item */
|
|
1726
1726
|
renderSectionListMenu(){
|
|
1727
1727
|
const m = Array.isArray(this.preparedColumns?.sectionListColumnsMenuItems)? this.preparedColumns?.sectionListColumnsMenuItems : [];
|
|
1728
|
-
|
|
1728
|
+
const mm = [];
|
|
1729
|
+
Object.map(m,(_)=>{
|
|
1730
|
+
mm.push({
|
|
1731
|
+
..._,
|
|
1732
|
+
items : undefined,
|
|
1733
|
+
})
|
|
1734
|
+
})
|
|
1735
|
+
if(!mm.length){
|
|
1729
1736
|
return null;
|
|
1730
1737
|
}
|
|
1731
1738
|
const hasList = this.sectionListColumnsSize.current;
|
|
1732
|
-
const isMobile = isMobileOrTabletMedia();
|
|
1733
1739
|
return <Menu
|
|
1734
1740
|
title = {"Grouper les données du tableau"}
|
|
1735
1741
|
testID = {"RN_DatagridSectionListMenu"}
|
|
@@ -1758,7 +1764,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
1758
1764
|
},100)
|
|
1759
1765
|
}
|
|
1760
1766
|
},
|
|
1761
|
-
...
|
|
1767
|
+
...mm,
|
|
1762
1768
|
]}
|
|
1763
1769
|
/>
|
|
1764
1770
|
}
|
|
@@ -349,8 +349,12 @@ export default class TableDataScreenComponent extends FormDataScreen{
|
|
|
349
349
|
rActionsArg.formProps = formProps;
|
|
350
350
|
return rActionsArg;
|
|
351
351
|
}
|
|
352
|
-
renderTabs(){
|
|
353
|
-
|
|
352
|
+
renderTabs(args){
|
|
353
|
+
const tabs = this.getMainProps().tabs;
|
|
354
|
+
if(typeof tabs =='function'){
|
|
355
|
+
return tabs(args);
|
|
356
|
+
}
|
|
357
|
+
return tabs;
|
|
354
358
|
}
|
|
355
359
|
handleCustomRender(){
|
|
356
360
|
return true;
|