{"version":3,"sources":["../../../src/admin/fields/Date.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { DateField, DateFieldClient } from '../../fields/config/types.js'\nimport type { DateFieldValidation } 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 DateFieldClientWithoutType = MarkOptional\n\ntype DateFieldBaseClientProps = {\n readonly path: string\n readonly validate?: DateFieldValidation\n}\n\ntype DateFieldBaseServerProps = Pick\n\nexport type DateFieldClientProps = ClientFieldBase &\n DateFieldBaseClientProps\n\nexport type DateFieldServerProps = DateFieldBaseServerProps &\n ServerFieldBase\n\nexport type DateFieldServerComponent = FieldServerComponent<\n DateField,\n DateFieldClientWithoutType,\n DateFieldBaseServerProps\n>\n\nexport type DateFieldClientComponent = FieldClientComponent<\n DateFieldClientWithoutType,\n DateFieldBaseClientProps\n>\n\nexport type DateFieldLabelServerComponent = FieldLabelServerComponent<\n DateField,\n DateFieldClientWithoutType\n>\n\nexport type DateFieldLabelClientComponent = FieldLabelClientComponent\n\nexport type DateFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n DateField,\n DateFieldClientWithoutType\n>\n\nexport type DateFieldDescriptionClientComponent =\n FieldDescriptionClientComponent\n\nexport type DateFieldErrorServerComponent = FieldErrorServerComponent<\n DateField,\n DateFieldClientWithoutType\n>\n\nexport type DateFieldErrorClientComponent = FieldErrorClientComponent\n\nexport type DateFieldDiffServerComponent = FieldDiffServerComponent\n\nexport type DateFieldDiffClientComponent = FieldDiffClientComponent\n"],"names":[],"mappings":"AAuEA,WAAoF"}