@fto-consult/expo-ui 2.39.4 → 2.39.6
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
|
@@ -2339,6 +2339,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
2339
2339
|
text : "Grouper par",
|
|
2340
2340
|
icon : "group",
|
|
2341
2341
|
closeOnPress : false,
|
|
2342
|
+
right : (p)=><Icon {...p} name="material-settings"/>,
|
|
2342
2343
|
divider : true,
|
|
2343
2344
|
style : theme.styles.bold,
|
|
2344
2345
|
onPress : this.configureSectionLists.bind(this),
|
|
@@ -2366,6 +2367,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
2366
2367
|
this.beforePrepareColumns();
|
|
2367
2368
|
args = defaultObj(args);
|
|
2368
2369
|
const sectionListColumns = {};
|
|
2370
|
+
const nSectionList = {};
|
|
2369
2371
|
const sListColumns = isObj(args.sectionListColumns) ? args.sectionListColumns : this.getSectionListColumns();
|
|
2370
2372
|
const filteredColumns = isObjOrArray(args.filteredColumns)?args.filteredColumns : isObjOrArray(this.state.filteredColumns) ? this.state.filteredColumns : {};
|
|
2371
2373
|
const columns = args.columns || this.state.columns;
|
|
@@ -2540,7 +2542,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
2540
2542
|
if(this.props.groupable !== false && header.groupable !== false && !this.isSelectableColumn(header,header.field) && !this.isIndexColumn(header,header.field)){
|
|
2541
2543
|
const isInSectionListHeader = isObj(sListColumns[field]);
|
|
2542
2544
|
if(isInSectionListHeader){
|
|
2543
|
-
|
|
2545
|
+
nSectionList[field] = {
|
|
2544
2546
|
...header,
|
|
2545
2547
|
width,
|
|
2546
2548
|
type,
|
|
@@ -2564,7 +2566,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
2564
2566
|
mItem.right = (p)=>{
|
|
2565
2567
|
return <Icon name="material-settings" {...p} onPress={(e)=>{
|
|
2566
2568
|
//React.stopEventPropagation(e);
|
|
2567
|
-
this.configureSectionListColumn({...mItem,...defaultObj(
|
|
2569
|
+
this.configureSectionListColumn({...mItem,...defaultObj(nSectionList[field])});
|
|
2568
2570
|
//return false;
|
|
2569
2571
|
}}/>
|
|
2570
2572
|
}
|
|
@@ -2575,6 +2577,11 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
2575
2577
|
visibleColumnIndex++;
|
|
2576
2578
|
|
|
2577
2579
|
})
|
|
2580
|
+
Object.map(sListColumns,(f,i)=>{
|
|
2581
|
+
if(i in nSectionList){
|
|
2582
|
+
sectionListColumns[i] = nSectionList[i];
|
|
2583
|
+
}
|
|
2584
|
+
})
|
|
2578
2585
|
this.preparedColumns.sortedColumns = sortedColumns;
|
|
2579
2586
|
this.preparedColumns.sortedColumn = sortedColumn;
|
|
2580
2587
|
this.preparedColumns.sortedColumnsLength = sortedColumnsLength;
|