@valtimo/form 4.15.2-next-main.14 → 4.15.3-next-main.15

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