|
|
@ -969,51 +969,52 @@ const newRecord = (hour: dayjs.Dayjs) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="absolute inset-0 pointer-events-none"> |
|
|
|
<div class="absolute inset-0 pointer-events-none"> |
|
|
|
<div class="relative !ml-[60px]" data-testid="nc-calendar-day-record-container"> |
|
|
|
<div class="relative !ml-[60px]" data-testid="nc-calendar-day-record-container"> |
|
|
|
<div |
|
|
|
<template v-for="(record, rowIndex) in recordsAcrossAllRange.record" :key="rowIndex"> |
|
|
|
v-for="(record, rowIndex) in recordsAcrossAllRange.record" |
|
|
|
<div |
|
|
|
:key="rowIndex" |
|
|
|
v-if="record.rowMeta.style?.display !== 'none'" |
|
|
|
:data-testid="`nc-calendar-day-record-${record.row[displayField!.title!]}`" |
|
|
|
:data-testid="`nc-calendar-day-record-${record.row[displayField!.title!]}`" |
|
|
|
:data-unique-id="record.rowMeta.id" |
|
|
|
:data-unique-id="record.rowMeta.id" |
|
|
|
:style="record.rowMeta.style" |
|
|
|
:style="record.rowMeta.style" |
|
|
|
class="absolute draggable-record group cursor-pointer pointer-events-auto" |
|
|
|
class="absolute draggable-record group cursor-pointer pointer-events-auto" |
|
|
|
@mousedown="dragStart($event, record)" |
|
|
|
@mousedown="dragStart($event, record)" |
|
|
|
@mouseleave="hoverRecord = null" |
|
|
|
@mouseleave="hoverRecord = null" |
|
|
|
@mouseover="hoverRecord = record.rowMeta.id as string" |
|
|
|
@mouseover="hoverRecord = record.rowMeta.id as string" |
|
|
|
@dragover.prevent |
|
|
|
@dragover.prevent |
|
|
|
> |
|
|
|
> |
|
|
|
<LazySmartsheetRow :row="record"> |
|
|
|
<LazySmartsheetRow :row="record"> |
|
|
|
<LazySmartsheetCalendarVRecordCard |
|
|
|
<LazySmartsheetCalendarVRecordCard |
|
|
|
:hover="hoverRecord === record.rowMeta.id || record.rowMeta.id === dragRecord?.rowMeta?.id" |
|
|
|
:hover="hoverRecord === record.rowMeta.id || record.rowMeta.id === dragRecord?.rowMeta?.id" |
|
|
|
:selected="record.rowMeta.id === dragRecord?.rowMeta?.id" |
|
|
|
:selected="record.rowMeta.id === dragRecord?.rowMeta?.id" |
|
|
|
:position="record.rowMeta!.position" |
|
|
|
:position="record.rowMeta!.position" |
|
|
|
:record="record" |
|
|
|
:record="record" |
|
|
|
:resize="!!record.rowMeta.range?.fk_to_col && isUIAllowed('dataEdit')" |
|
|
|
:resize="!!record.rowMeta.range?.fk_to_col && isUIAllowed('dataEdit')" |
|
|
|
color="blue" |
|
|
|
color="blue" |
|
|
|
@resize-start="onResizeStart" |
|
|
|
@resize-start="onResizeStart" |
|
|
|
> |
|
|
|
> |
|
|
|
<template v-if="!isRowEmpty(record, displayField)"> |
|
|
|
<template v-if="!isRowEmpty(record, displayField)"> |
|
|
|
<LazySmartsheetCalendarCell |
|
|
|
<LazySmartsheetCalendarCell |
|
|
|
v-if="!isRowEmpty(record, displayField!)" |
|
|
|
v-if="!isRowEmpty(record, displayField!)" |
|
|
|
v-model="record.row[displayField!.title!]" |
|
|
|
v-model="record.row[displayField!.title!]" |
|
|
|
:bold="getFieldStyle(displayField!).bold" |
|
|
|
:bold="getFieldStyle(displayField!).bold" |
|
|
|
:column="displayField!" |
|
|
|
:column="displayField!" |
|
|
|
:italic="getFieldStyle(displayField!).italic" |
|
|
|
:italic="getFieldStyle(displayField!).italic" |
|
|
|
:underline="getFieldStyle(displayField!).underline" |
|
|
|
:underline="getFieldStyle(displayField!).underline" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-for="(field, id) in fieldsWithoutDisplay" :key="id"> |
|
|
|
<template v-for="(field, id) in fieldsWithoutDisplay" :key="id"> |
|
|
|
<LazySmartsheetCalendarCell |
|
|
|
<LazySmartsheetCalendarCell |
|
|
|
v-if="!isRowEmpty(record, field!)" |
|
|
|
v-if="!isRowEmpty(record, field!)" |
|
|
|
v-model="record.row[field!.title!]" |
|
|
|
v-model="record.row[field!.title!]" |
|
|
|
:bold="getFieldStyle(field).bold" |
|
|
|
:bold="getFieldStyle(field).bold" |
|
|
|
:column="field" |
|
|
|
:column="field" |
|
|
|
:italic="getFieldStyle(field).italic" |
|
|
|
:italic="getFieldStyle(field).italic" |
|
|
|
:underline="getFieldStyle(field).underline" |
|
|
|
:underline="getFieldStyle(field).underline" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</LazySmartsheetCalendarVRecordCard> |
|
|
|
</LazySmartsheetCalendarVRecordCard> |
|
|
|
</LazySmartsheetRow> |
|
|
|
</LazySmartsheetRow> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|