|
|
@ -8,6 +8,8 @@ const meta = inject(MetaInj, ref()) |
|
|
|
|
|
|
|
|
|
|
|
const view = inject(ActiveViewInj, ref()) |
|
|
|
const view = inject(ActiveViewInj, ref()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { isMobileMode } = useGlobal() |
|
|
|
|
|
|
|
|
|
|
|
const reloadViewMetaHook = inject(ReloadViewMetaHookInj) |
|
|
|
const reloadViewMetaHook = inject(ReloadViewMetaHookInj) |
|
|
|
|
|
|
|
|
|
|
|
const reloadViewDataHook = inject(ReloadViewDataHookInj) |
|
|
|
const reloadViewDataHook = inject(ReloadViewDataHookInj) |
|
|
@ -66,7 +68,6 @@ const expandedFormRowState = ref<Record<string, any>>() |
|
|
|
const expandRecord = (row: RowType, state?: Record<string, any>) => { |
|
|
|
const expandRecord = (row: RowType, state?: Record<string, any>) => { |
|
|
|
const rowId = extractPkFromRow(row.row, meta.value!.columns!) |
|
|
|
const rowId = extractPkFromRow(row.row, meta.value!.columns!) |
|
|
|
|
|
|
|
|
|
|
|
expandedFormRow.value = row |
|
|
|
|
|
|
|
expandedFormRowState.value = state |
|
|
|
expandedFormRowState.value = state |
|
|
|
|
|
|
|
|
|
|
|
if (rowId && !isPublic.value) { |
|
|
|
if (rowId && !isPublic.value) { |
|
|
@ -77,6 +78,7 @@ const expandRecord = (row: RowType, state?: Record<string, any>) => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
expandedFormRow.value = row |
|
|
|
expandedFormDlg.value = true |
|
|
|
expandedFormDlg.value = true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -118,6 +120,17 @@ reloadViewDataHook?.on(async (params: void | { shouldShowLoading?: boolean }) => |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
|
|
|
|
<template v-if="isMobileMode"> |
|
|
|
|
|
|
|
<div class="pl-6 pr-[120px] py-6 bg-white flex-col justify-start items-start gap-2.5 inline-flex"> |
|
|
|
|
|
|
|
<div class="text-gray-500 text-5xl font-semibold leading-16"> |
|
|
|
|
|
|
|
{{ $t('general.available') }}<br />{{ $t('title.inDesktop') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="text-gray-500 text-base font-medium leading-normal"> |
|
|
|
|
|
|
|
{{ $t('msg.calendarViewNotSupportedOnMobile') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
<div class="flex h-full relative flex-row" data-testid="nc-calendar-wrapper"> |
|
|
|
<div class="flex h-full relative flex-row" data-testid="nc-calendar-wrapper"> |
|
|
|
<div class="flex flex-col w-full"> |
|
|
|
<div class="flex flex-col w-full"> |
|
|
|
<template v-if="calendarRange?.length && !isCalendarMetaLoading"> |
|
|
|
<template v-if="calendarRange?.length && !isCalendarMetaLoading"> |
|
|
@ -150,7 +163,10 @@ reloadViewDataHook?.on(async (params: void | { shouldShowLoading?: boolean }) => |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<div v-if="isCalendarDataLoading && activeCalendarView !== 'year'" class="flex w-full items-center h-full justify-center"> |
|
|
|
<div |
|
|
|
|
|
|
|
v-if="isCalendarDataLoading && activeCalendarView !== 'year'" |
|
|
|
|
|
|
|
class="flex w-full items-center h-full justify-center" |
|
|
|
|
|
|
|
> |
|
|
|
<GeneralLoader size="xlarge" /> |
|
|
|
<GeneralLoader size="xlarge" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -197,3 +213,4 @@ reloadViewDataHook?.on(async (params: void | { shouldShowLoading?: boolean }) => |
|
|
|
:view="view" |
|
|
|
:view="view" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
</template> |
|
|
|