|
|
|
@ -39,14 +39,7 @@ enum UITypes {
|
|
|
|
|
Button = 'Button', |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export function isNumericCol( |
|
|
|
|
col: |
|
|
|
|
| UITypes |
|
|
|
|
| { readonly uidt: UITypes | string } |
|
|
|
|
| ColumnReqType |
|
|
|
|
| ColumnType |
|
|
|
|
) { |
|
|
|
|
return [ |
|
|
|
|
export const numericUITypes = [ |
|
|
|
|
UITypes.Duration, |
|
|
|
|
UITypes.Currency, |
|
|
|
|
UITypes.Percent, |
|
|
|
@ -54,7 +47,18 @@ export function isNumericCol(
|
|
|
|
|
UITypes.Decimal, |
|
|
|
|
UITypes.Rating, |
|
|
|
|
UITypes.Rollup, |
|
|
|
|
].includes(<UITypes>(typeof col === 'object' ? col?.uidt : col)); |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
export function isNumericCol( |
|
|
|
|
col: |
|
|
|
|
| UITypes |
|
|
|
|
| { readonly uidt: UITypes | string } |
|
|
|
|
| ColumnReqType |
|
|
|
|
| ColumnType |
|
|
|
|
) { |
|
|
|
|
return numericUITypes.includes( |
|
|
|
|
<UITypes>(typeof col === 'object' ? col?.uidt : col) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export function isVirtualCol( |
|
|
|
|