@valtimo/form 0.0.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.
@@ -0,0 +1,283 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common/http';
4
+ import { HttpHeaders } from '@angular/common/http';
5
+ import * as i1 from '@valtimo/shared';
6
+ import { InterceptorSkip } from '@valtimo/shared';
7
+ import { CommonModule } from '@angular/common';
8
+ import * as i1$1 from '@angular/router';
9
+ import { RouterModule } from '@angular/router';
10
+ import { FormIoModule } from '@valtimo/components';
11
+ import * as i1$2 from '@ngx-translate/core';
12
+
13
+ /*
14
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
15
+ *
16
+ * Licensed under EUPL, Version 1.2 (the "License");
17
+ * you may not use this file except in compliance with the License.
18
+ * You may obtain a copy of the License at
19
+ *
20
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software
23
+ * distributed under the License is distributed on an "AS IS" basis,
24
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
+ * See the License for the specific language governing permissions and
26
+ * limitations under the License.
27
+ */
28
+ class FormService {
29
+ constructor(configService, http) {
30
+ this.configService = configService;
31
+ this.http = http;
32
+ this.valtimoApiConfig = configService.config.valtimoApi;
33
+ }
34
+ getFormDefinitionByName(formDefinitionName) {
35
+ return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form/${formDefinitionName}`);
36
+ }
37
+ getFormDefinitionByNamePreFilled(formDefinitionName, documentId) {
38
+ return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/process-link/form-definition/${formDefinitionName}?documentId=${documentId}`, {
39
+ headers: new HttpHeaders().set(InterceptorSkip, '404'),
40
+ });
41
+ }
42
+ getAllUnlinkedFormDefinitions() {
43
+ return this.http.get(`${this.valtimoApiConfig.endpointUri}management/v1/form-option`);
44
+ }
45
+ getAllFormDefinitionsForCaseDefinition(caseDefinitionKey, versionTag) {
46
+ return this.http.get(`${this.valtimoApiConfig.endpointUri}management/v1/case-definition/${caseDefinitionKey}/version/${versionTag}/form-option`);
47
+ }
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
49
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormService, providedIn: 'root' }); }
50
+ }
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormService, decorators: [{
52
+ type: Injectable,
53
+ args: [{
54
+ providedIn: 'root',
55
+ }]
56
+ }], ctorParameters: () => [{ type: i1.ConfigService }, { type: i2.HttpClient }] });
57
+
58
+ /*
59
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
60
+ *
61
+ * Licensed under EUPL, Version 1.2 (the "License");
62
+ * you may not use this file except in compliance with the License.
63
+ * You may obtain a copy of the License at
64
+ *
65
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
66
+ *
67
+ * Unless required by applicable law or agreed to in writing, software
68
+ * distributed under the License is distributed on an "AS IS" basis,
69
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
70
+ * See the License for the specific language governing permissions and
71
+ * limitations under the License.
72
+ */
73
+ const routes = [];
74
+ class FormRoutingModule {
75
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
76
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, i1$1.RouterModule], exports: [RouterModule] }); }
77
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
78
+ }
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormRoutingModule, decorators: [{
80
+ type: NgModule,
81
+ args: [{
82
+ declarations: [],
83
+ imports: [CommonModule, RouterModule.forChild(routes)],
84
+ exports: [RouterModule],
85
+ }]
86
+ }] });
87
+
88
+ /*
89
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
90
+ *
91
+ * Licensed under EUPL, Version 1.2 (the "License");
92
+ * you may not use this file except in compliance with the License.
93
+ * You may obtain a copy of the License at
94
+ *
95
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
96
+ *
97
+ * Unless required by applicable law or agreed to in writing, software
98
+ * distributed under the License is distributed on an "AS IS" basis,
99
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
100
+ * See the License for the specific language governing permissions and
101
+ * limitations under the License.
102
+ */
103
+ class FormModule {
104
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
105
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] }); }
106
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] }); }
107
+ }
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormModule, decorators: [{
109
+ type: NgModule,
110
+ args: [{
111
+ imports: [CommonModule, FormRoutingModule, FormIoModule],
112
+ exports: [],
113
+ }]
114
+ }] });
115
+
116
+ /*
117
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
118
+ *
119
+ * Licensed under EUPL, Version 1.2 (the "License");
120
+ * you may not use this file except in compliance with the License.
121
+ * You may obtain a copy of the License at
122
+ *
123
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
124
+ *
125
+ * Unless required by applicable law or agreed to in writing, software
126
+ * distributed under the License is distributed on an "AS IS" basis,
127
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128
+ * See the License for the specific language governing permissions and
129
+ * limitations under the License.
130
+ */
131
+ class FormMappingService {
132
+ mapComponents(form, mappingFunction) {
133
+ const recursiveMappingFunction = (component) => {
134
+ const mappedComponent = mappingFunction(component);
135
+ const innerComponents = component.components;
136
+ const isColumns = component?.type === 'columns' && component.columns;
137
+ if (innerComponents && innerComponents.length > 0) {
138
+ return {
139
+ ...mappedComponent,
140
+ components: innerComponents.map((innerComponent) => recursiveMappingFunction(innerComponent)),
141
+ };
142
+ }
143
+ if (isColumns) {
144
+ return {
145
+ ...component,
146
+ columns: component.columns.map((column) => ({
147
+ ...column,
148
+ components: column?.components?.map((innerComponent) => recursiveMappingFunction(innerComponent)),
149
+ })),
150
+ };
151
+ }
152
+ return mappedComponent;
153
+ };
154
+ return {
155
+ ...form,
156
+ // @ts-ignore
157
+ ...(form?.components?.length > 0 && {
158
+ components: form?.components?.map(component => recursiveMappingFunction(component)),
159
+ }),
160
+ };
161
+ }
162
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormMappingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
163
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormMappingService, providedIn: 'root' }); }
164
+ }
165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormMappingService, decorators: [{
166
+ type: Injectable,
167
+ args: [{
168
+ providedIn: 'root',
169
+ }]
170
+ }] });
171
+
172
+ /*
173
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
174
+ *
175
+ * Licensed under EUPL, Version 1.2 (the "License");
176
+ * you may not use this file except in compliance with the License.
177
+ * You may obtain a copy of the License at
178
+ *
179
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
180
+ *
181
+ * Unless required by applicable law or agreed to in writing, software
182
+ * distributed under the License is distributed on an "AS IS" basis,
183
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
184
+ * See the License for the specific language governing permissions and
185
+ * limitations under the License.
186
+ */
187
+ class FormTranslationService {
188
+ constructor(translateService, formMappingService) {
189
+ this.translateService = translateService;
190
+ this.formMappingService = formMappingService;
191
+ }
192
+ translateForm(form) {
193
+ const translateFunction = (component) => {
194
+ const labelTranslation = this.getTranslation(`${component.label}`);
195
+ const titleTranslation = this.getTranslation(`${component.title}`);
196
+ const contentTranslation = this.getTranslation(`${component.content}`);
197
+ const placeholderTranslation = this.getTranslation(`${component.placeholder}`);
198
+ const tooltipTranslation = this.getTranslation(`${component.tooltip}`);
199
+ return {
200
+ ...component,
201
+ ...(labelTranslation && { label: `${labelTranslation}` }),
202
+ ...(titleTranslation && { title: `${titleTranslation}` }),
203
+ ...(contentTranslation && { content: `${contentTranslation}` }),
204
+ ...(placeholderTranslation && { placeholder: `${placeholderTranslation}` }),
205
+ ...(tooltipTranslation && { tooltip: `${tooltipTranslation}` }),
206
+ };
207
+ };
208
+ return this.formMappingService.mapComponents(form, translateFunction);
209
+ }
210
+ getTranslation(translationKey) {
211
+ const translation = this.translateService.instant(translationKey);
212
+ if (translation !== translationKey) {
213
+ return translation;
214
+ }
215
+ return false;
216
+ }
217
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormTranslationService, deps: [{ token: i1$2.TranslateService }, { token: FormMappingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
218
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormTranslationService, providedIn: 'root' }); }
219
+ }
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormTranslationService, decorators: [{
221
+ type: Injectable,
222
+ args: [{
223
+ providedIn: 'root',
224
+ }]
225
+ }], ctorParameters: () => [{ type: i1$2.TranslateService }, { type: FormMappingService }] });
226
+
227
+ /*
228
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
229
+ *
230
+ * Licensed under EUPL, Version 1.2 (the "License");
231
+ * you may not use this file except in compliance with the License.
232
+ * You may obtain a copy of the License at
233
+ *
234
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
235
+ *
236
+ * Unless required by applicable law or agreed to in writing, software
237
+ * distributed under the License is distributed on an "AS IS" basis,
238
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
239
+ * See the License for the specific language governing permissions and
240
+ * limitations under the License.
241
+ */
242
+
243
+ /*
244
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
245
+ *
246
+ * Licensed under EUPL, Version 1.2 (the "License");
247
+ * you may not use this file except in compliance with the License.
248
+ * You may obtain a copy of the License at
249
+ *
250
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
251
+ *
252
+ * Unless required by applicable law or agreed to in writing, software
253
+ * distributed under the License is distributed on an "AS IS" basis,
254
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
255
+ * See the License for the specific language governing permissions and
256
+ * limitations under the License.
257
+ */
258
+
259
+ /*
260
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
261
+ *
262
+ * Licensed under EUPL, Version 1.2 (the "License");
263
+ * you may not use this file except in compliance with the License.
264
+ * You may obtain a copy of the License at
265
+ *
266
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
267
+ *
268
+ * Unless required by applicable law or agreed to in writing, software
269
+ * distributed under the License is distributed on an "AS IS" basis,
270
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
271
+ * See the License for the specific language governing permissions and
272
+ * limitations under the License.
273
+ */
274
+ /*
275
+ * Public API Surface of form
276
+ */
277
+
278
+ /**
279
+ * Generated bundle index. Do not edit.
280
+ */
281
+
282
+ export { FormMappingService, FormModule, FormService, FormTranslationService };
283
+ //# sourceMappingURL=valtimo-form.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-form.mjs","sources":["../../../../projects/valtimo/form/src/lib/form.service.ts","../../../../projects/valtimo/form/src/lib/form-routing.module.ts","../../../../projects/valtimo/form/src/lib/form.module.ts","../../../../projects/valtimo/form/src/lib/services/form-mapping/form-mapping.service.ts","../../../../projects/valtimo/form/src/lib/services/form-translation/form-translation.service.ts","../../../../projects/valtimo/form/src/lib/models/form.model.ts","../../../../projects/valtimo/form/src/lib/models/index.ts","../../../../projects/valtimo/form/src/public_api.ts","../../../../projects/valtimo/form/src/valtimo-form.ts"],"sourcesContent":["/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {FormioForm} from '@formio/angular';\nimport {ConfigService, InterceptorSkip} from '@valtimo/shared';\nimport {FormDefinitionOption} from './models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class FormService {\n private valtimoApiConfig: any;\n\n constructor(\n private configService: ConfigService,\n private http: HttpClient\n ) {\n this.valtimoApiConfig = configService.config.valtimoApi;\n }\n\n getFormDefinitionByName(formDefinitionName: string): Observable<FormioForm> {\n return this.http.get<FormioForm>(\n `${this.valtimoApiConfig.endpointUri}v1/form/${formDefinitionName}`\n );\n }\n\n getFormDefinitionByNamePreFilled(\n formDefinitionName: string,\n documentId: string\n ): Observable<FormioForm> {\n return this.http.get<FormioForm>(\n `${this.valtimoApiConfig.endpointUri}v1/process-link/form-definition/${formDefinitionName}?documentId=${documentId}`,\n {\n headers: new HttpHeaders().set(InterceptorSkip, '404'),\n }\n );\n }\n\n getAllUnlinkedFormDefinitions(): Observable<Array<FormDefinitionOption>> {\n return this.http.get<Array<FormDefinitionOption>>(\n `${this.valtimoApiConfig.endpointUri}management/v1/form-option`\n );\n }\n\n getAllFormDefinitionsForCaseDefinition(\n caseDefinitionKey: string,\n versionTag: string\n ): Observable<Array<FormDefinitionOption>> {\n return this.http.get<Array<FormDefinitionOption>>(\n `${this.valtimoApiConfig.endpointUri}management/v1/case-definition/${caseDefinitionKey}/version/${versionTag}/form-option`\n );\n }\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\n\nconst routes: Routes = [];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class FormRoutingModule {}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormRoutingModule} from './form-routing.module';\nimport {FormIoModule} from '@valtimo/components';\n\n@NgModule({\n imports: [CommonModule, FormRoutingModule, FormIoModule],\n exports: [],\n})\nexport class FormModule {}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {ExtendedComponentSchema, FormioForm} from '@formio/angular';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class FormMappingService {\n mapComponents(\n form: FormioForm,\n mappingFunction: (component: ExtendedComponentSchema) => ExtendedComponentSchema\n ): FormioForm {\n const recursiveMappingFunction = (component: ExtendedComponentSchema) => {\n const mappedComponent = mappingFunction(component);\n const innerComponents = component.components;\n const isColumns = component?.type === 'columns' && component.columns;\n\n if (innerComponents && innerComponents.length > 0) {\n return {\n ...mappedComponent,\n components: innerComponents.map((innerComponent: ExtendedComponentSchema) =>\n recursiveMappingFunction(innerComponent)\n ),\n };\n }\n\n if (isColumns) {\n return {\n ...component,\n columns: component.columns.map((column: any) => ({\n ...column,\n components: column?.components?.map((innerComponent: ExtendedComponentSchema) =>\n recursiveMappingFunction(innerComponent)\n ),\n })),\n };\n }\n\n return mappedComponent;\n };\n\n return {\n ...form,\n // @ts-ignore\n ...(form?.components?.length > 0 && {\n components: form?.components?.map(component => recursiveMappingFunction(component)),\n }),\n };\n }\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {TranslateService} from '@ngx-translate/core';\nimport {ExtendedComponentSchema, FormioForm} from '@formio/angular';\nimport {FormMappingService} from '../form-mapping/form-mapping.service';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class FormTranslationService {\n constructor(\n private readonly translateService: TranslateService,\n private readonly formMappingService: FormMappingService\n ) {}\n\n translateForm(form: FormioForm): FormioForm {\n const translateFunction = (component: ExtendedComponentSchema): ExtendedComponentSchema => {\n const labelTranslation = this.getTranslation(`${component.label}`);\n const titleTranslation = this.getTranslation(`${component.title}`);\n const contentTranslation = this.getTranslation(`${component.content}`);\n const placeholderTranslation = this.getTranslation(`${component.placeholder}`);\n const tooltipTranslation = this.getTranslation(`${component.tooltip}`);\n\n return {\n ...component,\n ...(labelTranslation && {label: `${labelTranslation}`}),\n ...(titleTranslation && {title: `${titleTranslation}`}),\n ...(contentTranslation && {content: `${contentTranslation}`}),\n ...(placeholderTranslation && {placeholder: `${placeholderTranslation}`}),\n ...(tooltipTranslation && {tooltip: `${tooltipTranslation}`}),\n };\n };\n\n return this.formMappingService.mapComponents(form, translateFunction);\n }\n\n private getTranslation(translationKey: string): string | boolean {\n const translation = this.translateService.instant(translationKey);\n\n if (translation !== translationKey) {\n return translation;\n }\n\n return false;\n }\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\ninterface FormDefinitionOption {\n id: string;\n name: string;\n}\n\nexport {FormDefinitionOption};\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './form.model';\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of form\n */\n\nexport * from './lib/form.service';\nexport * from './lib/form.module';\nexport * from './lib/services/form-mapping/form-mapping.service';\nexport * from './lib/services/form-translation/form-translation.service';\nexport * from './lib/models';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api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C,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,cAAc,CAAC;AAEjE,QAAA,IAAI,WAAW,KAAK,cAAc,EAAE;AAClC,YAAA,OAAO,WAAW;;AAGpB,QAAA,OAAO,KAAK;;+GAlCH,sBAAsB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,IAAA,CAAA,gBAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,kBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,cAFrB,MAAM,EAAA,CAAA,CAAA;;4FAEP,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAHlC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACvBD;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@valtimo/form" />
5
+ export * from './public_api';
6
+ //# sourceMappingURL=valtimo-form.d.ts.map
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/router";
4
+ export declare class FormRoutingModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormRoutingModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormRoutingModule, never, [typeof i1.CommonModule, typeof i2.RouterModule], [typeof i2.RouterModule]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormRoutingModule>;
8
+ }
9
+ //# sourceMappingURL=form-routing.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-routing.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/form/src/lib/form-routing.module.ts"],"names":[],"mappings":";;;AAsBA,qBAKa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAAG"}
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "./form-routing.module";
4
+ import * as i3 from "@valtimo/components";
5
+ export declare class FormModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, never, [typeof i1.CommonModule, typeof i2.FormRoutingModule, typeof i3.FormIoModule], never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormModule>;
9
+ }
10
+ //# sourceMappingURL=form.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/form/src/lib/form.module.ts"],"names":[],"mappings":";;;;AAqBA,qBAIa,UAAU;yCAAV,UAAU;0CAAV,UAAU;0CAAV,UAAU;CAAG"}
@@ -0,0 +1,19 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { FormioForm } from '@formio/angular';
4
+ import { ConfigService } from '@valtimo/shared';
5
+ import { FormDefinitionOption } from './models';
6
+ import * as i0 from "@angular/core";
7
+ export declare class FormService {
8
+ private configService;
9
+ private http;
10
+ private valtimoApiConfig;
11
+ constructor(configService: ConfigService, http: HttpClient);
12
+ getFormDefinitionByName(formDefinitionName: string): Observable<FormioForm>;
13
+ getFormDefinitionByNamePreFilled(formDefinitionName: string, documentId: string): Observable<FormioForm>;
14
+ getAllUnlinkedFormDefinitions(): Observable<Array<FormDefinitionOption>>;
15
+ getAllFormDefinitionsForCaseDefinition(caseDefinitionKey: string, versionTag: string): Observable<Array<FormDefinitionOption>>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
18
+ }
19
+ //# sourceMappingURL=form.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.service.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/form/src/lib/form.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAc,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,aAAa,EAAkB,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAC,oBAAoB,EAAC,MAAM,UAAU,CAAC;;AAE9C,qBAGa,WAAW;IAIpB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,IAAI;IAJd,OAAO,CAAC,gBAAgB,CAAM;gBAGpB,aAAa,EAAE,aAAa,EAC5B,IAAI,EAAE,UAAU;IAK1B,uBAAuB,CAAC,kBAAkB,EAAE,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC;IAM3E,gCAAgC,CAC9B,kBAAkB,EAAE,MAAM,EAC1B,UAAU,EAAE,MAAM,GACjB,UAAU,CAAC,UAAU,CAAC;IASzB,6BAA6B,IAAI,UAAU,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAMxE,sCAAsC,CACpC,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,GACjB,UAAU,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;yCArC/B,WAAW;6CAAX,WAAW;CA0CvB"}
@@ -0,0 +1,6 @@
1
+ interface FormDefinitionOption {
2
+ id: string;
3
+ name: string;
4
+ }
5
+ export { FormDefinitionOption };
6
+ //# sourceMappingURL=form.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form/src/lib/models/form.model.ts"],"names":[],"mappings":"AAgBA,UAAU,oBAAoB;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,OAAO,EAAC,oBAAoB,EAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './form.model';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form/src/lib/models/index.ts"],"names":[],"mappings":"AAgBA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ExtendedComponentSchema, FormioForm } from '@formio/angular';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormMappingService {
4
+ mapComponents(form: FormioForm, mappingFunction: (component: ExtendedComponentSchema) => ExtendedComponentSchema): FormioForm;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormMappingService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormMappingService>;
7
+ }
8
+ //# sourceMappingURL=form-mapping.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-mapping.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form/src/lib/services/form-mapping/form-mapping.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,uBAAuB,EAAE,UAAU,EAAC,MAAM,iBAAiB,CAAC;;AAEpE,qBAGa,kBAAkB;IAC7B,aAAa,CACX,IAAI,EAAE,UAAU,EAChB,eAAe,EAAE,CAAC,SAAS,EAAE,uBAAuB,KAAK,uBAAuB,GAC/E,UAAU;yCAJF,kBAAkB;6CAAlB,kBAAkB;CA0C9B"}
@@ -0,0 +1,14 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import { FormioForm } from '@formio/angular';
3
+ import { FormMappingService } from '../form-mapping/form-mapping.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FormTranslationService {
6
+ private readonly translateService;
7
+ private readonly formMappingService;
8
+ constructor(translateService: TranslateService, formMappingService: FormMappingService);
9
+ translateForm(form: FormioForm): FormioForm;
10
+ private getTranslation;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormTranslationService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormTranslationService>;
13
+ }
14
+ //# sourceMappingURL=form-translation.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-translation.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form/src/lib/services/form-translation/form-translation.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAA0B,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;;AAExE,qBAGa,sBAAsB;IAE/B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBADlB,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB;IAGzD,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU;IAqB3C,OAAO,CAAC,cAAc;yCA3BX,sBAAsB;6CAAtB,sBAAsB;CAoClC"}
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@valtimo/form",
3
+ "license": "EUPL-1.2",
4
+ "version": "0.0.0",
5
+ "peerDependencies": {
6
+ "@angular/common": "^19.2.8",
7
+ "@angular/core": "^19.2.8"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "2.8.1"
11
+ },
12
+ "module": "fesm2022/valtimo-form.mjs",
13
+ "typings": "index.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "default": "./fesm2022/valtimo-form.mjs"
21
+ }
22
+ },
23
+ "sideEffects": false
24
+ }
@@ -0,0 +1,6 @@
1
+ export * from './lib/form.service';
2
+ export * from './lib/form.module';
3
+ export * from './lib/services/form-mapping/form-mapping.service';
4
+ export * from './lib/services/form-translation/form-translation.service';
5
+ export * from './lib/models';
6
+ //# sourceMappingURL=public_api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/form/src/public_api.ts"],"names":[],"mappings":"AAoBA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kDAAkD,CAAC;AACjE,cAAc,0DAA0D,CAAC;AACzE,cAAc,cAAc,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-form.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/form/src/valtimo-form.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}