@jsonforms/angular 3.1.0-alpha.0 → 3.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/lib/cjs/abstract-control.d.ts +1 -1
  2. package/lib/cjs/array-control.d.ts +1 -1
  3. package/lib/cjs/control.d.ts +1 -1
  4. package/lib/cjs/jsonforms.service.d.ts +3 -2
  5. package/lib/cjs/jsonforms.service.js.map +1 -1
  6. package/lib/esm/abstract-control.d.ts +1 -1
  7. package/lib/esm/array-control.d.ts +1 -1
  8. package/lib/esm/control.d.ts +1 -1
  9. package/lib/esm/jsonforms.service.d.ts +3 -2
  10. package/lib/esm/jsonforms.service.js.map +1 -1
  11. package/package.json +8 -4
  12. package/src/abstract-control.ts +1 -1
  13. package/src/array-control.ts +1 -1
  14. package/src/control.ts +1 -1
  15. package/src/jsonforms.component.ts +1 -1
  16. package/src/jsonforms.service.ts +3 -2
  17. package/docs/assets/css/main.css +0 -1
  18. package/docs/assets/images/icons.png +0 -0
  19. package/docs/assets/images/icons@2x.png +0 -0
  20. package/docs/assets/images/widgets.png +0 -0
  21. package/docs/assets/images/widgets@2x.png +0 -0
  22. package/docs/assets/js/main.js +0 -51
  23. package/docs/assets/js/search.json +0 -1
  24. package/docs/classes/jsonforms.html +0 -552
  25. package/docs/classes/jsonformsabstractcontrol.html +0 -772
  26. package/docs/classes/jsonformsangularservice.html +0 -937
  27. package/docs/classes/jsonformsarraycontrol.html +0 -782
  28. package/docs/classes/jsonformsbaserenderer.html +0 -268
  29. package/docs/classes/jsonformscontrol.html +0 -782
  30. package/docs/classes/jsonformscontrolwithdetail.html +0 -782
  31. package/docs/classes/jsonformsmodule.html +0 -164
  32. package/docs/classes/jsonformsoutlet.html +0 -483
  33. package/docs/classes/unknownrenderer.html +0 -164
  34. package/docs/globals.html +0 -225
  35. package/docs/index.html +0 -293
  36. package/test/dummy.test.ts +0 -26
  37. package/test/tsconfig.test.json +0 -18
  38. package/tsconfig.cjs.json +0 -9
  39. package/tsconfig.json +0 -16
package/docs/index.html DELETED
@@ -1,293 +0,0 @@
1
- <!doctype html>
2
- <html class="default no-js">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <title>JSON Forms Angular Core</title>
7
- <meta name="description" content="Documentation for JSON Forms Angular Core">
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <link rel="stylesheet" href="assets/css/main.css">
10
- </head>
11
- <body>
12
- <header>
13
- <div class="tsd-page-toolbar">
14
- <div class="container">
15
- <div class="table-wrap">
16
- <div class="table-cell" id="tsd-search" data-index="assets/js/search.json" data-base=".">
17
- <div class="field">
18
- <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
19
- <input id="tsd-search-field" type="text" />
20
- </div>
21
- <ul class="results">
22
- <li class="state loading">Preparing search index...</li>
23
- <li class="state failure">The search index is not available</li>
24
- </ul>
25
- <a href="index.html" class="title">JSON Forms Angular Core</a>
26
- </div>
27
- <div class="table-cell" id="tsd-widgets">
28
- <div id="tsd-filter">
29
- <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
30
- <div class="tsd-filter-group">
31
- <div class="tsd-select" id="tsd-filter-visibility">
32
- <span class="tsd-select-label">All</span>
33
- <ul class="tsd-select-list">
34
- <li data-value="public">Public</li>
35
- <li data-value="protected">Public/Protected</li>
36
- <li data-value="private" class="selected">All</li>
37
- </ul>
38
- </div>
39
- <input type="checkbox" id="tsd-filter-inherited" checked />
40
- <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
41
- <input type="checkbox" id="tsd-filter-externals" checked />
42
- <label class="tsd-widget" for="tsd-filter-externals">Externals</label>
43
- <input type="checkbox" id="tsd-filter-only-exported" />
44
- <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
45
- </div>
46
- </div>
47
- <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
48
- </div>
49
- </div>
50
- </div>
51
- </div>
52
- <div class="tsd-page-title">
53
- <div class="container">
54
- <ul class="tsd-breadcrumb">
55
- <li>
56
- <a href="globals.html">Globals</a>
57
- </li>
58
- </ul>
59
- <h1>JSON Forms Angular Core</h1>
60
- </div>
61
- </div>
62
- </header>
63
- <div class="container container-main">
64
- <div class="row">
65
- <div class="col-8 col-content">
66
- <div class="tsd-panel tsd-typography">
67
- <a href="#json-forms---more-forms-less-code" id="json-forms---more-forms-less-code" style="color: inherit; text-decoration: none;">
68
- <h1>JSON Forms - More Forms. Less Code</h1>
69
- </a>
70
- <p><em>Complex forms in the blink of an eye</em></p>
71
- <p>JSON Forms eliminates the tedious task of writing fully-featured forms by hand by leveraging the capabilities of JSON, JSON Schema and Javascript.</p>
72
- <a href="#angular-package" id="angular-package" style="color: inherit; text-decoration: none;">
73
- <h2>Angular Package</h2>
74
- </a>
75
- <p>This is the JSON Forms Angular package which provides the necessary bindings for Angular. It uses <a href="https://github.com/eclipsesource/jsonforms/blob/master/packages/core">JSON Forms Core</a>.</p>
76
- <p>You can combine the Angular package with any Angular-based renderer set you want, for example the <a href="https://github.com/eclipsesource/jsonforms/blob/master/packages/angular-material">Material Renderers</a>.</p>
77
- <p>See the official <a href="https://jsonforms.io/docs/integrations/angular">documentation</a> and the JSON Forms Angular <a href="https://github.com/eclipsesource/jsonforms-angular-seed">seed repository</a> for examples on how to integrate JSON Forms with your application.</p>
78
- <p>Check <a href="https://www.npmjs.com/search?q=%40jsonforms">https://www.npmjs.com/search?q=%40jsonforms</a> for all published JSON Forms packages.</p>
79
- <a href="#usage" id="usage" style="color: inherit; text-decoration: none;">
80
- <h3>Usage</h3>
81
- </a>
82
- <p>Use the <code>JsonForms</code> component to render a form for your data.</p>
83
- <p>Mandatory props:</p>
84
- <ul>
85
- <li><code>data: any</code> - the data to show</li>
86
- <li><code>renderers: JsonFormsRendererRegistryEntry[]</code> - the Angular renderer set to use</li>
87
- </ul>
88
- <p>Optional props:</p>
89
- <ul>
90
- <li><code>schema: JsonSchema</code> - the data schema for the given data. Will be generated when not given.</li>
91
- <li><code>uischema: UISchemaElement</code> - the UI schema for the given data schema. Will be generated when not given.</li>
92
- <li><code>config: any</code> - form-wide options. May contain default ui schema options.</li>
93
- <li><code>readonly: boolean</code> - whether all controls shall be readonly.</li>
94
- <li><code>uischemas: JsonFormsUiSchemaEntry[]</code> - registry for dynamic ui schema dispatching</li>
95
- <li><code>validationMode: &#39;ValidateAndShow&#39; | &#39;ValidateAndHide&#39; | &#39;NoValidation&#39;</code> - the validation mode for the form</li>
96
- <li><code>ajv: AJV</code> - custom Ajv instance for the form</li>
97
- <li><code>locale</code> - string, for example for formatting numbers </li>
98
- <li><code>dataChange</code> - event emitter which is called on each data change, containing the updated data and the validation result.</li>
99
- <li><code>errors</code> - event emitter which is called with all validations errors.</li>
100
- </ul>
101
- <p>Example component file <code>app.component.ts</code>:</p>
102
- <pre><code class="language-ts"><span class="hljs-keyword">import</span> { Component } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;@angular/core&quot;</span>;
103
- <span class="hljs-keyword">import</span> { angularMaterialRenderers } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;@jsonforms/angular-material&quot;</span>;
104
-
105
- <span class="hljs-meta">@Component</span>({
106
- <span class="hljs-attr">selector</span>: <span class="hljs-string">&quot;app-root&quot;</span>,
107
- <span class="hljs-attr">template</span>: <span class="hljs-string">`&lt;jsonforms
108
- [data]=&quot;data&quot;
109
- [schema]=&quot;schema&quot;
110
- [uischema]=&quot;uischema&quot;
111
- [renderers]=&quot;renderers&quot;
112
- &gt;&lt;/jsonforms&gt;`</span>,
113
- })
114
- <span class="hljs-keyword">export</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">AppComponent</span> </span>{
115
- renderers = angularMaterialRenderers;
116
- uischema = {
117
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;VerticalLayout&quot;</span>,
118
- <span class="hljs-attr">elements</span>: [
119
- {
120
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;Control&quot;</span>,
121
- <span class="hljs-attr">label</span>: <span class="hljs-literal">false</span>,
122
- <span class="hljs-attr">scope</span>: <span class="hljs-string">&quot;#/properties/done&quot;</span>,
123
- },
124
- {
125
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;Control&quot;</span>,
126
- <span class="hljs-attr">scope</span>: <span class="hljs-string">&quot;#/properties/name&quot;</span>,
127
- },
128
- {
129
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;HorizontalLayout&quot;</span>,
130
- <span class="hljs-attr">elements</span>: [
131
- {
132
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;Control&quot;</span>,
133
- <span class="hljs-attr">scope</span>: <span class="hljs-string">&quot;#/properties/due_date&quot;</span>,
134
- },
135
- {
136
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;Control&quot;</span>,
137
- <span class="hljs-attr">scope</span>: <span class="hljs-string">&quot;#/properties/recurrence&quot;</span>,
138
- },
139
- ],
140
- },
141
- ],
142
- };
143
- schema = {
144
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;object&quot;</span>,
145
- <span class="hljs-attr">properties</span>: {
146
- <span class="hljs-attr">name</span>: {
147
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;string&quot;</span>,
148
- <span class="hljs-attr">minLength</span>: <span class="hljs-number">1</span>,
149
- },
150
- <span class="hljs-attr">done</span>: {
151
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;boolean&quot;</span>,
152
- },
153
- <span class="hljs-attr">due_date</span>: {
154
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;string&quot;</span>,
155
- <span class="hljs-attr">format</span>: <span class="hljs-string">&quot;date&quot;</span>,
156
- },
157
- <span class="hljs-attr">recurrence</span>: {
158
- <span class="hljs-attr">type</span>: <span class="hljs-string">&quot;string&quot;</span>,
159
- <span class="hljs-attr">enum</span>: [<span class="hljs-string">&quot;Never&quot;</span>, <span class="hljs-string">&quot;Daily&quot;</span>, <span class="hljs-string">&quot;Weekly&quot;</span>, <span class="hljs-string">&quot;Monthly&quot;</span>],
160
- },
161
- },
162
- <span class="hljs-attr">required</span>: [<span class="hljs-string">&quot;name&quot;</span>, <span class="hljs-string">&quot;due_date&quot;</span>],
163
- };
164
- data = {};
165
- }
166
- </code></pre>
167
- <p>Example module file:</p>
168
- <pre><code class="language-ts"><span class="hljs-keyword">import</span> { NgModule } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;@angular/core&quot;</span>;
169
- <span class="hljs-keyword">import</span> { BrowserModule } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;@angular/platform-browser&quot;</span>;
170
- <span class="hljs-keyword">import</span> { BrowserAnimationsModule } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;@angular/platform-browser/animations&quot;</span>;
171
- <span class="hljs-keyword">import</span> { JsonFormsModule } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;@jsonforms/angular&quot;</span>;
172
- <span class="hljs-keyword">import</span> { JsonFormsAngularMaterialModule } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;@jsonforms/angular-material&quot;</span>;
173
- <span class="hljs-keyword">import</span> { AppComponent } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;./app.component&quot;</span>;
174
-
175
- <span class="hljs-meta">@NgModule</span>({
176
- <span class="hljs-attr">declarations</span>: [AppComponent],
177
- <span class="hljs-attr">imports</span>: [
178
- BrowserModule,
179
- BrowserAnimationsModule,
180
- JsonFormsModule,
181
- JsonFormsAngularMaterialModule,
182
- ],
183
- <span class="hljs-attr">schemas</span>: [],
184
- <span class="hljs-attr">bootstrap</span>: [AppComponent],
185
- })
186
-
187
- <span class="hljs-keyword">export</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">AppModule</span> </span>{ }
188
- </code></pre>
189
- <a href="#license" id="license" style="color: inherit; text-decoration: none;">
190
- <h2>License</h2>
191
- </a>
192
- <p>The JSON Forms project is licensed under the MIT License. See the <a href="https://github.com/eclipsesource/jsonforms/blob/master/LICENSE">LICENSE file</a> for more information.</p>
193
- <a href="#roadmap" id="roadmap" style="color: inherit; text-decoration: none;">
194
- <h2>Roadmap</h2>
195
- </a>
196
- <p>Our current roadmap is available <a href="https://github.com/eclipsesource/jsonforms/blob/master/ROADMAP.md">here</a>.</p>
197
- <a href="#feedback-help-and-support" id="feedback-help-and-support" style="color: inherit; text-decoration: none;">
198
- <h2>Feedback, Help and Support</h2>
199
- </a>
200
- <p>JSON Forms is developed by <a href="https://eclipsesource.com">EclipseSource</a>.</p>
201
- <p>If you encounter any problems feel free to <a href="https://github.com/eclipsesource/jsonforms/issues/new/choose">open an issue</a> on the repo.
202
- For questions and discussions please use the <a href="https://jsonforms.discourse.group">JSON Forms board</a>.
203
- You can also reach us via <a href="mailto:jsonforms@eclipsesource.com?subject=JSON%20Forms">email</a>.
204
- In addition, EclipseSource also offers <a href="https://jsonforms.io/support">professional support</a> for JSON Forms.</p>
205
- <a href="#migration" id="migration" style="color: inherit; text-decoration: none;">
206
- <h2>Migration</h2>
207
- </a>
208
- <p>See our <a href="https://github.com/eclipsesource/jsonforms/blob/master/MIGRATION.md">migration guide</a> when updating JSON Forms.</p>
209
- </div>
210
- </div>
211
- <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
212
- <nav class="tsd-navigation primary">
213
- <ul>
214
- <li class="globals ">
215
- <a href="globals.html"><em>Globals</em></a>
216
- </li>
217
- </ul>
218
- </nav>
219
- <nav class="tsd-navigation secondary menu-sticky">
220
- <ul class="before-current">
221
- <li class=" tsd-kind-class">
222
- <a href="classes/jsonforms.html" class="tsd-kind-icon">Json<wbr>Forms</a>
223
- </li>
224
- <li class=" tsd-kind-class tsd-has-type-parameter">
225
- <a href="classes/jsonformsabstractcontrol.html" class="tsd-kind-icon">Json<wbr>Forms<wbr>Abstract<wbr>Control</a>
226
- </li>
227
- <li class=" tsd-kind-class">
228
- <a href="classes/jsonformsangularservice.html" class="tsd-kind-icon">Json<wbr>Forms<wbr>Angular<wbr>Service</a>
229
- </li>
230
- <li class=" tsd-kind-class">
231
- <a href="classes/jsonformsarraycontrol.html" class="tsd-kind-icon">Json<wbr>Forms<wbr>Array<wbr>Control</a>
232
- </li>
233
- <li class=" tsd-kind-class tsd-has-type-parameter">
234
- <a href="classes/jsonformsbaserenderer.html" class="tsd-kind-icon">Json<wbr>Forms<wbr>Base<wbr>Renderer</a>
235
- </li>
236
- <li class=" tsd-kind-class">
237
- <a href="classes/jsonformscontrol.html" class="tsd-kind-icon">Json<wbr>Forms<wbr>Control</a>
238
- </li>
239
- <li class=" tsd-kind-class">
240
- <a href="classes/jsonformscontrolwithdetail.html" class="tsd-kind-icon">Json<wbr>Forms<wbr>Control<wbr>With<wbr>Detail</a>
241
- </li>
242
- <li class=" tsd-kind-class">
243
- <a href="classes/jsonformsmodule.html" class="tsd-kind-icon">Json<wbr>Forms<wbr>Module</a>
244
- </li>
245
- <li class=" tsd-kind-class">
246
- <a href="classes/jsonformsoutlet.html" class="tsd-kind-icon">Json<wbr>Forms<wbr>Outlet</a>
247
- </li>
248
- <li class=" tsd-kind-class">
249
- <a href="classes/unknownrenderer.html" class="tsd-kind-icon">Unknown<wbr>Renderer</a>
250
- </li>
251
- <li class=" tsd-kind-variable">
252
- <a href="globals.html#use_state_value" class="tsd-kind-icon">USE_<wbr>STATE_<wbr>VALUE</a>
253
- </li>
254
- <li class=" tsd-kind-function">
255
- <a href="globals.html#areequal" class="tsd-kind-icon">are<wbr>Equal</a>
256
- </li>
257
- </ul>
258
- </nav>
259
- </div>
260
- </div>
261
- </div>
262
- <footer class="with-border-bottom">
263
- <div class="container">
264
- <h2>Legend</h2>
265
- <div class="tsd-legend-group">
266
- <ul class="tsd-legend">
267
- <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
268
- <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
269
- <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
270
- </ul>
271
- <ul class="tsd-legend">
272
- <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
273
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
274
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
275
- </ul>
276
- <ul class="tsd-legend">
277
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
278
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
279
- </ul>
280
- <ul class="tsd-legend">
281
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
282
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
283
- </ul>
284
- </div>
285
- </div>
286
- </footer>
287
- <div class="container tsd-generator">
288
- <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
289
- </div>
290
- <div class="overlay"></div>
291
- <script src="assets/js/main.js"></script>
292
- </body>
293
- </html>
@@ -1,26 +0,0 @@
1
- /*
2
- The MIT License
3
-
4
- Copyright (c) 2017-2019 EclipseSource Munich
5
- https://github.com/eclipsesource/jsonforms
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in
15
- all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
- THE SOFTWARE.
24
- */
25
- import test from 'ava';
26
- test.todo('dummy');
@@ -1,18 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "outDir": "../dist/test",
5
- "target": "es6",
6
- "inlineSourceMap": true
7
- },
8
- "include": [
9
- "**/*.ts",
10
- "**/*.tsx"
11
- ],
12
- "exclude":[
13
- "node_modules"
14
- ],
15
- "files": [
16
- "../src/index.ts"
17
- ]
18
- }
package/tsconfig.cjs.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig",
3
- "compilerOptions": {
4
- "outDir": "./lib/cjs",
5
- "sourceMap": true,
6
- "target": "es5",
7
- "module": "commonjs"
8
- },
9
- }
package/tsconfig.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base",
3
- "compilerOptions": {
4
- "outDir": "./lib/esm",
5
- "sourceMap": true,
6
- "target": "es5"
7
- },
8
- "exclude": ["node_modules"],
9
- "files": ["./src/index.ts"],
10
- "angularCompilerOptions": {
11
- "strictMetadataEmit": true,
12
- "generateCodeForLibraries": false,
13
- "skipTemplateCodegen": true,
14
- "enableIvy": false
15
- }
16
- }