@valtimo/form 10.8.0 → 11.1.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.
@@ -20,11 +20,11 @@ import * as i0 from "@angular/core";
20
20
  import * as i1 from "@angular/router";
21
21
  const routes = [];
22
22
  export class FormRoutingModule {
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
24
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, i1.RouterModule], exports: [RouterModule] }); }
25
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
23
26
  }
24
- FormRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
25
- FormRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, i1.RouterModule], exports: [RouterModule] });
26
- FormRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] });
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormRoutingModule, decorators: [{
28
28
  type: NgModule,
29
29
  args: [{
30
30
  declarations: [],
@@ -32,4 +32,4 @@ i0.ɵɵngDeclareClassMetad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W9uTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5jb25zdCByb3V0ZXM6IFJvdXRlcyA9IFtdO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtdLFxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBSb3V0ZXJNb2R1bGUuZm9yQ2hpbGQocm91dGVzKV0sXG4gIGV4cG9ydHM6IFtSb3V0ZXJNb2R1bGVdLFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtUm91dGluZ01vZHVsZSB7fVxuIl19
@@ -19,15 +19,15 @@ import { FormRoutingModule } from './form-routing.module';
19
19
  import { FormIoModule } from '@valtimo/components';
20
20
  import * as i0 from "@angular/core";
21
21
  export class FormModule {
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
23
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] }); }
24
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] }); }
22
25
  }
23
- FormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
24
- FormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] });
25
- FormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormModule, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormModule, decorators: [{
27
27
  type: NgModule,
28
28
  args: [{
29
29
  imports: [CommonModule, FormRoutingModule, FormIoModule],
30
30
  exports: [],
31
31
  }]
32
32
  }] });
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2Zvcm0vc3JjL2xpYi9mb3JtLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLHVCQUF1QixDQUFDO0FBQ3hELE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQzs7QUFNakQsTUFBTSxPQUFPLFVBQVU7O3VHQUFWLFVBQVU7d0dBQVYsVUFBVSxZQUhYLFlBQVksRUFBRSxpQkFBaUIsRUFBRSxZQUFZO3dHQUc1QyxVQUFVLFlBSFgsWUFBWSxFQUFFLGlCQUFpQixFQUFFLFlBQVk7MkZBRzVDLFVBQVU7a0JBSnRCLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFLENBQUMsWUFBWSxFQUFFLGlCQUFpQixFQUFFLFlBQVksQ0FBQztvQkFDeEQsT0FBTyxFQUFFLEVBQUU7aUJBQ1oiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQ29weXJpZ2h0IDIwMTUtMjAyMyBSaXRlb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TW9kdWxlKHtcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSwgRm9ybVJvdXRpbmdNb2R1bGUsIEZvcm1Jb01vZHVsZV0sXG4gIGV4cG9ydHM6IFtdLFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtTW9kdWxlIHt9XG4iXX0=
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Copyright 2015-2023 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 { InterceptorSkipHeader } from '@valtimo/security';
18
+ import * as i0 from "@angular/core";
19
+ import * as i1 from "@valtimo/config";
20
+ import * as i2 from "@angular/common/http";
21
+ export class FormService {
22
+ constructor(configService, http) {
23
+ this.configService = configService;
24
+ this.http = http;
25
+ this.valtimoApiConfig = configService.config.valtimoApi;
26
+ }
27
+ getFormDefinitionByName(formDefinitionName) {
28
+ return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form/${formDefinitionName}`);
29
+ }
30
+ getFormDefinitionByNamePreFilled(formDefinitionName, documentId) {
31
+ return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/process-link/form-definition/${formDefinitionName}?documentId=${documentId}`, {
32
+ headers: InterceptorSkipHeader,
33
+ });
34
+ }
35
+ getAllFormDefinitions() {
36
+ return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form-definition`);
37
+ }
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
39
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormService, providedIn: 'root' }); }
40
+ }
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormService, decorators: [{
42
+ type: Injectable,
43
+ args: [{
44
+ providedIn: 'root',
45
+ }]
46
+ }], ctorParameters: function () { return [{ type: i1.ConfigService }, { type: i2.HttpClient }]; } });
47
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9mb3JtL3NyYy9saWIvZm9ybS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUgsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUt6QyxPQUFPLEVBQUMscUJBQXFCLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQzs7OztBQU14RCxNQUFNLE9BQU8sV0FBVztJQUd0QixZQUNVLGFBQTRCLEVBQzVCLElBQWdCO1FBRGhCLGtCQUFhLEdBQWIsYUFBYSxDQUFlO1FBQzVCLFNBQUksR0FBSixJQUFJLENBQVk7UUFFeEIsSUFBSSxDQUFDLGdCQUFnQixHQUFHLGFBQWEsQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDO0lBQzFELENBQUM7SUFFRCx1QkFBdUIsQ0FBQyxrQkFBMEI7UUFDaEQsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FDbEIsR0FBRyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsV0FBVyxXQUFXLGtCQUFrQ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ml9djEvZm9ybS1kZWZpbml0aW9uYFxuICAgICk7XG4gIH1cbn1cbiJdfQ==
@@ -46,13 +46,13 @@ export class FormMappingService {
46
46
  }),
47
47
  };
48
48
  }
49
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormMappingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
50
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormMappingService, providedIn: 'root' }); }
49
51
  }
50
- FormMappingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormMappingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
51
- FormMappingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormMappingService, providedIn: 'root' });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormMappingService, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormMappingService, decorators: [{
53
53
  type: Injectable,
54
54
  args: [{
55
55
  providedIn: 'root',
56
56
  }]
57
57
  }] });
58
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1tYXBwaW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2Zvcm0vc3JjL2xpYi9zZXJ2aWNlcy9mb3JtLW1hcHBpbmcvZm9ybS1tYXBwaW5nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFFSCxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU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gICAgIGlmIChpbm5lckNvbXBvbmVudHMgJiYgaW5uZXJDb21wb25lbnRzLmxlbmd0aCA+IDApIHtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAuLi5tYXBwZWRDb21wb25lbnQsXG4gICAgICAgICAgY29tcG9uZW50czogaW5uZXJDb21wb25lbnRzLm1hcCgoaW5uZXJDb21wb25lbnQ6IEV4dGVuZGVkQ29tcG9uZW50U2NoZW1hKSA9PlxuICAgICAgICAgICAgcmVjdXJzaXZlTWFwcGluZ0Z1bmN0aW9uKGlubmVyQ29tcG9uZW50KVxuICAgICAgICAgICksXG4gICAgICAgIH07XG4gICAgICB9XG5cbiAgICAgIGlmIChpc0NvbHVtbnMpIHtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAuLi5jb21wb25lbnQsXG4gICAgICAgICAgY29sdW1uczogY29tcG9uZW50LmNvbHVtbnMubWFwKChjb2x1bW46IGFueSkgPT4gKHtcbiAgICAgICAgICAgIC4uLmNvbHVtbixcbiAgICAgICAgICAgIGNvbXBvbmVudHM6IGNvbHVtbj8uY29tcG9uZW50cz8ubWFwKChpbm5lckNvbXBvbmVudDogRXh0ZW5kZWRDb21wb25lbnRTY2hlbWEpID0+XG4gICAgICAgICAgICAgIHJlY3Vyc2l2ZU1hcHBpbmdGdW5jdGlvbihpbm5lckNvbXBvbmVudClcbiAgICAgICAgICAgICksXG4gICAgICAgICAgfSkpLFxuICAgICAgICB9O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gbWFwcGVkQ29tcG9uZW50O1xuICAgIH07XG5cbiAgICByZXR1cm4ge1xuICAgICAgLi4uZm9ybSxcbiAgICAgIC8vIEB0cy1pZ25vcmVcbiAgICAgIC4uLihmb3JtPy5jb21wb25lbnRzPy5sZW5ndGggPiAwICYmIHtcbiAgICAgICAgY29tcG9uZW50czogZm9ybT8uY29tcG9uZW50cz8ubWFwKGNvbXBvbmVudCA9PiByZWN1cnNpdmVNYXBwaW5nRnVuY3Rpb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TY2hlbWEpID0+IEV4dGVuZGVkQ29tcG9uZW50U2NoZW1hXG4gICk6IEZvcm1pb0Zvcm0ge1xuICAgIGNvbnN0IHJlY3Vyc2l2ZU1hcHBpbmdGdW5jdGlvbiA9IChjb21wb25lbnQ6IEV4dGVuZGVkQ29tcG9uZW50U2NoZW1hKSA9PiB7XG4gICAgICBjb25zdCBtYXBwZWRDb21wb25lbnQgPSBtYXBwaW5nRnVuY3Rpb24oY29tcG9uZW50KTtcbiAgICAgIGNvbnN0IGlubmVyQ29tcG9uZW50cyA9IGNvbXBvbmVudC5jb21wb25lbnRzO1xuICAgICAgY29uc3QgaXNDb2x1bW5zID0gY29tcG9uZW50Py50eXBlID09PSAnY29sdW1ucycgJiYgY29tcG9uZW50LmNvbHVtbnM7XG5cbiAgICAgIGlmIChpbm5lckNvbXBvbmVudHMgJiYgaW5uZXJDb21wb25lbnRzLmxlbmd0aCA+IDApIHtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAuLi5tYXBwZWRDb21wb25lbnQsXG4gICAgICAgICAgY29tcG9uZW50czogaW5uZXJDb21wb25lbnRzLm1hcCgoaW5uZXJDb21wb25lbnQ6IEV4dGVuZGVkQ29tcG9uZW50U2NoZW1hKSA9PlxuICAgICAgICAgICAgcmVjdXJzaXZlTWFwcGluZ0Z1bmN0aW9uKGlubmVyQ29tcG9uZW50KVxuICAgICAgICAgICksXG4gICAgICAgIH07XG4gICAgICB9XG5cbiAgICAgIGlmIChpc0NvbHVtbnMpIHtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAuLi5jb21wb25lbnQsXG4gICAgICAgICAgY29sdW1uczogY29tcG9uZW50LmNvbHVtbnMubWFwKChjb2x1bW46IGFueSkgPT4gKHtcbiAgICAgICAgICAgIC4uLmNvbHVtbixcbiAgICAgICAgICAgIGNvbXBvbmVudHM6IGNvbHVtbj8uY29tcG9uZW50cz8ubWFwKChpbm5lckNvbXBvbmVudDogRXh0ZW5kZWRDb21wb25lbnRTY2hlbWEpID0+XG4gICAgICAgICAgICAgIHJlY3Vyc2l2ZU1hcHBpbmdGdW5jdGlvbihpbm5lckNvbXBvbmVudClcbiAgICAgICAgICAgICksXG4gICAgICAgICAgfSkpLFxuICAgICAgICB9O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gbWFwcGVkQ29tcG9uZW50O1xuICAgIH07XG5cbiAgICByZXR1cm4ge1xuICAgICAgLi4uZm9ybSxcbiAgICAgIC8vIEB0cy1pZ25vcmVcbiAgICAgIC4uLihmb3JtPy5jb21wb25lbnRzPy5sZW5ndGggPiAwICYmIHtcbiAgICAgICAgY29tcG9uZW50czogZm9ybT8uY29tcG9uZW50cz8ubWFwKGNvbXBvbmVudCA9PiByZWN1cnNpdmVNYXBwaW5nRnVuY3Rpb24oY29tcG9uZW50KSksXG4gICAgICB9KSxcbiAgICB9O1xuICB9XG59XG4iXX0=
@@ -47,13 +47,13 @@ export class FormTranslationService {
47
47
  }
48
48
  return false;
49
49
  }
50
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormTranslationService, deps: [{ token: i1.TranslateService }, { token: i2.FormMappingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
51
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormTranslationService, providedIn: 'root' }); }
50
52
  }
51
- FormTranslationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormTranslationService, deps: [{ token: i1.TranslateService }, { token: i2.FormMappingService }], target: i0.ɵɵFactoryTarget.Injectable });
52
- FormTranslationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormTranslationService, providedIn: 'root' });
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormTranslationService, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormTranslationService, decorators: [{
54
54
  type: Injectable,
55
55
  args: [{
56
56
  providedIn: 'root',
57
57
  }]
58
58
  }], ctorParameters: function () { return [{ type: i1.TranslateService }, { type: i2.FormMappingService }]; } });
59
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS10cmFuc2xhdGlvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9mb3JtL3NyYy9saWIvc2VydmljZXMvZm9ybS10cmFuc2xhdGlvbi9mb3JtLXRyYW5zbGF0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFFSCxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7O0FBU3pDLE1BQU0sT0FBTyxzQkFBc0I7SUFDakMsWUFDbUIsZ0JBQWtDLEVBQ2xDLGtCQUFzQztRQUR0QyxxQkFBZ0IsR0FBaEIsZ0JBQWdCLENBQWtCO1FBQ2xDLHVCQUFrQixHQUFsQixrQkFBa0IsQ0FBb0I7SUFDdEQsQ0FBQztJQUVKLGFBQWEsQ0FBQyxJQUFnQjtRQUM1QixNQUFNLGlCQUFpQixHQUFHLENBQUMsU0FBa0MsRUFBMkIsRUFBRTtZQUN4RixNQUFNLGdCQUFnQixHQUFHLElBQUksQ0FBQyxjQUFjLENBQUMsR0FBRyxTQUFTLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQztZQUNuRSxNQUFNLGdCQUFnQixHQUFHLElBQUksQ0FBQyxjQUFjLENBQUMsR0FBRyxTQUFTLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQztZQUNuRSxNQUFNLGtCQUFrQixHQ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xuICAgIHJldHVybiB0aGlzLmZvcm1NYXBwaW5nU2VydmljZS5tYXBDb21wb25lbnRzKGZvcm0sIHRyYW5zbGF0ZUZ1bmN0aW9uKTtcbiAgfVxuXG4gIHByaXZhdGUgZ2V0VHJhbnNsYXRpb24odHJhbnNsYXRpb25LZXk6IHN0cmluZyk6IHN0cmluZyB8IGJvb2xlYW4ge1xuICAgIGNvbnN0IHRyYW5zbGF0aW9uID0gdGhpcy50cmFuc2xhdGVTZXJ2aWNlLmluc3RhbnQodHJhbnNsYXRpb25LZXkpO1xuXG4gICAgaWYgKHRyYW5zbGF0aW9uICE9PSB0cmFuc2xhdGlvbktleSkge1xuICAgICAgcmV0dXJuIHRyYW5zbGF0aW9uO1xuICAgIH1cblxuICAgIHJldHVybiBmYWxzZTtcbiAgfVxufVxuIl19
@@ -34,17 +34,17 @@ class FormService {
34
34
  return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form/${formDefinitionName}`);
35
35
  }
36
36
  getFormDefinitionByNamePreFilled(formDefinitionName, documentId) {
37
- return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form-association/form-definition/${formDefinitionName}?documentId=${documentId}`, {
37
+ return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/process-link/form-definition/${formDefinitionName}?documentId=${documentId}`, {
38
38
  headers: InterceptorSkipHeader,
39
39
  });
40
40
  }
41
41
  getAllFormDefinitions() {
42
42
  return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form-definition`);
43
43
  }
44
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
45
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormService, providedIn: 'root' }); }
44
46
  }
45
- FormService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
46
- FormService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormService, providedIn: 'root' });
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormService, decorators: [{
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormService, decorators: [{
48
48
  type: Injectable,
49
49
  args: [{
50
50
  providedIn: 'root',
@@ -68,11 +68,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
68
68
  */
69
69
  const routes = [];
70
70
  class FormRoutingModule {
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
72
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, i1$1.RouterModule], exports: [RouterModule] }); }
73
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
71
74
  }
72
- FormRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
73
- FormRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, i1$1.RouterModule], exports: [RouterModule] });
74
- FormRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, decorators: [{
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormRoutingModule, decorators: [{
76
76
  type: NgModule,
77
77
  args: [{
78
78
  declarations: [],
@@ -97,11 +97,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
97
97
  * limitations under the License.
98
98
  */
99
99
  class FormModule {
100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
101
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] }); }
102
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] }); }
100
103
  }
101
- FormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
102
- FormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] });
103
- FormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] });
104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormModule, decorators: [{
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormModule, decorators: [{
105
105
  type: NgModule,
106
106
  args: [{
107
107
  imports: [CommonModule, FormRoutingModule, FormIoModule],
@@ -155,10 +155,10 @@ class FormMappingService {
155
155
  }),
156
156
  };
157
157
  }
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormMappingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
159
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormMappingService, providedIn: 'root' }); }
158
160
  }
159
- FormMappingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormMappingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
160
- FormMappingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormMappingService, providedIn: 'root' });
161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormMappingService, decorators: [{
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormMappingService, decorators: [{
162
162
  type: Injectable,
163
163
  args: [{
164
164
  providedIn: 'root',
@@ -210,10 +210,10 @@ class FormTranslationService {
210
210
  }
211
211
  return false;
212
212
  }
213
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormTranslationService, deps: [{ token: i1$2.TranslateService }, { token: FormMappingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
214
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormTranslationService, providedIn: 'root' }); }
213
215
  }
214
- FormTranslationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormTranslationService, deps: [{ token: i1$2.TranslateService }, { token: FormMappingService }], target: i0.ɵɵFactoryTarget.Injectable });
215
- FormTranslationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormTranslationService, providedIn: 'root' });
216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormTranslationService, decorators: [{
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormTranslationService, decorators: [{
217
217
  type: Injectable,
218
218
  args: [{
219
219
  providedIn: 'root',
@@ -267,6 +267,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
267
267
  * See the License for the specific language governing permissions and
268
268
  * limitations under the License.
269
269
  */
270
+ /*
271
+ * Public API Surface of form
272
+ */
270
273
 
271
274
  /**
272
275
  * Generated bundle index. Do not edit.
@@ -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-2023 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} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {FormioForm} from '@formio/angular';\nimport {ConfigService} from '@valtimo/config';\nimport {InterceptorSkipHeader} from '@valtimo/security';\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: InterceptorSkipHeader,\n }\n );\n }\n\n getAllFormDefinitions(): Observable<Array<FormDefinitionOption>> {\n return this.http.get<Array<FormDefinitionOption>>(\n `${this.valtimoApiConfig.endpointUri}v1/form-definition`\n );\n }\n}\n","/*\n * Copyright 2015-2023 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-2023 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-2023 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 {FormioForm} from '@formio/angular';\nimport {ExtendedComponentSchema} from 'formiojs';\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-2023 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 {FormioForm} from '@formio/angular';\nimport {FormMappingService} from '../form-mapping/form-mapping.service';\nimport {ExtendedComponentSchema} from 'formiojs';\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-2023 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-2023 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-2023 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;MAaU,WAAW,CAAA;IAGtB,WACU,CAAA,aAA4B,EAC5B,IAAgB,EAAA;QADhB,IAAa,CAAA,aAAA,GAAb,aAAa,CAAe;QAC5B,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAExB,IAAI,CAAC,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;KACzD;AAED,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,CAAC;KACH;IAED,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;AACE,YAAA,OAAO,EAAE,qBAAqB;AAC/B,SAAA,CACF,CAAC;KACH;IAED,qBAAqB,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAClB,CAAA,EAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAA,kBAAA,CAAoB,CACzD,CAAC;KACH;+GAhCU,WAAW,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,aAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAX,IAAA,SA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AAK,CAAC,oBAAoB,CAAC,CAAC;yCA5BrD,WAAW;6CAAX,WAAW;CAiCvB"}
package/package.json CHANGED
@@ -1,19 +1,15 @@
1
1
  {
2
2
  "name": "@valtimo/form",
3
3
  "license": "EUPL-1.2",
4
- "version": "10.8.0",
4
+ "version": "11.1.0",
5
5
  "peerDependencies": {
6
- "@angular/common": "^14.3.0",
7
- "@angular/core": "^14.3.0"
6
+ "@angular/common": "^16.2.0",
7
+ "@angular/core": "^16.2.0"
8
8
  },
9
9
  "dependencies": {
10
- "tslib": "^2.5.0"
10
+ "tslib": "2.6.2"
11
11
  },
12
- "module": "fesm2015/valtimo-form.mjs",
13
- "es2020": "fesm2020/valtimo-form.mjs",
14
- "esm2020": "esm2020/valtimo-form.mjs",
15
- "fesm2020": "fesm2020/valtimo-form.mjs",
16
- "fesm2015": "fesm2015/valtimo-form.mjs",
12
+ "module": "fesm2022/valtimo-form.mjs",
17
13
  "typings": "index.d.ts",
18
14
  "exports": {
19
15
  "./package.json": {
@@ -21,11 +17,9 @@
21
17
  },
22
18
  ".": {
23
19
  "types": "./index.d.ts",
24
- "esm2020": "./esm2020/valtimo-form.mjs",
25
- "es2020": "./fesm2020/valtimo-form.mjs",
26
- "es2015": "./fesm2015/valtimo-form.mjs",
27
- "node": "./fesm2015/valtimo-form.mjs",
28
- "default": "./fesm2020/valtimo-form.mjs"
20
+ "esm2022": "./esm2022/valtimo-form.mjs",
21
+ "esm": "./esm2022/valtimo-form.mjs",
22
+ "default": "./fesm2022/valtimo-form.mjs"
29
23
  }
30
24
  },
31
25
  "sideEffects": false
@@ -1,47 +0,0 @@
1
- /*
2
- * Copyright 2015-2023 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 { InterceptorSkipHeader } from '@valtimo/security';
18
- import * as i0 from "@angular/core";
19
- import * as i1 from "@valtimo/config";
20
- import * as i2 from "@angular/common/http";
21
- export class FormService {
22
- constructor(configService, http) {
23
- this.configService = configService;
24
- this.http = http;
25
- this.valtimoApiConfig = configService.config.valtimoApi;
26
- }
27
- getFormDefinitionByName(formDefinitionName) {
28
- return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form/${formDefinitionName}`);
29
- }
30
- getFormDefinitionByNamePreFilled(formDefinitionName, documentId) {
31
- return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form-association/form-definition/${formDefinitionName}?documentId=${documentId}`, {
32
- headers: InterceptorSkipHeader,
33
- });
34
- }
35
- getAllFormDefinitions() {
36
- return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form-definition`);
37
- }
38
- }
39
- FormService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
40
- FormService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormService, providedIn: 'root' });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormService, decorators: [{
42
- type: Injectable,
43
- args: [{
44
- providedIn: 'root',
45
- }]
46
- }], ctorParameters: function () { return [{ type: i1.ConfigService }, { type: i2.HttpClient }]; } });
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc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YW1lOiBzdHJpbmcsXG4gICAgZG9jdW1lbnRJZDogc3RyaW5nXG4gICk6IE9ic2VydmFibGU8Rm9ybWlvRm9ybT4ge1xuICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0PEZvcm1pb0Zvcm0+KFxuICAgICAgYCR7dGhpcy52YWx0aW1vQXBpQ29uZmlnLmVuZHBvaW50VXJpfXYxL2Zvcm0tYXNzb2NpYXRpb24vZm9ybS1kZWZpbml0aW9uLyR7Zm9ybURlZmluaXRpb25OYW1lfT9kb2N1bWVudElkPSR7ZG9jdW1lbnRJZH1gLFxuICAgICAge1xuICAgICAgICBoZWFkZXJzOiBJbnRlcmNlcHRvclNraXBIZWFkZXIsXG4gICAgICB9XG4gICAgKTtcbiAgfVxuXG4gIGdldEFsbEZvcm1EZWZpbml0aW9ucygpOiBPYnNlcnZhYmxlPEFycmF5PEZvcm1EZWZpbml0aW9uT3B0aW9uPj4ge1xuICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0PEFycmF5PEZvcm1EZWZpbml0aW9uT3B0aW9uPj4oXG4gICAgICBgJHt0aGlzLnZhbHRpbW9BcGlDb25maWcuZW5kcG9pbnRVcml9djEvZm9ybS1kZWZpbml0aW9uYFxuICAgICk7XG4gIH1cbn1cbiJdfQ==
@@ -1,244 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, NgModule } from '@angular/core';
3
- import { InterceptorSkipHeader } from '@valtimo/security';
4
- import * as i1 from '@valtimo/config';
5
- import * as i2 from '@angular/common/http';
6
- import { CommonModule } from '@angular/common';
7
- import * as i1$1 from '@angular/router';
8
- import { RouterModule } from '@angular/router';
9
- import { FormIoModule } from '@valtimo/components';
10
- import * as i1$2 from '@ngx-translate/core';
11
-
12
- /*
13
- * Copyright 2015-2023 Ritense BV, the Netherlands.
14
- *
15
- * Licensed under EUPL, Version 1.2 (the "License");
16
- * you may not use this file except in compliance with the License.
17
- * You may obtain a copy of the License at
18
- *
19
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
20
- *
21
- * Unless required by applicable law or agreed to in writing, software
22
- * distributed under the License is distributed on an "AS IS" basis,
23
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
- * See the License for the specific language governing permissions and
25
- * limitations under the License.
26
- */
27
- class FormService {
28
- constructor(configService, http) {
29
- this.configService = configService;
30
- this.http = http;
31
- this.valtimoApiConfig = configService.config.valtimoApi;
32
- }
33
- getFormDefinitionByName(formDefinitionName) {
34
- return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form/${formDefinitionName}`);
35
- }
36
- getFormDefinitionByNamePreFilled(formDefinitionName, documentId) {
37
- return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form-association/form-definition/${formDefinitionName}?documentId=${documentId}`, {
38
- headers: InterceptorSkipHeader,
39
- });
40
- }
41
- getAllFormDefinitions() {
42
- return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/form-definition`);
43
- }
44
- }
45
- FormService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
46
- FormService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormService, providedIn: 'root' });
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormService, decorators: [{
48
- type: Injectable,
49
- args: [{
50
- providedIn: 'root',
51
- }]
52
- }], ctorParameters: function () { return [{ type: i1.ConfigService }, { type: i2.HttpClient }]; } });
53
-
54
- /*
55
- * Copyright 2015-2023 Ritense BV, the Netherlands.
56
- *
57
- * Licensed under EUPL, Version 1.2 (the "License");
58
- * you may not use this file except in compliance with the License.
59
- * You may obtain a copy of the License at
60
- *
61
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
62
- *
63
- * Unless required by applicable law or agreed to in writing, software
64
- * distributed under the License is distributed on an "AS IS" basis,
65
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
66
- * See the License for the specific language governing permissions and
67
- * limitations under the License.
68
- */
69
- const routes = [];
70
- class FormRoutingModule {
71
- }
72
- FormRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
73
- FormRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, i1$1.RouterModule], exports: [RouterModule] });
74
- FormRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormRoutingModule, decorators: [{
76
- type: NgModule,
77
- args: [{
78
- declarations: [],
79
- imports: [CommonModule, RouterModule.forChild(routes)],
80
- exports: [RouterModule],
81
- }]
82
- }] });
83
-
84
- /*
85
- * Copyright 2015-2023 Ritense BV, the Netherlands.
86
- *
87
- * Licensed under EUPL, Version 1.2 (the "License");
88
- * you may not use this file except in compliance with the License.
89
- * You may obtain a copy of the License at
90
- *
91
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
92
- *
93
- * Unless required by applicable law or agreed to in writing, software
94
- * distributed under the License is distributed on an "AS IS" basis,
95
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
96
- * See the License for the specific language governing permissions and
97
- * limitations under the License.
98
- */
99
- class FormModule {
100
- }
101
- FormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
102
- FormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] });
103
- FormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormModule, imports: [CommonModule, FormRoutingModule, FormIoModule] });
104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormModule, decorators: [{
105
- type: NgModule,
106
- args: [{
107
- imports: [CommonModule, FormRoutingModule, FormIoModule],
108
- exports: [],
109
- }]
110
- }] });
111
-
112
- /*
113
- * Copyright 2015-2023 Ritense BV, the Netherlands.
114
- *
115
- * Licensed under EUPL, Version 1.2 (the "License");
116
- * you may not use this file except in compliance with the License.
117
- * You may obtain a copy of the License at
118
- *
119
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
120
- *
121
- * Unless required by applicable law or agreed to in writing, software
122
- * distributed under the License is distributed on an "AS IS" basis,
123
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
124
- * See the License for the specific language governing permissions and
125
- * limitations under the License.
126
- */
127
- class FormMappingService {
128
- mapComponents(form, mappingFunction) {
129
- var _a, _b;
130
- const recursiveMappingFunction = (component) => {
131
- const mappedComponent = mappingFunction(component);
132
- const innerComponents = component.components;
133
- const isColumns = (component === null || component === void 0 ? void 0 : component.type) === 'columns' && component.columns;
134
- if (innerComponents && innerComponents.length > 0) {
135
- return Object.assign(Object.assign({}, mappedComponent), { components: innerComponents.map((innerComponent) => recursiveMappingFunction(innerComponent)) });
136
- }
137
- if (isColumns) {
138
- return Object.assign(Object.assign({}, component), { columns: component.columns.map((column) => {
139
- var _a;
140
- return (Object.assign(Object.assign({}, column), { components: (_a = column === null || column === void 0 ? void 0 : column.components) === null || _a === void 0 ? void 0 : _a.map((innerComponent) => recursiveMappingFunction(innerComponent)) }));
141
- }) });
142
- }
143
- return mappedComponent;
144
- };
145
- 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 && {
146
- components: (_b = form === null || form === void 0 ? void 0 : form.components) === null || _b === void 0 ? void 0 : _b.map(component => recursiveMappingFunction(component)),
147
- }));
148
- }
149
- }
150
- FormMappingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormMappingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
151
- FormMappingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormMappingService, providedIn: 'root' });
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormMappingService, decorators: [{
153
- type: Injectable,
154
- args: [{
155
- providedIn: 'root',
156
- }]
157
- }] });
158
-
159
- /*
160
- * Copyright 2015-2023 Ritense BV, the Netherlands.
161
- *
162
- * Licensed under EUPL, Version 1.2 (the "License");
163
- * you may not use this file except in compliance with the License.
164
- * You may obtain a copy of the License at
165
- *
166
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
167
- *
168
- * Unless required by applicable law or agreed to in writing, software
169
- * distributed under the License is distributed on an "AS IS" basis,
170
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
171
- * See the License for the specific language governing permissions and
172
- * limitations under the License.
173
- */
174
- class FormTranslationService {
175
- constructor(translateService, formMappingService) {
176
- this.translateService = translateService;
177
- this.formMappingService = formMappingService;
178
- }
179
- translateForm(form) {
180
- const translateFunction = (component) => {
181
- const labelTranslation = this.getTranslation(`${component.label}`);
182
- const titleTranslation = this.getTranslation(`${component.title}`);
183
- const contentTranslation = this.getTranslation(`${component.content}`);
184
- const placeholderTranslation = this.getTranslation(`${component.placeholder}`);
185
- const tooltipTranslation = this.getTranslation(`${component.tooltip}`);
186
- 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}` }));
187
- };
188
- return this.formMappingService.mapComponents(form, translateFunction);
189
- }
190
- getTranslation(translationKey) {
191
- const translation = this.translateService.instant(translationKey);
192
- if (translation !== translationKey) {
193
- return translation;
194
- }
195
- return false;
196
- }
197
- }
198
- FormTranslationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormTranslationService, deps: [{ token: i1$2.TranslateService }, { token: FormMappingService }], target: i0.ɵɵFactoryTarget.Injectable });
199
- FormTranslationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormTranslationService, providedIn: 'root' });
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormTranslationService, decorators: [{
201
- type: Injectable,
202
- args: [{
203
- providedIn: 'root',
204
- }]
205
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }, { type: FormMappingService }]; } });
206
-
207
- /*
208
- * Copyright 2015-2023 Ritense BV, the Netherlands.
209
- *
210
- * Licensed under EUPL, Version 1.2 (the "License");
211
- * you may not use this file except in compliance with the License.
212
- * You may obtain a copy of the License at
213
- *
214
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
215
- *
216
- * Unless required by applicable law or agreed to in writing, software
217
- * distributed under the License is distributed on an "AS IS" basis,
218
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
219
- * See the License for the specific language governing permissions and
220
- * limitations under the License.
221
- */
222
-
223
- /*
224
- * Copyright 2015-2023 Ritense BV, the Netherlands.
225
- *
226
- * Licensed under EUPL, Version 1.2 (the "License");
227
- * you may not use this file except in compliance with the License.
228
- * You may obtain a copy of the License at
229
- *
230
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
231
- *
232
- * Unless required by applicable law or agreed to in writing, software
233
- * distributed under the License is distributed on an "AS IS" basis,
234
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
235
- * See the License for the specific language governing permissions and
236
- * limitations under the License.
237
- */
238
-
239
- /**
240
- * Generated bundle index. Do not edit.
241
- */
242
-
243
- export { FormMappingService, FormModule, FormService, FormTranslationService };
244
- //# sourceMappingURL=valtimo-form.mjs.map
@@ -1 +0,0 @@
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/index.ts","../../../../projects/valtimo/form/src/public_api.ts","../../../../projects/valtimo/form/src/valtimo-form.ts"],"sourcesContent":["/*\n * Copyright 2015-2023 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} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {FormioForm} from '@formio/angular';\nimport {ConfigService} from '@valtimo/config';\nimport {InterceptorSkipHeader} from '@valtimo/security';\nimport {FormDefinitionOption} from './models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class FormService {\n private valtimoApiConfig: any;\n\n constructor(private configService: ConfigService, private http: HttpClient) {\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/form-association/form-definition/${formDefinitionName}?documentId=${documentId}`,\n {\n headers: InterceptorSkipHeader,\n }\n );\n }\n\n getAllFormDefinitions(): Observable<Array<FormDefinitionOption>> {\n return this.http.get<Array<FormDefinitionOption>>(\n `${this.valtimoApiConfig.endpointUri}v1/form-definition`\n );\n }\n}\n","/*\n * Copyright 2015-2023 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-2023 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-2023 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 {FormioForm} from '@formio/angular';\nimport {ExtendedComponentSchema} from 'formiojs';\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-2023 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 {FormioForm} from '@formio/angular';\nimport {FormMappingService} from '../form-mapping/form-mapping.service';\nimport {ExtendedComponentSchema} from 'formiojs';\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-2023 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-2023 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;MAaU,WAAW,CAAA;IAGtB,WAAoB,CAAA,aAA4B,EAAU,IAAgB,EAAA;AAAtD,QAAA,IAAa,CAAA,aAAA,GAAb,aAAa,CAAe;AAAU,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QACxE,IAAI,CAAC,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;KACzD;AAED,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,CAAC;KACH;IAED,gCAAgC,CAC9B,kBAA0B,EAC1B,UAAkB,EAAA;AAElB,QAAA,OAAO,IAAI,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C,EAAC,GACrE,kBAAkB,IAAI,EAAC,OAAO,EAAE,CAAG,EAAA,kBAAkB,CAAE,CAAA,EAAC,EAC5D,CAAA;AACJ,SAAC,CAAC;QAEF,OAAO,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;KACvE;AAEO,IAAA,cAAc,CAAC,cAAsB,EAAA;QAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAElE,IAAI,WAAW,KAAK,cAAc,EAAE;AAClC,YAAA,OAAO,WAAW,CAAC;AACpB,SAAA;AAED,QAAA,OAAO,KAAK,CAAC;KACd;;mHAnCU,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,sBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,cAFrB,MAAM,EAAA,CAAA,CAAA;2FAEP,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAHlC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;ACxBD;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
@@ -1 +0,0 @@
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-2023 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} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {FormioForm} from '@formio/angular';\nimport {ConfigService} from '@valtimo/config';\nimport {InterceptorSkipHeader} from '@valtimo/security';\nimport {FormDefinitionOption} from './models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class FormService {\n private valtimoApiConfig: any;\n\n constructor(private configService: ConfigService, private http: HttpClient) {\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/form-association/form-definition/${formDefinitionName}?documentId=${documentId}`,\n {\n headers: InterceptorSkipHeader,\n }\n );\n }\n\n getAllFormDefinitions(): Observable<Array<FormDefinitionOption>> {\n return this.http.get<Array<FormDefinitionOption>>(\n `${this.valtimoApiConfig.endpointUri}v1/form-definition`\n );\n }\n}\n","/*\n * Copyright 2015-2023 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-2023 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-2023 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 {FormioForm} from '@formio/angular';\nimport {ExtendedComponentSchema} from 'formiojs';\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-2023 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 {FormioForm} from '@formio/angular';\nimport {FormMappingService} from '../form-mapping/form-mapping.service';\nimport {ExtendedComponentSchema} from 'formiojs';\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-2023 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-2023 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-2023 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;MAaU,WAAW,CAAA;IAGtB,WAAoB,CAAA,aAA4B,EAAU,IAAgB,EAAA;QAAtD,IAAa,CAAA,aAAA,GAAb,aAAa,CAAe;QAAU,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QACxE,IAAI,CAAC,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;KACzD;AAED,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,CAAC;KACH;IAED,gCAAgC,CAC9B,kBAA0B,EAC1B,UAAkB,EAAA;AAElB,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAClB,CAAG,EAAA,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAA,oCAAA,EAAuC,kBAAkB,CAAe,YAAA,EAAA,UAAU,EAAE,EACxH;AAC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