index.ts 646 B

1234567891011121314151617181920
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import createInput from '#shared/form/core/createInput.ts'
  3. import defaultEmptyValueString from '#shared/form/features/defaultEmptyValueString.ts'
  4. import formUpdaterTrigger from '#shared/form/features/formUpdaterTrigger.ts'
  5. import FieldEditorWrapper from './FieldEditorWrapper.vue'
  6. const fieldDefinition = createInput(
  7. FieldEditorWrapper,
  8. ['groupId', 'ticketId', 'customerId', 'meta', 'contentType'],
  9. {
  10. features: [formUpdaterTrigger('delayed', 500), defaultEmptyValueString],
  11. },
  12. )
  13. export default {
  14. fieldType: 'editor',
  15. definition: fieldDefinition,
  16. }