@ -1881,6 +1881,22 @@ onKeyStroke('ArrowDown', onDown)
< / a - d r o p d o w n >
< / a - d r o p d o w n >
< / div >
< / div >
< / th >
< / th >
< th
class = "!border-0 relative !xs:hidden"
: style = " {
borderWidth : '0px !important' ,
} "
>
< div
class = "absolute top-0 w-[40px]"
: class = " {
'left-[60px]' : isAddingColumnAllowed ,
'left-0' : ! isAddingColumnAllowed ,
} "
>
& nbsp ;
< / div >
< / th >
< / tr >
< / tr >
< / thead >
< / thead >
< / table >
< / table >
@ -2321,102 +2337,104 @@ onKeyStroke('ArrowDown', onDown)
< / NcDropdown >
< / NcDropdown >
< / div >
< / div >
< LazySmartsheetPagination
< div class = "relative" >
v - if = "headerOnly !== true && paginationDataRef"
< LazySmartsheetPagination
: key = "`nc-pagination-${isMobileMode}`"
v - if = "headerOnly !== true && paginationDataRef"
v - model : pagination - data = "paginationDataRef"
: key = "`nc-pagination-${isMobileMode}`"
: show - api - timing = "!isGroupBy"
v - model : pagination - data = "paginationDataRef"
align - count - on - right
: show - api - timing = "!isGroupBy"
: align - left = "isGroupBy"
align - count - on - right
: change - page = "changePage"
: align - left = "isGroupBy"
: hide - sidebars = "paginationStyleRef?.hideSidebars === true"
: change - page = "changePage"
: fixed - size = "paginationStyleRef?.fixedSize"
: hide - sidebars = "paginationStyleRef?.hideSidebars === true"
: extra - style = "paginationStyleRef?.extraStyle"
: fixed - size = "paginationStyleRef?.fixedSize"
: show - size - changer = "!isGroupBy"
: extra - style = "paginationStyleRef?.extraStyle"
>
: show - size - changer = "!isGroupBy"
< template # add -record >
>
< div v-if ="isAddingEmptyRowAllowed && !showSkeleton" class="flex ml-1" >
< template v -if = " isAddingEmptyRowAllowed & & ! showSkeleton " # add -record >
< NcButton
< div class = "flex ml-1" >
v - if = "isMobileMode"
< NcButton
v - e = "[isAddNewRecordGridMode ? 'c:row:add:grid' : 'c:row:add:form']"
v - if = "isMobileMode"
class = "nc-grid-add-new-row"
v - e = "[isAddNewRecordGridMode ? 'c:row:add:grid' : 'c:row:add:form']"
type = "secondary"
class = "nc-grid-add-new-row"
: disabled = "isPaginationLoading"
type = "secondary"
@ click = "onNewRecordToFormClick()"
: disabled = "isPaginationLoading"
>
@ click = "onNewRecordToFormClick()"
{ { $t ( 'activity.newRecord' ) } }
>
< / NcButton >
{ { $t ( 'activity.newRecord' ) } }
< a -dropdown -button
< / NcButton >
v - else
< a -dropdown -button
v - e = "[isAddNewRecordGridMode ? 'c:row:add:grid:toggle' : 'c:row:add:form:toggle']"
v - else
class = "nc-grid-add-new-row"
v - e = "[isAddNewRecordGridMode ? 'c:row:add:grid:toggle' : 'c:row:add:form:toggle']"
placement = "top"
class = "nc-grid-add-new-row"
: disabled = "isPaginationLoading"
placement = "top"
@ click = "isAddNewRecordGridMode ? addEmptyRow() : onNewRecordToFormClick()"
: disabled = "isPaginationLoading"
>
@ click = "isAddNewRecordGridMode ? addEmptyRow() : onNewRecordToFormClick()"
< div data -testid = " nc -pagination -add -record " class = "flex items-center px-2 text-gray-600 hover:text-black" >
>
< span >
< div data -testid = " nc -pagination -add -record " class = "flex items-center px-2 text-gray-600 hover:text-black" >
< template v-if ="isAddNewRecordGridMode" >
< span >
{ { $t ( 'activity.newRecord' ) } }
< template v-if ="isAddNewRecordGridMode" >
< / template >
{ { $t ( 'activity.newRecord' ) } }
< template v-else > {{ $ t ( ' activity.newRecord ' ) }} - {{ $ t ( ' objects.viewType.form ' ) }} < / template >
< / template >
< / span >
< template v-else > {{ $ t ( ' activity.newRecord ' ) }} - {{ $ t ( ' objects.viewType.form ' ) }} < / template >
< / div >
< / span >
< / div >
< template # overlay >
< div class = "relative overflow-visible min-h-17 w-10" >
< div
class = "absolute -top-21 flex flex-col min-h-34.5 w-70 p-1.5 bg-white rounded-lg border-1 border-gray-200 justify-start overflow-hidden"
style = "box-shadow: 0px 4px 6px -2px rgba(0, 0, 0, 0.06), 0px -12px 16px -4px rgba(0, 0, 0, 0.1)"
: class = " {
'-left-32.5' : ! isAddNewRecordGridMode ,
'-left-21.5' : isAddNewRecordGridMode ,
} "
>
< div
v - e = "['c:row:add:grid']"
class = "px-4 py-3 flex flex-col select-none gap-y-2 cursor-pointer rounded-md hover:bg-gray-100 text-gray-600 nc-new-record-with-grid group"
@ click = "onNewRecordToGridClick"
>
< div class = "flex flex-row items-center justify-between w-full" >
< div class = "flex flex-row items-center justify-start gap-x-3" >
< component :is ="viewIcons[ViewTypes.GRID]?.icon" class = "nc-view-icon text-inherit" / >
{ { $t ( 'activity.newRecord' ) } } - { { $t ( 'objects.viewType.grid' ) } }
< / div >
< GeneralIcon v -if = " isAddNewRecordGridMode " icon = "check" class = "w-4 h-4 text-primary" / >
< template # overlay >
< / div >
< div class = "relative overflow-visible min-h-17 w-10" >
< div class = "flex flex-row text-xs text-gray-400 ml-7.25" >
{ { $t ( 'labels.addRowGrid' ) } }
< / div >
< / div >
< div
< div
v - e = "['c:row:add:form']"
class = "absolute -top-21 flex flex-col min-h-34.5 w-70 p-1.5 bg-white rounded-lg border-1 border-gray-200 justify-start overflow-hidden"
class = "px-4 py-3 flex flex-col select-none gap-y-2 cursor-pointer rounded-md hover:bg-gray-100 text-gray-600 nc-new-record-with-form group"
style = "box-shadow: 0px 4px 6px -2px rgba(0, 0, 0, 0.06), 0px -12px 16px -4px rgba(0, 0, 0, 0.1)"
@ click = "onNewRecordToFormClick"
: class = " {
'-left-32.5' : ! isAddNewRecordGridMode ,
'-left-21.5' : isAddNewRecordGridMode ,
} "
>
>
< div class = "flex flex-row items-center justify-between w-full" >
< div
< div class = "flex flex-row items-center justify-start gap-x-2.5" >
v - e = "['c:row:add:grid']"
< GeneralIcon class = "h-4.5 w-4.5" icon = "article" / >
class = "px-4 py-3 flex flex-col select-none gap-y-2 cursor-pointer rounded-md hover:bg-gray-100 text-gray-600 nc-new-record-with-grid group"
{ { $t ( 'activity.newRecord' ) } } - { { $t ( 'objects.viewType.form' ) } }
@ click = "onNewRecordToGridClick"
< / div >
>
< div class = "flex flex-row items-center justify-between w-full" >
< div class = "flex flex-row items-center justify-start gap-x-3" >
< component :is ="viewIcons[ViewTypes.GRID]?.icon" class = "nc-view-icon text-inherit" / >
{ { $t ( 'activity.newRecord' ) } } - { { $t ( 'objects.viewType.grid' ) } }
< / div >
< GeneralIcon v -if = " ! isAddNewRecordGridMode " icon = "check" class = "w-4 h-4 text-primary" / >
< GeneralIcon v -if = " isAddNewRecordGridMode " icon = "check" class = "w-4 h-4 text-primary" / >
< / div >
< div class = "flex flex-row text-xs text-gray-400 ml-7.25" >
{ { $t ( 'labels.addRowGrid' ) } }
< / div >
< / div >
< / div >
< div class = "flex flex-row text-xs text-gray-400 ml-7.05" >
< div
{ { $t ( 'labels.addRowForm' ) } }
v - e = "['c:row:add:form']"
class = "px-4 py-3 flex flex-col select-none gap-y-2 cursor-pointer rounded-md hover:bg-gray-100 text-gray-600 nc-new-record-with-form group"
@ click = "onNewRecordToFormClick"
>
< div class = "flex flex-row items-center justify-between w-full" >
< div class = "flex flex-row items-center justify-start gap-x-2.5" >
< GeneralIcon class = "h-4.5 w-4.5" icon = "article" / >
{ { $t ( 'activity.newRecord' ) } } - { { $t ( 'objects.viewType.form' ) } }
< / div >
< GeneralIcon v -if = " ! isAddNewRecordGridMode " icon = "check" class = "w-4 h-4 text-primary" / >
< / div >
< div class = "flex flex-row text-xs text-gray-400 ml-7.05" >
{ { $t ( 'labels.addRowForm' ) } }
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / template >
< / template >
< template # icon >
< template # icon >
< component :is ="iconMap.arrowUp" class = "text-gray-600 h-4 w-4" / >
< component :is ="iconMap.arrowUp" class = "text-gray-600 h-4 w-4" / >
< / template >
< / template >
< / a - d r o p d o w n - b u t t o n >
< / a - d r o p d o w n - b u t t o n >
< / div >
< / div >
< / template >
< / template >
< / LazySmartsheetPagination >
< / LazySmartsheetPagination >
< / div >
< / div >
< / div >
< / template >
< / template >