{"version":3,"sources":["../../../src/admin/fields/Code.ts"],"sourcesContent":["import type { EditorProps } from '@monaco-editor/react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { CodeField, CodeFieldClient } from '../../fields/config/types.js'\nimport type { CodeFieldValidation } 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 CodeFieldClientWithoutType = MarkOptional\n\ntype CodeFieldBaseClientProps = {\n readonly autoComplete?: string\n readonly onMount?: EditorProps['onMount']\n readonly path: string\n readonly validate?: CodeFieldValidation\n}\n\ntype CodeFieldBaseServerProps = Pick\n\nexport type CodeFieldClientProps = ClientFieldBase &\n CodeFieldBaseClientProps\n\nexport type CodeFieldServerProps = CodeFieldBaseServerProps &\n ServerFieldBase\n\nexport type CodeFieldServerComponent = FieldServerComponent<\n CodeField,\n CodeFieldClientWithoutType,\n CodeFieldBaseServerProps\n>\n\nexport type CodeFieldClientComponent = FieldClientComponent<\n CodeFieldClientWithoutType,\n CodeFieldBaseClientProps\n>\n\nexport type CodeFieldLabelServerComponent = FieldLabelServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldLabelClientComponent = FieldLabelClientComponent\n\nexport type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldDescriptionClientComponent =\n FieldDescriptionClientComponent\n\nexport type CodeFieldErrorServerComponent = FieldErrorServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldErrorClientComponent = FieldErrorClientComponent\n\nexport type CodeFieldDiffServerComponent = FieldDiffServerComponent\n\nexport type CodeFieldDiffClientComponent = FieldDiffClientComponent\n"],"names":[],"mappings":"AA0EA,WAAoF"}