Framework
A new field kind has two audiences. The administrator needs controls to configure its definition, and the operator needs an input to enter a value. Register the components for those two jobs under the same kind.
Modules can register new custom-field kinds that provide:
Registry API:
FieldRegistry.register(kind, { input, defEditor })FieldRegistry.getInput(kind)FieldRegistry.getDefEditor(kind)packages/ui/src/backend/fields/registry.generated.ts which imports registrations from modules.Attachments example (built-in module):
attachmentmaxAttachmentSizeMb, acceptExtensionsPOST /api/attachments (multipart)GET /api/attachments?entityId=<id>&recordId=<id>Implementation files:
packages/ui/src/backend/fields/registry.tspackages/ui/src/backend/fields/registry.generated.tspackages/core/src/modules/attachments/fields/attachment.tsx