@fto-consult/expo-ui 2.31.1 → 2.31.3
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
|
@@ -1136,14 +1136,12 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
1136
1136
|
if(!isNonNullString(field)) return;
|
|
1137
1137
|
let columns = {...this.state.columns};
|
|
1138
1138
|
columns[field].visible = !columns[field].visible;
|
|
1139
|
-
|
|
1139
|
+
const footers = this.getFootersFields();
|
|
1140
1140
|
if(isObj(footers[field])){
|
|
1141
1141
|
footers[field].visible = columns[field].visible;
|
|
1142
1142
|
}
|
|
1143
1143
|
this.prepareColumns({columns});
|
|
1144
|
-
this.setState({columns}
|
|
1145
|
-
if(removeFocus) document.body.click();
|
|
1146
|
-
});
|
|
1144
|
+
this.setState({columns});
|
|
1147
1145
|
}
|
|
1148
1146
|
/****le nombre maximum de courbes supportées */
|
|
1149
1147
|
getMaxSeriesSize(){
|
|
@@ -1788,7 +1786,6 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
1788
1786
|
type : chartType.type,
|
|
1789
1787
|
})
|
|
1790
1788
|
}
|
|
1791
|
-
//console.log(chartOptions," is chart options");
|
|
1792
1789
|
const labelColor = theme.Colors.isValid(config.labelColor)? config.labelColor : theme.colors.text;
|
|
1793
1790
|
if(!isDonut){
|
|
1794
1791
|
chartOptions.xaxis = extendObj(true,{},{type: 'category'},chartProps.xaxis,{xaxis});
|
|
@@ -2352,11 +2349,13 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
2352
2349
|
cells = [];
|
|
2353
2350
|
const footers = this.sectionListHeaderFooters[key];
|
|
2354
2351
|
Object.map(visibleColumnsNames,(v,column)=>{
|
|
2355
|
-
if(typeof widths[column] !== 'number')
|
|
2356
|
-
|
|
2352
|
+
if(!v || typeof widths[column] !== 'number') {
|
|
2353
|
+
return null;
|
|
2354
|
+
}
|
|
2357
2355
|
if(!column) return null;
|
|
2356
|
+
const width = widths[column];
|
|
2358
2357
|
const key2 = key+column;
|
|
2359
|
-
if(!
|
|
2358
|
+
if(!this.state.columns[column] || !footers[column]) {
|
|
2360
2359
|
if(this.isAccordion()) return null;
|
|
2361
2360
|
cells.push(<View key={key2} testID={testID+"_FooterCellContainer_"+key2} style={[tableStyles.headerItemOrCell,{width}]}></View>)
|
|
2362
2361
|
} else {
|