|
|
@ -121,6 +121,8 @@ const reloadViewDataHook = inject(ReloadViewDataHookInj, createEventHook()) |
|
|
|
|
|
|
|
|
|
|
|
const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook()) |
|
|
|
const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useViewColumns(view, meta, () => reloadViewDataHook.trigger()) |
|
|
|
|
|
|
|
|
|
|
|
const { isMobileMode } = useGlobal() |
|
|
|
const { isMobileMode } = useGlobal() |
|
|
|
|
|
|
|
|
|
|
|
const scrollParent = inject(ScrollParentInj, ref<undefined>()) |
|
|
|
const scrollParent = inject(ScrollParentInj, ref<undefined>()) |
|
|
@ -1196,14 +1198,18 @@ const expandAndLooseFocus = (row: Row, col: Record<string, any>) => { |
|
|
|
@xcresized="resizingCol = null" |
|
|
|
@xcresized="resizingCol = null" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="w-full h-full flex items-center"> |
|
|
|
<div class="w-full h-full flex items-center"> |
|
|
|
<LazySmartsheetHeaderVirtualCell v-if="isVirtualCol(col)" :column="col" :hide-menu="readOnly" /> |
|
|
|
<LazySmartsheetHeaderVirtualCell |
|
|
|
<LazySmartsheetHeaderCell v-else :column="col" :hide-menu="readOnly" /> |
|
|
|
v-if="isVirtualCol(col)" |
|
|
|
|
|
|
|
:column="col" |
|
|
|
|
|
|
|
:hide-menu="readOnly || isMobileMode" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<LazySmartsheetHeaderCell v-else :column="col" :hide-menu="readOnly || isMobileMode" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
v-if="isAddingColumnAllowed" |
|
|
|
v-if="isAddingColumnAllowed" |
|
|
|
v-e="['c:column:add']" |
|
|
|
v-e="['c:column:add']" |
|
|
|
class="cursor-pointer !border-0 relative" |
|
|
|
class="cursor-pointer !border-0 relative !sm:hidden" |
|
|
|
:style="{ |
|
|
|
:style="{ |
|
|
|
borderWidth: '0px !important', |
|
|
|
borderWidth: '0px !important', |
|
|
|
}" |
|
|
|
}" |
|
|
@ -1322,7 +1328,7 @@ const expandAndLooseFocus = (row: Row, col: Record<string, any>) => { |
|
|
|
<LazySmartsheetRow v-for="(row, rowIndex) of dataRef" ref="rowRefs" :key="rowIndex" :row="row"> |
|
|
|
<LazySmartsheetRow v-for="(row, rowIndex) of dataRef" ref="rowRefs" :key="rowIndex" :row="row"> |
|
|
|
<template #default="{ state }"> |
|
|
|
<template #default="{ state }"> |
|
|
|
<tr |
|
|
|
<tr |
|
|
|
class="nc-grid-row" |
|
|
|
class="nc-grid-row !sm:h-14" |
|
|
|
:style="{ height: rowHeight ? `${rowHeight * 1.8}rem` : `1.8rem` }" |
|
|
|
:style="{ height: rowHeight ? `${rowHeight * 1.8}rem` : `1.8rem` }" |
|
|
|
:data-testid="`grid-row-${rowIndex}`" |
|
|
|
:data-testid="`grid-row-${rowIndex}`" |
|
|
|
> |
|
|
|
> |
|
|
@ -1454,7 +1460,7 @@ const expandAndLooseFocus = (row: Row, col: Record<string, any>) => { |
|
|
|
<tr |
|
|
|
<tr |
|
|
|
v-if="isAddingEmptyRowAllowed && !isGroupBy" |
|
|
|
v-if="isAddingEmptyRowAllowed && !isGroupBy" |
|
|
|
v-e="['c:row:add:grid-bottom']" |
|
|
|
v-e="['c:row:add:grid-bottom']" |
|
|
|
class="text-left nc-grid-add-new-cell cursor-pointer group relative z-3" |
|
|
|
class="text-left nc-grid-add-new-cell cursor-pointer group relative z-3 sm:hidden" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
'!border-r-2 !border-r-gray-100': visibleColLength === 1, |
|
|
|
'!border-r-2 !border-r-gray-100': visibleColLength === 1, |
|
|
|
}" |
|
|
|
}" |
|
|
|