|
|
@ -619,7 +619,9 @@ export default { |
|
|
|
'w-2/3': showRightSections, |
|
|
|
'w-2/3': showRightSections, |
|
|
|
}" |
|
|
|
}" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="flex flex-col flex-grow mt-2 h-full max-h-full nc-scrollbar-md pb-6 w-full bg-white p-4 xs:p-0"> |
|
|
|
<div |
|
|
|
|
|
|
|
class="flex flex-col flex-grow mt-2 h-full max-h-full nc-scrollbar-md pb-6 items-center w-full bg-white p-4 xs:p-0" |
|
|
|
|
|
|
|
> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-for="(col, i) of fields" |
|
|
|
v-for="(col, i) of fields" |
|
|
|
v-show="isFormula(col) || !isVirtualCol(col) || !isNew || isLinksOrLTAR(col)" |
|
|
|
v-show="isFormula(col) || !isVirtualCol(col) || !isNew || isLinksOrLTAR(col)" |
|
|
@ -630,21 +632,24 @@ export default { |
|
|
|
:data-testid="`nc-expand-col-${col.title}`" |
|
|
|
:data-testid="`nc-expand-col-${col.title}`" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="flex items-start flex-row sm:(gap-x-6) xs:(flex-col w-full) nc-expanded-cell min-h-10"> |
|
|
|
<div class="flex items-start flex-row sm:(gap-x-6) xs:(flex-col w-full) nc-expanded-cell min-h-10"> |
|
|
|
<div class="flex-1 xs:(w-full) mt-0.25 !h-[35px]"> |
|
|
|
<div class="w-48 xs:(w-full) mt-0.25 !h-[35px]"> |
|
|
|
<LazySmartsheetHeaderVirtualCell |
|
|
|
<LazySmartsheetHeaderVirtualCell |
|
|
|
v-if="isVirtualCol(col)" |
|
|
|
v-if="isVirtualCol(col)" |
|
|
|
class="nc-expanded-cell-header h-full max-w-80" |
|
|
|
class="nc-expanded-cell-header h-full" |
|
|
|
:column="col" |
|
|
|
:column="col" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<LazySmartsheetHeaderCell v-else class="nc-expanded-cell-header max-w-80" :column="col" /> |
|
|
|
<LazySmartsheetHeaderCell v-else class="nc-expanded-cell-header" :column="col" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="isLoading"> |
|
|
|
<template v-if="isLoading"> |
|
|
|
<div v-if="isMobileMode" class="!h-8.5 !xs:h-12 !xs:bg-white flex-1 mt-0.75 !rounded-lg !overflow-hidden"></div> |
|
|
|
<div |
|
|
|
|
|
|
|
v-if="isMobileMode" |
|
|
|
|
|
|
|
class="!h-8.5 !xs:h-12 !xs:bg-white sm:mr-21 w-60 mt-0.75 !rounded-lg !overflow-hidden" |
|
|
|
|
|
|
|
></div> |
|
|
|
<a-skeleton-input |
|
|
|
<a-skeleton-input |
|
|
|
v-else |
|
|
|
v-else |
|
|
|
class="!h-8.5 !xs:h-9.5 !xs:bg-white flex-1 mt-0.75 !rounded-lg !overflow-hidden" |
|
|
|
class="!h-8.5 !xs:h-9.5 !xs:bg-white sm:mr-21 !w-60 mt-0.75 !rounded-lg !overflow-hidden" |
|
|
|
active |
|
|
|
active |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
/> |
|
|
|
/> |
|
|
@ -653,7 +658,7 @@ export default { |
|
|
|
<SmartsheetDivDataCell |
|
|
|
<SmartsheetDivDataCell |
|
|
|
v-if="col.title" |
|
|
|
v-if="col.title" |
|
|
|
:ref="i ? null : (el: any) => (cellWrapperEl = el)" |
|
|
|
:ref="i ? null : (el: any) => (cellWrapperEl = el)" |
|
|
|
class="bg-white rounded-lg flex-1 !xs:w-full border-1 border-gray-200 overflow-hidden px-1 sm:min-h-[35px] xs:min-h-13 flex items-center relative" |
|
|
|
class="bg-white rounded-lg w-80 xs:w-full border-1 border-gray-200 overflow-hidden px-1 sm:min-h-[35px] xs:min-h-13 flex items-center relative" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
'!bg-gray-50 !px-0 !select-text': isReadOnlyVirtualCell(col), |
|
|
|
'!bg-gray-50 !px-0 !select-text': isReadOnlyVirtualCell(col), |
|
|
|
}" |
|
|
|
}" |
|
|
@ -696,7 +701,7 @@ export default { |
|
|
|
</NcButton> |
|
|
|
</NcButton> |
|
|
|
<div class="flex-grow h-px ml-1 bg-gray-100"></div> |
|
|
|
<div class="flex-grow h-px ml-1 bg-gray-100"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="hiddenFields.length > 0 && showHiddenFields" class="flex flex-col w-full mb-3"> |
|
|
|
<div v-if="hiddenFields.length > 0 && showHiddenFields" class="flex flex-col w-full mb-3 items-center"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-for="(col, i) of hiddenFields" |
|
|
|
v-for="(col, i) of hiddenFields" |
|
|
|
v-show="isFormula(col) || !isVirtualCol(col) || !isNew || isLinksOrLTAR(col)" |
|
|
|
v-show="isFormula(col) || !isVirtualCol(col) || !isNew || isLinksOrLTAR(col)" |
|
|
@ -706,24 +711,20 @@ export default { |
|
|
|
:data-testid="`nc-expand-col-${col.title}`" |
|
|
|
:data-testid="`nc-expand-col-${col.title}`" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="sm:gap-x-6 flex sm:flex-row xs:(flex-col) items-start min-h-10"> |
|
|
|
<div class="sm:gap-x-6 flex sm:flex-row xs:(flex-col) items-start min-h-10"> |
|
|
|
<div class="flex-1 xs:w-full scale-110 !h-[35px]"> |
|
|
|
<div class="sm:w-48 xs:w-full scale-110 !h-[35px]"> |
|
|
|
<LazySmartsheetHeaderVirtualCell |
|
|
|
<LazySmartsheetHeaderVirtualCell v-if="isVirtualCol(col)" :column="col" class="nc-expanded-cell-header" /> |
|
|
|
v-if="isVirtualCol(col)" |
|
|
|
|
|
|
|
:column="col" |
|
|
|
|
|
|
|
class="nc-expanded-cell-header max-w-80" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LazySmartsheetHeaderCell v-else class="nc-expanded-cell-header max-w-80" :column="col" /> |
|
|
|
<LazySmartsheetHeaderCell v-else class="nc-expanded-cell-header" :column="col" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="isLoading"> |
|
|
|
<template v-if="isLoading"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-if="isMobileMode" |
|
|
|
v-if="isMobileMode" |
|
|
|
class="!h-8.5 !xs:h-9.5 !xs:bg-white flex-1 mt-0.75 !rounded-lg !overflow-hidden" |
|
|
|
class="!h-8.5 !xs:h-9.5 !xs:bg-white sm:mr-21 w-60 mt-0.75 !rounded-lg !overflow-hidden" |
|
|
|
></div> |
|
|
|
></div> |
|
|
|
<a-skeleton-input |
|
|
|
<a-skeleton-input |
|
|
|
v-else |
|
|
|
v-else |
|
|
|
class="!h-8.5 !xs:h-12 !xs:bg-white flex-1 mt-0.75 !rounded-lg !overflow-hidden" |
|
|
|
class="!h-8.5 !xs:h-12 !xs:bg-white sm:mr-21 w-60 mt-0.75 !rounded-lg !overflow-hidden" |
|
|
|
active |
|
|
|
active |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
/> |
|
|
|
/> |
|
|
@ -732,7 +733,7 @@ export default { |
|
|
|
<LazySmartsheetDivDataCell |
|
|
|
<LazySmartsheetDivDataCell |
|
|
|
v-if="col.title" |
|
|
|
v-if="col.title" |
|
|
|
:ref="i ? null : (el: any) => (cellWrapperEl = el)" |
|
|
|
:ref="i ? null : (el: any) => (cellWrapperEl = el)" |
|
|
|
class="!bg-white rounded-lg flex-1 border-1 overflow-hidden border-gray-200 px-1 sm:min-h-[35px] xs:min-h-13 flex items-center relative" |
|
|
|
class="bg-white rounded-lg w-80 border-1 overflow-hidden border-gray-200 px-1 sm:min-h-[35px] xs:min-h-13 flex items-center relative" |
|
|
|
> |
|
|
|
> |
|
|
|
<LazySmartsheetVirtualCell |
|
|
|
<LazySmartsheetVirtualCell |
|
|
|
v-if="isVirtualCol(col)" |
|
|
|
v-if="isVirtualCol(col)" |
|
|
|