|
|
@ -28,7 +28,7 @@ const defaultColumns = function (context) { |
|
|
|
dtxp: '', |
|
|
|
dtxp: '', |
|
|
|
dtxs: '', |
|
|
|
dtxs: '', |
|
|
|
uidt: 'CreatedTime', |
|
|
|
uidt: 'CreatedTime', |
|
|
|
system:true, |
|
|
|
system: true, |
|
|
|
dt: isPg(context) ? 'timestamp without time zone' : undefined, |
|
|
|
dt: isPg(context) ? 'timestamp without time zone' : undefined, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -42,7 +42,7 @@ const defaultColumns = function (context) { |
|
|
|
dtxp: '', |
|
|
|
dtxp: '', |
|
|
|
dtxs: '', |
|
|
|
dtxs: '', |
|
|
|
uidt: 'LastModifiedTime', |
|
|
|
uidt: 'LastModifiedTime', |
|
|
|
system:true, |
|
|
|
system: true, |
|
|
|
dt: isPg(context) ? 'timestamp without time zone' : undefined, |
|
|
|
dt: isPg(context) ? 'timestamp without time zone' : undefined, |
|
|
|
}, |
|
|
|
}, |
|
|
|
]; |
|
|
|
]; |
|
|
@ -53,7 +53,7 @@ const customColumns = function (type: string, options: any = {}) { |
|
|
|
case 'textBased': |
|
|
|
case 'textBased': |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
column_name: 'Id', |
|
|
|
column_name: 'id', |
|
|
|
title: 'Id', |
|
|
|
title: 'Id', |
|
|
|
uidt: UITypes.ID, |
|
|
|
uidt: UITypes.ID, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -86,7 +86,7 @@ const customColumns = function (type: string, options: any = {}) { |
|
|
|
case 'numberBased': |
|
|
|
case 'numberBased': |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
column_name: 'Id', |
|
|
|
column_name: 'id', |
|
|
|
title: 'Id', |
|
|
|
title: 'Id', |
|
|
|
uidt: UITypes.ID, |
|
|
|
uidt: UITypes.ID, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -124,7 +124,7 @@ const customColumns = function (type: string, options: any = {}) { |
|
|
|
case 'dateBased': |
|
|
|
case 'dateBased': |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
column_name: 'Id', |
|
|
|
column_name: 'id', |
|
|
|
title: 'Id', |
|
|
|
title: 'Id', |
|
|
|
uidt: UITypes.ID, |
|
|
|
uidt: UITypes.ID, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -142,7 +142,7 @@ const customColumns = function (type: string, options: any = {}) { |
|
|
|
case 'selectBased': |
|
|
|
case 'selectBased': |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
column_name: 'Id', |
|
|
|
column_name: 'id', |
|
|
|
title: 'Id', |
|
|
|
title: 'Id', |
|
|
|
uidt: UITypes.ID, |
|
|
|
uidt: UITypes.ID, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -162,7 +162,7 @@ const customColumns = function (type: string, options: any = {}) { |
|
|
|
case 'userBased': |
|
|
|
case 'userBased': |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
column_name: 'Id', |
|
|
|
column_name: 'id', |
|
|
|
title: 'Id', |
|
|
|
title: 'Id', |
|
|
|
uidt: UITypes.ID, |
|
|
|
uidt: UITypes.ID, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -179,7 +179,7 @@ const customColumns = function (type: string, options: any = {}) { |
|
|
|
}, |
|
|
|
}, |
|
|
|
]; |
|
|
|
]; |
|
|
|
case 'custom': |
|
|
|
case 'custom': |
|
|
|
return [{ title: 'Id', column_name: 'Id', uidt: UITypes.ID }, ...options]; |
|
|
|
return [{ title: 'Id', column_name: 'id', uidt: UITypes.ID }, ...options]; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|