|
|
@ -1,6 +1,5 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import { isVirtualCol, UITypes } from 'nocodb-sdk' |
|
|
|
|
|
|
|
import { |
|
|
|
import { |
|
|
|
ActiveCellInj, |
|
|
|
ActiveCellInj, |
|
|
|
ColumnInj, |
|
|
|
ColumnInj, |
|
|
@ -84,10 +83,7 @@ const { currentRow } = useSmartsheetRowStoreOrThrow() |
|
|
|
|
|
|
|
|
|
|
|
const { sqlUi } = useProject() |
|
|
|
const { sqlUi } = useProject() |
|
|
|
|
|
|
|
|
|
|
|
const abstractType = computed(() => { |
|
|
|
const abstractType = computed(() => column.value && sqlUi.value.getAbstractType(column.value)) |
|
|
|
// kludge: CY test hack; column.value is being received NULL during attach cell delete operation |
|
|
|
|
|
|
|
return (column.value && isVirtualCol(column.value)) || !column.value ? null : sqlUi.value.getAbstractType(column.value) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const syncValue = useDebounceFn(() => { |
|
|
|
const syncValue = useDebounceFn(() => { |
|
|
|
currentRow.value.rowMeta.changed = false |
|
|
|
currentRow.value.rowMeta.changed = false |
|
|
@ -133,6 +129,7 @@ const syncAndNavigate = (dir: NavigateDir, e: KeyboardEvent) => { |
|
|
|
@keydown.enter.exact="syncAndNavigate(NavigateDir.NEXT, $event)" |
|
|
|
@keydown.enter.exact="syncAndNavigate(NavigateDir.NEXT, $event)" |
|
|
|
@keydown.shift.enter.exact="syncAndNavigate(NavigateDir.PREV, $event)" |
|
|
|
@keydown.shift.enter.exact="syncAndNavigate(NavigateDir.PREV, $event)" |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
<template v-if="column"> |
|
|
|
<LazyCellTextArea v-if="isTextArea(column)" v-model="vModel" /> |
|
|
|
<LazyCellTextArea v-if="isTextArea(column)" v-model="vModel" /> |
|
|
|
<LazyCellCheckbox v-else-if="isBoolean(column)" v-model="vModel" /> |
|
|
|
<LazyCellCheckbox v-else-if="isBoolean(column)" v-model="vModel" /> |
|
|
|
<LazyCellAttachment v-else-if="isAttachment(column)" v-model="vModel" :row-index="props.rowIndex" /> |
|
|
|
<LazyCellAttachment v-else-if="isAttachment(column)" v-model="vModel" :row-index="props.rowIndex" /> |
|
|
@ -160,5 +157,6 @@ const syncAndNavigate = (dir: NavigateDir, e: KeyboardEvent) => { |
|
|
|
class="nc-locked-overlay" |
|
|
|
class="nc-locked-overlay" |
|
|
|
@click.stop.prevent |
|
|
|
@click.stop.prevent |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|