@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formio.loader.component.d.ts","sourceRoot":"","sources":["../../../../projects/angular-formio/src/components/loader/formio.loader.component.ts"],"names":[],"mappings":";AAEA,qBAMa,qBAAqB;IACvB,SAAS,EAAE,OAAO,CAAA;yCADhB,qBAAqB;2CAArB,qBAAqB;CAEjC"}
|
package/core.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './formio.config';
|
|
2
|
+
export * from './formio.common';
|
|
3
|
+
export * from './formio.service';
|
|
4
|
+
export * from './formio-promise.service';
|
|
5
|
+
export * from './formio.utils';
|
|
6
|
+
export * from './FormioBaseComponent';
|
|
7
|
+
export * from './components/formio/formio.component';
|
|
8
|
+
export * from './components/formbuilder/formbuilder.component';
|
|
9
|
+
export * from './components/formioreport/formioreport.component';
|
|
10
|
+
export * from './components/loader/formio.loader.component';
|
|
11
|
+
export * from './components/alerts/formio.alerts';
|
|
12
|
+
export * from './components/alerts/formio.alerts.component';
|
|
13
|
+
export { FormioModule } from './formio.module';
|
|
14
|
+
export { ComponentSchema, ExtendedComponentSchema, ElementInfo } from '@formio/deprecated-types';
|
|
15
|
+
export { Utils as FormioUtils } from '@formio/js';
|
|
16
|
+
export { Formio } from '@formio/js';
|
|
17
|
+
//# sourceMappingURL=core.d.ts.map
|
package/core.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../projects/angular-formio/src/core.ts"],"names":[],"mappings":"AAGA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACjG,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CustomTagsService {
|
|
3
|
+
tags: string[];
|
|
4
|
+
addCustomTag(tag: string): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTagsService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CustomTagsService>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=custom-tags.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-tags.service.d.ts","sourceRoot":"","sources":["../../projects/angular-formio/src/custom-tags.service.ts"],"names":[],"mappings":";AACA,qBACa,iBAAiB;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAM;IAEpB,YAAY,CAAC,GAAG,EAAE,MAAM;yCAHb,iBAAiB;6CAAjB,iBAAiB;CAM7B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { InjectionToken, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormioCore as Formio } from '@formio/js';
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,UAAU,IAAI,MAAM,EAAE,MAAM,YAAY,CAAC;;AADlD,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { Form, FormBuilder } from '@formio/js';
|
|
3
|
+
import WebformBuilder from '@formio/js/lib/cjs/WebformBuilder';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormioBuilder implements AfterViewInit {
|
|
6
|
+
element: ElementRef;
|
|
7
|
+
form?: Form['options'] | null;
|
|
8
|
+
options?: FormBuilder['options'];
|
|
9
|
+
change: EventEmitter<any>;
|
|
10
|
+
ready: EventEmitter<any>;
|
|
11
|
+
error: EventEmitter<any>;
|
|
12
|
+
builder: FormBuilder;
|
|
13
|
+
componentAdding: boolean;
|
|
14
|
+
get instance(): WebformBuilder;
|
|
15
|
+
ngAfterViewInit(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormioBuilder, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormioBuilder, "formio-builder", never, { "form": { "alias": "form"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "change": "change"; "ready": "ready"; "error": "error"; }, never, never, false, never>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=builder.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.component.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/embed/src/builder.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAA4B,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAC,IAAI,EAAE,WAAW,EAAU,MAAM,YAAY,CAAC;AACtD,OAAO,cAAc,MAAM,mCAAmC,CAAC;;AAE/D,qBAKa,aAAc,YAAW,aAAa;IAC1B,OAAO,EAAE,UAAU,CAAC;IAChC,IAAI,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAM;IACrC,MAAM,oBAA2B;IACjC,KAAK,oBAA2B;IAChC,KAAK,oBAA2B;IACnC,OAAO,EAAE,WAAW,CAAC;IACrB,eAAe,UAAS;IAC/B,IAAI,QAAQ,IAAI,cAAc,CAE7B;IACD,eAAe,IAAI,IAAI;yCAZd,aAAa;2CAAb,aAAa;CA2DzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { Webform, Form } from '@formio/js';
|
|
3
|
+
import { Form as formType, Submission } from '@formio/core/types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormioComponent implements AfterViewInit {
|
|
6
|
+
src?: string;
|
|
7
|
+
form?: formType | null;
|
|
8
|
+
submission?: Submission | null;
|
|
9
|
+
url?: string;
|
|
10
|
+
options?: Form['options'];
|
|
11
|
+
ready: EventEmitter<Webform>;
|
|
12
|
+
submit: EventEmitter<object>;
|
|
13
|
+
error: EventEmitter<any>;
|
|
14
|
+
change: EventEmitter<any>;
|
|
15
|
+
element: ElementRef;
|
|
16
|
+
instance: Webform;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormioComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormioComponent, "formio", never, { "src": { "alias": "src"; "required": false; }; "form": { "alias": "form"; "required": false; }; "submission": { "alias": "submission"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "ready": "ready"; "submit": "submit"; "error": "error"; "change": "change"; }, never, never, false, never>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=formio.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,EAAwB,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;;AAElE,qBAKa,eAAgB,YAAW,aAAa;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAM;IAC9B,KAAK,wBAA+B;IACpC,MAAM,uBAA8B;IACpC,KAAK,oBAA2B;IAChC,MAAM,oBAA2B;IACtB,OAAO,EAAE,UAAU,CAAC;IAClC,QAAQ,EAAE,OAAO,CAAC;IACzB,eAAe,IAAI,IAAI;yCAZd,eAAe;2CAAf,eAAe;CA2B3B"}
|
package/embed/index.d.ts
CHANGED
|
@@ -1,73 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare class FormioComponent implements AfterViewInit {
|
|
10
|
-
src?: string;
|
|
11
|
-
form?: Form | null;
|
|
12
|
-
submission?: Submission | null;
|
|
13
|
-
url?: string;
|
|
14
|
-
options?: Form$1['options'];
|
|
15
|
-
ready: EventEmitter<Webform>;
|
|
16
|
-
submit: EventEmitter<object>;
|
|
17
|
-
error: EventEmitter<any>;
|
|
18
|
-
change: EventEmitter<any>;
|
|
19
|
-
element: ElementRef;
|
|
20
|
-
instance: Webform;
|
|
21
|
-
ngAfterViewInit(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioComponent, "formio", never, { "src": { "alias": "src"; "required": false; }; "form": { "alias": "form"; "required": false; }; "submission": { "alias": "submission"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "ready": "ready"; "submit": "submit"; "error": "error"; "change": "change"; }, never, never, false, never>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare class FormioBuilder implements AfterViewInit {
|
|
27
|
-
element: ElementRef;
|
|
28
|
-
form?: Form$1['options'] | null;
|
|
29
|
-
options?: FormBuilder['options'];
|
|
30
|
-
change: EventEmitter<any>;
|
|
31
|
-
ready: EventEmitter<any>;
|
|
32
|
-
error: EventEmitter<any>;
|
|
33
|
-
builder: FormBuilder;
|
|
34
|
-
componentAdding: boolean;
|
|
35
|
-
get instance(): WebformBuilder;
|
|
36
|
-
ngAfterViewInit(): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioBuilder, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioBuilder, "formio-builder", never, { "form": { "alias": "form"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "change": "change"; "ready": "ready"; "error": "error"; }, never, never, false, never>;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
declare class FormioEmbedModule {
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioEmbedModule, never>;
|
|
43
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormioEmbedModule, [typeof FormioComponent, typeof FormioBuilder], [typeof i3.CommonModule], [typeof FormioComponent, typeof FormioBuilder]>;
|
|
44
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormioEmbedModule>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare const FormioAppConfig: InjectionToken<unknown>;
|
|
48
|
-
declare class FormioAppService {
|
|
49
|
-
baseUrl: any;
|
|
50
|
-
apiUrl: any;
|
|
51
|
-
projectUrl: any;
|
|
52
|
-
appUrl: any;
|
|
53
|
-
icons?: string;
|
|
54
|
-
formio: FormioCore;
|
|
55
|
-
user?: any;
|
|
56
|
-
onUser: EventEmitter<object>;
|
|
57
|
-
constructor(config?: {
|
|
58
|
-
apiUrl?: string;
|
|
59
|
-
baseUrl?: string;
|
|
60
|
-
appUrl?: string;
|
|
61
|
-
projectUrl?: string;
|
|
62
|
-
icons?: string;
|
|
63
|
-
config?: any;
|
|
64
|
-
});
|
|
65
|
-
setUser(user: any): void;
|
|
66
|
-
logout(): any;
|
|
67
|
-
authenticate(): any;
|
|
68
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioAppService, never>;
|
|
69
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormioAppService>;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export { FormioAppConfig, FormioAppService, FormioBuilder, FormioComponent, FormioEmbedModule };
|
|
73
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { FormioCore as Formio } from '@formio/js';
|
|
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/embed/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,YAAY,CAAC;AAClD,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"}
|
|
@@ -15,10 +15,10 @@ class FormioAuthConfig {
|
|
|
15
15
|
register;
|
|
16
16
|
resetpass;
|
|
17
17
|
oauth;
|
|
18
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthConfig });
|
|
20
20
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthConfig, decorators: [{
|
|
22
22
|
type: Injectable
|
|
23
23
|
}] });
|
|
24
24
|
var FormioOauthType;
|
|
@@ -213,18 +213,18 @@ class FormioAuthService {
|
|
|
213
213
|
})
|
|
214
214
|
.catch(() => this.logoutError());
|
|
215
215
|
}
|
|
216
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
217
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
216
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthService, deps: [{ token: i2.FormioAppConfig }, { token: FormioAuthConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
217
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthService });
|
|
218
218
|
}
|
|
219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthService, decorators: [{
|
|
220
220
|
type: Injectable
|
|
221
221
|
}], ctorParameters: () => [{ type: i2.FormioAppConfig }, { type: FormioAuthConfig }] });
|
|
222
222
|
|
|
223
223
|
class FormioAuthComponent {
|
|
224
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
225
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
224
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
225
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: FormioAuthComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: "<div class=\"card card-primary panel panel-default\">\n <div class=\"card-header panel-heading\">\n <ul class=\"nav nav-tabs card-header-tabs\">\n <li class=\"nav-item\" role=\"presentation\" routerLinkActive=\"active\"><a class=\"nav-link\" routerLink=\"login\" routerLinkActive=\"active\">Login</a></li>\n <li class=\"nav-item\" role=\"presentation\" routerLinkActive=\"active\"><a class=\"nav-link\" routerLink=\"register\" routerLinkActive=\"active\">Register</a></li>\n </ul>\n </div>\n <div class=\"card-body panel-body\">\n <router-outlet></router-outlet>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
|
|
226
226
|
}
|
|
227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthComponent, decorators: [{
|
|
228
228
|
type: Component,
|
|
229
229
|
args: [{ standalone: false, template: "<div class=\"card card-primary panel panel-default\">\n <div class=\"card-header panel-heading\">\n <ul class=\"nav nav-tabs card-header-tabs\">\n <li class=\"nav-item\" role=\"presentation\" routerLinkActive=\"active\"><a class=\"nav-link\" routerLink=\"login\" routerLinkActive=\"active\">Login</a></li>\n <li class=\"nav-item\" role=\"presentation\" routerLinkActive=\"active\"><a class=\"nav-link\" routerLink=\"register\" routerLinkActive=\"active\">Register</a></li>\n </ul>\n </div>\n <div class=\"card-body panel-body\">\n <router-outlet></router-outlet>\n </div>\n</div>\n" }]
|
|
230
230
|
}] });
|
|
@@ -237,10 +237,10 @@ class FormioAuthLoginComponent {
|
|
|
237
237
|
constructor(service) {
|
|
238
238
|
this.service = service;
|
|
239
239
|
}
|
|
240
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
241
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
240
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthLoginComponent, deps: [{ token: FormioAuthService }], target: i0.ɵɵFactoryTarget.Component });
|
|
241
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: FormioAuthLoginComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: "<formio [src]=\"service.loginForm\" [renderOptions]=\"renderOptions\" (submit)=\"service.onLoginSubmit($event)\"></formio>\n", dependencies: [{ kind: "component", type: i2.FormioComponent, selector: "formio" }] });
|
|
242
242
|
}
|
|
243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthLoginComponent, decorators: [{
|
|
244
244
|
type: Component,
|
|
245
245
|
args: [{ standalone: false, template: "<formio [src]=\"service.loginForm\" [renderOptions]=\"renderOptions\" (submit)=\"service.onLoginSubmit($event)\"></formio>\n" }]
|
|
246
246
|
}], ctorParameters: () => [{ type: FormioAuthService }] });
|
|
@@ -253,10 +253,10 @@ class FormioAuthRegisterComponent {
|
|
|
253
253
|
constructor(service) {
|
|
254
254
|
this.service = service;
|
|
255
255
|
}
|
|
256
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
257
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
256
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthRegisterComponent, deps: [{ token: FormioAuthService }], target: i0.ɵɵFactoryTarget.Component });
|
|
257
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: FormioAuthRegisterComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: "<formio [src]=\"service.registerForm\" [renderOptions]=\"renderOptions\" (submit)=\"service.onRegisterSubmit($event)\"></formio>\n", dependencies: [{ kind: "component", type: i2.FormioComponent, selector: "formio" }] });
|
|
258
258
|
}
|
|
259
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuthRegisterComponent, decorators: [{
|
|
260
260
|
type: Component,
|
|
261
261
|
args: [{ standalone: false, template: "<formio [src]=\"service.registerForm\" [renderOptions]=\"renderOptions\" (submit)=\"service.onRegisterSubmit($event)\"></formio>\n" }]
|
|
262
262
|
}], ctorParameters: () => [{ type: FormioAuthService }] });
|
|
@@ -266,10 +266,10 @@ class FormioResetPassComponent {
|
|
|
266
266
|
constructor(service) {
|
|
267
267
|
this.service = service;
|
|
268
268
|
}
|
|
269
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
270
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
269
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioResetPassComponent, deps: [{ token: FormioAuthService }], target: i0.ɵɵFactoryTarget.Component });
|
|
270
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: FormioResetPassComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: "<formio [src]=\"service.resetPassForm\" (submit)=\"service.onResetPassSubmit($event)\"></formio>\n", dependencies: [{ kind: "component", type: i2.FormioComponent, selector: "formio" }] });
|
|
271
271
|
}
|
|
272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioResetPassComponent, decorators: [{
|
|
273
273
|
type: Component,
|
|
274
274
|
args: [{ standalone: false, template: "<formio [src]=\"service.resetPassForm\" (submit)=\"service.onResetPassSubmit($event)\"></formio>\n" }]
|
|
275
275
|
}], ctorParameters: () => [{ type: FormioAuthService }] });
|
|
@@ -309,18 +309,18 @@ class FormioAuth {
|
|
|
309
309
|
static forChild(config) {
|
|
310
310
|
return extendRouter(FormioAuth, config, FormioAuthRoutes);
|
|
311
311
|
}
|
|
312
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
313
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
312
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuth, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
313
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: FormioAuth, declarations: [FormioAuthComponent,
|
|
314
314
|
FormioAuthLoginComponent,
|
|
315
315
|
FormioAuthRegisterComponent,
|
|
316
316
|
FormioResetPassComponent], imports: [CommonModule,
|
|
317
317
|
FormioModule,
|
|
318
318
|
RouterModule] });
|
|
319
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
319
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuth, imports: [CommonModule,
|
|
320
320
|
FormioModule,
|
|
321
321
|
RouterModule] });
|
|
322
322
|
}
|
|
323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAuth, decorators: [{
|
|
324
324
|
type: NgModule,
|
|
325
325
|
args: [{
|
|
326
326
|
imports: [
|
|
@@ -31,10 +31,10 @@ class FormioComponent {
|
|
|
31
31
|
form.on('change', (event) => this.change.emit(event));
|
|
32
32
|
}).catch((err) => this.error.emit(err));
|
|
33
33
|
}
|
|
34
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
35
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: FormioComponent, isStandalone: false, selector: "formio", inputs: { src: "src", form: "form", submission: "submission", url: "url", options: "options" }, outputs: { ready: "ready", submit: "submit", error: "error", change: "change" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["formio"], descendants: true }], ngImport: i0, template: '<div #formio></div>', isInline: true });
|
|
36
36
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioComponent, decorators: [{
|
|
38
38
|
type: Component,
|
|
39
39
|
args: [{
|
|
40
40
|
selector: 'formio',
|
|
@@ -124,10 +124,10 @@ class FormioBuilder {
|
|
|
124
124
|
this.ready.emit(this.instance);
|
|
125
125
|
}).catch((err) => this.error.emit(err));
|
|
126
126
|
}
|
|
127
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
128
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioBuilder, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
128
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: FormioBuilder, isStandalone: false, selector: "formio-builder", inputs: { form: "form", options: "options" }, outputs: { change: "change", ready: "ready", error: "error" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["formio"], descendants: true }], ngImport: i0, template: '<div #formio></div>', isInline: true });
|
|
129
129
|
}
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioBuilder, decorators: [{
|
|
131
131
|
type: Component,
|
|
132
132
|
args: [{
|
|
133
133
|
selector: 'formio-builder',
|
|
@@ -194,10 +194,10 @@ class FormioAppService {
|
|
|
194
194
|
authenticate() {
|
|
195
195
|
return this.formio.currentUser().then((user) => this.setUser(user)).catch(() => this.setUser(null));
|
|
196
196
|
}
|
|
197
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
198
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
197
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAppService, deps: [{ token: FormioAppConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
198
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAppService });
|
|
199
199
|
}
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAppService, decorators: [{
|
|
201
201
|
type: Injectable
|
|
202
202
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
203
203
|
type: Inject,
|
|
@@ -205,15 +205,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.11", ngImpo
|
|
|
205
205
|
}] }] });
|
|
206
206
|
|
|
207
207
|
class FormioEmbedModule {
|
|
208
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
209
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
208
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioEmbedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
209
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: FormioEmbedModule, declarations: [FormioComponent,
|
|
210
210
|
FormioBuilder], imports: [CommonModule], exports: [FormioComponent,
|
|
211
211
|
FormioBuilder] });
|
|
212
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
212
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioEmbedModule, providers: [
|
|
213
213
|
FormioAppService
|
|
214
214
|
], imports: [CommonModule] });
|
|
215
215
|
}
|
|
216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioEmbedModule, decorators: [{
|
|
217
217
|
type: NgModule,
|
|
218
218
|
args: [{
|
|
219
219
|
imports: [
|
|
@@ -1 +1 @@
|
|
|
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 { FormioCore as Formio, Webform, Form } from '@formio/js';\nimport { Form as formType, Submission } from '@formio/core/types';\n\n@Component({\n selector: 'formio',\n template: '<div #formio></div>',\n standalone: false\n})\nexport class FormioComponent implements AfterViewInit {\n @Input() src?: string;\n @Input() form?: formType | null;\n @Input() submission?: Submission | null;\n @Input() url?: string;\n @Input() options?: Form['options'] = {};\n @Output() ready = new EventEmitter<Webform>();\n @Output() submit = new EventEmitter<object>();\n @Output() error = new EventEmitter<any>();\n @Output() change = new EventEmitter<any>();\n @ViewChild('formio') element: ElementRef;\n public instance: Webform;\n ngAfterViewInit(): void {\n Formio.createForm(this.element.nativeElement, this.src || this.form, this.options).then((form: Webform) => {\n this.instance = form;\n if (this.url) {\n form.url = this.url;\n }\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 form.on('change', (event) => this.change.emit(event));\n }).catch((err) => this.error.emit(err));\n }\n}\n","import { Component, ElementRef, Input, ViewChild, Output, EventEmitter, AfterViewInit } from '@angular/core';\nimport {Form, FormBuilder, Webform} from '@formio/js';\nimport WebformBuilder from '@formio/js/lib/cjs/WebformBuilder';\n\n@Component({\n selector: 'formio-builder',\n template: '<div #formio></div>',\n standalone: false\n})\nexport class FormioBuilder implements AfterViewInit {\n @ViewChild('formio') element: ElementRef;\n @Input() form?: Form['options'] | null;\n @Input() options?: FormBuilder['options'] = {};\n @Output() change = new EventEmitter<any>();\n @Output() ready = new EventEmitter<any>();\n @Output() error = new EventEmitter<any>();\n public builder: FormBuilder;\n public componentAdding = false;\n get instance(): WebformBuilder {\n return this.builder.instance;\n }\n ngAfterViewInit(): void {\n this.builder = new FormBuilder(this.element.nativeElement, this.form, this.options);\n this.builder.ready.then(() => {\n this.instance.on('addComponent', (component, parent, path, index, isNew) => {\n if (isNew) {\n this.componentAdding = true;\n } else {\n this.change.emit({\n type: 'addComponent',\n builder: this.instance,\n form: this.instance.schema,\n component: component,\n parent: parent,\n path: path,\n index: index\n });\n this.componentAdding = false;\n }\n });\n this.instance.on('saveComponent', (component, original, parent, path, index, isNew) => {\n this.change.emit({\n type: this.componentAdding ? 'addComponent' : 'saveComponent',\n builder: this.instance,\n form: this.instance.schema,\n component: component,\n originalComponent: original,\n parent: parent,\n path: path,\n index: index,\n isNew: isNew || false\n });\n this.componentAdding = false;\n });\n this.instance.on('removeComponent', (component, parent, path, index) => {\n this.change.emit({\n type: 'deleteComponent',\n builder: this.instance,\n form: this.instance.schema,\n component: component,\n parent: parent,\n path: path,\n index: index\n });\n });\n this.ready.emit(this.instance);\n }).catch((err) => this.error.emit(err));\n }\n}\n","import { Inject, Injectable, InjectionToken, EventEmitter } from '@angular/core';\nexport const FormioAppConfig = new InjectionToken('formio-config');\nimport { FormioCore as Formio } from '@formio/js';\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":["Formio"],"mappings":";;;;;;MASa,eAAe,CAAA;AACf,IAAA,GAAG;AACH,IAAA,I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AA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAAA,SAAA,EAJf;YACP;AACH,SAAA,EAAA,OAAA,EAAA,CAZG,YAAY,CAAA,EAAA,CAAA;;4FAcP,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAhB7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL;AACH,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,eAAe;wBACf;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,eAAe;wBACf;AACH,qBAAA;AACD,oBAAA,SAAS,EAAE;wBACP;AACH;AACJ,iBAAA;;;ACrBD;;AAEG;;;;"}
|
|
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 { FormioCore as Formio, Webform, Form } from '@formio/js';\nimport { Form as formType, Submission } from '@formio/core/types';\n\n@Component({\n selector: 'formio',\n template: '<div #formio></div>',\n standalone: false\n})\nexport class FormioComponent implements AfterViewInit {\n @Input() src?: string;\n @Input() form?: formType | null;\n @Input() submission?: Submission | null;\n @Input() url?: string;\n @Input() options?: Form['options'] = {};\n @Output() ready = new EventEmitter<Webform>();\n @Output() submit = new EventEmitter<object>();\n @Output() error = new EventEmitter<any>();\n @Output() change = new EventEmitter<any>();\n @ViewChild('formio') element: ElementRef;\n public instance: Webform;\n ngAfterViewInit(): void {\n Formio.createForm(this.element.nativeElement, this.src || this.form, this.options).then((form: Webform) => {\n this.instance = form;\n if (this.url) {\n form.url = this.url;\n }\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 form.on('change', (event) => this.change.emit(event));\n }).catch((err) => this.error.emit(err));\n }\n}\n","import { Component, ElementRef, Input, ViewChild, Output, EventEmitter, AfterViewInit } from '@angular/core';\nimport {Form, FormBuilder, Webform} from '@formio/js';\nimport WebformBuilder from '@formio/js/lib/cjs/WebformBuilder';\n\n@Component({\n selector: 'formio-builder',\n template: '<div #formio></div>',\n standalone: false\n})\nexport class FormioBuilder implements AfterViewInit {\n @ViewChild('formio') element: ElementRef;\n @Input() form?: Form['options'] | null;\n @Input() options?: FormBuilder['options'] = {};\n @Output() change = new EventEmitter<any>();\n @Output() ready = new EventEmitter<any>();\n @Output() error = new EventEmitter<any>();\n public builder: FormBuilder;\n public componentAdding = false;\n get instance(): WebformBuilder {\n return this.builder.instance;\n }\n ngAfterViewInit(): void {\n this.builder = new FormBuilder(this.element.nativeElement, this.form, this.options);\n this.builder.ready.then(() => {\n this.instance.on('addComponent', (component, parent, path, index, isNew) => {\n if (isNew) {\n this.componentAdding = true;\n } else {\n this.change.emit({\n type: 'addComponent',\n builder: this.instance,\n form: this.instance.schema,\n component: component,\n parent: parent,\n path: path,\n index: index\n });\n this.componentAdding = false;\n }\n });\n this.instance.on('saveComponent', (component, original, parent, path, index, isNew) => {\n this.change.emit({\n type: this.componentAdding ? 'addComponent' : 'saveComponent',\n builder: this.instance,\n form: this.instance.schema,\n component: component,\n originalComponent: original,\n parent: parent,\n path: path,\n index: index,\n isNew: isNew || false\n });\n this.componentAdding = false;\n });\n this.instance.on('removeComponent', (component, parent, path, index) => {\n this.change.emit({\n type: 'deleteComponent',\n builder: this.instance,\n form: this.instance.schema,\n component: component,\n parent: parent,\n path: path,\n index: index\n });\n });\n this.ready.emit(this.instance);\n }).catch((err) => this.error.emit(err));\n }\n}\n","import { Inject, Injectable, InjectionToken, EventEmitter } from '@angular/core';\nexport const FormioAppConfig = new InjectionToken('formio-config');\nimport { FormioCore as Formio } from '@formio/js';\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":["Formio"],"mappings":";;;;;;MASa,eAAe,CAAA;AACf,IAAA,GAAG;AACH,IAAA,IAAI;AACJ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