|
|
@ -14,12 +14,15 @@ import { |
|
|
|
OpenNewRecordFormHookInj, |
|
|
|
OpenNewRecordFormHookInj, |
|
|
|
PaginationDataInj, |
|
|
|
PaginationDataInj, |
|
|
|
ReadonlyInj, |
|
|
|
ReadonlyInj, |
|
|
|
|
|
|
|
ReloadRowDataHookInj, |
|
|
|
ReloadViewDataHookInj, |
|
|
|
ReloadViewDataHookInj, |
|
|
|
|
|
|
|
computed, |
|
|
|
createEventHook, |
|
|
|
createEventHook, |
|
|
|
extractPkFromRow, |
|
|
|
extractPkFromRow, |
|
|
|
inject, |
|
|
|
inject, |
|
|
|
isColumnRequiredAndNull, |
|
|
|
isColumnRequiredAndNull, |
|
|
|
message, |
|
|
|
message, |
|
|
|
|
|
|
|
onBeforeUnmount, |
|
|
|
onClickOutside, |
|
|
|
onClickOutside, |
|
|
|
onMounted, |
|
|
|
onMounted, |
|
|
|
provide, |
|
|
|
provide, |
|
|
@ -27,6 +30,7 @@ import { |
|
|
|
useEventListener, |
|
|
|
useEventListener, |
|
|
|
useGridViewColumnWidth, |
|
|
|
useGridViewColumnWidth, |
|
|
|
useI18n, |
|
|
|
useI18n, |
|
|
|
|
|
|
|
useMetas, |
|
|
|
useMultiSelect, |
|
|
|
useMultiSelect, |
|
|
|
useRoute, |
|
|
|
useRoute, |
|
|
|
useSmartsheetStoreOrThrow, |
|
|
|
useSmartsheetStoreOrThrow, |
|
|
@ -99,6 +103,8 @@ const { |
|
|
|
removeRowIfNew, |
|
|
|
removeRowIfNew, |
|
|
|
} = useViewData(meta, view, xWhere) |
|
|
|
} = useViewData(meta, view, xWhere) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { getMeta } = useMetas() |
|
|
|
|
|
|
|
|
|
|
|
const { loadGridViewColumns, updateWidth, resizingColWidth, resizingCol } = useGridViewColumnWidth(view) |
|
|
|
const { loadGridViewColumns, updateWidth, resizingColWidth, resizingCol } = useGridViewColumnWidth(view) |
|
|
|
|
|
|
|
|
|
|
|
const { selectCell, selectBlock, selectedRange, clearRangeRows, startSelectRange, selected } = useMultiSelect( |
|
|
|
const { selectCell, selectBlock, selectedRange, clearRangeRows, startSelectRange, selected } = useMultiSelect( |
|
|
@ -350,7 +356,6 @@ watch( |
|
|
|
if (next && next.id !== old?.id) { |
|
|
|
if (next && next.id !== old?.id) { |
|
|
|
// whenever tab changes or view changes save any unsaved data |
|
|
|
// whenever tab changes or view changes save any unsaved data |
|
|
|
if (old?.id) { |
|
|
|
if (old?.id) { |
|
|
|
const { getMeta } = useMetas() |
|
|
|
|
|
|
|
const oldMeta = await getMeta(old.fk_model_id!) |
|
|
|
const oldMeta = await getMeta(old.fk_model_id!) |
|
|
|
if (oldMeta) { |
|
|
|
if (oldMeta) { |
|
|
|
await saveOrUpdateRecords({ |
|
|
|
await saveOrUpdateRecords({ |
|
|
|