@formio/angular 6.0.0-rc.8 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FormioBaseComponent.d.ts.map +1 -1
- package/components/formbuilder/formbuilder.component.d.ts +1 -1
- package/components/formbuilder/formbuilder.component.d.ts.map +1 -1
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/esm2022/FormioBaseComponent.mjs +12 -10
- package/esm2022/auth/auth.component.mjs +5 -6
- package/esm2022/auth/auth.config.mjs +5 -6
- package/esm2022/auth/auth.module.mjs +6 -7
- package/esm2022/auth/auth.service.mjs +7 -8
- package/esm2022/auth/login/login.component.mjs +6 -7
- package/esm2022/auth/register/register.component.mjs +6 -7
- package/esm2022/auth/resetpass/resetpass.component.mjs +6 -7
- package/esm2022/components/alerts/formio.alerts.component.mjs +5 -6
- package/esm2022/components/alerts/parse-html-content.pipe.mjs +5 -6
- package/esm2022/components/formbuilder/formbuilder.component.mjs +10 -10
- package/esm2022/components/formio/formio.component.mjs +10 -10
- package/esm2022/components/formioreport/formioreport.component.mjs +8 -8
- package/esm2022/components/loader/formio.loader.component.mjs +5 -6
- package/esm2022/core.mjs +2 -2
- package/esm2022/custom-tags.service.mjs +5 -6
- package/esm2022/formio.common.mjs +1 -1
- package/esm2022/formio.config.mjs +8 -9
- package/esm2022/formio.module.mjs +6 -7
- package/esm2022/formio.service.mjs +2 -2
- package/esm2022/grid/GridBodyComponent.mjs +6 -7
- package/esm2022/grid/GridFooterComponent.mjs +6 -7
- package/esm2022/grid/GridHeaderComponent.mjs +6 -7
- package/esm2022/grid/form/FormGridBody.component.mjs +5 -6
- package/esm2022/grid/form/FormGridFooter.component.mjs +6 -7
- package/esm2022/grid/form/FormGridHeader.component.mjs +5 -6
- package/esm2022/grid/form/time-since.pipe.mjs +5 -6
- package/esm2022/grid/grid.component.mjs +7 -8
- package/esm2022/grid/grid.module.mjs +6 -7
- package/esm2022/grid/grid.service.mjs +6 -7
- package/esm2022/grid/submission/SubmissionGridBody.component.mjs +5 -6
- package/esm2022/grid/submission/SubmissionGridFooter.component.mjs +6 -7
- package/esm2022/grid/submission/SubmissionGridHeader.component.mjs +6 -7
- package/esm2022/manager/create/create.component.mjs +5 -6
- package/esm2022/manager/delete/delete.component.mjs +6 -7
- package/esm2022/manager/edit/edit.component.mjs +9 -7
- package/esm2022/manager/form/form.component.mjs +6 -7
- package/esm2022/manager/form-manager.config.mjs +5 -6
- package/esm2022/manager/form-manager.module.mjs +6 -7
- package/esm2022/manager/form-manager.service.mjs +9 -10
- package/esm2022/manager/index/index.component.mjs +6 -7
- package/esm2022/manager/submission/delete/delete.component.mjs +6 -7
- package/esm2022/manager/submission/edit/edit.component.mjs +6 -7
- package/esm2022/manager/submission/index/index.component.mjs +6 -7
- package/esm2022/manager/submission/submission/submission.component.mjs +6 -7
- package/esm2022/manager/submission/view/view.component.mjs +6 -7
- package/esm2022/manager/view/view.component.mjs +7 -8
- package/esm2022/resource/create/create.component.mjs +6 -7
- package/esm2022/resource/delete/delete.component.mjs +6 -7
- package/esm2022/resource/edit/edit.component.mjs +7 -8
- package/esm2022/resource/index/index.component.mjs +6 -7
- package/esm2022/resource/resource.component.mjs +6 -7
- package/esm2022/resource/resource.config.mjs +5 -6
- package/esm2022/resource/resource.module.mjs +6 -7
- package/esm2022/resource/resource.service.mjs +8 -9
- package/esm2022/resource/resources.service.mjs +6 -7
- package/esm2022/resource/view/view.component.mjs +7 -8
- package/fesm2022/formio-angular-auth.mjs +27 -27
- package/fesm2022/formio-angular-auth.mjs.map +1 -1
- package/fesm2022/formio-angular-grid.mjs +49 -50
- package/fesm2022/formio-angular-grid.mjs.map +1 -1
- package/fesm2022/formio-angular-manager.mjs +60 -57
- package/fesm2022/formio-angular-manager.mjs.map +1 -1
- package/fesm2022/formio-angular-resource.mjs +41 -41
- package/fesm2022/formio-angular-resource.mjs.map +1 -1
- package/fesm2022/formio-angular.mjs +53 -48
- package/fesm2022/formio-angular.mjs.map +1 -1
- package/formio.common.d.ts +2 -2
- package/formio.common.d.ts.map +1 -1
- package/formio.config.d.ts +1 -1
- package/formio.config.d.ts.map +1 -1
- package/grid/submission/SubmissionGridHeader.component.d.ts +1 -1
- package/grid/submission/SubmissionGridHeader.component.d.ts.map +1 -1
- package/manager/edit/edit.component.d.ts.map +1 -1
- package/manager/form-manager.config.d.ts +3 -1
- package/manager/form-manager.config.d.ts.map +1 -1
- package/manager/form-manager.service.d.ts +1 -1
- package/manager/form-manager.service.d.ts.map +1 -1
- package/package.json +11 -17
- package/embed/app.service.d.ts +0 -28
- package/embed/app.service.d.ts.map +0 -1
- package/embed/builder.component.d.ts +0 -14
- package/embed/builder.component.d.ts.map +0 -1
- package/embed/embed.module.d.ts +0 -10
- package/embed/embed.module.d.ts.map +0 -1
- package/embed/formio-angular-embed.d.ts.map +0 -1
- package/embed/formio.component.d.ts +0 -17
- package/embed/formio.component.d.ts.map +0 -1
- package/embed/index.d.ts +0 -7
- package/embed/index.d.ts.map +0 -1
- package/esm2022/embed/app.service.mjs +0 -59
- package/esm2022/embed/builder.component.mjs +0 -37
- package/esm2022/embed/embed.module.mjs +0 -36
- package/esm2022/embed/formio-angular-embed.mjs +0 -5
- package/esm2022/embed/formio.component.mjs +0 -51
- package/esm2022/embed/index.mjs +0 -7
- package/fesm2022/formio-angular-embed.mjs +0 -176
- package/fesm2022/formio-angular-embed.mjs.map +0 -1
package/embed/app.service.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, EventEmitter } from '@angular/core';
|
|
2
|
-
import { Formio } from '@formio/js/sdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const FormioAppConfig: InjectionToken<unknown>;
|
|
5
|
-
export declare class FormioAppService {
|
|
6
|
-
baseUrl: any;
|
|
7
|
-
apiUrl: any;
|
|
8
|
-
projectUrl: any;
|
|
9
|
-
appUrl: any;
|
|
10
|
-
icons?: string;
|
|
11
|
-
formio: Formio;
|
|
12
|
-
user?: any;
|
|
13
|
-
onUser: EventEmitter<object>;
|
|
14
|
-
constructor(config?: {
|
|
15
|
-
apiUrl?: string;
|
|
16
|
-
baseUrl?: string;
|
|
17
|
-
appUrl?: string;
|
|
18
|
-
projectUrl?: string;
|
|
19
|
-
icons?: string;
|
|
20
|
-
config?: any;
|
|
21
|
-
});
|
|
22
|
-
setUser(user: any): void;
|
|
23
|
-
logout(): any;
|
|
24
|
-
authenticate(): any;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioAppService, never>;
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormioAppService>;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=app.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.service.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/embed/src/app.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;;AADxC,eAAO,MAAM,eAAe,yBAAsC,CAAC;AAEnE,qBACa,gBAAgB;IACzB,OAAO,MAAC;IACR,MAAM,MAAC;IACP,UAAU,MAAC;IACX,MAAM,MAAC;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,CAA8B;gBACrB,MAAM,GAAE;QACzC,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAA;KACV;IAoBN,OAAO,CAAC,IAAI,KAAA;IAKZ,MAAM;IAUN,YAAY;yCAnDH,gBAAgB;6CAAhB,gBAAgB;CAsD5B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, AfterViewInit } from '@angular/core';
|
|
2
|
-
import { Formio } from '@formio/js/sdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormioBuilder implements AfterViewInit {
|
|
5
|
-
element: ElementRef;
|
|
6
|
-
form?: Object | null;
|
|
7
|
-
options?: Object;
|
|
8
|
-
ready: EventEmitter<Formio>;
|
|
9
|
-
error: EventEmitter<any>;
|
|
10
|
-
ngAfterViewInit(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioBuilder, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioBuilder, "formio-builder", never, { "form": { "alias": "form"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "ready": "ready"; "error": "error"; }, never, never, false, never>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=builder.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"builder.component.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/embed/src/builder.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAuC,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;;AAExC,qBAIa,aAAc,YAAW,aAAa;IAC1B,OAAO,EAAE,UAAU,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAM;IACrB,KAAK,uBAA8B;IACnC,KAAK,oBAA2B;IAC1C,eAAe,IAAI,IAAI;yCANd,aAAa;2CAAb,aAAa;CAWzB"}
|
package/embed/embed.module.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./formio.component";
|
|
3
|
-
import * as i2 from "./builder.component";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
export declare class FormioEmbedModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioEmbedModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormioEmbedModule, [typeof i1.FormioComponent, typeof i2.FormioBuilder], [typeof i3.CommonModule], [typeof i1.FormioComponent, typeof i2.FormioBuilder]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormioEmbedModule>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=embed.module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embed.module.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/embed/src/embed.module.ts"],"names":[],"mappings":";;;;AAMA,qBAgBa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formio-angular-embed.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/embed/src/formio-angular-embed.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, AfterViewInit } from '@angular/core';
|
|
2
|
-
import { Formio } from '@formio/js/sdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormioComponent implements AfterViewInit {
|
|
5
|
-
src?: string;
|
|
6
|
-
form?: Object | null;
|
|
7
|
-
submission?: Object | null;
|
|
8
|
-
options?: Object;
|
|
9
|
-
ready: EventEmitter<Formio>;
|
|
10
|
-
submit: EventEmitter<object>;
|
|
11
|
-
error: EventEmitter<any>;
|
|
12
|
-
element: ElementRef;
|
|
13
|
-
ngAfterViewInit(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioComponent, "formio", never, { "src": { "alias": "src"; "required": false; }; "form": { "alias": "form"; "required": false; }; "submission": { "alias": "submission"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "ready": "ready"; "submit": "submit"; "error": "error"; }, never, never, false, never>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=formio.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formio.component.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/embed/src/formio.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,UAAU,EAAiB,YAAY,EAAa,aAAa,EAAE,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;;AAExC,qBAIa,eAAgB,YAAW,aAAa;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAM;IACrB,KAAK,uBAA8B;IACnC,MAAM,uBAA8B;IACpC,KAAK,oBAA2B;IACrB,OAAO,EAAE,UAAU,CAAC;IACzC,eAAe,IAAI,IAAI;yCATd,eAAe;2CAAf,eAAe;CAmB3B"}
|
package/embed/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Formio } from '@formio/js/sdk';
|
|
2
|
-
export { FormioComponent } from './formio.component';
|
|
3
|
-
export { FormioBuilder } from './builder.component';
|
|
4
|
-
export { FormioEmbedModule } from './embed.module';
|
|
5
|
-
export { FormioAppService, FormioAppConfig } from './app.service';
|
|
6
|
-
export { Formio };
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/embed/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/embed/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Inject, Injectable, InjectionToken, EventEmitter } from '@angular/core';
|
|
2
|
-
import { Formio } from '@formio/js/sdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export const FormioAppConfig = new InjectionToken('formio-config');
|
|
5
|
-
class FormioAppService {
|
|
6
|
-
baseUrl;
|
|
7
|
-
apiUrl;
|
|
8
|
-
projectUrl;
|
|
9
|
-
appUrl;
|
|
10
|
-
icons;
|
|
11
|
-
formio;
|
|
12
|
-
user;
|
|
13
|
-
onUser = new EventEmitter();
|
|
14
|
-
constructor(config = {}) {
|
|
15
|
-
this.baseUrl = this.apiUrl = config.apiUrl || config.baseUrl;
|
|
16
|
-
this.projectUrl = this.appUrl = config.appUrl || config.projectUrl;
|
|
17
|
-
if (this.baseUrl) {
|
|
18
|
-
Formio.setBaseUrl(this.baseUrl);
|
|
19
|
-
Formio.setProjectUrl(this.projectUrl);
|
|
20
|
-
if (config.icons) {
|
|
21
|
-
Formio.icons = config.icons;
|
|
22
|
-
}
|
|
23
|
-
if (config.config) {
|
|
24
|
-
for (let key in config.config) {
|
|
25
|
-
Formio.config[key] = config.config[key];
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
Formio.events.on('formio.user', (user) => this.setUser(user));
|
|
29
|
-
this.formio = new Formio(this.projectUrl);
|
|
30
|
-
this.authenticate();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
setUser(user) {
|
|
34
|
-
this.user = user;
|
|
35
|
-
this.onUser.emit(user);
|
|
36
|
-
}
|
|
37
|
-
logout() {
|
|
38
|
-
return Formio.logout().then(() => {
|
|
39
|
-
this.setUser(null);
|
|
40
|
-
Formio.clearCache();
|
|
41
|
-
}).catch(() => {
|
|
42
|
-
this.setUser(null);
|
|
43
|
-
Formio.clearCache();
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
authenticate() {
|
|
47
|
-
return this.formio.currentUser().then((user) => this.setUser(user)).catch(() => this.setUser(null));
|
|
48
|
-
}
|
|
49
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioAppService, deps: [{ token: FormioAppConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
50
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioAppService });
|
|
51
|
-
}
|
|
52
|
-
export { FormioAppService };
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioAppService, decorators: [{
|
|
54
|
-
type: Injectable
|
|
55
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
56
|
-
type: Inject,
|
|
57
|
-
args: [FormioAppConfig]
|
|
58
|
-
}] }]; } });
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWZvcm1pby9lbWJlZC9zcmMvYXBwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQ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iBzdHJpbmcsXG4gICAgICAgIHByb2plY3RVcmw/OiBzdHJpbmcsXG4gICAgICAgIGljb25zPzogc3RyaW5nLFxuICAgICAgICBjb25maWc/OiBhbnlcbiAgICB9ID0ge30pIHtcbiAgICAgICAgdGhpcy5iYXNlVXJsID0gdGhpcy5hcGlVcmwgPSBjb25maWcuYXBpVXJsIHx8IGNvbmZpZy5iYXNlVXJsO1xuICAgICAgICB0aGlzLnByb2plY3RVcmwgPSB0aGlzLmFwcFVybCA9IGNvbmZpZy5hcHBVcmwgfHwgY29uZmlnLnByb2plY3RVcmw7XG4gICAgICAgIGlmICh0aGlzLmJhc2VVcmwpIHtcbiAgICAgICAgICAgIEZvcm1pby5zZXRCYXNlVXJsKHRoaXMuYmFzZVVybCk7XG4gICAgICAgICAgICBGb3JtaW8uc2V0UHJvamVjdFVybCh0aGlzLnByb2plY3RVcmwpO1xuICAgICAgICAgICAgaWYgKGNvbmZpZy5pY29ucykge1xuICAgICAgICAgICAgICAgIEZvcm1pby5pY29ucyA9IGNvbmZpZy5pY29ucztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChjb25maWcuY29uZmlnKSB7XG4gICAgICAgICAgICAgICAgZm9yIChsZXQga2V5IGluIGNvbmZpZy5jb25maWcpIHtcbiAgICAgICAgICAgICAgICAgICAgRm9ybWlvLmNvbmZpZ1trZXldID0gY29uZmlnLmNvbmZpZ1trZXldO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIEZvcm1pby5ldmVudHMub24oJ2Zvcm1pby51c2VyJywgKHVzZXIpID0+IHRoaXMuc2V0VXNlcih1c2VyKSk7XG4gICAgICAgICAgICB0aGlzLmZvcm1pbyA9IG5ldyBGb3JtaW8odGhpcy5wcm9qZWN0VXJsKTtcbiAgICAgICAgICAgIHRoaXMuYXV0aGVudGljYXRlKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBzZXRVc2VyKHVzZXIpIHtcbiAgICAgICAgdGhpcy51c2VyID0gdXNlcjtcbiAgICAgICAgdGhpcy5vblVzZXIuZW1pdCh1c2VyKTtcbiAgICB9XG5cbiAgICBsb2dvdXQoKSB7XG4gICAgICAgIHJldHVybiBGb3JtaW8ubG9nb3V0KCkudGhlbigoKSA9PiB7XG4gICAgICAgICAgICB0aGlzLnNldFVzZXIobnVsbCk7XG4gICAgICAgICAgICBGb3JtaW8uY2xlYXJDYWNoZSgpO1xuICAgICAgICB9KS5jYXRjaCgoKSA9PiB7XG4gICAgICAgICAgICB0aGlzLnNldFVzZXIobnVsbCk7XG4gICAgICAgICAgICBGb3JtaW8uY2xlYXJDYWNoZSgpO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBhdXRoZW50aWNhdGUoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmZvcm1pby5jdXJyZW50VXNlcigpLnRoZW4oKHVzZXIpID0+IHRoaXMuc2V0VXNlcih1c2VyKSkuY2F0Y2goKCkgPT4gdGhpcy5zZXRVc2VyKG51bGwpKTtcbiAgICB9XG59Il19
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Component, Input, ViewChild, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import { Formio } from '@formio/js/sdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
class FormioBuilder {
|
|
5
|
-
element;
|
|
6
|
-
form;
|
|
7
|
-
options = {};
|
|
8
|
-
ready = new EventEmitter();
|
|
9
|
-
error = new EventEmitter();
|
|
10
|
-
ngAfterViewInit() {
|
|
11
|
-
Formio.builder(this.element.nativeElement, this.form, this.options).then((builder) => {
|
|
12
|
-
this.ready.emit(builder);
|
|
13
|
-
}).catch((err) => this.error.emit(err));
|
|
14
|
-
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioBuilder, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormioBuilder, selector: "formio-builder", inputs: { form: "form", options: "options" }, outputs: { ready: "ready", error: "error" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["formio"], descendants: true }], ngImport: i0, template: '<div #formio></div>', isInline: true });
|
|
17
|
-
}
|
|
18
|
-
export { FormioBuilder };
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioBuilder, decorators: [{
|
|
20
|
-
type: Component,
|
|
21
|
-
args: [{
|
|
22
|
-
selector: 'formio-builder',
|
|
23
|
-
template: '<div #formio></div>'
|
|
24
|
-
}]
|
|
25
|
-
}], propDecorators: { element: [{
|
|
26
|
-
type: ViewChild,
|
|
27
|
-
args: ['formio']
|
|
28
|
-
}], form: [{
|
|
29
|
-
type: Input
|
|
30
|
-
}], options: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}], ready: [{
|
|
33
|
-
type: Output
|
|
34
|
-
}], error: [{
|
|
35
|
-
type: Output
|
|
36
|
-
}] } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWZvcm1pby9lbWJlZC9zcmMvYnVpbGRlci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYyxLQUFLLEVBQUUsU0FBUyxFQUFhLE1BQU0sRUFBRSxZQUFZLEVBQWlCLE1BQU0sZUFBZSxDQUFDO0FBQ3hILE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7QUFFeEMsTUFJYSxhQUFhO0lBQ0QsT0FBTyxDQUFhO0lBQ2hDLElBQUksQ0FBaUI7SU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W5ndWxhci9jb3JlJztcbmltcG9ydCB7IEZvcm1pbyB9IGZyb20gJ0Bmb3JtaW8vanMvc2RrJztcblxuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6ICdmb3JtaW8tYnVpbGRlcicsXG4gICAgdGVtcGxhdGU6ICc8ZGl2ICNmb3JtaW8+PC9kaXY+J1xufSlcbmV4cG9ydCBjbGFzcyBGb3JtaW9CdWlsZGVyIGltcGxlbWVudHMgQWZ0ZXJWaWV3SW5pdCB7XG4gICAgQFZpZXdDaGlsZCgnZm9ybWlvJykgZWxlbWVudDogRWxlbWVudFJlZjtcbiAgICBASW5wdXQoKSBmb3JtPzogT2JqZWN0IHwgbnVsbDtcbiAgICBASW5wdXQoKSBvcHRpb25zPzogT2JqZWN0ID0ge307XG4gICAgQE91dHB1dCgpIHJlYWR5ID0gbmV3IEV2ZW50RW1pdHRlcjxGb3JtaW8+KCk7XG4gICAgQE91dHB1dCgpIGVycm9yID0gbmV3IEV2ZW50RW1pdHRlcjxhbnk+KCk7XG4gICAgbmdBZnRlclZpZXdJbml0KCk6IHZvaWQge1xuICAgICAgICBGb3JtaW8uYnVpbGRlcih0aGlzLmVsZW1lbnQubmF0aXZlRWxlbWVudCwgdGhpcy5mb3JtLCB0aGlzLm9wdGlvbnMpLnRoZW4oKGJ1aWxkZXIpID0+IHtcbiAgICAgICAgICAgIHRoaXMucmVhZHkuZW1pdChidWlsZGVyKTtcbiAgICAgICAgfSkuY2F0Y2goKGVycikgPT4gdGhpcy5lcnJvci5lbWl0KGVycikpO1xuICAgIH1cbn0iXX0=
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { CommonModule } from "@angular/common";
|
|
3
|
-
import { FormioComponent } from "./formio.component";
|
|
4
|
-
import { FormioBuilder } from "./builder.component";
|
|
5
|
-
import { FormioAppService } from "./app.service";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
class FormioEmbedModule {
|
|
8
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioEmbedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormioEmbedModule, declarations: [FormioComponent,
|
|
10
|
-
FormioBuilder], imports: [CommonModule], exports: [FormioComponent,
|
|
11
|
-
FormioBuilder] });
|
|
12
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioEmbedModule, providers: [
|
|
13
|
-
FormioAppService
|
|
14
|
-
], imports: [CommonModule] });
|
|
15
|
-
}
|
|
16
|
-
export { FormioEmbedModule };
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioEmbedModule, decorators: [{
|
|
18
|
-
type: NgModule,
|
|
19
|
-
args: [{
|
|
20
|
-
imports: [
|
|
21
|
-
CommonModule
|
|
22
|
-
],
|
|
23
|
-
declarations: [
|
|
24
|
-
FormioComponent,
|
|
25
|
-
FormioBuilder
|
|
26
|
-
],
|
|
27
|
-
exports: [
|
|
28
|
-
FormioComponent,
|
|
29
|
-
FormioBuilder
|
|
30
|
-
],
|
|
31
|
-
providers: [
|
|
32
|
-
FormioAppService
|
|
33
|
-
]
|
|
34
|
-
}]
|
|
35
|
-
}] });
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1iZWQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1mb3JtaW8vZW1iZWQvc3JjL2VtYmVkLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU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wU2VydmljZSB9IGZyb20gXCIuL2FwcC5zZXJ2aWNlXCI7XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW1xuICAgICAgICBDb21tb25Nb2R1bGVcbiAgICBdLFxuICAgIGRlY2xhcmF0aW9uczogW1xuICAgICAgICBGb3JtaW9Db21wb25lbnQsXG4gICAgICAgIEZvcm1pb0J1aWxkZXJcbiAgICBdLFxuICAgIGV4cG9ydHM6IFtcbiAgICAgICAgRm9ybWlvQ29tcG9uZW50LFxuICAgICAgICBGb3JtaW9CdWlsZGVyXG4gICAgXSxcbiAgICBwcm92aWRlcnM6IFtcbiAgICAgICAgRm9ybWlvQXBwU2VydmljZVxuICAgIF1cbn0pXG5leHBvcnQgY2xhc3MgRm9ybWlvRW1iZWRNb2R1bGUge30iXX0=
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWlvLWFuZ3VsYXItZW1iZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWZvcm1pby9lbWJlZC9zcmMvZm9ybWlvLWFuZ3VsYXItZW1iZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import { Formio } from '@formio/js/sdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
class FormioComponent {
|
|
5
|
-
src;
|
|
6
|
-
form;
|
|
7
|
-
submission;
|
|
8
|
-
options = {};
|
|
9
|
-
ready = new EventEmitter();
|
|
10
|
-
submit = new EventEmitter();
|
|
11
|
-
error = new EventEmitter();
|
|
12
|
-
element;
|
|
13
|
-
ngAfterViewInit() {
|
|
14
|
-
Formio.createForm(this.element.nativeElement, this.src || this.form, this.options).then((form) => {
|
|
15
|
-
if (this.submission) {
|
|
16
|
-
form.submission = this.submission;
|
|
17
|
-
}
|
|
18
|
-
this.ready.emit(form);
|
|
19
|
-
form.on('submit', (submission) => this.submit.emit(submission));
|
|
20
|
-
form.on('error', (err) => this.error.emit(err));
|
|
21
|
-
}).catch((err) => this.error.emit(err));
|
|
22
|
-
}
|
|
23
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormioComponent, selector: "formio", inputs: { src: "src", form: "form", submission: "submission", options: "options" }, outputs: { ready: "ready", submit: "submit", error: "error" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["formio"], descendants: true }], ngImport: i0, template: '<div #formio></div>', isInline: true });
|
|
25
|
-
}
|
|
26
|
-
export { FormioComponent };
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioComponent, decorators: [{
|
|
28
|
-
type: Component,
|
|
29
|
-
args: [{
|
|
30
|
-
selector: 'formio',
|
|
31
|
-
template: '<div #formio></div>'
|
|
32
|
-
}]
|
|
33
|
-
}], propDecorators: { src: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}], form: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], submission: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], options: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], ready: [{
|
|
42
|
-
type: Output
|
|
43
|
-
}], submit: [{
|
|
44
|
-
type: Output
|
|
45
|
-
}], error: [{
|
|
46
|
-
type: Output
|
|
47
|
-
}], element: [{
|
|
48
|
-
type: ViewChild,
|
|
49
|
-
args: ['formio']
|
|
50
|
-
}] } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWlvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItZm9ybWlvL2VtYmVkL3NyYy9mb3JtaW8uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFjLEtBQUssRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUE0QixNQUFNLGVBQWUsQ0FBQztBQUN4SCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBRXhDLE1BSWEsZUFBZTtJQUNmLEdBQUcsQ0FBVTtJQUNiLElBQUksQ0FBaUI7SUFDckIsVUFBVSxDQUFpQjtJQUMzQixPQUFPLEdBQVksRUFBRSxDQUFDO0lBQ3JCLEtBQUssR0FBRyxJQUFJLFlBQVksRUFBVSxDQUFDO0lBQ25DLE1BQU0sR0FBRyxJQUFJLFlBQVksRUFBVSxDQUFDO0lBQ3BDLEtBQUssR0FBRyxJQUFJLFlBQVksRUFBTyxDQUFDO0lBQ3JCLE9BQU8sQ0FBYTtJQUN6QyxlQUFlO1FBQ1gsTUFBTSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLGFBQWEsRUFBRSxJQUFJLENBQUMsR0FBRyxJQUFJLElBQUksQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLE9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YyB8fCB0aGlzLmZvcm0sIHRoaXMub3B0aW9ucykudGhlbigoZm9ybSkgPT4ge1xuICAgICAgICAgICAgaWYgKHRoaXMuc3VibWlzc2lvbikge1xuICAgICAgICAgICAgICAgIGZvcm0uc3VibWlzc2lvbiA9IHRoaXMuc3VibWlzc2lvbjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMucmVhZHkuZW1pdChmb3JtKTtcbiAgICAgICAgICAgIGZvcm0ub24oJ3N1Ym1pdCcsIChzdWJtaXNzaW9uKSA9PiB0aGlzLnN1Ym1pdC5lbWl0KHN1Ym1pc3Npb24pKTtcbiAgICAgICAgICAgIGZvcm0ub24oJ2Vycm9yJywgKGVycikgPT4gdGhpcy5lcnJvci5lbWl0KGVycikpO1xuICAgICAgICB9KS5jYXRjaCgoZXJyKSA9PiB0aGlzLmVycm9yLmVtaXQoZXJyKSk7XG4gICAgfVxufSJdfQ==
|
package/esm2022/embed/index.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Formio } from '@formio/js/sdk';
|
|
2
|
-
export { FormioComponent } from './formio.component';
|
|
3
|
-
export { FormioBuilder } from './builder.component';
|
|
4
|
-
export { FormioEmbedModule } from './embed.module';
|
|
5
|
-
export { FormioAppService, FormioAppConfig } from './app.service';
|
|
6
|
-
export { Formio };
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWZvcm1pby9lbWJlZC9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3hDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDbkQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLGVBQWUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNsRSxPQUFPLEVBQUUsTUFBTSxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGb3JtaW8gfSBmcm9tICdAZm9ybWlvL2pzL3Nkayc7XG5leHBvcnQgeyBGb3JtaW9Db21wb25lbnQgfSBmcm9tICcuL2Zvcm1pby5jb21wb25lbnQnO1xuZXhwb3J0IHsgRm9ybWlvQnVpbGRlciB9IGZyb20gJy4vYnVpbGRlci5jb21wb25lbnQnO1xuZXhwb3J0IHsgRm9ybWlvRW1iZWRNb2R1bGUgfSBmcm9tICcuL2VtYmVkLm1vZHVsZSc7XG5leHBvcnQgeyBGb3JtaW9BcHBTZXJ2aWNlLCBGb3JtaW9BcHBDb25maWcgfSBmcm9tICcuL2FwcC5zZXJ2aWNlJztcbmV4cG9ydCB7IEZvcm1pbyB9OyJdfQ==
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { Formio } from '@formio/js/sdk';
|
|
2
|
-
export { Formio } from '@formio/js/sdk';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { EventEmitter, Component, Input, Output, ViewChild, InjectionToken, Injectable, Inject, NgModule } from '@angular/core';
|
|
5
|
-
import { CommonModule } from '@angular/common';
|
|
6
|
-
|
|
7
|
-
class FormioComponent {
|
|
8
|
-
src;
|
|
9
|
-
form;
|
|
10
|
-
submission;
|
|
11
|
-
options = {};
|
|
12
|
-
ready = new EventEmitter();
|
|
13
|
-
submit = new EventEmitter();
|
|
14
|
-
error = new EventEmitter();
|
|
15
|
-
element;
|
|
16
|
-
ngAfterViewInit() {
|
|
17
|
-
Formio.createForm(this.element.nativeElement, this.src || this.form, this.options).then((form) => {
|
|
18
|
-
if (this.submission) {
|
|
19
|
-
form.submission = this.submission;
|
|
20
|
-
}
|
|
21
|
-
this.ready.emit(form);
|
|
22
|
-
form.on('submit', (submission) => this.submit.emit(submission));
|
|
23
|
-
form.on('error', (err) => this.error.emit(err));
|
|
24
|
-
}).catch((err) => this.error.emit(err));
|
|
25
|
-
}
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormioComponent, selector: "formio", inputs: { src: "src", form: "form", submission: "submission", options: "options" }, outputs: { ready: "ready", submit: "submit", error: "error" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["formio"], descendants: true }], ngImport: i0, template: '<div #formio></div>', isInline: true });
|
|
28
|
-
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioComponent, decorators: [{
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{
|
|
32
|
-
selector: 'formio',
|
|
33
|
-
template: '<div #formio></div>'
|
|
34
|
-
}]
|
|
35
|
-
}], propDecorators: { src: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], form: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], submission: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], options: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], ready: [{
|
|
44
|
-
type: Output
|
|
45
|
-
}], submit: [{
|
|
46
|
-
type: Output
|
|
47
|
-
}], error: [{
|
|
48
|
-
type: Output
|
|
49
|
-
}], element: [{
|
|
50
|
-
type: ViewChild,
|
|
51
|
-
args: ['formio']
|
|
52
|
-
}] } });
|
|
53
|
-
|
|
54
|
-
class FormioBuilder {
|
|
55
|
-
element;
|
|
56
|
-
form;
|
|
57
|
-
options = {};
|
|
58
|
-
ready = new EventEmitter();
|
|
59
|
-
error = new EventEmitter();
|
|
60
|
-
ngAfterViewInit() {
|
|
61
|
-
Formio.builder(this.element.nativeElement, this.form, this.options).then((builder) => {
|
|
62
|
-
this.ready.emit(builder);
|
|
63
|
-
}).catch((err) => this.error.emit(err));
|
|
64
|
-
}
|
|
65
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioBuilder, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormioBuilder, selector: "formio-builder", inputs: { form: "form", options: "options" }, outputs: { ready: "ready", error: "error" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["formio"], descendants: true }], ngImport: i0, template: '<div #formio></div>', isInline: true });
|
|
67
|
-
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioBuilder, decorators: [{
|
|
69
|
-
type: Component,
|
|
70
|
-
args: [{
|
|
71
|
-
selector: 'formio-builder',
|
|
72
|
-
template: '<div #formio></div>'
|
|
73
|
-
}]
|
|
74
|
-
}], propDecorators: { element: [{
|
|
75
|
-
type: ViewChild,
|
|
76
|
-
args: ['formio']
|
|
77
|
-
}], form: [{
|
|
78
|
-
type: Input
|
|
79
|
-
}], options: [{
|
|
80
|
-
type: Input
|
|
81
|
-
}], ready: [{
|
|
82
|
-
type: Output
|
|
83
|
-
}], error: [{
|
|
84
|
-
type: Output
|
|
85
|
-
}] } });
|
|
86
|
-
|
|
87
|
-
const FormioAppConfig = new InjectionToken('formio-config');
|
|
88
|
-
class FormioAppService {
|
|
89
|
-
baseUrl;
|
|
90
|
-
apiUrl;
|
|
91
|
-
projectUrl;
|
|
92
|
-
appUrl;
|
|
93
|
-
icons;
|
|
94
|
-
formio;
|
|
95
|
-
user;
|
|
96
|
-
onUser = new EventEmitter();
|
|
97
|
-
constructor(config = {}) {
|
|
98
|
-
this.baseUrl = this.apiUrl = config.apiUrl || config.baseUrl;
|
|
99
|
-
this.projectUrl = this.appUrl = config.appUrl || config.projectUrl;
|
|
100
|
-
if (this.baseUrl) {
|
|
101
|
-
Formio.setBaseUrl(this.baseUrl);
|
|
102
|
-
Formio.setProjectUrl(this.projectUrl);
|
|
103
|
-
if (config.icons) {
|
|
104
|
-
Formio.icons = config.icons;
|
|
105
|
-
}
|
|
106
|
-
if (config.config) {
|
|
107
|
-
for (let key in config.config) {
|
|
108
|
-
Formio.config[key] = config.config[key];
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
Formio.events.on('formio.user', (user) => this.setUser(user));
|
|
112
|
-
this.formio = new Formio(this.projectUrl);
|
|
113
|
-
this.authenticate();
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
setUser(user) {
|
|
117
|
-
this.user = user;
|
|
118
|
-
this.onUser.emit(user);
|
|
119
|
-
}
|
|
120
|
-
logout() {
|
|
121
|
-
return Formio.logout().then(() => {
|
|
122
|
-
this.setUser(null);
|
|
123
|
-
Formio.clearCache();
|
|
124
|
-
}).catch(() => {
|
|
125
|
-
this.setUser(null);
|
|
126
|
-
Formio.clearCache();
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
authenticate() {
|
|
130
|
-
return this.formio.currentUser().then((user) => this.setUser(user)).catch(() => this.setUser(null));
|
|
131
|
-
}
|
|
132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioAppService, deps: [{ token: FormioAppConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
133
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioAppService });
|
|
134
|
-
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioAppService, decorators: [{
|
|
136
|
-
type: Injectable
|
|
137
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
138
|
-
type: Inject,
|
|
139
|
-
args: [FormioAppConfig]
|
|
140
|
-
}] }]; } });
|
|
141
|
-
|
|
142
|
-
class FormioEmbedModule {
|
|
143
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioEmbedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
144
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormioEmbedModule, declarations: [FormioComponent,
|
|
145
|
-
FormioBuilder], imports: [CommonModule], exports: [FormioComponent,
|
|
146
|
-
FormioBuilder] });
|
|
147
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioEmbedModule, providers: [
|
|
148
|
-
FormioAppService
|
|
149
|
-
], imports: [CommonModule] });
|
|
150
|
-
}
|
|
151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormioEmbedModule, decorators: [{
|
|
152
|
-
type: NgModule,
|
|
153
|
-
args: [{
|
|
154
|
-
imports: [
|
|
155
|
-
CommonModule
|
|
156
|
-
],
|
|
157
|
-
declarations: [
|
|
158
|
-
FormioComponent,
|
|
159
|
-
FormioBuilder
|
|
160
|
-
],
|
|
161
|
-
exports: [
|
|
162
|
-
FormioComponent,
|
|
163
|
-
FormioBuilder
|
|
164
|
-
],
|
|
165
|
-
providers: [
|
|
166
|
-
FormioAppService
|
|
167
|
-
]
|
|
168
|
-
}]
|
|
169
|
-
}] });
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Generated bundle index. Do not edit.
|
|
173
|
-
*/
|
|
174
|
-
|
|
175
|
-
export { FormioAppConfig, FormioAppService, FormioBuilder, FormioComponent, FormioEmbedModule };
|
|
176
|
-
//# sourceMappingURL=formio-angular-embed.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formio-angular-embed.mjs","sources":["../../../projects/angular-formio/embed/src/formio.component.ts","../../../projects/angular-formio/embed/src/builder.component.ts","../../../projects/angular-formio/embed/src/app.service.ts","../../../projects/angular-formio/embed/src/embed.module.ts","../../../projects/angular-formio/embed/src/formio-angular-embed.ts"],"sourcesContent":["import { Component, ViewChild, ElementRef, Input, Output, EventEmitter, OnChanges, AfterViewInit } from '@angular/core';\nimport { Formio } from '@formio/js/sdk';\n\n@Component({\n selector: 'formio',\n template: '<div #formio></div>'\n})\nexport class FormioComponent implements AfterViewInit {\n @Input() src?: string;\n @Input() form?: Object | null;\n @Input() submission?: Object | null;\n @Input() options?: Object = {};\n @Output() ready = new EventEmitter<Formio>();\n @Output() submit = new EventEmitter<object>();\n @Output() error = new EventEmitter<any>();\n @ViewChild('formio') element: ElementRef;\n ngAfterViewInit(): void {\n Formio.createForm(this.element.nativeElement, this.src || this.form, this.options).then((form) => {\n if (this.submission) {\n form.submission = this.submission;\n }\n this.ready.emit(form);\n form.on('submit', (submission) => this.submit.emit(submission));\n form.on('error', (err) => this.error.emit(err));\n }).catch((err) => this.error.emit(err));\n }\n}","import { Component, ElementRef, Input, ViewChild, OnChanges, Output, EventEmitter, AfterViewInit } from '@angular/core';\nimport { Formio } from '@formio/js/sdk';\n\n@Component({\n selector: 'formio-builder',\n template: '<div #formio></div>'\n})\nexport class FormioBuilder implements AfterViewInit {\n @ViewChild('formio') element: ElementRef;\n @Input() form?: Object | null;\n @Input() options?: Object = {};\n @Output() ready = new EventEmitter<Formio>();\n @Output() error = new EventEmitter<any>();\n ngAfterViewInit(): void {\n Formio.builder(this.element.nativeElement, this.form, this.options).then((builder) => {\n this.ready.emit(builder);\n }).catch((err) => this.error.emit(err));\n }\n}","import { Inject, Injectable, InjectionToken, EventEmitter } from '@angular/core';\nexport const FormioAppConfig = new InjectionToken('formio-config');\nimport { Formio } from '@formio/js/sdk';\n@Injectable()\nexport class FormioAppService {\n baseUrl;\n apiUrl;\n projectUrl;\n appUrl;\n icons?: string;\n formio: Formio;\n user?: any;\n onUser: EventEmitter<object> = new EventEmitter<object>();\n constructor(@Inject(FormioAppConfig) config: {\n apiUrl?: string,\n baseUrl?: string,\n appUrl?: string,\n projectUrl?: string,\n icons?: string,\n config?: any\n } = {}) {\n this.baseUrl = this.apiUrl = config.apiUrl || config.baseUrl;\n this.projectUrl = this.appUrl = config.appUrl || config.projectUrl;\n if (this.baseUrl) {\n Formio.setBaseUrl(this.baseUrl);\n Formio.setProjectUrl(this.projectUrl);\n if (config.icons) {\n Formio.icons = config.icons;\n }\n if (config.config) {\n for (let key in config.config) {\n Formio.config[key] = config.config[key];\n }\n }\n Formio.events.on('formio.user', (user) => this.setUser(user));\n this.formio = new Formio(this.projectUrl);\n this.authenticate();\n }\n }\n\n setUser(user) {\n this.user = user;\n this.onUser.emit(user);\n }\n\n logout() {\n return Formio.logout().then(() => {\n this.setUser(null);\n Formio.clearCache();\n }).catch(() => {\n this.setUser(null);\n Formio.clearCache();\n });\n }\n\n authenticate() {\n return this.formio.currentUser().then((user) => this.setUser(user)).catch(() => this.setUser(null));\n }\n}","import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { FormioComponent } from \"./formio.component\";\nimport { FormioBuilder } from \"./builder.component\";\nimport { FormioAppService } from \"./app.service\";\n\n@NgModule({\n imports: [\n CommonModule\n ],\n declarations: [\n FormioComponent,\n FormioBuilder\n ],\n exports: [\n FormioComponent,\n FormioBuilder\n ],\n providers: [\n FormioAppService\n ]\n})\nexport class FormioEmbedModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAGA,MAIa,eAAe,CAAA;AACf,IAAA,GAAG,CAAU;AACb,IAAA,IAAI,CAAiB;AACrB,IAAA,UAAU,CAAiB;IAC3B,OAAO,GAAY,EAAE,CAAC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