@valtimo/form 4.15.3-next-main.16 → 4.17.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.
- package/bundles/valtimo-form.umd.js +197 -197
- package/esm2015/lib/form-routing.module.js +29 -29
- package/esm2015/lib/form.module.js +28 -28
- package/esm2015/lib/form.service.js +45 -45
- package/esm2015/lib/services/form-mapping/form-mapping.service.js +40 -40
- package/esm2015/lib/services/form-translation/form-translation.service.js +58 -58
- package/esm2015/public_api.js +23 -23
- package/esm2015/valtimo-form.js +6 -6
- package/fesm2015/valtimo-form.js +185 -185
- package/lib/form-routing.module.d.ts +2 -2
- package/lib/form.module.d.ts +2 -2
- package/lib/form.service.d.ts +12 -12
- package/lib/services/form-mapping/form-mapping.service.d.ts +5 -5
- package/lib/services/form-translation/form-translation.service.d.ts +10 -10
- package/package.json +1 -1
- package/public_api.d.ts +4 -4
- package/valtimo-form.d.ts +5 -5
|
@@ -4,215 +4,215 @@
|
|
|
4
4
|
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.form = {}), global.ng.core, global.ng.common.http, global.config, global.ng.common, global.ng.router, global.components, global.i1$1));
|
|
5
5
|
}(this, (function (exports, i0, i2, i1, common, router, components, i1$1) { 'use strict';
|
|
6
6
|
|
|
7
|
-
/*
|
|
8
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
9
|
-
*
|
|
10
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
|
-
var FormService = /** @class */ (function () {
|
|
23
|
-
function FormService(configService, http) {
|
|
24
|
-
this.configService = configService;
|
|
25
|
-
this.http = http;
|
|
26
|
-
this.valtimoApiConfig = configService.config.valtimoApi;
|
|
27
|
-
}
|
|
28
|
-
FormService.prototype.getFormDefinitionByName = function (formDefinitionName) {
|
|
29
|
-
return this.http.get(this.valtimoApiConfig.endpointUri + "form/" + formDefinitionName);
|
|
30
|
-
};
|
|
31
|
-
FormService.prototype.getFormDefinitionByNamePreFilled = function (formDefinitionName, documentId) {
|
|
32
|
-
return this.http.get(this.valtimoApiConfig.endpointUri + "form-association/form-definition/" + formDefinitionName + "?documentId=" + documentId);
|
|
33
|
-
};
|
|
34
|
-
return FormService;
|
|
35
|
-
}());
|
|
36
|
-
FormService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormService_Factory() { return new FormService(i0.ɵɵinject(i1.ConfigService), i0.ɵɵinject(i2.HttpClient)); }, token: FormService, providedIn: "root" });
|
|
37
|
-
FormService.decorators = [
|
|
38
|
-
{ type: i0.Injectable, args: [{
|
|
39
|
-
providedIn: 'root',
|
|
40
|
-
},] }
|
|
41
|
-
];
|
|
42
|
-
FormService.ctorParameters = function () { return [
|
|
43
|
-
{ type: i1.ConfigService },
|
|
44
|
-
{ type: i2.HttpClient }
|
|
7
|
+
/*
|
|
8
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
var FormService = /** @class */ (function () {
|
|
23
|
+
function FormService(configService, http) {
|
|
24
|
+
this.configService = configService;
|
|
25
|
+
this.http = http;
|
|
26
|
+
this.valtimoApiConfig = configService.config.valtimoApi;
|
|
27
|
+
}
|
|
28
|
+
FormService.prototype.getFormDefinitionByName = function (formDefinitionName) {
|
|
29
|
+
return this.http.get(this.valtimoApiConfig.endpointUri + "form/" + formDefinitionName);
|
|
30
|
+
};
|
|
31
|
+
FormService.prototype.getFormDefinitionByNamePreFilled = function (formDefinitionName, documentId) {
|
|
32
|
+
return this.http.get(this.valtimoApiConfig.endpointUri + "form-association/form-definition/" + formDefinitionName + "?documentId=" + documentId);
|
|
33
|
+
};
|
|
34
|
+
return FormService;
|
|
35
|
+
}());
|
|
36
|
+
FormService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormService_Factory() { return new FormService(i0.ɵɵinject(i1.ConfigService), i0.ɵɵinject(i2.HttpClient)); }, token: FormService, providedIn: "root" });
|
|
37
|
+
FormService.decorators = [
|
|
38
|
+
{ type: i0.Injectable, args: [{
|
|
39
|
+
providedIn: 'root',
|
|
40
|
+
},] }
|
|
41
|
+
];
|
|
42
|
+
FormService.ctorParameters = function () { return [
|
|
43
|
+
{ type: i1.ConfigService },
|
|
44
|
+
{ type: i2.HttpClient }
|
|
45
45
|
]; };
|
|
46
46
|
|
|
47
|
-
/*
|
|
48
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
49
|
-
*
|
|
50
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
51
|
-
* you may not use this file except in compliance with the License.
|
|
52
|
-
* You may obtain a copy of the License at
|
|
53
|
-
*
|
|
54
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
55
|
-
*
|
|
56
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
57
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
58
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
59
|
-
* See the License for the specific language governing permissions and
|
|
60
|
-
* limitations under the License.
|
|
61
|
-
*/
|
|
62
|
-
var routes = [];
|
|
63
|
-
var FormRoutingModule = /** @class */ (function () {
|
|
64
|
-
function FormRoutingModule() {
|
|
65
|
-
}
|
|
66
|
-
return FormRoutingModule;
|
|
67
|
-
}());
|
|
68
|
-
FormRoutingModule.decorators = [
|
|
69
|
-
{ type: i0.NgModule, args: [{
|
|
70
|
-
declarations: [],
|
|
71
|
-
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
72
|
-
exports: [router.RouterModule],
|
|
73
|
-
},] }
|
|
47
|
+
/*
|
|
48
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
49
|
+
*
|
|
50
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
51
|
+
* you may not use this file except in compliance with the License.
|
|
52
|
+
* You may obtain a copy of the License at
|
|
53
|
+
*
|
|
54
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
55
|
+
*
|
|
56
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
57
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
58
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
59
|
+
* See the License for the specific language governing permissions and
|
|
60
|
+
* limitations under the License.
|
|
61
|
+
*/
|
|
62
|
+
var routes = [];
|
|
63
|
+
var FormRoutingModule = /** @class */ (function () {
|
|
64
|
+
function FormRoutingModule() {
|
|
65
|
+
}
|
|
66
|
+
return FormRoutingModule;
|
|
67
|
+
}());
|
|
68
|
+
FormRoutingModule.decorators = [
|
|
69
|
+
{ type: i0.NgModule, args: [{
|
|
70
|
+
declarations: [],
|
|
71
|
+
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
72
|
+
exports: [router.RouterModule],
|
|
73
|
+
},] }
|
|
74
74
|
];
|
|
75
75
|
|
|
76
|
-
/*
|
|
77
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
78
|
-
*
|
|
79
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
80
|
-
* you may not use this file except in compliance with the License.
|
|
81
|
-
* You may obtain a copy of the License at
|
|
82
|
-
*
|
|
83
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
84
|
-
*
|
|
85
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
86
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
87
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
88
|
-
* See the License for the specific language governing permissions and
|
|
89
|
-
* limitations under the License.
|
|
90
|
-
*/
|
|
91
|
-
var FormModule = /** @class */ (function () {
|
|
92
|
-
function FormModule() {
|
|
93
|
-
}
|
|
94
|
-
return FormModule;
|
|
95
|
-
}());
|
|
96
|
-
FormModule.decorators = [
|
|
97
|
-
{ type: i0.NgModule, args: [{
|
|
98
|
-
imports: [common.CommonModule, FormRoutingModule, components.FormIoModule],
|
|
99
|
-
exports: [],
|
|
100
|
-
},] }
|
|
76
|
+
/*
|
|
77
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
78
|
+
*
|
|
79
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
80
|
+
* you may not use this file except in compliance with the License.
|
|
81
|
+
* You may obtain a copy of the License at
|
|
82
|
+
*
|
|
83
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
84
|
+
*
|
|
85
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
86
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
87
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
88
|
+
* See the License for the specific language governing permissions and
|
|
89
|
+
* limitations under the License.
|
|
90
|
+
*/
|
|
91
|
+
var FormModule = /** @class */ (function () {
|
|
92
|
+
function FormModule() {
|
|
93
|
+
}
|
|
94
|
+
return FormModule;
|
|
95
|
+
}());
|
|
96
|
+
FormModule.decorators = [
|
|
97
|
+
{ type: i0.NgModule, args: [{
|
|
98
|
+
imports: [common.CommonModule, FormRoutingModule, components.FormIoModule],
|
|
99
|
+
exports: [],
|
|
100
|
+
},] }
|
|
101
101
|
];
|
|
102
102
|
|
|
103
|
-
/*
|
|
104
|
-
* Copyright 2015-2021 Ritense BV, the Netherlands.
|
|
105
|
-
*
|
|
106
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
107
|
-
* you may not use this file except in compliance with the License.
|
|
108
|
-
* You may obtain a copy of the License at
|
|
109
|
-
*
|
|
110
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
111
|
-
*
|
|
112
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
113
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
114
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
115
|
-
* See the License for the specific language governing permissions and
|
|
116
|
-
* limitations under the License.
|
|
117
|
-
*/
|
|
118
|
-
var FormMappingService = /** @class */ (function () {
|
|
119
|
-
function FormMappingService() {
|
|
120
|
-
}
|
|
121
|
-
FormMappingService.prototype.mapComponents = function (form, mappingFunction) {
|
|
122
|
-
var _a, _b;
|
|
123
|
-
var recursiveMappingFunction = function (component) {
|
|
124
|
-
var mappedComponent = mappingFunction(component);
|
|
125
|
-
var innerComponents = component.components;
|
|
126
|
-
if (innerComponents && innerComponents.length > 0) {
|
|
127
|
-
return Object.assign(Object.assign({}, mappedComponent), { components: innerComponents.map(function (innerComponent) { return recursiveMappingFunction(innerComponent); }) });
|
|
128
|
-
}
|
|
129
|
-
return mappedComponent;
|
|
130
|
-
};
|
|
131
|
-
return Object.assign(Object.assign({}, form), (((_a = form === null || form === void 0 ? void 0 : form.components) === null || _a === void 0 ? void 0 : _a.length) > 0 && {
|
|
132
|
-
components: (_b = form === null || form === void 0 ? void 0 : form.components) === null || _b === void 0 ? void 0 : _b.map(function (component) { return recursiveMappingFunction(component); }),
|
|
133
|
-
}));
|
|
134
|
-
};
|
|
135
|
-
return FormMappingService;
|
|
136
|
-
}());
|
|
137
|
-
FormMappingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormMappingService_Factory() { return new FormMappingService(); }, token: FormMappingService, providedIn: "root" });
|
|
138
|
-
FormMappingService.decorators = [
|
|
139
|
-
{ type: i0.Injectable, args: [{
|
|
140
|
-
providedIn: 'root',
|
|
141
|
-
},] }
|
|
103
|
+
/*
|
|
104
|
+
* Copyright 2015-2021 Ritense BV, the Netherlands.
|
|
105
|
+
*
|
|
106
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
107
|
+
* you may not use this file except in compliance with the License.
|
|
108
|
+
* You may obtain a copy of the License at
|
|
109
|
+
*
|
|
110
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
111
|
+
*
|
|
112
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
113
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
114
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
115
|
+
* See the License for the specific language governing permissions and
|
|
116
|
+
* limitations under the License.
|
|
117
|
+
*/
|
|
118
|
+
var FormMappingService = /** @class */ (function () {
|
|
119
|
+
function FormMappingService() {
|
|
120
|
+
}
|
|
121
|
+
FormMappingService.prototype.mapComponents = function (form, mappingFunction) {
|
|
122
|
+
var _a, _b;
|
|
123
|
+
var recursiveMappingFunction = function (component) {
|
|
124
|
+
var mappedComponent = mappingFunction(component);
|
|
125
|
+
var innerComponents = component.components;
|
|
126
|
+
if (innerComponents && innerComponents.length > 0) {
|
|
127
|
+
return Object.assign(Object.assign({}, mappedComponent), { components: innerComponents.map(function (innerComponent) { return recursiveMappingFunction(innerComponent); }) });
|
|
128
|
+
}
|
|
129
|
+
return mappedComponent;
|
|
130
|
+
};
|
|
131
|
+
return Object.assign(Object.assign({}, form), (((_a = form === null || form === void 0 ? void 0 : form.components) === null || _a === void 0 ? void 0 : _a.length) > 0 && {
|
|
132
|
+
components: (_b = form === null || form === void 0 ? void 0 : form.components) === null || _b === void 0 ? void 0 : _b.map(function (component) { return recursiveMappingFunction(component); }),
|
|
133
|
+
}));
|
|
134
|
+
};
|
|
135
|
+
return FormMappingService;
|
|
136
|
+
}());
|
|
137
|
+
FormMappingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormMappingService_Factory() { return new FormMappingService(); }, token: FormMappingService, providedIn: "root" });
|
|
138
|
+
FormMappingService.decorators = [
|
|
139
|
+
{ type: i0.Injectable, args: [{
|
|
140
|
+
providedIn: 'root',
|
|
141
|
+
},] }
|
|
142
142
|
];
|
|
143
143
|
|
|
144
|
-
/*
|
|
145
|
-
* Copyright 2015-2021 Ritense BV, the Netherlands.
|
|
146
|
-
*
|
|
147
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
148
|
-
* you may not use this file except in compliance with the License.
|
|
149
|
-
* You may obtain a copy of the License at
|
|
150
|
-
*
|
|
151
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
152
|
-
*
|
|
153
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
154
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
155
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
156
|
-
* See the License for the specific language governing permissions and
|
|
157
|
-
* limitations under the License.
|
|
158
|
-
*/
|
|
159
|
-
var FormTranslationService = /** @class */ (function () {
|
|
160
|
-
function FormTranslationService(translateService, formMappingService) {
|
|
161
|
-
this.translateService = translateService;
|
|
162
|
-
this.formMappingService = formMappingService;
|
|
163
|
-
}
|
|
164
|
-
FormTranslationService.prototype.translateForm = function (form) {
|
|
165
|
-
var _this = this;
|
|
166
|
-
var translateFunction = function (component) {
|
|
167
|
-
var labelTranslation = _this.getTranslation("" + component.label);
|
|
168
|
-
var titleTranslation = _this.getTranslation("" + component.title);
|
|
169
|
-
var contentTranslation = _this.getTranslation("" + component.content);
|
|
170
|
-
var placeholderTranslation = _this.getTranslation("" + component.placeholder);
|
|
171
|
-
var tooltipTranslation = _this.getTranslation("" + component.tooltip);
|
|
172
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, component), (labelTranslation && { label: "" + labelTranslation })), (titleTranslation && { title: "" + titleTranslation })), (contentTranslation && { content: "" + contentTranslation })), (placeholderTranslation && { placeholder: "" + placeholderTranslation })), (tooltipTranslation && { tooltip: "" + tooltipTranslation }));
|
|
173
|
-
};
|
|
174
|
-
return this.formMappingService.mapComponents(form, translateFunction);
|
|
175
|
-
};
|
|
176
|
-
FormTranslationService.prototype.getTranslation = function (translationKey) {
|
|
177
|
-
var translation = this.translateService.instant(translationKey);
|
|
178
|
-
if (translation !== translationKey) {
|
|
179
|
-
return translation;
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
return false;
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
return FormTranslationService;
|
|
186
|
-
}());
|
|
187
|
-
FormTranslationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormTranslationService_Factory() { return new FormTranslationService(i0.ɵɵinject(i1$1.TranslateService), i0.ɵɵinject(FormMappingService)); }, token: FormTranslationService, providedIn: "root" });
|
|
188
|
-
FormTranslationService.decorators = [
|
|
189
|
-
{ type: i0.Injectable, args: [{
|
|
190
|
-
providedIn: 'root',
|
|
191
|
-
},] }
|
|
192
|
-
];
|
|
193
|
-
FormTranslationService.ctorParameters = function () { return [
|
|
194
|
-
{ type: i1$1.TranslateService },
|
|
195
|
-
{ type: FormMappingService }
|
|
144
|
+
/*
|
|
145
|
+
* Copyright 2015-2021 Ritense BV, the Netherlands.
|
|
146
|
+
*
|
|
147
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
148
|
+
* you may not use this file except in compliance with the License.
|
|
149
|
+
* You may obtain a copy of the License at
|
|
150
|
+
*
|
|
151
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
152
|
+
*
|
|
153
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
154
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
155
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
156
|
+
* See the License for the specific language governing permissions and
|
|
157
|
+
* limitations under the License.
|
|
158
|
+
*/
|
|
159
|
+
var FormTranslationService = /** @class */ (function () {
|
|
160
|
+
function FormTranslationService(translateService, formMappingService) {
|
|
161
|
+
this.translateService = translateService;
|
|
162
|
+
this.formMappingService = formMappingService;
|
|
163
|
+
}
|
|
164
|
+
FormTranslationService.prototype.translateForm = function (form) {
|
|
165
|
+
var _this = this;
|
|
166
|
+
var translateFunction = function (component) {
|
|
167
|
+
var labelTranslation = _this.getTranslation("" + component.label);
|
|
168
|
+
var titleTranslation = _this.getTranslation("" + component.title);
|
|
169
|
+
var contentTranslation = _this.getTranslation("" + component.content);
|
|
170
|
+
var placeholderTranslation = _this.getTranslation("" + component.placeholder);
|
|
171
|
+
var tooltipTranslation = _this.getTranslation("" + component.tooltip);
|
|
172
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, component), (labelTranslation && { label: "" + labelTranslation })), (titleTranslation && { title: "" + titleTranslation })), (contentTranslation && { content: "" + contentTranslation })), (placeholderTranslation && { placeholder: "" + placeholderTranslation })), (tooltipTranslation && { tooltip: "" + tooltipTranslation }));
|
|
173
|
+
};
|
|
174
|
+
return this.formMappingService.mapComponents(form, translateFunction);
|
|
175
|
+
};
|
|
176
|
+
FormTranslationService.prototype.getTranslation = function (translationKey) {
|
|
177
|
+
var translation = this.translateService.instant(translationKey);
|
|
178
|
+
if (translation !== translationKey) {
|
|
179
|
+
return translation;
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
return FormTranslationService;
|
|
186
|
+
}());
|
|
187
|
+
FormTranslationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormTranslationService_Factory() { return new FormTranslationService(i0.ɵɵinject(i1$1.TranslateService), i0.ɵɵinject(FormMappingService)); }, token: FormTranslationService, providedIn: "root" });
|
|
188
|
+
FormTranslationService.decorators = [
|
|
189
|
+
{ type: i0.Injectable, args: [{
|
|
190
|
+
providedIn: 'root',
|
|
191
|
+
},] }
|
|
192
|
+
];
|
|
193
|
+
FormTranslationService.ctorParameters = function () { return [
|
|
194
|
+
{ type: i1$1.TranslateService },
|
|
195
|
+
{ type: FormMappingService }
|
|
196
196
|
]; };
|
|
197
197
|
|
|
198
|
-
/*
|
|
199
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
200
|
-
*
|
|
201
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
202
|
-
* you may not use this file except in compliance with the License.
|
|
203
|
-
* You may obtain a copy of the License at
|
|
204
|
-
*
|
|
205
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
206
|
-
*
|
|
207
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
208
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
209
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
210
|
-
* See the License for the specific language governing permissions and
|
|
211
|
-
* limitations under the License.
|
|
198
|
+
/*
|
|
199
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
200
|
+
*
|
|
201
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
202
|
+
* you may not use this file except in compliance with the License.
|
|
203
|
+
* You may obtain a copy of the License at
|
|
204
|
+
*
|
|
205
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
206
|
+
*
|
|
207
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
208
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
209
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
210
|
+
* See the License for the specific language governing permissions and
|
|
211
|
+
* limitations under the License.
|
|
212
212
|
*/
|
|
213
213
|
|
|
214
|
-
/**
|
|
215
|
-
* Generated bundle index. Do not edit.
|
|
214
|
+
/**
|
|
215
|
+
* Generated bundle index. Do not edit.
|
|
216
216
|
*/
|
|
217
217
|
|
|
218
218
|
exports.FormMappingService = FormMappingService;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { NgModule } from '@angular/core';
|
|
17
|
-
import { RouterModule } from '@angular/router';
|
|
18
|
-
import { CommonModule } from '@angular/common';
|
|
19
|
-
const routes = [];
|
|
20
|
-
export class FormRoutingModule {
|
|
21
|
-
}
|
|
22
|
-
FormRoutingModule.decorators = [
|
|
23
|
-
{ type: NgModule, args: [{
|
|
24
|
-
declarations: [],
|
|
25
|
-
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
26
|
-
exports: [RouterModule],
|
|
27
|
-
},] }
|
|
28
|
-
];
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { NgModule } from '@angular/core';
|
|
17
|
+
import { RouterModule } from '@angular/router';
|
|
18
|
+
import { CommonModule } from '@angular/common';
|
|
19
|
+
const routes = [];
|
|
20
|
+
export class FormRoutingModule {
|
|
21
|
+
}
|
|
22
|
+
FormRoutingModule.decorators = [
|
|
23
|
+
{ type: NgModule, args: [{
|
|
24
|
+
declarations: [],
|
|
25
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
26
|
+
exports: [RouterModule],
|
|
27
|
+
},] }
|
|
28
|
+
];
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1yb3V0aW5nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtM2ZmM2ExOWEvd29ya3NwYWNlL3JvbnRlbmRfbGlicmFyaWVzXy1fcmVsZWFzZV9tYWluL3Byb2plY3RzL3ZhbHRpbW8vZm9ybS9zcmMvIiwic291cmNlcyI6WyJsaWIvZm9ybS1yb3V0aW5nLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQ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PRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbmltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtSb3V0ZXJNb2R1bGUsIFJvdXRlc30gZnJvbSAnQGFuZ3VsYXIvcm91dGVyJztcbmltcG9ydCB7Q29tbW9uTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5jb25zdCByb3V0ZXM6IFJvdXRlcyA9IFtdO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtdLFxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBSb3V0ZXJNb2R1bGUuZm9yQ2hpbGQocm91dGVzKV0sXG4gIGV4cG9ydHM6IFtSb3V0ZXJNb2R1bGVdLFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtUm91dGluZ01vZHVsZSB7fVxuIl19
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { NgModule } from '@angular/core';
|
|
17
|
-
import { CommonModule } from '@angular/common';
|
|
18
|
-
import { FormRoutingModule } from './form-routing.module';
|
|
19
|
-
import { FormIoModule } from '@valtimo/components';
|
|
20
|
-
export class FormModule {
|
|
21
|
-
}
|
|
22
|
-
FormModule.decorators = [
|
|
23
|
-
{ type: NgModule, args: [{
|
|
24
|
-
imports: [CommonModule, FormRoutingModule, FormIoModule],
|
|
25
|
-
exports: [],
|
|
26
|
-
},] }
|
|
27
|
-
];
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { NgModule } from '@angular/core';
|
|
17
|
+
import { CommonModule } from '@angular/common';
|
|
18
|
+
import { FormRoutingModule } from './form-routing.module';
|
|
19
|
+
import { FormIoModule } from '@valtimo/components';
|
|
20
|
+
export class FormModule {
|
|
21
|
+
}
|
|
22
|
+
FormModule.decorators = [
|
|
23
|
+
{ type: NgModule, args: [{
|
|
24
|
+
imports: [CommonModule, FormRoutingModule, FormIoModule],
|
|
25
|
+
exports: [],
|
|
26
|
+
},] }
|
|
27
|
+
];
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjoz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