@formio/angular 10.0.0-rc.1 → 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.
Files changed (181) hide show
  1. package/FormioBaseComponent.d.ts +94 -0
  2. package/FormioBaseComponent.d.ts.map +1 -0
  3. package/auth/auth.component.d.ts +6 -0
  4. package/auth/auth.component.d.ts.map +1 -0
  5. package/auth/auth.config.d.ts +63 -0
  6. package/auth/auth.config.d.ts.map +1 -0
  7. package/auth/auth.module.d.ts +17 -0
  8. package/auth/auth.module.d.ts.map +1 -0
  9. package/auth/auth.routes.d.ts +4 -0
  10. package/auth/auth.routes.d.ts.map +1 -0
  11. package/auth/auth.service.d.ts +41 -0
  12. package/auth/auth.service.d.ts.map +1 -0
  13. package/auth/formio-angular-auth.d.ts.map +1 -0
  14. package/auth/index.d.ts +9 -147
  15. package/auth/index.d.ts.map +1 -1
  16. package/auth/login/login.component.d.ts +10 -0
  17. package/auth/login/login.component.d.ts.map +1 -0
  18. package/auth/register/register.component.d.ts +10 -0
  19. package/auth/register/register.component.d.ts.map +1 -0
  20. package/auth/resetpass/resetpass.component.d.ts +9 -0
  21. package/auth/resetpass/resetpass.component.d.ts.map +1 -0
  22. package/components/alerts/formio.alerts.component.d.ts +12 -0
  23. package/components/alerts/formio.alerts.component.d.ts.map +1 -0
  24. package/components/alerts/formio.alerts.d.ts +12 -0
  25. package/components/alerts/formio.alerts.d.ts.map +1 -0
  26. package/components/alerts/parse-html-content.pipe.d.ts +8 -0
  27. package/components/alerts/parse-html-content.pipe.d.ts.map +1 -0
  28. package/components/formbuilder/formbuilder.component.d.ts +37 -0
  29. package/components/formbuilder/formbuilder.component.d.ts.map +1 -0
  30. package/components/formio/formio.component.d.ts +15 -0
  31. package/components/formio/formio.component.d.ts.map +1 -0
  32. package/components/formioreport/formioreport.component.d.ts +21 -0
  33. package/components/formioreport/formioreport.component.d.ts.map +1 -0
  34. package/components/loader/formio.loader.component.d.ts +7 -0
  35. package/components/loader/formio.loader.component.d.ts.map +1 -0
  36. package/core.d.ts +17 -0
  37. package/core.d.ts.map +1 -0
  38. package/custom-tags.service.d.ts +8 -0
  39. package/custom-tags.service.d.ts.map +1 -0
  40. package/embed/app.service.d.ts +28 -0
  41. package/embed/app.service.d.ts.map +1 -0
  42. package/embed/builder.component.d.ts +19 -0
  43. package/embed/builder.component.d.ts.map +1 -0
  44. package/embed/embed.module.d.ts +10 -0
  45. package/embed/embed.module.d.ts.map +1 -0
  46. package/embed/formio-angular-embed.d.ts.map +1 -0
  47. package/embed/formio.component.d.ts +21 -0
  48. package/embed/formio.component.d.ts.map +1 -0
  49. package/embed/index.d.ts +7 -74
  50. package/embed/index.d.ts.map +1 -1
  51. package/fesm2022/formio-angular-auth.mjs +22 -22
  52. package/fesm2022/formio-angular-auth.mjs.map +1 -1
  53. package/fesm2022/formio-angular-embed.mjs +14 -17
  54. package/fesm2022/formio-angular-embed.mjs.map +1 -1
  55. package/fesm2022/formio-angular-grid.mjs +54 -49
  56. package/fesm2022/formio-angular-grid.mjs.map +1 -1
  57. package/fesm2022/formio-angular-manager.mjs +44 -44
  58. package/fesm2022/formio-angular-manager.mjs.map +1 -1
  59. package/fesm2022/formio-angular-resource.mjs +31 -31
  60. package/fesm2022/formio-angular-resource.mjs.map +1 -1
  61. package/fesm2022/formio-angular.mjs +35 -35
  62. package/fesm2022/formio-angular.mjs.map +1 -1
  63. package/formio-angular.d.ts.map +1 -0
  64. package/formio-promise.service.d.ts +16 -0
  65. package/formio-promise.service.d.ts.map +1 -0
  66. package/formio.common.d.ts +68 -0
  67. package/formio.common.d.ts.map +1 -0
  68. package/formio.config.d.ts +21 -0
  69. package/formio.config.d.ts.map +1 -0
  70. package/formio.module.d.ts +15 -0
  71. package/formio.module.d.ts.map +1 -0
  72. package/formio.service.d.ts +18 -0
  73. package/formio.service.d.ts.map +1 -0
  74. package/formio.utils.d.ts +2 -0
  75. package/formio.utils.d.ts.map +1 -0
  76. package/grid/GridBodyComponent.d.ts +35 -0
  77. package/grid/GridBodyComponent.d.ts.map +1 -0
  78. package/grid/GridFooterComponent.d.ts +20 -0
  79. package/grid/GridFooterComponent.d.ts.map +1 -0
  80. package/grid/GridHeaderComponent.d.ts +16 -0
  81. package/grid/GridHeaderComponent.d.ts.map +1 -0
  82. package/grid/form/FormGridBody.component.d.ts +19 -0
  83. package/grid/form/FormGridBody.component.d.ts.map +1 -0
  84. package/grid/form/FormGridFooter.component.d.ts +10 -0
  85. package/grid/form/FormGridFooter.component.d.ts.map +1 -0
  86. package/grid/form/FormGridHeader.component.d.ts +11 -0
  87. package/grid/form/FormGridHeader.component.d.ts.map +1 -0
  88. package/grid/form/index.d.ts +10 -0
  89. package/grid/form/index.d.ts.map +1 -0
  90. package/grid/form/time-since.pipe.d.ts +8 -0
  91. package/grid/form/time-since.pipe.d.ts.map +1 -0
  92. package/grid/formio-angular-grid.d.ts.map +1 -0
  93. package/grid/grid.component.d.ts +59 -0
  94. package/grid/grid.component.d.ts.map +1 -0
  95. package/grid/grid.module.d.ts +23 -0
  96. package/grid/grid.module.d.ts.map +1 -0
  97. package/grid/grid.service.d.ts +10 -0
  98. package/grid/grid.service.d.ts.map +1 -0
  99. package/grid/index.d.ts +13 -237
  100. package/grid/index.d.ts.map +1 -1
  101. package/grid/submission/SubmissionGridBody.component.d.ts +19 -0
  102. package/grid/submission/SubmissionGridBody.component.d.ts.map +1 -0
  103. package/grid/submission/SubmissionGridFooter.component.d.ts +10 -0
  104. package/grid/submission/SubmissionGridFooter.component.d.ts.map +1 -0
  105. package/grid/submission/SubmissionGridHeader.component.d.ts +30 -0
  106. package/grid/submission/SubmissionGridHeader.component.d.ts.map +1 -0
  107. package/grid/submission/index.d.ts +10 -0
  108. package/grid/submission/index.d.ts.map +1 -0
  109. package/grid/types/grid-column.d.ts +7 -0
  110. package/grid/types/grid-column.d.ts.map +1 -0
  111. package/grid/types/grid-footer-positions.d.ts +6 -0
  112. package/grid/types/grid-footer-positions.d.ts.map +1 -0
  113. package/grid/types/grid-header.d.ts +13 -0
  114. package/grid/types/grid-header.d.ts.map +1 -0
  115. package/index.d.ts +4 -354
  116. package/index.d.ts.map +1 -1
  117. package/manager/create/create.component.d.ts +9 -0
  118. package/manager/create/create.component.d.ts.map +1 -0
  119. package/manager/delete/delete.component.d.ts +18 -0
  120. package/manager/delete/delete.component.d.ts.map +1 -0
  121. package/manager/edit/edit.component.d.ts +31 -0
  122. package/manager/edit/edit.component.d.ts.map +1 -0
  123. package/manager/form/form.component.d.ts +29 -0
  124. package/manager/form/form.component.d.ts.map +1 -0
  125. package/manager/form-manager.config.d.ts +30 -0
  126. package/manager/form-manager.config.d.ts.map +1 -0
  127. package/manager/form-manager.module.d.ts +28 -0
  128. package/manager/form-manager.module.d.ts.map +1 -0
  129. package/manager/form-manager.routes.d.ts +4 -0
  130. package/manager/form-manager.routes.d.ts.map +1 -0
  131. package/manager/form-manager.service.d.ts +37 -0
  132. package/manager/form-manager.service.d.ts.map +1 -0
  133. package/manager/formio-angular-manager.d.ts.map +1 -0
  134. package/manager/index/index.component.d.ts +28 -0
  135. package/manager/index/index.component.d.ts.map +1 -0
  136. package/manager/index.d.ts +17 -242
  137. package/manager/index.d.ts.map +1 -1
  138. package/manager/submission/delete/delete.component.d.ts +16 -0
  139. package/manager/submission/delete/delete.component.d.ts.map +1 -0
  140. package/manager/submission/edit/edit.component.d.ts +13 -0
  141. package/manager/submission/edit/edit.component.d.ts.map +1 -0
  142. package/manager/submission/index/index.component.d.ts +13 -0
  143. package/manager/submission/index/index.component.d.ts.map +1 -0
  144. package/manager/submission/submission/submission.component.d.ts +15 -0
  145. package/manager/submission/submission/submission.component.d.ts.map +1 -0
  146. package/manager/submission/view/view.component.d.ts +9 -0
  147. package/manager/submission/view/view.component.d.ts.map +1 -0
  148. package/manager/view/view.component.d.ts +24 -0
  149. package/manager/view/view.component.d.ts.map +1 -0
  150. package/package.json +7 -7
  151. package/resource/create/create.component.d.ts +19 -0
  152. package/resource/create/create.component.d.ts.map +1 -0
  153. package/resource/delete/delete.component.d.ts +14 -0
  154. package/resource/delete/delete.component.d.ts.map +1 -0
  155. package/resource/edit/edit.component.d.ts +22 -0
  156. package/resource/edit/edit.component.d.ts.map +1 -0
  157. package/resource/formio-angular-resource.d.ts.map +1 -0
  158. package/resource/index/index.component.d.ts +23 -0
  159. package/resource/index/index.component.d.ts.map +1 -0
  160. package/resource/index.d.ts +12 -185
  161. package/resource/index.d.ts.map +1 -1
  162. package/resource/resource.component.d.ts +24 -0
  163. package/resource/resource.component.d.ts.map +1 -0
  164. package/resource/resource.config.d.ts +17 -0
  165. package/resource/resource.config.d.ts.map +1 -0
  166. package/resource/resource.module.d.ts +20 -0
  167. package/resource/resource.module.d.ts.map +1 -0
  168. package/resource/resource.routes.d.ts +4 -0
  169. package/resource/resource.routes.d.ts.map +1 -0
  170. package/resource/resource.service.d.ts +52 -0
  171. package/resource/resource.service.d.ts.map +1 -0
  172. package/resource/resources.service.d.ts +16 -0
  173. package/resource/resources.service.d.ts.map +1 -0
  174. package/resource/view/view.component.d.ts +16 -0
  175. package/resource/view/view.component.d.ts.map +1 -0
  176. package/types/alerts-position.d.ts +7 -0
  177. package/types/alerts-position.d.ts.map +1 -0
  178. package/types/formio-metadata.d.ts +11 -0
  179. package/types/formio-metadata.d.ts.map +1 -0
  180. package/types/formio-submission.d.ts +19 -0
  181. 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,74 +1,7 @@
1
- import { Form as Form$1, Webform, FormBuilder, FormioCore } from '@formio/js';
2
- export { FormioCore as Formio } from '@formio/js';
3
- import * as i0 from '@angular/core';
4
- import { AfterViewInit, EventEmitter, ElementRef, OnDestroy, InjectionToken } from '@angular/core';
5
- import { Form, Submission } from '@formio/core/types';
6
- import WebformBuilder from '@formio/js/lib/cjs/WebformBuilder';
7
- import * as i3 from '@angular/common';
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, OnDestroy {
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
- ngOnDestroy(): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<FormioBuilder, never>;
39
- 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>;
40
- }
41
-
42
- declare class FormioEmbedModule {
43
- static ɵfac: i0.ɵɵFactoryDeclaration<FormioEmbedModule, never>;
44
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormioEmbedModule, [typeof FormioComponent, typeof FormioBuilder], [typeof i3.CommonModule], [typeof FormioComponent, typeof FormioBuilder]>;
45
- static ɵinj: i0.ɵɵInjectorDeclaration<FormioEmbedModule>;
46
- }
47
-
48
- declare const FormioAppConfig: InjectionToken<unknown>;
49
- declare class FormioAppService {
50
- baseUrl: any;
51
- apiUrl: any;
52
- projectUrl: any;
53
- appUrl: any;
54
- icons?: string;
55
- formio: FormioCore;
56
- user?: any;
57
- onUser: EventEmitter<object>;
58
- constructor(config?: {
59
- apiUrl?: string;
60
- baseUrl?: string;
61
- appUrl?: string;
62
- projectUrl?: string;
63
- icons?: string;
64
- config?: any;
65
- });
66
- setUser(user: any): void;
67
- logout(): any;
68
- authenticate(): any;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<FormioAppService, never>;
70
- static ɵprov: i0.ɵɵInjectableDeclaration<FormioAppService>;
71
- }
72
-
73
- export { FormioAppConfig, FormioAppService, FormioBuilder, FormioComponent, FormioEmbedModule };
74
- //# 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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../../projects/angular-formio/embed/src/formio.component.ts","../../../projects/angular-formio/embed/src/builder.component.ts","../../../projects/angular-formio/embed/src/embed.module.ts","../../../projects/angular-formio/embed/src/app.service.ts"],"sourcesContent":[null,null,null,null],"names":["formType","Form"],"mappings":";;;;;;;;AASa,cAAA,eAAA,YAAA,aAAA;;AAEA,WAAAA,IAAA;AACA,iBAAA,UAAA;;AAEA,cAAAC,MAAA;AACC,WAAA,YAAA,CAAA,OAAA;AACA,YAAA,YAAA;AACA,WAAA,YAAA;AACA,YAAA,YAAA;;;AAGV;;;AAeH;;AChCD,cAAA,aAAA,YAAA,aAAA,EAAA,SAAA;;;AAQa,cAAA,WAAA;AACC,YAAA,YAAA;AACA,WAAA,YAAA;AACA,WAAA,YAAA;;AAEH;;AAIP;AAgDF;;;AAGD;;AClED,cAAA,iBAAA;;;;AAgBiC;;ACrB1B,cAAA,eAAA,EAAA,cAAA;AAEP,cAAA,gBAAA;AAEI;AACA;AACA;AACA;;;;AAIA,YAAA,YAAA;AACqC;;;;;;;AAO/B;;;;;;AAsCT;;;;"}
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: "20.0.1", ngImport: i0, type: FormioAuthConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: FormioAuthConfig });
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: "20.0.1", ngImport: i0, type: FormioAuthConfig, decorators: [{
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: "20.0.1", ngImport: i0, type: FormioAuthService, deps: [{ token: i2.FormioAppConfig }, { token: FormioAuthConfig }], target: i0.ɵɵFactoryTarget.Injectable });
217
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: FormioAuthService });
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: "20.0.1", ngImport: i0, type: FormioAuthService, decorators: [{
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: "20.0.1", ngImport: i0, type: FormioAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
225
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", 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"] }] });
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: "20.0.1", ngImport: i0, type: FormioAuthComponent, decorators: [{
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: "20.0.1", ngImport: i0, type: FormioAuthLoginComponent, deps: [{ token: FormioAuthService }], target: i0.ɵɵFactoryTarget.Component });
241
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", 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" }] });
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: "20.0.1", ngImport: i0, type: FormioAuthLoginComponent, decorators: [{
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: "20.0.1", ngImport: i0, type: FormioAuthRegisterComponent, deps: [{ token: FormioAuthService }], target: i0.ɵɵFactoryTarget.Component });
257
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", 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" }] });
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: "20.0.1", ngImport: i0, type: FormioAuthRegisterComponent, decorators: [{
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: "20.0.1", ngImport: i0, type: FormioResetPassComponent, deps: [{ token: FormioAuthService }], target: i0.ɵɵFactoryTarget.Component });
270
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", 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" }] });
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: "20.0.1", ngImport: i0, type: FormioResetPassComponent, decorators: [{
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: "20.0.1", ngImport: i0, type: FormioAuth, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
313
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.1", ngImport: i0, type: FormioAuth, declarations: [FormioAuthComponent,
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: "20.0.1", ngImport: i0, type: FormioAuth, imports: [CommonModule,
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: "20.0.1", ngImport: i0, type: FormioAuth, decorators: [{
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: [
@@ -1 +1 @@
1
- {"version":3,"file":"formio-angular-auth.mjs","sources":["../../../projects/angular-formio/auth/src/auth.config.ts","../../../projects/angular-formio/auth/src/auth.service.ts","../../../projects/angular-formio/auth/src/auth.component.ts","../../../projects/angular-formio/auth/src/auth.component.html","../../../projects/angular-formio/auth/src/login/login.component.ts","../../../projects/angular-formio/auth/src/login/login.component.html","../../../projects/angular-formio/auth/src/register/register.component.ts","../../../projects/angular-formio/auth/src/register/register.component.html","../../../projects/angular-formio/auth/src/resetpass/resetpass.component.ts","../../../projects/angular-formio/auth/src/resetpass/resetpass.component.html","../../../projects/angular-formio/auth/src/auth.routes.ts","../../../projects/angular-formio/auth/src/auth.module.ts","../../../projects/angular-formio/auth/src/formio-angular-auth.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nexport interface FormioAuthFormConfig {\n path?: string;\n form?: string;\n component?: any;\n}\n\nexport interface FormioAuthRouteConfig {\n auth?: any;\n login?: any;\n register?: any;\n resetpass?: any;\n}\n\n@Injectable()\nexport class FormioAuthConfig {\n component?: any;\n delayAuth?: any;\n login?: FormioAuthFormConfig;\n register?: FormioAuthFormConfig;\n resetpass?: FormioAuthFormConfig;\n oauth?: FormioOAuthConfig;\n}\n\n\nexport interface FormioOAuthConfig {\n type: FormioOauthType;\n options: FormioOktaConfig | FormioSamlConfig;\n}\n\nexport enum FormioOauthType {\n okta = 'okta',\n saml = 'saml',\n}\n\nexport interface FormioOktaConfig extends OktaConfig {\n formio?: any;\n}\n\nexport interface FormioSamlConfig {\n relay: string;\n}\n\n// for more details about Okta configuration options see https://github.com/okta/okta-auth-js#configuration-reference\nexport interface OktaConfig {\n url?: string;\n tokenManager?: OktaTokenManagerConfig;\n issuer?: string;\n clientId?: string;\n redirectUri?: string;\n postLogoutRedirectUri?: string;\n pkce?: boolean;\n authorizeUrl?: string;\n userinfoUrl?: string;\n tokenUrl?: string;\n ignoreSignature?: boolean;\n maxClockSkew?: number;\n scopes?: string[];\n httpRequestClient?: Function;\n}\n\nexport interface OktaTokenManagerConfig {\n storage?: string | {\n getItem?: Function;\n setItem?: Function;\n };\n secure?: boolean;\n autoRenew?: boolean;\n expireEarlySeconds?: number;\n storageKey?: string;\n}\n","import { EventEmitter, Injectable, Inject } from '@angular/core';\nimport { FormioAuthConfig } from './auth.config';\nimport { FormioAppConfig } from '@formio/angular';\nimport { get, each } from 'lodash';\nimport { Formio } from '@formio/js';\n\n@Injectable()\nexport class FormioAuthService {\n public user: any;\n public authenticated = false;\n\n public loginForm: string;\n public onLogin: EventEmitter<object>;\n public onLogout: EventEmitter<object>;\n\n public registerForm: string;\n public onRegister: EventEmitter<object>;\n public onUser: EventEmitter<object>;\n public onError: EventEmitter<any>;\n\n public resetPassForm: string;\n public onResetPass: EventEmitter<object>;\n\n public ready: Promise<boolean>;\n public readyResolve: any;\n public readyReject: any;\n\n public projectReady?: Promise<any>;\n public accessReady?: Promise<any>;\n public userReady?: Promise<any>;\n public formAccess: any = {};\n public submissionAccess: any = {};\n public roles: any;\n public is: any = {};\n\n constructor(\n public appConfig: FormioAppConfig,\n public config: FormioAuthConfig\n ) {\n this.user = null;\n\n if (this.appConfig && this.appConfig.appUrl) {\n Formio.setBaseUrl(this.appConfig.apiUrl);\n Formio.setProjectUrl(this.appConfig.appUrl);\n Formio.formOnly = !!this.appConfig.formOnly;\n } else {\n console.error('You must provide an AppConfig within your application!');\n }\n\n this.loginForm =\n this.appConfig.appUrl +\n '/' +\n get(this.config, 'login.form', 'user/login');\n this.registerForm =\n this.appConfig.appUrl +\n '/' +\n get(this.config, 'register.form', 'user/register');\n this.resetPassForm =\n this.appConfig.appUrl +\n '/' +\n get(this.config, 'resetpass.form', 'resetpass');\n this.onLogin = new EventEmitter();\n this.onLogout = new EventEmitter();\n this.onRegister = new EventEmitter();\n this.onUser = new EventEmitter();\n this.onError = new EventEmitter();\n\n this.ready = new Promise((resolve: any, reject: any) => {\n this.readyResolve = resolve;\n this.readyReject = reject;\n });\n\n // Register for the core events.\n Formio.events.on('formio.badToken', () => this.logoutError());\n Formio.events.on('formio.sessionExpired', () => this.logoutError());\n if (!this.config.delayAuth) {\n this.init();\n }\n }\n\n onLoginSubmit(submission: object) {\n this.setUser(submission);\n this.onLogin.emit(submission);\n }\n\n onRegisterSubmit(submission: object) {\n this.setUser(submission);\n this.onRegister.emit(submission);\n }\n\n onResetPassSubmit(submission: object) {\n this.onResetPass.emit(submission);\n }\n\n init() {\n this.projectReady = Formio.makeStaticRequest(this.appConfig.appUrl).then(\n (project: any) => {\n each(project.access, (access: any) => {\n this.formAccess[access.type] = access.roles;\n });\n },\n (): any => {\n this.formAccess = {};\n return null;\n }\n );\n\n // Get the access for this project.\n this.accessReady = Formio.makeStaticRequest(\n this.appConfig.appUrl + '/access'\n )\n .then((access: any) => {\n each(access.forms, (form: any) => {\n this.submissionAccess[form.name] = {};\n form.submissionAccess.forEach((subAccess: any) => {\n this.submissionAccess[form.name][subAccess.type] = subAccess.roles;\n });\n });\n this.roles = access.roles;\n return access;\n })\n .catch((err): any => {\n if (err === 'Token Expired' || err === 'Bad Token') {\n this.setUser(null);\n }\n this.roles = {};\n return null;\n })\n\n let currentUserPromise: Promise<any>;\n if (this.config.oauth) {\n // Make a fix to the hash to remove starting \"/\" that angular might put there.\n if (window.location.hash && window.location.hash.match(/^#\\/access_token/)) {\n history.pushState(null, null, window.location.hash.replace(/^#\\/access_token/, '#access_token'));\n }\n\n // Initiate the SSO if they provide oauth settings.\n currentUserPromise = Formio.ssoInit(this.config.oauth.type, this.config.oauth.options);\n } else {\n currentUserPromise = Formio.currentUser(null, {\n ignoreCache: true\n });\n }\n\n this.userReady = currentUserPromise.then((user: any) => {\n this.setUser(user);\n return user;\n }).catch((err) => {\n this.setUser(null);\n throw err;\n });\n\n // Trigger we are redy when all promises have resolved.\n if (this.accessReady) {\n this.accessReady\n .then(() => this.projectReady)\n .then(() => this.userReady)\n .then(() => this.readyResolve(true))\n .catch((err: any) => this.readyReject(err));\n }\n }\n\n setUser(user: any) {\n const namespace = Formio.namespace || 'formio';\n if (user) {\n this.user = user;\n localStorage.setItem(`${namespace}AppUser`, JSON.stringify(user));\n this.setUserRoles();\n Formio.setUser(user);\n } else {\n this.user = null;\n this.is = {};\n localStorage.removeItem(`${namespace}AppUser`);\n Formio.clearCache();\n Formio.setUser(null);\n }\n\n this.authenticated = !!Formio.getToken();\n this.onUser.emit(this.user);\n }\n\n setUserRoles() {\n if (this.accessReady) {\n this.accessReady.then(() => {\n each(this.roles, (role: any, roleName: string) => {\n if (this.user.roles.indexOf(role._id) !== -1) {\n this.is[roleName] = true;\n }\n });\n });\n }\n }\n\n logoutError() {\n this.setUser(null);\n const namespace = Formio.namespace || 'formio';\n localStorage.removeItem(`${namespace}Token`);\n this.onError.emit();\n }\n\n logout() {\n const namespace = Formio.namespace || 'formio';\n const tokenName = `${namespace}Token`;\n\n localStorage.removeItem(tokenName);\n if ((Formio as any).tokens && (Formio as any).tokens.hasOwnProperty(tokenName)) {\n delete (Formio as any).tokens[tokenName];\n }\n\n Formio.logout()\n .then(() => {\n this.setUser(null);\n if (localStorage.getItem(`${namespace}LogoutAuthUrl`)) {\n window.open(localStorage.getItem(`${namespace}LogoutAuthUrl`), null, 'width=1020,height=618');\n localStorage.removeItem(`${namespace}LogoutAuthUrl`);\n }\n this.onLogout.emit();\n })\n .catch(() => this.logoutError());\n }\n}\n","import { Component } from '@angular/core';\n@Component({\n templateUrl: './auth.component.html',\n standalone: false\n})\nexport class FormioAuthComponent {}\n","<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","import { Component } from '@angular/core';\nimport { FormioAuthService } from '../auth.service';\n@Component({\n templateUrl: './login.component.html',\n standalone: false\n})\nexport class FormioAuthLoginComponent {\n public renderOptions: any = {\n submitOnEnter: true\n };\n constructor(public service: FormioAuthService) {}\n}\n","<formio [src]=\"service.loginForm\" [renderOptions]=\"renderOptions\" (submit)=\"service.onLoginSubmit($event)\"></formio>\n","import { Component } from '@angular/core';\nimport { FormioAuthService } from '../auth.service';\n@Component({\n templateUrl: './register.component.html',\n standalone: false\n})\nexport class FormioAuthRegisterComponent {\n public renderOptions: any = {\n submitOnEnter: true\n };\n constructor(public service: FormioAuthService) {}\n}\n","<formio [src]=\"service.registerForm\" [renderOptions]=\"renderOptions\" (submit)=\"service.onRegisterSubmit($event)\"></formio>\n","import { Component } from '@angular/core';\nimport { FormioAuthService } from '../auth.service';\n@Component({\n templateUrl: './resetpass.component.html',\n standalone: false\n})\nexport class FormioResetPassComponent {\n constructor(public service: FormioAuthService) {}\n}\n","<formio [src]=\"service.resetPassForm\" (submit)=\"service.onResetPassSubmit($event)\"></formio>\n","import { Routes } from '@angular/router';\nimport { FormioAuthRouteConfig } from './auth.config';\nimport { FormioAuthComponent } from './auth.component';\nimport { FormioAuthLoginComponent } from './login/login.component';\nimport { FormioAuthRegisterComponent } from './register/register.component';\nimport { FormioResetPassComponent } from './resetpass/resetpass.component';\n\nexport function FormioAuthRoutes(config?: FormioAuthRouteConfig): Routes {\n return [\n {\n path: '',\n component: config && config.auth ? config.auth : FormioAuthComponent,\n children: [\n {\n path: '',\n redirectTo: 'login',\n pathMatch: 'full'\n },\n {\n path: 'login',\n component: config && config.login ? config.login : FormioAuthLoginComponent\n },\n {\n path: 'register',\n component: config && config.register ? config.register : FormioAuthRegisterComponent\n },\n {\n path: 'resetpass',\n component: config && config.resetpass ? config.resetpass : FormioResetPassComponent\n }\n ]\n }\n ];\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\nimport { FormioModule } from '@formio/angular';\nimport { FormioAuthComponent } from './auth.component';\nimport { FormioAuthLoginComponent } from './login/login.component';\nimport { FormioAuthRegisterComponent } from './register/register.component';\nimport { FormioResetPassComponent } from './resetpass/resetpass.component';\nimport { FormioAuthRouteConfig } from './auth.config';\nimport { FormioAuthRoutes } from './auth.routes';\nimport { extendRouter } from '@formio/angular';\n\n@NgModule({\n imports: [\n CommonModule,\n FormioModule,\n RouterModule\n ],\n declarations: [\n FormioAuthComponent,\n FormioAuthLoginComponent,\n FormioAuthRegisterComponent,\n FormioResetPassComponent\n ]\n})\nexport class FormioAuth {\n static forRoot(config?: FormioAuthRouteConfig): any {\n return extendRouter(FormioAuth, config, FormioAuthRoutes);\n }\n static forChild(config?: FormioAuthRouteConfig): any {\n return extendRouter(FormioAuth, config, FormioAuthRoutes);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.FormioAuthConfig","i1.FormioAuthService"],"mappings":";;;;;;;;;;MAgBa,gBAAgB,CAAA;AAC3B,IAAA,SAAS;AACT,IAAA,SAAS;AACT,IAAA,KAAK;AACL,IAAA,QAAQ;AACR,IAAA,SAAS;AACT,IAAA,KAAK;uGANM,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAhB,gBAAgB,EAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAD5B;;AAgBD,IAAY,eAGX;AAHD,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,GAG1B,EAAA,CAAA,CAAA;;MC3BY,iBAAiB,CAAA;AA6BnB,IAAA,SAAA;AACA,IAAA,MAAA;AA7BF,IAAA,IAAI;IACJ,aAAa,GAAG,KAAK;AAErB,IAAA,SAAS;AACT,IAAA,OAAO;AACP,IAAA,QAAQ;AAER,IAAA,YAAY;AACZ,IAAA,UAAU;AACV,IAAA,MAAM;AACN,IAAA,OAAO;AAEP,IAAA,aAAa;AACb,IAAA,WAAW;AAEX,IAAA,KAAK;AACL,IAAA,YAAY;AACZ,IAAA,WAAW;AAEX,IAAA,YAAY;AACZ,IAAA,WAAW;AACX,IAAA,SAAS;IACT,UAAU,GAAQ,EAAE;IACpB,gB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QAC3C,OAAO,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,gBAAgB,CAAC;;IAE3D,OAAO,QAAQ,CAAC,MAA8B,EAAA;QAC5C,OAAO,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,gBAAgB,CAAC;;uGALhD,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAV,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,iBANnB,mBAAmB;YACnB,wBAAwB;YACxB,2BAA2B;AAC3B,YAAA,wBAAwB,aARxB,YAAY;YACZ,YAAY;YACZ,YAAY,CAAA,EAAA,CAAA;AASH,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,YAXnB,YAAY;YACZ,YAAY;YACZ,YAAY,CAAA,EAAA,CAAA;;2FASH,UAAU,EAAA,UAAA,EAAA,CAAA;kBAbtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACZ,mBAAmB;wBACnB,wBAAwB;wBACxB,2BAA2B;wBAC3B;AACD;AACF,iBAAA;;;ACxBD;;AAEG;;;;"}
1
+ {"version":3,"file":"formio-angular-auth.mjs","sources":["../../../projects/angular-formio/auth/src/auth.config.ts","../../../projects/angular-formio/auth/src/auth.service.ts","../../../projects/angular-formio/auth/src/auth.component.ts","../../../projects/angular-formio/auth/src/auth.component.html","../../../projects/angular-formio/auth/src/login/login.component.ts","../../../projects/angular-formio/auth/src/login/login.component.html","../../../projects/angular-formio/auth/src/register/register.component.ts","../../../projects/angular-formio/auth/src/register/register.component.html","../../../projects/angular-formio/auth/src/resetpass/resetpass.component.ts","../../../projects/angular-formio/auth/src/resetpass/resetpass.component.html","../../../projects/angular-formio/auth/src/auth.routes.ts","../../../projects/angular-formio/auth/src/auth.module.ts","../../../projects/angular-formio/auth/src/formio-angular-auth.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nexport interface FormioAuthFormConfig {\n path?: string;\n form?: string;\n component?: any;\n}\n\nexport interface FormioAuthRouteConfig {\n auth?: any;\n login?: any;\n register?: any;\n resetpass?: any;\n}\n\n@Injectable()\nexport class FormioAuthConfig {\n component?: any;\n delayAuth?: any;\n login?: FormioAuthFormConfig;\n register?: FormioAuthFormConfig;\n resetpass?: FormioAuthFormConfig;\n oauth?: FormioOAuthConfig;\n}\n\n\nexport interface FormioOAuthConfig {\n type: FormioOauthType;\n options: FormioOktaConfig | FormioSamlConfig;\n}\n\nexport enum FormioOauthType {\n okta = 'okta',\n saml = 'saml',\n}\n\nexport interface FormioOktaConfig extends OktaConfig {\n formio?: any;\n}\n\nexport interface FormioSamlConfig {\n relay: string;\n}\n\n// for more details about Okta configuration options see https://github.com/okta/okta-auth-js#configuration-reference\nexport interface OktaConfig {\n url?: string;\n tokenManager?: OktaTokenManagerConfig;\n issuer?: string;\n clientId?: string;\n redirectUri?: string;\n postLogoutRedirectUri?: string;\n pkce?: boolean;\n authorizeUrl?: string;\n userinfoUrl?: string;\n tokenUrl?: string;\n ignoreSignature?: boolean;\n maxClockSkew?: number;\n scopes?: string[];\n httpRequestClient?: Function;\n}\n\nexport interface OktaTokenManagerConfig {\n storage?: string | {\n getItem?: Function;\n setItem?: Function;\n };\n secure?: boolean;\n autoRenew?: boolean;\n expireEarlySeconds?: number;\n storageKey?: string;\n}\n","import { EventEmitter, Injectable, Inject } from '@angular/core';\nimport { FormioAuthConfig } from './auth.config';\nimport { FormioAppConfig } from '@formio/angular';\nimport { get, each } from 'lodash';\nimport { Formio } from '@formio/js';\n\n@Injectable()\nexport class FormioAuthService {\n public user: any;\n public authenticated = false;\n\n public loginForm: string;\n public onLogin: EventEmitter<object>;\n public onLogout: EventEmitter<object>;\n\n public registerForm: string;\n public onRegister: EventEmitter<object>;\n public onUser: EventEmitter<object>;\n public onError: EventEmitter<any>;\n\n public resetPassForm: string;\n public onResetPass: EventEmitter<object>;\n\n public ready: Promise<boolean>;\n public readyResolve: any;\n public readyReject: any;\n\n public projectReady?: Promise<any>;\n public accessReady?: Promise<any>;\n public userReady?: Promise<any>;\n public formAccess: any = {};\n public submissionAccess: any = {};\n public roles: any;\n public is: any = {};\n\n constructor(\n public appConfig: FormioAppConfig,\n public config: FormioAuthConfig\n ) {\n this.user = null;\n\n if (this.appConfig && this.appConfig.appUrl) {\n Formio.setBaseUrl(this.appConfig.apiUrl);\n Formio.setProjectUrl(this.appConfig.appUrl);\n Formio.formOnly = !!this.appConfig.formOnly;\n } else {\n console.error('You must provide an AppConfig within your application!');\n }\n\n this.loginForm =\n this.appConfig.appUrl +\n '/' +\n get(this.config, 'login.form', 'user/login');\n this.registerForm =\n this.appConfig.appUrl +\n '/' +\n get(this.config, 'register.form', 'user/register');\n this.resetPassForm =\n this.appConfig.appUrl +\n '/' +\n get(this.config, 'resetpass.form', 'resetpass');\n this.onLogin = new EventEmitter();\n this.onLogout = new EventEmitter();\n this.onRegister = new EventEmitter();\n this.onUser = new EventEmitter();\n this.onError = new EventEmitter();\n\n this.ready = new Promise((resolve: any, reject: any) => {\n this.readyResolve = resolve;\n this.readyReject = reject;\n });\n\n // Register for the core events.\n Formio.events.on('formio.badToken', () => this.logoutError());\n Formio.events.on('formio.sessionExpired', () => this.logoutError());\n if (!this.config.delayAuth) {\n this.init();\n }\n }\n\n onLoginSubmit(submission: object) {\n this.setUser(submission);\n this.onLogin.emit(submission);\n }\n\n onRegisterSubmit(submission: object) {\n this.setUser(submission);\n this.onRegister.emit(submission);\n }\n\n onResetPassSubmit(submission: object) {\n this.onResetPass.emit(submission);\n }\n\n init() {\n this.projectReady = Formio.makeStaticRequest(this.appConfig.appUrl).then(\n (project: any) => {\n each(project.access, (access: any) => {\n this.formAccess[access.type] = access.roles;\n });\n },\n (): any => {\n this.formAccess = {};\n return null;\n }\n );\n\n // Get the access for this project.\n this.accessReady = Formio.makeStaticRequest(\n this.appConfig.appUrl + '/access'\n )\n .then((access: any) => {\n each(access.forms, (form: any) => {\n this.submissionAccess[form.name] = {};\n form.submissionAccess.forEach((subAccess: any) => {\n this.submissionAccess[form.name][subAccess.type] = subAccess.roles;\n });\n });\n this.roles = access.roles;\n return access;\n })\n .catch((err): any => {\n if (err === 'Token Expired' || err === 'Bad Token') {\n this.setUser(null);\n }\n this.roles = {};\n return null;\n })\n\n let currentUserPromise: Promise<any>;\n if (this.config.oauth) {\n // Make a fix to the hash to remove starting \"/\" that angular might put there.\n if (window.location.hash && window.location.hash.match(/^#\\/access_token/)) {\n history.pushState(null, null, window.location.hash.replace(/^#\\/access_token/, '#access_token'));\n }\n\n // Initiate the SSO if they provide oauth settings.\n currentUserPromise = Formio.ssoInit(this.config.oauth.type, this.config.oauth.options);\n } else {\n currentUserPromise = Formio.currentUser(null, {\n ignoreCache: true\n });\n }\n\n this.userReady = currentUserPromise.then((user: any) => {\n this.setUser(user);\n return user;\n }).catch((err) => {\n this.setUser(null);\n throw err;\n });\n\n // Trigger we are redy when all promises have resolved.\n if (this.accessReady) {\n this.accessReady\n .then(() => this.projectReady)\n .then(() => this.userReady)\n .then(() => this.readyResolve(true))\n .catch((err: any) => this.readyReject(err));\n }\n }\n\n setUser(user: any) {\n const namespace = Formio.namespace || 'formio';\n if (user) {\n this.user = user;\n localStorage.setItem(`${namespace}AppUser`, JSON.stringify(user));\n this.setUserRoles();\n Formio.setUser(user);\n } else {\n this.user = null;\n this.is = {};\n localStorage.removeItem(`${namespace}AppUser`);\n Formio.clearCache();\n Formio.setUser(null);\n }\n\n this.authenticated = !!Formio.getToken();\n this.onUser.emit(this.user);\n }\n\n setUserRoles() {\n if (this.accessReady) {\n this.accessReady.then(() => {\n each(this.roles, (role: any, roleName: string) => {\n if (this.user.roles.indexOf(role._id) !== -1) {\n this.is[roleName] = true;\n }\n });\n });\n }\n }\n\n logoutError() {\n this.setUser(null);\n const namespace = Formio.namespace || 'formio';\n localStorage.removeItem(`${namespace}Token`);\n this.onError.emit();\n }\n\n logout() {\n const namespace = Formio.namespace || 'formio';\n const tokenName = `${namespace}Token`;\n\n localStorage.removeItem(tokenName);\n if ((Formio as any).tokens && (Formio as any).tokens.hasOwnProperty(tokenName)) {\n delete (Formio as any).tokens[tokenName];\n }\n\n Formio.logout()\n .then(() => {\n this.setUser(null);\n if (localStorage.getItem(`${namespace}LogoutAuthUrl`)) {\n window.open(localStorage.getItem(`${namespace}LogoutAuthUrl`), null, 'width=1020,height=618');\n localStorage.removeItem(`${namespace}LogoutAuthUrl`);\n }\n this.onLogout.emit();\n })\n .catch(() => this.logoutError());\n }\n}\n","import { Component } from '@angular/core';\n@Component({\n templateUrl: './auth.component.html',\n standalone: false\n})\nexport class FormioAuthComponent {}\n","<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","import { Component } from '@angular/core';\nimport { FormioAuthService } from '../auth.service';\n@Component({\n templateUrl: './login.component.html',\n standalone: false\n})\nexport class FormioAuthLoginComponent {\n public renderOptions: any = {\n submitOnEnter: true\n };\n constructor(public service: FormioAuthService) {}\n}\n","<formio [src]=\"service.loginForm\" [renderOptions]=\"renderOptions\" (submit)=\"service.onLoginSubmit($event)\"></formio>\n","import { Component } from '@angular/core';\nimport { FormioAuthService } from '../auth.service';\n@Component({\n templateUrl: './register.component.html',\n standalone: false\n})\nexport class FormioAuthRegisterComponent {\n public renderOptions: any = {\n submitOnEnter: true\n };\n constructor(public service: FormioAuthService) {}\n}\n","<formio [src]=\"service.registerForm\" [renderOptions]=\"renderOptions\" (submit)=\"service.onRegisterSubmit($event)\"></formio>\n","import { Component } from '@angular/core';\nimport { FormioAuthService } from '../auth.service';\n@Component({\n templateUrl: './resetpass.component.html',\n standalone: false\n})\nexport class FormioResetPassComponent {\n constructor(public service: FormioAuthService) {}\n}\n","<formio [src]=\"service.resetPassForm\" (submit)=\"service.onResetPassSubmit($event)\"></formio>\n","import { Routes } from '@angular/router';\nimport { FormioAuthRouteConfig } from './auth.config';\nimport { FormioAuthComponent } from './auth.component';\nimport { FormioAuthLoginComponent } from './login/login.component';\nimport { FormioAuthRegisterComponent } from './register/register.component';\nimport { FormioResetPassComponent } from './resetpass/resetpass.component';\n\nexport function FormioAuthRoutes(config?: FormioAuthRouteConfig): Routes {\n return [\n {\n path: '',\n component: config && config.auth ? config.auth : FormioAuthComponent,\n children: [\n {\n path: '',\n redirectTo: 'login',\n pathMatch: 'full'\n },\n {\n path: 'login',\n component: config && config.login ? config.login : FormioAuthLoginComponent\n },\n {\n path: 'register',\n component: config && config.register ? config.register : FormioAuthRegisterComponent\n },\n {\n path: 'resetpass',\n component: config && config.resetpass ? config.resetpass : FormioResetPassComponent\n }\n ]\n }\n ];\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\nimport { FormioModule } from '@formio/angular';\nimport { FormioAuthComponent } from './auth.component';\nimport { FormioAuthLoginComponent } from './login/login.component';\nimport { FormioAuthRegisterComponent } from './register/register.component';\nimport { FormioResetPassComponent } from './resetpass/resetpass.component';\nimport { FormioAuthRouteConfig } from './auth.config';\nimport { FormioAuthRoutes } from './auth.routes';\nimport { extendRouter } from '@formio/angular';\n\n@NgModule({\n imports: [\n CommonModule,\n FormioModule,\n RouterModule\n ],\n declarations: [\n FormioAuthComponent,\n FormioAuthLoginComponent,\n FormioAuthRegisterComponent,\n FormioResetPassComponent\n ]\n})\nexport class FormioAuth {\n static forRoot(config?: FormioAuthRouteConfig): any {\n return extendRouter(FormioAuth, config, FormioAuthRoutes);\n }\n static forChild(config?: FormioAuthRouteConfig): any {\n return extendRouter(FormioAuth, config, FormioAuthRoutes);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.FormioAuthConfig","i1.FormioAuthService"],"mappings":";;;;;;;;;;MAgBa,gBAAgB,CAAA;AAC3B,IAAA,SAAS;AACT,IAAA,SAAS;AACT,IAAA,KAAK;AACL,IAAA,QAAQ;AACR,IAAA,SAAS;AACT,IAAA,KAAK;wGANM,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAhB,gBAAgB,EAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAD5B;;AAgBD,IAAY,eAGX;AAHD,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,GAAA,EAAA,CAAA,CAAA;;MCxBd,iBAAiB,CAAA;AA6BnB,IAAA,SAAA;AACA,IAAA,MAAA;AA7BF,IAAA,IAAI;IACJ,aAAa,GAAG,KAAK;AAErB,IAAA,SAAS;AACT,IAAA,OAAO;AACP,IAAA,QAAQ;AAER,IAAA,YAAY;AACZ,IAAA,UAAU;AACV,IAAA,MAAM;AACN,IAAA,OAAO;AAEP,IAAA,aAAa;AACb,IAAA,WAAW;AAEX,IAAA,KAAK;AACL,IAAA,YAAY;AACZ,IAAA,WAAW;AA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AwB;wBACxB,2BAA2B;wBAC3B;AACD;AACF,iBAAA;;;ACxBD;;AAEG;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { FormioCore, FormBuilder } from '@formio/js';
2
2
  export { FormioCore as Formio } from '@formio/js';
3
3
  import * as i0 from '@angular/core';
4
- import { EventEmitter, Component, Input, Output, ViewChild, InjectionToken, Injectable, Inject, NgModule } from '@angular/core';
4
+ import { EventEmitter, ViewChild, Output, Input, Component, InjectionToken, Inject, Injectable, NgModule } from '@angular/core';
5
5
  import { CommonModule } from '@angular/common';
6
6
 
7
7
  class FormioComponent {
@@ -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: "20.0.1", ngImport: i0, type: FormioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
35
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", 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 });
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: "20.0.1", ngImport: i0, type: FormioComponent, decorators: [{
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,13 +124,10 @@ class FormioBuilder {
124
124
  this.ready.emit(this.instance);
125
125
  }).catch((err) => this.error.emit(err));
126
126
  }
127
- ngOnDestroy() {
128
- this.instance.destroy(true);
129
- }
130
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: FormioBuilder, deps: [], target: i0.ɵɵFactoryTarget.Component });
131
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", 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 });
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 });
132
129
  }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: FormioBuilder, decorators: [{
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioBuilder, decorators: [{
134
131
  type: Component,
135
132
  args: [{
136
133
  selector: 'formio-builder',
@@ -197,10 +194,10 @@ class FormioAppService {
197
194
  authenticate() {
198
195
  return this.formio.currentUser().then((user) => this.setUser(user)).catch(() => this.setUser(null));
199
196
  }
200
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: FormioAppService, deps: [{ token: FormioAppConfig }], target: i0.ɵɵFactoryTarget.Injectable });
201
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: FormioAppService });
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 });
202
199
  }
203
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: FormioAppService, decorators: [{
200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioAppService, decorators: [{
204
201
  type: Injectable
205
202
  }], ctorParameters: () => [{ type: undefined, decorators: [{
206
203
  type: Inject,
@@ -208,15 +205,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImpor
208
205
  }] }] });
209
206
 
210
207
  class FormioEmbedModule {
211
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: FormioEmbedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
212
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.1", ngImport: i0, type: FormioEmbedModule, declarations: [FormioComponent,
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,
213
210
  FormioBuilder], imports: [CommonModule], exports: [FormioComponent,
214
211
  FormioBuilder] });
215
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: FormioEmbedModule, providers: [
212
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioEmbedModule, providers: [
216
213
  FormioAppService
217
214
  ], imports: [CommonModule] });
218
215
  }
219
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: FormioEmbedModule, decorators: [{
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FormioEmbedModule, decorators: [{
220
217
  type: NgModule,
221
218
  args: [{
222
219
  imports: [