@jsonforms/angular 3.2.0-beta.0 → 3.2.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/lib/LICENSE +22 -0
- package/lib/README.md +151 -0
- package/lib/esm2022/jsonforms-angular.mjs +5 -0
- package/lib/esm2022/library/abstract-control.mjs +143 -0
- package/lib/esm2022/library/array-control.mjs +33 -0
- package/lib/esm2022/library/base.renderer.mjs +50 -0
- package/lib/esm2022/library/control.mjs +39 -0
- package/lib/esm2022/library/index.mjs +34 -0
- package/lib/esm2022/library/jsonforms-root.component.mjs +182 -0
- package/lib/esm2022/library/jsonforms.component.mjs +126 -0
- package/lib/esm2022/library/jsonforms.module.mjs +42 -0
- package/lib/esm2022/library/jsonforms.service.mjs +204 -0
- package/lib/esm2022/library/unknown.component.mjs +38 -0
- package/lib/esm2022/public_api.mjs +2 -0
- package/lib/fesm2022/jsonforms-angular.mjs +857 -0
- package/lib/fesm2022/jsonforms-angular.mjs.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/jsonforms-angular.d.ts.map +1 -0
- package/lib/{cjs → library}/abstract-control.d.ts +1 -0
- package/lib/library/abstract-control.d.ts.map +1 -0
- package/lib/{esm → library}/array-control.d.ts +1 -0
- package/lib/library/array-control.d.ts.map +1 -0
- package/lib/{cjs → library}/base.renderer.d.ts +1 -0
- package/lib/library/base.renderer.d.ts.map +1 -0
- package/lib/{cjs → library}/control.d.ts +1 -0
- package/lib/library/control.d.ts.map +1 -0
- package/lib/{cjs → library}/index.d.ts +1 -0
- package/lib/library/index.d.ts.map +1 -0
- package/lib/{esm → library}/jsonforms-root.component.d.ts +4 -2
- package/lib/library/jsonforms-root.component.d.ts.map +1 -0
- package/lib/{cjs → library}/jsonforms.component.d.ts +1 -0
- package/lib/library/jsonforms.component.d.ts.map +1 -0
- package/lib/{cjs → library}/jsonforms.module.d.ts +1 -0
- package/lib/library/jsonforms.module.d.ts.map +1 -0
- package/lib/{cjs → library}/jsonforms.service.d.ts +5 -2
- package/lib/library/jsonforms.service.d.ts.map +1 -0
- package/lib/{cjs → library}/unknown.component.d.ts +1 -0
- package/lib/library/unknown.component.d.ts.map +1 -0
- package/lib/package.json +79 -0
- package/lib/public_api.d.ts +2 -0
- package/lib/public_api.d.ts.map +1 -0
- package/package.json +6 -7
- package/src/index.ts +1 -33
- package/{lib/esm/index.js → src/library/index.ts} +0 -1
- package/src/{jsonforms-root.component.ts → library/jsonforms-root.component.ts} +20 -14
- package/src/{jsonforms.service.ts → library/jsonforms.service.ts} +28 -10
- package/src/public_api.ts +1 -0
- package/lib/cjs/abstract-control.js +0 -138
- package/lib/cjs/abstract-control.js.map +0 -1
- package/lib/cjs/array-control.d.ts +0 -6
- package/lib/cjs/array-control.js +0 -43
- package/lib/cjs/array-control.js.map +0 -1
- package/lib/cjs/base.renderer.js +0 -55
- package/lib/cjs/base.renderer.js.map +0 -1
- package/lib/cjs/control.js +0 -55
- package/lib/cjs/control.js.map +0 -1
- package/lib/cjs/index.js +0 -37
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/jsonforms-root.component.d.ts +0 -34
- package/lib/cjs/jsonforms-root.component.js +0 -174
- package/lib/cjs/jsonforms-root.component.js.map +0 -1
- package/lib/cjs/jsonforms.component.js +0 -136
- package/lib/cjs/jsonforms.component.js.map +0 -1
- package/lib/cjs/jsonforms.module.js +0 -50
- package/lib/cjs/jsonforms.module.js.map +0 -1
- package/lib/cjs/jsonforms.service.js +0 -210
- package/lib/cjs/jsonforms.service.js.map +0 -1
- package/lib/cjs/unknown.component.js +0 -46
- package/lib/cjs/unknown.component.js.map +0 -1
- package/lib/esm/abstract-control.d.ts +0 -38
- package/lib/esm/abstract-control.js +0 -135
- package/lib/esm/abstract-control.js.map +0 -1
- package/lib/esm/array-control.js +0 -40
- package/lib/esm/array-control.js.map +0 -1
- package/lib/esm/base.renderer.d.ts +0 -10
- package/lib/esm/base.renderer.js +0 -51
- package/lib/esm/base.renderer.js.map +0 -1
- package/lib/esm/control.d.ts +0 -9
- package/lib/esm/control.js +0 -52
- package/lib/esm/control.js.map +0 -1
- package/lib/esm/index.d.ts +0 -9
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/jsonforms-root.component.js +0 -170
- package/lib/esm/jsonforms-root.component.js.map +0 -1
- package/lib/esm/jsonforms.component.d.ts +0 -19
- package/lib/esm/jsonforms.component.js +0 -133
- package/lib/esm/jsonforms.component.js.map +0 -1
- package/lib/esm/jsonforms.module.d.ts +0 -9
- package/lib/esm/jsonforms.module.js +0 -46
- package/lib/esm/jsonforms.module.js.map +0 -1
- package/lib/esm/jsonforms.service.d.ts +0 -50
- package/lib/esm/jsonforms.service.js +0 -207
- package/lib/esm/jsonforms.service.js.map +0 -1
- package/lib/esm/unknown.component.d.ts +0 -5
- package/lib/esm/unknown.component.js +0 -42
- package/lib/esm/unknown.component.js.map +0 -1
- /package/src/{abstract-control.ts → library/abstract-control.ts} +0 -0
- /package/src/{array-control.ts → library/array-control.ts} +0 -0
- /package/src/{base.renderer.ts → library/base.renderer.ts} +0 -0
- /package/src/{control.ts → library/control.ts} +0 -0
- /package/src/{jsonforms.component.ts → library/jsonforms.component.ts} +0 -0
- /package/src/{jsonforms.module.ts → library/jsonforms.module.ts} +0 -0
- /package/src/{unknown.component.ts → library/unknown.component.ts} +0 -0
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnknownRenderer = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
/*
|
|
6
|
-
The MIT License
|
|
7
|
-
|
|
8
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
9
|
-
https://github.com/eclipsesource/jsonforms
|
|
10
|
-
|
|
11
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions:
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in
|
|
19
|
-
all copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
27
|
-
THE SOFTWARE.
|
|
28
|
-
*/
|
|
29
|
-
var core_1 = require("@angular/core");
|
|
30
|
-
var i0 = tslib_1.__importStar(require("@angular/core"));
|
|
31
|
-
var UnknownRenderer = /** @class */ (function () {
|
|
32
|
-
function UnknownRenderer() {
|
|
33
|
-
}
|
|
34
|
-
UnknownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnknownRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
UnknownRenderer.ɵ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 });
|
|
36
|
-
return UnknownRenderer;
|
|
37
|
-
}());
|
|
38
|
-
exports.UnknownRenderer = UnknownRenderer;
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnknownRenderer, decorators: [{
|
|
40
|
-
type: core_1.Component,
|
|
41
|
-
args: [{
|
|
42
|
-
selector: 'unknown.renderer',
|
|
43
|
-
template: 'No applicable renderer found!',
|
|
44
|
-
}]
|
|
45
|
-
}] });
|
|
46
|
-
//# sourceMappingURL=unknown.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unknown.component.js","sourceRoot":"","sources":["../../src/unknown.component.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,sCAA0C;;AAC1C;IAAA;KAI+B;iHAAlB,eAAe;qGAAf,eAAe,wDAFhB,+BAA+B;0BA3B3C;CA6B+B,AAJ/B,IAI+B;AAAlB,0CAAe;4FAAf,eAAe;kBAJ3B,gBAAS;mBAAC;oBACT,QAAQ,EAAE,kBAAkB;oBAC5B,QAAQ,EAAE,+BAA+B;iBAC1C"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ControlElement, JsonFormsState, JsonSchema, OwnPropsOfControl, StatePropsOfControl } from '@jsonforms/core';
|
|
2
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
-
import { FormControl, ValidatorFn } from '@angular/forms';
|
|
4
|
-
import type { Subscription } from 'rxjs';
|
|
5
|
-
import { JsonFormsBaseRenderer } from './base.renderer';
|
|
6
|
-
import { JsonFormsAngularService } from './jsonforms.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare abstract class JsonFormsAbstractControl<Props extends StatePropsOfControl> extends JsonFormsBaseRenderer<ControlElement> implements OnInit, OnDestroy {
|
|
9
|
-
protected jsonFormsService: JsonFormsAngularService;
|
|
10
|
-
id: string;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
visible: boolean;
|
|
13
|
-
form: FormControl;
|
|
14
|
-
subscription: Subscription;
|
|
15
|
-
data: any;
|
|
16
|
-
label: string;
|
|
17
|
-
description: string;
|
|
18
|
-
error: string | null;
|
|
19
|
-
scopedSchema: JsonSchema;
|
|
20
|
-
rootSchema: JsonSchema;
|
|
21
|
-
enabled: boolean;
|
|
22
|
-
hidden: boolean;
|
|
23
|
-
propsPath: string;
|
|
24
|
-
constructor(jsonFormsService: JsonFormsAngularService);
|
|
25
|
-
getEventValue: (event: any) => any;
|
|
26
|
-
onChange(ev: any): void;
|
|
27
|
-
shouldShowUnfocusedDescription(): boolean;
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
validator: ValidatorFn;
|
|
30
|
-
mapAdditionalProps(_props: Props): void;
|
|
31
|
-
ngOnDestroy(): void;
|
|
32
|
-
isEnabled(): boolean;
|
|
33
|
-
protected getOwnProps(): OwnPropsOfControl;
|
|
34
|
-
protected abstract mapToProps(state: JsonFormsState): Props;
|
|
35
|
-
protected triggerValidation(): void;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JsonFormsAbstractControl<any>, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<JsonFormsAbstractControl<any>, "ng-component", never, { "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, {}, never, never, false, never>;
|
|
38
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
import { Actions, computeLabel, } from '@jsonforms/core';
|
|
27
|
-
import { Component, Input } from '@angular/core';
|
|
28
|
-
import { FormControl, } from '@angular/forms';
|
|
29
|
-
import { JsonFormsBaseRenderer } from './base.renderer';
|
|
30
|
-
import { JsonFormsAngularService } from './jsonforms.service';
|
|
31
|
-
import merge from 'lodash/merge';
|
|
32
|
-
import * as i0 from "@angular/core";
|
|
33
|
-
import * as i1 from "./jsonforms.service";
|
|
34
|
-
var JsonFormsAbstractControl = /** @class */ (function (_super) {
|
|
35
|
-
__extends(JsonFormsAbstractControl, _super);
|
|
36
|
-
function JsonFormsAbstractControl(jsonFormsService) {
|
|
37
|
-
var _this = _super.call(this) || this;
|
|
38
|
-
_this.jsonFormsService = jsonFormsService;
|
|
39
|
-
_this.getEventValue = function (event) { return event.value; };
|
|
40
|
-
_this.validator = function (_c) {
|
|
41
|
-
return _this.error ? { error: _this.error } : null;
|
|
42
|
-
};
|
|
43
|
-
_this.form = new FormControl({
|
|
44
|
-
value: '',
|
|
45
|
-
disabled: true,
|
|
46
|
-
}, {
|
|
47
|
-
updateOn: 'change',
|
|
48
|
-
validators: _this.validator.bind(_this),
|
|
49
|
-
});
|
|
50
|
-
return _this;
|
|
51
|
-
}
|
|
52
|
-
JsonFormsAbstractControl.prototype.onChange = function (ev) {
|
|
53
|
-
var _this = this;
|
|
54
|
-
this.jsonFormsService.updateCore(Actions.update(this.propsPath, function () { return _this.getEventValue(ev); }));
|
|
55
|
-
this.triggerValidation();
|
|
56
|
-
};
|
|
57
|
-
JsonFormsAbstractControl.prototype.shouldShowUnfocusedDescription = function () {
|
|
58
|
-
var config = this.jsonFormsService.getConfig();
|
|
59
|
-
var appliedUiSchemaOptions = merge({}, config, this.uischema.options);
|
|
60
|
-
return !!appliedUiSchemaOptions.showUnfocusedDescription;
|
|
61
|
-
};
|
|
62
|
-
JsonFormsAbstractControl.prototype.ngOnInit = function () {
|
|
63
|
-
var _this = this;
|
|
64
|
-
this.jsonFormsService.$state.subscribe({
|
|
65
|
-
next: function (state) {
|
|
66
|
-
var props = _this.mapToProps(state);
|
|
67
|
-
var data = props.data, enabled = props.enabled, errors = props.errors, label = props.label, required = props.required, schema = props.schema, rootSchema = props.rootSchema, visible = props.visible, path = props.path, config = props.config;
|
|
68
|
-
_this.label = computeLabel(label, required, config ? config.hideRequiredAsterisk : false);
|
|
69
|
-
_this.data = data;
|
|
70
|
-
_this.error = errors;
|
|
71
|
-
_this.enabled = enabled;
|
|
72
|
-
_this.isEnabled() ? _this.form.enable() : _this.form.disable();
|
|
73
|
-
_this.hidden = !visible;
|
|
74
|
-
_this.scopedSchema = schema;
|
|
75
|
-
_this.rootSchema = rootSchema;
|
|
76
|
-
_this.description =
|
|
77
|
-
_this.scopedSchema !== undefined ? _this.scopedSchema.description : '';
|
|
78
|
-
_this.id = props.id;
|
|
79
|
-
_this.form.setValue(data);
|
|
80
|
-
_this.propsPath = path;
|
|
81
|
-
_this.mapAdditionalProps(props);
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
this.triggerValidation();
|
|
85
|
-
};
|
|
86
|
-
JsonFormsAbstractControl.prototype.mapAdditionalProps = function (_props) {
|
|
87
|
-
// do nothing by default
|
|
88
|
-
};
|
|
89
|
-
JsonFormsAbstractControl.prototype.ngOnDestroy = function () {
|
|
90
|
-
if (this.subscription) {
|
|
91
|
-
this.subscription.unsubscribe();
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
JsonFormsAbstractControl.prototype.isEnabled = function () {
|
|
95
|
-
return this.enabled;
|
|
96
|
-
};
|
|
97
|
-
JsonFormsAbstractControl.prototype.getOwnProps = function () {
|
|
98
|
-
var props = {
|
|
99
|
-
uischema: this.uischema,
|
|
100
|
-
schema: this.schema,
|
|
101
|
-
path: this.path,
|
|
102
|
-
id: this.id,
|
|
103
|
-
};
|
|
104
|
-
if (this.disabled !== undefined) {
|
|
105
|
-
props.enabled = !this.disabled;
|
|
106
|
-
}
|
|
107
|
-
if (this.visible !== undefined) {
|
|
108
|
-
props.visible = this.visible;
|
|
109
|
-
}
|
|
110
|
-
return props;
|
|
111
|
-
};
|
|
112
|
-
JsonFormsAbstractControl.prototype.triggerValidation = function () {
|
|
113
|
-
// these cause the correct update of the error underline, seems to be
|
|
114
|
-
// related to ionic-team/ionic#11640
|
|
115
|
-
this.form.markAsTouched();
|
|
116
|
-
this.form.updateValueAndValidity();
|
|
117
|
-
};
|
|
118
|
-
JsonFormsAbstractControl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsAbstractControl, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
119
|
-
JsonFormsAbstractControl.ɵ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 });
|
|
120
|
-
return JsonFormsAbstractControl;
|
|
121
|
-
}(JsonFormsBaseRenderer));
|
|
122
|
-
export { JsonFormsAbstractControl };
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsAbstractControl, decorators: [{
|
|
124
|
-
type: Component,
|
|
125
|
-
args: [{
|
|
126
|
-
template: '',
|
|
127
|
-
}]
|
|
128
|
-
}], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }]; }, propDecorators: { id: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], disabled: [{
|
|
131
|
-
type: Input
|
|
132
|
-
}], visible: [{
|
|
133
|
-
type: Input
|
|
134
|
-
}] } });
|
|
135
|
-
//# sourceMappingURL=abstract-control.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-control.js","sourceRoot":"","sources":["../../src/abstract-control.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,OAAO,EACP,YAAY,GAMb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAqB,MAAM,eAAe,CAAC;AACpE,OAAO,EAEL,WAAW,GAGZ,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,MAAM,cAAc,CAAC;;;AACjC;IAMU,4CAAqC;IAmB7C,kCAAsB,gBAAyC;QAA/D,YACE,iBAAO,SAWR;QAZqB,sBAAgB,GAAhB,gBAAgB,CAAyB;QAc/D,mBAAa,GAAG,UAAC,KAAU,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,CAAC;QAsD5C,eAAS,GAAgB,UAAC,EAAmB;YAC3C,OAAO,KAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QACnD,CAAC,CAAC;QApE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AO,CAAC;IACtB,CAAC;IAES,8CAAW,GAArB;QACE,IAAM,KAAK,GAAsB;YAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,EAAE,EAAE,IAAI,CAAC,EAAE;SACZ,CAAC;QACF,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC/B,KAAK,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;SAChC;QACD,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE;YAC9B,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;SAC9B;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAIS,oDAAiB,GAA3B;QACE,qEAAqE;QACrE,oCAAoC;QACpC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC;IACrC,CAAC;0HAnImB,wBAAwB;8GAAxB,wBAAwB,2IAFlC,EAAE;mCA9Cd;CAoLC,AAvID,CAMU,qBAAqB,GAiI9B;SApIqB,wBAAwB;4FAAxB,wBAAwB;kBAH7C,SAAS;mBAAC;oBACT,QAAQ,EAAE,EAAE;iBACb;8GAOU,EAAE;sBAAV,KAAK;gBACG,QAAQ;sBAAhB,KAAK;gBACG,OAAO;sBAAf,KAAK"}
|
package/lib/esm/array-control.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
import { mapStateToArrayControlProps, } from '@jsonforms/core';
|
|
27
|
-
import { JsonFormsAbstractControl } from './abstract-control';
|
|
28
|
-
var JsonFormsArrayControl = /** @class */ (function (_super) {
|
|
29
|
-
__extends(JsonFormsArrayControl, _super);
|
|
30
|
-
function JsonFormsArrayControl() {
|
|
31
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
32
|
-
}
|
|
33
|
-
JsonFormsArrayControl.prototype.mapToProps = function (state) {
|
|
34
|
-
var props = mapStateToArrayControlProps(state, this.getOwnProps());
|
|
35
|
-
return __assign({}, props);
|
|
36
|
-
};
|
|
37
|
-
return JsonFormsArrayControl;
|
|
38
|
-
}(JsonFormsAbstractControl));
|
|
39
|
-
export { JsonFormsArrayControl };
|
|
40
|
-
//# sourceMappingURL=array-control.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array-control.js","sourceRoot":"","sources":["../../src/array-control.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EAEL,2BAA2B,GAE5B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D;IACU,yCAAkD;IAD5D;;IAQA,CAAC;IAJW,0CAAU,GAApB,UAAqB,KAAqB;QACxC,IAAM,KAAK,GAAG,2BAA2B,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QACrE,oBAAY,KAAK,EAAG;IACtB,CAAC;IACH,4BAAC;AAAD,CAAC,AARD,CACU,wBAAwB,GAOjC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { JsonSchema, OwnPropsOfRenderer, UISchemaElement } from '@jsonforms/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class JsonFormsBaseRenderer<T extends UISchemaElement> {
|
|
4
|
-
uischema: T;
|
|
5
|
-
schema: JsonSchema;
|
|
6
|
-
path: string;
|
|
7
|
-
protected getOwnProps(): OwnPropsOfRenderer;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JsonFormsBaseRenderer<any>, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<JsonFormsBaseRenderer<any>, never, never, { "uischema": { "alias": "uischema"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; "path": { "alias": "path"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
|
-
}
|
package/lib/esm/base.renderer.js
DELETED
|
@@ -1,51 +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 { Directive, Input } from '@angular/core';
|
|
26
|
-
import * as i0 from "@angular/core";
|
|
27
|
-
var JsonFormsBaseRenderer = /** @class */ (function () {
|
|
28
|
-
function JsonFormsBaseRenderer() {
|
|
29
|
-
}
|
|
30
|
-
JsonFormsBaseRenderer.prototype.getOwnProps = function () {
|
|
31
|
-
return {
|
|
32
|
-
uischema: this.uischema,
|
|
33
|
-
schema: this.schema,
|
|
34
|
-
path: this.path,
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
JsonFormsBaseRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsBaseRenderer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
38
|
-
JsonFormsBaseRenderer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: JsonFormsBaseRenderer, inputs: { uischema: "uischema", schema: "schema", path: "path" }, ngImport: i0 });
|
|
39
|
-
return JsonFormsBaseRenderer;
|
|
40
|
-
}());
|
|
41
|
-
export { JsonFormsBaseRenderer };
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsBaseRenderer, decorators: [{
|
|
43
|
-
type: Directive
|
|
44
|
-
}], propDecorators: { uischema: [{
|
|
45
|
-
type: Input
|
|
46
|
-
}], schema: [{
|
|
47
|
-
type: Input
|
|
48
|
-
}], path: [{
|
|
49
|
-
type: Input
|
|
50
|
-
}] } });
|
|
51
|
-
//# sourceMappingURL=base.renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.renderer.js","sourceRoot":"","sources":["../../src/base.renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;AAOjD;IAAA;KAaC;IAPW,2CAAW,GAArB;QACE,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;IACJ,CAAC;uHAXU,qBAAqB;2GAArB,qBAAqB;gCAhClC;CA4CC,AAbD,IAaC;SAZY,qBAAqB;4FAArB,qBAAqB;kBADjC,SAAS;8BAEC,QAAQ;sBAAhB,KAAK;gBACG,MAAM;sBAAd,KAAK;gBACG,IAAI;sBAAZ,KAAK"}
|
package/lib/esm/control.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { JsonFormsState, StatePropsOfControl, StatePropsOfControlWithDetail } from '@jsonforms/core';
|
|
2
|
-
import type { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
-
import { JsonFormsAbstractControl } from './abstract-control';
|
|
4
|
-
export declare class JsonFormsControl extends JsonFormsAbstractControl<StatePropsOfControl> implements OnInit, OnDestroy {
|
|
5
|
-
protected mapToProps(state: JsonFormsState): StatePropsOfControl;
|
|
6
|
-
}
|
|
7
|
-
export declare class JsonFormsControlWithDetail extends JsonFormsAbstractControl<StatePropsOfControlWithDetail> implements OnInit, OnDestroy {
|
|
8
|
-
protected mapToProps(state: JsonFormsState): StatePropsOfControlWithDetail;
|
|
9
|
-
}
|
package/lib/esm/control.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
import { mapStateToControlProps, mapStateToControlWithDetailProps, } from '@jsonforms/core';
|
|
27
|
-
import { JsonFormsAbstractControl } from './abstract-control';
|
|
28
|
-
var JsonFormsControl = /** @class */ (function (_super) {
|
|
29
|
-
__extends(JsonFormsControl, _super);
|
|
30
|
-
function JsonFormsControl() {
|
|
31
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
32
|
-
}
|
|
33
|
-
JsonFormsControl.prototype.mapToProps = function (state) {
|
|
34
|
-
var props = mapStateToControlProps(state, this.getOwnProps());
|
|
35
|
-
return __assign({}, props);
|
|
36
|
-
};
|
|
37
|
-
return JsonFormsControl;
|
|
38
|
-
}(JsonFormsAbstractControl));
|
|
39
|
-
export { JsonFormsControl };
|
|
40
|
-
var JsonFormsControlWithDetail = /** @class */ (function (_super) {
|
|
41
|
-
__extends(JsonFormsControlWithDetail, _super);
|
|
42
|
-
function JsonFormsControlWithDetail() {
|
|
43
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
44
|
-
}
|
|
45
|
-
JsonFormsControlWithDetail.prototype.mapToProps = function (state) {
|
|
46
|
-
var props = mapStateToControlWithDetailProps(state, this.getOwnProps());
|
|
47
|
-
return __assign({}, props);
|
|
48
|
-
};
|
|
49
|
-
return JsonFormsControlWithDetail;
|
|
50
|
-
}(JsonFormsAbstractControl));
|
|
51
|
-
export { JsonFormsControlWithDetail };
|
|
52
|
-
//# sourceMappingURL=control.js.map
|
package/lib/esm/control.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../src/control.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EAEL,sBAAsB,EACtB,gCAAgC,GAGjC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D;IACU,oCAA6C;IADvD;;IAQA,CAAC;IAJW,qCAAU,GAApB,UAAqB,KAAqB;QACxC,IAAM,KAAK,GAAG,sBAAsB,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAChE,oBAAY,KAAK,EAAG;IACtB,CAAC;IACH,uBAAC;AAAD,CAAC,AARD,CACU,wBAAwB,GAOjC;;AAED;IACU,8CAAuD;IADjE;;IAQA,CAAC;IAJW,+CAAU,GAApB,UAAqB,KAAqB;QACxC,IAAM,KAAK,GAAG,gCAAgC,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAC1E,oBAAY,KAAK,EAAG;IACtB,CAAC;IACH,iCAAC;AAAD,CAAC,AARD,CACU,wBAAwB,GAOjC"}
|
package/lib/esm/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './base.renderer';
|
|
2
|
-
export * from './control';
|
|
3
|
-
export * from './array-control';
|
|
4
|
-
export * from './jsonforms.component';
|
|
5
|
-
export * from './jsonforms.module';
|
|
6
|
-
export * from './unknown.component';
|
|
7
|
-
export * from './jsonforms.service';
|
|
8
|
-
export * from './jsonforms-root.component';
|
|
9
|
-
export * from './abstract-control';
|
package/lib/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,170 +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, EventEmitter, Input, Output, } from '@angular/core';
|
|
26
|
-
import { Actions, } from '@jsonforms/core';
|
|
27
|
-
import Ajv from 'ajv';
|
|
28
|
-
import { JsonFormsAngularService, USE_STATE_VALUE } from './jsonforms.service';
|
|
29
|
-
import * as i0 from "@angular/core";
|
|
30
|
-
import * as i1 from "./jsonforms.service";
|
|
31
|
-
import * as i2 from "./jsonforms.component";
|
|
32
|
-
// TODO Can this be rewritten to not use DoCheck and OnChanges?
|
|
33
|
-
/* eslint-disable @angular-eslint/no-conflicting-lifecycle */
|
|
34
|
-
var JsonForms = /** @class */ (function () {
|
|
35
|
-
function JsonForms(jsonformsService) {
|
|
36
|
-
this.jsonformsService = jsonformsService;
|
|
37
|
-
this.dataChange = new EventEmitter();
|
|
38
|
-
this.errors = new EventEmitter();
|
|
39
|
-
this.initialized = false;
|
|
40
|
-
}
|
|
41
|
-
JsonForms.prototype.ngOnInit = function () {
|
|
42
|
-
var _this = this;
|
|
43
|
-
this.jsonformsService.init({
|
|
44
|
-
core: {
|
|
45
|
-
data: this.data,
|
|
46
|
-
uischema: this.uischema,
|
|
47
|
-
schema: this.schema,
|
|
48
|
-
ajv: this.ajv,
|
|
49
|
-
validationMode: this.validationMode,
|
|
50
|
-
additionalErrors: this.additionalErrors,
|
|
51
|
-
},
|
|
52
|
-
uischemas: this.uischemas,
|
|
53
|
-
i18n: this.i18n,
|
|
54
|
-
renderers: this.renderers,
|
|
55
|
-
config: this.config,
|
|
56
|
-
readonly: this.readonly,
|
|
57
|
-
});
|
|
58
|
-
this.jsonformsService.$state.subscribe(function (state) {
|
|
59
|
-
var _a, _b, _c, _d;
|
|
60
|
-
var data = (_b = (_a = state === null || state === void 0 ? void 0 : state.jsonforms) === null || _a === void 0 ? void 0 : _a.core) === null || _b === void 0 ? void 0 : _b.data;
|
|
61
|
-
var errors = (_d = (_c = state === null || state === void 0 ? void 0 : state.jsonforms) === null || _c === void 0 ? void 0 : _c.core) === null || _d === void 0 ? void 0 : _d.errors;
|
|
62
|
-
if (_this.previousData !== data) {
|
|
63
|
-
_this.previousData = data;
|
|
64
|
-
_this.dataChange.emit(data);
|
|
65
|
-
}
|
|
66
|
-
if (_this.previousErrors !== errors) {
|
|
67
|
-
_this.previousErrors = errors;
|
|
68
|
-
_this.errors.emit(errors);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
this.oldI18N = this.i18n;
|
|
72
|
-
this.initialized = true;
|
|
73
|
-
};
|
|
74
|
-
JsonForms.prototype.ngDoCheck = function () {
|
|
75
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
76
|
-
// we can't use ngOnChanges as then nested i18n changes will not be detected
|
|
77
|
-
// the update will result in a no-op when the parameters did not change
|
|
78
|
-
if (((_a = this.oldI18N) === null || _a === void 0 ? void 0 : _a.locale) !== ((_b = this.i18n) === null || _b === void 0 ? void 0 : _b.locale) ||
|
|
79
|
-
((_c = this.oldI18N) === null || _c === void 0 ? void 0 : _c.translate) !== ((_d = this.i18n) === null || _d === void 0 ? void 0 : _d.translate) ||
|
|
80
|
-
((_e = this.oldI18N) === null || _e === void 0 ? void 0 : _e.translateError) !== ((_f = this.i18n) === null || _f === void 0 ? void 0 : _f.translateError)) {
|
|
81
|
-
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)
|
|
82
|
-
? this.jsonformsService.getState().jsonforms.i18n.locale
|
|
83
|
-
: (_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)
|
|
84
|
-
? this.jsonformsService.getState().jsonforms.i18n.translate
|
|
85
|
-
: (_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)
|
|
86
|
-
? this.jsonformsService.getState().jsonforms.i18n.translateError
|
|
87
|
-
: (_q = this.i18n) === null || _q === void 0 ? void 0 : _q.translateError));
|
|
88
|
-
this.oldI18N = this.i18n;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
JsonForms.prototype.ngOnChanges = function (changes) {
|
|
92
|
-
var _a, _b, _c;
|
|
93
|
-
if (!this.initialized) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
var newData = changes.data;
|
|
97
|
-
var newSchema = changes.schema;
|
|
98
|
-
var newUiSchema = changes.uischema;
|
|
99
|
-
var newRenderers = changes.renderers;
|
|
100
|
-
var newUischemas = changes.uischemas;
|
|
101
|
-
var newI18n = changes.i18n;
|
|
102
|
-
var newReadonly = changes.readonly;
|
|
103
|
-
var newValidationMode = changes.validationMode;
|
|
104
|
-
var newAjv = changes.ajv;
|
|
105
|
-
var newConfig = changes.config;
|
|
106
|
-
var newAdditionalErrors = changes.additionalErrors;
|
|
107
|
-
if (newData ||
|
|
108
|
-
newSchema ||
|
|
109
|
-
newUiSchema ||
|
|
110
|
-
newValidationMode ||
|
|
111
|
-
newAjv ||
|
|
112
|
-
newAdditionalErrors) {
|
|
113
|
-
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);
|
|
114
|
-
}
|
|
115
|
-
if (newRenderers && !newRenderers.isFirstChange()) {
|
|
116
|
-
this.jsonformsService.setRenderers(newRenderers.currentValue);
|
|
117
|
-
}
|
|
118
|
-
if (newUischemas && !newUischemas.isFirstChange()) {
|
|
119
|
-
this.jsonformsService.setUiSchemas(newUischemas.currentValue);
|
|
120
|
-
}
|
|
121
|
-
if (newI18n && !newI18n.isFirstChange()) {
|
|
122
|
-
this.jsonformsService.updateI18n(Actions.updateI18n((_a = newI18n.currentValue) === null || _a === void 0 ? void 0 : _a.locale, (_b = newI18n.currentValue) === null || _b === void 0 ? void 0 : _b.translate, (_c = newI18n.currentValue) === null || _c === void 0 ? void 0 : _c.translateError));
|
|
123
|
-
}
|
|
124
|
-
if (newReadonly && !newReadonly.isFirstChange()) {
|
|
125
|
-
this.jsonformsService.setReadonly(newReadonly.currentValue);
|
|
126
|
-
}
|
|
127
|
-
if (newConfig && !newConfig.isFirstChange()) {
|
|
128
|
-
this.jsonformsService.updateConfig(Actions.setConfig(newConfig.currentValue));
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
JsonForms.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonForms, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
132
|
-
JsonForms.ɵ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" }, outputs: { dataChange: "dataChange", errors: "errors" }, providers: [JsonFormsAngularService], usesOnChanges: true, ngImport: i0, template: '<jsonforms-outlet></jsonforms-outlet>', isInline: true, dependencies: [{ kind: "directive", type: i2.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }] });
|
|
133
|
-
return JsonForms;
|
|
134
|
-
}());
|
|
135
|
-
export { JsonForms };
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonForms, decorators: [{
|
|
137
|
-
type: Component,
|
|
138
|
-
args: [{
|
|
139
|
-
selector: 'jsonforms',
|
|
140
|
-
template: '<jsonforms-outlet></jsonforms-outlet>',
|
|
141
|
-
providers: [JsonFormsAngularService],
|
|
142
|
-
}]
|
|
143
|
-
}], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }]; }, propDecorators: { uischema: [{
|
|
144
|
-
type: Input
|
|
145
|
-
}], schema: [{
|
|
146
|
-
type: Input
|
|
147
|
-
}], data: [{
|
|
148
|
-
type: Input
|
|
149
|
-
}], renderers: [{
|
|
150
|
-
type: Input
|
|
151
|
-
}], uischemas: [{
|
|
152
|
-
type: Input
|
|
153
|
-
}], dataChange: [{
|
|
154
|
-
type: Output
|
|
155
|
-
}], readonly: [{
|
|
156
|
-
type: Input
|
|
157
|
-
}], validationMode: [{
|
|
158
|
-
type: Input
|
|
159
|
-
}], ajv: [{
|
|
160
|
-
type: Input
|
|
161
|
-
}], config: [{
|
|
162
|
-
type: Input
|
|
163
|
-
}], i18n: [{
|
|
164
|
-
type: Input
|
|
165
|
-
}], additionalErrors: [{
|
|
166
|
-
type: Input
|
|
167
|
-
}], errors: [{
|
|
168
|
-
type: Output
|
|
169
|
-
}] } });
|
|
170
|
-
//# sourceMappingURL=jsonforms-root.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonforms-root.component.js","sourceRoot":"","sources":["../../src/jsonforms-root.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,SAAS,EAET,YAAY,EACZ,KAAK,EAGL,MAAM,GAEP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,OAAO,GAOR,MAAM,iBAAiB,CAAC;AACzB,OAAO,GAAoB,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;;;;AAE/E,+DAA+D;AAC/D,6DAA6D;AAC7D;IA0BE,mBAAoB,gBAAyC;QAAzC,qBAAgB,GAAhB,gBAAgB,CAAyB;QAfnD,eAAU,GAAG,IAAI,YAAY,EAAO,CAAC;QAOrC,WAAM,GAAG,IAAI,YAAY,EAAiB,CAAC;QAK7C,gBAAW,GAAG,KAAK,CAAC;IAGoC,CAAC;IAEjE,4BAAQ,GAAR;QAAA,iBA8BC;QA7BC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;YACzB,IAAI,EAAE;gBACJ,IAAI,EAAE,IAAI,CA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,QAAQ;sBAAhB,KAAK;gBACG,cAAc;sBAAtB,KAAK;gBACG,GAAG;sBAAX,KAAK;gBACG,MAAM;sBAAd,KAAK;gBACG,IAAI;sBAAZ,KAAK;gBACG,gBAAgB;sBAAxB,KAAK;gBACI,MAAM;sBAAf,MAAM"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ComponentFactoryResolver, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { JsonFormsState, OwnPropsOfRenderer, UISchemaElement } from '@jsonforms/core';
|
|
3
|
-
import { JsonFormsBaseRenderer } from './base.renderer';
|
|
4
|
-
import { JsonFormsAngularService } from './jsonforms.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class JsonFormsOutlet extends JsonFormsBaseRenderer<UISchemaElement> implements OnInit, OnDestroy {
|
|
7
|
-
private viewContainerRef;
|
|
8
|
-
private componentFactoryResolver;
|
|
9
|
-
private jsonformsService;
|
|
10
|
-
private subscription;
|
|
11
|
-
private previousProps;
|
|
12
|
-
constructor(viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, jsonformsService: JsonFormsAngularService);
|
|
13
|
-
set renderProps(renderProps: OwnPropsOfRenderer);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
update(state: JsonFormsState): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JsonFormsOutlet, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<JsonFormsOutlet, "jsonforms-outlet", never, { "renderProps": { "alias": "renderProps"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
|
-
}
|