@jsonforms/angular 3.2.0-beta.0 → 3.2.0

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 (103) hide show
  1. package/lib/LICENSE +22 -0
  2. package/lib/README.md +151 -0
  3. package/lib/esm2022/jsonforms-angular.mjs +5 -0
  4. package/lib/esm2022/library/abstract-control.mjs +143 -0
  5. package/lib/esm2022/library/array-control.mjs +33 -0
  6. package/lib/esm2022/library/base.renderer.mjs +50 -0
  7. package/lib/esm2022/library/control.mjs +39 -0
  8. package/lib/esm2022/library/index.mjs +34 -0
  9. package/lib/esm2022/library/jsonforms-root.component.mjs +182 -0
  10. package/lib/esm2022/library/jsonforms.component.mjs +126 -0
  11. package/lib/esm2022/library/jsonforms.module.mjs +42 -0
  12. package/lib/esm2022/library/jsonforms.service.mjs +204 -0
  13. package/lib/esm2022/library/unknown.component.mjs +38 -0
  14. package/lib/esm2022/public_api.mjs +2 -0
  15. package/lib/fesm2022/jsonforms-angular.mjs +857 -0
  16. package/lib/fesm2022/jsonforms-angular.mjs.map +1 -0
  17. package/lib/index.d.ts +6 -0
  18. package/lib/jsonforms-angular.d.ts.map +1 -0
  19. package/lib/{cjs → library}/abstract-control.d.ts +1 -0
  20. package/lib/library/abstract-control.d.ts.map +1 -0
  21. package/lib/{esm → library}/array-control.d.ts +1 -0
  22. package/lib/library/array-control.d.ts.map +1 -0
  23. package/lib/{cjs → library}/base.renderer.d.ts +1 -0
  24. package/lib/library/base.renderer.d.ts.map +1 -0
  25. package/lib/{cjs → library}/control.d.ts +1 -0
  26. package/lib/library/control.d.ts.map +1 -0
  27. package/lib/{cjs → library}/index.d.ts +1 -0
  28. package/lib/library/index.d.ts.map +1 -0
  29. package/lib/{esm → library}/jsonforms-root.component.d.ts +4 -2
  30. package/lib/library/jsonforms-root.component.d.ts.map +1 -0
  31. package/lib/{cjs → library}/jsonforms.component.d.ts +1 -0
  32. package/lib/library/jsonforms.component.d.ts.map +1 -0
  33. package/lib/{cjs → library}/jsonforms.module.d.ts +1 -0
  34. package/lib/library/jsonforms.module.d.ts.map +1 -0
  35. package/lib/{cjs → library}/jsonforms.service.d.ts +5 -2
  36. package/lib/library/jsonforms.service.d.ts.map +1 -0
  37. package/lib/{cjs → library}/unknown.component.d.ts +1 -0
  38. package/lib/library/unknown.component.d.ts.map +1 -0
  39. package/lib/package.json +79 -0
  40. package/lib/public_api.d.ts +2 -0
  41. package/lib/public_api.d.ts.map +1 -0
  42. package/package.json +6 -7
  43. package/src/index.ts +1 -33
  44. package/{lib/esm/index.js → src/library/index.ts} +0 -1
  45. package/src/{jsonforms-root.component.ts → library/jsonforms-root.component.ts} +20 -14
  46. package/src/{jsonforms.service.ts → library/jsonforms.service.ts} +28 -10
  47. package/src/public_api.ts +1 -0
  48. package/lib/cjs/abstract-control.js +0 -138
  49. package/lib/cjs/abstract-control.js.map +0 -1
  50. package/lib/cjs/array-control.d.ts +0 -6
  51. package/lib/cjs/array-control.js +0 -43
  52. package/lib/cjs/array-control.js.map +0 -1
  53. package/lib/cjs/base.renderer.js +0 -55
  54. package/lib/cjs/base.renderer.js.map +0 -1
  55. package/lib/cjs/control.js +0 -55
  56. package/lib/cjs/control.js.map +0 -1
  57. package/lib/cjs/index.js +0 -37
  58. package/lib/cjs/index.js.map +0 -1
  59. package/lib/cjs/jsonforms-root.component.d.ts +0 -34
  60. package/lib/cjs/jsonforms-root.component.js +0 -174
  61. package/lib/cjs/jsonforms-root.component.js.map +0 -1
  62. package/lib/cjs/jsonforms.component.js +0 -136
  63. package/lib/cjs/jsonforms.component.js.map +0 -1
  64. package/lib/cjs/jsonforms.module.js +0 -50
  65. package/lib/cjs/jsonforms.module.js.map +0 -1
  66. package/lib/cjs/jsonforms.service.js +0 -210
  67. package/lib/cjs/jsonforms.service.js.map +0 -1
  68. package/lib/cjs/unknown.component.js +0 -46
  69. package/lib/cjs/unknown.component.js.map +0 -1
  70. package/lib/esm/abstract-control.d.ts +0 -38
  71. package/lib/esm/abstract-control.js +0 -135
  72. package/lib/esm/abstract-control.js.map +0 -1
  73. package/lib/esm/array-control.js +0 -40
  74. package/lib/esm/array-control.js.map +0 -1
  75. package/lib/esm/base.renderer.d.ts +0 -10
  76. package/lib/esm/base.renderer.js +0 -51
  77. package/lib/esm/base.renderer.js.map +0 -1
  78. package/lib/esm/control.d.ts +0 -9
  79. package/lib/esm/control.js +0 -52
  80. package/lib/esm/control.js.map +0 -1
  81. package/lib/esm/index.d.ts +0 -9
  82. package/lib/esm/index.js.map +0 -1
  83. package/lib/esm/jsonforms-root.component.js +0 -170
  84. package/lib/esm/jsonforms-root.component.js.map +0 -1
  85. package/lib/esm/jsonforms.component.d.ts +0 -19
  86. package/lib/esm/jsonforms.component.js +0 -133
  87. package/lib/esm/jsonforms.component.js.map +0 -1
  88. package/lib/esm/jsonforms.module.d.ts +0 -9
  89. package/lib/esm/jsonforms.module.js +0 -46
  90. package/lib/esm/jsonforms.module.js.map +0 -1
  91. package/lib/esm/jsonforms.service.d.ts +0 -50
  92. package/lib/esm/jsonforms.service.js +0 -207
  93. package/lib/esm/jsonforms.service.js.map +0 -1
  94. package/lib/esm/unknown.component.d.ts +0 -5
  95. package/lib/esm/unknown.component.js +0 -42
  96. package/lib/esm/unknown.component.js.map +0 -1
  97. /package/src/{abstract-control.ts → library/abstract-control.ts} +0 -0
  98. /package/src/{array-control.ts → library/array-control.ts} +0 -0
  99. /package/src/{base.renderer.ts → library/base.renderer.ts} +0 -0
  100. /package/src/{control.ts → library/control.ts} +0 -0
  101. /package/src/{jsonforms.component.ts → library/jsonforms.component.ts} +0 -0
  102. /package/src/{jsonforms.module.ts → library/jsonforms.module.ts} +0 -0
  103. /package/src/{unknown.component.ts → library/unknown.component.ts} +0 -0
@@ -0,0 +1,857 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, Input, Component, EventEmitter, Output, NgModule } from '@angular/core';
3
+ import { configReducer, setConfig, i18nReducer, updateI18n, generateJsonSchema, generateDefaultUISchema, Actions, defaultMiddleware, coreReducer, uischemaRegistryReducer, computeLabel, mapStateToControlProps, mapStateToControlWithDetailProps, mapStateToArrayControlProps, mapStateToJsonFormsRendererProps, getConfig, isControl, createId } from '@jsonforms/core';
4
+ import { FormControl } from '@angular/forms';
5
+ import { BehaviorSubject } from 'rxjs';
6
+ import { cloneDeep, get, isEqual } from 'lodash';
7
+ import merge from 'lodash/merge';
8
+ import maxBy from 'lodash/maxBy';
9
+ import 'ajv';
10
+
11
+ /*
12
+ The MIT License
13
+
14
+ Copyright (c) 2017-2019 EclipseSource Munich
15
+ https://github.com/eclipsesource/jsonforms
16
+
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ of this software and associated documentation files (the "Software"), to deal
19
+ in the Software without restriction, including without limitation the rights
20
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ copies of the Software, and to permit persons to whom the Software is
22
+ furnished to do so, subject to the following conditions:
23
+
24
+ The above copyright notice and this permission notice shall be included in
25
+ all copies or substantial portions of the Software.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
33
+ THE SOFTWARE.
34
+ */
35
+ class JsonFormsBaseRenderer {
36
+ uischema;
37
+ schema;
38
+ path;
39
+ getOwnProps() {
40
+ return {
41
+ uischema: this.uischema,
42
+ schema: this.schema,
43
+ path: this.path,
44
+ };
45
+ }
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsBaseRenderer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
47
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: JsonFormsBaseRenderer, inputs: { uischema: "uischema", schema: "schema", path: "path" }, ngImport: i0 });
48
+ }
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsBaseRenderer, decorators: [{
50
+ type: Directive
51
+ }], propDecorators: { uischema: [{
52
+ type: Input
53
+ }], schema: [{
54
+ type: Input
55
+ }], path: [{
56
+ type: Input
57
+ }] } });
58
+
59
+ /*
60
+ The MIT License
61
+
62
+ Copyright (c) 2017-2020 EclipseSource Munich
63
+ https://github.com/eclipsesource/jsonforms
64
+
65
+ Permission is hereby granted, free of charge, to any person obtaining a copy
66
+ of this software and associated documentation files (the "Software"), to deal
67
+ in the Software without restriction, including without limitation the rights
68
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
69
+ copies of the Software, and to permit persons to whom the Software is
70
+ furnished to do so, subject to the following conditions:
71
+
72
+ The above copyright notice and this permission notice shall be included in
73
+ all copies or substantial portions of the Software.
74
+
75
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
77
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
78
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
79
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
80
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
81
+ THE SOFTWARE.
82
+ */
83
+ const USE_STATE_VALUE = Symbol('Marker to use state value');
84
+ class JsonFormsAngularService {
85
+ _state;
86
+ state;
87
+ middleware;
88
+ init(initialState = {
89
+ core: {
90
+ data: undefined,
91
+ schema: undefined,
92
+ uischema: undefined,
93
+ validationMode: 'ValidateAndShow',
94
+ additionalErrors: undefined,
95
+ },
96
+ }, middleware = defaultMiddleware) {
97
+ this.middleware = middleware;
98
+ this._state = initialState;
99
+ this._state.config = configReducer(undefined, setConfig(this._state.config));
100
+ this._state.i18n = i18nReducer(this._state.i18n, updateI18n(this._state.i18n?.locale, this._state.i18n?.translate, this._state.i18n?.translateError));
101
+ this.state = new BehaviorSubject({ jsonforms: this._state });
102
+ const data = initialState.core.data;
103
+ const schema = initialState.core.schema ?? generateJsonSchema(data);
104
+ const uischema = initialState.core.uischema ?? generateDefaultUISchema(schema);
105
+ this.updateCore(Actions.init(data, schema, uischema));
106
+ }
107
+ get $state() {
108
+ if (!this.state) {
109
+ throw new Error('Please call init first!');
110
+ }
111
+ return this.state.asObservable();
112
+ }
113
+ /**
114
+ * @deprecated use {@link JsonFormsAngularService.addRenderer}
115
+ */
116
+ registerRenderer(renderer, tester) {
117
+ this.addRenderer(renderer, tester);
118
+ }
119
+ addRenderer(renderer, tester) {
120
+ this._state.renderers.push({ renderer, tester });
121
+ this.updateSubject();
122
+ }
123
+ /**
124
+ * @deprecated use {@link JsonFormsAngularService.setRenderer}
125
+ */
126
+ registerRenderers(renderers) {
127
+ this.setRenderers(renderers);
128
+ }
129
+ setRenderers(renderers) {
130
+ this._state.renderers = renderers;
131
+ this.updateSubject();
132
+ }
133
+ /**
134
+ * @deprecated use {@link JsonFormsAngularService.removeRenderer}
135
+ */
136
+ unregisterRenderer(tester) {
137
+ this.removeRenderer(tester);
138
+ }
139
+ removeRenderer(tester) {
140
+ const findIndex = this._state.renderers.findIndex((v) => v.tester === tester);
141
+ if (findIndex === -1) {
142
+ return;
143
+ }
144
+ const renderers = this._state.renderers.filter((v) => v.tester !== tester);
145
+ this._state.renderers = renderers;
146
+ this.updateSubject();
147
+ }
148
+ updateValidationMode(validationMode) {
149
+ const coreState = this.middleware(this._state.core, Actions.setValidationMode(validationMode), coreReducer);
150
+ this._state.core = coreState;
151
+ this.updateSubject();
152
+ }
153
+ updateI18n(i18nAction) {
154
+ const i18nState = i18nReducer(this._state.i18n, i18nAction);
155
+ if (i18nState !== this._state.i18n) {
156
+ this._state.i18n = i18nState;
157
+ this.updateSubject();
158
+ }
159
+ return i18nAction;
160
+ }
161
+ updateCore(coreAction) {
162
+ const coreState = this.middleware(this._state.core, coreAction, coreReducer);
163
+ if (coreState !== this._state.core) {
164
+ this._state.core = coreState;
165
+ this.updateSubject();
166
+ }
167
+ return coreAction;
168
+ }
169
+ /**
170
+ * @deprecated use {@link JsonFormsAngularService.setUiSchemas}
171
+ */
172
+ updateUiSchema(uischemaAction) {
173
+ const uischemaState = uischemaRegistryReducer(this._state.uischemas, uischemaAction);
174
+ this._state.uischemas = uischemaState;
175
+ this.updateSubject();
176
+ return uischemaAction;
177
+ }
178
+ setUiSchemas(uischemas) {
179
+ this._state.uischemas = uischemas;
180
+ this.updateSubject();
181
+ }
182
+ updateConfig(setConfigAction) {
183
+ const configState = configReducer(this._state.config, setConfigAction);
184
+ this._state.config = configState;
185
+ this.updateSubject();
186
+ return setConfigAction;
187
+ }
188
+ setUiSchema(uischema) {
189
+ const newUiSchema = uischema ?? generateDefaultUISchema(this._state.core.schema);
190
+ const coreState = this.middleware(this._state.core, Actions.updateCore(this._state.core.data, this._state.core.schema, newUiSchema), coreReducer);
191
+ if (coreState !== this._state.core) {
192
+ this._state.core = coreState;
193
+ this.updateSubject();
194
+ }
195
+ }
196
+ setSchema(schema) {
197
+ const coreState = this.middleware(this._state.core, Actions.updateCore(this._state.core.data, schema ?? generateJsonSchema(this._state.core.data), this._state.core.uischema), coreReducer);
198
+ if (coreState !== this._state.core) {
199
+ this._state.core = coreState;
200
+ this.updateSubject();
201
+ }
202
+ }
203
+ setData(data) {
204
+ const coreState = this.middleware(this._state.core, Actions.updateCore(data, this._state.core.schema, this._state.core.uischema), coreReducer);
205
+ if (coreState !== this._state.core) {
206
+ this._state.core = coreState;
207
+ this.updateSubject();
208
+ }
209
+ }
210
+ getLocale() {
211
+ return this._state.i18n?.locale;
212
+ }
213
+ setLocale(locale) {
214
+ this._state.i18n.locale = locale;
215
+ this.updateSubject();
216
+ }
217
+ setReadonly(readonly) {
218
+ this._state.readonly = readonly;
219
+ this.updateSubject();
220
+ }
221
+ setMiddleware(middleware) {
222
+ this._state.middleware = middleware;
223
+ this.updateSubject();
224
+ }
225
+ getState() {
226
+ return cloneDeep({ jsonforms: this._state });
227
+ }
228
+ getConfig() {
229
+ return cloneDeep(this._state.config);
230
+ }
231
+ refresh() {
232
+ this.updateSubject();
233
+ }
234
+ updateCoreState(data, schema, uischema, ajv, validationMode, additionalErrors) {
235
+ const newData = data === USE_STATE_VALUE ? this._state.core.data : data;
236
+ const newSchema = schema === USE_STATE_VALUE
237
+ ? this._state.core.schema
238
+ : schema ?? generateJsonSchema(newData);
239
+ const newUischema = uischema === USE_STATE_VALUE
240
+ ? this._state.core.uischema
241
+ : uischema ?? generateDefaultUISchema(newSchema);
242
+ const newAjv = ajv === USE_STATE_VALUE ? this._state.core.ajv : ajv;
243
+ const newValidationMode = validationMode === USE_STATE_VALUE
244
+ ? this._state.core.validationMode
245
+ : validationMode;
246
+ const newAdditionalErrors = additionalErrors === USE_STATE_VALUE
247
+ ? this._state.core.additionalErrors
248
+ : additionalErrors;
249
+ this.updateCore(Actions.updateCore(newData, newSchema, newUischema, {
250
+ ajv: newAjv,
251
+ validationMode: newValidationMode,
252
+ additionalErrors: newAdditionalErrors,
253
+ }));
254
+ }
255
+ updateSubject() {
256
+ this.state.next({ jsonforms: this._state });
257
+ }
258
+ }
259
+
260
+ /*
261
+ The MIT License
262
+
263
+ Copyright (c) 2017-2019 EclipseSource Munich
264
+ https://github.com/eclipsesource/jsonforms
265
+
266
+ Permission is hereby granted, free of charge, to any person obtaining a copy
267
+ of this software and associated documentation files (the "Software"), to deal
268
+ in the Software without restriction, including without limitation the rights
269
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
270
+ copies of the Software, and to permit persons to whom the Software is
271
+ furnished to do so, subject to the following conditions:
272
+
273
+ The above copyright notice and this permission notice shall be included in
274
+ all copies or substantial portions of the Software.
275
+
276
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
277
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
278
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
279
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
280
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
281
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
282
+ THE SOFTWARE.
283
+ */
284
+ class JsonFormsAbstractControl extends JsonFormsBaseRenderer {
285
+ jsonFormsService;
286
+ id;
287
+ disabled;
288
+ visible;
289
+ form;
290
+ subscription;
291
+ data;
292
+ label;
293
+ description;
294
+ error;
295
+ scopedSchema;
296
+ rootSchema;
297
+ enabled;
298
+ hidden;
299
+ propsPath;
300
+ constructor(jsonFormsService) {
301
+ super();
302
+ this.jsonFormsService = jsonFormsService;
303
+ this.form = new FormControl({
304
+ value: '',
305
+ disabled: true,
306
+ }, {
307
+ updateOn: 'change',
308
+ validators: this.validator.bind(this),
309
+ });
310
+ }
311
+ getEventValue = (event) => event.value;
312
+ onChange(ev) {
313
+ this.jsonFormsService.updateCore(Actions.update(this.propsPath, () => this.getEventValue(ev)));
314
+ this.triggerValidation();
315
+ }
316
+ shouldShowUnfocusedDescription() {
317
+ const config = this.jsonFormsService.getConfig();
318
+ const appliedUiSchemaOptions = merge({}, config, this.uischema.options);
319
+ return !!appliedUiSchemaOptions.showUnfocusedDescription;
320
+ }
321
+ ngOnInit() {
322
+ this.jsonFormsService.$state.subscribe({
323
+ next: (state) => {
324
+ const props = this.mapToProps(state);
325
+ const { data, enabled, errors, label, required, schema, rootSchema, visible, path, config, } = props;
326
+ this.label = computeLabel(label, required, config ? config.hideRequiredAsterisk : false);
327
+ this.data = data;
328
+ this.error = errors;
329
+ this.enabled = enabled;
330
+ this.isEnabled() ? this.form.enable() : this.form.disable();
331
+ this.hidden = !visible;
332
+ this.scopedSchema = schema;
333
+ this.rootSchema = rootSchema;
334
+ this.description =
335
+ this.scopedSchema !== undefined ? this.scopedSchema.description : '';
336
+ this.id = props.id;
337
+ this.form.setValue(data);
338
+ this.propsPath = path;
339
+ this.mapAdditionalProps(props);
340
+ },
341
+ });
342
+ this.triggerValidation();
343
+ }
344
+ validator = (_c) => {
345
+ return this.error ? { error: this.error } : null;
346
+ };
347
+ mapAdditionalProps(_props) {
348
+ // do nothing by default
349
+ }
350
+ ngOnDestroy() {
351
+ if (this.subscription) {
352
+ this.subscription.unsubscribe();
353
+ }
354
+ }
355
+ isEnabled() {
356
+ return this.enabled;
357
+ }
358
+ getOwnProps() {
359
+ const props = {
360
+ uischema: this.uischema,
361
+ schema: this.schema,
362
+ path: this.path,
363
+ id: this.id,
364
+ };
365
+ if (this.disabled !== undefined) {
366
+ props.enabled = !this.disabled;
367
+ }
368
+ if (this.visible !== undefined) {
369
+ props.visible = this.visible;
370
+ }
371
+ return props;
372
+ }
373
+ triggerValidation() {
374
+ // these cause the correct update of the error underline, seems to be
375
+ // related to ionic-team/ionic#11640
376
+ this.form.markAsTouched();
377
+ this.form.updateValueAndValidity();
378
+ }
379
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsAbstractControl, deps: [{ token: JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
380
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: JsonFormsAbstractControl, selector: "ng-component", inputs: { id: "id", disabled: "disabled", visible: "visible" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
381
+ }
382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsAbstractControl, decorators: [{
383
+ type: Component,
384
+ args: [{
385
+ template: '',
386
+ }]
387
+ }], ctorParameters: function () { return [{ type: JsonFormsAngularService }]; }, propDecorators: { id: [{
388
+ type: Input
389
+ }], disabled: [{
390
+ type: Input
391
+ }], visible: [{
392
+ type: Input
393
+ }] } });
394
+
395
+ /*
396
+ The MIT License
397
+
398
+ Copyright (c) 2017-2019 EclipseSource Munich
399
+ https://github.com/eclipsesource/jsonforms
400
+
401
+ Permission is hereby granted, free of charge, to any person obtaining a copy
402
+ of this software and associated documentation files (the "Software"), to deal
403
+ in the Software without restriction, including without limitation the rights
404
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
405
+ copies of the Software, and to permit persons to whom the Software is
406
+ furnished to do so, subject to the following conditions:
407
+
408
+ The above copyright notice and this permission notice shall be included in
409
+ all copies or substantial portions of the Software.
410
+
411
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
412
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
413
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
414
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
415
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
416
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
417
+ THE SOFTWARE.
418
+ */
419
+ class JsonFormsControl extends JsonFormsAbstractControl {
420
+ mapToProps(state) {
421
+ const props = mapStateToControlProps(state, this.getOwnProps());
422
+ return { ...props };
423
+ }
424
+ }
425
+ class JsonFormsControlWithDetail extends JsonFormsAbstractControl {
426
+ mapToProps(state) {
427
+ const props = mapStateToControlWithDetailProps(state, this.getOwnProps());
428
+ return { ...props };
429
+ }
430
+ }
431
+
432
+ /*
433
+ The MIT License
434
+
435
+ Copyright (c) 2017-2019 EclipseSource Munich
436
+ https://github.com/eclipsesource/jsonforms
437
+
438
+ Permission is hereby granted, free of charge, to any person obtaining a copy
439
+ of this software and associated documentation files (the "Software"), to deal
440
+ in the Software without restriction, including without limitation the rights
441
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
442
+ copies of the Software, and to permit persons to whom the Software is
443
+ furnished to do so, subject to the following conditions:
444
+
445
+ The above copyright notice and this permission notice shall be included in
446
+ all copies or substantial portions of the Software.
447
+
448
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
449
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
450
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
451
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
452
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
453
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
454
+ THE SOFTWARE.
455
+ */
456
+ class JsonFormsArrayControl extends JsonFormsAbstractControl {
457
+ mapToProps(state) {
458
+ const props = mapStateToArrayControlProps(state, this.getOwnProps());
459
+ return { ...props };
460
+ }
461
+ }
462
+
463
+ /*
464
+ The MIT License
465
+
466
+ Copyright (c) 2017-2019 EclipseSource Munich
467
+ https://github.com/eclipsesource/jsonforms
468
+
469
+ Permission is hereby granted, free of charge, to any person obtaining a copy
470
+ of this software and associated documentation files (the "Software"), to deal
471
+ in the Software without restriction, including without limitation the rights
472
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
473
+ copies of the Software, and to permit persons to whom the Software is
474
+ furnished to do so, subject to the following conditions:
475
+
476
+ The above copyright notice and this permission notice shall be included in
477
+ all copies or substantial portions of the Software.
478
+
479
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
480
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
481
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
482
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
483
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
484
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
485
+ THE SOFTWARE.
486
+ */
487
+ class UnknownRenderer {
488
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnknownRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
489
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: UnknownRenderer, selector: "unknown.renderer", ngImport: i0, template: 'No applicable renderer found!', isInline: true });
490
+ }
491
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnknownRenderer, decorators: [{
492
+ type: Component,
493
+ args: [{
494
+ selector: 'unknown.renderer',
495
+ template: 'No applicable renderer found!',
496
+ }]
497
+ }] });
498
+
499
+ /*
500
+ The MIT License
501
+
502
+ Copyright (c) 2017-2019 EclipseSource Munich
503
+ https://github.com/eclipsesource/jsonforms
504
+
505
+ Permission is hereby granted, free of charge, to any person obtaining a copy
506
+ of this software and associated documentation files (the "Software"), to deal
507
+ in the Software without restriction, including without limitation the rights
508
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
509
+ copies of the Software, and to permit persons to whom the Software is
510
+ furnished to do so, subject to the following conditions:
511
+
512
+ The above copyright notice and this permission notice shall be included in
513
+ all copies or substantial portions of the Software.
514
+
515
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
516
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
517
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
518
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
519
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
520
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
521
+ THE SOFTWARE.
522
+ */
523
+ const areEqual = (prevProps, nextProps) => {
524
+ return (get(prevProps, 'renderers.length') === get(nextProps, 'renderers.length') &&
525
+ get(prevProps, 'cells.length') === get(nextProps, 'cells.length') &&
526
+ get(prevProps, 'uischemas.length') === get(nextProps, 'uischemas.length') &&
527
+ get(prevProps, 'schema') === get(nextProps, 'schema') &&
528
+ isEqual(get(prevProps, 'uischema'), get(nextProps, 'uischema')) &&
529
+ get(prevProps, 'path') === get(nextProps, 'path'));
530
+ };
531
+ class JsonFormsOutlet extends JsonFormsBaseRenderer {
532
+ viewContainerRef;
533
+ componentFactoryResolver;
534
+ jsonformsService;
535
+ subscription;
536
+ previousProps;
537
+ constructor(viewContainerRef, componentFactoryResolver, jsonformsService) {
538
+ super();
539
+ this.viewContainerRef = viewContainerRef;
540
+ this.componentFactoryResolver = componentFactoryResolver;
541
+ this.jsonformsService = jsonformsService;
542
+ }
543
+ set renderProps(renderProps) {
544
+ this.path = renderProps.path;
545
+ this.schema = renderProps.schema;
546
+ this.uischema = renderProps.uischema;
547
+ this.update(this.jsonformsService.getState());
548
+ }
549
+ ngOnInit() {
550
+ this.subscription = this.jsonformsService.$state.subscribe({
551
+ next: (state) => this.update(state),
552
+ });
553
+ }
554
+ update(state) {
555
+ const props = mapStateToJsonFormsRendererProps(state, {
556
+ schema: this.schema,
557
+ uischema: this.uischema,
558
+ path: this.path,
559
+ });
560
+ if (areEqual(this.previousProps, props)) {
561
+ return;
562
+ }
563
+ else {
564
+ this.previousProps = props;
565
+ }
566
+ const { renderers } = props;
567
+ const schema = this.schema || props.schema;
568
+ const uischema = this.uischema || props.uischema;
569
+ const testerContext = {
570
+ rootSchema: props.rootSchema,
571
+ config: getConfig(state),
572
+ };
573
+ const renderer = maxBy(renderers, (r) => r.tester(uischema, schema, testerContext));
574
+ let bestComponent = UnknownRenderer;
575
+ if (renderer !== undefined &&
576
+ renderer.tester(uischema, schema, testerContext) !== -1) {
577
+ bestComponent = renderer.renderer;
578
+ }
579
+ const componentFactory = this.componentFactoryResolver.resolveComponentFactory(bestComponent);
580
+ this.viewContainerRef.clear();
581
+ const currentComponentRef = this.viewContainerRef.createComponent(componentFactory);
582
+ if (currentComponentRef.instance instanceof JsonFormsBaseRenderer) {
583
+ const instance = currentComponentRef.instance;
584
+ instance.uischema = uischema;
585
+ instance.schema = schema;
586
+ instance.path = this.path;
587
+ if (instance instanceof JsonFormsControl) {
588
+ const controlInstance = instance;
589
+ if (controlInstance.id === undefined) {
590
+ const id = isControl(props.uischema)
591
+ ? createId(props.uischema.scope)
592
+ : undefined;
593
+ instance.id = id;
594
+ }
595
+ }
596
+ }
597
+ }
598
+ ngOnDestroy() {
599
+ if (this.subscription) {
600
+ this.subscription.unsubscribe();
601
+ }
602
+ }
603
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Directive });
604
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: JsonFormsOutlet, selector: "jsonforms-outlet", inputs: { renderProps: "renderProps" }, usesInheritance: true, ngImport: i0 });
605
+ }
606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsOutlet, decorators: [{
607
+ type: Directive,
608
+ args: [{
609
+ selector: 'jsonforms-outlet',
610
+ }]
611
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: JsonFormsAngularService }]; }, propDecorators: { renderProps: [{
612
+ type: Input
613
+ }] } });
614
+
615
+ /*
616
+ The MIT License
617
+
618
+ Copyright (c) 2017-2020 EclipseSource Munich
619
+ https://github.com/eclipsesource/jsonforms
620
+
621
+ Permission is hereby granted, free of charge, to any person obtaining a copy
622
+ of this software and associated documentation files (the "Software"), to deal
623
+ in the Software without restriction, including without limitation the rights
624
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
625
+ copies of the Software, and to permit persons to whom the Software is
626
+ furnished to do so, subject to the following conditions:
627
+
628
+ The above copyright notice and this permission notice shall be included in
629
+ all copies or substantial portions of the Software.
630
+
631
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
632
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
633
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
634
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
635
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
636
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
637
+ THE SOFTWARE.
638
+ */
639
+ // TODO Can this be rewritten to not use DoCheck and OnChanges?
640
+ /* eslint-disable @angular-eslint/no-conflicting-lifecycle */
641
+ class JsonForms {
642
+ jsonformsService;
643
+ uischema;
644
+ schema;
645
+ data;
646
+ renderers;
647
+ uischemas;
648
+ dataChange = new EventEmitter();
649
+ readonly;
650
+ validationMode;
651
+ ajv;
652
+ config;
653
+ i18n;
654
+ additionalErrors;
655
+ middleware = defaultMiddleware;
656
+ errors = new EventEmitter();
657
+ previousData;
658
+ previousErrors;
659
+ initialized = false;
660
+ oldI18N;
661
+ constructor(jsonformsService) {
662
+ this.jsonformsService = jsonformsService;
663
+ }
664
+ ngOnInit() {
665
+ this.jsonformsService.init({
666
+ core: {
667
+ data: this.data,
668
+ uischema: this.uischema,
669
+ schema: this.schema,
670
+ ajv: this.ajv,
671
+ validationMode: this.validationMode,
672
+ additionalErrors: this.additionalErrors,
673
+ },
674
+ uischemas: this.uischemas,
675
+ i18n: this.i18n,
676
+ renderers: this.renderers,
677
+ config: this.config,
678
+ readonly: this.readonly,
679
+ }, this.middleware);
680
+ this.jsonformsService.$state.subscribe((state) => {
681
+ const data = state?.jsonforms?.core?.data;
682
+ const errors = state?.jsonforms?.core?.errors;
683
+ if (this.previousData !== data) {
684
+ this.previousData = data;
685
+ this.dataChange.emit(data);
686
+ }
687
+ if (this.previousErrors !== errors) {
688
+ this.previousErrors = errors;
689
+ this.errors.emit(errors);
690
+ }
691
+ });
692
+ this.oldI18N = this.i18n;
693
+ this.initialized = true;
694
+ }
695
+ ngDoCheck() {
696
+ // we can't use ngOnChanges as then nested i18n changes will not be detected
697
+ // the update will result in a no-op when the parameters did not change
698
+ if (this.oldI18N?.locale !== this.i18n?.locale ||
699
+ this.oldI18N?.translate !== this.i18n?.translate ||
700
+ this.oldI18N?.translateError !== this.i18n?.translateError) {
701
+ this.jsonformsService.updateI18n(Actions.updateI18n(this.oldI18N?.locale === this.i18n?.locale
702
+ ? this.jsonformsService.getState().jsonforms.i18n.locale
703
+ : this.i18n?.locale, this.oldI18N?.translate === this.i18n?.translate
704
+ ? this.jsonformsService.getState().jsonforms.i18n.translate
705
+ : this.i18n?.translate, this.oldI18N?.translateError === this.i18n?.translateError
706
+ ? this.jsonformsService.getState().jsonforms.i18n.translateError
707
+ : this.i18n?.translateError));
708
+ this.oldI18N = this.i18n;
709
+ }
710
+ }
711
+ ngOnChanges(changes) {
712
+ if (!this.initialized) {
713
+ return;
714
+ }
715
+ const newData = changes.data;
716
+ const newSchema = changes.schema;
717
+ const newUiSchema = changes.uischema;
718
+ const newRenderers = changes.renderers;
719
+ const newUischemas = changes.uischemas;
720
+ const newI18n = changes.i18n;
721
+ const newReadonly = changes.readonly;
722
+ const newValidationMode = changes.validationMode;
723
+ const newAjv = changes.ajv;
724
+ const newConfig = changes.config;
725
+ const newAdditionalErrors = changes.additionalErrors;
726
+ if (newData ||
727
+ newSchema ||
728
+ newUiSchema ||
729
+ newValidationMode ||
730
+ newAjv ||
731
+ newAdditionalErrors) {
732
+ this.jsonformsService.updateCoreState(newData ? newData.currentValue : USE_STATE_VALUE, newSchema ? newSchema.currentValue : USE_STATE_VALUE, newUiSchema ? newUiSchema.currentValue : USE_STATE_VALUE, newAjv ? newAjv.currentValue : USE_STATE_VALUE, newValidationMode ? newValidationMode.currentValue : USE_STATE_VALUE, newAdditionalErrors ? newAdditionalErrors.currentValue : USE_STATE_VALUE);
733
+ }
734
+ if (newRenderers && !newRenderers.isFirstChange()) {
735
+ this.jsonformsService.setRenderers(newRenderers.currentValue);
736
+ }
737
+ if (newUischemas && !newUischemas.isFirstChange()) {
738
+ this.jsonformsService.setUiSchemas(newUischemas.currentValue);
739
+ }
740
+ if (newI18n && !newI18n.isFirstChange()) {
741
+ this.jsonformsService.updateI18n(Actions.updateI18n(newI18n.currentValue?.locale, newI18n.currentValue?.translate, newI18n.currentValue?.translateError));
742
+ }
743
+ if (newReadonly && !newReadonly.isFirstChange()) {
744
+ this.jsonformsService.setReadonly(newReadonly.currentValue);
745
+ }
746
+ if (newConfig && !newConfig.isFirstChange()) {
747
+ this.jsonformsService.updateConfig(Actions.setConfig(newConfig.currentValue));
748
+ }
749
+ }
750
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonForms, deps: [{ token: JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
751
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: JsonForms, selector: "jsonforms", inputs: { uischema: "uischema", schema: "schema", data: "data", renderers: "renderers", uischemas: "uischemas", readonly: "readonly", validationMode: "validationMode", ajv: "ajv", config: "config", i18n: "i18n", additionalErrors: "additionalErrors", middleware: "middleware" }, outputs: { dataChange: "dataChange", errors: "errors" }, providers: [JsonFormsAngularService], usesOnChanges: true, ngImport: i0, template: '<jsonforms-outlet></jsonforms-outlet>', isInline: true, dependencies: [{ kind: "directive", type: JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }] });
752
+ }
753
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonForms, decorators: [{
754
+ type: Component,
755
+ args: [{
756
+ selector: 'jsonforms',
757
+ template: '<jsonforms-outlet></jsonforms-outlet>',
758
+ providers: [JsonFormsAngularService],
759
+ }]
760
+ }], ctorParameters: function () { return [{ type: JsonFormsAngularService }]; }, propDecorators: { uischema: [{
761
+ type: Input
762
+ }], schema: [{
763
+ type: Input
764
+ }], data: [{
765
+ type: Input
766
+ }], renderers: [{
767
+ type: Input
768
+ }], uischemas: [{
769
+ type: Input
770
+ }], dataChange: [{
771
+ type: Output
772
+ }], readonly: [{
773
+ type: Input
774
+ }], validationMode: [{
775
+ type: Input
776
+ }], ajv: [{
777
+ type: Input
778
+ }], config: [{
779
+ type: Input
780
+ }], i18n: [{
781
+ type: Input
782
+ }], additionalErrors: [{
783
+ type: Input
784
+ }], middleware: [{
785
+ type: Input
786
+ }], errors: [{
787
+ type: Output
788
+ }] } });
789
+
790
+ /*
791
+ The MIT License
792
+
793
+ Copyright (c) 2017-2020 EclipseSource Munich
794
+ https://github.com/eclipsesource/jsonforms
795
+
796
+ Permission is hereby granted, free of charge, to any person obtaining a copy
797
+ of this software and associated documentation files (the "Software"), to deal
798
+ in the Software without restriction, including without limitation the rights
799
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
800
+ copies of the Software, and to permit persons to whom the Software is
801
+ furnished to do so, subject to the following conditions:
802
+
803
+ The above copyright notice and this permission notice shall be included in
804
+ all copies or substantial portions of the Software.
805
+
806
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
807
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
808
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
809
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
810
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
811
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
812
+ THE SOFTWARE.
813
+ */
814
+ class JsonFormsModule {
815
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
816
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsModule, declarations: [JsonFormsOutlet, UnknownRenderer, JsonForms], exports: [JsonFormsOutlet, JsonForms] });
817
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsModule });
818
+ }
819
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsModule, decorators: [{
820
+ type: NgModule,
821
+ args: [{
822
+ declarations: [JsonFormsOutlet, UnknownRenderer, JsonForms],
823
+ exports: [JsonFormsOutlet, JsonForms],
824
+ }]
825
+ }] });
826
+
827
+ /*
828
+ The MIT License
829
+
830
+ Copyright (c) 2017-2020 EclipseSource Munich
831
+ https://github.com/eclipsesource/jsonforms
832
+
833
+ Permission is hereby granted, free of charge, to any person obtaining a copy
834
+ of this software and associated documentation files (the "Software"), to deal
835
+ in the Software without restriction, including without limitation the rights
836
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
837
+ copies of the Software, and to permit persons to whom the Software is
838
+ furnished to do so, subject to the following conditions:
839
+
840
+ The above copyright notice and this permission notice shall be included in
841
+ all copies or substantial portions of the Software.
842
+
843
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
844
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
845
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
846
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
847
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
848
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
849
+ THE SOFTWARE.
850
+ */
851
+
852
+ /**
853
+ * Generated bundle index. Do not edit.
854
+ */
855
+
856
+ export { JsonForms, JsonFormsAbstractControl, JsonFormsAngularService, JsonFormsArrayControl, JsonFormsBaseRenderer, JsonFormsControl, JsonFormsControlWithDetail, JsonFormsModule, JsonFormsOutlet, USE_STATE_VALUE, UnknownRenderer };
857
+ //# sourceMappingURL=jsonforms-angular.mjs.map