@formio/angular 7.0.0 → 7.5.0-rc.1-dev.1060.2e45ec8

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 (398) hide show
  1. package/.dockerignore +5 -0
  2. package/.editorconfig +13 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  4. package/.github/ISSUE_TEMPLATE/custom-components-support-request.md +15 -0
  5. package/.github/ISSUE_TEMPLATE/question.md +8 -0
  6. package/.github/pull_request_template.md +35 -0
  7. package/.github/workflows/repo.yml +145 -0
  8. package/.travis.yml +4 -0
  9. package/.yo-rc.json +7 -0
  10. package/CHANGELOG.md +1153 -0
  11. package/Dockerfile +20 -0
  12. package/LICENSE +21 -0
  13. package/README.md +204 -13
  14. package/angular.json +38 -0
  15. package/bs-config.json +11 -0
  16. package/package.json +54 -57
  17. package/projects/angular-formio/README.md +24 -0
  18. package/projects/angular-formio/auth/ng-package.json +5 -0
  19. package/projects/angular-formio/auth/src/auth.component.html +11 -0
  20. package/projects/angular-formio/auth/src/auth.component.ts +5 -0
  21. package/projects/angular-formio/auth/src/auth.config.ts +72 -0
  22. package/projects/angular-formio/auth/src/auth.module.ts +33 -0
  23. package/projects/angular-formio/auth/src/auth.routes.ts +34 -0
  24. package/projects/angular-formio/auth/src/auth.service.ts +221 -0
  25. package/{auth/index.d.ts → projects/angular-formio/auth/src/index.ts} +1 -2
  26. package/projects/angular-formio/auth/src/login/login.component.html +1 -0
  27. package/projects/angular-formio/auth/src/login/login.component.ts +11 -0
  28. package/projects/angular-formio/auth/src/public_api.ts +5 -0
  29. package/projects/angular-formio/auth/src/register/register.component.html +1 -0
  30. package/projects/angular-formio/auth/src/register/register.component.ts +11 -0
  31. package/projects/angular-formio/auth/src/resetpass/resetpass.component.html +1 -0
  32. package/projects/angular-formio/auth/src/resetpass/resetpass.component.ts +8 -0
  33. package/projects/angular-formio/embed/ng-package.json +5 -0
  34. package/projects/angular-formio/embed/src/app.service.ts +59 -0
  35. package/projects/angular-formio/embed/src/builder.component.ts +19 -0
  36. package/projects/angular-formio/embed/src/embed.module.ts +23 -0
  37. package/projects/angular-formio/embed/src/formio.component.ts +27 -0
  38. package/projects/angular-formio/embed/src/index.ts +6 -0
  39. package/projects/angular-formio/grid/ng-package.json +5 -0
  40. package/projects/angular-formio/grid/src/GridBodyComponent.ts +80 -0
  41. package/projects/angular-formio/grid/src/GridFooterComponent.ts +25 -0
  42. package/projects/angular-formio/grid/src/GridHeaderComponent.ts +25 -0
  43. package/projects/angular-formio/grid/src/form/FormGridBody.component.html +22 -0
  44. package/projects/angular-formio/grid/src/form/FormGridBody.component.scss +4 -0
  45. package/projects/angular-formio/grid/src/form/FormGridBody.component.ts +46 -0
  46. package/projects/angular-formio/grid/src/form/FormGridFooter.component.html +21 -0
  47. package/projects/angular-formio/grid/src/form/FormGridFooter.component.ts +23 -0
  48. package/projects/angular-formio/grid/src/form/FormGridHeader.component.html +18 -0
  49. package/projects/angular-formio/grid/src/form/FormGridHeader.component.ts +24 -0
  50. package/projects/angular-formio/grid/src/form/index.ts +8 -0
  51. package/projects/angular-formio/grid/src/form/time-since.pipe.ts +31 -0
  52. package/projects/angular-formio/grid/src/grid.component.html +18 -0
  53. package/projects/angular-formio/grid/src/grid.component.scss +9 -0
  54. package/projects/angular-formio/grid/src/grid.component.ts +242 -0
  55. package/projects/angular-formio/grid/src/grid.footer.scss +14 -0
  56. package/projects/angular-formio/grid/src/grid.module.ts +49 -0
  57. package/projects/angular-formio/grid/src/grid.service.ts +16 -0
  58. package/{grid/index.d.ts → projects/angular-formio/grid/src/index.ts} +0 -1
  59. package/projects/angular-formio/grid/src/public_api.ts +5 -0
  60. package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.html +7 -0
  61. package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.ts +39 -0
  62. package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.html +18 -0
  63. package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.ts +20 -0
  64. package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.html +11 -0
  65. package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.ts +72 -0
  66. package/{grid/submission/index.d.ts → projects/angular-formio/grid/src/submission/index.ts} +4 -6
  67. package/projects/angular-formio/grid/src/types/grid-column.ts +7 -0
  68. package/projects/angular-formio/grid/src/types/grid-footer-positions.ts +5 -0
  69. package/projects/angular-formio/grid/src/types/grid-header.ts +14 -0
  70. package/projects/angular-formio/karma.conf.js +32 -0
  71. package/projects/angular-formio/manager/ng-package.json +5 -0
  72. package/projects/angular-formio/manager/src/create/create.component.ts +11 -0
  73. package/projects/angular-formio/manager/src/delete/delete.component.html +6 -0
  74. package/projects/angular-formio/manager/src/delete/delete.component.ts +37 -0
  75. package/projects/angular-formio/manager/src/edit/edit.component.html +19 -0
  76. package/projects/angular-formio/manager/src/edit/edit.component.ts +110 -0
  77. package/projects/angular-formio/manager/src/form/form.component.html +32 -0
  78. package/projects/angular-formio/manager/src/form/form.component.ts +73 -0
  79. package/projects/angular-formio/manager/src/form-manager.config.ts +31 -0
  80. package/projects/angular-formio/manager/src/form-manager.module.ts +54 -0
  81. package/projects/angular-formio/manager/src/form-manager.routes.ts +75 -0
  82. package/projects/angular-formio/manager/src/form-manager.service.ts +190 -0
  83. package/projects/angular-formio/manager/src/index/index.component.html +14 -0
  84. package/projects/angular-formio/manager/src/index/index.component.scss +22 -0
  85. package/projects/angular-formio/manager/src/index/index.component.ts +100 -0
  86. package/{manager/index.d.ts → projects/angular-formio/manager/src/index.ts} +0 -1
  87. package/projects/angular-formio/manager/src/public_api.ts +5 -0
  88. package/projects/angular-formio/manager/src/submission/delete/delete.component.html +6 -0
  89. package/projects/angular-formio/manager/src/submission/delete/delete.component.ts +26 -0
  90. package/projects/angular-formio/manager/src/submission/edit/edit.component.html +7 -0
  91. package/projects/angular-formio/manager/src/submission/edit/edit.component.ts +18 -0
  92. package/projects/angular-formio/manager/src/submission/index/index.component.html +1 -0
  93. package/projects/angular-formio/manager/src/submission/index/index.component.ts +18 -0
  94. package/projects/angular-formio/manager/src/submission/submission/submission.component.html +8 -0
  95. package/projects/angular-formio/manager/src/submission/submission/submission.component.ts +24 -0
  96. package/projects/angular-formio/manager/src/submission/view/view.component.html +7 -0
  97. package/projects/angular-formio/manager/src/submission/view/view.component.ts +9 -0
  98. package/projects/angular-formio/manager/src/view/view.component.html +11 -0
  99. package/projects/angular-formio/manager/src/view/view.component.ts +44 -0
  100. package/projects/angular-formio/ng-package.json +7 -0
  101. package/projects/angular-formio/package.json +37 -0
  102. package/projects/angular-formio/resource/ng-package.json +5 -0
  103. package/projects/angular-formio/resource/src/create/create.component.html +13 -0
  104. package/projects/angular-formio/resource/src/create/create.component.scss +3 -0
  105. package/projects/angular-formio/resource/src/create/create.component.ts +37 -0
  106. package/projects/angular-formio/resource/src/delete/delete.component.html +5 -0
  107. package/projects/angular-formio/resource/src/delete/delete.component.ts +24 -0
  108. package/projects/angular-formio/resource/src/edit/edit.component.html +7 -0
  109. package/projects/angular-formio/resource/src/edit/edit.component.ts +35 -0
  110. package/projects/angular-formio/resource/src/index/index.component.html +10 -0
  111. package/projects/angular-formio/resource/src/index/index.component.ts +64 -0
  112. package/projects/angular-formio/resource/src/index.js +24 -0
  113. package/{resource/index.d.ts → projects/angular-formio/resource/src/index.ts} +0 -1
  114. package/projects/angular-formio/resource/src/public_api.ts +5 -0
  115. package/projects/angular-formio/resource/src/resource.component.html +7 -0
  116. package/projects/angular-formio/resource/src/resource.component.ts +48 -0
  117. package/projects/angular-formio/resource/src/resource.config.ts +17 -0
  118. package/projects/angular-formio/resource/src/resource.module.ts +43 -0
  119. package/projects/angular-formio/resource/src/resource.routes.ts +43 -0
  120. package/projects/angular-formio/resource/src/resource.service.ts +258 -0
  121. package/projects/angular-formio/resource/src/resources.service.ts +24 -0
  122. package/projects/angular-formio/resource/src/view/view.component.html +6 -0
  123. package/projects/angular-formio/resource/src/view/view.component.ts +19 -0
  124. package/projects/angular-formio/src/FormioBaseComponent.ts +554 -0
  125. package/projects/angular-formio/src/components/alerts/formio.alerts.component.html +3 -0
  126. package/projects/angular-formio/src/components/alerts/formio.alerts.component.ts +19 -0
  127. package/projects/angular-formio/src/components/alerts/formio.alerts.ts +21 -0
  128. package/projects/angular-formio/src/components/alerts/parse-html-content.pipe.ts +15 -0
  129. package/projects/angular-formio/src/components/formbuilder/formbuilder.component.html +1 -0
  130. package/projects/angular-formio/src/components/formbuilder/formbuilder.component.ts +213 -0
  131. package/projects/angular-formio/src/components/formio/formio.component.html +8 -0
  132. package/projects/angular-formio/src/components/formio/formio.component.ts +33 -0
  133. package/projects/angular-formio/src/components/formioreport/formioreport.component.html +8 -0
  134. package/projects/angular-formio/src/components/formioreport/formioreport.component.ts +95 -0
  135. package/projects/angular-formio/src/components/loader/formio.loader.component.html +3 -0
  136. package/projects/angular-formio/src/components/loader/formio.loader.component.scss +26 -0
  137. package/projects/angular-formio/src/components/loader/formio.loader.component.ts +10 -0
  138. package/{core.d.ts → projects/angular-formio/src/core.ts} +12 -2
  139. package/projects/angular-formio/src/custom-tags.service.ts +9 -0
  140. package/projects/angular-formio/src/formio-promise.service.ts +36 -0
  141. package/projects/angular-formio/src/formio.common.ts +91 -0
  142. package/projects/angular-formio/src/formio.config.ts +26 -0
  143. package/projects/angular-formio/src/formio.module.ts +38 -0
  144. package/projects/angular-formio/src/formio.service.ts +57 -0
  145. package/projects/angular-formio/src/formio.utils.ts +23 -0
  146. package/{index.d.ts → projects/angular-formio/src/index.ts} +0 -1
  147. package/projects/angular-formio/src/public-api.ts +5 -0
  148. package/projects/angular-formio/src/test.ts +28 -0
  149. package/projects/angular-formio/src/types/alerts-position.ts +6 -0
  150. package/projects/angular-formio/src/types/formio-metadata.ts +10 -0
  151. package/projects/angular-formio/src/types/formio-submission.ts +20 -0
  152. package/projects/angular-formio/tsconfig.lib.json +27 -0
  153. package/projects/angular-formio/tsconfig.lib.prod.json +8 -0
  154. package/projects/angular-formio/tsconfig.spec.json +17 -0
  155. package/projects/angular-formio/tslint.json +17 -0
  156. package/tsconfig.json +39 -0
  157. package/tslint.json +140 -0
  158. package/FormioBaseComponent.d.ts +0 -93
  159. package/FormioBaseComponent.d.ts.map +0 -1
  160. package/auth/auth.component.d.ts +0 -6
  161. package/auth/auth.component.d.ts.map +0 -1
  162. package/auth/auth.config.d.ts +0 -63
  163. package/auth/auth.config.d.ts.map +0 -1
  164. package/auth/auth.module.d.ts +0 -17
  165. package/auth/auth.module.d.ts.map +0 -1
  166. package/auth/auth.routes.d.ts +0 -4
  167. package/auth/auth.routes.d.ts.map +0 -1
  168. package/auth/auth.service.d.ts +0 -41
  169. package/auth/auth.service.d.ts.map +0 -1
  170. package/auth/formio-angular-auth.d.ts.map +0 -1
  171. package/auth/index.d.ts.map +0 -1
  172. package/auth/login/login.component.d.ts +0 -10
  173. package/auth/login/login.component.d.ts.map +0 -1
  174. package/auth/register/register.component.d.ts +0 -10
  175. package/auth/register/register.component.d.ts.map +0 -1
  176. package/auth/resetpass/resetpass.component.d.ts +0 -9
  177. package/auth/resetpass/resetpass.component.d.ts.map +0 -1
  178. package/components/alerts/formio.alerts.component.d.ts +0 -12
  179. package/components/alerts/formio.alerts.component.d.ts.map +0 -1
  180. package/components/alerts/formio.alerts.d.ts +0 -12
  181. package/components/alerts/formio.alerts.d.ts.map +0 -1
  182. package/components/alerts/parse-html-content.pipe.d.ts +0 -8
  183. package/components/alerts/parse-html-content.pipe.d.ts.map +0 -1
  184. package/components/formbuilder/formbuilder.component.d.ts +0 -37
  185. package/components/formbuilder/formbuilder.component.d.ts.map +0 -1
  186. package/components/formio/formio.component.d.ts +0 -15
  187. package/components/formio/formio.component.d.ts.map +0 -1
  188. package/components/formioreport/formioreport.component.d.ts +0 -20
  189. package/components/formioreport/formioreport.component.d.ts.map +0 -1
  190. package/components/loader/formio.loader.component.d.ts +0 -7
  191. package/components/loader/formio.loader.component.d.ts.map +0 -1
  192. package/core.d.ts.map +0 -1
  193. package/custom-tags.service.d.ts +0 -8
  194. package/custom-tags.service.d.ts.map +0 -1
  195. package/esm2022/FormioBaseComponent.mjs +0 -583
  196. package/esm2022/auth/auth.component.mjs +0 -12
  197. package/esm2022/auth/auth.config.mjs +0 -21
  198. package/esm2022/auth/auth.module.mjs +0 -46
  199. package/esm2022/auth/auth.routes.mjs +0 -32
  200. package/esm2022/auth/auth.service.mjs +0 -199
  201. package/esm2022/auth/formio-angular-auth.mjs +0 -5
  202. package/esm2022/auth/index.mjs +0 -9
  203. package/esm2022/auth/login/login.component.mjs +0 -20
  204. package/esm2022/auth/register/register.component.mjs +0 -20
  205. package/esm2022/auth/resetpass/resetpass.component.mjs +0 -17
  206. package/esm2022/components/alerts/formio.alerts.component.mjs +0 -28
  207. package/esm2022/components/alerts/formio.alerts.mjs +0 -13
  208. package/esm2022/components/alerts/parse-html-content.pipe.mjs +0 -19
  209. package/esm2022/components/formbuilder/formbuilder.component.mjs +0 -202
  210. package/esm2022/components/formio/formio.component.mjs +0 -43
  211. package/esm2022/components/formioreport/formioreport.component.mjs +0 -86
  212. package/esm2022/components/loader/formio.loader.component.mjs +0 -15
  213. package/esm2022/core.mjs +0 -18
  214. package/esm2022/custom-tags.service.mjs +0 -14
  215. package/esm2022/formio-angular.mjs +0 -5
  216. package/esm2022/formio-promise.service.mjs +0 -36
  217. package/esm2022/formio.common.mjs +0 -11
  218. package/esm2022/formio.config.mjs +0 -29
  219. package/esm2022/formio.module.mjs +0 -59
  220. package/esm2022/formio.service.mjs +0 -62
  221. package/esm2022/formio.utils.mjs +0 -21
  222. package/esm2022/grid/GridBodyComponent.mjs +0 -89
  223. package/esm2022/grid/GridFooterComponent.mjs +0 -44
  224. package/esm2022/grid/GridHeaderComponent.mjs +0 -34
  225. package/esm2022/grid/form/FormGridBody.component.mjs +0 -63
  226. package/esm2022/grid/form/FormGridFooter.component.mjs +0 -26
  227. package/esm2022/grid/form/FormGridHeader.component.mjs +0 -27
  228. package/esm2022/grid/form/index.mjs +0 -9
  229. package/esm2022/grid/form/time-since.pipe.mjs +0 -37
  230. package/esm2022/grid/formio-angular-grid.mjs +0 -5
  231. package/esm2022/grid/grid.component.mjs +0 -257
  232. package/esm2022/grid/grid.module.mjs +0 -79
  233. package/esm2022/grid/grid.service.mjs +0 -18
  234. package/esm2022/grid/index.mjs +0 -13
  235. package/esm2022/grid/submission/SubmissionGridBody.component.mjs +0 -43
  236. package/esm2022/grid/submission/SubmissionGridFooter.component.mjs +0 -23
  237. package/esm2022/grid/submission/SubmissionGridHeader.component.mjs +0 -63
  238. package/esm2022/grid/submission/index.mjs +0 -9
  239. package/esm2022/grid/types/grid-column.mjs +0 -2
  240. package/esm2022/grid/types/grid-footer-positions.mjs +0 -7
  241. package/esm2022/grid/types/grid-header.mjs +0 -6
  242. package/esm2022/index.mjs +0 -3
  243. package/esm2022/manager/create/create.component.mjs +0 -18
  244. package/esm2022/manager/delete/delete.component.mjs +0 -42
  245. package/esm2022/manager/edit/edit.component.mjs +0 -125
  246. package/esm2022/manager/form/form.component.mjs +0 -80
  247. package/esm2022/manager/form-manager.config.mjs +0 -18
  248. package/esm2022/manager/form-manager.module.mjs +0 -83
  249. package/esm2022/manager/form-manager.routes.mjs +0 -74
  250. package/esm2022/manager/form-manager.service.mjs +0 -185
  251. package/esm2022/manager/formio-angular-manager.mjs +0 -5
  252. package/esm2022/manager/index/index.component.mjs +0 -108
  253. package/esm2022/manager/index.mjs +0 -16
  254. package/esm2022/manager/submission/delete/delete.component.mjs +0 -32
  255. package/esm2022/manager/submission/edit/edit.component.mjs +0 -25
  256. package/esm2022/manager/submission/index/index.component.mjs +0 -25
  257. package/esm2022/manager/submission/submission/submission.component.mjs +0 -29
  258. package/esm2022/manager/submission/view/view.component.mjs +0 -17
  259. package/esm2022/manager/view/view.component.mjs +0 -52
  260. package/esm2022/resource/create/create.component.mjs +0 -43
  261. package/esm2022/resource/delete/delete.component.mjs +0 -29
  262. package/esm2022/resource/edit/edit.component.mjs +0 -42
  263. package/esm2022/resource/formio-angular-resource.mjs +0 -5
  264. package/esm2022/resource/index/index.component.mjs +0 -69
  265. package/esm2022/resource/index.mjs +0 -12
  266. package/esm2022/resource/resource.component.mjs +0 -46
  267. package/esm2022/resource/resource.config.mjs +0 -13
  268. package/esm2022/resource/resource.module.mjs +0 -62
  269. package/esm2022/resource/resource.routes.mjs +0 -42
  270. package/esm2022/resource/resource.service.mjs +0 -229
  271. package/esm2022/resource/resources.service.mjs +0 -25
  272. package/esm2022/resource/view/view.component.mjs +0 -25
  273. package/esm2022/types/alerts-position.mjs +0 -8
  274. package/esm2022/types/formio-metadata.mjs +0 -2
  275. package/esm2022/types/formio-submission.mjs +0 -6
  276. package/fesm2022/formio-angular-auth.mjs +0 -345
  277. package/fesm2022/formio-angular-auth.mjs.map +0 -1
  278. package/fesm2022/formio-angular-grid.mjs +0 -771
  279. package/fesm2022/formio-angular-grid.mjs.map +0 -1
  280. package/fesm2022/formio-angular-manager.mjs +0 -822
  281. package/fesm2022/formio-angular-manager.mjs.map +0 -1
  282. package/fesm2022/formio-angular-resource.mjs +0 -571
  283. package/fesm2022/formio-angular-resource.mjs.map +0 -1
  284. package/fesm2022/formio-angular.mjs +0 -1186
  285. package/fesm2022/formio-angular.mjs.map +0 -1
  286. package/formio-angular.d.ts.map +0 -1
  287. package/formio-promise.service.d.ts +0 -16
  288. package/formio-promise.service.d.ts.map +0 -1
  289. package/formio.common.d.ts +0 -73
  290. package/formio.common.d.ts.map +0 -1
  291. package/formio.config.d.ts +0 -20
  292. package/formio.config.d.ts.map +0 -1
  293. package/formio.module.d.ts +0 -15
  294. package/formio.module.d.ts.map +0 -1
  295. package/formio.service.d.ts +0 -18
  296. package/formio.service.d.ts.map +0 -1
  297. package/formio.utils.d.ts +0 -2
  298. package/formio.utils.d.ts.map +0 -1
  299. package/grid/GridBodyComponent.d.ts +0 -35
  300. package/grid/GridBodyComponent.d.ts.map +0 -1
  301. package/grid/GridFooterComponent.d.ts +0 -20
  302. package/grid/GridFooterComponent.d.ts.map +0 -1
  303. package/grid/GridHeaderComponent.d.ts +0 -16
  304. package/grid/GridHeaderComponent.d.ts.map +0 -1
  305. package/grid/form/FormGridBody.component.d.ts +0 -19
  306. package/grid/form/FormGridBody.component.d.ts.map +0 -1
  307. package/grid/form/FormGridFooter.component.d.ts +0 -10
  308. package/grid/form/FormGridFooter.component.d.ts.map +0 -1
  309. package/grid/form/FormGridHeader.component.d.ts +0 -11
  310. package/grid/form/FormGridHeader.component.d.ts.map +0 -1
  311. package/grid/form/index.d.ts +0 -10
  312. package/grid/form/index.d.ts.map +0 -1
  313. package/grid/form/time-since.pipe.d.ts +0 -8
  314. package/grid/form/time-since.pipe.d.ts.map +0 -1
  315. package/grid/formio-angular-grid.d.ts.map +0 -1
  316. package/grid/grid.component.d.ts +0 -59
  317. package/grid/grid.component.d.ts.map +0 -1
  318. package/grid/grid.module.d.ts +0 -23
  319. package/grid/grid.module.d.ts.map +0 -1
  320. package/grid/grid.service.d.ts +0 -10
  321. package/grid/grid.service.d.ts.map +0 -1
  322. package/grid/index.d.ts.map +0 -1
  323. package/grid/submission/SubmissionGridBody.component.d.ts +0 -19
  324. package/grid/submission/SubmissionGridBody.component.d.ts.map +0 -1
  325. package/grid/submission/SubmissionGridFooter.component.d.ts +0 -10
  326. package/grid/submission/SubmissionGridFooter.component.d.ts.map +0 -1
  327. package/grid/submission/SubmissionGridHeader.component.d.ts +0 -30
  328. package/grid/submission/SubmissionGridHeader.component.d.ts.map +0 -1
  329. package/grid/submission/index.d.ts.map +0 -1
  330. package/grid/types/grid-column.d.ts +0 -7
  331. package/grid/types/grid-column.d.ts.map +0 -1
  332. package/grid/types/grid-footer-positions.d.ts +0 -6
  333. package/grid/types/grid-footer-positions.d.ts.map +0 -1
  334. package/grid/types/grid-header.d.ts +0 -13
  335. package/grid/types/grid-header.d.ts.map +0 -1
  336. package/index.d.ts.map +0 -1
  337. package/manager/create/create.component.d.ts +0 -9
  338. package/manager/create/create.component.d.ts.map +0 -1
  339. package/manager/delete/delete.component.d.ts +0 -18
  340. package/manager/delete/delete.component.d.ts.map +0 -1
  341. package/manager/edit/edit.component.d.ts +0 -31
  342. package/manager/edit/edit.component.d.ts.map +0 -1
  343. package/manager/form/form.component.d.ts +0 -29
  344. package/manager/form/form.component.d.ts.map +0 -1
  345. package/manager/form-manager.config.d.ts +0 -30
  346. package/manager/form-manager.config.d.ts.map +0 -1
  347. package/manager/form-manager.module.d.ts +0 -28
  348. package/manager/form-manager.module.d.ts.map +0 -1
  349. package/manager/form-manager.routes.d.ts +0 -4
  350. package/manager/form-manager.routes.d.ts.map +0 -1
  351. package/manager/form-manager.service.d.ts +0 -37
  352. package/manager/form-manager.service.d.ts.map +0 -1
  353. package/manager/formio-angular-manager.d.ts.map +0 -1
  354. package/manager/index/index.component.d.ts +0 -28
  355. package/manager/index/index.component.d.ts.map +0 -1
  356. package/manager/index.d.ts.map +0 -1
  357. package/manager/submission/delete/delete.component.d.ts +0 -16
  358. package/manager/submission/delete/delete.component.d.ts.map +0 -1
  359. package/manager/submission/edit/edit.component.d.ts +0 -13
  360. package/manager/submission/edit/edit.component.d.ts.map +0 -1
  361. package/manager/submission/index/index.component.d.ts +0 -13
  362. package/manager/submission/index/index.component.d.ts.map +0 -1
  363. package/manager/submission/submission/submission.component.d.ts +0 -15
  364. package/manager/submission/submission/submission.component.d.ts.map +0 -1
  365. package/manager/submission/view/view.component.d.ts +0 -9
  366. package/manager/submission/view/view.component.d.ts.map +0 -1
  367. package/manager/view/view.component.d.ts +0 -24
  368. package/manager/view/view.component.d.ts.map +0 -1
  369. package/resource/create/create.component.d.ts +0 -19
  370. package/resource/create/create.component.d.ts.map +0 -1
  371. package/resource/delete/delete.component.d.ts +0 -14
  372. package/resource/delete/delete.component.d.ts.map +0 -1
  373. package/resource/edit/edit.component.d.ts +0 -22
  374. package/resource/edit/edit.component.d.ts.map +0 -1
  375. package/resource/formio-angular-resource.d.ts.map +0 -1
  376. package/resource/index/index.component.d.ts +0 -23
  377. package/resource/index/index.component.d.ts.map +0 -1
  378. package/resource/index.d.ts.map +0 -1
  379. package/resource/resource.component.d.ts +0 -24
  380. package/resource/resource.component.d.ts.map +0 -1
  381. package/resource/resource.config.d.ts +0 -17
  382. package/resource/resource.config.d.ts.map +0 -1
  383. package/resource/resource.module.d.ts +0 -20
  384. package/resource/resource.module.d.ts.map +0 -1
  385. package/resource/resource.routes.d.ts +0 -4
  386. package/resource/resource.routes.d.ts.map +0 -1
  387. package/resource/resource.service.d.ts +0 -52
  388. package/resource/resource.service.d.ts.map +0 -1
  389. package/resource/resources.service.d.ts +0 -16
  390. package/resource/resources.service.d.ts.map +0 -1
  391. package/resource/view/view.component.d.ts +0 -16
  392. package/resource/view/view.component.d.ts.map +0 -1
  393. package/types/alerts-position.d.ts +0 -7
  394. package/types/alerts-position.d.ts.map +0 -1
  395. package/types/formio-metadata.d.ts +0 -11
  396. package/types/formio-metadata.d.ts.map +0 -1
  397. package/types/formio-submission.d.ts +0 -19
  398. package/types/formio-submission.d.ts.map +0 -1
@@ -1,345 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, EventEmitter, Component, NgModule } from '@angular/core';
3
- import { get, each } from 'lodash';
4
- import { Formio } from 'formiojs';
5
- import * as i2 from '@formio/angular';
6
- import { extendRouter, FormioModule } from '@formio/angular';
7
- import * as i1 from '@angular/router';
8
- import { RouterModule } from '@angular/router';
9
- import { CommonModule } from '@angular/common';
10
-
11
- class FormioAuthConfig {
12
- component;
13
- delayAuth;
14
- login;
15
- register;
16
- resetpass;
17
- oauth;
18
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthConfig });
20
- }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthConfig, decorators: [{
22
- type: Injectable
23
- }] });
24
- var FormioOauthType;
25
- (function (FormioOauthType) {
26
- FormioOauthType["okta"] = "okta";
27
- FormioOauthType["saml"] = "saml";
28
- })(FormioOauthType || (FormioOauthType = {}));
29
-
30
- class FormioAuthService {
31
- appConfig;
32
- config;
33
- user;
34
- authenticated = false;
35
- loginForm;
36
- onLogin;
37
- onLogout;
38
- registerForm;
39
- onRegister;
40
- onUser;
41
- onError;
42
- resetPassForm;
43
- onResetPass;
44
- ready;
45
- readyResolve;
46
- readyReject;
47
- projectReady;
48
- accessReady;
49
- userReady;
50
- formAccess = {};
51
- submissionAccess = {};
52
- roles;
53
- is = {};
54
- constructor(appConfig, config) {
55
- this.appConfig = appConfig;
56
- this.config = config;
57
- this.user = null;
58
- if (this.appConfig && this.appConfig.appUrl) {
59
- Formio.setBaseUrl(this.appConfig.apiUrl);
60
- Formio.setProjectUrl(this.appConfig.appUrl);
61
- Formio.formOnly = !!this.appConfig.formOnly;
62
- }
63
- else {
64
- console.error('You must provide an AppConfig within your application!');
65
- }
66
- this.loginForm =
67
- this.appConfig.appUrl +
68
- '/' +
69
- get(this.config, 'login.form', 'user/login');
70
- this.registerForm =
71
- this.appConfig.appUrl +
72
- '/' +
73
- get(this.config, 'register.form', 'user/register');
74
- this.resetPassForm =
75
- this.appConfig.appUrl +
76
- '/' +
77
- get(this.config, 'register.form', 'resetpass');
78
- this.onLogin = new EventEmitter();
79
- this.onLogout = new EventEmitter();
80
- this.onRegister = new EventEmitter();
81
- this.onUser = new EventEmitter();
82
- this.onError = new EventEmitter();
83
- this.ready = new Promise((resolve, reject) => {
84
- this.readyResolve = resolve;
85
- this.readyReject = reject;
86
- });
87
- // Register for the core events.
88
- Formio.events.on('formio.badToken', () => this.logoutError());
89
- Formio.events.on('formio.sessionExpired', () => this.logoutError());
90
- if (!this.config.delayAuth) {
91
- this.init();
92
- }
93
- }
94
- onLoginSubmit(submission) {
95
- this.setUser(submission);
96
- this.onLogin.emit(submission);
97
- }
98
- onRegisterSubmit(submission) {
99
- this.setUser(submission);
100
- this.onRegister.emit(submission);
101
- }
102
- onResetPassSubmit(submission) {
103
- this.onResetPass.emit(submission);
104
- }
105
- init() {
106
- this.projectReady = Formio.makeStaticRequest(this.appConfig.appUrl).then((project) => {
107
- each(project.access, (access) => {
108
- this.formAccess[access.type] = access.roles;
109
- });
110
- }, () => {
111
- this.formAccess = {};
112
- return null;
113
- });
114
- // Get the access for this project.
115
- this.accessReady = Formio.makeStaticRequest(this.appConfig.appUrl + '/access')
116
- .then((access) => {
117
- each(access.forms, (form) => {
118
- this.submissionAccess[form.name] = {};
119
- form.submissionAccess.forEach((subAccess) => {
120
- this.submissionAccess[form.name][subAccess.type] = subAccess.roles;
121
- });
122
- });
123
- this.roles = access.roles;
124
- return access;
125
- })
126
- .catch((err) => {
127
- if (err === 'Token Expired' || err === 'Bad Token') {
128
- this.setUser(null);
129
- }
130
- this.roles = {};
131
- return null;
132
- });
133
- let currentUserPromise;
134
- if (this.config.oauth) {
135
- // Make a fix to the hash to remove starting "/" that angular might put there.
136
- if (window.location.hash && window.location.hash.match(/^#\/access_token/)) {
137
- history.pushState(null, null, window.location.hash.replace(/^#\/access_token/, '#access_token'));
138
- }
139
- // Initiate the SSO if they provide oauth settings.
140
- currentUserPromise = Formio.ssoInit(this.config.oauth.type, this.config.oauth.options);
141
- }
142
- else {
143
- currentUserPromise = Formio.currentUser(null, {
144
- ignoreCache: true
145
- });
146
- }
147
- this.userReady = currentUserPromise.then((user) => {
148
- this.setUser(user);
149
- return user;
150
- }).catch((err) => {
151
- this.setUser(null);
152
- throw err;
153
- });
154
- // Trigger we are redy when all promises have resolved.
155
- if (this.accessReady) {
156
- this.accessReady
157
- .then(() => this.projectReady)
158
- .then(() => this.userReady)
159
- .then(() => this.readyResolve(true))
160
- .catch((err) => this.readyReject(err));
161
- }
162
- }
163
- setUser(user) {
164
- const namespace = Formio.namespace || 'formio';
165
- if (user) {
166
- this.user = user;
167
- localStorage.setItem(`${namespace}AppUser`, JSON.stringify(user));
168
- this.setUserRoles();
169
- Formio.setUser(user);
170
- }
171
- else {
172
- this.user = null;
173
- this.is = {};
174
- localStorage.removeItem(`${namespace}AppUser`);
175
- Formio.clearCache();
176
- Formio.setUser(null);
177
- }
178
- this.authenticated = !!Formio.getToken();
179
- this.onUser.emit(this.user);
180
- }
181
- setUserRoles() {
182
- if (this.accessReady) {
183
- this.accessReady.then(() => {
184
- each(this.roles, (role, roleName) => {
185
- if (this.user.roles.indexOf(role._id) !== -1) {
186
- this.is[roleName] = true;
187
- }
188
- });
189
- });
190
- }
191
- }
192
- logoutError() {
193
- this.setUser(null);
194
- const namespace = Formio.namespace || 'formio';
195
- localStorage.removeItem(`${namespace}Token`);
196
- this.onError.emit();
197
- }
198
- logout() {
199
- const namespace = Formio.namespace || 'formio';
200
- const tokenName = `${namespace}Token`;
201
- localStorage.removeItem(tokenName);
202
- if (Formio.tokens && Formio.tokens.hasOwnProperty(tokenName)) {
203
- delete Formio.tokens[tokenName];
204
- }
205
- Formio.logout()
206
- .then(() => {
207
- this.setUser(null);
208
- if (localStorage.getItem(`${namespace}LogoutAuthUrl`)) {
209
- window.open(localStorage.getItem(`${namespace}LogoutAuthUrl`), null, 'width=1020,height=618');
210
- localStorage.removeItem(`${namespace}LogoutAuthUrl`);
211
- }
212
- this.onLogout.emit();
213
- })
214
- .catch(() => this.logoutError());
215
- }
216
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthService, deps: [{ token: i2.FormioAppConfig }, { token: FormioAuthConfig }], target: i0.ɵɵFactoryTarget.Injectable });
217
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthService });
218
- }
219
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthService, decorators: [{
220
- type: Injectable
221
- }], ctorParameters: () => [{ type: i2.FormioAppConfig }, { type: FormioAuthConfig }] });
222
-
223
- class FormioAuthComponent {
224
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
225
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: FormioAuthComponent, 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"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
226
- }
227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthComponent, decorators: [{
228
- type: Component,
229
- args: [{ 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
- }] });
231
-
232
- class FormioAuthLoginComponent {
233
- service;
234
- renderOptions = {
235
- submitOnEnter: true
236
- };
237
- constructor(service) {
238
- this.service = service;
239
- }
240
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthLoginComponent, deps: [{ token: FormioAuthService }], target: i0.ɵɵFactoryTarget.Component });
241
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: FormioAuthLoginComponent, 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
- }
243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthLoginComponent, decorators: [{
244
- type: Component,
245
- args: [{ template: "<formio [src]=\"service.loginForm\" [renderOptions]=\"renderOptions\" (submit)=\"service.onLoginSubmit($event)\"></formio>\n" }]
246
- }], ctorParameters: () => [{ type: FormioAuthService }] });
247
-
248
- class FormioAuthRegisterComponent {
249
- service;
250
- renderOptions = {
251
- submitOnEnter: true
252
- };
253
- constructor(service) {
254
- this.service = service;
255
- }
256
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthRegisterComponent, deps: [{ token: FormioAuthService }], target: i0.ɵɵFactoryTarget.Component });
257
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: FormioAuthRegisterComponent, 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
- }
259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuthRegisterComponent, decorators: [{
260
- type: Component,
261
- args: [{ template: "<formio [src]=\"service.registerForm\" [renderOptions]=\"renderOptions\" (submit)=\"service.onRegisterSubmit($event)\"></formio>\n" }]
262
- }], ctorParameters: () => [{ type: FormioAuthService }] });
263
-
264
- class FormioResetPassComponent {
265
- service;
266
- constructor(service) {
267
- this.service = service;
268
- }
269
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioResetPassComponent, deps: [{ token: FormioAuthService }], target: i0.ɵɵFactoryTarget.Component });
270
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: FormioResetPassComponent, 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
- }
272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioResetPassComponent, decorators: [{
273
- type: Component,
274
- args: [{ template: "<formio [src]=\"service.resetPassForm\" (submit)=\"service.onResetPassSubmit($event)\"></formio>\n" }]
275
- }], ctorParameters: () => [{ type: FormioAuthService }] });
276
-
277
- function FormioAuthRoutes(config) {
278
- return [
279
- {
280
- path: '',
281
- component: config && config.auth ? config.auth : FormioAuthComponent,
282
- children: [
283
- {
284
- path: '',
285
- redirectTo: 'login',
286
- pathMatch: 'full'
287
- },
288
- {
289
- path: 'login',
290
- component: config && config.login ? config.login : FormioAuthLoginComponent
291
- },
292
- {
293
- path: 'register',
294
- component: config && config.register ? config.register : FormioAuthRegisterComponent
295
- },
296
- {
297
- path: 'resetpass',
298
- component: config && config.resetpass ? config.resetpass : FormioResetPassComponent
299
- }
300
- ]
301
- }
302
- ];
303
- }
304
-
305
- class FormioAuth {
306
- static forRoot(config) {
307
- return extendRouter(FormioAuth, config, FormioAuthRoutes);
308
- }
309
- static forChild(config) {
310
- return extendRouter(FormioAuth, config, FormioAuthRoutes);
311
- }
312
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuth, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
313
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.8", ngImport: i0, type: FormioAuth, declarations: [FormioAuthComponent,
314
- FormioAuthLoginComponent,
315
- FormioAuthRegisterComponent,
316
- FormioResetPassComponent], imports: [CommonModule,
317
- FormioModule,
318
- RouterModule] });
319
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuth, imports: [CommonModule,
320
- FormioModule,
321
- RouterModule] });
322
- }
323
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FormioAuth, decorators: [{
324
- type: NgModule,
325
- args: [{
326
- imports: [
327
- CommonModule,
328
- FormioModule,
329
- RouterModule
330
- ],
331
- declarations: [
332
- FormioAuthComponent,
333
- FormioAuthLoginComponent,
334
- FormioAuthRegisterComponent,
335
- FormioResetPassComponent
336
- ]
337
- }]
338
- }] });
339
-
340
- /**
341
- * Generated bundle index. Do not edit.
342
- */
343
-
344
- export { FormioAuth, FormioAuthComponent, FormioAuthConfig, FormioAuthLoginComponent, FormioAuthRegisterComponent, FormioAuthRoutes, FormioAuthService, FormioResetPassComponent };
345
- //# sourceMappingURL=formio-angular-auth.mjs.map
@@ -1 +0,0 @@
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 'formiojs';\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, 'register.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})\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})\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})\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})\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,CAAO;AAChB,IAAA,SAAS,CAAO;AAChB,IAAA,KAAK,CAAwB;AAC7B,IAAA,QAAQ,CAAwB;AAChC,IAAA,SAAS,CAAwB;AACjC,IAAA,KAAK,CAAqB;uGANf,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;2GAAhB,gBAAgB,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAD5B,UAAU;;AAgBX,IAAY,eAGX,CAAA;AAHD,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,GAG1B,EAAA,CAAA,CAAA;;MC3BY,iBAAiB,CAAA;AA6BnB,IAAA,SAAA,CAAA;AACA,IAAA,MAAA,CAAA;AA7BF,IAAA,IAAI,CAAM;IACV,aAAa,GAAG,KAAK,C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