index.ts 633 B

12345678910111213141516171819202122
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import createInput from '#shared/form/core/createInput.ts'
  3. import addLink from '#shared/form/features/addLink.ts'
  4. import formUpdaterTrigger from '#shared/form/features/formUpdaterTrigger.ts'
  5. import { autoCompleteProps } from '../FieldAutoComplete/index.ts'
  6. import FieldAgentWrapper from './FieldAgentWrapper.vue'
  7. const fieldDefinition = createInput(
  8. FieldAgentWrapper,
  9. [...autoCompleteProps, 'exceptUserInternalId'],
  10. {
  11. features: [addLink, formUpdaterTrigger()],
  12. },
  13. )
  14. export default {
  15. fieldType: 'agent',
  16. definition: fieldDefinition,
  17. }