index.ts 756 B

12345678910111213141516171819
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { setAutoCompleteBehavior } from '#shared/components/Form/fields/FieldRecipient/features/setAutoCompleteBehavior.ts'
  3. import createInput from '#shared/form/core/createInput.ts'
  4. import addLink from '#shared/form/features/addLink.ts'
  5. import formUpdaterTrigger from '#shared/form/features/formUpdaterTrigger.ts'
  6. import { autoCompleteProps } from '../FieldAutoComplete/index.ts'
  7. import FieldRecipientWrapper from './FieldRecipientWrapper.vue'
  8. const fieldDefinition = createInput(FieldRecipientWrapper, autoCompleteProps, {
  9. features: [addLink, setAutoCompleteBehavior, formUpdaterTrigger()],
  10. })
  11. export default {
  12. fieldType: 'recipient',
  13. definition: fieldDefinition,
  14. }