npm package: @stubber/form-fields
Description: An automatic form builder based on field specifications
Author: Ivan Johannes
Latest version: 2.0.22

# stubber-form-fields-pkg

## How to use

```
git clone git@github.com:stubber/stubber-form-fields-pkg.git form-fields-pkg
cd form-fields-pkg
cp .env_dev .env
pnpm install
pnpm run dev
```

# Publishing

We use [semantic-release](https://github.com/semantic-release/semantic-release) to automate the versioning and package publishing process. To publish a new version of the package, follow these steps:

Simply make a commit with a message that follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification, and push it to the master branch. The commit message should include a type (feat, fix, chore, etc.) and an optional scope.

For example:

```bash
# will create a new major release.
breaking: change button color to red
feat!: add new button component

# will create a new minor release.
feat: add new button component

# will create a new patch release.
fix: fix button color
```

See default ruleset [here](https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js)

Conversion Progress:

| Component            | TS DONE    | IS STRING |
| -------------------- | ---------- | --------- |
| AgGrid               | x          |           |
| Arraybuilder         | x          |           |
| Checkbox             | x          |           |
| CheckboxAutocomplete | x          |           |
| Code                 | x          |           |
| Contactselector      | x          |           |
| Currency             | x          |           |
| Dataindication       | x          |           |
| Date                 | x          |           |
| Datetime             | x          |           |
| Email                | x          |           |
| Fieldbuilder         | x          |           |
| Fieldsbuilder        | deprecated |           |
| File                 | x          |           |
| Heading              | x          |           |
| Hidden               | x          |           |
| Hiddenlocation       | x          |           |
| Html                 | x          |           |
| Jsoneditor           | x          |           |
| Map                  | x          |           |
| Multicheckbox        | x          |           |
| Multistep            | x          |           |
| Note                 | x          |           |
| Number               | x          |           |
| Objectbuilder        | x          |           |
| Qrcodescanner        | x          |           |
| Radio                | x          |           |
| Renderfield          | deprecated |           |
| Screenrecorder       | x          |           |
| Screenshot           | x          |           |
| Scrollandreaddisplay | x          |           |
| Section              | x          |           |
| Select               | x          |           |
| Selectresource       | x          |           |
| Signature            | x          |           |
| Slider               | x          |           |
| SmartText            | x          |           |
| Telephone            | x          |           |
| Text                 | x          |           |
| Voicenote            | x          |           |

## TS Refactor

For now src/lib/fields2 exports a refactored and rewritten form fields implementation.
The existing implementation is still present for now, but will be removed in future.

This allows us to slowly switch editor/squared over to the new implementation without breaking everything at once.