123456789101112131415161718192021 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import createInput from '#shared/form/core/createInput.ts'
- import addLink from '#shared/form/features/addLink.ts'
- import formUpdaterTrigger from '#shared/form/features/formUpdaterTrigger.ts'
- import { autoCompleteProps } from '../FieldAutoComplete/index.ts'
- import FieldExternalDataSourceWrapper from './FieldExternalDataSourceWrapper.vue'
- const fieldDefinition = createInput(
- FieldExternalDataSourceWrapper,
- [...autoCompleteProps, 'object', 'searchTemplateRenderContext'],
- { features: [addLink, formUpdaterTrigger()] },
- { addArrow: true },
- )
- export default {
- fieldType: 'externalDataSource',
- definition: fieldDefinition,
- }
|