diff --git a/packages/nc-gui/components/dlg/ViewCreate.vue b/packages/nc-gui/components/dlg/ViewCreate.vue index 2cac961c90..ab0a1d2ee9 100644 --- a/packages/nc-gui/components/dlg/ViewCreate.vue +++ b/packages/nc-gui/components/dlg/ViewCreate.vue @@ -2,7 +2,7 @@ import type { ComponentPublicInstance } from '@vue/runtime-core' import type { Form as AntForm, SelectProps } from 'ant-design-vue' import { capitalize } from '@vue/runtime-core' -import type { FormType, GalleryType, GridType, KanbanType, MapType, TableType } from 'nocodb-sdk' +import {CalendarType, FormType, GalleryType, GridType, KanbanType, MapType, TableType} from 'nocodb-sdk' import { UITypes, ViewTypes, isSystemColumn } from 'nocodb-sdk' import { computed, message, nextTick, onBeforeMount, reactive, ref, useApi, useI18n, useVModel, watch } from '#imports' @@ -14,11 +14,15 @@ interface Props { groupingFieldColumnId?: string geoDataFieldColumnId?: string tableId: string + calendar_range: Array<{ + fk_from_column_id: string, + fk_to_column_id: string | null // for ee only + }> } interface Emits { (event: 'update:modelValue', value: boolean): void - (event: 'created', value: GridType | KanbanType | GalleryType | FormType | MapType): void + (event: 'created', value: GridType | KanbanType | GalleryType | FormType | MapType | CalendarType): void } interface Form { @@ -83,10 +87,10 @@ const form = reactive