@jsonforms/angular-material 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 (74) hide show
  1. package/lib/cjs/controls/autocomplete.renderer.d.ts +2 -2
  2. package/lib/cjs/other/master-detail/master.js +3 -0
  3. package/lib/cjs/other/master-detail/master.js.map +1 -1
  4. package/lib/cjs/other/master-detail/master.metadata.json +1 -1
  5. package/lib/esm/controls/autocomplete.renderer.d.ts +2 -2
  6. package/lib/esm/other/master-detail/master.js +4 -1
  7. package/lib/esm/other/master-detail/master.js.map +1 -1
  8. package/lib/esm/other/master-detail/master.metadata.json +1 -1
  9. package/package.json +23 -8
  10. package/src/controls/autocomplete.renderer.ts +2 -2
  11. package/src/layouts/layout.renderer.ts +2 -2
  12. package/src/other/master-detail/master.ts +5 -0
  13. package/docs/assets/css/main.css +0 -1
  14. package/docs/assets/images/icons.png +0 -0
  15. package/docs/assets/images/icons@2x.png +0 -0
  16. package/docs/assets/images/widgets.png +0 -0
  17. package/docs/assets/images/widgets@2x.png +0 -0
  18. package/docs/assets/js/main.js +0 -51
  19. package/docs/assets/js/search.json +0 -1
  20. package/docs/classes/arraylayoutrenderer.html +0 -1256
  21. package/docs/classes/autocompletecontrolrenderer.html +0 -887
  22. package/docs/classes/booleancontrolrenderer.html +0 -771
  23. package/docs/classes/categorizationtablayoutrenderer.html +0 -384
  24. package/docs/classes/datecontrolrenderer.html +0 -739
  25. package/docs/classes/grouplayoutrenderer.html +0 -396
  26. package/docs/classes/horizontallayoutrenderer.html +0 -396
  27. package/docs/classes/jsonformsangularmaterialmodule.html +0 -133
  28. package/docs/classes/jsonformsdetailcomponent.html +0 -227
  29. package/docs/classes/labelrenderer.html +0 -363
  30. package/docs/classes/layoutchildrenrenderpropspipe.html +0 -189
  31. package/docs/classes/layoutrenderer.html +0 -436
  32. package/docs/classes/masterlistcomponent.html +0 -1054
  33. package/docs/classes/numbercontrolrenderer.html +0 -893
  34. package/docs/classes/objectcontrolrenderer.html +0 -761
  35. package/docs/classes/rangecontrolrenderer.html +0 -792
  36. package/docs/classes/tablerenderer.html +0 -1222
  37. package/docs/classes/textarearenderer.html +0 -739
  38. package/docs/classes/textcontrolrenderer.html +0 -760
  39. package/docs/classes/togglecontrolrenderer.html +0 -771
  40. package/docs/classes/verticallayoutrenderer.html +0 -396
  41. package/docs/globals.html +0 -610
  42. package/docs/index.html +0 -378
  43. package/docs/interfaces/columndescription.html +0 -192
  44. package/docs/interfaces/ownpropsofautocomplete.html +0 -327
  45. package/example/app/app.component.ts +0 -122
  46. package/example/app/app.module.ts +0 -42
  47. package/example/index.html +0 -25
  48. package/example/main.ts +0 -37
  49. package/test/autocomplete-control.spec.ts +0 -322
  50. package/test/boolean-control.spec.ts +0 -76
  51. package/test/categorization-tab-layout.spec.ts +0 -330
  52. package/test/date-control.spec.ts +0 -280
  53. package/test/group-layout.spec.ts +0 -105
  54. package/test/horizontal-layout.spec.ts +0 -96
  55. package/test/label-renderer.spec.ts +0 -78
  56. package/test/master-detail.spec.ts +0 -408
  57. package/test/number-control.spec.ts +0 -208
  58. package/test/object-control.spec.ts +0 -247
  59. package/test/range-control.spec.ts +0 -104
  60. package/test/table-control.spec.ts +0 -369
  61. package/test/text-area.spec.ts +0 -108
  62. package/test/text-control.spec.ts +0 -89
  63. package/test/toggle-control.spec.ts +0 -77
  64. package/test/tsconfig.test.json +0 -18
  65. package/test/util.ts +0 -28
  66. package/test/vertical-layout.spec.ts +0 -115
  67. package/test-config/karma-test-shim.js +0 -21
  68. package/test-config/karma.conf.js +0 -58
  69. package/test-config/protractor.conf.js +0 -28
  70. package/test-config/webpack.test.js +0 -65
  71. package/tsconfig.cjs.json +0 -9
  72. package/tsconfig.json +0 -16
  73. package/webpack/webpack.build.js +0 -13
  74. package/webpack/webpack.dev.js +0 -37
@@ -1,327 +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>OwnPropsOfAutoComplete | JSON Forms Angular Material Renderers</title>
7
- <meta name="description" content="Documentation for JSON Forms Angular Material Renderers">
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 Material Renderers</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
- <li>
59
- <a href="ownpropsofautocomplete.html">OwnPropsOfAutoComplete</a>
60
- </li>
61
- </ul>
62
- <h1>Interface OwnPropsOfAutoComplete</h1>
63
- </div>
64
- </div>
65
- </header>
66
- <div class="container container-main">
67
- <div class="row">
68
- <div class="col-8 col-content">
69
- <section class="tsd-panel tsd-hierarchy">
70
- <h3>Hierarchy</h3>
71
- <ul class="tsd-hierarchy">
72
- <li>
73
- <span class="tsd-signature-type">OwnPropsOfControl</span>
74
- <ul class="tsd-hierarchy">
75
- <li>
76
- <span class="target">OwnPropsOfAutoComplete</span>
77
- </li>
78
- </ul>
79
- </li>
80
- </ul>
81
- </section>
82
- <section class="tsd-panel-group tsd-index-group">
83
- <h2>Index</h2>
84
- <section class="tsd-panel tsd-index-panel">
85
- <div class="tsd-index-content">
86
- <section class="tsd-index-section ">
87
- <h3>Properties</h3>
88
- <ul class="tsd-index-list">
89
- <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ownpropsofautocomplete.html#cells" class="tsd-kind-icon">cells</a></li>
90
- <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ownpropsofautocomplete.html#enabled" class="tsd-kind-icon">enabled</a></li>
91
- <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ownpropsofautocomplete.html#id" class="tsd-kind-icon">id</a></li>
92
- <li class="tsd-kind-property tsd-parent-kind-interface"><a href="ownpropsofautocomplete.html#options" class="tsd-kind-icon">options</a></li>
93
- <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ownpropsofautocomplete.html#path" class="tsd-kind-icon">path</a></li>
94
- <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ownpropsofautocomplete.html#renderers" class="tsd-kind-icon">renderers</a></li>
95
- <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ownpropsofautocomplete.html#schema" class="tsd-kind-icon">schema</a></li>
96
- <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited"><a href="ownpropsofautocomplete.html#uischema" class="tsd-kind-icon">uischema</a></li>
97
- <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ownpropsofautocomplete.html#uischemas" class="tsd-kind-icon">uischemas</a></li>
98
- <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ownpropsofautocomplete.html#visible" class="tsd-kind-icon">visible</a></li>
99
- </ul>
100
- </section>
101
- </div>
102
- </section>
103
- </section>
104
- <section class="tsd-panel-group tsd-member-group ">
105
- <h2>Properties</h2>
106
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
107
- <a name="cells" class="tsd-anchor"></a>
108
- <h3><span class="tsd-flag ts-flagOptional">Optional</span> cells</h3>
109
- <div class="tsd-signature tsd-kind-icon">cells<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonFormsCellRendererRegistryEntry</span><span class="tsd-signature-symbol">[]</span></div>
110
- <aside class="tsd-sources">
111
- <p>Inherited from <a href="ownpropsofautocomplete.html">OwnPropsOfAutoComplete</a>.<a href="ownpropsofautocomplete.html#cells">cells</a></p>
112
- <ul>
113
- <li>Defined in packages/core/lib/util/renderer.d.ts:78</li>
114
- </ul>
115
- </aside>
116
- </section>
117
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
118
- <a name="enabled" class="tsd-anchor"></a>
119
- <h3><span class="tsd-flag ts-flagOptional">Optional</span> enabled</h3>
120
- <div class="tsd-signature tsd-kind-icon">enabled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
121
- <aside class="tsd-sources">
122
- <p>Inherited from <a href="ownpropsofautocomplete.html">OwnPropsOfAutoComplete</a>.<a href="ownpropsofautocomplete.html#enabled">enabled</a></p>
123
- <ul>
124
- <li>Defined in packages/core/lib/util/renderer.d.ts:66</li>
125
- </ul>
126
- </aside>
127
- <div class="tsd-comment tsd-typography">
128
- <div class="lead">
129
- <p>Whether the rendered element should be enabled.</p>
130
- </div>
131
- </div>
132
- </section>
133
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
134
- <a name="id" class="tsd-anchor"></a>
135
- <h3><span class="tsd-flag ts-flagOptional">Optional</span> id</h3>
136
- <div class="tsd-signature tsd-kind-icon">id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
137
- <aside class="tsd-sources">
138
- <p>Inherited from <a href="ownpropsofautocomplete.html">OwnPropsOfAutoComplete</a>.<a href="ownpropsofautocomplete.html#id">id</a></p>
139
- <ul>
140
- <li>Defined in packages/core/lib/util/renderer.d.ts:82</li>
141
- </ul>
142
- </aside>
143
- </section>
144
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
145
- <a name="options" class="tsd-anchor"></a>
146
- <h3>options</h3>
147
- <div class="tsd-signature tsd-kind-icon">options<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
148
- <aside class="tsd-sources">
149
- <ul>
150
- <li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/17320940/packages/angular-material/src/controls/autocomplete.renderer.ts#L152">packages/angular-material/src/controls/autocomplete.renderer.ts:152</a></li>
151
- </ul>
152
- </aside>
153
- </section>
154
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
155
- <a name="path" class="tsd-anchor"></a>
156
- <h3><span class="tsd-flag ts-flagOptional">Optional</span> path</h3>
157
- <div class="tsd-signature tsd-kind-icon">path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
158
- <aside class="tsd-sources">
159
- <p>Inherited from <a href="ownpropsofautocomplete.html">OwnPropsOfAutoComplete</a>.<a href="ownpropsofautocomplete.html#path">path</a></p>
160
- <ul>
161
- <li>Defined in packages/core/lib/util/renderer.d.ts:76</li>
162
- </ul>
163
- </aside>
164
- <div class="tsd-comment tsd-typography">
165
- <div class="lead">
166
- <p>Optional instance path. Necessary when the actual data
167
- path can not be inferred via the UI schema element as
168
- it is the case with nested controls.</p>
169
- </div>
170
- </div>
171
- </section>
172
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
173
- <a name="renderers" class="tsd-anchor"></a>
174
- <h3><span class="tsd-flag ts-flagOptional">Optional</span> renderers</h3>
175
- <div class="tsd-signature tsd-kind-icon">renderers<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonFormsRendererRegistryEntry</span><span class="tsd-signature-symbol">[]</span></div>
176
- <aside class="tsd-sources">
177
- <p>Inherited from <a href="ownpropsofautocomplete.html">OwnPropsOfAutoComplete</a>.<a href="ownpropsofautocomplete.html#renderers">renderers</a></p>
178
- <ul>
179
- <li>Defined in packages/core/lib/util/renderer.d.ts:77</li>
180
- </ul>
181
- </aside>
182
- </section>
183
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
184
- <a name="schema" class="tsd-anchor"></a>
185
- <h3><span class="tsd-flag ts-flagOptional">Optional</span> schema</h3>
186
- <div class="tsd-signature tsd-kind-icon">schema<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonSchema</span></div>
187
- <aside class="tsd-sources">
188
- <p>Inherited from <a href="ownpropsofautocomplete.html">OwnPropsOfAutoComplete</a>.<a href="ownpropsofautocomplete.html#schema">schema</a></p>
189
- <ul>
190
- <li>Defined in packages/core/lib/util/renderer.d.ts:62</li>
191
- </ul>
192
- </aside>
193
- <div class="tsd-comment tsd-typography">
194
- <div class="lead">
195
- <p>The JSON schema that describes the data.</p>
196
- </div>
197
- </div>
198
- </section>
199
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited">
200
- <a name="uischema" class="tsd-anchor"></a>
201
- <h3><span class="tsd-flag ts-flagOptional">Optional</span> uischema</h3>
202
- <div class="tsd-signature tsd-kind-icon">uischema<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ControlElement</span></div>
203
- <aside class="tsd-sources">
204
- <p>Inherited from <a href="ownpropsofautocomplete.html">OwnPropsOfAutoComplete</a>.<a href="ownpropsofautocomplete.html#uischema">uischema</a></p>
205
- <p>Overrides OwnPropsOfRenderer.uischema</p>
206
- <ul>
207
- <li>Defined in packages/core/lib/util/renderer.d.ts:83</li>
208
- </ul>
209
- </aside>
210
- </section>
211
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
212
- <a name="uischemas" class="tsd-anchor"></a>
213
- <h3><span class="tsd-flag ts-flagOptional">Optional</span> uischemas</h3>
214
- <div class="tsd-signature tsd-kind-icon">uischemas<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonFormsUISchemaRegistryEntry</span><span class="tsd-signature-symbol">[]</span></div>
215
- <aside class="tsd-sources">
216
- <p>Inherited from <a href="ownpropsofautocomplete.html">OwnPropsOfAutoComplete</a>.<a href="ownpropsofautocomplete.html#uischemas">uischemas</a></p>
217
- <ul>
218
- <li>Defined in packages/core/lib/util/renderer.d.ts:79</li>
219
- </ul>
220
- </aside>
221
- </section>
222
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
223
- <a name="visible" class="tsd-anchor"></a>
224
- <h3><span class="tsd-flag ts-flagOptional">Optional</span> visible</h3>
225
- <div class="tsd-signature tsd-kind-icon">visible<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
226
- <aside class="tsd-sources">
227
- <p>Inherited from <a href="ownpropsofautocomplete.html">OwnPropsOfAutoComplete</a>.<a href="ownpropsofautocomplete.html#visible">visible</a></p>
228
- <ul>
229
- <li>Defined in packages/core/lib/util/renderer.d.ts:70</li>
230
- </ul>
231
- </aside>
232
- <div class="tsd-comment tsd-typography">
233
- <div class="lead">
234
- <p>Whether the rendered element should be visible.</p>
235
- </div>
236
- </div>
237
- </section>
238
- </section>
239
- </div>
240
- <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
241
- <nav class="tsd-navigation primary">
242
- <ul>
243
- <li class="globals ">
244
- <a href="../globals.html"><em>Globals</em></a>
245
- </li>
246
- </ul>
247
- </nav>
248
- <nav class="tsd-navigation secondary menu-sticky">
249
- <ul class="before-current">
250
- </ul>
251
- <ul class="current">
252
- <li class="current tsd-kind-interface">
253
- <a href="ownpropsofautocomplete.html" class="tsd-kind-icon">Own<wbr>Props<wbr>OfAuto<wbr>Complete</a>
254
- <ul>
255
- <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
256
- <a href="ownpropsofautocomplete.html#cells" class="tsd-kind-icon">cells</a>
257
- </li>
258
- <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
259
- <a href="ownpropsofautocomplete.html#enabled" class="tsd-kind-icon">enabled</a>
260
- </li>
261
- <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
262
- <a href="ownpropsofautocomplete.html#id" class="tsd-kind-icon">id</a>
263
- </li>
264
- <li class=" tsd-kind-property tsd-parent-kind-interface">
265
- <a href="ownpropsofautocomplete.html#options" class="tsd-kind-icon">options</a>
266
- </li>
267
- <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
268
- <a href="ownpropsofautocomplete.html#path" class="tsd-kind-icon">path</a>
269
- </li>
270
- <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
271
- <a href="ownpropsofautocomplete.html#renderers" class="tsd-kind-icon">renderers</a>
272
- </li>
273
- <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
274
- <a href="ownpropsofautocomplete.html#schema" class="tsd-kind-icon">schema</a>
275
- </li>
276
- <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited">
277
- <a href="ownpropsofautocomplete.html#uischema" class="tsd-kind-icon">uischema</a>
278
- </li>
279
- <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
280
- <a href="ownpropsofautocomplete.html#uischemas" class="tsd-kind-icon">uischemas</a>
281
- </li>
282
- <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
283
- <a href="ownpropsofautocomplete.html#visible" class="tsd-kind-icon">visible</a>
284
- </li>
285
- </ul>
286
- </li>
287
- </ul>
288
- <ul class="after-current">
289
- </ul>
290
- </nav>
291
- </div>
292
- </div>
293
- </div>
294
- <footer class="with-border-bottom">
295
- <div class="container">
296
- <h2>Legend</h2>
297
- <div class="tsd-legend-group">
298
- <ul class="tsd-legend">
299
- <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
300
- <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
301
- <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
302
- </ul>
303
- <ul class="tsd-legend">
304
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
305
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
306
- </ul>
307
- <ul class="tsd-legend">
308
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
309
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
310
- </ul>
311
- <ul class="tsd-legend">
312
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
313
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
314
- </ul>
315
- <ul class="tsd-legend">
316
- <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
317
- </ul>
318
- </div>
319
- </div>
320
- </footer>
321
- <div class="container tsd-generator">
322
- <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
323
- </div>
324
- <div class="overlay"></div>
325
- <script src="../assets/js/main.js"></script>
326
- </body>
327
- </html>
@@ -1,122 +0,0 @@
1
- /*
2
- The MIT License
3
-
4
- Copyright (c) 2017-2020 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 { Component } from '@angular/core';
26
- import { ExampleDescription, getExamples } from '@jsonforms/examples';
27
- import { JsonFormsI18nState, UISchemaElement, UISchemaTester } from '@jsonforms/core';
28
- import { angularMaterialRenderers } from '../../src/index';
29
- import { DateAdapter } from '@angular/material/core';
30
-
31
- const uiSchema = {
32
- type: 'HorizontalLayout',
33
- elements: [
34
- {
35
- type: 'Control',
36
- scope: '#/properties/buyer/properties/email'
37
- },
38
- {
39
- type: 'Control',
40
- scope: '#/properties/status'
41
- }
42
- ]
43
- };
44
- const defaultI18n: JsonFormsI18nState = {
45
- locale: 'en-US'
46
- };
47
- const itemTester: UISchemaTester = (_schema, schemaPath, _path) => {
48
- if (schemaPath === '#/properties/warehouseitems/items') {
49
- return 10;
50
- }
51
- return -1;
52
- };
53
- @Component({
54
- selector: 'app-root',
55
- template: `
56
- <h1>Angular Material Examples</h1>
57
- Data: {{ selectedExample.data | json }}
58
- <div>
59
- Example:
60
- <select (change)="onChange($event)">
61
- <option
62
- *ngFor="let example of examples"
63
- value="{{ example.name }}"
64
- label="{{ example.label }}"
65
- >
66
- {{ example.label }}
67
- </option>
68
- </select>
69
- </div>
70
- <div>
71
- <button (click)="changeLocale('de-DE')">Change locale to de-DE</button>
72
- <button (click)="changeLocale('en-US')">Change locale to en-US</button>
73
- Current locale: {{ currentLocale }}
74
- <button (click)="toggleReadonly()">
75
- {{ readonly ? 'Unset' : 'Set' }} Readonly
76
- </button>
77
- </div>
78
- <jsonforms
79
- [(data)]="selectedExample.data"
80
- [schema]="selectedExample.schema"
81
- [uischema]="selectedExample.uischema"
82
- [renderers]="renderers"
83
- [i18n]="i18n"
84
- [uischemas]="uischemas"
85
- [readonly]="readonly"
86
- [config]="config"
87
- ></jsonforms>
88
- `
89
- })
90
- export class AppComponent {
91
- readonly renderers = angularMaterialRenderers;
92
- readonly examples = getExamples();
93
- selectedExample: ExampleDescription;
94
- i18n: JsonFormsI18nState;
95
- private dateAdapter;
96
- private readonly = false;
97
- data: any;
98
- uischemas: { tester: UISchemaTester; uischema: UISchemaElement; }[] = [
99
- { tester: itemTester, uischema: uiSchema }
100
- ];
101
-
102
- constructor(dateAdapter: DateAdapter<Date>) {
103
- this.selectedExample = this.examples[19];
104
- this.dateAdapter = dateAdapter;
105
- this.i18n = this.selectedExample.i18n ?? defaultI18n;
106
- dateAdapter.setLocale(this.i18n.locale);
107
- }
108
-
109
- onChange(ev: any) {
110
- this.selectedExample = this.examples.find(e => e.name === ev.target.value);
111
- this.i18n = this.selectedExample.i18n ?? defaultI18n;
112
- }
113
-
114
- changeLocale(locale: string) {
115
- this.i18n.locale = locale;
116
- this.dateAdapter.setLocale(locale);
117
- }
118
-
119
- toggleReadonly() {
120
- this.readonly = !this.readonly;
121
- }
122
- }
@@ -1,42 +0,0 @@
1
- /*
2
- The MIT License
3
-
4
- Copyright (c) 2017-2020 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 { BrowserModule } from '@angular/platform-browser';
26
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
27
- import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
28
- import { AppComponent } from './app.component';
29
- import { JsonFormsAngularMaterialModule } from '../../src/module';
30
-
31
- @NgModule({
32
- declarations: [AppComponent],
33
- imports: [
34
- BrowserModule,
35
- BrowserAnimationsModule,
36
- JsonFormsAngularMaterialModule
37
- ],
38
- bootstrap: [AppComponent],
39
- schemas: [CUSTOM_ELEMENTS_SCHEMA]
40
- })
41
- export class AppModule {
42
- }
@@ -1,25 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>Tour of Heroes</title>
6
- <base href="/">
7
-
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <link rel="icon" type="image/x-icon" href="favicon.ico">
10
- <link href="assets/indigo-pink.css" rel="stylesheet">
11
- <link href="https://fonts.googleapis.com/icon?family=Material+Icons"
12
- rel="stylesheet">
13
- <link href='http://fonts.googleapis.com/css?family=Roboto:400,900,700,500,300,100' rel='stylesheet' type='text/css'>
14
- </head>
15
- <body>
16
- <app-root></app-root>
17
- </body>
18
- <script src="assets/bundle.js"></script>
19
- </html>
20
-
21
- <!--
22
- Copyright 2017-2018 Google Inc. All Rights Reserved.
23
- Use of this source code is governed by an MIT-style license that
24
- can be found in the LICENSE file at http://angular.io/license
25
- -->
package/example/main.ts DELETED
@@ -1,37 +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 'core-js/es7/reflect';
26
- import 'zone.js/dist/zone';
27
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
28
-
29
- import { AppModule } from './app/app.module';
30
-
31
- platformBrowserDynamic().bootstrapModule(AppModule);
32
-
33
- /*
34
- Copyright 2017-2018 Google Inc. All Rights Reserved.
35
- Use of this source code is governed by an MIT-style license that
36
- can be found in the LICENSE file at http://angular.io/license
37
- */