123456789101112131415161718192021222324252627282930313233343536 |
- // 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 removeValuesForNonExistingOptions from '#shared/form/features/removeValuesForNonExistingOrDisabledOptions.ts'
- import FieldSelectInput from './FieldSelectInput.vue'
- const fieldDefinition = createInput(
- FieldSelectInput,
- [
- 'clearable',
- 'historicalOptions',
- 'multiple',
- 'noOptionsLabelTranslation',
- 'options',
- 'rejectNonExistentValues',
- 'sorting',
- ],
- {
- features: [
- addLink,
- formUpdaterTrigger(),
- removeValuesForNonExistingOptions,
- ],
- },
- {
- addArrow: true,
- },
- )
- export default {
- fieldType: 'select',
- definition: fieldDefinition,
- }
|