|
|
@ -7,14 +7,14 @@ export function useColumn(column: Ref<ColumnType>) { |
|
|
|
const { project } = useProject() |
|
|
|
const { project } = useProject() |
|
|
|
|
|
|
|
|
|
|
|
const uiDatatype: ComputedRef<UITypes> = computed(() => column?.value?.uidt as UITypes) |
|
|
|
const uiDatatype: ComputedRef<UITypes> = computed(() => column?.value?.uidt as UITypes) |
|
|
|
const abstractType = computed(() => |
|
|
|
const abstractType = computed(() => { |
|
|
|
// kludge: CY test hack; column.value is being received NULL during attach cell delete operation
|
|
|
|
// kludge: CY test hack; column.value is being received NULL during attach cell delete operation
|
|
|
|
isVirtualCol(column?.value) || !column?.value |
|
|
|
return isVirtualCol(column?.value) || !column?.value |
|
|
|
? null |
|
|
|
? null |
|
|
|
: SqlUiFactory.create( |
|
|
|
: SqlUiFactory.create( |
|
|
|
project.value?.bases?.[0]?.config ? { client: project.value.bases[0].config.type } : { client: 'mysql2' }, |
|
|
|
project.value?.bases?.[0]?.config ? { client: project.value.bases[0].type } : { client: 'mysql2' }, |
|
|
|
).getAbstractType(column?.value), |
|
|
|
).getAbstractType(column?.value) |
|
|
|
) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const dataTypeLow = computed(() => column?.value?.dt?.toLowerCase()) |
|
|
|
const dataTypeLow = computed(() => column?.value?.dt?.toLowerCase()) |
|
|
|
const isBoolean = computed(() => abstractType.value === 'boolean') |
|
|
|
const isBoolean = computed(() => abstractType.value === 'boolean') |
|
|
|