@formio/angular 10.0.0 → 10.0.1
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/FormioBaseComponent.d.ts +94 -0
- package/FormioBaseComponent.d.ts.map +1 -0
- package/auth/auth.component.d.ts +6 -0
- package/auth/auth.component.d.ts.map +1 -0
- package/auth/auth.config.d.ts +63 -0
- package/auth/auth.config.d.ts.map +1 -0
- package/auth/auth.module.d.ts +17 -0
- package/auth/auth.module.d.ts.map +1 -0
- package/auth/auth.routes.d.ts +4 -0
- package/auth/auth.routes.d.ts.map +1 -0
- package/auth/auth.service.d.ts +41 -0
- package/auth/auth.service.d.ts.map +1 -0
- package/auth/formio-angular-auth.d.ts.map +1 -0
- package/auth/index.d.ts +9 -147
- package/auth/index.d.ts.map +1 -1
- package/auth/login/login.component.d.ts +10 -0
- package/auth/login/login.component.d.ts.map +1 -0
- package/auth/register/register.component.d.ts +10 -0
- package/auth/register/register.component.d.ts.map +1 -0
- package/auth/resetpass/resetpass.component.d.ts +9 -0
- package/auth/resetpass/resetpass.component.d.ts.map +1 -0
- package/components/alerts/formio.alerts.component.d.ts +12 -0
- package/components/alerts/formio.alerts.component.d.ts.map +1 -0
- package/components/alerts/formio.alerts.d.ts +12 -0
- package/components/alerts/formio.alerts.d.ts.map +1 -0
- package/components/alerts/parse-html-content.pipe.d.ts +8 -0
- package/components/alerts/parse-html-content.pipe.d.ts.map +1 -0
- package/components/formbuilder/formbuilder.component.d.ts +37 -0
- package/components/formbuilder/formbuilder.component.d.ts.map +1 -0
- package/components/formio/formio.component.d.ts +15 -0
- package/components/formio/formio.component.d.ts.map +1 -0
- package/components/formioreport/formioreport.component.d.ts +21 -0
- package/components/formioreport/formioreport.component.d.ts.map +1 -0
- package/components/loader/formio.loader.component.d.ts +7 -0
- package/components/loader/formio.loader.component.d.ts.map +1 -0
- package/core.d.ts +17 -0
- package/core.d.ts.map +1 -0
- package/custom-tags.service.d.ts +8 -0
- package/custom-tags.service.d.ts.map +1 -0
- package/embed/app.service.d.ts +28 -0
- package/embed/app.service.d.ts.map +1 -0
- package/embed/builder.component.d.ts +19 -0
- package/embed/builder.component.d.ts.map +1 -0
- package/embed/embed.module.d.ts +10 -0
- package/embed/embed.module.d.ts.map +1 -0
- package/embed/formio-angular-embed.d.ts.map +1 -0
- package/embed/formio.component.d.ts +21 -0
- package/embed/formio.component.d.ts.map +1 -0
- package/embed/index.d.ts +7 -73
- package/embed/index.d.ts.map +1 -1
- package/fesm2022/formio-angular-auth.mjs +22 -22
- package/fesm2022/formio-angular-embed.mjs +13 -13
- package/fesm2022/formio-angular-embed.mjs.map +1 -1
- package/fesm2022/formio-angular-grid.mjs +40 -40
- package/fesm2022/formio-angular-grid.mjs.map +1 -1
- package/fesm2022/formio-angular-manager.mjs +43 -43
- package/fesm2022/formio-angular-manager.mjs.map +1 -1
- package/fesm2022/formio-angular-resource.mjs +31 -31
- package/fesm2022/formio-angular.mjs +34 -34
- package/fesm2022/formio-angular.mjs.map +1 -1
- package/formio-angular.d.ts.map +1 -0
- package/formio-promise.service.d.ts +16 -0
- package/formio-promise.service.d.ts.map +1 -0
- package/formio.common.d.ts +68 -0
- package/formio.common.d.ts.map +1 -0
- package/formio.config.d.ts +21 -0
- package/formio.config.d.ts.map +1 -0
- package/formio.module.d.ts +15 -0
- package/formio.module.d.ts.map +1 -0
- package/formio.service.d.ts +18 -0
- package/formio.service.d.ts.map +1 -0
- package/formio.utils.d.ts +2 -0
- package/formio.utils.d.ts.map +1 -0
- package/grid/GridBodyComponent.d.ts +35 -0
- package/grid/GridBodyComponent.d.ts.map +1 -0
- package/grid/GridFooterComponent.d.ts +20 -0
- package/grid/GridFooterComponent.d.ts.map +1 -0
- package/grid/GridHeaderComponent.d.ts +16 -0
- package/grid/GridHeaderComponent.d.ts.map +1 -0
- package/grid/form/FormGridBody.component.d.ts +19 -0
- package/grid/form/FormGridBody.component.d.ts.map +1 -0
- package/grid/form/FormGridFooter.component.d.ts +10 -0
- package/grid/form/FormGridFooter.component.d.ts.map +1 -0
- package/grid/form/FormGridHeader.component.d.ts +11 -0
- package/grid/form/FormGridHeader.component.d.ts.map +1 -0
- package/grid/form/index.d.ts +10 -0
- package/grid/form/index.d.ts.map +1 -0
- package/grid/form/time-since.pipe.d.ts +8 -0
- package/grid/form/time-since.pipe.d.ts.map +1 -0
- package/grid/formio-angular-grid.d.ts.map +1 -0
- package/grid/grid.component.d.ts +59 -0
- package/grid/grid.component.d.ts.map +1 -0
- package/grid/grid.module.d.ts +23 -0
- package/grid/grid.module.d.ts.map +1 -0
- package/grid/grid.service.d.ts +10 -0
- package/grid/grid.service.d.ts.map +1 -0
- package/grid/index.d.ts +13 -237
- package/grid/index.d.ts.map +1 -1
- package/grid/submission/SubmissionGridBody.component.d.ts +19 -0
- package/grid/submission/SubmissionGridBody.component.d.ts.map +1 -0
- package/grid/submission/SubmissionGridFooter.component.d.ts +10 -0
- package/grid/submission/SubmissionGridFooter.component.d.ts.map +1 -0
- package/grid/submission/SubmissionGridHeader.component.d.ts +30 -0
- package/grid/submission/SubmissionGridHeader.component.d.ts.map +1 -0
- package/grid/submission/index.d.ts +10 -0
- package/grid/submission/index.d.ts.map +1 -0
- package/grid/types/grid-column.d.ts +7 -0
- package/grid/types/grid-column.d.ts.map +1 -0
- package/grid/types/grid-footer-positions.d.ts +6 -0
- package/grid/types/grid-footer-positions.d.ts.map +1 -0
- package/grid/types/grid-header.d.ts +13 -0
- package/grid/types/grid-header.d.ts.map +1 -0
- package/index.d.ts +4 -353
- package/index.d.ts.map +1 -1
- package/manager/create/create.component.d.ts +9 -0
- package/manager/create/create.component.d.ts.map +1 -0
- package/manager/delete/delete.component.d.ts +18 -0
- package/manager/delete/delete.component.d.ts.map +1 -0
- package/manager/edit/edit.component.d.ts +31 -0
- package/manager/edit/edit.component.d.ts.map +1 -0
- package/manager/form/form.component.d.ts +29 -0
- package/manager/form/form.component.d.ts.map +1 -0
- package/manager/form-manager.config.d.ts +30 -0
- package/manager/form-manager.config.d.ts.map +1 -0
- package/manager/form-manager.module.d.ts +28 -0
- package/manager/form-manager.module.d.ts.map +1 -0
- package/manager/form-manager.routes.d.ts +4 -0
- package/manager/form-manager.routes.d.ts.map +1 -0
- package/manager/form-manager.service.d.ts +37 -0
- package/manager/form-manager.service.d.ts.map +1 -0
- package/manager/formio-angular-manager.d.ts.map +1 -0
- package/manager/index/index.component.d.ts +28 -0
- package/manager/index/index.component.d.ts.map +1 -0
- package/manager/index.d.ts +17 -242
- package/manager/index.d.ts.map +1 -1
- package/manager/submission/delete/delete.component.d.ts +16 -0
- package/manager/submission/delete/delete.component.d.ts.map +1 -0
- package/manager/submission/edit/edit.component.d.ts +13 -0
- package/manager/submission/edit/edit.component.d.ts.map +1 -0
- package/manager/submission/index/index.component.d.ts +13 -0
- package/manager/submission/index/index.component.d.ts.map +1 -0
- package/manager/submission/submission/submission.component.d.ts +15 -0
- package/manager/submission/submission/submission.component.d.ts.map +1 -0
- package/manager/submission/view/view.component.d.ts +9 -0
- package/manager/submission/view/view.component.d.ts.map +1 -0
- package/manager/view/view.component.d.ts +24 -0
- package/manager/view/view.component.d.ts.map +1 -0
- package/package.json +6 -6
- package/resource/create/create.component.d.ts +19 -0
- package/resource/create/create.component.d.ts.map +1 -0
- package/resource/delete/delete.component.d.ts +14 -0
- package/resource/delete/delete.component.d.ts.map +1 -0
- package/resource/edit/edit.component.d.ts +22 -0
- package/resource/edit/edit.component.d.ts.map +1 -0
- package/resource/formio-angular-resource.d.ts.map +1 -0
- package/resource/index/index.component.d.ts +23 -0
- package/resource/index/index.component.d.ts.map +1 -0
- package/resource/index.d.ts +12 -185
- package/resource/index.d.ts.map +1 -1
- package/resource/resource.component.d.ts +24 -0
- package/resource/resource.component.d.ts.map +1 -0
- package/resource/resource.config.d.ts +17 -0
- package/resource/resource.config.d.ts.map +1 -0
- package/resource/resource.module.d.ts +20 -0
- package/resource/resource.module.d.ts.map +1 -0
- package/resource/resource.routes.d.ts +4 -0
- package/resource/resource.routes.d.ts.map +1 -0
- package/resource/resource.service.d.ts +52 -0
- package/resource/resource.service.d.ts.map +1 -0
- package/resource/resources.service.d.ts +16 -0
- package/resource/resources.service.d.ts.map +1 -0
- package/resource/view/view.component.d.ts +16 -0
- package/resource/view/view.component.d.ts.map +1 -0
- package/types/alerts-position.d.ts +7 -0
- package/types/alerts-position.d.ts.map +1 -0
- package/types/formio-metadata.d.ts +11 -0
- package/types/formio-metadata.d.ts.map +1 -0
- package/types/formio-submission.d.ts +19 -0
- package/types/formio-submission.d.ts.map +1 -0
package/resource/index.d.ts
CHANGED
|
@@ -1,185 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
index?: any;
|
|
14
|
-
create?: any;
|
|
15
|
-
resource?: any;
|
|
16
|
-
view?: any;
|
|
17
|
-
edit?: any;
|
|
18
|
-
delete?: any;
|
|
19
|
-
}
|
|
20
|
-
declare class FormioResourceConfig {
|
|
21
|
-
name: string;
|
|
22
|
-
form: string;
|
|
23
|
-
parents: any[];
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceConfig, never>;
|
|
25
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormioResourceConfig>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface FormioResourceMap {
|
|
29
|
-
[name: string]: any;
|
|
30
|
-
}
|
|
31
|
-
declare class FormioResources {
|
|
32
|
-
auth?: FormioAuthService;
|
|
33
|
-
resources: FormioResourceMap;
|
|
34
|
-
error: EventEmitter<any>;
|
|
35
|
-
onError: EventEmitter<any>;
|
|
36
|
-
constructor(auth?: FormioAuthService);
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResources, never>;
|
|
38
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormioResources>;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
declare class FormioResourceService {
|
|
42
|
-
appConfig: FormioAppConfig;
|
|
43
|
-
config: FormioResourceConfig;
|
|
44
|
-
resourcesService: FormioResources;
|
|
45
|
-
initialized: boolean;
|
|
46
|
-
form: any;
|
|
47
|
-
alerts: FormioAlerts;
|
|
48
|
-
resource: any;
|
|
49
|
-
resourceUrl?: string;
|
|
50
|
-
formUrl: string;
|
|
51
|
-
formFormio: FormioPromiseService;
|
|
52
|
-
formio: FormioPromiseService;
|
|
53
|
-
refresh: EventEmitter<FormioRefreshValue>;
|
|
54
|
-
resourceResolve: any;
|
|
55
|
-
resourceReject: any;
|
|
56
|
-
resourceLoaded?: Promise<any>;
|
|
57
|
-
resourceLoading?: Promise<any>;
|
|
58
|
-
resourceId?: string;
|
|
59
|
-
resources: any;
|
|
60
|
-
ready?: Promise<any>;
|
|
61
|
-
readyResolve: any;
|
|
62
|
-
readyReject: any;
|
|
63
|
-
formLoading?: Promise<any>;
|
|
64
|
-
formLoaded: Promise<any>;
|
|
65
|
-
formResolve: any;
|
|
66
|
-
formReject: any;
|
|
67
|
-
isLoading: boolean;
|
|
68
|
-
constructor(appConfig: FormioAppConfig, config: FormioResourceConfig, resourcesService: FormioResources);
|
|
69
|
-
initialize(): void;
|
|
70
|
-
setResource(resourceId: any): void;
|
|
71
|
-
init(route: ActivatedRoute): Promise<any>;
|
|
72
|
-
onError(error: any): void;
|
|
73
|
-
onFormError(err: any): void;
|
|
74
|
-
loadForm(): Promise<any>;
|
|
75
|
-
loadParents(): Promise<any>;
|
|
76
|
-
onSubmissionError(err: any): void;
|
|
77
|
-
loadResource(): Promise<any>;
|
|
78
|
-
save(resource: any): Promise<any>;
|
|
79
|
-
remove(): Promise<void>;
|
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceService, [null, null, { optional: true; }]>;
|
|
81
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormioResourceService>;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
declare class FormioResourceComponent implements OnInit, OnDestroy {
|
|
85
|
-
service: FormioResourceService;
|
|
86
|
-
route: ActivatedRoute;
|
|
87
|
-
auth: FormioAuthService;
|
|
88
|
-
router: Router;
|
|
89
|
-
perms: {
|
|
90
|
-
delete: boolean;
|
|
91
|
-
edit: boolean;
|
|
92
|
-
};
|
|
93
|
-
routerSubscription: Subscription;
|
|
94
|
-
constructor(service: FormioResourceService, route: ActivatedRoute, auth: FormioAuthService, router: Router);
|
|
95
|
-
ngOnInit(): void;
|
|
96
|
-
ngOnDestroy(): void;
|
|
97
|
-
init(): Promise<any>;
|
|
98
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceComponent, never>;
|
|
99
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioResourceComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
declare class FormioResourceViewComponent implements OnDestroy {
|
|
103
|
-
service: FormioResourceService;
|
|
104
|
-
config: FormioResourceConfig;
|
|
105
|
-
constructor(service: FormioResourceService, config: FormioResourceConfig);
|
|
106
|
-
submission: {
|
|
107
|
-
data: {};
|
|
108
|
-
};
|
|
109
|
-
ngOnDestroy(): void;
|
|
110
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceViewComponent, never>;
|
|
111
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioResourceViewComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
declare class FormioResourceEditComponent implements OnDestroy {
|
|
115
|
-
service: FormioResourceService;
|
|
116
|
-
route: ActivatedRoute;
|
|
117
|
-
router: Router;
|
|
118
|
-
config: FormioResourceConfig;
|
|
119
|
-
triggerError: EventEmitter<any>;
|
|
120
|
-
onSubmitDone: EventEmitter<object>;
|
|
121
|
-
submission: {
|
|
122
|
-
data: {};
|
|
123
|
-
};
|
|
124
|
-
constructor(service: FormioResourceService, route: ActivatedRoute, router: Router, config: FormioResourceConfig);
|
|
125
|
-
onSubmit(submission: any): void;
|
|
126
|
-
ngOnDestroy(): void;
|
|
127
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceEditComponent, never>;
|
|
128
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioResourceEditComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
declare class FormioResourceDeleteComponent {
|
|
132
|
-
service: FormioResourceService;
|
|
133
|
-
route: ActivatedRoute;
|
|
134
|
-
router: Router;
|
|
135
|
-
constructor(service: FormioResourceService, route: ActivatedRoute, router: Router);
|
|
136
|
-
onDelete(): void;
|
|
137
|
-
onCancel(): void;
|
|
138
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceDeleteComponent, never>;
|
|
139
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioResourceDeleteComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
declare class FormioResourceCreateComponent implements OnInit {
|
|
143
|
-
service: FormioResourceService;
|
|
144
|
-
route: ActivatedRoute;
|
|
145
|
-
router: Router;
|
|
146
|
-
config: FormioResourceConfig;
|
|
147
|
-
onError: EventEmitter<any>;
|
|
148
|
-
onSuccess: EventEmitter<any>;
|
|
149
|
-
constructor(service: FormioResourceService, route: ActivatedRoute, router: Router, config: FormioResourceConfig);
|
|
150
|
-
ngOnInit(): void;
|
|
151
|
-
onSubmit(submission: any): void;
|
|
152
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceCreateComponent, never>;
|
|
153
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioResourceCreateComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
declare class FormioResourceIndexComponent implements OnInit {
|
|
157
|
-
service: FormioResourceService;
|
|
158
|
-
route: ActivatedRoute;
|
|
159
|
-
router: Router;
|
|
160
|
-
config: FormioResourceConfig;
|
|
161
|
-
cdr: ChangeDetectorRef;
|
|
162
|
-
ngZone: NgZone;
|
|
163
|
-
gridSrc?: string;
|
|
164
|
-
gridQuery: any;
|
|
165
|
-
createText: String;
|
|
166
|
-
constructor(service: FormioResourceService, route: ActivatedRoute, router: Router, config: FormioResourceConfig, cdr: ChangeDetectorRef, ngZone: NgZone);
|
|
167
|
-
ngOnInit(): void;
|
|
168
|
-
onSelect(row: any): void;
|
|
169
|
-
onCreateItem(): void;
|
|
170
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceIndexComponent, never>;
|
|
171
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioResourceIndexComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
declare function FormioResourceRoutes(config?: FormioResourceRouteConfig): Routes;
|
|
175
|
-
|
|
176
|
-
declare class FormioResource {
|
|
177
|
-
static forChild(config?: FormioResourceRouteConfig): any;
|
|
178
|
-
static forRoot(config?: FormioResourceRouteConfig): any;
|
|
179
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResource, never>;
|
|
180
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormioResource, [typeof FormioResourceComponent, typeof FormioResourceCreateComponent, typeof FormioResourceIndexComponent, typeof FormioResourceViewComponent, typeof FormioResourceEditComponent, typeof FormioResourceDeleteComponent], [typeof i7.CommonModule, typeof i8.FormioModule, typeof i9.FormioGrid, typeof i10.RouterModule], never>;
|
|
181
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormioResource>;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export { FormioResource, FormioResourceComponent, FormioResourceConfig, FormioResourceCreateComponent, FormioResourceDeleteComponent, FormioResourceEditComponent, FormioResourceIndexComponent, FormioResourceRoutes, FormioResourceService, FormioResourceViewComponent, FormioResources };
|
|
185
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { FormioResourceConfig } from './resource.config';
|
|
2
|
+
export { FormioResources } from './resources.service';
|
|
3
|
+
export { FormioResourceService } from './resource.service';
|
|
4
|
+
export { FormioResourceComponent } from './resource.component';
|
|
5
|
+
export { FormioResourceViewComponent } from './view/view.component';
|
|
6
|
+
export { FormioResourceEditComponent } from './edit/edit.component';
|
|
7
|
+
export { FormioResourceDeleteComponent } from './delete/delete.component';
|
|
8
|
+
export { FormioResourceCreateComponent } from './create/create.component';
|
|
9
|
+
export { FormioResourceIndexComponent } from './index/index.component';
|
|
10
|
+
export { FormioResourceRoutes } from './resource.routes';
|
|
11
|
+
export { FormioResource } from './resource.module';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
package/resource/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/resource/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { FormioAuthService } from '@formio/angular/auth';
|
|
4
|
+
import { FormioResourceService } from './resource.service';
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FormioResourceComponent implements OnInit, OnDestroy {
|
|
8
|
+
service: FormioResourceService;
|
|
9
|
+
route: ActivatedRoute;
|
|
10
|
+
auth: FormioAuthService;
|
|
11
|
+
router: Router;
|
|
12
|
+
perms: {
|
|
13
|
+
delete: boolean;
|
|
14
|
+
edit: boolean;
|
|
15
|
+
};
|
|
16
|
+
routerSubscription: Subscription;
|
|
17
|
+
constructor(service: FormioResourceService, route: ActivatedRoute, auth: FormioAuthService, router: Router);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
init(): Promise<any>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormioResourceComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=resource.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.component.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/resource/src/resource.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAiB,MAAM,EAAe,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;;AAEpC,qBAIa,uBAAwB,YAAW,MAAM,EAAE,SAAS;IAKtD,OAAO,EAAE,qBAAqB;IAC9B,KAAK,EAAE,cAAc;IACrB,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE,MAAM;IAPhB,KAAK;;;MAAgC;IACrC,kBAAkB,EAAE,YAAY,CAAC;gBAG/B,OAAO,EAAE,qBAAqB,EAC9B,KAAK,EAAE,cAAc,EACrB,IAAI,EAAE,iBAAiB,EACvB,MAAM,EAAE,MAAM;IAGvB,QAAQ;IASR,WAAW;IAIX,IAAI;yCAxBO,uBAAuB;2CAAvB,uBAAuB;CAsCnC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface FormioResourceRouteConfig {
|
|
3
|
+
index?: any;
|
|
4
|
+
create?: any;
|
|
5
|
+
resource?: any;
|
|
6
|
+
view?: any;
|
|
7
|
+
edit?: any;
|
|
8
|
+
delete?: any;
|
|
9
|
+
}
|
|
10
|
+
export declare class FormioResourceConfig {
|
|
11
|
+
name: string;
|
|
12
|
+
form: string;
|
|
13
|
+
parents: any[];
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceConfig, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormioResourceConfig>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=resource.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.config.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/resource/src/resource.config.ts"],"names":[],"mappings":";AAEA,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED,qBACa,oBAAoB;IAC/B,IAAI,SAAM;IACV,IAAI,SAAM;IACV,OAAO,EAAE,GAAG,EAAE,CAAM;yCAHT,oBAAoB;6CAApB,oBAAoB;CAIhC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FormioResourceRouteConfig } from './resource.config';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./resource.component";
|
|
4
|
+
import * as i2 from "./create/create.component";
|
|
5
|
+
import * as i3 from "./index/index.component";
|
|
6
|
+
import * as i4 from "./view/view.component";
|
|
7
|
+
import * as i5 from "./edit/edit.component";
|
|
8
|
+
import * as i6 from "./delete/delete.component";
|
|
9
|
+
import * as i7 from "@angular/common";
|
|
10
|
+
import * as i8 from "@formio/angular";
|
|
11
|
+
import * as i9 from "@formio/angular/grid";
|
|
12
|
+
import * as i10 from "@angular/router";
|
|
13
|
+
export declare class FormioResource {
|
|
14
|
+
static forChild(config?: FormioResourceRouteConfig): any;
|
|
15
|
+
static forRoot(config?: FormioResourceRouteConfig): any;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResource, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormioResource, [typeof i1.FormioResourceComponent, typeof i2.FormioResourceCreateComponent, typeof i3.FormioResourceIndexComponent, typeof i4.FormioResourceViewComponent, typeof i5.FormioResourceEditComponent, typeof i6.FormioResourceDeleteComponent], [typeof i7.CommonModule, typeof i8.FormioModule, typeof i9.FormioGrid, typeof i10.RouterModule], never>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormioResource>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=resource.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.module.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/resource/src/resource.module.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;;AAI9D,qBAmBa,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,yBAAyB,GAAG,GAAG;IAGxD,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,yBAAyB,GAAG,GAAG;yCAJ5C,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAO1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.routes.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/resource/src/resource.routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAOzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,yBAAyB,GAAG,MAAM,CAkC/E"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { FormioResourceConfig } from './resource.config';
|
|
4
|
+
import { FormioResources } from './resources.service';
|
|
5
|
+
import { FormioPromiseService } from '@formio/angular';
|
|
6
|
+
import { FormioAlerts } from '@formio/angular';
|
|
7
|
+
import { FormioAppConfig } from '@formio/angular';
|
|
8
|
+
import { FormioRefreshValue } from '@formio/angular';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class FormioResourceService {
|
|
11
|
+
appConfig: FormioAppConfig;
|
|
12
|
+
config: FormioResourceConfig;
|
|
13
|
+
resourcesService: FormioResources;
|
|
14
|
+
initialized: boolean;
|
|
15
|
+
form: any;
|
|
16
|
+
alerts: FormioAlerts;
|
|
17
|
+
resource: any;
|
|
18
|
+
resourceUrl?: string;
|
|
19
|
+
formUrl: string;
|
|
20
|
+
formFormio: FormioPromiseService;
|
|
21
|
+
formio: FormioPromiseService;
|
|
22
|
+
refresh: EventEmitter<FormioRefreshValue>;
|
|
23
|
+
resourceResolve: any;
|
|
24
|
+
resourceReject: any;
|
|
25
|
+
resourceLoaded?: Promise<any>;
|
|
26
|
+
resourceLoading?: Promise<any>;
|
|
27
|
+
resourceId?: string;
|
|
28
|
+
resources: any;
|
|
29
|
+
ready?: Promise<any>;
|
|
30
|
+
readyResolve: any;
|
|
31
|
+
readyReject: any;
|
|
32
|
+
formLoading?: Promise<any>;
|
|
33
|
+
formLoaded: Promise<any>;
|
|
34
|
+
formResolve: any;
|
|
35
|
+
formReject: any;
|
|
36
|
+
isLoading: boolean;
|
|
37
|
+
constructor(appConfig: FormioAppConfig, config: FormioResourceConfig, resourcesService: FormioResources);
|
|
38
|
+
initialize(): void;
|
|
39
|
+
setResource(resourceId: any): void;
|
|
40
|
+
init(route: ActivatedRoute): Promise<any>;
|
|
41
|
+
onError(error: any): void;
|
|
42
|
+
onFormError(err: any): void;
|
|
43
|
+
loadForm(): Promise<any>;
|
|
44
|
+
loadParents(): Promise<any>;
|
|
45
|
+
onSubmissionError(err: any): void;
|
|
46
|
+
loadResource(): Promise<any>;
|
|
47
|
+
save(resource: any): Promise<any>;
|
|
48
|
+
remove(): Promise<void>;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceService, [null, null, { optional: true; }]>;
|
|
50
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormioResourceService>;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=resource.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.service.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/resource/src/resource.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;;AAIrD,qBACa,qBAAqB;IA8BvB,SAAS,EAAE,eAAe;IAC1B,MAAM,EAAE,oBAAoB;IAChB,gBAAgB,EAAE,eAAe;IA/B/C,WAAW,UAAS;IACpB,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,GAAG,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,oBAAoB,CAAC;IACjC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,OAAO,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAE1C,eAAe,EAAE,GAAG,CAAC;IACrB,cAAc,EAAE,GAAG,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAE9B,eAAe,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,GAAG,CAAC;IAEf,KAAK,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACrB,YAAY,EAAE,GAAG,CAAC;IAClB,WAAW,EAAE,GAAG,CAAC;IAEjB,WAAW,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACzB,WAAW,EAAE,GAAG,CAAC;IACjB,UAAU,EAAE,GAAG,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;gBAGjB,SAAS,EAAE,eAAe,EAC1B,MAAM,EAAE,oBAAoB,EAChB,gBAAgB,EAAE,eAAe;IAOtD,UAAU;IAIV,WAAW,CAAC,UAAU,EAAE,GAAG;IA+B3B,IAAI,CAAC,KAAK,EAAE,cAAc;IA6B1B,OAAO,CAAC,KAAK,EAAE,GAAG;IAWlB,WAAW,CAAC,GAAG,EAAE,GAAG;IAKpB,QAAQ;IAuBR,WAAW;IAmDX,iBAAiB,CAAC,GAAG,EAAE,GAAG;IAK1B,YAAY;IAwBZ,IAAI,CAAC,QAAQ,EAAE,GAAG;IAclB,MAAM;yCA5OK,qBAAqB;6CAArB,qBAAqB;CAuPjC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormioAuthService } from '@formio/angular/auth';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface FormioResourceMap {
|
|
5
|
+
[name: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export declare class FormioResources {
|
|
8
|
+
auth?: FormioAuthService;
|
|
9
|
+
resources: FormioResourceMap;
|
|
10
|
+
error: EventEmitter<any>;
|
|
11
|
+
onError: EventEmitter<any>;
|
|
12
|
+
constructor(auth?: FormioAuthService);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResources, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormioResources>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=resources.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.service.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/resource/src/resources.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;;AAEzD,MAAM,WAAW,iBAAiB;IAChC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;CACrB;AAED,qBACa,eAAe;IAKjB,IAAI,CAAC,EAAE,iBAAiB;IAJjC,SAAS,EAAE,iBAAiB,CAAM;IAClC,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IACzB,OAAO,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;gBAElB,IAAI,CAAC,EAAE,iBAAiB;yCALtB,eAAe;6CAAf,eAAe;CAe3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { FormioResourceService } from '../resource.service';
|
|
3
|
+
import { FormioResourceConfig } from '../resource.config';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormioResourceViewComponent implements OnDestroy {
|
|
6
|
+
service: FormioResourceService;
|
|
7
|
+
config: FormioResourceConfig;
|
|
8
|
+
constructor(service: FormioResourceService, config: FormioResourceConfig);
|
|
9
|
+
submission: {
|
|
10
|
+
data: {};
|
|
11
|
+
};
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceViewComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormioResourceViewComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=view.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.component.d.ts","sourceRoot":"","sources":["../../../../projects/angular-formio/resource/src/view/view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;;AAG1D,qBAIa,2BAA4B,YAAW,SAAS;IAElD,OAAO,EAAE,qBAAqB;IAC9B,MAAM,EAAE,oBAAoB;gBAD5B,OAAO,EAAE,qBAAqB,EAC9B,MAAM,EAAE,oBAAoB;IAE9B,UAAU;;MAAc;IAE/B,WAAW;yCAPA,2BAA2B;2CAA3B,2BAA2B;CAUvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alerts-position.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/src/types/alerts-position.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,IAAI,IAAA;IACJ,GAAG,IAAA;IACH,MAAM,IAAA;IACN,IAAI,IAAA;CACL"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default interface FormioMetadata {
|
|
2
|
+
timezone?: string;
|
|
3
|
+
offset?: number;
|
|
4
|
+
origin?: string;
|
|
5
|
+
referrer?: string;
|
|
6
|
+
browserName?: string;
|
|
7
|
+
userAgent?: string;
|
|
8
|
+
pathName?: string;
|
|
9
|
+
onLine?: boolean;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=formio-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formio-metadata.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/src/types/formio-metadata.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,cAAc;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import FormioMetadata from './formio-metadata';
|
|
2
|
+
export default interface FormioSubmission<T = any, stateType = FormioSubmissionState> {
|
|
3
|
+
_id?: string;
|
|
4
|
+
created?: string;
|
|
5
|
+
data?: T;
|
|
6
|
+
form?: string;
|
|
7
|
+
metadata?: FormioMetadata;
|
|
8
|
+
modified?: string;
|
|
9
|
+
owner?: string;
|
|
10
|
+
project?: string;
|
|
11
|
+
state?: stateType;
|
|
12
|
+
_fvid?: number;
|
|
13
|
+
_vid?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare enum FormioSubmissionState {
|
|
16
|
+
draft = "draft",
|
|
17
|
+
submitted = "submitted"
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=formio-submission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formio-submission.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/src/types/formio-submission.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC,CAAC,GAAG,GAAG,EAAE,SAAS,GAAE,qBAAqB;IACjF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,qBAAqB;IAC/B,KAAK,UAAU;IACf,SAAS,cAAc;CACxB"}
|