|
|
@ -13,6 +13,7 @@ import { |
|
|
|
defineAsyncComponent, |
|
|
|
defineAsyncComponent, |
|
|
|
inject, |
|
|
|
inject, |
|
|
|
ref, |
|
|
|
ref, |
|
|
|
|
|
|
|
useProject, |
|
|
|
useProvideLTARStore, |
|
|
|
useProvideLTARStore, |
|
|
|
useSmartsheetRowStoreOrThrow, |
|
|
|
useSmartsheetRowStoreOrThrow, |
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
@ -33,7 +34,7 @@ const reloadTrigger = inject(ReloadViewDataHookInj)! |
|
|
|
|
|
|
|
|
|
|
|
const isForm = inject(IsFormInj) |
|
|
|
const isForm = inject(IsFormInj) |
|
|
|
|
|
|
|
|
|
|
|
const readonly = inject(ReadonlyInj, false) |
|
|
|
const readOnly = inject(ReadonlyInj, false) |
|
|
|
|
|
|
|
|
|
|
|
const isLocked = inject(IsLockedInj) |
|
|
|
const isLocked = inject(IsLockedInj) |
|
|
|
|
|
|
|
|
|
|
@ -41,6 +42,8 @@ const listItemsDlg = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const childListDlg = ref(false) |
|
|
|
const childListDlg = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { isSharedBase } = useProject() |
|
|
|
|
|
|
|
|
|
|
|
const { state, isNew, removeLTARRef } = useSmartsheetRowStoreOrThrow() |
|
|
|
const { state, isNew, removeLTARRef } = useSmartsheetRowStoreOrThrow() |
|
|
|
const { loadRelatedTableMeta, relatedTablePrimaryValueProp, unlink } = useProvideLTARStore( |
|
|
|
const { loadRelatedTableMeta, relatedTablePrimaryValueProp, unlink } = useProvideLTARStore( |
|
|
|
column as Ref<Required<ColumnType>>, |
|
|
|
column as Ref<Required<ColumnType>>, |
|
|
@ -91,13 +94,13 @@ const unlinkRef = async (rec: Record<string, any>) => { |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="!isLocked" class="flex-grow flex justify-end gap-1 min-h-[30px] align-center"> |
|
|
|
<div v-if="!isLocked && !isSharedBase" class="flex-grow flex justify-end gap-1 min-h-[30px] align-center"> |
|
|
|
<MdiArrowExpand |
|
|
|
<MdiArrowExpand |
|
|
|
class="select-none transform text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-arrow-expand" |
|
|
|
class="select-none transform text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-arrow-expand" |
|
|
|
@click="childListDlg = true" |
|
|
|
@click="childListDlg = true" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<MdiPlus |
|
|
|
<MdiPlus |
|
|
|
v-if="!readonly" |
|
|
|
v-if="!readOnly" |
|
|
|
class="select-none text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-plus" |
|
|
|
class="select-none text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-plus" |
|
|
|
@click="listItemsDlg = true" |
|
|
|
@click="listItemsDlg = true" |
|
|
|
/> |
|
|
|
/> |
|
|
|