|
|
@ -39,6 +39,7 @@ const reloadViewDataHook = inject(ReloadViewDataHookInj) |
|
|
|
const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook()) |
|
|
|
const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook()) |
|
|
|
|
|
|
|
|
|
|
|
const { isViewDataLoading } = storeToRefs(useViewsStore()) |
|
|
|
const { isViewDataLoading } = storeToRefs(useViewsStore()) |
|
|
|
|
|
|
|
const { isSqlView, xWhere } = useSmartsheetStoreOrThrow() |
|
|
|
|
|
|
|
|
|
|
|
const expandedFormDlg = ref(false) |
|
|
|
const expandedFormDlg = ref(false) |
|
|
|
const expandedFormRow = ref<RowType>() |
|
|
|
const expandedFormRow = ref<RowType>() |
|
|
@ -54,7 +55,7 @@ const { |
|
|
|
addEmptyRow, |
|
|
|
addEmptyRow, |
|
|
|
deleteRow, |
|
|
|
deleteRow, |
|
|
|
navigateToSiblingRow, |
|
|
|
navigateToSiblingRow, |
|
|
|
} = useViewData(meta, view) |
|
|
|
} = useViewData(meta, view, xWhere) |
|
|
|
|
|
|
|
|
|
|
|
provide(IsFormInj, ref(false)) |
|
|
|
provide(IsFormInj, ref(false)) |
|
|
|
provide(IsGalleryInj, ref(true)) |
|
|
|
provide(IsGalleryInj, ref(true)) |
|
|
@ -85,8 +86,6 @@ const isRowEmpty = (record: any, col: any) => { |
|
|
|
return Array.isArray(val) && val.length === 0 |
|
|
|
return Array.isArray(val) && val.length === 0 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const { isSqlView } = useSmartsheetStoreOrThrow() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { isUIAllowed } = useUIPermission() |
|
|
|
const { isUIAllowed } = useUIPermission() |
|
|
|
const hasEditPermission = computed(() => isUIAllowed('xcDatatableEditable')) |
|
|
|
const hasEditPermission = computed(() => isUIAllowed('xcDatatableEditable')) |
|
|
|
// TODO: extract this code (which is duplicated in grid and gallery) into a separate component |
|
|
|
// TODO: extract this code (which is duplicated in grid and gallery) into a separate component |
|
|
|