{"version":3,"sources":["../../../src/admin/fields/Select.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { SelectField, SelectFieldClient } from '../../fields/config/types.js'\nimport type { SelectFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype SelectFieldClientWithoutType = MarkOptional\n\ntype SelectFieldBaseClientProps = {\n readonly onChange?: (e: string | string[]) => void\n readonly path: string\n readonly validate?: SelectFieldValidation\n readonly value?: string | string[]\n}\n\ntype SelectFieldBaseServerProps = Pick\n\nexport type SelectFieldClientProps = ClientFieldBase &\n SelectFieldBaseClientProps\n\nexport type SelectFieldServerProps = SelectFieldBaseServerProps &\n ServerFieldBase\n\nexport type SelectFieldServerComponent = FieldServerComponent<\n SelectField,\n SelectFieldClientWithoutType,\n SelectFieldBaseServerProps\n>\n\nexport type SelectFieldClientComponent = FieldClientComponent<\n SelectFieldClientWithoutType,\n SelectFieldBaseClientProps\n>\n\nexport type SelectFieldLabelServerComponent = FieldLabelServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldLabelClientComponent =\n FieldLabelClientComponent\n\nexport type SelectFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldDescriptionClientComponent =\n FieldDescriptionClientComponent\n\nexport type SelectFieldErrorServerComponent = FieldErrorServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldErrorClientComponent =\n FieldErrorClientComponent\n\nexport type SelectFieldDiffServerComponent = FieldDiffServerComponent<\n SelectField,\n SelectFieldClient\n>\n\nexport type SelectFieldDiffClientComponent = FieldDiffClientComponent\n"],"names":[],"mappings":"AA8EA,WAAwF"}