Skip to content

Commit

Permalink
Auto-generated commit -- fix: Corrects Runtime compiler error
Browse files Browse the repository at this point in the history
Replaces Angular compiler with Handlerbars.
Angular currently prevents the use of its compiler
in AOT mode.  See angular issue #20156.

Closes #11

Triggered by commit: d14beb1
Travis CI build: https://travis-ci.org/jscharett/ngx-json-schema-form/builds/571181595
  • Loading branch information
Travis CI User committed Aug 13, 2019
1 parent 5036ec2 commit 4f2394a
Show file tree
Hide file tree
Showing 9 changed files with 145 additions and 174 deletions.
135 changes: 79 additions & 56 deletions 3rdpartylicenses.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,54 @@
ngx-json-schema-form

lodash-decorators
lodash
MIT
The MIT License (MIT)
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>

Copyright (c) 2015 Steven Sojka
Based on Underscore.js, copyright Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
available at https://github.com/lodash/lodash

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The following license applies to all parts of this software except as
documented below:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
====

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

====

Copyright and related rights for sample code are waived via CC0. Sample
code is defined as all source code displayed within the prose of the
documentation.

CC0: http://creativecommons.org/publicdomain/zero/1.0/

====

Files located in the node_modules and vendor directories are externally
maintained libraries used by this software which have their own
licenses; we recommend you read them, as their terms may differ from the
terms above.


webpack
Expand Down Expand Up @@ -136,55 +161,53 @@ If the Work includes a "NOTICE" text file as part of its distribution, then any
END OF TERMS AND CONDITIONS


lodash
handlebars
MIT
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
Copyright (C) 2011-2017 by Yehuda Katz

Based on Underscore.js, copyright Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>

This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
available at https://github.com/lodash/lodash

The following license applies to all parts of this software except as
documented below:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

====
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
lodash-decorators
MIT
The MIT License (MIT)

====
Copyright (c) 2015 Steven Sojka

Copyright and related rights for sample code are waived via CC0. Sample
code is defined as all source code displayed within the prose of the
documentation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

CC0: http://creativecommons.org/publicdomain/zero/1.0/
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

====
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Files located in the node_modules and vendor directories are externally
maintained libraries used by this software which have their own
licenses; we recommend you read them, as their terms may differ from the
terms above.


json-schema-traverse
Expand Down
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
<link rel="stylesheet" href="styles.0d1597410eecc4ba2451.css"></head>
<body>
<app-root></app-root>
<script type="text/javascript" src="runtime.26209474bfa8dc87a77c.js"></script><script type="text/javascript" src="polyfills.b336ed4868a640520486.js"></script><script type="text/javascript" src="main.1128242c9c05209c5717.js"></script></body>
<script type="text/javascript" src="runtime.26209474bfa8dc87a77c.js"></script><script type="text/javascript" src="polyfills.b336ed4868a640520486.js"></script><script type="text/javascript" src="main.bb45674cd43058ac6797.js"></script></body>
</html>
6 changes: 5 additions & 1 deletion documentation/additional-documentation/introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ <h3 id="options">Options</h3>
}]</code></pre></div></div>

<h3 id="button">Button</h3>
<p>There are 4 types of buttons that jsf supports, <code>button</code>, <code>image</code>, <code>reset</code> and <code>submit</code>. By default, these will all use the <code>&lt;input&gt;</code> tag for display. However, with the exception of <code>image</code>, you can specify custom html via the <code>content</code> option. This will result in the <code>&lt;button&gt;</code> being used for display and the content being inserted. Content can contain simple angular bindings so that you can bind to various properties of the layout. For example:</p>
<p>There are 4 types of buttons that jsf supports, <code>button</code>, <code>image</code>, <code>reset</code> and <code>submit</code>. By default, these will all use the <code>&lt;input&gt;</code> tag for display. However, with the exception of <code>image</code>, you can specify custom html via the <code>content</code> option. This will result in the <code>&lt;button&gt;</code> being used for display and the content being inserted. Content can contain simple bindings so that you can bind to various properties of the layout. For example:</p>
<div class="panel panel-primary docs">
<div class="panel-heading panel-title">button-layout.json</div>

Expand All @@ -221,6 +221,10 @@ <h3 id="button">Button</h3>
&lt;/button&gt;</code></pre></div></div>

<p>Here you can see we are specifying that the button should contain an image via the <code>content</code> options. The template binds to the properties of the <code>icon</code> option which results in an image tag being rendered. The <code>icon</code> option is also used when redering a simple button of type <code>image</code>.</p>
<div class="alert alert-warning">
Note: due to current limitation of Angular AOT compilation, use of the angular compile to transpile content strings into HTML DOM is not possible. Recent Angular changes have restricted the inclusion of the compiler in favor of reducing the file size and load time when in AOT mode. Therefore, Handlebars is currently being imported to handle the compilation of content string to HTML DOM.
</div>

<p>We can also respond to events such as a <code>click</code>. To do this, we must first bind an event handler to the jsf component</p>
<div class="panel panel-primary docs">
<div class="panel-heading panel-title">form.component.html</div>
Expand Down
2 changes: 2 additions & 0 deletions documentation/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
<b>brace</b> : ^0.11.0</li>
<li>
<b>core-js</b> : ^2.5.4</li>
<li>
<b>handlebars</b> : ^4.1.2</li>
<li>
<b>json-schema-traverse</b> : ^0.4.1</li>
<li>
Expand Down
Loading

0 comments on commit 4f2394a

Please sign in to comment.