Skip to content

New DataTypeInput component and new SyntaxInput based uppon CodeMirror #593

@nicosammito

Description

@nicosammito

The new DataTypeInput component will have the following features:

  1. The raw component will just show the data type tree in a simple and human friendly language way
  2. There will be a dialog which shows an example value representing the data type as JSON. Later XML is also an option. This should be based on the new JSONInput component which also has a flag of readonly.
  3. The last Dialog is the editing dialog, which allows the user to either parse in a JSON example value on which the data type is generated or manually edit the data type

New components:

  1. We will create a EditorInput component which is based on the CodeMirror component. It will add our own theme. This editor should be working with useForm
  2. We will build a JSONInput upon our EditorInput which simply specifies the language to be JSON and also minimized the props to use
  3. We will create a SyntaxInput replacing the normal Input component and his syntax generation. We will therefore create our own language and highlighting syntax. It will only hightlight text and JSOn Objects. A prop can be used to render specific react components as a replacement for JSON objects. It should also allow basic tokenization uppon our language system. to also style normal custom tokens and syntax.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions