Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
1 line
2.5 KiB
Plaintext
1 line
2.5 KiB
Plaintext
{"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<SelectFieldClient, 'type'>\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<FieldPaths, 'path'>\n\nexport type SelectFieldClientProps = ClientFieldBase<SelectFieldClientWithoutType> &\n SelectFieldBaseClientProps\n\nexport type SelectFieldServerProps = SelectFieldBaseServerProps &\n ServerFieldBase<SelectField, SelectFieldClientWithoutType>\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<SelectFieldClientWithoutType>\n\nexport type SelectFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldErrorServerComponent = FieldErrorServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldErrorClientComponent =\n FieldErrorClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldDiffServerComponent = FieldDiffServerComponent<\n SelectField,\n SelectFieldClient\n>\n\nexport type SelectFieldDiffClientComponent = FieldDiffClientComponent<SelectFieldClient>\n"],"names":[],"mappings":"AA8EA,WAAwF"} |