@fto-consult/expo-ui 2.36.2 → 2.36.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
|
@@ -43,7 +43,7 @@ import notify from "$cnotify";
|
|
|
43
43
|
import FileSystem from "$file-system";
|
|
44
44
|
import sprintf from "$cutils/sprintf";
|
|
45
45
|
|
|
46
|
-
export const TIMEOUT =
|
|
46
|
+
export const TIMEOUT = 100;
|
|
47
47
|
|
|
48
48
|
export const donutChart = {
|
|
49
49
|
isChart : true,
|
|
@@ -1272,15 +1272,15 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
1272
1272
|
if(!isObj(this.state.sectionListColumns) || !Array.isArray(this.preparedColumns?.sectionListColumnsMenuItems))return;
|
|
1273
1273
|
const menuItems = this.preparedColumns?.sectionListColumnsMenuItems;
|
|
1274
1274
|
if(!menuItems.length) return;
|
|
1275
|
-
const sectionListColumns = {...this.state.sectionListColumns};
|
|
1276
|
-
if(enable !== true && isObj(sectionListColumns[columnName])){
|
|
1277
|
-
delete sectionListColumns[columnName];
|
|
1278
|
-
} else {
|
|
1279
|
-
sectionListColumns[columnName] = {field:columnName};
|
|
1280
|
-
}
|
|
1281
1275
|
setTimeout(()=>{
|
|
1282
|
-
const {sectionListColumns:pSListColumns} = this.prepareColumns({sectionListColumns});
|
|
1283
1276
|
this.setIsLoading(true,()=>{
|
|
1277
|
+
const sectionListColumns = {...this.state.sectionListColumns};
|
|
1278
|
+
if(enable !== true && isObj(sectionListColumns[columnName])){
|
|
1279
|
+
delete sectionListColumns[columnName];
|
|
1280
|
+
} else {
|
|
1281
|
+
sectionListColumns[columnName] = {field:columnName};
|
|
1282
|
+
}
|
|
1283
|
+
const {sectionListColumns:pSListColumns} = this.prepareColumns({sectionListColumns});
|
|
1284
1284
|
this.prepareData({data:this.INITIAL_STATE.data,sectionListColumns:pSListColumns},(state)=>{
|
|
1285
1285
|
this.setState({...state,sectionListColumns:pSListColumns},()=>{
|
|
1286
1286
|
this.setIsLoading(false,false);
|