@formio/angular 5.2.0-rc.1 → 5.2.1-rc.2

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 (603) 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/.travis.yml +4 -0
  7. package/.yo-rc.json +7 -0
  8. package/CHANGELOG.md +1008 -0
  9. package/Dockerfile +20 -0
  10. package/LICENSE +21 -0
  11. package/README.md +170 -13
  12. package/angular.json +51 -0
  13. package/bs-config.json +11 -0
  14. package/{FormioBaseComponent.d.ts → dist/angular-formio/FormioBaseComponent.d.ts} +4 -1
  15. package/dist/angular-formio/FormioBaseComponent.d.ts.map +1 -0
  16. package/dist/angular-formio/README.md +24 -0
  17. package/dist/angular-formio/auth/auth.component.d.ts +6 -0
  18. package/{auth → dist/angular-formio/auth}/auth.component.d.ts.map +1 -1
  19. package/{auth → dist/angular-formio/auth}/auth.config.d.ts +3 -0
  20. package/dist/angular-formio/auth/auth.config.d.ts.map +1 -0
  21. package/dist/angular-formio/auth/auth.module.d.ts +17 -0
  22. package/dist/angular-formio/auth/auth.module.d.ts.map +1 -0
  23. package/{auth → dist/angular-formio/auth}/auth.routes.d.ts +0 -0
  24. package/{auth → dist/angular-formio/auth}/auth.routes.d.ts.map +0 -0
  25. package/{auth → dist/angular-formio/auth}/auth.service.d.ts +3 -0
  26. package/dist/angular-formio/auth/auth.service.d.ts.map +1 -0
  27. package/dist/angular-formio/auth/formio-angular-auth.d.ts +6 -0
  28. package/{auth → dist/angular-formio/auth}/formio-angular-auth.d.ts.map +1 -1
  29. package/{auth → dist/angular-formio/auth}/index.d.ts +0 -0
  30. package/{auth → dist/angular-formio/auth}/index.d.ts.map +0 -0
  31. package/dist/angular-formio/auth/login/login.component.d.ts +9 -0
  32. package/{auth → dist/angular-formio/auth}/login/login.component.d.ts.map +1 -1
  33. package/{auth → dist/angular-formio/auth}/package.json +0 -1
  34. package/{auth → dist/angular-formio/auth}/public_api.d.ts +0 -0
  35. package/{auth → dist/angular-formio/auth}/public_api.d.ts.map +0 -0
  36. package/dist/angular-formio/auth/register/register.component.d.ts +9 -0
  37. package/{auth → dist/angular-formio/auth}/register/register.component.d.ts.map +1 -1
  38. package/dist/angular-formio/auth/resetpass/resetpass.component.d.ts +9 -0
  39. package/{auth → dist/angular-formio/auth}/resetpass/resetpass.component.d.ts.map +1 -1
  40. package/dist/angular-formio/bundles/formio-angular-auth.umd.js +421 -0
  41. package/dist/angular-formio/bundles/formio-angular-auth.umd.js.map +1 -0
  42. package/dist/angular-formio/bundles/formio-angular-grid.umd.js +1725 -0
  43. package/dist/angular-formio/bundles/formio-angular-grid.umd.js.map +1 -0
  44. package/dist/angular-formio/bundles/formio-angular-manager.umd.js +1648 -0
  45. package/dist/angular-formio/bundles/formio-angular-manager.umd.js.map +1 -0
  46. package/dist/angular-formio/bundles/formio-angular-resource.umd.js +720 -0
  47. package/dist/angular-formio/bundles/formio-angular-resource.umd.js.map +1 -0
  48. package/dist/angular-formio/bundles/formio-angular.umd.js +1729 -0
  49. package/dist/angular-formio/bundles/formio-angular.umd.js.map +1 -0
  50. package/dist/angular-formio/components/alerts/formio.alerts.component.d.ts +12 -0
  51. package/{components → dist/angular-formio/components}/alerts/formio.alerts.component.d.ts.map +1 -1
  52. package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts +0 -0
  53. package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts.map +0 -0
  54. package/dist/angular-formio/components/alerts/parse-html-content.pipe.d.ts +8 -0
  55. package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts.map +1 -1
  56. package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts +3 -0
  57. package/dist/angular-formio/components/formbuilder/formbuilder.component.d.ts.map +1 -0
  58. package/{components → dist/angular-formio/components}/formio/formio.component.d.ts +3 -0
  59. package/{components → dist/angular-formio/components}/formio/formio.component.d.ts.map +1 -1
  60. package/dist/angular-formio/components/loader/formio.loader.component.d.ts +7 -0
  61. package/dist/angular-formio/components/loader/formio.loader.component.d.ts.map +1 -0
  62. package/{core.d.ts → dist/angular-formio/core.d.ts} +0 -0
  63. package/{core.d.ts.map → dist/angular-formio/core.d.ts.map} +0 -0
  64. package/{custom-component → dist/angular-formio/custom-component}/create-custom-component.d.ts +0 -0
  65. package/{custom-component → dist/angular-formio/custom-component}/create-custom-component.d.ts.map +0 -0
  66. package/dist/angular-formio/custom-component/custom-tags.service.d.ts +8 -0
  67. package/dist/angular-formio/custom-component/custom-tags.service.d.ts.map +1 -0
  68. package/{custom-component → dist/angular-formio/custom-component}/register-custom-component.d.ts +0 -0
  69. package/{custom-component → dist/angular-formio/custom-component}/register-custom-component.d.ts.map +0 -0
  70. package/{elements.common.d.ts → dist/angular-formio/elements.common.d.ts} +0 -0
  71. package/{elements.common.d.ts.map → dist/angular-formio/elements.common.d.ts.map} +0 -0
  72. package/dist/angular-formio/esm2015/FormioBaseComponent.js +497 -0
  73. package/dist/angular-formio/esm2015/auth/auth.component.js +39 -0
  74. package/dist/angular-formio/esm2015/auth/auth.config.js +15 -0
  75. package/dist/angular-formio/esm2015/auth/auth.module.js +49 -0
  76. package/{esm2015 → dist/angular-formio/esm2015}/auth/auth.routes.js +0 -0
  77. package/dist/angular-formio/esm2015/auth/auth.service.js +159 -0
  78. package/{esm2015 → dist/angular-formio/esm2015}/auth/formio-angular-auth.js +0 -0
  79. package/{esm2015 → dist/angular-formio/esm2015}/auth/index.js +0 -0
  80. package/dist/angular-formio/esm2015/auth/login/login.component.js +24 -0
  81. package/{esm2015 → dist/angular-formio/esm2015}/auth/public_api.js +0 -0
  82. package/dist/angular-formio/esm2015/auth/register/register.component.js +24 -0
  83. package/dist/angular-formio/esm2015/auth/resetpass/resetpass.component.js +24 -0
  84. package/dist/angular-formio/esm2015/components/alerts/formio.alerts.component.js +49 -0
  85. package/{esm2015 → dist/angular-formio/esm2015}/components/alerts/formio.alerts.js +0 -0
  86. package/dist/angular-formio/esm2015/components/alerts/parse-html-content.pipe.js +19 -0
  87. package/dist/angular-formio/esm2015/components/formbuilder/formbuilder.component.js +203 -0
  88. package/dist/angular-formio/esm2015/components/formio/formio.component.js +87 -0
  89. package/dist/angular-formio/esm2015/components/loader/formio.loader.component.js +27 -0
  90. package/{esm2015 → dist/angular-formio/esm2015}/core.js +0 -0
  91. package/{esm2015 → dist/angular-formio/esm2015}/custom-component/create-custom-component.js +0 -0
  92. package/dist/angular-formio/esm2015/custom-component/custom-tags.service.js +16 -0
  93. package/{esm2015 → dist/angular-formio/esm2015}/custom-component/register-custom-component.js +0 -0
  94. package/{esm2015 → dist/angular-formio/esm2015}/elements.common.js +0 -0
  95. package/dist/angular-formio/esm2015/formio-angular.js +5 -0
  96. package/{esm2015 → dist/angular-formio/esm2015}/formio-promise.service.js +0 -0
  97. package/{esm2015 → dist/angular-formio/esm2015}/formio.common.js +0 -0
  98. package/dist/angular-formio/esm2015/formio.config.js +14 -0
  99. package/dist/angular-formio/esm2015/formio.module.js +61 -0
  100. package/{esm2015 → dist/angular-formio/esm2015}/formio.service.js +0 -0
  101. package/{esm2015 → dist/angular-formio/esm2015}/formio.utils.js +0 -0
  102. package/dist/angular-formio/esm2015/grid/GridBodyComponent.js +86 -0
  103. package/dist/angular-formio/esm2015/grid/GridFooterComponent.js +41 -0
  104. package/dist/angular-formio/esm2015/grid/GridHeaderComponent.js +35 -0
  105. package/dist/angular-formio/esm2015/grid/form/FormGridBody.component.js +130 -0
  106. package/dist/angular-formio/esm2015/grid/form/FormGridFooter.component.js +118 -0
  107. package/dist/angular-formio/esm2015/grid/form/FormGridHeader.component.js +65 -0
  108. package/{esm2015 → dist/angular-formio/esm2015}/grid/form/index.js +0 -0
  109. package/dist/angular-formio/esm2015/grid/form/time-since.pipe.js +37 -0
  110. package/dist/angular-formio/esm2015/grid/formio-angular-grid.js +5 -0
  111. package/dist/angular-formio/esm2015/grid/grid.component.js +302 -0
  112. package/dist/angular-formio/esm2015/grid/grid.module.js +90 -0
  113. package/dist/angular-formio/esm2015/grid/grid.service.js +18 -0
  114. package/{esm2015 → dist/angular-formio/esm2015}/grid/index.js +0 -0
  115. package/{esm2015 → dist/angular-formio/esm2015}/grid/public_api.js +0 -0
  116. package/dist/angular-formio/esm2015/grid/submission/SubmissionGridBody.component.js +75 -0
  117. package/dist/angular-formio/esm2015/grid/submission/SubmissionGridFooter.component.js +107 -0
  118. package/dist/angular-formio/esm2015/grid/submission/SubmissionGridHeader.component.js +99 -0
  119. package/{esm2015 → dist/angular-formio/esm2015}/grid/submission/index.js +0 -0
  120. package/{esm2015 → dist/angular-formio/esm2015}/grid/types/grid-column.js +0 -0
  121. package/{esm2015 → dist/angular-formio/esm2015}/grid/types/grid-footer-positions.js +0 -0
  122. package/{esm2015 → dist/angular-formio/esm2015}/grid/types/grid-header.js +0 -0
  123. package/{esm2015 → dist/angular-formio/esm2015}/index.js +0 -0
  124. package/dist/angular-formio/esm2015/manager/create/create.component.js +68 -0
  125. package/dist/angular-formio/esm2015/manager/delete/delete.component.js +56 -0
  126. package/dist/angular-formio/esm2015/manager/edit/edit.component.js +170 -0
  127. package/dist/angular-formio/esm2015/manager/form/form.component.js +192 -0
  128. package/dist/angular-formio/esm2015/manager/form-manager.config.js +15 -0
  129. package/dist/angular-formio/esm2015/manager/form-manager.module.js +86 -0
  130. package/{esm2015 → dist/angular-formio/esm2015}/manager/form-manager.routes.js +0 -0
  131. package/dist/angular-formio/esm2015/manager/form-manager.service.js +178 -0
  132. package/{esm2015 → dist/angular-formio/esm2015}/manager/formio-angular-manager.js +0 -0
  133. package/dist/angular-formio/esm2015/manager/index/index.component.js +130 -0
  134. package/{esm2015 → dist/angular-formio/esm2015}/manager/index.js +0 -0
  135. package/{esm2015 → dist/angular-formio/esm2015}/manager/public_api.js +0 -0
  136. package/dist/angular-formio/esm2015/manager/submission/delete/delete.component.js +47 -0
  137. package/dist/angular-formio/esm2015/manager/submission/edit/edit.component.js +30 -0
  138. package/dist/angular-formio/esm2015/manager/submission/index/index.component.js +30 -0
  139. package/dist/angular-formio/esm2015/manager/submission/submission/submission.component.js +75 -0
  140. package/dist/angular-formio/esm2015/manager/submission/view/view.component.js +24 -0
  141. package/dist/angular-formio/esm2015/manager/view/view.component.js +57 -0
  142. package/{esm2015 → dist/angular-formio/esm2015}/public-api.js +0 -0
  143. package/dist/angular-formio/esm2015/resource/create/create.component.js +61 -0
  144. package/dist/angular-formio/esm2015/resource/delete/delete.component.js +42 -0
  145. package/dist/angular-formio/esm2015/resource/edit/edit.component.js +44 -0
  146. package/{esm2015 → dist/angular-formio/esm2015}/resource/formio-angular-resource.js +0 -0
  147. package/dist/angular-formio/esm2015/resource/index/index.component.js +72 -0
  148. package/{esm2015 → dist/angular-formio/esm2015}/resource/index.js +0 -0
  149. package/{esm2015 → dist/angular-formio/esm2015}/resource/public_api.js +0 -0
  150. package/dist/angular-formio/esm2015/resource/resource.component.js +83 -0
  151. package/dist/angular-formio/esm2015/resource/resource.config.js +15 -0
  152. package/dist/angular-formio/esm2015/resource/resource.module.js +65 -0
  153. package/{esm2015 → dist/angular-formio/esm2015}/resource/resource.routes.js +0 -0
  154. package/dist/angular-formio/esm2015/resource/resource.service.js +186 -0
  155. package/dist/angular-formio/esm2015/resource/resources.service.js +22 -0
  156. package/dist/angular-formio/esm2015/resource/view/view.component.js +29 -0
  157. package/{esm2015 → dist/angular-formio/esm2015}/types/alerts-position.js +0 -0
  158. package/{esm2015 → dist/angular-formio/esm2015}/types/formio-metadata.js +0 -0
  159. package/{esm2015 → dist/angular-formio/esm2015}/types/formio-submission.js +0 -0
  160. package/{fesm2015 → dist/angular-formio/fesm2015}/formio-angular-auth.js +108 -45
  161. package/dist/angular-formio/fesm2015/formio-angular-auth.js.map +1 -0
  162. package/dist/angular-formio/fesm2015/formio-angular-grid.js +1175 -0
  163. package/dist/angular-formio/fesm2015/formio-angular-grid.js.map +1 -0
  164. package/dist/angular-formio/fesm2015/formio-angular-manager.js +1145 -0
  165. package/dist/angular-formio/fesm2015/formio-angular-manager.js.map +1 -0
  166. package/dist/angular-formio/fesm2015/formio-angular-resource.js +612 -0
  167. package/dist/angular-formio/fesm2015/formio-angular-resource.js.map +1 -0
  168. package/dist/angular-formio/fesm2015/formio-angular.js +1232 -0
  169. package/dist/angular-formio/fesm2015/formio-angular.js.map +1 -0
  170. package/dist/angular-formio/formio-angular.d.ts +6 -0
  171. package/dist/angular-formio/formio-angular.d.ts.map +1 -0
  172. package/{formio-promise.service.d.ts → dist/angular-formio/formio-promise.service.d.ts} +0 -0
  173. package/{formio-promise.service.d.ts.map → dist/angular-formio/formio-promise.service.d.ts.map} +0 -0
  174. package/{formio.common.d.ts → dist/angular-formio/formio.common.d.ts} +0 -0
  175. package/{formio.common.d.ts.map → dist/angular-formio/formio.common.d.ts.map} +0 -0
  176. package/dist/angular-formio/formio.config.d.ts +10 -0
  177. package/dist/angular-formio/formio.config.d.ts.map +1 -0
  178. package/dist/angular-formio/formio.module.d.ts +14 -0
  179. package/{formio.module.d.ts.map → dist/angular-formio/formio.module.d.ts.map} +1 -1
  180. package/{formio.service.d.ts → dist/angular-formio/formio.service.d.ts} +0 -0
  181. package/{formio.service.d.ts.map → dist/angular-formio/formio.service.d.ts.map} +0 -0
  182. package/{formio.utils.d.ts → dist/angular-formio/formio.utils.d.ts} +0 -0
  183. package/{formio.utils.d.ts.map → dist/angular-formio/formio.utils.d.ts.map} +0 -0
  184. package/{grid → dist/angular-formio/grid}/GridBodyComponent.d.ts +3 -0
  185. package/dist/angular-formio/grid/GridBodyComponent.d.ts.map +1 -0
  186. package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts +3 -0
  187. package/dist/angular-formio/grid/GridFooterComponent.d.ts.map +1 -0
  188. package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts +3 -0
  189. package/dist/angular-formio/grid/GridHeaderComponent.d.ts.map +1 -0
  190. package/dist/angular-formio/grid/form/FormGridBody.component.d.ts +9 -0
  191. package/{grid → dist/angular-formio/grid}/form/FormGridBody.component.d.ts.map +1 -1
  192. package/dist/angular-formio/grid/form/FormGridFooter.component.d.ts +10 -0
  193. package/{grid → dist/angular-formio/grid}/form/FormGridFooter.component.d.ts.map +1 -1
  194. package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts +3 -0
  195. package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts.map +1 -1
  196. package/{grid → dist/angular-formio/grid}/form/index.d.ts +0 -0
  197. package/{grid → dist/angular-formio/grid}/form/index.d.ts.map +0 -0
  198. package/dist/angular-formio/grid/form/time-since.pipe.d.ts +8 -0
  199. package/{grid → dist/angular-formio/grid}/form/time-since.pipe.d.ts.map +1 -1
  200. package/dist/angular-formio/grid/formio-angular-grid.d.ts +6 -0
  201. package/{grid → dist/angular-formio/grid}/formio-angular-grid.d.ts.map +1 -1
  202. package/{grid → dist/angular-formio/grid}/grid.component.d.ts +3 -0
  203. package/dist/angular-formio/grid/grid.component.d.ts.map +1 -0
  204. package/dist/angular-formio/grid/grid.module.d.ts +23 -0
  205. package/{grid → dist/angular-formio/grid}/grid.module.d.ts.map +1 -1
  206. package/dist/angular-formio/grid/grid.service.d.ts +10 -0
  207. package/dist/angular-formio/grid/grid.service.d.ts.map +1 -0
  208. package/{grid → dist/angular-formio/grid}/index.d.ts +0 -0
  209. package/{grid → dist/angular-formio/grid}/index.d.ts.map +0 -0
  210. package/{grid → dist/angular-formio/grid}/package.json +0 -1
  211. package/{grid → dist/angular-formio/grid}/public_api.d.ts +0 -0
  212. package/{grid → dist/angular-formio/grid}/public_api.d.ts.map +0 -0
  213. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts +3 -0
  214. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts.map +1 -1
  215. package/dist/angular-formio/grid/submission/SubmissionGridFooter.component.d.ts +10 -0
  216. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridFooter.component.d.ts.map +1 -1
  217. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridHeader.component.d.ts +3 -0
  218. package/dist/angular-formio/grid/submission/SubmissionGridHeader.component.d.ts.map +1 -0
  219. package/{grid → dist/angular-formio/grid}/submission/index.d.ts +0 -0
  220. package/{grid → dist/angular-formio/grid}/submission/index.d.ts.map +0 -0
  221. package/{grid → dist/angular-formio/grid}/types/grid-column.d.ts +0 -0
  222. package/{grid → dist/angular-formio/grid}/types/grid-column.d.ts.map +0 -0
  223. package/{grid → dist/angular-formio/grid}/types/grid-footer-positions.d.ts +0 -0
  224. package/{grid → dist/angular-formio/grid}/types/grid-footer-positions.d.ts.map +0 -0
  225. package/{grid → dist/angular-formio/grid}/types/grid-header.d.ts +0 -0
  226. package/{grid → dist/angular-formio/grid}/types/grid-header.d.ts.map +0 -0
  227. package/{index.d.ts → dist/angular-formio/index.d.ts} +0 -0
  228. package/{index.d.ts.map → dist/angular-formio/index.d.ts.map} +0 -0
  229. package/dist/angular-formio/manager/create/create.component.d.ts +9 -0
  230. package/{manager → dist/angular-formio/manager}/create/create.component.d.ts.map +1 -1
  231. package/{manager → dist/angular-formio/manager}/delete/delete.component.d.ts +3 -0
  232. package/dist/angular-formio/manager/delete/delete.component.d.ts.map +1 -0
  233. package/{manager → dist/angular-formio/manager}/edit/edit.component.d.ts +3 -0
  234. package/dist/angular-formio/manager/edit/edit.component.d.ts.map +1 -0
  235. package/{manager → dist/angular-formio/manager}/form/form.component.d.ts +3 -0
  236. package/dist/angular-formio/manager/form/form.component.d.ts.map +1 -0
  237. package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts +3 -0
  238. package/dist/angular-formio/manager/form-manager.config.d.ts.map +1 -0
  239. package/dist/angular-formio/manager/form-manager.module.d.ts +28 -0
  240. package/dist/angular-formio/manager/form-manager.module.d.ts.map +1 -0
  241. package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts +0 -0
  242. package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts.map +0 -0
  243. package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts +3 -0
  244. package/dist/angular-formio/manager/form-manager.service.d.ts.map +1 -0
  245. package/dist/angular-formio/manager/formio-angular-manager.d.ts +6 -0
  246. package/{manager → dist/angular-formio/manager}/formio-angular-manager.d.ts.map +1 -1
  247. package/{manager → dist/angular-formio/manager}/index/index.component.d.ts +3 -0
  248. package/dist/angular-formio/manager/index/index.component.d.ts.map +1 -0
  249. package/{manager → dist/angular-formio/manager}/index.d.ts +0 -0
  250. package/{manager → dist/angular-formio/manager}/index.d.ts.map +0 -0
  251. package/{manager → dist/angular-formio/manager}/package.json +0 -1
  252. package/{manager → dist/angular-formio/manager}/public_api.d.ts +0 -0
  253. package/{manager → dist/angular-formio/manager}/public_api.d.ts.map +0 -0
  254. package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts +3 -0
  255. package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts.map +1 -1
  256. package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts +3 -0
  257. package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts.map +1 -1
  258. package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts +3 -0
  259. package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts.map +1 -1
  260. package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts +3 -0
  261. package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts.map +1 -1
  262. package/dist/angular-formio/manager/submission/view/view.component.d.ts +9 -0
  263. package/{manager → dist/angular-formio/manager}/submission/view/view.component.d.ts.map +1 -1
  264. package/{manager → dist/angular-formio/manager}/view/view.component.d.ts +3 -0
  265. package/dist/angular-formio/manager/view/view.component.d.ts.map +1 -0
  266. package/dist/angular-formio/package.json +49 -0
  267. package/{public-api.d.ts → dist/angular-formio/public-api.d.ts} +0 -0
  268. package/{public-api.d.ts.map → dist/angular-formio/public-api.d.ts.map} +0 -0
  269. package/{resource → dist/angular-formio/resource}/create/create.component.d.ts +3 -0
  270. package/dist/angular-formio/resource/create/create.component.d.ts.map +1 -0
  271. package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts +3 -0
  272. package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts.map +1 -1
  273. package/{resource → dist/angular-formio/resource}/edit/edit.component.d.ts +9 -2
  274. package/dist/angular-formio/resource/edit/edit.component.d.ts.map +1 -0
  275. package/dist/angular-formio/resource/formio-angular-resource.d.ts +6 -0
  276. package/{resource → dist/angular-formio/resource}/formio-angular-resource.d.ts.map +1 -1
  277. package/{resource → dist/angular-formio/resource}/index/index.component.d.ts +3 -0
  278. package/dist/angular-formio/resource/index/index.component.d.ts.map +1 -0
  279. package/{resource → dist/angular-formio/resource}/index.d.ts +0 -0
  280. package/{resource → dist/angular-formio/resource}/index.d.ts.map +0 -0
  281. package/{resource → dist/angular-formio/resource}/package.json +0 -1
  282. package/{resource → dist/angular-formio/resource}/public_api.d.ts +0 -0
  283. package/{resource → dist/angular-formio/resource}/public_api.d.ts.map +0 -0
  284. package/{resource → dist/angular-formio/resource}/resource.component.d.ts +3 -0
  285. package/{resource → dist/angular-formio/resource}/resource.component.d.ts.map +1 -1
  286. package/{resource → dist/angular-formio/resource}/resource.config.d.ts +3 -0
  287. package/dist/angular-formio/resource/resource.config.d.ts.map +1 -0
  288. package/dist/angular-formio/resource/resource.module.d.ts +20 -0
  289. package/dist/angular-formio/resource/resource.module.d.ts.map +1 -0
  290. package/{resource → dist/angular-formio/resource}/resource.routes.d.ts +0 -0
  291. package/{resource → dist/angular-formio/resource}/resource.routes.d.ts.map +0 -0
  292. package/{resource → dist/angular-formio/resource}/resource.service.d.ts +3 -0
  293. package/dist/angular-formio/resource/resource.service.d.ts.map +1 -0
  294. package/{resource → dist/angular-formio/resource}/resources.service.d.ts +3 -0
  295. package/dist/angular-formio/resource/resources.service.d.ts.map +1 -0
  296. package/dist/angular-formio/resource/view/view.component.d.ts +16 -0
  297. package/dist/angular-formio/resource/view/view.component.d.ts.map +1 -0
  298. package/{types → dist/angular-formio/types}/alerts-position.d.ts +0 -0
  299. package/{types → dist/angular-formio/types}/alerts-position.d.ts.map +0 -0
  300. package/{types → dist/angular-formio/types}/formio-metadata.d.ts +0 -0
  301. package/{types → dist/angular-formio/types}/formio-metadata.d.ts.map +0 -0
  302. package/{types → dist/angular-formio/types}/formio-submission.d.ts +0 -0
  303. package/{types → dist/angular-formio/types}/formio-submission.d.ts.map +0 -0
  304. package/package.json +52 -28
  305. package/projects/angular-formio/README.md +24 -0
  306. package/projects/angular-formio/auth/package.json +10 -0
  307. package/projects/angular-formio/auth/src/auth.component.html +12 -0
  308. package/projects/angular-formio/auth/src/auth.component.ts +5 -0
  309. package/projects/angular-formio/auth/src/auth.config.ts +72 -0
  310. package/projects/angular-formio/auth/src/auth.module.ts +33 -0
  311. package/projects/angular-formio/auth/src/auth.routes.ts +34 -0
  312. package/projects/angular-formio/auth/src/auth.service.ts +201 -0
  313. package/projects/angular-formio/auth/src/index.ts +8 -0
  314. package/projects/angular-formio/auth/src/login/login.component.html +1 -0
  315. package/projects/angular-formio/auth/src/login/login.component.ts +8 -0
  316. package/projects/angular-formio/auth/src/public_api.ts +5 -0
  317. package/projects/angular-formio/auth/src/register/register.component.html +1 -0
  318. package/projects/angular-formio/auth/src/register/register.component.ts +8 -0
  319. package/projects/angular-formio/auth/src/resetpass/resetpass.component.html +1 -0
  320. package/projects/angular-formio/auth/src/resetpass/resetpass.component.ts +8 -0
  321. package/projects/angular-formio/grid/package.json +11 -0
  322. package/projects/angular-formio/grid/src/GridBodyComponent.ts +80 -0
  323. package/projects/angular-formio/grid/src/GridFooterComponent.ts +25 -0
  324. package/projects/angular-formio/grid/src/GridHeaderComponent.ts +25 -0
  325. package/projects/angular-formio/grid/src/form/FormGridBody.component.html +23 -0
  326. package/projects/angular-formio/grid/src/form/FormGridBody.component.scss +4 -0
  327. package/projects/angular-formio/grid/src/form/FormGridBody.component.ts +15 -0
  328. package/projects/angular-formio/grid/src/form/FormGridFooter.component.html +21 -0
  329. package/projects/angular-formio/grid/src/form/FormGridFooter.component.ts +23 -0
  330. package/projects/angular-formio/grid/src/form/FormGridHeader.component.html +18 -0
  331. package/projects/angular-formio/grid/src/form/FormGridHeader.component.ts +24 -0
  332. package/projects/angular-formio/grid/src/form/index.ts +8 -0
  333. package/projects/angular-formio/grid/src/form/time-since.pipe.ts +31 -0
  334. package/projects/angular-formio/grid/src/grid.component.html +18 -0
  335. package/projects/angular-formio/grid/src/grid.component.scss +9 -0
  336. package/projects/angular-formio/grid/src/grid.component.ts +242 -0
  337. package/projects/angular-formio/grid/src/grid.footer.scss +14 -0
  338. package/projects/angular-formio/grid/src/grid.module.ts +57 -0
  339. package/projects/angular-formio/grid/src/grid.service.ts +16 -0
  340. package/projects/angular-formio/grid/src/index.ts +12 -0
  341. package/projects/angular-formio/grid/src/public_api.ts +5 -0
  342. package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.html +7 -0
  343. package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.ts +39 -0
  344. package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.html +18 -0
  345. package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.ts +20 -0
  346. package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.html +11 -0
  347. package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.ts +72 -0
  348. package/projects/angular-formio/grid/src/submission/index.ts +8 -0
  349. package/projects/angular-formio/grid/src/types/grid-column.ts +7 -0
  350. package/projects/angular-formio/grid/src/types/grid-footer-positions.ts +5 -0
  351. package/projects/angular-formio/grid/src/types/grid-header.ts +14 -0
  352. package/projects/angular-formio/karma.conf.js +32 -0
  353. package/projects/angular-formio/manager/package.json +15 -0
  354. package/projects/angular-formio/manager/src/create/create.component.ts +11 -0
  355. package/projects/angular-formio/manager/src/delete/delete.component.html +6 -0
  356. package/projects/angular-formio/manager/src/delete/delete.component.ts +37 -0
  357. package/projects/angular-formio/manager/src/edit/edit.component.html +19 -0
  358. package/projects/angular-formio/manager/src/edit/edit.component.ts +107 -0
  359. package/projects/angular-formio/manager/src/form/form.component.html +32 -0
  360. package/projects/angular-formio/manager/src/form/form.component.ts +73 -0
  361. package/projects/angular-formio/manager/src/form-manager.config.ts +26 -0
  362. package/projects/angular-formio/manager/src/form-manager.module.ts +54 -0
  363. package/projects/angular-formio/manager/src/form-manager.routes.ts +75 -0
  364. package/projects/angular-formio/manager/src/form-manager.service.ts +195 -0
  365. package/projects/angular-formio/manager/src/index/index.component.html +14 -0
  366. package/projects/angular-formio/manager/src/index/index.component.scss +22 -0
  367. package/projects/angular-formio/manager/src/index/index.component.ts +84 -0
  368. package/projects/angular-formio/manager/src/index.ts +16 -0
  369. package/projects/angular-formio/manager/src/public_api.ts +5 -0
  370. package/projects/angular-formio/manager/src/submission/delete/delete.component.html +6 -0
  371. package/projects/angular-formio/manager/src/submission/delete/delete.component.ts +26 -0
  372. package/projects/angular-formio/manager/src/submission/edit/edit.component.html +7 -0
  373. package/projects/angular-formio/manager/src/submission/edit/edit.component.ts +18 -0
  374. package/projects/angular-formio/manager/src/submission/index/index.component.html +1 -0
  375. package/projects/angular-formio/manager/src/submission/index/index.component.ts +18 -0
  376. package/projects/angular-formio/manager/src/submission/submission/submission.component.html +8 -0
  377. package/projects/angular-formio/manager/src/submission/submission/submission.component.ts +24 -0
  378. package/projects/angular-formio/manager/src/submission/view/view.component.html +7 -0
  379. package/projects/angular-formio/manager/src/submission/view/view.component.ts +9 -0
  380. package/projects/angular-formio/manager/src/view/view.component.html +10 -0
  381. package/projects/angular-formio/manager/src/view/view.component.ts +41 -0
  382. package/projects/angular-formio/ng-package.json +14 -0
  383. package/projects/angular-formio/package.json +39 -0
  384. package/projects/angular-formio/resource/package.json +11 -0
  385. package/projects/angular-formio/resource/src/create/create.component.html +13 -0
  386. package/projects/angular-formio/resource/src/create/create.component.scss +3 -0
  387. package/projects/angular-formio/resource/src/create/create.component.ts +37 -0
  388. package/projects/angular-formio/resource/src/delete/delete.component.html +5 -0
  389. package/projects/angular-formio/resource/src/delete/delete.component.ts +24 -0
  390. package/projects/angular-formio/resource/src/edit/edit.component.html +6 -0
  391. package/projects/angular-formio/resource/src/edit/edit.component.ts +33 -0
  392. package/projects/angular-formio/resource/src/index/index.component.html +10 -0
  393. package/projects/angular-formio/resource/src/index/index.component.ts +66 -0
  394. package/projects/angular-formio/resource/src/index.js +24 -0
  395. package/projects/angular-formio/resource/src/index.ts +11 -0
  396. package/projects/angular-formio/resource/src/public_api.ts +5 -0
  397. package/projects/angular-formio/resource/src/resource.component.html +7 -0
  398. package/projects/angular-formio/resource/src/resource.component.ts +48 -0
  399. package/projects/angular-formio/resource/src/resource.config.ts +17 -0
  400. package/projects/angular-formio/resource/src/resource.module.ts +43 -0
  401. package/projects/angular-formio/resource/src/resource.routes.ts +43 -0
  402. package/projects/angular-formio/resource/src/resource.service.ts +232 -0
  403. package/projects/angular-formio/resource/src/resources.service.ts +24 -0
  404. package/projects/angular-formio/resource/src/view/view.component.html +6 -0
  405. package/projects/angular-formio/resource/src/view/view.component.ts +19 -0
  406. package/projects/angular-formio/src/FormioBaseComponent.ts +507 -0
  407. package/projects/angular-formio/src/components/alerts/formio.alerts.component.html +3 -0
  408. package/projects/angular-formio/src/components/alerts/formio.alerts.component.ts +19 -0
  409. package/projects/angular-formio/src/components/alerts/formio.alerts.ts +21 -0
  410. package/projects/angular-formio/src/components/alerts/parse-html-content.pipe.ts +15 -0
  411. package/projects/angular-formio/src/components/formbuilder/formbuilder.component.html +1 -0
  412. package/projects/angular-formio/src/components/formbuilder/formbuilder.component.ts +216 -0
  413. package/projects/angular-formio/src/components/formio/formio.component.html +8 -0
  414. package/projects/angular-formio/src/components/formio/formio.component.ts +33 -0
  415. package/projects/angular-formio/src/components/loader/formio.loader.component.html +3 -0
  416. package/projects/angular-formio/src/components/loader/formio.loader.component.scss +26 -0
  417. package/projects/angular-formio/src/components/loader/formio.loader.component.ts +10 -0
  418. package/projects/angular-formio/src/core.ts +21 -0
  419. package/projects/angular-formio/src/custom-component/create-custom-component.ts +173 -0
  420. package/projects/angular-formio/src/custom-component/custom-tags.service.ts +10 -0
  421. package/projects/angular-formio/src/custom-component/register-custom-component.ts +41 -0
  422. package/projects/angular-formio/src/elements.common.ts +31 -0
  423. package/projects/angular-formio/src/formio-promise.service.ts +36 -0
  424. package/projects/angular-formio/src/formio.common.ts +81 -0
  425. package/projects/angular-formio/src/formio.config.ts +9 -0
  426. package/projects/angular-formio/src/formio.module.ts +39 -0
  427. package/projects/angular-formio/src/formio.service.ts +57 -0
  428. package/projects/angular-formio/src/formio.utils.ts +23 -0
  429. package/projects/angular-formio/src/index.ts +5 -0
  430. package/projects/angular-formio/src/public-api.ts +5 -0
  431. package/projects/angular-formio/src/test.ts +26 -0
  432. package/projects/angular-formio/src/types/alerts-position.ts +6 -0
  433. package/projects/angular-formio/src/types/formio-metadata.ts +10 -0
  434. package/projects/angular-formio/src/types/formio-submission.ts +20 -0
  435. package/projects/angular-formio/tsconfig.lib.json +27 -0
  436. package/projects/angular-formio/tsconfig.lib.prod.json +8 -0
  437. package/projects/angular-formio/tsconfig.spec.json +17 -0
  438. package/projects/angular-formio/tslint.json +17 -0
  439. package/tsconfig.json +28 -0
  440. package/tslint.json +140 -0
  441. package/FormioBaseComponent.d.ts.map +0 -1
  442. package/FormioBaseComponent.ngfactory.d.ts.map +0 -1
  443. package/auth/auth.component.d.ts +0 -3
  444. package/auth/auth.config.d.ts.map +0 -1
  445. package/auth/auth.module.d.ts +0 -6
  446. package/auth/auth.module.d.ts.map +0 -1
  447. package/auth/auth.service.d.ts.map +0 -1
  448. package/auth/formio-angular-auth.d.ts +0 -5
  449. package/auth/formio-angular-auth.metadata.json +0 -1
  450. package/auth/login/login.component.d.ts +0 -6
  451. package/auth/register/register.component.d.ts +0 -6
  452. package/auth/resetpass/resetpass.component.d.ts +0 -6
  453. package/bundles/formio-angular-auth.umd.js +0 -312
  454. package/bundles/formio-angular-auth.umd.js.map +0 -1
  455. package/bundles/formio-angular-grid.umd.js +0 -1004
  456. package/bundles/formio-angular-grid.umd.js.map +0 -1
  457. package/bundles/formio-angular-manager.umd.js +0 -1116
  458. package/bundles/formio-angular-manager.umd.js.map +0 -1
  459. package/bundles/formio-angular-resource.umd.js +0 -548
  460. package/bundles/formio-angular-resource.umd.js.map +0 -1
  461. package/bundles/formio-angular.umd.js +0 -1499
  462. package/bundles/formio-angular.umd.js.map +0 -1
  463. package/components/alerts/formio.alerts.component.d.ts +0 -9
  464. package/components/alerts/formio.alerts.component.ngfactory.d.ts.map +0 -1
  465. package/components/alerts/parse-html-content.pipe.d.ts +0 -5
  466. package/components/alerts/parse-html-content.pipe.ngfactory.d.ts.map +0 -1
  467. package/components/formbuilder/formbuilder.component.d.ts.map +0 -1
  468. package/components/formbuilder/formbuilder.component.ngfactory.d.ts.map +0 -1
  469. package/components/formio/formio.component.ngfactory.d.ts.map +0 -1
  470. package/components/loader/formio.loader.component.d.ts +0 -4
  471. package/components/loader/formio.loader.component.d.ts.map +0 -1
  472. package/components/loader/formio.loader.component.ngfactory.d.ts.map +0 -1
  473. package/components/loader/formio.loader.component.scss.shim.ngstyle.d.ts.map +0 -1
  474. package/custom-component/custom-tags.service.d.ts +0 -5
  475. package/custom-component/custom-tags.service.d.ts.map +0 -1
  476. package/custom-component/custom-tags.service.ngfactory.d.ts.map +0 -1
  477. package/esm2015/FormioBaseComponent.js +0 -456
  478. package/esm2015/auth/auth.component.js +0 -9
  479. package/esm2015/auth/auth.config.js +0 -12
  480. package/esm2015/auth/auth.module.js +0 -34
  481. package/esm2015/auth/auth.service.js +0 -160
  482. package/esm2015/auth/login/login.component.js +0 -16
  483. package/esm2015/auth/register/register.component.js +0 -16
  484. package/esm2015/auth/resetpass/resetpass.component.js +0 -16
  485. package/esm2015/components/alerts/formio.alerts.component.js +0 -26
  486. package/esm2015/components/alerts/parse-html-content.pipe.js +0 -15
  487. package/esm2015/components/formbuilder/formbuilder.component.js +0 -185
  488. package/esm2015/components/formio/formio.component.js +0 -39
  489. package/esm2015/components/loader/formio.loader.component.js +0 -14
  490. package/esm2015/custom-component/custom-tags.service.js +0 -13
  491. package/esm2015/formio-angular.js +0 -7
  492. package/esm2015/formio.config.js +0 -11
  493. package/esm2015/formio.module.js +0 -42
  494. package/esm2015/grid/GridBodyComponent.js +0 -76
  495. package/esm2015/grid/GridFooterComponent.js +0 -26
  496. package/esm2015/grid/GridHeaderComponent.js +0 -25
  497. package/esm2015/grid/form/FormGridBody.component.js +0 -16
  498. package/esm2015/grid/form/FormGridFooter.component.js +0 -24
  499. package/esm2015/grid/form/FormGridHeader.component.js +0 -24
  500. package/esm2015/grid/form/time-since.pipe.js +0 -33
  501. package/esm2015/grid/formio-angular-grid.js +0 -6
  502. package/esm2015/grid/grid.component.js +0 -211
  503. package/esm2015/grid/grid.module.js +0 -61
  504. package/esm2015/grid/grid.service.js +0 -16
  505. package/esm2015/grid/submission/SubmissionGridBody.component.js +0 -40
  506. package/esm2015/grid/submission/SubmissionGridFooter.component.js +0 -21
  507. package/esm2015/grid/submission/SubmissionGridHeader.component.js +0 -58
  508. package/esm2015/manager/create/create.component.js +0 -13
  509. package/esm2015/manager/delete/delete.component.js +0 -42
  510. package/esm2015/manager/edit/edit.component.js +0 -109
  511. package/esm2015/manager/form/form.component.js +0 -73
  512. package/esm2015/manager/form-manager.config.js +0 -12
  513. package/esm2015/manager/form-manager.module.js +0 -56
  514. package/esm2015/manager/form-manager.service.js +0 -180
  515. package/esm2015/manager/index/index.component.js +0 -86
  516. package/esm2015/manager/submission/delete/delete.component.js +0 -32
  517. package/esm2015/manager/submission/edit/edit.component.js +0 -24
  518. package/esm2015/manager/submission/index/index.component.js +0 -24
  519. package/esm2015/manager/submission/submission/submission.component.js +0 -27
  520. package/esm2015/manager/submission/view/view.component.js +0 -16
  521. package/esm2015/manager/view/view.component.js +0 -45
  522. package/esm2015/resource/create/create.component.js +0 -40
  523. package/esm2015/resource/delete/delete.component.js +0 -29
  524. package/esm2015/resource/edit/edit.component.js +0 -34
  525. package/esm2015/resource/index/index.component.js +0 -65
  526. package/esm2015/resource/resource.component.js +0 -48
  527. package/esm2015/resource/resource.config.js +0 -12
  528. package/esm2015/resource/resource.module.js +0 -44
  529. package/esm2015/resource/resource.service.js +0 -187
  530. package/esm2015/resource/resources.service.js +0 -22
  531. package/esm2015/resource/view/view.component.js +0 -19
  532. package/fesm2015/formio-angular-auth.js.map +0 -1
  533. package/fesm2015/formio-angular-grid.js +0 -624
  534. package/fesm2015/formio-angular-grid.js.map +0 -1
  535. package/fesm2015/formio-angular-manager.js +0 -750
  536. package/fesm2015/formio-angular-manager.js.map +0 -1
  537. package/fesm2015/formio-angular-resource.js +0 -507
  538. package/fesm2015/formio-angular-resource.js.map +0 -1
  539. package/fesm2015/formio-angular.js +0 -1073
  540. package/fesm2015/formio-angular.js.map +0 -1
  541. package/formio-angular.d.ts +0 -7
  542. package/formio-angular.d.ts.map +0 -1
  543. package/formio-angular.metadata.json +0 -1
  544. package/formio.config.d.ts +0 -7
  545. package/formio.config.d.ts.map +0 -1
  546. package/formio.config.ngfactory.d.ts.map +0 -1
  547. package/formio.module.d.ts +0 -3
  548. package/formio.module.ngfactory.d.ts.map +0 -1
  549. package/grid/GridBodyComponent.d.ts.map +0 -1
  550. package/grid/GridBodyComponent.ngfactory.d.ts.map +0 -1
  551. package/grid/GridFooterComponent.d.ts.map +0 -1
  552. package/grid/GridFooterComponent.ngfactory.d.ts.map +0 -1
  553. package/grid/GridHeaderComponent.d.ts.map +0 -1
  554. package/grid/GridHeaderComponent.ngfactory.d.ts.map +0 -1
  555. package/grid/form/FormGridBody.component.d.ts +0 -6
  556. package/grid/form/FormGridBody.component.ngfactory.d.ts.map +0 -1
  557. package/grid/form/FormGridBody.component.scss.shim.ngstyle.d.ts.map +0 -1
  558. package/grid/form/FormGridFooter.component.d.ts +0 -7
  559. package/grid/form/FormGridFooter.component.ngfactory.d.ts.map +0 -1
  560. package/grid/form/FormGridHeader.component.ngfactory.d.ts.map +0 -1
  561. package/grid/form/time-since.pipe.d.ts +0 -5
  562. package/grid/form/time-since.pipe.ngfactory.d.ts.map +0 -1
  563. package/grid/formio-angular-grid.d.ts +0 -6
  564. package/grid/formio-angular-grid.metadata.json +0 -1
  565. package/grid/grid.component.d.ts.map +0 -1
  566. package/grid/grid.component.ngfactory.d.ts.map +0 -1
  567. package/grid/grid.component.scss.shim.ngstyle.d.ts.map +0 -1
  568. package/grid/grid.footer.scss.ngstyle.d.ts.map +0 -1
  569. package/grid/grid.module.d.ts +0 -3
  570. package/grid/grid.module.ngfactory.d.ts.map +0 -1
  571. package/grid/grid.service.d.ts +0 -7
  572. package/grid/grid.service.d.ts.map +0 -1
  573. package/grid/grid.service.ngfactory.d.ts.map +0 -1
  574. package/grid/submission/SubmissionGridBody.component.ngfactory.d.ts.map +0 -1
  575. package/grid/submission/SubmissionGridFooter.component.d.ts +0 -7
  576. package/grid/submission/SubmissionGridFooter.component.ngfactory.d.ts.map +0 -1
  577. package/grid/submission/SubmissionGridHeader.component.d.ts.map +0 -1
  578. package/grid/submission/SubmissionGridHeader.component.ngfactory.d.ts.map +0 -1
  579. package/manager/create/create.component.d.ts +0 -6
  580. package/manager/delete/delete.component.d.ts.map +0 -1
  581. package/manager/edit/edit.component.d.ts.map +0 -1
  582. package/manager/form/form.component.d.ts.map +0 -1
  583. package/manager/form-manager.config.d.ts.map +0 -1
  584. package/manager/form-manager.module.d.ts +0 -6
  585. package/manager/form-manager.module.d.ts.map +0 -1
  586. package/manager/form-manager.service.d.ts.map +0 -1
  587. package/manager/formio-angular-manager.d.ts +0 -5
  588. package/manager/formio-angular-manager.metadata.json +0 -1
  589. package/manager/index/index.component.d.ts.map +0 -1
  590. package/manager/submission/view/view.component.d.ts +0 -6
  591. package/manager/view/view.component.d.ts.map +0 -1
  592. package/resource/create/create.component.d.ts.map +0 -1
  593. package/resource/edit/edit.component.d.ts.map +0 -1
  594. package/resource/formio-angular-resource.d.ts +0 -5
  595. package/resource/formio-angular-resource.metadata.json +0 -1
  596. package/resource/index/index.component.d.ts.map +0 -1
  597. package/resource/resource.config.d.ts.map +0 -1
  598. package/resource/resource.module.d.ts +0 -6
  599. package/resource/resource.module.d.ts.map +0 -1
  600. package/resource/resource.service.d.ts.map +0 -1
  601. package/resource/resources.service.d.ts.map +0 -1
  602. package/resource/view/view.component.d.ts +0 -8
  603. package/resource/view/view.component.d.ts.map +0 -1
@@ -0,0 +1,1648 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('formiojs'), require('lodash/intersection'), require('@formio/angular'), require('@formio/angular/auth'), require('@formio/angular/grid'), require('lodash'), require('@angular/router'), require('@angular/common'), require('@angular/forms'), require('ngx-bootstrap/modal'), require('ngx-bootstrap/pagination')) :
3
+ typeof define === 'function' && define.amd ? define('@formio/angular/manager', ['exports', '@angular/core', 'formiojs', 'lodash/intersection', '@formio/angular', '@formio/angular/auth', '@formio/angular/grid', 'lodash', '@angular/router', '@angular/common', '@angular/forms', 'ngx-bootstrap/modal', 'ngx-bootstrap/pagination'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.formio = global.formio || {}, global.formio.angular = global.formio.angular || {}, global.formio.angular.manager = {}), global.ng.core, global.formiojs, global._intersection, global.formio.angular, global.formio.angular.auth, global.formio.angular.grid, global._, global.ng.router, global.ng.common, global.ng.forms, global["ngx-bootstrap/modal"], global["ngx-bootstrap/pagination"]));
5
+ })(this, (function (exports, i0, formiojs, _intersection, i3, i3$1, i4, _, i2, i6, i5, i5$1, i2$1) { 'use strict';
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n["default"] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
+ var _intersection__default = /*#__PURE__*/_interopDefaultLegacy(_intersection);
29
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
30
+ var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
31
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
+ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
33
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
34
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
35
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
36
+ var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
37
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
38
+
39
+ var FormManagerConfig = /** @class */ (function () {
40
+ function FormManagerConfig() {
41
+ this.tag = '';
42
+ this.includeSearch = false;
43
+ this.saveDraft = false;
44
+ }
45
+ return FormManagerConfig;
46
+ }());
47
+ FormManagerConfig.ɵfac = function FormManagerConfig_Factory(t) { return new (t || FormManagerConfig)(); };
48
+ FormManagerConfig.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: FormManagerConfig, factory: FormManagerConfig.ɵfac });
49
+ (function () {
50
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormManagerConfig, [{
51
+ type: i0.Injectable
52
+ }], null, null);
53
+ })();
54
+
55
+ var FormManagerService = /** @class */ (function () {
56
+ function FormManagerService(appConfig, config, auth) {
57
+ var _this = this;
58
+ this.appConfig = appConfig;
59
+ this.config = config;
60
+ this.auth = auth;
61
+ this.form = null;
62
+ this.formSrc = '';
63
+ this.perms = { delete: false, edit: false };
64
+ if (this.appConfig && this.appConfig.appUrl) {
65
+ formiojs.Formio.setBaseUrl(this.appConfig.apiUrl);
66
+ formiojs.Formio.setProjectUrl(this.appConfig.appUrl);
67
+ }
68
+ else {
69
+ console.error('You must provide an AppConfig within your application!');
70
+ }
71
+ this.allAccessMap = {
72
+ 'update_all': 'formEdit',
73
+ 'delete_all': 'formDelete'
74
+ };
75
+ this.ownAccessMap = {
76
+ 'update_own': 'formEdit',
77
+ 'delete_own': 'formDelete'
78
+ };
79
+ this.actionAllowed = function (action) { return _this.isActionAllowed(action); };
80
+ this.reset();
81
+ }
82
+ FormManagerService.prototype.isActionAllowed = function (action) {
83
+ return this.access[action];
84
+ };
85
+ FormManagerService.prototype.setAccess = function () {
86
+ var _this = this;
87
+ this.access = {
88
+ formCreate: true,
89
+ formView: true,
90
+ formSubmission: true,
91
+ formEdit: true,
92
+ formPermission: true,
93
+ formDelete: true,
94
+ projectSettings: true,
95
+ userManagement: true
96
+ };
97
+ if (this.auth) {
98
+ this.access = {
99
+ formCreate: false,
100
+ formView: false,
101
+ formSubmission: false,
102
+ formEdit: false,
103
+ formPermission: false,
104
+ formDelete: false,
105
+ projectSettings: false,
106
+ userManagement: false
107
+ };
108
+ this.ready = this.auth.ready.then(function () {
109
+ var administrator = _this.auth.roles["administrator"];
110
+ var formbuilder = _this.auth.roles["formbuilder"];
111
+ var formadmin = _this.auth.roles["formadmin"];
112
+ if (_this.auth.user && _this.auth.user.roles) {
113
+ _this.auth.user.roles.forEach(function (roleId) {
114
+ if (administrator._id === roleId) {
115
+ _this.access.formCreate = true;
116
+ _this.access.formView = true;
117
+ _this.access.formSubmission = true;
118
+ _this.access.formEdit = true;
119
+ _this.access.formPermission = true;
120
+ _this.access.formDelete = true;
121
+ _this.access.projectSettings = true;
122
+ _this.access.userManagement = true;
123
+ }
124
+ else {
125
+ if (formadmin._id === roleId) {
126
+ _this.access.formCreate = _this.auth.formAccess.create_all.includes(roleId);
127
+ _this.access.formEdit = _this.auth.formAccess.update_all.includes(roleId);
128
+ _this.access.formPermission = _this.auth.formAccess.update_all.includes(roleId);
129
+ _this.access.formDelete = _this.auth.formAccess.delete_all.includes(roleId);
130
+ _this.access.formView = _this.auth.formAccess.read_all.includes(roleId);
131
+ _this.access.formSubmission = _this.auth.formAccess.read_all.includes(roleId);
132
+ }
133
+ if (formbuilder._id === roleId) {
134
+ _this.access.formCreate = _this.auth.formAccess.create_all.includes(roleId);
135
+ _this.access.formEdit = _this.auth.formAccess.update_all.includes(roleId);
136
+ _this.access.formPermission = _this.auth.formAccess.update_all.includes(roleId);
137
+ _this.access.formDelete = _this.auth.formAccess.delete_all.includes(roleId);
138
+ _this.access.formView = _this.auth.formAccess.read_all.includes(roleId);
139
+ }
140
+ }
141
+ });
142
+ }
143
+ });
144
+ }
145
+ else {
146
+ this.ready = Promise.resolve(false);
147
+ }
148
+ };
149
+ FormManagerService.prototype.reset = function (route) {
150
+ var _this = this;
151
+ if (route) {
152
+ route.params.subscribe(function (params) {
153
+ if (params.id) {
154
+ _this.formio = new formiojs.Formio(_this.formio.formsUrl + "/" + params.id);
155
+ }
156
+ else {
157
+ _this.reset();
158
+ }
159
+ });
160
+ }
161
+ else {
162
+ this.formio = new formiojs.Formio(this.appConfig.appUrl);
163
+ this.setAccess();
164
+ }
165
+ };
166
+ FormManagerService.prototype.hasAccess = function (roles) {
167
+ if (!this.auth.user) {
168
+ return false;
169
+ }
170
+ return !!_intersection__default["default"](roles, this.auth.user.roles).length;
171
+ };
172
+ FormManagerService.prototype.setForm = function (form) {
173
+ var _this = this;
174
+ this.form = form;
175
+ this.formSrc = this.appConfig.appUrl + '/' + form.path;
176
+ if (form.access) {
177
+ // Check if they have access here.
178
+ form.access.forEach(function (access) {
179
+ // Check for all access.
180
+ if (_this.allAccessMap[access.type] && !_this.access[_this.allAccessMap[access.type]]) {
181
+ _this.access[_this.allAccessMap[access.type]] = _this.hasAccess(access.roles);
182
+ }
183
+ // Check for own access.
184
+ if (_this.auth && _this.auth.user &&
185
+ (form._id === _this.auth.user._id) &&
186
+ _this.ownAccessMap[access.type] &&
187
+ !_this.access[_this.ownAccessMap[access.type]]) {
188
+ _this.access[_this.ownAccessMap[access.type]] = _this.hasAccess(access.roles);
189
+ }
190
+ });
191
+ }
192
+ return form;
193
+ };
194
+ FormManagerService.prototype.loadForm = function () {
195
+ var _this = this;
196
+ this.form = null;
197
+ this.formReady = this.formio.loadForm().then(function (form) { return _this.setForm(form); });
198
+ return this.formReady;
199
+ };
200
+ FormManagerService.prototype.setSubmission = function (route) {
201
+ var _this = this;
202
+ return new Promise(function (resolve) {
203
+ route.params.subscribe(function (params) {
204
+ _this.formio = new formiojs.Formio(_this.formio.submissionsUrl + "/" + params.id);
205
+ resolve(_this.formio);
206
+ });
207
+ });
208
+ };
209
+ FormManagerService.prototype.submissionLoaded = function (submission) {
210
+ var _this = this;
211
+ this.auth.ready.then(function () {
212
+ _this.formio.userPermissions(_this.auth.user, _this.form, submission).then(function (perms) {
213
+ _this.perms.delete = perms.delete;
214
+ _this.perms.edit = perms.edit;
215
+ });
216
+ });
217
+ };
218
+ FormManagerService.prototype.loadForms = function () {
219
+ return this.formio.loadForms({ params: {
220
+ tags: this.config.tag
221
+ } });
222
+ };
223
+ FormManagerService.prototype.createForm = function (form) {
224
+ return this.formio.createform(form);
225
+ };
226
+ return FormManagerService;
227
+ }());
228
+ FormManagerService.ɵfac = function FormManagerService_Factory(t) { return new (t || FormManagerService)(i0__namespace.ɵɵinject(i3__namespace.FormioAppConfig), i0__namespace.ɵɵinject(FormManagerConfig), i0__namespace.ɵɵinject(i3__namespace$1.FormioAuthService)); };
229
+ FormManagerService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: FormManagerService, factory: FormManagerService.ɵfac });
230
+ (function () {
231
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormManagerService, [{
232
+ type: i0.Injectable
233
+ }], function () { return [{ type: i3__namespace.FormioAppConfig }, { type: FormManagerConfig }, { type: i3__namespace$1.FormioAuthService }]; }, null);
234
+ })();
235
+
236
+ function FormManagerIndexComponent_div_0_span_2_Template(rf, ctx) {
237
+ if (rf & 1) {
238
+ var _r4_1 = i0__namespace.ɵɵgetCurrentView();
239
+ i0__namespace.ɵɵelementStart(0, "span", 5);
240
+ i0__namespace.ɵɵlistener("click", function FormManagerIndexComponent_div_0_span_2_Template_span_click_0_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(2); return ctx_r3.clearSearch(); });
241
+ i0__namespace.ɵɵelement(1, "span", 6);
242
+ i0__namespace.ɵɵelementEnd();
243
+ }
244
+ }
245
+ function FormManagerIndexComponent_div_0_Template(rf, ctx) {
246
+ if (rf & 1) {
247
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
248
+ i0__namespace.ɵɵelementStart(0, "div", 2);
249
+ i0__namespace.ɵɵelementStart(1, "input", 3);
250
+ i0__namespace.ɵɵlistener("keyup", function FormManagerIndexComponent_div_0_Template_input_keyup_1_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.onSearch(); })("ngModelChange", function FormManagerIndexComponent_div_0_Template_input_ngModelChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.search = $event; });
251
+ i0__namespace.ɵɵelementEnd();
252
+ i0__namespace.ɵɵtemplate(2, FormManagerIndexComponent_div_0_span_2_Template, 2, 0, "span", 4);
253
+ i0__namespace.ɵɵelementEnd();
254
+ }
255
+ if (rf & 2) {
256
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
257
+ i0__namespace.ɵɵadvance(1);
258
+ i0__namespace.ɵɵproperty("ngModel", ctx_r0.search);
259
+ i0__namespace.ɵɵadvance(1);
260
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.search && ctx_r0.search !== "");
261
+ }
262
+ }
263
+ function FormManagerIndexComponent_formio_grid_1_Template(rf, ctx) {
264
+ if (rf & 1) {
265
+ var _r9_1 = i0__namespace.ɵɵgetCurrentView();
266
+ i0__namespace.ɵɵelementStart(0, "formio-grid", 7);
267
+ i0__namespace.ɵɵlistener("rowAction", function FormManagerIndexComponent_formio_grid_1_Template_formio_grid_rowAction_0_listener($event) { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.onAction($event); })("rowSelect", function FormManagerIndexComponent_formio_grid_1_Template_formio_grid_rowSelect_0_listener($event) { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.onSelect($event); })("createItem", function FormManagerIndexComponent_formio_grid_1_Template_formio_grid_createItem_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.onCreateItem(); });
268
+ i0__namespace.ɵɵelementEnd();
269
+ }
270
+ if (rf & 2) {
271
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
272
+ i0__namespace.ɵɵproperty("formio", ctx_r1.service.formio)("gridType", "form")("query", ctx_r1.gridQuery)("isActionAllowed", ctx_r1.service.actionAllowed);
273
+ }
274
+ }
275
+ var FormManagerIndexComponent = /** @class */ (function () {
276
+ function FormManagerIndexComponent(service, route, router, config) {
277
+ this.service = service;
278
+ this.route = route;
279
+ this.router = router;
280
+ this.config = config;
281
+ this.search = '';
282
+ this.gridQuery = { tags: this.config.tag, type: 'form', sort: 'title' };
283
+ this.onSearch = _.debounce(this.onSearch, 300);
284
+ }
285
+ FormManagerIndexComponent.prototype.loadGrid = function () {
286
+ var _this = this;
287
+ this.search = localStorage.getItem('searchInput');
288
+ this.gridQuery = JSON.parse(localStorage.getItem('query')) || this.gridQuery;
289
+ var currentPage = +localStorage.getItem('currentPage') || 0;
290
+ this.formGrid
291
+ .refreshGrid(this.gridQuery)
292
+ .then(function () { return _this.formGrid.setPage(currentPage - 1); });
293
+ };
294
+ FormManagerIndexComponent.prototype.ngOnInit = function () {
295
+ var _this = this;
296
+ this.gridQuery = { tags: this.config.tag, type: 'form', sort: 'title' };
297
+ this.service.reset();
298
+ this.service.ready.then(function () {
299
+ _this.loadGrid();
300
+ _this.formGrid.footer.pageChanged.subscribe(function (page) {
301
+ localStorage.setItem('currentPage', page.page);
302
+ });
303
+ });
304
+ };
305
+ FormManagerIndexComponent.prototype.onSearch = function (event) {
306
+ var searchInput = this.search;
307
+ if (searchInput.length > 0) {
308
+ this.gridQuery.skip = 0;
309
+ this.gridQuery.title__regex = '/' + searchInput + '/i';
310
+ this.gridQuery.title__regex = '/' + searchInput.trim() + '/i';
311
+ }
312
+ else {
313
+ delete this.gridQuery.title__regex;
314
+ }
315
+ localStorage.setItem('query', JSON.stringify(this.gridQuery));
316
+ localStorage.setItem('searchInput', this.search);
317
+ this.formGrid.pageChanged({ page: 1, itemPerPage: this.gridQuery.limit });
318
+ this.formGrid.refreshGrid(this.gridQuery);
319
+ };
320
+ FormManagerIndexComponent.prototype.clearSearch = function () {
321
+ this.gridQuery = { tags: this.config.tag, type: 'form', sort: 'title' };
322
+ localStorage.removeItem('query');
323
+ localStorage.removeItem('searchInput');
324
+ localStorage.removeItem('currentPage');
325
+ this.search = '';
326
+ this.formGrid.pageChanged({ page: 1 });
327
+ this.formGrid.query = {};
328
+ this.formGrid.refreshGrid({ tags: this.config.tag, type: 'form', sort: 'title' });
329
+ };
330
+ FormManagerIndexComponent.prototype.onAction = function (action) {
331
+ this.service.form = null; // Reset previous form data
332
+ this.router.navigate([action.row._id, action.action], { relativeTo: this.route });
333
+ };
334
+ FormManagerIndexComponent.prototype.onSelect = function (row) {
335
+ this.router.navigate([row._id], { relativeTo: this.route });
336
+ };
337
+ FormManagerIndexComponent.prototype.onCreateItem = function () {
338
+ this.router.navigate(['create'], { relativeTo: this.route });
339
+ };
340
+ return FormManagerIndexComponent;
341
+ }());
342
+ FormManagerIndexComponent.ɵfac = function FormManagerIndexComponent_Factory(t) { return new (t || FormManagerIndexComponent)(i0__namespace.ɵɵdirectiveInject(FormManagerService), i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i2__namespace.Router), i0__namespace.ɵɵdirectiveInject(FormManagerConfig)); };
343
+ FormManagerIndexComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormManagerIndexComponent, selectors: [["ng-component"]], viewQuery: function FormManagerIndexComponent_Query(rf, ctx) {
344
+ if (rf & 1) {
345
+ i0__namespace.ɵɵviewQuery(i4.FormioGridComponent, 5);
346
+ }
347
+ if (rf & 2) {
348
+ var _t = void 0;
349
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.formGrid = _t.first);
350
+ }
351
+ }, decls: 2, vars: 2, consts: [["role", "search", "class", "input-group mb-3", 4, "ngIf"], [3, "formio", "gridType", "query", "isActionAllowed", "rowAction", "rowSelect", "createItem", 4, "ngIf"], ["role", "search", 1, "input-group", "mb-3"], ["type", "text", "placeholder", "Search Forms", "aria-label", "Search Forms", "aria-describedby", "button-search", 1, "form-control", 3, "ngModel", "keyup", "ngModelChange"], ["class", "form-clear input-group-addon", 3, "click", 4, "ngIf"], [1, "form-clear", "input-group-addon", 3, "click"], [1, "fa", "fa-times"], [3, "formio", "gridType", "query", "isActionAllowed", "rowAction", "rowSelect", "createItem"]], template: function FormManagerIndexComponent_Template(rf, ctx) {
352
+ if (rf & 1) {
353
+ i0__namespace.ɵɵtemplate(0, FormManagerIndexComponent_div_0_Template, 3, 2, "div", 0);
354
+ i0__namespace.ɵɵtemplate(1, FormManagerIndexComponent_formio_grid_1_Template, 1, 4, "formio-grid", 1);
355
+ }
356
+ if (rf & 2) {
357
+ i0__namespace.ɵɵproperty("ngIf", ctx.config.includeSearch);
358
+ i0__namespace.ɵɵadvance(1);
359
+ i0__namespace.ɵɵproperty("ngIf", ctx.service.ready);
360
+ }
361
+ }, directives: [i6__namespace.NgIf, i5__namespace.DefaultValueAccessor, i5__namespace.NgControlStatus, i5__namespace.NgModel, i4__namespace.FormioGridComponent], styles: [".form-clear[_ngcontent-%COMP%]{background:#cecece;border-radius:50%;bottom:8px;color:#0000004d;cursor:pointer;display:flex;justify-content:center;align-items:center;padding-bottom:2px;height:24px;position:absolute;right:10px;top:6px;width:24px;z-index:10}.form-clear[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:16px;font-weight:500}"] });
362
+ (function () {
363
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormManagerIndexComponent, [{
364
+ type: i0.Component,
365
+ args: [{
366
+ templateUrl: './index.component.html',
367
+ styleUrls: ['./index.component.scss']
368
+ }]
369
+ }], function () { return [{ type: FormManagerService }, { type: i2__namespace.ActivatedRoute }, { type: i2__namespace.Router }, { type: FormManagerConfig }]; }, { formGrid: [{
370
+ type: i0.ViewChild,
371
+ args: [i4.FormioGridComponent, { static: false }]
372
+ }] });
373
+ })();
374
+
375
+ /*! *****************************************************************************
376
+ Copyright (c) Microsoft Corporation.
377
+
378
+ Permission to use, copy, modify, and/or distribute this software for any
379
+ purpose with or without fee is hereby granted.
380
+
381
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
382
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
383
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
384
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
385
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
386
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
387
+ PERFORMANCE OF THIS SOFTWARE.
388
+ ***************************************************************************** */
389
+ /* global Reflect, Promise */
390
+ var extendStatics = function (d, b) {
391
+ extendStatics = Object.setPrototypeOf ||
392
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
393
+ function (d, b) { for (var p in b)
394
+ if (Object.prototype.hasOwnProperty.call(b, p))
395
+ d[p] = b[p]; };
396
+ return extendStatics(d, b);
397
+ };
398
+ function __extends(d, b) {
399
+ if (typeof b !== "function" && b !== null)
400
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
401
+ extendStatics(d, b);
402
+ function __() { this.constructor = d; }
403
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
404
+ }
405
+ var __assign = function () {
406
+ __assign = Object.assign || function __assign(t) {
407
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
408
+ s = arguments[i];
409
+ for (var p in s)
410
+ if (Object.prototype.hasOwnProperty.call(s, p))
411
+ t[p] = s[p];
412
+ }
413
+ return t;
414
+ };
415
+ return __assign.apply(this, arguments);
416
+ };
417
+ function __rest(s, e) {
418
+ var t = {};
419
+ for (var p in s)
420
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
421
+ t[p] = s[p];
422
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
423
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
424
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
425
+ t[p[i]] = s[p[i]];
426
+ }
427
+ return t;
428
+ }
429
+ function __decorate(decorators, target, key, desc) {
430
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
431
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
432
+ r = Reflect.decorate(decorators, target, key, desc);
433
+ else
434
+ for (var i = decorators.length - 1; i >= 0; i--)
435
+ if (d = decorators[i])
436
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
437
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
438
+ }
439
+ function __param(paramIndex, decorator) {
440
+ return function (target, key) { decorator(target, key, paramIndex); };
441
+ }
442
+ function __metadata(metadataKey, metadataValue) {
443
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
444
+ return Reflect.metadata(metadataKey, metadataValue);
445
+ }
446
+ function __awaiter(thisArg, _arguments, P, generator) {
447
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
448
+ return new (P || (P = Promise))(function (resolve, reject) {
449
+ function fulfilled(value) { try {
450
+ step(generator.next(value));
451
+ }
452
+ catch (e) {
453
+ reject(e);
454
+ } }
455
+ function rejected(value) { try {
456
+ step(generator["throw"](value));
457
+ }
458
+ catch (e) {
459
+ reject(e);
460
+ } }
461
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
462
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
463
+ });
464
+ }
465
+ function __generator(thisArg, body) {
466
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
467
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
468
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
469
+ function verb(n) { return function (v) { return step([n, v]); }; }
470
+ function step(op) {
471
+ if (f)
472
+ throw new TypeError("Generator is already executing.");
473
+ while (_)
474
+ try {
475
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
476
+ return t;
477
+ if (y = 0, t)
478
+ op = [op[0] & 2, t.value];
479
+ switch (op[0]) {
480
+ case 0:
481
+ case 1:
482
+ t = op;
483
+ break;
484
+ case 4:
485
+ _.label++;
486
+ return { value: op[1], done: false };
487
+ case 5:
488
+ _.label++;
489
+ y = op[1];
490
+ op = [0];
491
+ continue;
492
+ case 7:
493
+ op = _.ops.pop();
494
+ _.trys.pop();
495
+ continue;
496
+ default:
497
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
498
+ _ = 0;
499
+ continue;
500
+ }
501
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
502
+ _.label = op[1];
503
+ break;
504
+ }
505
+ if (op[0] === 6 && _.label < t[1]) {
506
+ _.label = t[1];
507
+ t = op;
508
+ break;
509
+ }
510
+ if (t && _.label < t[2]) {
511
+ _.label = t[2];
512
+ _.ops.push(op);
513
+ break;
514
+ }
515
+ if (t[2])
516
+ _.ops.pop();
517
+ _.trys.pop();
518
+ continue;
519
+ }
520
+ op = body.call(thisArg, _);
521
+ }
522
+ catch (e) {
523
+ op = [6, e];
524
+ y = 0;
525
+ }
526
+ finally {
527
+ f = t = 0;
528
+ }
529
+ if (op[0] & 5)
530
+ throw op[1];
531
+ return { value: op[0] ? op[1] : void 0, done: true };
532
+ }
533
+ }
534
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
535
+ if (k2 === undefined)
536
+ k2 = k;
537
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
538
+ }) : (function (o, m, k, k2) {
539
+ if (k2 === undefined)
540
+ k2 = k;
541
+ o[k2] = m[k];
542
+ });
543
+ function __exportStar(m, o) {
544
+ for (var p in m)
545
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
546
+ __createBinding(o, m, p);
547
+ }
548
+ function __values(o) {
549
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
550
+ if (m)
551
+ return m.call(o);
552
+ if (o && typeof o.length === "number")
553
+ return {
554
+ next: function () {
555
+ if (o && i >= o.length)
556
+ o = void 0;
557
+ return { value: o && o[i++], done: !o };
558
+ }
559
+ };
560
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
561
+ }
562
+ function __read(o, n) {
563
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
564
+ if (!m)
565
+ return o;
566
+ var i = m.call(o), r, ar = [], e;
567
+ try {
568
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
569
+ ar.push(r.value);
570
+ }
571
+ catch (error) {
572
+ e = { error: error };
573
+ }
574
+ finally {
575
+ try {
576
+ if (r && !r.done && (m = i["return"]))
577
+ m.call(i);
578
+ }
579
+ finally {
580
+ if (e)
581
+ throw e.error;
582
+ }
583
+ }
584
+ return ar;
585
+ }
586
+ /** @deprecated */
587
+ function __spread() {
588
+ for (var ar = [], i = 0; i < arguments.length; i++)
589
+ ar = ar.concat(__read(arguments[i]));
590
+ return ar;
591
+ }
592
+ /** @deprecated */
593
+ function __spreadArrays() {
594
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
595
+ s += arguments[i].length;
596
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
597
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
598
+ r[k] = a[j];
599
+ return r;
600
+ }
601
+ function __spreadArray(to, from, pack) {
602
+ if (pack || arguments.length === 2)
603
+ for (var i = 0, l = from.length, ar; i < l; i++) {
604
+ if (ar || !(i in from)) {
605
+ if (!ar)
606
+ ar = Array.prototype.slice.call(from, 0, i);
607
+ ar[i] = from[i];
608
+ }
609
+ }
610
+ return to.concat(ar || Array.prototype.slice.call(from));
611
+ }
612
+ function __await(v) {
613
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
614
+ }
615
+ function __asyncGenerator(thisArg, _arguments, generator) {
616
+ if (!Symbol.asyncIterator)
617
+ throw new TypeError("Symbol.asyncIterator is not defined.");
618
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
619
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
620
+ function verb(n) { if (g[n])
621
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
622
+ function resume(n, v) { try {
623
+ step(g[n](v));
624
+ }
625
+ catch (e) {
626
+ settle(q[0][3], e);
627
+ } }
628
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
629
+ function fulfill(value) { resume("next", value); }
630
+ function reject(value) { resume("throw", value); }
631
+ function settle(f, v) { if (f(v), q.shift(), q.length)
632
+ resume(q[0][0], q[0][1]); }
633
+ }
634
+ function __asyncDelegator(o) {
635
+ var i, p;
636
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
637
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
638
+ }
639
+ function __asyncValues(o) {
640
+ if (!Symbol.asyncIterator)
641
+ throw new TypeError("Symbol.asyncIterator is not defined.");
642
+ var m = o[Symbol.asyncIterator], i;
643
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
644
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
645
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
646
+ }
647
+ function __makeTemplateObject(cooked, raw) {
648
+ if (Object.defineProperty) {
649
+ Object.defineProperty(cooked, "raw", { value: raw });
650
+ }
651
+ else {
652
+ cooked.raw = raw;
653
+ }
654
+ return cooked;
655
+ }
656
+ ;
657
+ var __setModuleDefault = Object.create ? (function (o, v) {
658
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
659
+ }) : function (o, v) {
660
+ o["default"] = v;
661
+ };
662
+ function __importStar(mod) {
663
+ if (mod && mod.__esModule)
664
+ return mod;
665
+ var result = {};
666
+ if (mod != null)
667
+ for (var k in mod)
668
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
669
+ __createBinding(result, mod, k);
670
+ __setModuleDefault(result, mod);
671
+ return result;
672
+ }
673
+ function __importDefault(mod) {
674
+ return (mod && mod.__esModule) ? mod : { default: mod };
675
+ }
676
+ function __classPrivateFieldGet(receiver, state, kind, f) {
677
+ if (kind === "a" && !f)
678
+ throw new TypeError("Private accessor was defined without a getter");
679
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
680
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
681
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
682
+ }
683
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
684
+ if (kind === "m")
685
+ throw new TypeError("Private method is not writable");
686
+ if (kind === "a" && !f)
687
+ throw new TypeError("Private accessor was defined without a setter");
688
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
689
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
690
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
691
+ }
692
+
693
+ var _c0$1 = ["title"];
694
+ var _c1 = ["type"];
695
+ function FormManagerEditComponent_div_0_Template(rf, ctx) {
696
+ if (rf & 1) {
697
+ i0__namespace.ɵɵelement(0, "div", 15);
698
+ }
699
+ }
700
+ function FormManagerEditComponent_form_builder_18_Template(rf, ctx) {
701
+ if (rf & 1) {
702
+ i0__namespace.ɵɵelement(0, "form-builder", 16, 17);
703
+ }
704
+ if (rf & 2) {
705
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
706
+ i0__namespace.ɵɵproperty("formbuilder", ctx_r3.config.builder)("form", ctx_r3.form);
707
+ }
708
+ }
709
+ var FormManagerEditComponent = /** @class */ (function () {
710
+ function FormManagerEditComponent(service, router, route, config, ref, alerts) {
711
+ this.service = service;
712
+ this.router = router;
713
+ this.route = route;
714
+ this.config = config;
715
+ this.ref = ref;
716
+ this.alerts = alerts;
717
+ this.form = { components: [] };
718
+ this.formReady = false;
719
+ this.loading = false;
720
+ this.editMode = false;
721
+ }
722
+ FormManagerEditComponent.prototype.initBuilder = function (editing) {
723
+ var _this = this;
724
+ if (editing) {
725
+ this.loading = true;
726
+ this.editMode = true;
727
+ return this.service.formReady.then(function () {
728
+ _this.form = _this.service.form;
729
+ _this.formTitle.nativeElement.value = _this.service.form.title;
730
+ _this.formType.nativeElement.value = _this.service.form.display || 'form';
731
+ _this.formReady = true;
732
+ _this.loading = false;
733
+ _this.ref.detectChanges();
734
+ return true;
735
+ }).catch(function (err) {
736
+ _this.alerts.setAlert({ type: 'danger', message: (err.message || err) });
737
+ _this.loading = false;
738
+ _this.ref.detectChanges();
739
+ _this.formReady = true;
740
+ });
741
+ }
742
+ else {
743
+ this.formReady = true;
744
+ return Promise.resolve(true);
745
+ }
746
+ };
747
+ FormManagerEditComponent.prototype.ngAfterViewInit = function () {
748
+ var _this = this;
749
+ this.route.url.subscribe(function (url) {
750
+ setTimeout(function () { return _this.initBuilder((url[0].path === 'edit')); }, 0);
751
+ });
752
+ };
753
+ FormManagerEditComponent.prototype.onDisplaySelect = function (event) {
754
+ this.builder.setDisplay(event.target.value);
755
+ };
756
+ FormManagerEditComponent.prototype.saveForm = function () {
757
+ var _this = this;
758
+ this.loading = true;
759
+ this.form = ___default["default"].cloneDeep(this.builder.formio.schema);
760
+ this.form.title = this.formTitle.nativeElement.value.trim();
761
+ this.form.display = this.formType.nativeElement.value;
762
+ if (this.config.tag) {
763
+ this.form.tags = this.form.tags || [];
764
+ this.form.tags.push(this.config.tag);
765
+ this.form.tags = ___default["default"].uniq(this.form.tags);
766
+ }
767
+ if (!this.form._id) {
768
+ this.form.name = ___default["default"].camelCase(this.form.title).toLowerCase();
769
+ this.form.path = this.form.name;
770
+ }
771
+ return this.service.formio.saveForm(this.form).then(function (form) {
772
+ _this.form = _this.service.setForm(form);
773
+ _this.loading = false;
774
+ return _this.form;
775
+ }).catch(function (err) {
776
+ _this.loading = false;
777
+ // Catch if a form is returned as an error. This is a conflict.
778
+ if (err._id && err.type) {
779
+ throw err;
780
+ }
781
+ _this.alerts.setAlert({ type: 'danger', message: (err.message || err) });
782
+ });
783
+ };
784
+ FormManagerEditComponent.prototype.onSave = function () {
785
+ var _this = this;
786
+ return this.saveForm().then(function (form) {
787
+ if (_this.editMode) {
788
+ _this.router.navigate(['../', 'view'], { relativeTo: _this.route });
789
+ }
790
+ else {
791
+ _this.router.navigate(['../', form._id, 'view'], { relativeTo: _this.route });
792
+ }
793
+ });
794
+ };
795
+ return FormManagerEditComponent;
796
+ }());
797
+ FormManagerEditComponent.ɵfac = function FormManagerEditComponent_Factory(t) { return new (t || FormManagerEditComponent)(i0__namespace.ɵɵdirectiveInject(FormManagerService), i0__namespace.ɵɵdirectiveInject(i2__namespace.Router), i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormManagerConfig), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i3__namespace.FormioAlerts)); };
798
+ FormManagerEditComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormManagerEditComponent, selectors: [["ng-component"]], viewQuery: function FormManagerEditComponent_Query(rf, ctx) {
799
+ if (rf & 1) {
800
+ i0__namespace.ɵɵviewQuery(i3.FormBuilderComponent, 5);
801
+ i0__namespace.ɵɵviewQuery(_c0$1, 5);
802
+ i0__namespace.ɵɵviewQuery(_c1, 5);
803
+ }
804
+ if (rf & 2) {
805
+ var _t = void 0;
806
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.builder = _t.first);
807
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.formTitle = _t.first);
808
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.formType = _t.first);
809
+ }
810
+ }, decls: 21, vars: 3, consts: [["class", "loader", 4, "ngIf"], [1, "form-group", "row"], [1, "col-sm-8"], ["type", "text", "id", "formTitle", "placeholder", "Enter a Title", 1, "form-control"], ["title", ""], [1, "col-sm-2"], ["id", "formSelect", 1, "form-control", 3, "change"], ["type", ""], ["value", "form"], ["value", "wizard"], ["value", "pdf"], [1, "btn", "btn-primary", "btn-block", 3, "click"], [3, "alerts"], [3, "formbuilder", "form", 4, "ngIf"], [1, "btn", "btn-primary", 2, "margin-top", "10px", 3, "click"], [1, "loader"], [3, "formbuilder", "form"], ["builder", ""]], template: function FormManagerEditComponent_Template(rf, ctx) {
811
+ if (rf & 1) {
812
+ i0__namespace.ɵɵtemplate(0, FormManagerEditComponent_div_0_Template, 1, 0, "div", 0);
813
+ i0__namespace.ɵɵelementStart(1, "div", 1);
814
+ i0__namespace.ɵɵelementStart(2, "div", 2);
815
+ i0__namespace.ɵɵelement(3, "input", 3, 4);
816
+ i0__namespace.ɵɵelementEnd();
817
+ i0__namespace.ɵɵelementStart(5, "div", 5);
818
+ i0__namespace.ɵɵelementStart(6, "select", 6, 7);
819
+ i0__namespace.ɵɵlistener("change", function FormManagerEditComponent_Template_select_change_6_listener($event) { return ctx.onDisplaySelect($event); });
820
+ i0__namespace.ɵɵelementStart(8, "option", 8);
821
+ i0__namespace.ɵɵtext(9, "Form");
822
+ i0__namespace.ɵɵelementEnd();
823
+ i0__namespace.ɵɵelementStart(10, "option", 9);
824
+ i0__namespace.ɵɵtext(11, "Wizard");
825
+ i0__namespace.ɵɵelementEnd();
826
+ i0__namespace.ɵɵelementStart(12, "option", 10);
827
+ i0__namespace.ɵɵtext(13, "PDF");
828
+ i0__namespace.ɵɵelementEnd();
829
+ i0__namespace.ɵɵelementEnd();
830
+ i0__namespace.ɵɵelementEnd();
831
+ i0__namespace.ɵɵelementStart(14, "div", 5);
832
+ i0__namespace.ɵɵelementStart(15, "button", 11);
833
+ i0__namespace.ɵɵlistener("click", function FormManagerEditComponent_Template_button_click_15_listener() { return ctx.onSave(); });
834
+ i0__namespace.ɵɵtext(16, "Save Form");
835
+ i0__namespace.ɵɵelementEnd();
836
+ i0__namespace.ɵɵelementEnd();
837
+ i0__namespace.ɵɵelementEnd();
838
+ i0__namespace.ɵɵelement(17, "formio-alerts", 12);
839
+ i0__namespace.ɵɵtemplate(18, FormManagerEditComponent_form_builder_18_Template, 2, 2, "form-builder", 13);
840
+ i0__namespace.ɵɵelementStart(19, "button", 14);
841
+ i0__namespace.ɵɵlistener("click", function FormManagerEditComponent_Template_button_click_19_listener() { return ctx.onSave(); });
842
+ i0__namespace.ɵɵtext(20, "Save Form");
843
+ i0__namespace.ɵɵelementEnd();
844
+ }
845
+ if (rf & 2) {
846
+ i0__namespace.ɵɵproperty("ngIf", ctx.loading);
847
+ i0__namespace.ɵɵadvance(17);
848
+ i0__namespace.ɵɵproperty("alerts", ctx.alerts);
849
+ i0__namespace.ɵɵadvance(1);
850
+ i0__namespace.ɵɵproperty("ngIf", ctx.formReady);
851
+ }
852
+ }, directives: [i6__namespace.NgIf, i5__namespace.NgSelectOption, i5__namespace.ɵNgSelectMultipleOption, i3__namespace.FormioAlertsComponent, i3__namespace.FormBuilderComponent], encapsulation: 2 });
853
+ (function () {
854
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormManagerEditComponent, [{
855
+ type: i0.Component,
856
+ args: [{
857
+ templateUrl: './edit.component.html'
858
+ }]
859
+ }], function () { return [{ type: FormManagerService }, { type: i2__namespace.Router }, { type: i2__namespace.ActivatedRoute }, { type: FormManagerConfig }, { type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.FormioAlerts }]; }, { builder: [{
860
+ type: i0.ViewChild,
861
+ args: [i3.FormBuilderComponent, { static: false }]
862
+ }], formTitle: [{
863
+ type: i0.ViewChild,
864
+ args: ['title', { static: false }]
865
+ }], formType: [{
866
+ type: i0.ViewChild,
867
+ args: ['type', { static: false }]
868
+ }] });
869
+ })();
870
+
871
+ function FormManagerCreateComponent_div_0_Template(rf, ctx) {
872
+ if (rf & 1) {
873
+ i0__namespace.ɵɵelement(0, "div", 15);
874
+ }
875
+ }
876
+ function FormManagerCreateComponent_form_builder_18_Template(rf, ctx) {
877
+ if (rf & 1) {
878
+ i0__namespace.ɵɵelement(0, "form-builder", 16, 17);
879
+ }
880
+ if (rf & 2) {
881
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
882
+ i0__namespace.ɵɵproperty("formbuilder", ctx_r3.config.builder)("form", ctx_r3.form);
883
+ }
884
+ }
885
+ var FormManagerCreateComponent = /** @class */ (function (_super) {
886
+ __extends(FormManagerCreateComponent, _super);
887
+ function FormManagerCreateComponent() {
888
+ return _super !== null && _super.apply(this, arguments) || this;
889
+ }
890
+ FormManagerCreateComponent.prototype.ngOnInit = function () {
891
+ this.service.reset();
892
+ };
893
+ return FormManagerCreateComponent;
894
+ }(FormManagerEditComponent));
895
+ FormManagerCreateComponent.ɵfac = /*@__PURE__*/ function () { var ɵFormManagerCreateComponent_BaseFactory; return function FormManagerCreateComponent_Factory(t) { return (ɵFormManagerCreateComponent_BaseFactory || (ɵFormManagerCreateComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(FormManagerCreateComponent)))(t || FormManagerCreateComponent); }; }();
896
+ FormManagerCreateComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormManagerCreateComponent, selectors: [["ng-component"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 21, vars: 3, consts: [["class", "loader", 4, "ngIf"], [1, "form-group", "row"], [1, "col-sm-8"], ["type", "text", "id", "formTitle", "placeholder", "Enter a Title", 1, "form-control"], ["title", ""], [1, "col-sm-2"], ["id", "formSelect", 1, "form-control", 3, "change"], ["type", ""], ["value", "form"], ["value", "wizard"], ["value", "pdf"], [1, "btn", "btn-primary", "btn-block", 3, "click"], [3, "alerts"], [3, "formbuilder", "form", 4, "ngIf"], [1, "btn", "btn-primary", 2, "margin-top", "10px", 3, "click"], [1, "loader"], [3, "formbuilder", "form"], ["builder", ""]], template: function FormManagerCreateComponent_Template(rf, ctx) {
897
+ if (rf & 1) {
898
+ i0__namespace.ɵɵtemplate(0, FormManagerCreateComponent_div_0_Template, 1, 0, "div", 0);
899
+ i0__namespace.ɵɵelementStart(1, "div", 1);
900
+ i0__namespace.ɵɵelementStart(2, "div", 2);
901
+ i0__namespace.ɵɵelement(3, "input", 3, 4);
902
+ i0__namespace.ɵɵelementEnd();
903
+ i0__namespace.ɵɵelementStart(5, "div", 5);
904
+ i0__namespace.ɵɵelementStart(6, "select", 6, 7);
905
+ i0__namespace.ɵɵlistener("change", function FormManagerCreateComponent_Template_select_change_6_listener($event) { return ctx.onDisplaySelect($event); });
906
+ i0__namespace.ɵɵelementStart(8, "option", 8);
907
+ i0__namespace.ɵɵtext(9, "Form");
908
+ i0__namespace.ɵɵelementEnd();
909
+ i0__namespace.ɵɵelementStart(10, "option", 9);
910
+ i0__namespace.ɵɵtext(11, "Wizard");
911
+ i0__namespace.ɵɵelementEnd();
912
+ i0__namespace.ɵɵelementStart(12, "option", 10);
913
+ i0__namespace.ɵɵtext(13, "PDF");
914
+ i0__namespace.ɵɵelementEnd();
915
+ i0__namespace.ɵɵelementEnd();
916
+ i0__namespace.ɵɵelementEnd();
917
+ i0__namespace.ɵɵelementStart(14, "div", 5);
918
+ i0__namespace.ɵɵelementStart(15, "button", 11);
919
+ i0__namespace.ɵɵlistener("click", function FormManagerCreateComponent_Template_button_click_15_listener() { return ctx.onSave(); });
920
+ i0__namespace.ɵɵtext(16, "Save Form");
921
+ i0__namespace.ɵɵelementEnd();
922
+ i0__namespace.ɵɵelementEnd();
923
+ i0__namespace.ɵɵelementEnd();
924
+ i0__namespace.ɵɵelement(17, "formio-alerts", 12);
925
+ i0__namespace.ɵɵtemplate(18, FormManagerCreateComponent_form_builder_18_Template, 2, 2, "form-builder", 13);
926
+ i0__namespace.ɵɵelementStart(19, "button", 14);
927
+ i0__namespace.ɵɵlistener("click", function FormManagerCreateComponent_Template_button_click_19_listener() { return ctx.onSave(); });
928
+ i0__namespace.ɵɵtext(20, "Save Form");
929
+ i0__namespace.ɵɵelementEnd();
930
+ }
931
+ if (rf & 2) {
932
+ i0__namespace.ɵɵproperty("ngIf", ctx.loading);
933
+ i0__namespace.ɵɵadvance(17);
934
+ i0__namespace.ɵɵproperty("alerts", ctx.alerts);
935
+ i0__namespace.ɵɵadvance(1);
936
+ i0__namespace.ɵɵproperty("ngIf", ctx.formReady);
937
+ }
938
+ }, directives: [i6__namespace.NgIf, i5__namespace.NgSelectOption, i5__namespace.ɵNgSelectMultipleOption, i3__namespace.FormioAlertsComponent, i3__namespace.FormBuilderComponent], encapsulation: 2 });
939
+ (function () {
940
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormManagerCreateComponent, [{
941
+ type: i0.Component,
942
+ args: [{
943
+ templateUrl: '../edit/edit.component.html'
944
+ }]
945
+ }], null, null);
946
+ })();
947
+
948
+ function FormManagerFormComponent_button_0_Template(rf, ctx) {
949
+ if (rf & 1) {
950
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
951
+ i0__namespace.ɵɵelementStart(0, "button", 12);
952
+ i0__namespace.ɵɵlistener("click", function FormManagerFormComponent_button_0_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); var _r3 = i0__namespace.ɵɵreference(17); return ctx_r5.openEmbed(_r3); });
953
+ i0__namespace.ɵɵelement(1, "i", 13);
954
+ i0__namespace.ɵɵtext(2, " Share");
955
+ i0__namespace.ɵɵelementEnd();
956
+ }
957
+ }
958
+ function FormManagerFormComponent_li_13_Template(rf, ctx) {
959
+ if (rf & 1) {
960
+ i0__namespace.ɵɵelementStart(0, "li", 5);
961
+ i0__namespace.ɵɵelementStart(1, "a", 14);
962
+ i0__namespace.ɵɵelement(2, "i", 15);
963
+ i0__namespace.ɵɵtext(3, " Edit Form");
964
+ i0__namespace.ɵɵelementEnd();
965
+ i0__namespace.ɵɵelementEnd();
966
+ }
967
+ }
968
+ function FormManagerFormComponent_li_14_Template(rf, ctx) {
969
+ if (rf & 1) {
970
+ i0__namespace.ɵɵelementStart(0, "li", 5);
971
+ i0__namespace.ɵɵelementStart(1, "a", 16);
972
+ i0__namespace.ɵɵelement(2, "span", 17);
973
+ i0__namespace.ɵɵelementEnd();
974
+ i0__namespace.ɵɵelementEnd();
975
+ }
976
+ }
977
+ function FormManagerFormComponent_ng_template_16_pre_16_Template(rf, ctx) {
978
+ if (rf & 1) {
979
+ i0__namespace.ɵɵelementStart(0, "pre");
980
+ i0__namespace.ɵɵelement(1, "textarea", 31);
981
+ i0__namespace.ɵɵelementEnd();
982
+ }
983
+ if (rf & 2) {
984
+ var ctx_r7 = i0__namespace.ɵɵnextContext(2);
985
+ i0__namespace.ɵɵadvance(1);
986
+ i0__namespace.ɵɵproperty("ngModel", ctx_r7.embedCode);
987
+ }
988
+ }
989
+ function FormManagerFormComponent_ng_template_16_input_17_Template(rf, ctx) {
990
+ if (rf & 1) {
991
+ i0__namespace.ɵɵelement(0, "input", 32);
992
+ }
993
+ if (rf & 2) {
994
+ var ctx_r8 = i0__namespace.ɵɵnextContext(2);
995
+ i0__namespace.ɵɵproperty("ngModel", ctx_r8.shareUrl);
996
+ }
997
+ }
998
+ var _c0 = function (a0) { return { "active": a0 }; };
999
+ function FormManagerFormComponent_ng_template_16_Template(rf, ctx) {
1000
+ if (rf & 1) {
1001
+ var _r10_1 = i0__namespace.ɵɵgetCurrentView();
1002
+ i0__namespace.ɵɵelementStart(0, "div", 18);
1003
+ i0__namespace.ɵɵelementStart(1, "h4", 19);
1004
+ i0__namespace.ɵɵtext(2, "Share or Embed this form");
1005
+ i0__namespace.ɵɵelementEnd();
1006
+ i0__namespace.ɵɵelementStart(3, "button", 20);
1007
+ i0__namespace.ɵɵlistener("click", function FormManagerFormComponent_ng_template_16_Template_button_click_3_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(); return ctx_r9.modalRef.hide(); });
1008
+ i0__namespace.ɵɵelementStart(4, "span", 21);
1009
+ i0__namespace.ɵɵtext(5, "\u00D7");
1010
+ i0__namespace.ɵɵelementEnd();
1011
+ i0__namespace.ɵɵelementEnd();
1012
+ i0__namespace.ɵɵelementEnd();
1013
+ i0__namespace.ɵɵelementStart(6, "div", 22);
1014
+ i0__namespace.ɵɵelementStart(7, "ul", 23);
1015
+ i0__namespace.ɵɵelementStart(8, "li", 2);
1016
+ i0__namespace.ɵɵelementStart(9, "a", 24);
1017
+ i0__namespace.ɵɵlistener("click", function FormManagerFormComponent_ng_template_16_Template_a_click_9_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.choices("isUrl"); });
1018
+ i0__namespace.ɵɵelement(10, "i", 25);
1019
+ i0__namespace.ɵɵtext(11, " URL");
1020
+ i0__namespace.ɵɵelementEnd();
1021
+ i0__namespace.ɵɵelementEnd();
1022
+ i0__namespace.ɵɵelementStart(12, "li", 2);
1023
+ i0__namespace.ɵɵelementStart(13, "a", 24);
1024
+ i0__namespace.ɵɵlistener("click", function FormManagerFormComponent_ng_template_16_Template_a_click_13_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r12 = i0__namespace.ɵɵnextContext(); return ctx_r12.choices("isEmbed"); });
1025
+ i0__namespace.ɵɵelement(14, "i", 26);
1026
+ i0__namespace.ɵɵtext(15, " Embed");
1027
+ i0__namespace.ɵɵelementEnd();
1028
+ i0__namespace.ɵɵelementEnd();
1029
+ i0__namespace.ɵɵelementEnd();
1030
+ i0__namespace.ɵɵtemplate(16, FormManagerFormComponent_ng_template_16_pre_16_Template, 2, 1, "pre", 27);
1031
+ i0__namespace.ɵɵtemplate(17, FormManagerFormComponent_ng_template_16_input_17_Template, 1, 1, "input", 28);
1032
+ i0__namespace.ɵɵelementEnd();
1033
+ i0__namespace.ɵɵelementStart(18, "div", 29);
1034
+ i0__namespace.ɵɵelementStart(19, "button", 30);
1035
+ i0__namespace.ɵɵlistener("click", function FormManagerFormComponent_ng_template_16_Template_button_click_19_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r13 = i0__namespace.ɵɵnextContext(); return ctx_r13.modalRef.hide(); });
1036
+ i0__namespace.ɵɵtext(20, "Close");
1037
+ i0__namespace.ɵɵelementEnd();
1038
+ i0__namespace.ɵɵelementEnd();
1039
+ }
1040
+ if (rf & 2) {
1041
+ var ctx_r4 = i0__namespace.ɵɵnextContext();
1042
+ i0__namespace.ɵɵadvance(9);
1043
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0, ctx_r4.choice === "isUrl"));
1044
+ i0__namespace.ɵɵadvance(4);
1045
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0, ctx_r4.choice === "isEmbed"));
1046
+ i0__namespace.ɵɵadvance(3);
1047
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.choice === "isEmbed");
1048
+ i0__namespace.ɵɵadvance(1);
1049
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.choice === "isUrl");
1050
+ }
1051
+ }
1052
+ var FormManagerFormComponent = /** @class */ (function () {
1053
+ function FormManagerFormComponent(service, route, appConfig, options, modalService) {
1054
+ this.service = service;
1055
+ this.route = route;
1056
+ this.appConfig = appConfig;
1057
+ this.options = options;
1058
+ this.modalService = modalService;
1059
+ this.choice = 'isUrl';
1060
+ this.goTo = '';
1061
+ }
1062
+ FormManagerFormComponent.prototype.ngOnInit = function () {
1063
+ var _this = this;
1064
+ this.service.reset(this.route);
1065
+ this.service.loadForm().then(function (form) {
1066
+ _this.service.formSrc = _this.appConfig.appUrl + '/' + form.path;
1067
+ _this.projectId = form.project;
1068
+ _this.pathName = form.path;
1069
+ _this.getShareUrl();
1070
+ });
1071
+ };
1072
+ FormManagerFormComponent.prototype.getShareUrl = function () {
1073
+ var src = this.appConfig.appUrl + '/' + this.pathName;
1074
+ this.shareUrl = this.options.viewer + "/#/?src=" + encodeURIComponent(src);
1075
+ return this.shareUrl;
1076
+ };
1077
+ FormManagerFormComponent.prototype.openEmbed = function (content) {
1078
+ var goto = '';
1079
+ if (this.goTo) {
1080
+ goto += "if (d && d.formSubmission && d.formSubmission._id) { window.location.href = \"" + this.goTo + "\";}";
1081
+ }
1082
+ var embedCode = '<script type="text/javascript">';
1083
+ embedCode += '(function a(d, w, u) {';
1084
+ embedCode += 'var h = d.getElementsByTagName("head")[0];';
1085
+ embedCode += 'var s = d.createElement("script");';
1086
+ embedCode += 's.type = "text/javascript";';
1087
+ embedCode += 's.src = "' + this.options.viewer + '/assets/lib/seamless/seamless.parent.min.js";';
1088
+ embedCode += 's.onload = function b() {';
1089
+ embedCode += 'var f = d.getElementById("formio-form-' + this.service.formio.formId + '");';
1090
+ embedCode += 'if (!f || (typeof w.seamless === u)) {';
1091
+ embedCode += 'return setTimeout(b, 100);';
1092
+ embedCode += '}';
1093
+ embedCode += 'w.seamless(f, {fallback:false}).receive(function(d, e) {' + goto + '});';
1094
+ embedCode += '};';
1095
+ embedCode += 'h.appendChild(s);';
1096
+ embedCode += '})(document, window);';
1097
+ embedCode += '</script>';
1098
+ embedCode += '<iframe id="formio-form-' + this.service.formio.formId + '" ';
1099
+ embedCode += 'style="width:100%;border:none;" height="800px" src="' + this.shareUrl + '&iframe=1"></iframe>';
1100
+ this.embedCode = embedCode;
1101
+ this.modalRef = this.modalService.show(content, { class: 'modal-lg' });
1102
+ };
1103
+ FormManagerFormComponent.prototype.choices = function (string) {
1104
+ this.choice = string;
1105
+ };
1106
+ return FormManagerFormComponent;
1107
+ }());
1108
+ FormManagerFormComponent.ɵfac = function FormManagerFormComponent_Factory(t) { return new (t || FormManagerFormComponent)(i0__namespace.ɵɵdirectiveInject(FormManagerService), i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i3__namespace.FormioAppConfig), i0__namespace.ɵɵdirectiveInject(FormManagerConfig), i0__namespace.ɵɵdirectiveInject(i5__namespace$1.BsModalService)); };
1109
+ FormManagerFormComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormManagerFormComponent, selectors: [["ng-component"]], decls: 18, vars: 3, consts: [["class", "pull-right btn btn-outline-primary", 3, "click", 4, "ngIf"], [1, "nav", "nav-tabs", "mb-2"], [1, "nav-item"], ["routerLink", "../", 1, "nav-link"], [1, "fa", "fa-chevron-left", "glyphicon", "glyphicon-chevron-left"], ["routerLinkActive", "active", 1, "nav-item"], ["routerLink", "view", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-pencil", "glyphicon", "glyphicon-pencil"], ["routerLink", "submission", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-list-alt", "glyphicon", "glyphicon-list-alt"], ["class", "nav-item", "routerLinkActive", "active", 4, "ngIf"], ["content", ""], [1, "pull-right", "btn", "btn-outline-primary", 3, "click"], [1, "fa", "fa-share-alt", "glyphicon", "glyphicon-share"], ["routerLink", "edit", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-edit", "glyphicon", "glyphicon-edit"], ["routerLink", "delete", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-trash", "glyphicon", "glyphicon-trash"], [1, "modal-header"], [1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "close", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [1, "nav", "nav-tabs", "mr-auto", "mb-2"], [1, "nav-link", 3, "ngClass", "click"], [1, "fa", "fa-link"], [1, "fa", "fa-code"], [4, "ngIf"], ["type", "text", "onclick", "this.focus();this.select()", "readonly", "readonly", "class", "form-control", "placeholder", "https://examples.form.io/example", 3, "ngModel", 4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", 3, "click"], ["onclick", "this.focus();this.select()", "readonly", "readonly", "rows", "8", 2, "width", "100%", 3, "ngModel"], ["type", "text", "onclick", "this.focus();this.select()", "readonly", "readonly", "placeholder", "https://examples.form.io/example", 1, "form-control", 3, "ngModel"]], template: function FormManagerFormComponent_Template(rf, ctx) {
1110
+ if (rf & 1) {
1111
+ i0__namespace.ɵɵtemplate(0, FormManagerFormComponent_button_0_Template, 3, 0, "button", 0);
1112
+ i0__namespace.ɵɵelementStart(1, "ul", 1);
1113
+ i0__namespace.ɵɵelementStart(2, "li", 2);
1114
+ i0__namespace.ɵɵelementStart(3, "a", 3);
1115
+ i0__namespace.ɵɵelement(4, "i", 4);
1116
+ i0__namespace.ɵɵelementEnd();
1117
+ i0__namespace.ɵɵelementEnd();
1118
+ i0__namespace.ɵɵelementStart(5, "li", 5);
1119
+ i0__namespace.ɵɵelementStart(6, "a", 6);
1120
+ i0__namespace.ɵɵelement(7, "i", 7);
1121
+ i0__namespace.ɵɵtext(8, " Enter Data");
1122
+ i0__namespace.ɵɵelementEnd();
1123
+ i0__namespace.ɵɵelementEnd();
1124
+ i0__namespace.ɵɵelementStart(9, "li", 5);
1125
+ i0__namespace.ɵɵelementStart(10, "a", 8);
1126
+ i0__namespace.ɵɵelement(11, "i", 9);
1127
+ i0__namespace.ɵɵtext(12, " View Data");
1128
+ i0__namespace.ɵɵelementEnd();
1129
+ i0__namespace.ɵɵelementEnd();
1130
+ i0__namespace.ɵɵtemplate(13, FormManagerFormComponent_li_13_Template, 4, 0, "li", 10);
1131
+ i0__namespace.ɵɵtemplate(14, FormManagerFormComponent_li_14_Template, 3, 0, "li", 10);
1132
+ i0__namespace.ɵɵelementEnd();
1133
+ i0__namespace.ɵɵelement(15, "router-outlet");
1134
+ i0__namespace.ɵɵtemplate(16, FormManagerFormComponent_ng_template_16_Template, 21, 8, "ng-template", null, 11, i0__namespace.ɵɵtemplateRefExtractor);
1135
+ }
1136
+ if (rf & 2) {
1137
+ i0__namespace.ɵɵproperty("ngIf", ctx.options.viewer);
1138
+ i0__namespace.ɵɵadvance(13);
1139
+ i0__namespace.ɵɵproperty("ngIf", ctx.service.actionAllowed("formEdit"));
1140
+ i0__namespace.ɵɵadvance(1);
1141
+ i0__namespace.ɵɵproperty("ngIf", ctx.service.actionAllowed("formDelete"));
1142
+ }
1143
+ }, directives: [i6__namespace.NgIf, i2__namespace.RouterLinkWithHref, i2__namespace.RouterLinkActive, i2__namespace.RouterOutlet, i6__namespace.NgClass, i5__namespace.DefaultValueAccessor, i5__namespace.NgControlStatus, i5__namespace.NgModel], encapsulation: 2 });
1144
+ (function () {
1145
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormManagerFormComponent, [{
1146
+ type: i0.Component,
1147
+ args: [{
1148
+ templateUrl: './form.component.html'
1149
+ }]
1150
+ }], function () { return [{ type: FormManagerService }, { type: i2__namespace.ActivatedRoute }, { type: i3__namespace.FormioAppConfig }, { type: FormManagerConfig }, { type: i5__namespace$1.BsModalService }]; }, null);
1151
+ })();
1152
+
1153
+ function FormManagerViewComponent_formio_0_Template(rf, ctx) {
1154
+ if (rf & 1) {
1155
+ var _r2_1 = i0__namespace.ɵɵgetCurrentView();
1156
+ i0__namespace.ɵɵelementStart(0, "formio", 1);
1157
+ i0__namespace.ɵɵlistener("submit", function FormManagerViewComponent_formio_0_Template_formio_submit_0_listener($event) { i0__namespace.ɵɵrestoreView(_r2_1); var ctx_r1 = i0__namespace.ɵɵnextContext(); return ctx_r1.onSubmit($event); });
1158
+ i0__namespace.ɵɵelementEnd();
1159
+ }
1160
+ if (rf & 2) {
1161
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
1162
+ i0__namespace.ɵɵproperty("renderer", ctx_r0.config.renderer)("renderOptions", ctx_r0.renderOptions)("url", ctx_r0.service.formio.formUrl)("form", ctx_r0.service.form)("submission", ctx_r0.submission)("success", ctx_r0.onSuccess)("error", ctx_r0.onError);
1163
+ }
1164
+ }
1165
+ var FormManagerViewComponent = /** @class */ (function () {
1166
+ function FormManagerViewComponent(service, router, route, config, auth) {
1167
+ this.service = service;
1168
+ this.router = router;
1169
+ this.route = route;
1170
+ this.config = config;
1171
+ this.auth = auth;
1172
+ this.onSuccess = new i0.EventEmitter();
1173
+ this.onError = new i0.EventEmitter();
1174
+ this.renderOptions = {
1175
+ saveDraft: this.config.saveDraft
1176
+ };
1177
+ this.submission = { data: {} };
1178
+ }
1179
+ FormManagerViewComponent.prototype.ngOnInit = function () {
1180
+ this.service.formio = new formiojs.Formio(this.service.formio.formUrl);
1181
+ };
1182
+ FormManagerViewComponent.prototype.onSubmit = function (submission) {
1183
+ var _this = this;
1184
+ this.submission.data = submission.data;
1185
+ this.submission.state = 'complete';
1186
+ this.service.formio.saveSubmission(this.submission).then(function (saved) {
1187
+ _this.onSuccess.emit();
1188
+ _this.router.navigate(['../', 'submission', saved._id], { relativeTo: _this.route });
1189
+ }).catch(function (err) { return _this.onError.emit(err); });
1190
+ };
1191
+ return FormManagerViewComponent;
1192
+ }());
1193
+ FormManagerViewComponent.ɵfac = function FormManagerViewComponent_Factory(t) { return new (t || FormManagerViewComponent)(i0__namespace.ɵɵdirectiveInject(FormManagerService), i0__namespace.ɵɵdirectiveInject(i2__namespace.Router), i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormManagerConfig), i0__namespace.ɵɵdirectiveInject(i3__namespace$1.FormioAuthService)); };
1194
+ FormManagerViewComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormManagerViewComponent, selectors: [["ng-component"]], decls: 1, vars: 1, consts: [[3, "renderer", "renderOptions", "url", "form", "submission", "success", "error", "submit", 4, "ngIf"], [3, "renderer", "renderOptions", "url", "form", "submission", "success", "error", "submit"]], template: function FormManagerViewComponent_Template(rf, ctx) {
1195
+ if (rf & 1) {
1196
+ i0__namespace.ɵɵtemplate(0, FormManagerViewComponent_formio_0_Template, 1, 7, "formio", 0);
1197
+ }
1198
+ if (rf & 2) {
1199
+ i0__namespace.ɵɵproperty("ngIf", ctx.service.form);
1200
+ }
1201
+ }, directives: [i6__namespace.NgIf, i3__namespace.FormioComponent], encapsulation: 2 });
1202
+ (function () {
1203
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormManagerViewComponent, [{
1204
+ type: i0.Component,
1205
+ args: [{
1206
+ templateUrl: './view.component.html'
1207
+ }]
1208
+ }], function () { return [{ type: FormManagerService }, { type: i2__namespace.Router }, { type: i2__namespace.ActivatedRoute }, { type: FormManagerConfig }, { type: i3__namespace$1.FormioAuthService }]; }, null);
1209
+ })();
1210
+
1211
+ var FormManagerDeleteComponent = /** @class */ (function () {
1212
+ function FormManagerDeleteComponent(managerService, router, route, alerts, gridService) {
1213
+ this.managerService = managerService;
1214
+ this.router = router;
1215
+ this.route = route;
1216
+ this.alerts = alerts;
1217
+ this.gridService = gridService;
1218
+ }
1219
+ FormManagerDeleteComponent.prototype.onDelete = function () {
1220
+ var _this = this;
1221
+ this.managerService.formio.deleteForm().then(function () {
1222
+ if (_this.gridService) {
1223
+ var currentPage = +localStorage.getItem('currentPage') || 0;
1224
+ var formsNumberPerPage = _this.gridService.getFormsPerPage();
1225
+ if (formsNumberPerPage === 1 && currentPage !== 0) {
1226
+ localStorage.setItem('currentPage', "" + (currentPage - 1));
1227
+ }
1228
+ }
1229
+ _this.router.navigate(['../../'], { relativeTo: _this.route });
1230
+ }).catch(function (err) { return _this.alerts.setAlert({ type: 'danger', message: (err.message || err) }); });
1231
+ };
1232
+ FormManagerDeleteComponent.prototype.onCancel = function () {
1233
+ this.router.navigate(['../', 'view'], { relativeTo: this.route });
1234
+ };
1235
+ return FormManagerDeleteComponent;
1236
+ }());
1237
+ FormManagerDeleteComponent.ɵfac = function FormManagerDeleteComponent_Factory(t) { return new (t || FormManagerDeleteComponent)(i0__namespace.ɵɵdirectiveInject(FormManagerService), i0__namespace.ɵɵdirectiveInject(i2__namespace.Router), i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i3__namespace.FormioAlerts), i0__namespace.ɵɵdirectiveInject(i4__namespace.GridService)); };
1238
+ FormManagerDeleteComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormManagerDeleteComponent, selectors: [["ng-component"]], decls: 8, vars: 1, consts: [[3, "alerts"], [1, "btn-toolbar"], ["type", "button", 1, "btn", "btn-danger", 2, "margin-right", "10px", 3, "click"], ["type", "button", 1, "btn", "btn-default", 3, "click"]], template: function FormManagerDeleteComponent_Template(rf, ctx) {
1239
+ if (rf & 1) {
1240
+ i0__namespace.ɵɵelement(0, "formio-alerts", 0);
1241
+ i0__namespace.ɵɵelementStart(1, "h3");
1242
+ i0__namespace.ɵɵtext(2, "Are you sure you wish to delete this form?");
1243
+ i0__namespace.ɵɵelementEnd();
1244
+ i0__namespace.ɵɵelementStart(3, "div", 1);
1245
+ i0__namespace.ɵɵelementStart(4, "button", 2);
1246
+ i0__namespace.ɵɵlistener("click", function FormManagerDeleteComponent_Template_button_click_4_listener() { return ctx.onDelete(); });
1247
+ i0__namespace.ɵɵtext(5, "Yes");
1248
+ i0__namespace.ɵɵelementEnd();
1249
+ i0__namespace.ɵɵelementStart(6, "button", 3);
1250
+ i0__namespace.ɵɵlistener("click", function FormManagerDeleteComponent_Template_button_click_6_listener() { return ctx.onCancel(); });
1251
+ i0__namespace.ɵɵtext(7, "No");
1252
+ i0__namespace.ɵɵelementEnd();
1253
+ i0__namespace.ɵɵelementEnd();
1254
+ }
1255
+ if (rf & 2) {
1256
+ i0__namespace.ɵɵproperty("alerts", ctx.alerts);
1257
+ }
1258
+ }, directives: [i3__namespace.FormioAlertsComponent], encapsulation: 2 });
1259
+ (function () {
1260
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormManagerDeleteComponent, [{
1261
+ type: i0.Component,
1262
+ args: [{
1263
+ templateUrl: './delete.component.html'
1264
+ }]
1265
+ }], function () { return [{ type: FormManagerService }, { type: i2__namespace.Router }, { type: i2__namespace.ActivatedRoute }, { type: i3__namespace.FormioAlerts }, { type: i4__namespace.GridService }]; }, null);
1266
+ })();
1267
+
1268
+ var SubmissionEditComponent = /** @class */ (function () {
1269
+ function SubmissionEditComponent(service, router, route) {
1270
+ this.service = service;
1271
+ this.router = router;
1272
+ this.route = route;
1273
+ }
1274
+ SubmissionEditComponent.prototype.onSubmit = function (submission) {
1275
+ this.router.navigate(['../../'], { relativeTo: this.route });
1276
+ };
1277
+ return SubmissionEditComponent;
1278
+ }());
1279
+ SubmissionEditComponent.ɵfac = function SubmissionEditComponent_Factory(t) { return new (t || SubmissionEditComponent)(i0__namespace.ɵɵdirectiveInject(FormManagerService), i0__namespace.ɵɵdirectiveInject(i2__namespace.Router), i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute)); };
1280
+ SubmissionEditComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionEditComponent, selectors: [["ng-component"]], decls: 1, vars: 2, consts: [[3, "renderer", "src", "submit", "formLoad", "submissionLoad"]], template: function SubmissionEditComponent_Template(rf, ctx) {
1281
+ if (rf & 1) {
1282
+ i0__namespace.ɵɵelementStart(0, "formio", 0);
1283
+ i0__namespace.ɵɵlistener("submit", function SubmissionEditComponent_Template_formio_submit_0_listener($event) { return ctx.onSubmit($event); })("formLoad", function SubmissionEditComponent_Template_formio_formLoad_0_listener($event) { return ctx.service.setForm($event); })("submissionLoad", function SubmissionEditComponent_Template_formio_submissionLoad_0_listener($event) { return ctx.service.submissionLoaded($event); });
1284
+ i0__namespace.ɵɵelementEnd();
1285
+ }
1286
+ if (rf & 2) {
1287
+ i0__namespace.ɵɵproperty("renderer", ctx.service.config.renderer)("src", ctx.service.formio.submissionUrl);
1288
+ }
1289
+ }, directives: [i3__namespace.FormioComponent], encapsulation: 2 });
1290
+ (function () {
1291
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionEditComponent, [{
1292
+ type: i0.Component,
1293
+ args: [{
1294
+ templateUrl: './edit.component.html'
1295
+ }]
1296
+ }], function () { return [{ type: FormManagerService }, { type: i2__namespace.Router }, { type: i2__namespace.ActivatedRoute }]; }, null);
1297
+ })();
1298
+
1299
+ var SubmissionDeleteComponent = /** @class */ (function () {
1300
+ function SubmissionDeleteComponent(service, router, route, alerts) {
1301
+ this.service = service;
1302
+ this.router = router;
1303
+ this.route = route;
1304
+ this.alerts = alerts;
1305
+ }
1306
+ SubmissionDeleteComponent.prototype.onDelete = function () {
1307
+ var _this = this;
1308
+ this.service.formio.deleteSubmission().then(function () {
1309
+ _this.router.navigate(['../../'], { relativeTo: _this.route });
1310
+ }).catch(function (err) { return _this.alerts.setAlert({ type: 'danger', message: (err.message || err) }); });
1311
+ };
1312
+ SubmissionDeleteComponent.prototype.onCancel = function () {
1313
+ this.router.navigate(['../', 'view'], { relativeTo: this.route });
1314
+ };
1315
+ return SubmissionDeleteComponent;
1316
+ }());
1317
+ SubmissionDeleteComponent.ɵfac = function SubmissionDeleteComponent_Factory(t) { return new (t || SubmissionDeleteComponent)(i0__namespace.ɵɵdirectiveInject(FormManagerService), i0__namespace.ɵɵdirectiveInject(i2__namespace.Router), i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i3__namespace.FormioAlerts)); };
1318
+ SubmissionDeleteComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionDeleteComponent, selectors: [["ng-component"]], decls: 8, vars: 1, consts: [[3, "alerts"], [1, "btn-toolbar"], ["type", "button", 1, "btn", "btn-danger", 2, "margin-right", "10px", 3, "click"], ["type", "button", 1, "btn", "btn-default", 3, "click"]], template: function SubmissionDeleteComponent_Template(rf, ctx) {
1319
+ if (rf & 1) {
1320
+ i0__namespace.ɵɵelement(0, "formio-alerts", 0);
1321
+ i0__namespace.ɵɵelementStart(1, "h3");
1322
+ i0__namespace.ɵɵtext(2, "Are you sure you wish to delete this record?");
1323
+ i0__namespace.ɵɵelementEnd();
1324
+ i0__namespace.ɵɵelementStart(3, "div", 1);
1325
+ i0__namespace.ɵɵelementStart(4, "button", 2);
1326
+ i0__namespace.ɵɵlistener("click", function SubmissionDeleteComponent_Template_button_click_4_listener() { return ctx.onDelete(); });
1327
+ i0__namespace.ɵɵtext(5, "Yes");
1328
+ i0__namespace.ɵɵelementEnd();
1329
+ i0__namespace.ɵɵelementStart(6, "button", 3);
1330
+ i0__namespace.ɵɵlistener("click", function SubmissionDeleteComponent_Template_button_click_6_listener() { return ctx.onCancel(); });
1331
+ i0__namespace.ɵɵtext(7, "No");
1332
+ i0__namespace.ɵɵelementEnd();
1333
+ i0__namespace.ɵɵelementEnd();
1334
+ }
1335
+ if (rf & 2) {
1336
+ i0__namespace.ɵɵproperty("alerts", ctx.alerts);
1337
+ }
1338
+ }, directives: [i3__namespace.FormioAlertsComponent], encapsulation: 2 });
1339
+ (function () {
1340
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionDeleteComponent, [{
1341
+ type: i0.Component,
1342
+ args: [{
1343
+ templateUrl: './delete.component.html'
1344
+ }]
1345
+ }], function () { return [{ type: FormManagerService }, { type: i2__namespace.Router }, { type: i2__namespace.ActivatedRoute }, { type: i3__namespace.FormioAlerts }]; }, null);
1346
+ })();
1347
+
1348
+ var SubmissionViewComponent = /** @class */ (function () {
1349
+ function SubmissionViewComponent(service) {
1350
+ this.service = service;
1351
+ }
1352
+ return SubmissionViewComponent;
1353
+ }());
1354
+ SubmissionViewComponent.ɵfac = function SubmissionViewComponent_Factory(t) { return new (t || SubmissionViewComponent)(i0__namespace.ɵɵdirectiveInject(FormManagerService)); };
1355
+ SubmissionViewComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionViewComponent, selectors: [["ng-component"]], decls: 1, vars: 3, consts: [[3, "renderer", "src", "readOnly", "formLoad", "submissionLoad"]], template: function SubmissionViewComponent_Template(rf, ctx) {
1356
+ if (rf & 1) {
1357
+ i0__namespace.ɵɵelementStart(0, "formio", 0);
1358
+ i0__namespace.ɵɵlistener("formLoad", function SubmissionViewComponent_Template_formio_formLoad_0_listener($event) { return ctx.service.setForm($event); })("submissionLoad", function SubmissionViewComponent_Template_formio_submissionLoad_0_listener($event) { return ctx.service.submissionLoaded($event); });
1359
+ i0__namespace.ɵɵelementEnd();
1360
+ }
1361
+ if (rf & 2) {
1362
+ i0__namespace.ɵɵproperty("renderer", ctx.service.config.renderer)("src", ctx.service.formio.submissionUrl)("readOnly", true);
1363
+ }
1364
+ }, directives: [i3__namespace.FormioComponent], encapsulation: 2 });
1365
+ (function () {
1366
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionViewComponent, [{
1367
+ type: i0.Component,
1368
+ args: [{
1369
+ templateUrl: './view.component.html'
1370
+ }]
1371
+ }], function () { return [{ type: FormManagerService }]; }, null);
1372
+ })();
1373
+
1374
+ var SubmissionIndexComponent = /** @class */ (function () {
1375
+ function SubmissionIndexComponent(service, route, router) {
1376
+ this.service = service;
1377
+ this.route = route;
1378
+ this.router = router;
1379
+ }
1380
+ SubmissionIndexComponent.prototype.onSelect = function (row) {
1381
+ this.router.navigate([row._id, 'view'], { relativeTo: this.route });
1382
+ };
1383
+ return SubmissionIndexComponent;
1384
+ }());
1385
+ SubmissionIndexComponent.ɵfac = function SubmissionIndexComponent_Factory(t) { return new (t || SubmissionIndexComponent)(i0__namespace.ɵɵdirectiveInject(FormManagerService), i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i2__namespace.Router)); };
1386
+ SubmissionIndexComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionIndexComponent, selectors: [["ng-component"]], decls: 1, vars: 1, consts: [[3, "formio", "rowSelect"]], template: function SubmissionIndexComponent_Template(rf, ctx) {
1387
+ if (rf & 1) {
1388
+ i0__namespace.ɵɵelementStart(0, "formio-grid", 0);
1389
+ i0__namespace.ɵɵlistener("rowSelect", function SubmissionIndexComponent_Template_formio_grid_rowSelect_0_listener($event) { return ctx.onSelect($event); });
1390
+ i0__namespace.ɵɵelementEnd();
1391
+ }
1392
+ if (rf & 2) {
1393
+ i0__namespace.ɵɵproperty("formio", ctx.service.formio);
1394
+ }
1395
+ }, directives: [i4__namespace.FormioGridComponent], encapsulation: 2 });
1396
+ (function () {
1397
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionIndexComponent, [{
1398
+ type: i0.Component,
1399
+ args: [{
1400
+ templateUrl: './index.component.html'
1401
+ }]
1402
+ }], function () { return [{ type: FormManagerService }, { type: i2__namespace.ActivatedRoute }, { type: i2__namespace.Router }]; }, null);
1403
+ })();
1404
+
1405
+ function SubmissionComponent_a_0_Template(rf, ctx) {
1406
+ if (rf & 1) {
1407
+ i0__namespace.ɵɵelementStart(0, "a", 9);
1408
+ i0__namespace.ɵɵelement(1, "img", 10);
1409
+ i0__namespace.ɵɵelementEnd();
1410
+ }
1411
+ if (rf & 2) {
1412
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
1413
+ i0__namespace.ɵɵproperty("href", ctx_r0.downloadUrl, i0__namespace.ɵɵsanitizeUrl);
1414
+ }
1415
+ }
1416
+ function SubmissionComponent_li_9_Template(rf, ctx) {
1417
+ if (rf & 1) {
1418
+ i0__namespace.ɵɵelementStart(0, "li", 5);
1419
+ i0__namespace.ɵɵelementStart(1, "a", 11);
1420
+ i0__namespace.ɵɵelement(2, "i", 12);
1421
+ i0__namespace.ɵɵtext(3, " Edit");
1422
+ i0__namespace.ɵɵelementEnd();
1423
+ i0__namespace.ɵɵelementEnd();
1424
+ }
1425
+ }
1426
+ function SubmissionComponent_li_10_Template(rf, ctx) {
1427
+ if (rf & 1) {
1428
+ i0__namespace.ɵɵelementStart(0, "li", 5);
1429
+ i0__namespace.ɵɵelementStart(1, "a", 13);
1430
+ i0__namespace.ɵɵelement(2, "span", 14);
1431
+ i0__namespace.ɵɵelementEnd();
1432
+ i0__namespace.ɵɵelementEnd();
1433
+ }
1434
+ }
1435
+ var SubmissionComponent = /** @class */ (function () {
1436
+ function SubmissionComponent(service, route) {
1437
+ this.service = service;
1438
+ this.route = route;
1439
+ }
1440
+ SubmissionComponent.prototype.setDownloadUrl = function (url) {
1441
+ this.downloadUrl = url;
1442
+ };
1443
+ SubmissionComponent.prototype.ngOnInit = function () {
1444
+ var _this = this;
1445
+ this.service.setSubmission(this.route).then(function (formio) {
1446
+ formio.getDownloadUrl().then(function (url) { return _this.setDownloadUrl(url); });
1447
+ });
1448
+ };
1449
+ return SubmissionComponent;
1450
+ }());
1451
+ SubmissionComponent.ɵfac = function SubmissionComponent_Factory(t) { return new (t || SubmissionComponent)(i0__namespace.ɵɵdirectiveInject(FormManagerService), i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute)); };
1452
+ SubmissionComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionComponent, selectors: [["ng-component"]], decls: 12, vars: 3, consts: [["target", "_blank", "class", "pull-right", 3, "href", 4, "ngIf"], ["aria-label", "Submission", "role", "navigation", 1, "nav", "nav-tabs", 2, "margin-bottom", "10px"], [1, "nav-item"], ["routerLink", "../", 1, "nav-link"], [1, "fa", "fa-chevron-left", "glyphicon", "glyphicon-chevron-left"], ["routerLinkActive", "active", 1, "nav-item"], ["routerLink", "view", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-eye", "glyphicon", "glyphicon-eye"], ["class", "nav-item", "routerLinkActive", "active", 4, "ngIf"], ["target", "_blank", 1, "pull-right", 3, "href"], ["src", "https://pro.formview.io/assets/pdf.png", 2, "height", "2em"], ["routerLink", "edit", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-edit", "glyphicon", "glyphicon-edit"], ["routerLink", "delete", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-trash", "glyphicon", "glyphicon-trash"]], template: function SubmissionComponent_Template(rf, ctx) {
1453
+ if (rf & 1) {
1454
+ i0__namespace.ɵɵtemplate(0, SubmissionComponent_a_0_Template, 2, 1, "a", 0);
1455
+ i0__namespace.ɵɵelementStart(1, "ul", 1);
1456
+ i0__namespace.ɵɵelementStart(2, "li", 2);
1457
+ i0__namespace.ɵɵelementStart(3, "a", 3);
1458
+ i0__namespace.ɵɵelement(4, "i", 4);
1459
+ i0__namespace.ɵɵelementEnd();
1460
+ i0__namespace.ɵɵelementEnd();
1461
+ i0__namespace.ɵɵelementStart(5, "li", 5);
1462
+ i0__namespace.ɵɵelementStart(6, "a", 6);
1463
+ i0__namespace.ɵɵelement(7, "i", 7);
1464
+ i0__namespace.ɵɵtext(8, " View");
1465
+ i0__namespace.ɵɵelementEnd();
1466
+ i0__namespace.ɵɵelementEnd();
1467
+ i0__namespace.ɵɵtemplate(9, SubmissionComponent_li_9_Template, 4, 0, "li", 8);
1468
+ i0__namespace.ɵɵtemplate(10, SubmissionComponent_li_10_Template, 3, 0, "li", 8);
1469
+ i0__namespace.ɵɵelementEnd();
1470
+ i0__namespace.ɵɵelement(11, "router-outlet");
1471
+ }
1472
+ if (rf & 2) {
1473
+ i0__namespace.ɵɵproperty("ngIf", ctx.downloadUrl);
1474
+ i0__namespace.ɵɵadvance(9);
1475
+ i0__namespace.ɵɵproperty("ngIf", ctx.service.perms.edit);
1476
+ i0__namespace.ɵɵadvance(1);
1477
+ i0__namespace.ɵɵproperty("ngIf", ctx.service.perms.delete);
1478
+ }
1479
+ }, directives: [i6__namespace.NgIf, i2__namespace.RouterLinkWithHref, i2__namespace.RouterLinkActive, i2__namespace.RouterOutlet], encapsulation: 2 });
1480
+ (function () {
1481
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionComponent, [{
1482
+ type: i0.Component,
1483
+ args: [{
1484
+ templateUrl: './submission.component.html'
1485
+ }]
1486
+ }], function () { return [{ type: FormManagerService }, { type: i2__namespace.ActivatedRoute }]; }, null);
1487
+ })();
1488
+
1489
+ function FormManagerRoutes(config) {
1490
+ return [
1491
+ {
1492
+ path: '',
1493
+ component: config && config.formIndex ? config.formIndex : FormManagerIndexComponent
1494
+ },
1495
+ {
1496
+ path: 'create',
1497
+ component: config && config.formCreate ? config.formCreate : FormManagerCreateComponent
1498
+ },
1499
+ {
1500
+ path: ':id',
1501
+ component: config && config.form ? config.form : FormManagerFormComponent,
1502
+ children: [
1503
+ {
1504
+ path: '',
1505
+ redirectTo: 'view',
1506
+ pathMatch: 'full'
1507
+ },
1508
+ {
1509
+ path: 'view',
1510
+ component: config && config.formView ? config.formView : FormManagerViewComponent
1511
+ },
1512
+ {
1513
+ path: 'edit',
1514
+ component: config && config.formEdit ? config.formEdit : FormManagerEditComponent
1515
+ },
1516
+ {
1517
+ path: 'delete',
1518
+ component: config && config.formDelete ? config.formDelete : FormManagerDeleteComponent
1519
+ },
1520
+ {
1521
+ path: 'submission',
1522
+ component: config && config.submissionIndex ? config.submissionIndex : SubmissionIndexComponent
1523
+ },
1524
+ {
1525
+ path: 'submission/:id',
1526
+ component: config && config.submission ? config.submission : SubmissionComponent,
1527
+ children: [
1528
+ {
1529
+ path: '',
1530
+ redirectTo: 'view',
1531
+ pathMatch: 'full'
1532
+ },
1533
+ {
1534
+ path: 'view',
1535
+ component: config && config.submissionView ? config.submissionView : SubmissionViewComponent
1536
+ },
1537
+ {
1538
+ path: 'edit',
1539
+ component: config && config.submissionEdit ? config.submissionEdit : SubmissionEditComponent
1540
+ },
1541
+ {
1542
+ path: 'delete',
1543
+ component: config && config.submissionDelete ? config.submissionDelete : SubmissionDeleteComponent
1544
+ }
1545
+ ]
1546
+ }
1547
+ ]
1548
+ }
1549
+ ];
1550
+ }
1551
+
1552
+ var FormManagerModule = /** @class */ (function () {
1553
+ function FormManagerModule() {
1554
+ }
1555
+ FormManagerModule.forChild = function (config) {
1556
+ return i3.extendRouter(FormManagerModule, config, FormManagerRoutes);
1557
+ };
1558
+ FormManagerModule.forRoot = function (config) {
1559
+ return i3.extendRouter(FormManagerModule, config, FormManagerRoutes);
1560
+ };
1561
+ return FormManagerModule;
1562
+ }());
1563
+ FormManagerModule.ɵfac = function FormManagerModule_Factory(t) { return new (t || FormManagerModule)(); };
1564
+ FormManagerModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: FormManagerModule });
1565
+ FormManagerModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1566
+ i6.CommonModule,
1567
+ i3.FormioModule,
1568
+ i2.RouterModule,
1569
+ i5.FormsModule,
1570
+ i4.FormioGrid,
1571
+ i5$1.ModalModule.forRoot(),
1572
+ i2$1.PaginationModule.forRoot()
1573
+ ]] });
1574
+ (function () {
1575
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormManagerModule, [{
1576
+ type: i0.NgModule,
1577
+ args: [{
1578
+ imports: [
1579
+ i6.CommonModule,
1580
+ i3.FormioModule,
1581
+ i2.RouterModule,
1582
+ i5.FormsModule,
1583
+ i4.FormioGrid,
1584
+ i5$1.ModalModule.forRoot(),
1585
+ i2$1.PaginationModule.forRoot()
1586
+ ],
1587
+ declarations: [
1588
+ FormManagerIndexComponent,
1589
+ FormManagerCreateComponent,
1590
+ FormManagerFormComponent,
1591
+ FormManagerViewComponent,
1592
+ FormManagerEditComponent,
1593
+ FormManagerDeleteComponent,
1594
+ SubmissionComponent,
1595
+ SubmissionEditComponent,
1596
+ SubmissionDeleteComponent,
1597
+ SubmissionViewComponent,
1598
+ SubmissionIndexComponent
1599
+ ]
1600
+ }]
1601
+ }], null, null);
1602
+ })();
1603
+ (function () {
1604
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(FormManagerModule, { declarations: [FormManagerIndexComponent,
1605
+ FormManagerCreateComponent,
1606
+ FormManagerFormComponent,
1607
+ FormManagerViewComponent,
1608
+ FormManagerEditComponent,
1609
+ FormManagerDeleteComponent,
1610
+ SubmissionComponent,
1611
+ SubmissionEditComponent,
1612
+ SubmissionDeleteComponent,
1613
+ SubmissionViewComponent,
1614
+ SubmissionIndexComponent], imports: [i6.CommonModule,
1615
+ i3.FormioModule,
1616
+ i2.RouterModule,
1617
+ i5.FormsModule,
1618
+ i4.FormioGrid, i5__namespace$1.ModalModule, i2__namespace$1.PaginationModule] });
1619
+ })();
1620
+
1621
+ /*
1622
+ * Public API Surface of @formio/angular
1623
+ */
1624
+
1625
+ /**
1626
+ * Generated bundle index. Do not edit.
1627
+ */
1628
+
1629
+ exports.FormManagerConfig = FormManagerConfig;
1630
+ exports.FormManagerCreateComponent = FormManagerCreateComponent;
1631
+ exports.FormManagerDeleteComponent = FormManagerDeleteComponent;
1632
+ exports.FormManagerEditComponent = FormManagerEditComponent;
1633
+ exports.FormManagerFormComponent = FormManagerFormComponent;
1634
+ exports.FormManagerIndexComponent = FormManagerIndexComponent;
1635
+ exports.FormManagerModule = FormManagerModule;
1636
+ exports.FormManagerRoutes = FormManagerRoutes;
1637
+ exports.FormManagerService = FormManagerService;
1638
+ exports.FormManagerViewComponent = FormManagerViewComponent;
1639
+ exports.SubmissionComponent = SubmissionComponent;
1640
+ exports.SubmissionDeleteComponent = SubmissionDeleteComponent;
1641
+ exports.SubmissionEditComponent = SubmissionEditComponent;
1642
+ exports.SubmissionIndexComponent = SubmissionIndexComponent;
1643
+ exports.SubmissionViewComponent = SubmissionViewComponent;
1644
+
1645
+ Object.defineProperty(exports, '__esModule', { value: true });
1646
+
1647
+ }));
1648
+ //# sourceMappingURL=formio-angular-manager.umd.js.map