|
|
@ -4,10 +4,9 @@ import type { Ref } from 'vue' |
|
|
|
import ItemChip from './components/ItemChip.vue' |
|
|
|
import ItemChip from './components/ItemChip.vue' |
|
|
|
import ListChildItems from './components/ListChildItems.vue' |
|
|
|
import ListChildItems from './components/ListChildItems.vue' |
|
|
|
import ListItems from './components/ListItems.vue' |
|
|
|
import ListItems from './components/ListItems.vue' |
|
|
|
import { useProvideSmartsheetRowStore, useSmartsheetRowStoreOrThrow } from '~/composables/useSmartsheetRowStore' |
|
|
|
import { useSmartsheetRowStoreOrThrow } from '~/composables/useSmartsheetRowStore' |
|
|
|
import { computed, inject, ref, useProvideLTARStore } from '#imports' |
|
|
|
import { computed, inject, ref, useProvideLTARStore } from '#imports' |
|
|
|
import { CellValueInj, ColumnInj, IsFormInj, ReloadViewDataHookInj, RowInj } from '~/context' |
|
|
|
import { CellValueInj, ColumnInj, IsFormInj, ReloadViewDataHookInj, RowInj } from '~/context' |
|
|
|
|
|
|
|
|
|
|
|
import { useProvideLTARStore } from '#imports' |
|
|
|
import { useProvideLTARStore } from '#imports' |
|
|
|
import { CellValueInj, ColumnInj, IsFormInj, ReloadViewDataHookInj, RowInj } from '~/context' |
|
|
|
import { CellValueInj, ColumnInj, IsFormInj, ReloadViewDataHookInj, RowInj } from '~/context' |
|
|
|
|
|
|
|
|
|
|
@ -27,17 +26,15 @@ const listItemsDlg = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const childListDlg = ref(false) |
|
|
|
const childListDlg = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const { state, isNew } = useSmartsheetRowStoreOrThrow() |
|
|
|
const { state, isNew, removeLTARRef } = useSmartsheetRowStoreOrThrow() |
|
|
|
|
|
|
|
|
|
|
|
const { relatedTableMeta, loadRelatedTableMeta, relatedTablePrimaryValueProp, unlink } = useProvideLTARStore( |
|
|
|
const { relatedTableMeta, loadRelatedTableMeta, relatedTablePrimaryValueProp, unlink } = useProvideLTARStore( |
|
|
|
column as Ref<Required<ColumnType>>, |
|
|
|
column as Ref<Required<ColumnType>>, |
|
|
|
row, |
|
|
|
row, |
|
|
|
|
|
|
|
isNew, |
|
|
|
reloadTrigger.trigger, |
|
|
|
reloadTrigger.trigger, |
|
|
|
) |
|
|
|
) |
|
|
|
await loadRelatedTableMeta() |
|
|
|
await loadRelatedTableMeta() |
|
|
|
|
|
|
|
|
|
|
|
const { state, isNew, removeLTARRef } = useSmartsheetRowStoreOrThrow() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const localCellValue = computed(() => { |
|
|
|
const localCellValue = computed(() => { |
|
|
|
if (cellValue?.value) { |
|
|
|
if (cellValue?.value) { |
|
|
|
return cellValue?.value |
|
|
|
return cellValue?.value |
|
|
|