Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(options): adds parsing of options #9

Merged
merged 10 commits into from
Jul 16, 2019
Merged

feat(options): adds parsing of options #9

merged 10 commits into from
Jul 16, 2019

Conversation

jscharett
Copy link
Owner

Adds ability to set various attributes on the form tag as well as passing in various options to a layout item. Layout options mixin a few schema properties like readOnly, but specifying in the layout can override any schema value, giving the user better control.

This commit reworks the logic in
layout service in order to make it
easier to understand.  The inital
logic was pulled from
angular-json-schema-form, but
was proving to be difficult to follow
as more functioanlity was added.
This will hopefully break up the code
a bit and make it more readable and
maintainable
Merges a few schema props into layout options
as well as copying extra layout layout
props into layout options.
Mimics angular-json-schema-form
@codecov-io
Copy link

Codecov Report

Merging #9 into development will increase coverage by 0.64%.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development       #9      +/-   ##
===============================================
+ Coverage        94.37%   95.02%   +0.64%     
===============================================
  Files               15       16       +1     
  Lines              231      241      +10     
  Branches            33       29       -4     
===============================================
+ Hits               218      229      +11     
  Misses               6        6              
+ Partials             7        6       -1
Impacted Files Coverage Δ
...-json-schema-form/src/lib/widget-library/widget.ts 91.66% <ø> (ø) ⬆️
...on-schema-form/src/lib/json-schema-form.service.ts 71.42% <ø> (ø) ⬆️
projects/demo/src/app/app.component.ts 95.16% <100%> (+0.07%) ⬆️
...ojects/ngx-json-schema-form/src/lib/layout-node.ts 100% <100%> (ø)
...cts/ngx-json-schema-form/src/lib/layout.service.ts 100% <100%> (+2.08%) ⬆️
...-schema-form/src/lib/json-schema-form.component.ts 88.23% <100%> (+2.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b89ddbf...12ba15c. Read the comment docs.

@jscharett jscharett merged commit c070698 into development Jul 16, 2019
@jscharett jscharett deleted the options branch July 16, 2019 11:05
@jscharett
Copy link
Owner Author

🎉 This PR is included in version 0.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants