@valtimo/form-management 4.15.3-next-main.14 → 4.15.3-next-main.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/valtimo-form-management.umd.js +913 -913
- package/esm2015/lib/form-management-create/form-management-create.component.js +81 -81
- package/esm2015/lib/form-management-edit/form-management-edit.component.js +146 -146
- package/esm2015/lib/form-management-list/form-management-list.component.js +72 -72
- package/esm2015/lib/form-management-routing.module.js +57 -57
- package/esm2015/lib/form-management-upload/form-management-upload.component.js +149 -149
- package/esm2015/lib/form-management.component.js +30 -30
- package/esm2015/lib/form-management.module.js +54 -54
- package/esm2015/lib/form-management.service.js +53 -53
- package/esm2015/public-api.js +21 -21
- package/esm2015/valtimo-form-management.js +9 -9
- package/fesm2015/valtimo-form-management.js +601 -601
- package/lib/form-management-create/form-management-create.component.d.ts +20 -20
- package/lib/form-management-edit/form-management-edit.component.d.ts +31 -31
- package/lib/form-management-list/form-management-list.component.d.ts +24 -24
- package/lib/form-management-routing.module.d.ts +2 -2
- package/lib/form-management-upload/form-management-upload.component.d.ts +37 -37
- package/lib/form-management.component.d.ts +5 -5
- package/lib/form-management.module.d.ts +2 -2
- package/lib/form-management.service.d.ts +15 -15
- package/package.json +1 -1
- package/public-api.d.ts +3 -3
- package/valtimo-form-management.d.ts +9 -9
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
-
import { AlertService } from '@valtimo/components';
|
|
5
|
-
import { FormManagementService } from '../form-management.service';
|
|
6
|
-
export declare class FormManagementCreateComponent implements OnInit {
|
|
7
|
-
private formManagementService;
|
|
8
|
-
private formBuilder;
|
|
9
|
-
private router;
|
|
10
|
-
private alertService;
|
|
11
|
-
private route;
|
|
12
|
-
form: FormGroup;
|
|
13
|
-
constructor(formManagementService: FormManagementService, formBuilder: FormBuilder, router: Router, alertService: AlertService, route: ActivatedRoute);
|
|
14
|
-
get formControls(): {
|
|
15
|
-
[key: string]: import("@angular/forms").AbstractControl;
|
|
16
|
-
};
|
|
17
|
-
ngOnInit(): void;
|
|
18
|
-
reset(): void;
|
|
19
|
-
createFormDefinition(): void;
|
|
20
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { AlertService } from '@valtimo/components';
|
|
5
|
+
import { FormManagementService } from '../form-management.service';
|
|
6
|
+
export declare class FormManagementCreateComponent implements OnInit {
|
|
7
|
+
private formManagementService;
|
|
8
|
+
private formBuilder;
|
|
9
|
+
private router;
|
|
10
|
+
private alertService;
|
|
11
|
+
private route;
|
|
12
|
+
form: FormGroup;
|
|
13
|
+
constructor(formManagementService: FormManagementService, formBuilder: FormBuilder, router: Router, alertService: AlertService, route: ActivatedRoute);
|
|
14
|
+
get formControls(): {
|
|
15
|
+
[key: string]: import("@angular/forms").AbstractControl;
|
|
16
|
+
};
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
reset(): void;
|
|
19
|
+
createFormDefinition(): void;
|
|
20
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { FormManagementService } from '../form-management.service';
|
|
3
|
-
import { AlertService } from '@valtimo/components';
|
|
4
|
-
import { FormDefinition } from '@valtimo/contract';
|
|
5
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
|
-
import { BehaviorSubject } from 'rxjs';
|
|
7
|
-
import { FormioForm } from 'angular-formio';
|
|
8
|
-
export declare class FormManagementEditComponent implements OnInit, OnDestroy {
|
|
9
|
-
private formManagementService;
|
|
10
|
-
private alertService;
|
|
11
|
-
private route;
|
|
12
|
-
private router;
|
|
13
|
-
readonly showModal$: BehaviorSubject<boolean>;
|
|
14
|
-
readonly reloading$: BehaviorSubject<boolean>;
|
|
15
|
-
modifiedFormDefinition: FormioForm;
|
|
16
|
-
formDefinition: FormDefinition | null;
|
|
17
|
-
private alertSub;
|
|
18
|
-
private formDefinitionId;
|
|
19
|
-
constructor(formManagementService: FormManagementService, alertService: AlertService, route: ActivatedRoute, router: Router);
|
|
20
|
-
ngOnInit(): void;
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
|
-
loadFormDefinition(): void;
|
|
23
|
-
modifyFormDefinition(): void;
|
|
24
|
-
formBuilderChanged(event: any): void;
|
|
25
|
-
delete(): void;
|
|
26
|
-
deleteFormDefinition(): void;
|
|
27
|
-
downloadFormDefinition(): void;
|
|
28
|
-
showModal(): void;
|
|
29
|
-
setFormDefinition(formDefinition: any): void;
|
|
30
|
-
private checkToOpenUploadModal;
|
|
31
|
-
}
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormManagementService } from '../form-management.service';
|
|
3
|
+
import { AlertService } from '@valtimo/components';
|
|
4
|
+
import { FormDefinition } from '@valtimo/contract';
|
|
5
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
|
+
import { BehaviorSubject } from 'rxjs';
|
|
7
|
+
import { FormioForm } from 'angular-formio';
|
|
8
|
+
export declare class FormManagementEditComponent implements OnInit, OnDestroy {
|
|
9
|
+
private formManagementService;
|
|
10
|
+
private alertService;
|
|
11
|
+
private route;
|
|
12
|
+
private router;
|
|
13
|
+
readonly showModal$: BehaviorSubject<boolean>;
|
|
14
|
+
readonly reloading$: BehaviorSubject<boolean>;
|
|
15
|
+
modifiedFormDefinition: FormioForm;
|
|
16
|
+
formDefinition: FormDefinition | null;
|
|
17
|
+
private alertSub;
|
|
18
|
+
private formDefinitionId;
|
|
19
|
+
constructor(formManagementService: FormManagementService, alertService: AlertService, route: ActivatedRoute, router: Router);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
loadFormDefinition(): void;
|
|
23
|
+
modifyFormDefinition(): void;
|
|
24
|
+
formBuilderChanged(event: any): void;
|
|
25
|
+
delete(): void;
|
|
26
|
+
deleteFormDefinition(): void;
|
|
27
|
+
downloadFormDefinition(): void;
|
|
28
|
+
showModal(): void;
|
|
29
|
+
setFormDefinition(formDefinition: any): void;
|
|
30
|
+
private checkToOpenUploadModal;
|
|
31
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormDefinition } from '@valtimo/contract';
|
|
3
|
-
import { FormManagementService } from '../form-management.service';
|
|
4
|
-
import { Router } from '@angular/router';
|
|
5
|
-
export declare class FormManagementListComponent implements OnInit {
|
|
6
|
-
private formManagementService;
|
|
7
|
-
private router;
|
|
8
|
-
formDefinitions: FormDefinition[];
|
|
9
|
-
formDefinitionFields: any[];
|
|
10
|
-
pagination: {
|
|
11
|
-
collectionSize: number;
|
|
12
|
-
page: number;
|
|
13
|
-
size: number;
|
|
14
|
-
maxPaginationItemSize: number;
|
|
15
|
-
};
|
|
16
|
-
pageParam: number;
|
|
17
|
-
paginationClicked(page: any): void;
|
|
18
|
-
constructor(formManagementService: FormManagementService, router: Router);
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
paginationSet(): void;
|
|
21
|
-
loadFormDefinitions(searchTerm?: string): void;
|
|
22
|
-
editFormDefinition(formDefinition: FormDefinition): void;
|
|
23
|
-
searchTermEntered(searchTerm: string): void;
|
|
24
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormDefinition } from '@valtimo/contract';
|
|
3
|
+
import { FormManagementService } from '../form-management.service';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
export declare class FormManagementListComponent implements OnInit {
|
|
6
|
+
private formManagementService;
|
|
7
|
+
private router;
|
|
8
|
+
formDefinitions: FormDefinition[];
|
|
9
|
+
formDefinitionFields: any[];
|
|
10
|
+
pagination: {
|
|
11
|
+
collectionSize: number;
|
|
12
|
+
page: number;
|
|
13
|
+
size: number;
|
|
14
|
+
maxPaginationItemSize: number;
|
|
15
|
+
};
|
|
16
|
+
pageParam: number;
|
|
17
|
+
paginationClicked(page: any): void;
|
|
18
|
+
constructor(formManagementService: FormManagementService, router: Router);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
paginationSet(): void;
|
|
21
|
+
loadFormDefinitions(searchTerm?: string): void;
|
|
22
|
+
editFormDefinition(formDefinition: FormDefinition): void;
|
|
23
|
+
searchTermEntered(searchTerm: string): void;
|
|
24
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class FormManagementRoutingModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class FormManagementRoutingModule {
|
|
2
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { ModalComponent } from '@valtimo/components';
|
|
4
|
-
import { DocumentService } from '@valtimo/document';
|
|
5
|
-
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
6
|
-
export declare class FormManagementUploadComponent implements AfterViewInit, OnDestroy {
|
|
7
|
-
private readonly documentService;
|
|
8
|
-
private readonly translateService;
|
|
9
|
-
modal: ModalComponent;
|
|
10
|
-
show$: Observable<boolean>;
|
|
11
|
-
definitionUploaded: EventEmitter<any>;
|
|
12
|
-
readonly clear$: Subject<unknown>;
|
|
13
|
-
readonly jsonString$: BehaviorSubject<string>;
|
|
14
|
-
readonly error$: BehaviorSubject<string>;
|
|
15
|
-
readonly disabled$: BehaviorSubject<boolean>;
|
|
16
|
-
private showSubscription;
|
|
17
|
-
private fileSubscription;
|
|
18
|
-
private errorSubscription;
|
|
19
|
-
private readonly file$;
|
|
20
|
-
constructor(documentService: DocumentService, translateService: TranslateService);
|
|
21
|
-
ngAfterViewInit(): void;
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
|
-
setFile(file: File): void;
|
|
24
|
-
uploadDefinition(): void;
|
|
25
|
-
private openErrorSubscription;
|
|
26
|
-
private closeErrorSubscription;
|
|
27
|
-
private clearError;
|
|
28
|
-
private openFileSubscription;
|
|
29
|
-
private openShowSubscription;
|
|
30
|
-
private clearJsonString;
|
|
31
|
-
private clearDropzone;
|
|
32
|
-
private showModal;
|
|
33
|
-
private hideModal;
|
|
34
|
-
private stringIsValidJson;
|
|
35
|
-
private disable;
|
|
36
|
-
private enable;
|
|
37
|
-
}
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { ModalComponent } from '@valtimo/components';
|
|
4
|
+
import { DocumentService } from '@valtimo/document';
|
|
5
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
6
|
+
export declare class FormManagementUploadComponent implements AfterViewInit, OnDestroy {
|
|
7
|
+
private readonly documentService;
|
|
8
|
+
private readonly translateService;
|
|
9
|
+
modal: ModalComponent;
|
|
10
|
+
show$: Observable<boolean>;
|
|
11
|
+
definitionUploaded: EventEmitter<any>;
|
|
12
|
+
readonly clear$: Subject<unknown>;
|
|
13
|
+
readonly jsonString$: BehaviorSubject<string>;
|
|
14
|
+
readonly error$: BehaviorSubject<string>;
|
|
15
|
+
readonly disabled$: BehaviorSubject<boolean>;
|
|
16
|
+
private showSubscription;
|
|
17
|
+
private fileSubscription;
|
|
18
|
+
private errorSubscription;
|
|
19
|
+
private readonly file$;
|
|
20
|
+
constructor(documentService: DocumentService, translateService: TranslateService);
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
setFile(file: File): void;
|
|
24
|
+
uploadDefinition(): void;
|
|
25
|
+
private openErrorSubscription;
|
|
26
|
+
private closeErrorSubscription;
|
|
27
|
+
private clearError;
|
|
28
|
+
private openFileSubscription;
|
|
29
|
+
private openShowSubscription;
|
|
30
|
+
private clearJsonString;
|
|
31
|
+
private clearDropzone;
|
|
32
|
+
private showModal;
|
|
33
|
+
private hideModal;
|
|
34
|
+
private stringIsValidJson;
|
|
35
|
+
private disable;
|
|
36
|
+
private enable;
|
|
37
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
export declare class FormManagementComponent implements OnInit {
|
|
3
|
-
constructor();
|
|
4
|
-
ngOnInit(): void;
|
|
5
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
export declare class FormManagementComponent implements OnInit {
|
|
3
|
+
constructor();
|
|
4
|
+
ngOnInit(): void;
|
|
5
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class FormManagementModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class FormManagementModule {
|
|
2
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { CreateFormDefinitionRequest, FormDefinition, ModifyFormDefinitionRequest } from '@valtimo/contract';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { ConfigService } from '@valtimo/config';
|
|
5
|
-
export declare class FormManagementService {
|
|
6
|
-
private http;
|
|
7
|
-
private configService;
|
|
8
|
-
private valtimoApiConfig;
|
|
9
|
-
constructor(http: HttpClient, configService: ConfigService);
|
|
10
|
-
getFormDefinition(formDefinitionId: string): Observable<FormDefinition>;
|
|
11
|
-
queryFormDefinitions(params?: any): Observable<any>;
|
|
12
|
-
createFormDefinition(request: CreateFormDefinitionRequest): Observable<FormDefinition>;
|
|
13
|
-
modifyFormDefinition(request: ModifyFormDefinitionRequest): Observable<FormDefinition>;
|
|
14
|
-
deleteFormDefinition(formDefinitionId: string): Observable<void>;
|
|
15
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { CreateFormDefinitionRequest, FormDefinition, ModifyFormDefinitionRequest } from '@valtimo/contract';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ConfigService } from '@valtimo/config';
|
|
5
|
+
export declare class FormManagementService {
|
|
6
|
+
private http;
|
|
7
|
+
private configService;
|
|
8
|
+
private valtimoApiConfig;
|
|
9
|
+
constructor(http: HttpClient, configService: ConfigService);
|
|
10
|
+
getFormDefinition(formDefinitionId: string): Observable<FormDefinition>;
|
|
11
|
+
queryFormDefinitions(params?: any): Observable<any>;
|
|
12
|
+
createFormDefinition(request: CreateFormDefinitionRequest): Observable<FormDefinition>;
|
|
13
|
+
modifyFormDefinition(request: ModifyFormDefinitionRequest): Observable<FormDefinition>;
|
|
14
|
+
deleteFormDefinition(formDefinitionId: string): Observable<void>;
|
|
15
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './lib/form-management.service';
|
|
2
|
-
export * from './lib/form-management.component';
|
|
3
|
-
export * from './lib/form-management.module';
|
|
1
|
+
export * from './lib/form-management.service';
|
|
2
|
+
export * from './lib/form-management.component';
|
|
3
|
+
export * from './lib/form-management.module';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
export { FormManagementCreateComponent as ɵa } from './lib/form-management-create/form-management-create.component';
|
|
6
|
-
export { FormManagementEditComponent as ɵc } from './lib/form-management-edit/form-management-edit.component';
|
|
7
|
-
export { FormManagementListComponent as ɵb } from './lib/form-management-list/form-management-list.component';
|
|
8
|
-
export { FormManagementRoutingModule as ɵe } from './lib/form-management-routing.module';
|
|
9
|
-
export { FormManagementUploadComponent as ɵd } from './lib/form-management-upload/form-management-upload.component';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
export { FormManagementCreateComponent as ɵa } from './lib/form-management-create/form-management-create.component';
|
|
6
|
+
export { FormManagementEditComponent as ɵc } from './lib/form-management-edit/form-management-edit.component';
|
|
7
|
+
export { FormManagementListComponent as ɵb } from './lib/form-management-list/form-management-list.component';
|
|
8
|
+
export { FormManagementRoutingModule as ɵe } from './lib/form-management-routing.module';
|
|
9
|
+
export { FormManagementUploadComponent as ɵd } from './lib/form-management-upload/form-management-upload.component';
|