@jsonforms/angular 3.0.0-beta.0 → 3.0.0-beta.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.
- package/docs/assets/js/search.json +1 -1
- package/docs/classes/jsonforms.html +34 -20
- package/docs/classes/jsonformsabstractcontrol.html +30 -30
- package/docs/classes/jsonformsangularservice.html +25 -25
- package/docs/classes/jsonformsarraycontrol.html +30 -30
- package/docs/classes/jsonformsbaserenderer.html +4 -4
- package/docs/classes/jsonformscontrol.html +30 -30
- package/docs/classes/jsonformscontrolwithdetail.html +30 -30
- package/docs/classes/jsonformsoutlet.html +14 -14
- package/docs/globals.html +2 -2
- package/lib/cjs/jsonforms-root.component.d.ts +1 -0
- package/lib/cjs/jsonforms-root.component.js +14 -2
- package/lib/cjs/jsonforms-root.component.js.map +1 -1
- package/lib/cjs/jsonforms-root.component.metadata.json +1 -1
- package/lib/esm/jsonforms-root.component.d.ts +1 -0
- package/lib/esm/jsonforms-root.component.js +14 -2
- package/lib/esm/jsonforms-root.component.js.map +1 -1
- package/lib/esm/jsonforms-root.component.metadata.json +1 -1
- package/package.json +6 -6
- package/src/jsonforms-root.component.ts +22 -3
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
<li class="tsd-description">
|
|
140
140
|
<aside class="tsd-sources">
|
|
141
141
|
<ul>
|
|
142
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
142
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L69">packages/angular/src/jsonforms.component.ts:69</a></li>
|
|
143
143
|
</ul>
|
|
144
144
|
</aside>
|
|
145
145
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
<div class="tsd-signature tsd-kind-icon">component<wbr>Factory<wbr>Resolver<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ComponentFactoryResolver</span></div>
|
|
168
168
|
<aside class="tsd-sources">
|
|
169
169
|
<ul>
|
|
170
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
170
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L73">packages/angular/src/jsonforms.component.ts:73</a></li>
|
|
171
171
|
</ul>
|
|
172
172
|
</aside>
|
|
173
173
|
</section>
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
<div class="tsd-signature tsd-kind-icon">jsonforms<wbr>Service<span class="tsd-signature-symbol">:</span> <a href="jsonformsangularservice.html" class="tsd-signature-type">JsonFormsAngularService</a></div>
|
|
178
178
|
<aside class="tsd-sources">
|
|
179
179
|
<ul>
|
|
180
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
180
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L74">packages/angular/src/jsonforms.component.ts:74</a></li>
|
|
181
181
|
</ul>
|
|
182
182
|
</aside>
|
|
183
183
|
</section>
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
<aside class="tsd-sources">
|
|
189
189
|
<p>Inherited from <a href="jsonformsbaserenderer.html">JsonFormsBaseRenderer</a>.<a href="jsonformsbaserenderer.html#path">path</a></p>
|
|
190
190
|
<ul>
|
|
191
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
191
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/base.renderer.ts#L36">packages/angular/src/base.renderer.ts:36</a></li>
|
|
192
192
|
</ul>
|
|
193
193
|
</aside>
|
|
194
194
|
</section>
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
<div class="tsd-signature tsd-kind-icon">previous<wbr>Props<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StatePropsOfJsonFormsRenderer</span></div>
|
|
199
199
|
<aside class="tsd-sources">
|
|
200
200
|
<ul>
|
|
201
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
201
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L69">packages/angular/src/jsonforms.component.ts:69</a></li>
|
|
202
202
|
</ul>
|
|
203
203
|
</aside>
|
|
204
204
|
</section>
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
<aside class="tsd-sources">
|
|
210
210
|
<p>Inherited from <a href="jsonformsbaserenderer.html">JsonFormsBaseRenderer</a>.<a href="jsonformsbaserenderer.html#schema">schema</a></p>
|
|
211
211
|
<ul>
|
|
212
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
212
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/base.renderer.ts#L35">packages/angular/src/base.renderer.ts:35</a></li>
|
|
213
213
|
</ul>
|
|
214
214
|
</aside>
|
|
215
215
|
</section>
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
<div class="tsd-signature tsd-kind-icon">subscription<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Subscription</span></div>
|
|
220
220
|
<aside class="tsd-sources">
|
|
221
221
|
<ul>
|
|
222
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
222
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L68">packages/angular/src/jsonforms.component.ts:68</a></li>
|
|
223
223
|
</ul>
|
|
224
224
|
</aside>
|
|
225
225
|
</section>
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
<aside class="tsd-sources">
|
|
231
231
|
<p>Inherited from <a href="jsonformsbaserenderer.html">JsonFormsBaseRenderer</a>.<a href="jsonformsbaserenderer.html#uischema">uischema</a></p>
|
|
232
232
|
<ul>
|
|
233
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
233
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/base.renderer.ts#L34">packages/angular/src/base.renderer.ts:34</a></li>
|
|
234
234
|
</ul>
|
|
235
235
|
</aside>
|
|
236
236
|
</section>
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
<div class="tsd-signature tsd-kind-icon">view<wbr>Container<wbr>Ref<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ViewContainerRef</span></div>
|
|
241
241
|
<aside class="tsd-sources">
|
|
242
242
|
<ul>
|
|
243
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
243
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L72">packages/angular/src/jsonforms.component.ts:72</a></li>
|
|
244
244
|
</ul>
|
|
245
245
|
</aside>
|
|
246
246
|
</section>
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
<li class="tsd-description">
|
|
258
258
|
<aside class="tsd-sources">
|
|
259
259
|
<ul>
|
|
260
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
260
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L80">packages/angular/src/jsonforms.component.ts:80</a></li>
|
|
261
261
|
</ul>
|
|
262
262
|
</aside>
|
|
263
263
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
<aside class="tsd-sources">
|
|
285
285
|
<p>Inherited from <a href="jsonformsbaserenderer.html">JsonFormsBaseRenderer</a>.<a href="jsonformsbaserenderer.html#getownprops">getOwnProps</a></p>
|
|
286
286
|
<ul>
|
|
287
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
287
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/base.renderer.ts#L38">packages/angular/src/base.renderer.ts:38</a></li>
|
|
288
288
|
</ul>
|
|
289
289
|
</aside>
|
|
290
290
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">OwnPropsOfRenderer</span></h4>
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
<li class="tsd-description">
|
|
302
302
|
<aside class="tsd-sources">
|
|
303
303
|
<ul>
|
|
304
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
304
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L135">packages/angular/src/jsonforms.component.ts:135</a></li>
|
|
305
305
|
</ul>
|
|
306
306
|
</aside>
|
|
307
307
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
<li class="tsd-description">
|
|
319
319
|
<aside class="tsd-sources">
|
|
320
320
|
<ul>
|
|
321
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
321
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L87">packages/angular/src/jsonforms.component.ts:87</a></li>
|
|
322
322
|
</ul>
|
|
323
323
|
</aside>
|
|
324
324
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
<li class="tsd-description">
|
|
336
336
|
<aside class="tsd-sources">
|
|
337
337
|
<ul>
|
|
338
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
338
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L93">packages/angular/src/jsonforms.component.ts:93</a></li>
|
|
339
339
|
</ul>
|
|
340
340
|
</aside>
|
|
341
341
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
package/docs/globals.html
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
<div class="tsd-signature tsd-kind-icon">USE_<wbr>STATE_<wbr>VALUE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unique symbol</span><span class="tsd-signature-symbol"> = Symbol('Marker to use state value')</span></div>
|
|
106
106
|
<aside class="tsd-sources">
|
|
107
107
|
<ul>
|
|
108
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
108
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.service.ts#L54">packages/angular/src/jsonforms.service.ts:54</a></li>
|
|
109
109
|
</ul>
|
|
110
110
|
</aside>
|
|
111
111
|
</section>
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
<li class="tsd-description">
|
|
123
123
|
<aside class="tsd-sources">
|
|
124
124
|
<ul>
|
|
125
|
-
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/
|
|
125
|
+
<li>Defined in <a href="https://github.com/sdirix/jsonforms/blob/ea6fe82c/packages/angular/src/jsonforms.component.ts#L54">packages/angular/src/jsonforms.component.ts:54</a></li>
|
|
126
126
|
</ul>
|
|
127
127
|
</aside>
|
|
128
128
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
@@ -22,6 +22,7 @@ export declare class JsonForms implements OnChanges, OnInit {
|
|
|
22
22
|
private previousData;
|
|
23
23
|
private previousErrors;
|
|
24
24
|
private initialized;
|
|
25
|
+
oldI18N: JsonFormsI18nState;
|
|
25
26
|
constructor(jsonformsService: JsonFormsAngularService);
|
|
26
27
|
ngOnInit(): void;
|
|
27
28
|
ngDoCheck(): void;
|
|
@@ -66,13 +66,25 @@ var JsonForms = /** @class */ (function () {
|
|
|
66
66
|
_this.errors.emit(errors);
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
+
this.oldI18N = this.i18n;
|
|
69
70
|
this.initialized = true;
|
|
70
71
|
};
|
|
71
72
|
JsonForms.prototype.ngDoCheck = function () {
|
|
72
|
-
var _a, _b, _c;
|
|
73
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
73
74
|
// we can't use ngOnChanges as then nested i18n changes will not be detected
|
|
74
75
|
// the update will result in a no-op when the parameters did not change
|
|
75
|
-
|
|
76
|
+
if (((_a = this.oldI18N) === null || _a === void 0 ? void 0 : _a.locale) !== ((_b = this.i18n) === null || _b === void 0 ? void 0 : _b.locale) ||
|
|
77
|
+
((_c = this.oldI18N) === null || _c === void 0 ? void 0 : _c.translate) !== ((_d = this.i18n) === null || _d === void 0 ? void 0 : _d.translate) ||
|
|
78
|
+
((_e = this.oldI18N) === null || _e === void 0 ? void 0 : _e.translateError) !== ((_f = this.i18n) === null || _f === void 0 ? void 0 : _f.translateError)) {
|
|
79
|
+
this.jsonformsService.updateI18n(core_2.Actions.updateI18n(((_g = this.oldI18N) === null || _g === void 0 ? void 0 : _g.locale) === ((_h = this.i18n) === null || _h === void 0 ? void 0 : _h.locale)
|
|
80
|
+
? this.jsonformsService.getState().jsonforms.i18n.locale
|
|
81
|
+
: (_j = this.i18n) === null || _j === void 0 ? void 0 : _j.locale, ((_k = this.oldI18N) === null || _k === void 0 ? void 0 : _k.translate) === ((_l = this.i18n) === null || _l === void 0 ? void 0 : _l.translate)
|
|
82
|
+
? this.jsonformsService.getState().jsonforms.i18n.translate
|
|
83
|
+
: (_m = this.i18n) === null || _m === void 0 ? void 0 : _m.translate, ((_o = this.oldI18N) === null || _o === void 0 ? void 0 : _o.translateError) === ((_p = this.i18n) === null || _p === void 0 ? void 0 : _p.translateError)
|
|
84
|
+
? this.jsonformsService.getState().jsonforms.i18n.translateError
|
|
85
|
+
: (_q = this.i18n) === null || _q === void 0 ? void 0 : _q.translateError));
|
|
86
|
+
this.oldI18N = this.i18n;
|
|
87
|
+
}
|
|
76
88
|
};
|
|
77
89
|
// tslint:disable-next-line: cyclomatic-complexity
|
|
78
90
|
JsonForms.prototype.ngOnChanges = function (changes) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonforms-root.component.js","sourceRoot":"","sources":["../../src/jsonforms-root.component.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,sCAEuB;AACvB,wCAA2J;AAC3J,oDAAuC;AACvC,yDAA+E;AAC/E;
|
|
1
|
+
{"version":3,"file":"jsonforms-root.component.js","sourceRoot":"","sources":["../../src/jsonforms-root.component.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,sCAEuB;AACvB,wCAA2J;AAC3J,oDAAuC;AACvC,yDAA+E;AAC/E;IA0BI,mBAAoB,gBAAyC;QAAzC,qBAAgB,GAAhB,gBAAgB,CAAyB;QAdnD,eAAU,GAAG,IAAI,mBAAY,EAAO,CAAC;QAMrC,WAAM,GAAG,IAAI,mBAAY,EAAiB,CAAC;QAK7C,gBAAW,GAAG,KAAK,CAAC;IAI5B,CAAC;IAED,4BAAQ,GAAR;QAAA,iBA6BC;QA5BG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;YACvB,IAAI,EAAE;gBACF,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,cAAc,EAAE,IAAI,CAAC,cAAc;aACtC;YACD,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SAC1B,CAAC,CAAC;QACH,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,UAAA,KAAK;;YACxC,IAAM,IAAI,GAAG,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS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S,CAAC,aAAa,EAAE,EAAE;YACzC,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,cAAO,CAAC,SAAS,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;SACjF;IACL,CAAC;;gBApIJ,gBAAS,SAAC;oBACP,QAAQ,EAAE,WAAW;oBACrB,QAAQ,EAAE,uCAAuC;oBACjD,SAAS,EAAE,CAAC,2CAAuB,CAAC;iBACvC;;;gBALQ,2CAAuB;;;2BAQ3B,YAAK;yBACL,YAAK;uBACL,YAAK;4BACL,YAAK;4BACL,YAAK;6BACL,aAAM;2BACN,YAAK;iCACL,YAAK;sBACL,YAAK;yBACL,YAAK;uBACL,YAAK;yBACL,aAAM;;IAmHX,gBAAC;CAAA,AArID,IAqIC;AAhIY,8BAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"JsonForms":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"selector":"jsonforms","template":"<jsonforms-outlet></jsonforms-outlet>","providers":[{"__symbolic":"reference","module":"./jsonforms.service","name":"JsonFormsAngularService","line":33,"character":16}]}]}],"members":{"uischema":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":5}}]}],"schema":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":5}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":5}}]}],"renderers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":5}}]}],"uischemas":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":5}}]}],"dataChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":5}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":5}}]}],"validationMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":5}}]}],"ajv":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":5}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":5}}]}],"i18n":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":5}}]}],"errors":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":48,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./jsonforms.service","name":"JsonFormsAngularService","line":
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"JsonForms":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"selector":"jsonforms","template":"<jsonforms-outlet></jsonforms-outlet>","providers":[{"__symbolic":"reference","module":"./jsonforms.service","name":"JsonFormsAngularService","line":33,"character":16}]}]}],"members":{"uischema":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":5}}]}],"schema":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":5}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":5}}]}],"renderers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":5}}]}],"uischemas":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":5}}]}],"dataChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":5}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":5}}]}],"validationMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":5}}]}],"ajv":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":5}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":5}}]}],"i18n":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":5}}]}],"errors":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":48,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./jsonforms.service","name":"JsonFormsAngularService","line":56,"character":42}]}],"ngOnInit":[{"__symbolic":"method"}],"ngDoCheck":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}]
|
|
@@ -22,6 +22,7 @@ export declare class JsonForms implements OnChanges, OnInit {
|
|
|
22
22
|
private previousData;
|
|
23
23
|
private previousErrors;
|
|
24
24
|
private initialized;
|
|
25
|
+
oldI18N: JsonFormsI18nState;
|
|
25
26
|
constructor(jsonformsService: JsonFormsAngularService);
|
|
26
27
|
ngOnInit(): void;
|
|
27
28
|
ngDoCheck(): void;
|
|
@@ -62,13 +62,25 @@ var JsonForms = /** @class */ (function () {
|
|
|
62
62
|
_this.errors.emit(errors);
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
+
this.oldI18N = this.i18n;
|
|
65
66
|
this.initialized = true;
|
|
66
67
|
};
|
|
67
68
|
JsonForms.prototype.ngDoCheck = function () {
|
|
68
|
-
var _a, _b, _c;
|
|
69
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
69
70
|
// we can't use ngOnChanges as then nested i18n changes will not be detected
|
|
70
71
|
// the update will result in a no-op when the parameters did not change
|
|
71
|
-
|
|
72
|
+
if (((_a = this.oldI18N) === null || _a === void 0 ? void 0 : _a.locale) !== ((_b = this.i18n) === null || _b === void 0 ? void 0 : _b.locale) ||
|
|
73
|
+
((_c = this.oldI18N) === null || _c === void 0 ? void 0 : _c.translate) !== ((_d = this.i18n) === null || _d === void 0 ? void 0 : _d.translate) ||
|
|
74
|
+
((_e = this.oldI18N) === null || _e === void 0 ? void 0 : _e.translateError) !== ((_f = this.i18n) === null || _f === void 0 ? void 0 : _f.translateError)) {
|
|
75
|
+
this.jsonformsService.updateI18n(Actions.updateI18n(((_g = this.oldI18N) === null || _g === void 0 ? void 0 : _g.locale) === ((_h = this.i18n) === null || _h === void 0 ? void 0 : _h.locale)
|
|
76
|
+
? this.jsonformsService.getState().jsonforms.i18n.locale
|
|
77
|
+
: (_j = this.i18n) === null || _j === void 0 ? void 0 : _j.locale, ((_k = this.oldI18N) === null || _k === void 0 ? void 0 : _k.translate) === ((_l = this.i18n) === null || _l === void 0 ? void 0 : _l.translate)
|
|
78
|
+
? this.jsonformsService.getState().jsonforms.i18n.translate
|
|
79
|
+
: (_m = this.i18n) === null || _m === void 0 ? void 0 : _m.translate, ((_o = this.oldI18N) === null || _o === void 0 ? void 0 : _o.translateError) === ((_p = this.i18n) === null || _p === void 0 ? void 0 : _p.translateError)
|
|
80
|
+
? this.jsonformsService.getState().jsonforms.i18n.translateError
|
|
81
|
+
: (_q = this.i18n) === null || _q === void 0 ? void 0 : _q.translateError));
|
|
82
|
+
this.oldI18N = this.i18n;
|
|
83
|
+
}
|
|
72
84
|
};
|
|
73
85
|
// tslint:disable-next-line: cyclomatic-complexity
|
|
74
86
|
JsonForms.prototype.ngOnChanges = function (changes) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonforms-root.component.js","sourceRoot":"","sources":["../../src/jsonforms-root.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACH,SAAS,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,EAC5D,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAmH,MAAM,iBAAiB,CAAC;AAC3J,OAAO,GAAoB,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC/E;
|
|
1
|
+
{"version":3,"file":"jsonforms-root.component.js","sourceRoot":"","sources":["../../src/jsonforms-root.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACH,SAAS,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,EAC5D,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAmH,MAAM,iBAAiB,CAAC;AAC3J,OAAO,GAAoB,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC/E;IA0BI,mBAAoB,gBAAyC;QAAzC,qBAAgB,GAAhB,gBAAgB,CAAyB;QAdnD,eAAU,GAAG,IAAI,YAAY,EAAO,CAAC;QAMrC,WAAM,GAAG,IAAI,YAAY,EAAiB,CAAC;QAK7C,gBAAW,GAAG,KAAK,CAAC;IAI5B,CAAC;IAED,4BAAQ,GAAR;QAAA,iBA6BC;QA5BG,IAAI,CA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AAY,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,EAAE;YAC/C,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;SACjE;QAED,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE;YACrC,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAC5B,OAAO,CAAC,UAAU,CAAC,MAAA,OAAO,CAAC,YAAY,0CAAE,MAAM,EAAE,MAAA,OAAO,CAAC,YAAY,0CAAE,SAAS,EAAE,MAAA,OAAO,CAAC,YAAY,0CAAE,cAAc,CAAC,CAC1H,CAAC;SACL;QAED,IAAI,WAAW,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,EAAE;YAC7C,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;SAC/D;QAED,IAAI,SAAS,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,EAAE;YACzC,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;SACjF;IACL,CAAC;;gBApIJ,SAAS,SAAC;oBACP,QAAQ,EAAE,WAAW;oBACrB,QAAQ,EAAE,uCAAuC;oBACjD,SAAS,EAAE,CAAC,uBAAuB,CAAC;iBACvC;;;gBALQ,uBAAuB;;;2BAQ3B,KAAK;yBACL,KAAK;uBACL,KAAK;4BACL,KAAK;4BACL,KAAK;6BACL,MAAM;2BACN,KAAK;iCACL,KAAK;sBACL,KAAK;yBACL,KAAK;uBACL,KAAK;yBACL,MAAM;;IAmHX,gBAAC;CAAA,AArID,IAqIC;SAhIY,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"JsonForms":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"selector":"jsonforms","template":"<jsonforms-outlet></jsonforms-outlet>","providers":[{"__symbolic":"reference","module":"./jsonforms.service","name":"JsonFormsAngularService","line":33,"character":16}]}]}],"members":{"uischema":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":5}}]}],"schema":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":5}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":5}}]}],"renderers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":5}}]}],"uischemas":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":5}}]}],"dataChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":5}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":5}}]}],"validationMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":5}}]}],"ajv":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":5}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":5}}]}],"i18n":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":5}}]}],"errors":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":48,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./jsonforms.service","name":"JsonFormsAngularService","line":
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"JsonForms":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"selector":"jsonforms","template":"<jsonforms-outlet></jsonforms-outlet>","providers":[{"__symbolic":"reference","module":"./jsonforms.service","name":"JsonFormsAngularService","line":33,"character":16}]}]}],"members":{"uischema":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":5}}]}],"schema":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":5}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":5}}]}],"renderers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":5}}]}],"uischemas":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":5}}]}],"dataChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":5}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":5}}]}],"validationMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":5}}]}],"ajv":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":5}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":5}}]}],"i18n":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":5}}]}],"errors":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":48,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./jsonforms.service","name":"JsonFormsAngularService","line":56,"character":42}]}],"ngOnInit":[{"__symbolic":"method"}],"ngDoCheck":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsonforms/angular",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"description": "Angular module of JSON Forms",
|
|
5
5
|
"repository": "https://github.com/eclipsesource/jsonforms",
|
|
6
6
|
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"customization"
|
|
31
31
|
],
|
|
32
32
|
"main": "./lib/cjs/index.js",
|
|
33
|
-
"
|
|
33
|
+
"module": "./lib/esm/index.js",
|
|
34
34
|
"typings": "./lib/esm/index.d.ts",
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "ngc && ngc -p tsconfig.cjs.json",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@angular/core": "^12.0.0",
|
|
65
|
-
"@angular/forms": "^12.0.0",
|
|
64
|
+
"@angular/core": "^12.0.0 || ^13.0.0",
|
|
65
|
+
"@angular/forms": "^12.0.0 || ^13.0.0",
|
|
66
66
|
"@jsonforms/core": "^3.0.0-beta.0",
|
|
67
67
|
"rxjs": "^6.4.0"
|
|
68
68
|
},
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@angular/compiler-cli": "^12.0.0",
|
|
72
72
|
"@angular/core": "^12.0.0",
|
|
73
73
|
"@angular/forms": "^12.0.0",
|
|
74
|
-
"@jsonforms/core": "^3.0.0-beta.
|
|
74
|
+
"@jsonforms/core": "^3.0.0-beta.1",
|
|
75
75
|
"ava": "~2.4.0",
|
|
76
76
|
"copy-webpack-plugin": "^5.0.5",
|
|
77
77
|
"cross-env": "^7.0.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"tslint": "^5.20.1",
|
|
82
82
|
"typedoc": "^0.19.2"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "8c3b6263f360ca192c0a20a343a19c5ffb3a10f7"
|
|
85
85
|
}
|
|
@@ -52,6 +52,7 @@ export class JsonForms implements OnChanges, OnInit {
|
|
|
52
52
|
private previousErrors:ErrorObject[];
|
|
53
53
|
|
|
54
54
|
private initialized = false;
|
|
55
|
+
oldI18N: JsonFormsI18nState;
|
|
55
56
|
|
|
56
57
|
constructor(private jsonformsService: JsonFormsAngularService) {
|
|
57
58
|
}
|
|
@@ -83,15 +84,33 @@ export class JsonForms implements OnChanges, OnInit {
|
|
|
83
84
|
this.errors.emit(errors);
|
|
84
85
|
}
|
|
85
86
|
});
|
|
87
|
+
this.oldI18N = this.i18n;
|
|
86
88
|
this.initialized = true;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
ngDoCheck(): void {
|
|
90
92
|
// we can't use ngOnChanges as then nested i18n changes will not be detected
|
|
91
93
|
// the update will result in a no-op when the parameters did not change
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
if (
|
|
95
|
+
this.oldI18N?.locale !== this.i18n?.locale ||
|
|
96
|
+
this.oldI18N?.translate !== this.i18n?.translate ||
|
|
97
|
+
this.oldI18N?.translateError !== this.i18n?.translateError
|
|
98
|
+
) {
|
|
99
|
+
this.jsonformsService.updateI18n(
|
|
100
|
+
Actions.updateI18n(
|
|
101
|
+
this.oldI18N?.locale === this.i18n?.locale
|
|
102
|
+
? this.jsonformsService.getState().jsonforms.i18n.locale
|
|
103
|
+
: this.i18n?.locale,
|
|
104
|
+
this.oldI18N?.translate === this.i18n?.translate
|
|
105
|
+
? this.jsonformsService.getState().jsonforms.i18n.translate
|
|
106
|
+
: this.i18n?.translate,
|
|
107
|
+
this.oldI18N?.translateError === this.i18n?.translateError
|
|
108
|
+
? this.jsonformsService.getState().jsonforms.i18n.translateError
|
|
109
|
+
: this.i18n?.translateError
|
|
110
|
+
)
|
|
111
|
+
);
|
|
112
|
+
this.oldI18N = this.i18n;
|
|
113
|
+
}
|
|
95
114
|
}
|
|
96
115
|
|
|
97
116
|
// tslint:disable-next-line: cyclomatic-complexity
|