https://github.com/plotdb/form
https://github.com/plotdb/form
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/plotdb/form
- Owner: plotdb
- Created: 2020-08-15T17:51:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-22T02:52:33.000Z (about 1 year ago)
- Last Synced: 2025-02-24T23:01:48.155Z (about 1 year ago)
- Language: LiveScript
- Size: 8.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# @plotdb/form
Form related modules for interactive form design throught GUI, with following (expected, TODO) features:
- design a form through GUI.
- designed form serializable and renderable in frontend for end users to fill.
- end user filled result of a form is also serializable.
- Aware of OT for collaborative editing.
- Works in both frontend and backend.
`@plotdb/form` includes following modules:
- `form.manager`: manage a set of form widgets.
- `form.widget`: interface between form manager and UI.
- `form.opset`: a set of op for validating given input from user.
- `form.op`: a specific operation for validating given input from user.
- `form.term`: a rule ( a op, opset and config based on the specified op ) for validating given input from user.
## Draft
### form.block attrubite
An attribute is an aspect of data from a form.block. For example, a File form.block could contains following attributes:
- `size` - size of all files combined.
- `count` - count of files.
- `modifiedtime` - modified time of last touched files.
- `ext` - type of files.
Every attribute can be associated with one or multiple `form.opset` For example, above `ext` attribute can be associated with `extensions` type, which helps in determining if files in a given `ext` array all belong to certain file type.