@valtimo/form 0.0.0-test

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,286 @@
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
+ getAllFormDefinitionsForBuildingBlock(buildingBlockDefinitionKey, versionTag) {
49
+ return this.http.get(`${this.valtimoApiConfig.endpointUri}management/v1/building-block/${buildingBlockDefinitionKey}/version/${versionTag}/form-option`);
50
+ }
51
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
52
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormService, providedIn: 'root' }); }
53
+ }
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormService, decorators: [{
55
+ type: Injectable,
56
+ args: [{
57
+ providedIn: 'root',
58
+ }]
59
+ }], ctorParameters: () => [{ type: i1.ConfigService }, { type: i2.HttpClient }] });
60
+
61
+ /*
62
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
63
+ *
64
+ * Licensed under EUPL, Version 1.2 (the "License");
65
+ * you may not use this file except in compliance with the License.
66
+ * You may obtain a copy of the License at
67
+ *
68
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
69
+ *
70
+ * Unless required by applicable law or agreed to in writing, software
71
+ * distributed under the License is distributed on an "AS IS" basis,
72
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
73
+ * See the License for the specific language governing permissions and
74
+ * limitations under the License.
75
+ */
76
+ const routes = [];
77
+ class FormRoutingModule {
78
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
79
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, i1$1.RouterModule], exports: [RouterModule] }); }
80
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
81
+ }
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormRoutingModule, decorators: [{
83
+ type: NgModule,
84
+ args: [{
85
+ declarations: [],
86
+ imports: [CommonModule, RouterModule.forChild(routes)],
87
+ exports: [RouterModule],
88
+ }]
89
+ }] });
90
+
91
+ /*
92
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
93
+ *
94
+ * Licensed under EUPL, Version 1.2 (the "License");
95
+ * you may not use this file except in compliance with the License.
96
+ * You may obtain a copy of the License at
97
+ *
98
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
99
+ *
100
+ * Unless required by applicable law or agreed to in writing, software
101
+ * distributed under the License is distributed on an "AS IS" basis,
102
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
103
+ * See the License for the specific language governing permissions and
104
+ * limitations under the License.
105
+ */
106
+ class FormModule {
107
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
108
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] }); }
109
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] }); }
110
+ }
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormModule, decorators: [{
112
+ type: NgModule,
113
+ args: [{
114
+ imports: [CommonModule, FormRoutingModule, FormIoModule],
115
+ exports: [],
116
+ }]
117
+ }] });
118
+
119
+ /*
120
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
121
+ *
122
+ * Licensed under EUPL, Version 1.2 (the "License");
123
+ * you may not use this file except in compliance with the License.
124
+ * You may obtain a copy of the License at
125
+ *
126
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
127
+ *
128
+ * Unless required by applicable law or agreed to in writing, software
129
+ * distributed under the License is distributed on an "AS IS" basis,
130
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
131
+ * See the License for the specific language governing permissions and
132
+ * limitations under the License.
133
+ */
134
+ class FormMappingService {
135
+ mapComponents(form, mappingFunction) {
136
+ const recursiveMappingFunction = (component) => {
137
+ const mappedComponent = mappingFunction(component);
138
+ const innerComponents = component.components;
139
+ const isColumns = component?.type === 'columns' && component.columns;
140
+ if (innerComponents && innerComponents.length > 0) {
141
+ return {
142
+ ...mappedComponent,
143
+ components: innerComponents.map((innerComponent) => recursiveMappingFunction(innerComponent)),
144
+ };
145
+ }
146
+ if (isColumns) {
147
+ return {
148
+ ...component,
149
+ columns: component.columns.map((column) => ({
150
+ ...column,
151
+ components: column?.components?.map((innerComponent) => recursiveMappingFunction(innerComponent)),
152
+ })),
153
+ };
154
+ }
155
+ return mappedComponent;
156
+ };
157
+ return {
158
+ ...form,
159
+ // @ts-ignore
160
+ ...(form?.components?.length > 0 && {
161
+ components: form?.components?.map(component => recursiveMappingFunction(component)),
162
+ }),
163
+ };
164
+ }
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormMappingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
166
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormMappingService, providedIn: 'root' }); }
167
+ }
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormMappingService, decorators: [{
169
+ type: Injectable,
170
+ args: [{
171
+ providedIn: 'root',
172
+ }]
173
+ }] });
174
+
175
+ /*
176
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
177
+ *
178
+ * Licensed under EUPL, Version 1.2 (the "License");
179
+ * you may not use this file except in compliance with the License.
180
+ * You may obtain a copy of the License at
181
+ *
182
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
183
+ *
184
+ * Unless required by applicable law or agreed to in writing, software
185
+ * distributed under the License is distributed on an "AS IS" basis,
186
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
187
+ * See the License for the specific language governing permissions and
188
+ * limitations under the License.
189
+ */
190
+ class FormTranslationService {
191
+ constructor(translateService, formMappingService) {
192
+ this.translateService = translateService;
193
+ this.formMappingService = formMappingService;
194
+ }
195
+ translateForm(form) {
196
+ const translateFunction = (component) => {
197
+ const labelTranslation = this.getTranslation(`${component.label}`);
198
+ const titleTranslation = this.getTranslation(`${component.title}`);
199
+ const contentTranslation = this.getTranslation(`${component.content}`);
200
+ const placeholderTranslation = this.getTranslation(`${component.placeholder}`);
201
+ const tooltipTranslation = this.getTranslation(`${component.tooltip}`);
202
+ return {
203
+ ...component,
204
+ ...(labelTranslation && { label: `${labelTranslation}` }),
205
+ ...(titleTranslation && { title: `${titleTranslation}` }),
206
+ ...(contentTranslation && { content: `${contentTranslation}` }),
207
+ ...(placeholderTranslation && { placeholder: `${placeholderTranslation}` }),
208
+ ...(tooltipTranslation && { tooltip: `${tooltipTranslation}` }),
209
+ };
210
+ };
211
+ return this.formMappingService.mapComponents(form, translateFunction);
212
+ }
213
+ getTranslation(translationKey) {
214
+ const translation = this.translateService.instant(translationKey);
215
+ if (translation !== translationKey) {
216
+ return translation;
217
+ }
218
+ return false;
219
+ }
220
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormTranslationService, deps: [{ token: i1$2.TranslateService }, { token: FormMappingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
221
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormTranslationService, providedIn: 'root' }); }
222
+ }
223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormTranslationService, decorators: [{
224
+ type: Injectable,
225
+ args: [{
226
+ providedIn: 'root',
227
+ }]
228
+ }], ctorParameters: () => [{ type: i1$2.TranslateService }, { type: FormMappingService }] });
229
+
230
+ /*
231
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
232
+ *
233
+ * Licensed under EUPL, Version 1.2 (the "License");
234
+ * you may not use this file except in compliance with the License.
235
+ * You may obtain a copy of the License at
236
+ *
237
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
238
+ *
239
+ * Unless required by applicable law or agreed to in writing, software
240
+ * distributed under the License is distributed on an "AS IS" basis,
241
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
242
+ * See the License for the specific language governing permissions and
243
+ * limitations under the License.
244
+ */
245
+
246
+ /*
247
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
248
+ *
249
+ * Licensed under EUPL, Version 1.2 (the "License");
250
+ * you may not use this file except in compliance with the License.
251
+ * You may obtain a copy of the License at
252
+ *
253
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
254
+ *
255
+ * Unless required by applicable law or agreed to in writing, software
256
+ * distributed under the License is distributed on an "AS IS" basis,
257
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
258
+ * See the License for the specific language governing permissions and
259
+ * limitations under the License.
260
+ */
261
+
262
+ /*
263
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
264
+ *
265
+ * Licensed under EUPL, Version 1.2 (the "License");
266
+ * you may not use this file except in compliance with the License.
267
+ * You may obtain a copy of the License at
268
+ *
269
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
270
+ *
271
+ * Unless required by applicable law or agreed to in writing, software
272
+ * distributed under the License is distributed on an "AS IS" basis,
273
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
274
+ * See the License for the specific language governing permissions and
275
+ * limitations under the License.
276
+ */
277
+ /*
278
+ * Public API Surface of form
279
+ */
280
+
281
+ /**
282
+ * Generated bundle index. Do not edit.
283
+ */
284
+
285
+ export { FormMappingService, FormModule, FormService, FormTranslationService };
286
+ //# 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 getAllFormDefinitionsForBuildingBlock(\n buildingBlockDefinitionKey: string,\n versionTag: string\n ): Observable<Array<FormDefinitionOption>> {\n return this.http.get<Array<FormDefinitionOption>>(\n `${this.valtimoApiConfig.endpointUri}management/v1/building-block/${buildingBlockDefinitionKey}/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';\n"],"names":["i1","i2.FormMappingService"],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAYU,WAAW,CAAA;IAGtB,WACU,CAAA,aAA4B,EAC5B,IAAgB,EAAA;QADhB,IAAa,CAAA,aAAA,GAAb,aAAa;QACb,IAAI,CAAA,IAAA,GAAJ,IAAI;QAEZ,IAAI,CAAC,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU;;AAGzD,IAAA,uBAAuB,CAAC,kBAA0B,EAAA;AAChD,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAClB,CAAG,EAAA,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAA,QAAA,EAAW,kBAAkB,CAAA,CAAE,CACpE;;IAGH,gCAAgC,CAC9B,kBAA0B,EAC1B,UAAkB,EAAA;AAElB,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAClB,CAAG,EAAA,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAA,gCAAA,EAAmC,kBAAkB,CAAe,YAAA,EAAA,UAAU,EAAE,EACpH;YACE,OAAO,EAAE,IAAI,WAAW,EAAE,CAAC,GAAG,CAAC,eAAe,EAAE,KAAK,CAAC;AACvD,SAAA,CACF;;IAGH,6BAA6B,GAAA;AAC3B,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAClB,CAAA,EAAG,IAAI,CAAC,gBAAgB,CAAC,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B,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,20 @@
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
+ getAllFormDefinitionsForBuildingBlock(buildingBlockDefinitionKey: string, versionTag: string): Observable<Array<FormDefinitionOption>>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
19
+ }
20
+ //# 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;IAM1C,qCAAqC,CACnC,0BAA0B,EAAE,MAAM,EAClC,UAAU,EAAE,MAAM,GACjB,UAAU,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;yCA9C/B,WAAW;6CAAX,WAAW;CAmDvB"}
@@ -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-test",
5
+ "peerDependencies": {
6
+ "@angular/common": "19.2.20",
7
+ "@angular/core": "19.2.20"
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"}