Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Solid React Components Library

## 0.4.1 ( June 5, 2019 )

### Updated

* ShexFormBuilder
* LiveUpdate added to ShexForm, so any changes to the form data outside of the current application will immediately be displayed in the form in real time
* Conflict Resolution added. If two users are editing the same field at the same time, incoming changes will be displayed to the second editor, to inform them that another change has occurred
* Form now autosaves. Triggered by the onBlur event, any changes to a field will be immediately and automatically saved, rather than relying on a button to save everything at once. This is an optional form state, and can be turned on or off
* New error messages added to handle new error events, such as conflicts
* Refactors to the ShexForm components to account for new functionality

## 0.4.0 ( May 22, 2019 )

### Added
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,12 @@ In the future, labels will be generated more dynamically.
| shexUri | string | null | Required. The URL to the ShEx shape to use to render the form.
| rootShape | string | null | Optional. The shape in the shexUri file to begin parsing. If a START shape is defined in the shape, this is not necessary.
| theme | Object | null | Optional. An object (defined below) allowing custom overrides to the look and feel of the form.
| language | string | null | Optional. The language identifier to translate text. For example, 'en' or 'es'.
| languageTheme | Object | null | Optional. An object (defined below) allowing customization of the text of the form. Can be used in combination with i18n in the parent app.
| successCallback | Function | Function that writes a success message to console | Optional. Overrides the existing success callback and allows custom success functions.
| errorCallback | Function | Function that writes the error message to console | Optional. Overrides the existing error callback function.
| messageValidation | Object | null | An Object containing an array of error strings. The error strings will be used in most non-validation situations.
| autoSaveMode | Boolean | false | Optional. Determines of the form will autosave or have a save/cancel button. Default is save/cancel button.


Theme object:

Expand All @@ -218,5 +220,17 @@ Theme object:
| deleteButton | string | solid-button-shex | Custom class name for the delete button.
| form | string | solid-shex-form | Custom class name for the form.

LanguageTheme object:

| Key | Type | Default | Description
| --------------------- | ----------|---------------------------------- | -------------------------------------------------------
| language | string | 'en' | String representing the language code to use for the translations
| saveBtn | string | 'Save' | String representing the save button text
| resetBtn | string | 'Reset' | String representing the reset button text
| addButtonText | string | '+ Add new' | String representing the add new item button text
| deleteButton | string | 'Delete' | String representing the delete button text
| dropdownDefaultText | string | '- Select -' | String representing the default text for a dropdown menu


##### Shapes
A set of example shapes can be found [here](https://shexshapes.inrupt.net/public/), which show various ShEx shapes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@inrupt/solid-react-components",
"version": "0.4.1-rc.0",
"version": "0.4.1",
"description": "Solid React Components",
"main": "build/index.js",
"prettier": {
Expand Down