|
|
@ -27,17 +27,18 @@ export default async function getColumnPropsFromUIDT( |
|
|
|
newColumn.dtxs = sqlUi.getDefaultScaleForDatatype(newColumn.dt); |
|
|
|
newColumn.dtxs = sqlUi.getDefaultScaleForDatatype(newColumn.dt); |
|
|
|
|
|
|
|
|
|
|
|
const selectTypes = [UITypes.MultiSelect, UITypes.SingleSelect]; |
|
|
|
const selectTypes = [UITypes.MultiSelect, UITypes.SingleSelect]; |
|
|
|
if ( |
|
|
|
if (column && selectTypes.includes(column.uidt as UITypes)) { |
|
|
|
column && |
|
|
|
newColumn.dtxp = |
|
|
|
selectTypes.includes(newColumn.uidt) && |
|
|
|
typeof (column as NormalColumnRequestType).dtxp === 'string' |
|
|
|
selectTypes.includes(column.uidt as UITypes) |
|
|
|
? ((column as NormalColumnRequestType).dtxp as string) |
|
|
|
) { |
|
|
|
.trim() |
|
|
|
newColumn.dtxp = (column as NormalColumnRequestType).dtxp; |
|
|
|
.replace(/'\s*,\s*'/g, "','") |
|
|
|
|
|
|
|
: (column as NormalColumnRequestType).dtxp; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
newColumn.altered = column.altered || 2; |
|
|
|
newColumn.altered = column.altered || 2; |
|
|
|
|
|
|
|
|
|
|
|
const finalColumnMeta = { ...newColumn, ...column }; |
|
|
|
const finalColumnMeta = { ...column, ...newColumn }; |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
if ( |
|
|
|
finalColumnMeta.uidt === UITypes.CreatedTime && |
|
|
|
finalColumnMeta.uidt === UITypes.CreatedTime && |
|
|
|