Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

support for ordering dependant items #5

Merged
merged 99 commits into from
May 21, 2019
Merged

Conversation

bytnar
Copy link

@bytnar bytnar commented May 16, 2019

Reasons for making this change

Mainly to get support to ordering dependant items
rjsf-team#814

Checklist

  • I'm updating documentation
    • I've checked the rendering of the Markdown text I've added
    • If I'm adding a new section, I've updated the Table of Content
  • I'm adding or updating code
    • I've added and/or updated tests
    • I've updated docs if needed
    • I've run npm run cs-format on my branch to conform my code to prettier coding style
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

epicfaace and others added 30 commits January 6, 2018 10:10
Firefox date, time input types partial support starting from Firefox 57
It appears that due to the recent change from 2018 to 2019, there is one
additional year in the select list, which caused the unit tests to fail.

Signed-off-by: Lucian <lucian.buzzo@gmail.com>
…1123)

* add del button functionality

* delete unnecesary console.logs

* fix tests

* remove unnecesary console.log

* Fix disappearing key-value pair and repair delete button

* Add .vscode to gitignore

* fix tests

* Make test work for select/radio button

* Add test cases

* Remove one file from PR and one helper function

* Add one classname for value input

* remove accidentally added .vscode

* linted codebase

* remove inline styles, make use of bootstrap 3 styles and fix related tests

* revert changes to .gitignore
This keeps biting me.
Change `div` to `ul`, update react key
* ObjectField passes readonly & disabled prop to template

* Update README
…1105)

* Clear ajv errors before validate
it prevent persisting not wanted errors

* rjsf-team#1104 Add link to issue on code
* fix typo in css code

* Give ids to array fields and object fields, give "root" id to the topmost fieldset
* move array item from index to newIndex

* formating

* moved reordering to a function

* adds test for array sorting
* Add preliminary support for the anyOf keyword

This change introduces support for the `anyOf` keyword. The keyword is NOT
supported in arrays (using the `items` keyword).
Options provided in the `anyOf` keyword are rendered using a new
component called `AnyOfField` this can be overridden with a custom
field using the `fields` property.

Signed-off-by: Lucian <lucian.buzzo@gmail.com>

* Refactor unnecessary .map

* Change selected option based on form data

* Update README

* Update README FAQ

* Share prop types between fields
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
* Allow boolean option label overrides with oneOf schema

* Add oneOf RadioWidget playground sample

* Document oneOf RadioWidget usage

* Allow boolean enum options to be re-ordered for consistency with oneOf behavior
epicfaace and others added 22 commits March 6, 2019 14:32
* rjsf-team#838 return schemaPath in transformErrors

* rjsf-team#818 document structure of errors object in transformErrors

* fix: take into account ajv bug

* doc: re-add doc for transformErrors
* Basic support for 'nullable' types

Modifies the implementation of `getSchemaType` so that when a property
has a type of `[<any>, 'null']`, then `<any>` will be passed. This
allows the library to render and validate the field correctly. For the
sake of simplicity, this change does not attempt any further
assumptions, coercions or transformations.

References rjsf-team#465

* Add some test cases to `getSchemaType` spec

* Add FAQ entry detailing nullable type behaviour

* Add Playground example for nullable field

* Tweak FAQ entry wording and fix typo

Co-Authored-By: warrenseymour <warren@fountainhead.tech>

* Correct example in FAQ entry

Co-Authored-By: warrenseymour <warren@fountainhead.tech>
* rjsf-team#804 - Bug Fix - Empty divs are created

* rjsf-team#804 - Bug Fix - Empty divs are created - Refactoring
rjsf-team#814)

* Removed throwing error when there's an extraneous property in ui:order

* Adding tests form orderProperties()

* Updated ObjectField tests to test extraneous properties handling in order list

* fix: keep order warning
…f-team#1234)

* Fix rjsf-team#1233 : Exclude File object from isObject detection

* Update test name

Co-Authored-By: oterral <oterral@users.noreply.github.com>
* use select widget to render oneOf / anyOf control

* pass more props to widget

* change schema type to number
* get uiOptions to pass to widget

* do not pass props to custom widget in test

* update tests to actually pass custom widget
* Accept custom string formats via `additionalFormats` prop

Follow AJV extension pattern established for meta schemas and passthrough to AJV's addFormat method

* Wire additionalFormats prop

* additionalFormats → customFormats

* Fix and test custom format prop updates

* Update docs/validation.md

Co-Authored-By: pushred <eric@pushred.co>
* Add NullField

* Always set the formData to null for a null field

* Don't overwrite existing data

* Use central fields propTypes
* fix: console warn on unknown format errors instead of showing an error

* fix: default to default widget if string format is not found

* test: update tests
…ber() (rjsf-team#1269)

* Make numbers nullable by allowing null values to be echoed from asNumber()

* fix: revert package-lock changes
)

* Support `readOnly` property from draft-handrews-json-schema-validation-01

* Fix failing test

* Add note in docs about using the readOnly property

* Update to be consistent with the changes done in commit 497620f
@bytnar bytnar requested a review from a team May 16, 2019 14:40
@bytnar bytnar changed the title Mozilla services master support to ordering dependant items May 16, 2019
@bytnar bytnar changed the title support to ordering dependant items support for ordering dependant items May 16, 2019
@ahpawel ahpawel removed their assignment May 21, 2019
@bytnar bytnar merged commit cf26a63 into master May 21, 2019
@bytnar bytnar deleted the mozilla-services-master branch May 21, 2019 07:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.